Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +256 -0
- parse/train/0migj5lyUZl/0migj5lyUZl.md +360 -0
- parse/train/0migj5lyUZl/0migj5lyUZl_content_list.json +1769 -0
- parse/train/0migj5lyUZl/0migj5lyUZl_middle.json +0 -0
- parse/train/0migj5lyUZl/0migj5lyUZl_model.json +0 -0
- parse/train/AY8zfZm0tDd/AY8zfZm0tDd.md +578 -0
- parse/train/AY8zfZm0tDd/AY8zfZm0tDd_content_list.json +0 -0
- parse/train/AY8zfZm0tDd/AY8zfZm0tDd_middle.json +0 -0
- parse/train/AY8zfZm0tDd/AY8zfZm0tDd_model.json +0 -0
- parse/train/BJlgNh0qKQ/BJlgNh0qKQ.md +532 -0
- parse/train/BJlgNh0qKQ/BJlgNh0qKQ_content_list.json +0 -0
- parse/train/BJlgNh0qKQ/BJlgNh0qKQ_middle.json +0 -0
- parse/train/BJlgNh0qKQ/BJlgNh0qKQ_model.json +0 -0
- parse/train/Bkl086VYvH/Bkl086VYvH.md +193 -0
- parse/train/Bkl086VYvH/Bkl086VYvH_content_list.json +1057 -0
- parse/train/Bkl086VYvH/Bkl086VYvH_middle.json +0 -0
- parse/train/Bkl086VYvH/Bkl086VYvH_model.json +0 -0
- parse/train/Goz-qsH1F14/Goz-qsH1F14.md +288 -0
- parse/train/Goz-qsH1F14/Goz-qsH1F14_content_list.json +1543 -0
- parse/train/Goz-qsH1F14/Goz-qsH1F14_middle.json +0 -0
- parse/train/Goz-qsH1F14/Goz-qsH1F14_model.json +0 -0
- parse/train/H1lVvgHKDr/H1lVvgHKDr.md +243 -0
- parse/train/H1lVvgHKDr/H1lVvgHKDr_content_list.json +1293 -0
- parse/train/H1lVvgHKDr/H1lVvgHKDr_middle.json +0 -0
- parse/train/H1lVvgHKDr/H1lVvgHKDr_model.json +0 -0
- parse/train/HJxiMAVtPH/HJxiMAVtPH.md +444 -0
- parse/train/HJxiMAVtPH/HJxiMAVtPH_content_list.json +0 -0
- parse/train/HJxiMAVtPH/HJxiMAVtPH_middle.json +0 -0
- parse/train/HJxiMAVtPH/HJxiMAVtPH_model.json +0 -0
- parse/train/Hk0olMdZOIU/Hk0olMdZOIU.md +275 -0
- parse/train/Hk0olMdZOIU/Hk0olMdZOIU_content_list.json +1305 -0
- parse/train/Hk0olMdZOIU/Hk0olMdZOIU_middle.json +0 -0
- parse/train/Hk0olMdZOIU/Hk0olMdZOIU_model.json +0 -0
- parse/train/QtTKTdVrFBB/QtTKTdVrFBB.md +537 -0
- parse/train/QtTKTdVrFBB/QtTKTdVrFBB_content_list.json +0 -0
- parse/train/QtTKTdVrFBB/QtTKTdVrFBB_middle.json +0 -0
- parse/train/QtTKTdVrFBB/QtTKTdVrFBB_model.json +0 -0
- parse/train/RovX-uQ1Hua/RovX-uQ1Hua.md +453 -0
- parse/train/RovX-uQ1Hua/RovX-uQ1Hua_content_list.json +0 -0
- parse/train/RovX-uQ1Hua/RovX-uQ1Hua_middle.json +0 -0
- parse/train/RovX-uQ1Hua/RovX-uQ1Hua_model.json +0 -0
- parse/train/SUyxNGzUsH/SUyxNGzUsH_model.json +0 -0
- parse/train/SkeXehR9t7/SkeXehR9t7_content_list.json +1865 -0
- parse/train/SkeXehR9t7/SkeXehR9t7_middle.json +0 -0
- parse/train/cu7IUiOhujH/cu7IUiOhujH.md +283 -0
- parse/train/cu7IUiOhujH/cu7IUiOhujH_content_list.json +1550 -0
- parse/train/cu7IUiOhujH/cu7IUiOhujH_middle.json +0 -0
- parse/train/cu7IUiOhujH/cu7IUiOhujH_model.json +0 -0
- parse/train/ryH20GbRW/ryH20GbRW.md +350 -0
- parse/train/ryH20GbRW/ryH20GbRW_content_list.json +1755 -0
.gitattributes
CHANGED
|
@@ -13456,3 +13456,259 @@ pdf/test/t0L4xG4aGC.pdf filter=lfs diff=lfs merge=lfs -text
|
|
| 13456 |
pdf/test/YfZ4ZPt8zd.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13457 |
pdf/test/8dkp41et6U.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13458 |
pdf/test/1tZbq88f27.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13456 |
pdf/test/YfZ4ZPt8zd.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13457 |
pdf/test/8dkp41et6U.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13458 |
pdf/test/1tZbq88f27.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13459 |
+
pdf/train/H1g6osRcFQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13460 |
+
pdf/train/ks5nebunVn_.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13461 |
+
pdf/train/SkB-_mcel.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13462 |
+
pdf/train/Bk6qQGWRb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13463 |
+
pdf/train/HkeSdCEtDS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13464 |
+
pdf/train/Byx1VnR9K7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13465 |
+
pdf/train/HktK4BeCZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13466 |
+
pdf/train/SJTQLdqlg.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13467 |
+
pdf/train/fpJX0O5bWKJ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13468 |
+
pdf/train/dvSExzhjG9D.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13469 |
+
pdf/train/_WnGcwXLYOE.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13470 |
+
pdf/train/Eql5b1_hTE4.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13471 |
+
pdf/train/H1g0Z3A9Fm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13472 |
+
pdf/train/rk4Qso0cKm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13473 |
+
pdf/train/HwGNkx1WcIs.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13474 |
+
pdf/train/S1gE6TEYDB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13475 |
+
pdf/train/HXjt-kRBzvu.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13476 |
+
pdf/train/0z1HScLBEpb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13477 |
+
pdf/train/EbIDjBynYJ8.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13478 |
+
pdf/train/H1loF2NFwr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13479 |
+
pdf/train/lgNx56yZh8a.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13480 |
+
pdf/train/rkEfPeZRb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13481 |
+
pdf/train/Ua6zuk0WRH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13482 |
+
pdf/train/ByxRM0Ntvr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13483 |
+
pdf/train/H1gL-2A9Ym.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13484 |
+
pdf/train/3SV-ZePhnZM.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13485 |
+
pdf/train/fylclEqgvgd.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13486 |
+
pdf/train/PxTIG12RRHS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13487 |
+
pdf/train/KCzRX9N8BIH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13488 |
+
pdf/train/9BpjtPMyDQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13489 |
+
pdf/train/IkYEJ5Cps5H.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13490 |
+
pdf/train/rJgzzJHtDB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13491 |
+
pdf/train/Syx9ET4YPB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13492 |
+
pdf/train/BkrsAzWAb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13493 |
+
pdf/train/HyGhN2A5tm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13494 |
+
pdf/train/S1gfu3EtDr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13495 |
+
pdf/train/HklXn1BKDH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13496 |
+
pdf/train/r1My6sR9tX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13497 |
+
pdf/train/pULTvw9X313.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13498 |
+
pdf/train/S1gNc3NtvB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13499 |
+
pdf/train/H1lGHsA9KX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13500 |
+
pdf/train/HJjvxl-Cb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13501 |
+
pdf/train/4Nt1F3qf9Gn.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13502 |
+
pdf/train/rJ5C67-C-.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13503 |
+
pdf/train/kzPtpIpF8o.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13504 |
+
pdf/train/SyfIfnC5Ym.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13505 |
+
pdf/train/r1esnoAqt7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13506 |
+
pdf/train/ueGDv64HmO.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13507 |
+
pdf/train/-NEXDKk8gZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13508 |
+
pdf/train/BJk7Gf-CZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13509 |
+
pdf/train/BJfvAoC9YQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13510 |
+
pdf/train/Hkl1iRNFwS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13511 |
+
pdf/train/cKnKJcTPRcV.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13512 |
+
pdf/train/uKhGRvM8QNH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13513 |
+
pdf/train/7_eLEvFjCi3.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13514 |
+
pdf/train/Skeq30NFPr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13515 |
+
pdf/train/BJe1E2R5KX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13516 |
+
pdf/train/Ov_sMNau-PF.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13517 |
+
pdf/train/SJgIPJBFvH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13518 |
+
pdf/train/Bklzkh0qFm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13519 |
+
pdf/train/ucEXZQncukK.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13520 |
+
pdf/train/H1gsz30cKX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13521 |
+
pdf/train/78GFU9e56Dq.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13522 |
+
pdf/train/S1WRibb0Z.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13523 |
+
pdf/train/SJfZKiC5FX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13524 |
+
pdf/train/HyebplHYwB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13525 |
+
pdf/train/SJvYgH9xe.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13526 |
+
pdf/train/Sye_OgHFwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13527 |
+
pdf/train/Ggx8fbKZ1-D.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13528 |
+
pdf/train/aJh-lFL2dFJ21.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13529 |
+
pdf/train/SkeGURNtDH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13530 |
+
pdf/train/1ibNKMp8SKc.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13531 |
+
pdf/train/OmtmcPkkhT.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13532 |
+
pdf/train/rJgsskrFwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13533 |
+
pdf/train/c8P9NQVtmnO.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13534 |
+
pdf/train/vllRjSTWcLs.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13535 |
+
pdf/train/AHOs7Sm5H7R.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13536 |
+
pdf/train/ioyq7NsR1KJ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13537 |
+
pdf/train/V5V1vGrI2z.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13538 |
+
pdf/train/5kTlVBkzSRx.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13539 |
+
pdf/train/rJehVyrKwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13540 |
+
pdf/train/B1ZvaaeAZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13541 |
+
pdf/train/EnmG3G5SYR.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13542 |
+
pdf/train/BJxQxeBYwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13543 |
+
pdf/train/HkezXnA9YX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13544 |
+
pdf/train/S1gTA5VggE.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13545 |
+
pdf/train/ryxf9CEKDr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13546 |
+
pdf/train/vlcVTDaufN.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13547 |
+
pdf/train/H38f_9b90BO.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13548 |
+
pdf/train/WWRBHhH158K.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13549 |
+
pdf/train/HyxCxhRcY7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13550 |
+
pdf/train/ryE98iR5tm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13551 |
+
pdf/train/ByJHuTgA-.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13552 |
+
pdf/train/SJMGPrcle.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13553 |
+
pdf/train/HJnQJXbC-.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13554 |
+
pdf/train/rJeU_1SFvr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13555 |
+
pdf/train/BJlLdhNFPr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13556 |
+
pdf/train/S1gyl6Vtvr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13557 |
+
pdf/train/x5hh6N9bUUb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13558 |
+
pdf/train/r1lZgyBYwS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13559 |
+
pdf/train/HysBZSqlx.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13560 |
+
pdf/train/SJl7DsR5YQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13561 |
+
pdf/train/S1HlA-ZAZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13562 |
+
pdf/train/S1fHmlbCW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13563 |
+
pdf/train/BJMvBjC5YQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13564 |
+
pdf/train/rJg76kStwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13565 |
+
pdf/train/H1xFWgrFPS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13566 |
+
pdf/train/Hkem-lrtvH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13567 |
+
pdf/train/rJzLciCqKm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13568 |
+
pdf/train/qcjOWDHAc4J.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13569 |
+
pdf/train/q1eCa1kMfDd.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13570 |
+
pdf/train/K6y77KRUowQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13571 |
+
pdf/train/yvQKLaqNE6M.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13572 |
+
pdf/train/I6NRcao1w-X.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13573 |
+
pdf/train/-iu9-C_lan.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13574 |
+
pdf/train/S1m6h21Cb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13575 |
+
pdf/train/blfSjHeFM_e.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13576 |
+
pdf/train/o2tx_m7hK3t.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13577 |
+
pdf/train/ARFshOO1Iu.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13578 |
+
pdf/train/tHgJoMfy6nI.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13579 |
+
pdf/train/r1WUqIceg.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13580 |
+
pdf/train/HJ_aoCyRZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13581 |
+
pdf/train/H1gza2NtwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13582 |
+
pdf/train/-msETI57gCH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13583 |
+
pdf/train/rJY3vK9eg.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13584 |
+
pdf/train/Uq_tGs7N54M.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13585 |
+
pdf/train/S1sRrN-CW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13586 |
+
pdf/train/MD3D5UbTcb1.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13587 |
+
pdf/train/rygqqsA9KX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13588 |
+
pdf/train/S11KBYclx.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13589 |
+
pdf/train/2UyqK45_djA.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13590 |
+
pdf/train/Byx9p2EtDH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13591 |
+
pdf/train/BkUHlMZ0b.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13592 |
+
pdf/train/B1zlp1bRW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13593 |
+
pdf/train/BJ9fZNqle.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13594 |
+
pdf/train/rcQdycl0zyk.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13595 |
+
pdf/train/9Y7_c5ZAd5i.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13596 |
+
pdf/train/PhtFY9plHk.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13597 |
+
pdf/train/SJxDDpEKvH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13598 |
+
pdf/train/yT7-k6Q6gda.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13599 |
+
pdf/train/B1eY_pVYvB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13600 |
+
pdf/train/8xoN9ZdSW8.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13601 |
+
pdf/train/fATZNtA1-V0.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13602 |
+
pdf/train/8yKEo06dKNo.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13603 |
+
pdf/train/B1eksh4KvH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13604 |
+
pdf/train/HkgxasA5Ym.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13605 |
+
pdf/train/H1egcgHtvB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13606 |
+
pdf/train/ryewE3R5YX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13607 |
+
pdf/train/ryrGawqex.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13608 |
+
pdf/train/IXexLXymbZ9.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13609 |
+
pdf/train/KJ5h-yfUHa.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13610 |
+
pdf/train/Bkg3g2R9FX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13611 |
+
pdf/train/SyxKrySYPr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13612 |
+
pdf/train/9DlCh34E1bN.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13613 |
+
pdf/train/ZPa2SyGcbwh.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13614 |
+
pdf/train/jlgCDIrAv0_.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13615 |
+
pdf/train/SJgNkpVFPr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13616 |
+
pdf/train/HJg_ECEKDr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13617 |
+
pdf/train/FZ1oTwcXchK.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13618 |
+
pdf/train/WH0taVJii5_.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13619 |
+
pdf/train/ZqB2GD-Ixn.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13620 |
+
pdf/train/Byg9bxrtwS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13621 |
+
pdf/train/qpsl2dR9twy.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13622 |
+
pdf/train/HJxeWnCcF7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13623 |
+
pdf/train/SkxgnnNFvH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13624 |
+
pdf/train/rG2ponW2Si.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13625 |
+
pdf/train/8vXYx6d8Wc.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13626 |
+
pdf/train/H1zriGeCZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13627 |
+
pdf/train/r1lohoCqY7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13628 |
+
pdf/train/BkVsEMYel.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13629 |
+
pdf/train/H1eqviAqYX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13630 |
+
pdf/train/rJ4km2R5t7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13631 |
+
pdf/train/Hyx4knR9Ym.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13632 |
+
pdf/train/jWkw45-9AbL.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13633 |
+
pdf/train/BkMWx309FX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13634 |
+
pdf/train/Wi9tWlxh4Jwu6.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13635 |
+
pdf/train/rkl3m1BFDB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13636 |
+
pdf/train/H1lmyRNFvr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13637 |
+
pdf/train/SJgw51HFDr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13638 |
+
pdf/train/S1xNEhR9KX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13639 |
+
pdf/train/lM2971LAwV.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13640 |
+
pdf/train/H1ebTsActm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13641 |
+
pdf/train/BkM3ibZRW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13642 |
+
pdf/train/KCd-3Pz8VjM.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13643 |
+
pdf/train/B7v4QMR6Z9w.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13644 |
+
pdf/train/Byg3y3C9Km.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13645 |
+
pdf/train/S1vyujVye.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13646 |
+
pdf/train/S1x2PCNKDB.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13647 |
+
pdf/train/ETBc_MIMgoX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13648 |
+
pdf/train/HylVB3AqYm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13649 |
+
pdf/train/BJbD_Pqlg.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13650 |
+
pdf/train/rJgbSn09Ym.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13651 |
+
pdf/train/Xh5eMZVONGF.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13652 |
+
pdf/train/H1ltQ3R9KQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13653 |
+
pdf/train/l2UWXn5iBQI.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13654 |
+
pdf/train/HJaDJZ-0W.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13655 |
+
pdf/train/rkGG6s0qKQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13656 |
+
pdf/train/LU687itn08w.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13657 |
+
pdf/train/y_OmkmCH9w.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13658 |
+
pdf/train/H1lS8oA5YQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13659 |
+
pdf/train/ZzwDy_wiWv.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13660 |
+
pdf/train/XQQA6-So14.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13661 |
+
pdf/train/pvjfA4wogD6.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13662 |
+
pdf/train/5k8F6UU39V.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13663 |
+
pdf/train/dNy_RKzJacY.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13664 |
+
pdf/train/HJgpugrKPS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13665 |
+
pdf/train/HyUmbjsiz.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13666 |
+
pdf/train/ebS5NUfoMKL.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13667 |
+
pdf/train/e68IYJNOYau.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13668 |
+
pdf/train/Hk1iOLcle.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13669 |
+
pdf/train/wTutcPE7zOC.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13670 |
+
pdf/train/rqfq0CYIekd.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13671 |
+
pdf/train/XxP75wV6JGH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13672 |
+
pdf/train/rkMW1hRqKX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13673 |
+
pdf/train/P9TYG0j-wtG.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13674 |
+
pdf/train/HyMS8iRcK7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13675 |
+
pdf/train/Ig53hpHxS4.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13676 |
+
pdf/train/x2TMPhseWAW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13677 |
+
pdf/train/E3Ys6a1NTGT.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13678 |
+
pdf/train/Syx5eT4KDS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13679 |
+
pdf/train/MmCRswl1UYl.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13680 |
+
pdf/train/Hyx6Bi0qYm.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13681 |
+
pdf/train/BylIciRcYQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13682 |
+
pdf/train/HkmaTz-0W.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13683 |
+
pdf/train/8E1-f3VhX1o.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13684 |
+
pdf/train/gV3wdEOGy_V.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13685 |
+
pdf/train/qDrpme0FAi.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13686 |
+
pdf/train/e_yvNqkJKAW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13687 |
+
pdf/train/SUyxNGzUsH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13688 |
+
pdf/train/SkxpxJBKwS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13689 |
+
pdf/train/S1FQEfZA-.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13690 |
+
pdf/train/VRgITLy0l2.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13691 |
+
pdf/train/D51irFX8UOG.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13692 |
+
pdf/train/B1uvH_gC-.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13693 |
+
pdf/train/yWd42CWN3c.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13694 |
+
pdf/train/gjBz22V93a.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13695 |
+
pdf/train/S1vuO-bCW.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13696 |
+
pdf/train/rkTBjG-AZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13697 |
+
pdf/train/GvqjmSwUxkY.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13698 |
+
pdf/train/H1-nGgWC-.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13699 |
+
pdf/train/ryenvpEKDr.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13700 |
+
pdf/train/NiM9Q7Z95z.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13701 |
+
pdf/train/rJxbJeHFPS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13702 |
+
pdf/train/SyfdsjA9FX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13703 |
+
pdf/train/rkeYUsRqKQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13704 |
+
pdf/train/ypJS_nyu-I.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13705 |
+
pdf/train/Skh4jRcKQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13706 |
+
pdf/train/Hk4dFjR5K7.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13707 |
+
pdf/train/HkwoSDPgg.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13708 |
+
pdf/train/Hkg9HgBYwH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13709 |
+
pdf/train/rJNpifWAb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13710 |
+
pdf/train/HJIoJWZCZ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13711 |
+
pdf/train/SJlPOCEKvH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13712 |
+
pdf/train/rkKCdAdgx.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13713 |
+
pdf/train/S1xBioR5KX.pdf filter=lfs diff=lfs merge=lfs -text
|
| 13714 |
+
pdf/train/ogciCC6fmBl.pdf filter=lfs diff=lfs merge=lfs -text
|
parse/train/0migj5lyUZl/0migj5lyUZl.md
ADDED
|
@@ -0,0 +1,360 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A STRONG ON-POLICY COMPETITOR TO PPO
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
As a recognized variant and improvement for Trust Region Policy Optimization (TRPO), proximal policy optimization (PPO) has been widely used with several advantages: efficient data utilization, easy implementation, and good parallelism. In this paper, a first-order gradient reinforcement learning algorithm called Policy Optimization with Penalized Point Probability Distance (POP3D), which is a lower bound to the square of total variance divergence, is proposed as another powerful variant. The penalty item has dual effects, prohibiting policy updates from overshooting and encouraging more explorations. By carefully controlled experiments on both discrete and continuous benchmarks, our approach is proved highly competitive to PPO.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
With the development of deep reinforcement learning, lots of impressive results have been produced in a wide range of fields such as playing Atari game (Mnih et al., 2015; Hessel et al., 2018), controlling robotics (Lillicrap et al., 2015), Go (Silver et al., 2017), neural architecture search (Tan et al., 2019; Pham et al., 2018).
|
| 12 |
+
|
| 13 |
+
The basis of a reinforcement learning algorithm is generalized policy iteration (Sutton & Barto, 2018), which states two essential iterative steps: policy evaluation and improvement. Among various algorithms, policy gradient is an active branch of reinforcement learning whose foundations are Policy Gradient Theorem and the most classical algorithm REINFORCEMENT (Sutton & Barto, 2018). Since then, handfuls of policy gradient variants have been proposed, such as Deep Deterministic Policy Gradient (DDPG) (Lillicrap et al., 2015), Asynchronous Advantage Actor-Critic (A3C) (Mnih et al., 2016), Actor-Critic using Kronecker-factored Trust Region (ACKTR) (Wu et al., 2017), and Proximal Policy Optimization (PPO) (Schulman et al., 2017).
|
| 14 |
+
|
| 15 |
+
Improving the strategy monotonically had been nontrivial until Schulman et al. (2015) proposed Trust Region Policy Optimization (TRPO), in which Fisher vector product is utilized to cut down the computing burden. Specifically, Kullback–Leibler divergence (KLD) acts as a hard constraint in place of objective, because its corresponding coefficient is difficult to set for different problems. However, TRPO still has several drawbacks: too complicated, inefficient data usage. Quite a lot of efforts have been devoted to improving TRPO since then and the most commonly used one is PPO.
|
| 16 |
+
|
| 17 |
+
PPO can be regarded as a first-order variant of TRPO and have obvious improvements in several facets. In particular, a pessimistic clipped surrogate objective is proposed where TRPO’s hard constraint is replaced by the clipped action probability ratio. In such a way, it constructs an unconstrained optimization problem so that any first-order stochastic gradient optimizer can be directly applied. Besides, it’s easier to be implemented and more robust against various problems, achieving an impressive result on Atari games (Brockman et al., 2016). However, the cost of data sampling is not always cheap. Haarnoja et al. (2018) design an off-policy algorithm called Soft Actor-Critic and achieves the state of the art result by encouraging better exploration using maximum entropy.
|
| 18 |
+
|
| 19 |
+
In this paper, we focus on the on-policy improvement to improve PPO and answer the question: how to successfully leverage penalized optimization to solve the constrained one which is formulated by Schulman et al. (2015).
|
| 20 |
+
|
| 21 |
+
1. It proposes a simple variant of TRPO called POP3D along with a new surrogate objective containing a point probability penalty item, which is symmetric lower bound to the square of the total variance divergence of policy distributions. Specifically, it helps to stabilize the learning process and encourage exploration. Furthermore, it escapes from penalty item setting headache along with penalized version TRPO, where is arduous to select one fixed value for various environments.
|
| 22 |
+
|
| 23 |
+
2. It achieves state-of-the-art results among on-policy algorithms with a clear margin on 49 Atari games within 40 million frame steps based on two shared metrics. Moreover, it also achieves competitive results compared with PPO in the continuous domain. It dives into the mechanism of PPO’s improvement over TRPO from the perspective of solution manifold, which also plays an important role in our method.
|
| 24 |
+
|
| 25 |
+
3. It enjoys almost all PPO’s advantages such as easy implementation, fast learning ability.
|
| 26 |
+
|
| 27 |
+
We provide the code and training logs to make our work reproducible.
|
| 28 |
+
|
| 29 |
+
# 2 PRELIMINARY KNOWLEDGE AND RELATED WORK
|
| 30 |
+
|
| 31 |
+
# 2.1 POLICY GRADIENT
|
| 32 |
+
|
| 33 |
+
Agents interact with the environment and receive rewards which are used to adjust their policy in turn. At state $s _ { t }$ , one agent takes strategy $\pi$ and transfers to a new state $s _ { t + 1 }$ , rewarded $r _ { t }$ by the environment. Maximizing discounted return (accumulated rewards) $R _ { t }$ is its objective. In particular, given a policy $\pi$ , $R _ { t }$ is defined as
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
R _ { t } = \sum _ { n = 0 } ^ { \infty } ( r _ { t } + \gamma r _ { t + 1 } + \gamma ^ { 2 } r _ { t + 2 } + \ldots + \gamma ^ { n } r _ { t + n } ) .
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
$\gamma$ is the discounted coefficient to control future rewards, which lies in the range $( 0 , 1 )$ . Regarding a neural network with parameter $\theta$ , the policy $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } )$ can be learned by maximizing Equation 1 using the back-propagation algorithm. Particularly, given $Q ( s , a )$ which represents the agent’s return in state $s$ after taking action $a$ , the objective function can be written as
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\operatorname* { m a x } _ { \theta } \quad \mathbb { E } _ { s , a } \log \pi _ { \theta } ( a | s ) Q ( s , a ) .
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
Equation 2 lays the foundation for handfuls of policy gradient based algorithms. Another variant can be deduced by using
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
A ( s , a ) = Q ( s , a ) - V ( s )
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
to replace $Q ( s , a )$ in Equation 2 equivalently, $V ( s )$ can be any function so long as $V$ depends on $s$ but not $a$ . In most cases, state value function is used for $V$ , which not only helps to reduce variations but has clear physical meaning. Formally, it can be written as
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\operatorname* { m a x } _ { \theta } \quad \mathbb { E } _ { s , a } \log \pi _ { \theta } ( a | s ) A ( s , a ) .
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
# 2.2 ADVANTAGE ESTIMATE
|
| 58 |
+
|
| 59 |
+
A commonly used method for advantage calculation is one-step estimation, which follows
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
A ( s _ { t } , a _ { t } ) = Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) = r _ { t } + \gamma V ( s _ { t + 1 } ) - V ( s _ { t } ) .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
However, a more accurate method called generalized advantage estimation is proposed in Schulman et al. (2016), where all time steps of estimation are combined and summarized using $\lambda$ -based weights,. The generalized advantage estimator $\hat { A } _ { t } ^ { G A E ( \gamma , \lambda ) }$ is defined by Schulman et al. (2016) as
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { c } { { \hat { A } _ { t } ^ { G A E ( \gamma , \lambda ) } : = ( 1 - \lambda ) * ( \hat { A } _ { t } ^ { ( 1 ) } + \lambda \hat { A } _ { t } ^ { ( 2 ) } + \lambda ^ { 2 } \hat { A } _ { t } ^ { ( 3 ) } + . . . ) = \displaystyle \sum _ { l = 0 } ^ { \infty } ( \gamma \lambda ) ^ { l } \delta _ { t + l } ^ { V } } } \\ { { \displaystyle \delta _ { t + l } ^ { V } = r _ { t + l } + \gamma V ( s _ { t + l + 1 } ) - V ( s _ { t + l } ) . } } \\ { { \displaystyle \hat { A } _ { t } ^ { ( k ) } : = \sum _ { l = 0 } ^ { k - 1 } \gamma ^ { l } \delta _ { t + l } ^ { V } = - V ( s _ { t } ) + r _ { t } + \gamma r _ { t + 1 } + \cdot \cdot \cdot + \gamma ^ { k - 1 } r _ { t + k - 1 } + \gamma ^ { k } V ( s _ { t + k } ) } } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
The parameter $\lambda$ meets $0 \leq \lambda \leq 1$ , which controls the trade-off between bias and variance. All methods in this paper utilize $\hat { A } _ { t } ^ { G A E ( \gamma , \lambda ) }$ to estimate the advantage.
|
| 72 |
+
|
| 73 |
+
# 2.3 TRUST REGION POLICY OPTIMIZATION
|
| 74 |
+
|
| 75 |
+
Schulman et al. (2015) propose TRPO to update the policy monotonically. In particular, its mathematical form is
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array} { r l } { \underset { \theta } { \operatorname* { m a x } } } & { \mathbb { E } _ { t } [ \frac { \pi _ { \theta } \left( a _ { t } \vert s _ { t } \right) } { \pi _ { \theta _ { o l d } } \left( a _ { t } \vert s _ { t } \right) } \hat { A } _ { t } ] - C \mathbb { E } _ { t } [ K L [ \pi _ { \theta _ { o l d } } ( \cdot \vert s _ { t } ) , \pi _ { \theta } ( \cdot \vert s _ { t } ) ] ] } \\ & { \epsilon = \underset { s } { \operatorname* { m a x } } E _ { a \sim \pi _ { \theta } \left( a \vert s \right) } [ A _ { \pi _ { \theta _ { o l d } } } ( s , a ) ] ) } \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $C$ is the penalty coefficient, $\begin{array} { r } { C = \frac { 2 \epsilon \gamma } { ( 1 - \gamma ) ^ { 2 } } } \end{array}$ .
|
| 82 |
+
|
| 83 |
+
In practice, the policy update steps would be too small if $C$ is valued as Equation 7. In fact, it’s intractable to calculate $C$ beforehand since it requires traversing all states to reach the maximum. Moreover, inevitable bias and variance will be introduced by estimating the advantages of old policy while training. Instead, a surrogate objective is maximized based on the KLD constraint between the old and new policy, which can be written as below,
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array} { r l } { \underset { \theta } { \operatorname* { m a x } } } & { \mathbb { E } _ { t } [ \frac { \pi _ { \theta } \left( a _ { t } \vert s _ { t } \right) } { \pi _ { \theta _ { o l d } } \left( a _ { t } \vert s _ { t } \right) } \hat { A } _ { t } ] } \\ { s . t . } & { \mathbb { E } _ { t } [ K L [ \pi _ { \theta _ { o l d } } ( \cdot \vert s _ { t } ) , \pi _ { \theta } ( \cdot \vert s _ { t } ) ] ] \leq \delta } \end{array}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\delta$ is the KLD upper limitation. In addition, the conjugate gradient algorithm is applied to solve Equation 8 more efficiently. Two major problems have yet to be addressed: one is its complexity even using the conjugate gradient approach, another is compatibility with architectures that involve noise or parameter sharing tricks (Schulman et al., 2017).
|
| 90 |
+
|
| 91 |
+
# 2.4 PROXIMAL POLICY OPTIMIZATION
|
| 92 |
+
|
| 93 |
+
To overcome the shortcomings of TRPO, PPO replaces the original constrained problem with a pessimistic clipped surrogate objective where KL constraint is implicitly imposed. The loss function can be written as
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\begin{array} { r l r } & { } & { L ^ { { \cal C } L I P } ( \theta ) = \mathbb { E } _ { t } [ \operatorname* { m i n } ( r _ { t } ( \theta ) \hat { A } _ { t } , c l i p ( r _ { t } ( \theta ) , 1 - \epsilon , 1 + \epsilon ) \hat { A } _ { t } ) ] } \\ & { } & { r _ { t } ( \theta ) = \frac { \pi _ { \theta } \left( a _ { t } | s _ { t } \right) } { \pi _ { \theta _ { o l d } } \left( a _ { t } | s _ { t } \right) } } \end{array}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where $\epsilon$ is a hyper-parameter to control the clipping ratio. Except for the clipped PPO version, KL penalty versions including fixed and adaptive KLD. Besides, their simulation results convince that clipped PPO performs best with an obvious margin across various domains.
|
| 100 |
+
|
| 101 |
+
# 3 POLICY OPTIMIZATION WITH PENALIZED POINT PROBABILITY DISTANCE
|
| 102 |
+
|
| 103 |
+
Before diving into the details of POP3D, we review some drawbacks of several methods, which partly motivate us.
|
| 104 |
+
|
| 105 |
+
# 3.1 DISADVANTAGES OF KULLBACK-LEIBLER DIVERGENCE
|
| 106 |
+
|
| 107 |
+
TRPO (Schulman et al., 2015) induced the following inequality1,
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\begin{array} { c } { { \eta ( \pi _ { \theta } ) \leq L _ { \pi _ { \theta _ { o l d } } } ( \pi _ { \theta } ) + \displaystyle \frac { 2 \epsilon \gamma } { ( 1 - \gamma ) ^ { 2 } } \alpha ^ { 2 } } } \\ { { \alpha = D _ { T V } ^ { \operatorname* { m a x } } ( \pi _ { \theta _ { o l d } } , \pi _ { \theta } ) } } \\ { { D _ { T V } ^ { \operatorname* { m a x } } ( \pi _ { \theta _ { o l d } } , \pi _ { \theta } ) = \displaystyle \operatorname* { m a x } _ { s } D _ { T V } \bigl ( \pi _ { \theta _ { o l d } } | | \pi _ { \theta } \bigr ) } } \end{array}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
TRPO replaces the square of total variation divergence $D _ { T V } ^ { m a x } ( \pi _ { \theta _ { o l d } } , \pi _ { \theta } )$ by $D _ { K L } ^ { \operatorname * { m a x } } ( \pi _ { \theta _ { o l d } } , \pi _ { \theta } ) =$ $\operatorname* { m a x } _ { s } D _ { K L } ( \pi _ { \theta _ { o l d } } | | \pi _ { \theta } )$ .
|
| 114 |
+
|
| 115 |
+
Given a discrete distribution $p$ and $q$ , their total variation divergence $D _ { T V } ( p | | q )$ is defined as
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
D _ { T V } ( p | | q ) : = \frac { 1 } { 2 } \sum _ { i } \left| p _ { i } - q _ { i } \right|
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
in TRPO (Schulman et al., 2015). Obviously, $D _ { T V }$ is symmetric by definition, while KLD is asymmetric. Formally, given state $s$ , KLD of $\pi _ { \theta _ { o l d } } ( \cdot | s )$ for $\pi _ { \boldsymbol { \theta } } ( \cdot | s )$ can be written as
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
D _ { K L } ( \pi _ { \theta _ { o l d } } ( \cdot | s ) | | \pi _ { \theta } ( \cdot | s ) ) : = \sum _ { a } \pi _ { \theta _ { o l d } } ( a | s ) \ln \frac { \pi _ { \theta _ { o l d } } ( a | s ) } { \pi _ { \theta } ( a | s ) } .
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
Similarly, KLD in the continuous domain can be defined simply by replacing summation with integration. The consequence of KLD’s asymmetry leads to a non-negligible difference of whether choose $D _ { K L } ( \pi _ { \theta _ { o l d } } | | \pi _ { \theta } )$ or $D _ { K L } ( \pi _ { \theta } | | \pi _ { \theta _ { o l d } } \rangle$ . Sometimes, those two choices result in quite different solutions. Robert compared the forward and reverse KL on a distribution, one solution matches only one of the modes, and another covers both modes (Murphy, 2012). Therefore, KLD is not an ideal bound or approximation for the expected discounted cost.
|
| 128 |
+
|
| 129 |
+
# 3.2 DISCUSSION ABOUT PESSIMISTIC PROXIMAL POLICY
|
| 130 |
+
|
| 131 |
+
In fact, PPO is called pessimistic proximal policy optimization2 in the meaning of its objective construction style. Without loss of generality, supposing $A _ { t } > 0$ for given state $s _ { t }$ and action $a _ { t }$ , and the optimal choice is $a _ { t } ^ { \star }$ . When $a _ { t } = a _ { t } ^ { \star }$ , a good update policy is to increase the probability of action to a relatively high value $a _ { t } ^ { \star }$ by adjusting $\theta$ . However, the clipped item $c l i p ( r _ { t } ( \theta ) , 1 - \epsilon , 1 + \epsilon ) \hat { A } _ { t }$ will fully contribute to the loss function by the minimum operation, which ignores further reward by zero gradients even though it’s the optimal action. Other situation with $A _ { t } < 0$ can be analyzed in the same manner.
|
| 132 |
+
|
| 133 |
+
However, if the pessimistic limitation is removed, PPO’s performance decreases dramatically (Schulman et al., 2017), which is again confirmed by our preliminary experiments. In a word, the pessimistic mechanism plays a very critical role for PPO in that it has a relatively weak preference for a good action decision at a given state, which in turn affects its learning efficiency.
|
| 134 |
+
|
| 135 |
+
# 3.3 RESTRICTED SOLUTION MANIFOLD FOR EXACT DISTRIBUTION MATCHING
|
| 136 |
+
|
| 137 |
+
To be simple, we don’t take the model identifiability issues along with deep neural network into account here because they don’t affect the following discussion much (LeCun et al., 2015). Suppose $\pi _ { \theta \star }$ is the optimal solution for a given environment, in most cases, more than one parameter set for $\theta$ can generate the ideal policy, especially when $\pi _ { \theta \star }$ is learned by a deep neural network. In other words, the relationship between $\theta$ and $\pi _ { \theta \star }$ is many to one. On the other hand, when agents interact with the environment using policy represented by neural networks, they prefer to takes the action with the highest probability. Although some strategies of enhancing exploration are applied, they don’t affect the policy much in the meaning of expectation.
|
| 138 |
+
|
| 139 |
+
RL methods can help agents learn useful policies after fully interacting with the environment. Take Atari-Pong game for example, when an agent sees a Pong ball coming close to the right (state $s _ { 1 }$ ), its optimal policy is moving the racket to the right position (for example, the "RIGHT" action) with a distribution $p _ { \theta _ { 1 } } ^ { \bar { s _ { 1 } } } = [ 0 . 0 5 , \mathbf { \bar { 0 } } . 0 5 , 0 . 1 , 0 . 7 , 0 . 0 5 , 0 . 0 5 ] ^ { 3 }$ . The probability of selecting "RIGHT" is a relatively high value such as 0.7. It’s almost impossible to push it to be 1.0 exactly since it’s produced by a softmax operation on several discrete actions. In fact, we hardly obtain the optimal solution accurately. Instead, our goal is to find a good enough policy. In this case, the policy of pushing $p ( { \mathrm { R I G H T } } | s _ { 1 } )$ above a threshold is sufficient to be a good one. In other words, paying attention to the most critical actions is sufficient, and we don’t care much the probability value of the other non-critical actions. For example, a good policy at $s _ { 1 }$ is $[ ? , ? , \geq 0 . 7$ , ?,?,?]. Note that $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } )$ is represented by a neural network parameterized using $\theta$ and a good policy for the whole game means that the network can perform well across the whole state space. Focusing on those critical actions at each state4 and ignoring non-critical ones can help the network learn better and more easily.
|
| 140 |
+
|
| 141 |
+
Using a penalty such as KLD cannot utilize this good property, because it involves all of the actions’ probabilities. Moreover, it doesn’t stop penalizing unless two distributions become exactly indifferent or the advantage item is large enough to compensate for the KLD cost. Therefore, even if $\theta$ outputs hat two $\theta _ { o l d }$ the same meters for obaband ty for th, where s. Su and $\theta _ { 1 } \colon \theta _ { 2 }$ $\theta _ { 3 }$ $\mathcal { P } _ { \theta _ { 2 } } ^ { s _ { 1 } - } = [ 0 . 0 1 , 0 . 1 5 , 0 . 0 5 , 0 . 7 , 0 . 0 1 , 0 . 0 8 ]$ $p _ { \theta _ { 3 } } ^ { s _ { 1 } } =$ [0.01, 0.01, 0.01, 0.7, 0.26, 0.01]. When the agent already chooses RIGHT at $S _ { 1 }$ , the loss item from a good penalized distance should be small. However, $D _ { K L } ( \pi _ { \theta _ { 1 } } ( \cdot | s _ { 1 } ) | | \pi _ { \theta _ { 2 } } ( \cdot | s _ { 1 } ) ) { = } 0 . 1 5$ and $D _ { K L } \big ( \pi _ { \theta _ { 1 } } ( \cdot | s _ { 1 } ) \vert \vert \pi _ { \theta _ { 3 } } ( \cdot | s _ { 1 } ) \big ) { = } 0 . 3 9$ . However, it’s not necessary to require the distribution of other actions $( \mathbf { \hat { \Pi } } \mathbf { \tilde { N O O P } } ^ { \prime }$ , ‘FIRE’, ‘LEFT’, ‘RIGHTFIRE’, ‘LEFTFIRE’) of $p _ { \theta _ { 2 } } ^ { s _ { 1 } }$ near to $p _ { \theta _ { 1 } } ^ { s _ { 1 } }$ . Instead, it’s better to relax this requirement to enlarge the freedom degree of the network and focus on learning important actions. Doing this brings another advantage, the agent can explore more for non critical actions. From the perspective of the manifold, optimal parameters constitute a solution manifold. The KLD penalty will act until $\theta$ exactly locates in the solution if possible, akin to mapping a point onto a curve. Instead, if the agent concentrates only on critical actions like a human does, it’s much easier to approach the manifold in a higher dimension. This is comparable to expanding the solution manifold by at least one dimension, e.g. from curves to surfaces or from surfaces to spheres.
|
| 142 |
+
|
| 143 |
+
# 3.4 EXPLORATION
|
| 144 |
+
|
| 145 |
+
One shared highlight in reinforcement learning is the balance between exploitation and exploration. For a policy-gradient algorithm, entropy is added in the total loss to encourage exploration in most cases. When included in the loss function, KLD penalizes the old and new policy probability mismatch for all possible actions as Equation 12 given a state $s$ . This strict punishment for every action’s probability mismatch, which discourages exploration.
|
| 146 |
+
|
| 147 |
+
# 3.5 POINT PROBABILITY DISTANCE
|
| 148 |
+
|
| 149 |
+
To overcome the above-mentioned shortcomings, we propose a surrogate objective with the point probability distance penalty, which is symmetric and more optimistic than PPO. In the discrete domain, when the agent takes action $a$ , the point probability distance between $\pi _ { \theta _ { o l d } } ( \cdot | s )$ and $\pi _ { \boldsymbol { \theta } } ( \cdot | \boldsymbol { s } )$ is defined by
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
D _ { p p } ^ { a } ( \pi _ { \theta _ { o l d } } ( \cdot | s ) , \pi _ { \theta } ( \cdot | s ) ) = ( \pi _ { \theta _ { o l d } } ( a | s ) - \pi _ { \theta } ( a | s ) ) ^ { 2 } .
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
Attention should be paid to the penalty definition item, the distance is measured by the point probability, which emphasizes its mismatch for the sampled actions for a state. Unless it would lead to confusion, we omit $a$ for simplicity in the following sections. Undoubtedly, $D _ { p p }$ is symmetric by definition. Furthermore, it can be proved that $D _ { p p }$ is indeed a lower bound for the total variance divergence $D _ { T V }$ . As a special case, it can be easily proved that for binary distribution, $D _ { T V } ^ { 2 } ( p | | q ) =$ $D _ { p p } ( p | | q )$ .
|
| 156 |
+
|
| 157 |
+
Theorem 3.1. For two discrete probability distributions $p$ and $q$ with $K$ values, then $D _ { T V } ^ { 2 } ( p | | q ) \geq$ $D _ { p p } ^ { a } ( p | | q )$ holds for any action a and $\mathbb { E } _ { a } D _ { p p } ^ { a } ( p | | q )$ is a lower bound for $D _ { T V } ^ { 2 } ( p | | q )$ .
|
| 158 |
+
|
| 159 |
+
Proof. Let $p _ { l } = \alpha , q _ { l } = \beta$ for the $l$ -th action $a$ , and suppose $a \geq b$ without loss of generalization. So,
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\begin{array} { l c l } { \displaystyle D _ { T V } ^ { 2 } ( p | | q ) } & { = } & { \displaystyle ( \frac { 1 } { 2 } \sum _ { i = 1 } ^ { K } | p _ { i } - q _ { i } | ) ^ { 2 } = ( \frac { 1 } { 2 } \sum _ { i = 1 , i \neq l } ^ { K } | p _ { i } - q _ { i } | + \frac { 1 } { 2 } | p _ { l } - q _ { l } | ) ^ { 2 } } \\ & { \ge } & { \displaystyle ( \frac { 1 } { 2 } | \sum _ { i = 1 , i \neq l } ^ { K } p _ { i } - q _ { i } | + \frac { 1 } { 2 } ( \alpha - \beta ) ) ^ { 2 } = ( \frac { 1 } { 2 } | 1 - \alpha - ( 1 - \beta ) | + \frac { 1 } { 2 } ( \alpha - \beta ) ) ^ { 2 } } \\ & { = } & { \displaystyle ( \frac { 1 } { 2 } ( \alpha - \beta ) + \frac { 1 } { 2 } ( \alpha - \beta ) ) ^ { 2 } = D _ { p p } ^ { \alpha } ( p | | q ) } \\ { \mathbb { E } _ { a } D _ { p p } ^ { a } ( p | | q ) } & { = } & { \displaystyle \sum _ { a } p ( a ) D _ { p p } ^ { a } ( p | | q ) \le \sum _ { a } p ( a ) D _ { T V } ^ { 2 } ( p | | q ) = D _ { T V } ^ { 2 } ( p | | q ) } \end{array}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
Since $0 \leq \pi _ { \theta } ( a | s ) \leq 1$ holds for discrete action space, $D _ { p p }$ has a lower and upper boundary: $0 \leq D _ { p p } \leq 1$ . Moreover, $D _ { p p }$ is less sensitive to action space dimension than KLD, which has a similar effect as PPO’s clipped ratio to increase robustness and enhance stability. Equation 13 stays unchanged for the continuous domain, and the only difference is $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } )$ represents point probability density instead of probability.
|
| 166 |
+
|
| 167 |
+
# 3.6 POP3D
|
| 168 |
+
|
| 169 |
+
After we have defined the point probability distance, we use a new surrogate objective $f _ { \theta }$ for POP3D, which can be written as
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\operatorname* { m a x } _ { \theta } \quad \mathbb { E } _ { t } [ \frac { \pi _ { \theta } ( a _ { t } | s _ { t } ) } { \pi _ { \theta _ { o l d } } ( a _ { t } | s _ { t } ) } \hat { A } _ { t } - \beta D _ { p p } ^ { a _ { t } } ( \pi _ { \theta _ { o l d } } ( \cdot | s _ { t } ) , \pi _ { \theta } ( \cdot | s _ { t } ) ) ] ,
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
where $\beta$ is the penalized coefficient. These combined advantages lead to considerable performance improvement, which escapes from the dilemma of choosing preferable penalty coefficient. Besides, we use generalized advantage estimates to calculate $\hat { A } _ { t }$ . Algorithm 1 shows the complete iteration process of POP3D. Moreover, it possesses the same computing cost and data efficiency as PPO.
|
| 176 |
+
|
| 177 |
+
# Algorithm 1 POP3D
|
| 178 |
+
|
| 179 |
+
1: Input: max iterations $L$ , actors $N$ , epochs $K$
|
| 180 |
+
2: for iteration $= 1$ to $L$ do
|
| 181 |
+
3: for actor $= 1$ to $N$ do
|
| 182 |
+
4: Run policy $\pi _ { \theta _ { o l d } }$ for $T$ time steps
|
| 183 |
+
5: Compute advantage estimations $\hat { A } _ { 1 } , . . . , \hat { A } _ { T }$
|
| 184 |
+
6: end for
|
| 185 |
+
7: for epoch $, = 1$ to $K$ do
|
| 186 |
+
8: Optimized loss objective $f ( \theta )$ w.r.t $\theta$ with mini-batch size $M \leq N T$ , then update $\theta _ { o l d } \theta$ .
|
| 187 |
+
9: end for
|
| 188 |
+
10: end for
|
| 189 |
+
|
| 190 |
+
# 3.7 WORKING MECHANISM OF POP3D
|
| 191 |
+
|
| 192 |
+
As for the toy example in Section 3.3, Therefore, it can help the agent to f $D _ { p p } ^ { R I G H T } ( \pi _ { \theta _ { 1 } } ( \cdot | s ) | | \pi _ { \theta _ { 2 } } ( \cdot | s ) = D _ { p p } ^ { R I G H T } ( \pi _ { \theta _ { 1 } } ( \cdot | s ) | | \pi _ { \theta _ { 3 } } ( \cdot | s ) = 0 .$ $\theta$ $\theta _ { o l d }$ Equation 14, the gradient $f ( \theta )$ w.r.t. $\theta$ can be written as
|
| 193 |
+
|
| 194 |
+
$$
|
| 195 |
+
\begin{array} { l l } { \nabla _ { \theta } f ( \theta ) = \frac { \nabla _ { \theta } \pi _ { \theta } \left( a _ { t } | s _ { t } \right) } { \pi _ { \theta _ { o l d } } \left( a _ { t } | s _ { t } \right) } \hat { A } _ { t } - 2 \beta [ \pi _ { \theta } ( a _ { t } | s _ { t } ) - \pi _ { \theta _ { o l d } } ( a _ { t } | s _ { t } ) ] \nabla _ { \theta } \pi _ { \theta } ( a _ { t } | s _ { t } ) } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \hat { A } _ { t } } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \pi _ { \theta } \pi _ { \theta } ( a _ { t } | s _ { t } ) [ \frac { \hat { A } _ { t } } { \pi _ { \theta _ { o l d } } \left( a _ { t } | s _ { t } \right) } - 2 \beta ( \pi _ { \theta } ( a _ { t } | s _ { t } ) - \pi _ { \theta _ { o l d } } ( a _ { t } | s _ { t } ) ) ] } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \hat { A } _ { t } } \\ { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \end{array}
|
| 196 |
+
$$
|
| 197 |
+
|
| 198 |
+
where $\delta ( \boldsymbol { a } _ { t } | \boldsymbol { s } _ { t } ) : = \pi _ { \boldsymbol { \theta } } ( \boldsymbol { a } _ { t } | \boldsymbol { s } _ { t } ) - \pi _ { \boldsymbol { \theta } _ { o l d } } ( \boldsymbol { a } _ { t } | \boldsymbol { s } _ { t } )$ . Suppose the agent selects $a _ { t }$ at $s _ { t }$ using $\pi _ { \theta _ { o l d } }$ and obtains a positive advantage $\hat { A } _ { t }$ , if $\pi _ { \boldsymbol { \theta } } \big ( a _ { t } | \boldsymbol { s } _ { t } \big )$ is larger than $\pi _ { \boldsymbol { \theta } } ( a _ { t } | \boldsymbol { s } _ { t } )$ , then $2 \beta \delta ( a _ { t } | s _ { t } )$ will play a damping role to avoid too greedy preference for $a _ { t }$ (i.e. too large probability), which in turn leaves more space for other actions to be explored. Other cases such as negative $\hat { A } _ { t }$ can be analyzed similarly. The hyper-parameter $\beta$ controls the damping force.
|
| 199 |
+
|
| 200 |
+
In the early stage of learning, $\pi _ { \theta _ { o l d } } ( a _ { t } | s _ { t } )$ is near $1 / K$ (taking $K$ discrete spaces for example) and the magnitude of $\hat { A } _ { t }$ is large, while the damping force is a bit weak. Therefore, the agent learns fast. Then $\beta$ shows a relative stronger force to avoid overshooting for action selection and encourage more exploration. As for the final stage, the policy changes slowly because the learning rate is low, where $\delta ( \boldsymbol { a } _ { t } | \boldsymbol { s } _ { t } )$ is small and therefore it converges.
|
| 201 |
+
|
| 202 |
+
# 3.8 RELATIONSHIP WITH PPO
|
| 203 |
+
|
| 204 |
+
To conclude this section, we take some time to see why PPO works by taking the above viewpoints into account. When we pour more attention to Equation 9, the ratio $r _ { t } ( \boldsymbol { \dot { \theta } } )$ only involves the probability for given action $a$ , which is chosen by policy $\pi$ . In other words, all other actions’ probabilities except $a$ are not activated, which no longer contribute to back-propagation and allow probability mismatch, which encourage exploration. This procedure behaves similarly to POP3D, which helps the network to learn more easily. Above all, POP3D is designed to conform with the regulations for overcoming above mentioned problems, and in the next section experiments from commonly used benchmarks will evaluate its performance.
|
| 205 |
+
|
| 206 |
+
# 4 EXPERIMENTS
|
| 207 |
+
|
| 208 |
+
# 4.1 CONTROLLED EXPERIMENTS SETUP
|
| 209 |
+
|
| 210 |
+
OpenAI Gym is a well-known simulation environment to test and evaluate various reinforcement algorithms, which is composed of both discrete (Atari) and continuous (Mujoco) domains (Brockman et al., 2016). Most recent deep reinforcement learning methods such as DQN variants (Van Hasselt et al., 2016; Wang et al., 2016; Schaul et al., 2015; Bellemare et al., 2017; Hessel et al., 2018), A3C, ACKTR, PPO are evaluated using only one set of hyper-parameters5. Therefore, we evaluate POP3D’s performance on 49 Atari games(v4, discrete action space ) and 7 Mujoco (v2, continuous).
|
| 211 |
+
|
| 212 |
+
Since PPO is a distinguished RL algorithm which defeats various methods such as A3C, A2C ACKTR, we focus on a detailed quantitative comparison with fine-tuned PPO. And we don’t consider large scale distributed algorithms Apex-DQN (Horgan et al., 2018) and IMPALA (Espeholt et al., 2018), because we concentrate on comparable and fair evaluation, while the latter is designed to apply with large scale parallelism. Nevertheless, some orthogonal improvements from those methods have the potentials to improve our method further. Furthermore, we include TRPO to acts as a baseline method. Engstrom et al. (2020) carefully study the underlying factor that helps PPO outperform TPRO. To avoid unfair comparisons, we carefully control the settings. In addition, quantitative comparisons between KLD and point probability penalty helps to convince the critical role of the latter, where the former strategy is named fixed KLD in Schulman et al. (2017) and can act as another good baseline in this context, named by BASELINE below.
|
| 213 |
+
|
| 214 |
+
In particular, we retrained one agent for each game with fine-tuned hyper-parameters6. To avoid the problems of reproduction about reinforcement algorithms mentioned in Henderson et al. (2018), we take the following measures:
|
| 215 |
+
|
| 216 |
+
• Use the same training steps and make use of the same amount of game frames(40M for Atari game and 10M for Mujoco).
|
| 217 |
+
• Use the same neural network structures, which is the CNN model with one action head and one value head for the Atari game, and a fully-connected model with one value head and one action head which produces the mean and standard deviation of diagonal Gaussian distribution as PPO.
|
| 218 |
+
• Initialize parameters using the same strategy as PPO.
|
| 219 |
+
• Keep Gym wrappers from Deepmind such as reward clipping and frame stacking unchanged for Atari domain, and enable 30 no-ops at the beginning of each episode.
|
| 220 |
+
• Use Adam optimizer (Kingma & Ba, 2014) and decrease $\alpha$ linearly from 1 to 0 for Atari domain as PPO.
|
| 221 |
+
|
| 222 |
+
To facilitate further comparisons with other approaches, we release the seeds and detailed results7(across the entire training process for different trials). In addition, we randomly select three seeds from $\{ 0 , 1 0 , 1 0 0 , 1 0 0 0 , 1 0 0 0 0 \}$ for two domains, {10,100,1000} for Atari and {0,10,100} for Mujoco in order to decrease unfavorable subjective bias stated in Henderson et al. (2018).
|
| 223 |
+
|
| 224 |
+
# 4.2 EVALUATION METRICS
|
| 225 |
+
|
| 226 |
+
PPO utilizes two score metrics for evaluating agents’ performance using various RL algorithms. One is the mean score of the last 100 episodes $S c o r e _ { 1 0 0 }$ , which measures how high a strategy can hit eventually. Another is the average score across all episodes $S c o r e _ { a l l }$ , which evaluates how fast an agent learns. In this paper, we conform to this routine and calculate individual metric by averaging three seeds in the same way.
|
| 227 |
+
|
| 228 |
+
# 4.3 DISCRETE DOMAIN COMPARISONS
|
| 229 |
+
|
| 230 |
+
Hyper-parameters We search hyper-parameter four times for the penalty coefficient $\beta$ based on four Atari games while keeping other hyper-parameters unchanged as PPO and fix $\beta = 5 . 0$ to train all Atari games. For BASELINE, we also search hyper-parameter four times on penalty coefficient $\beta$ and choose $\beta = 1 0 . 0$ . To save space, detailed hyper-parameter setting can be found in Table 6 and 7.
|
| 231 |
+
|
| 232 |
+
This process is not beneficial for POP3D owing to missing optimization for all hyper-parameters. There are two reasons to make this choice. On the one hand, it’s the simplest way to make a relatively fair comparison group such as keeping the same iterations and epochs within one loop to our knowledge. On the other hand, this process imposes low search requirements for time and resources. That’s to say, we can draw a conclusion that our method is at least competitive to PPO if it performs better on benchmarks.
|
| 233 |
+
|
| 234 |
+
Comparisons The final score of each game is averaged by three different seeds and the highest is in bold. As Table 1 shows, POP3D outperforms 32 across 49 Atari games given the final score, followed by PPO with 11, BASELINE with 5, and TRPO with 1. Interestingly, for games that POP3D score highest, BASELINE score worse than PPO more often than the other way round, which means that POP3D is not just an approximate version of BASELINE.
|
| 235 |
+
|
| 236 |
+
For another metric, POP3D wins 20 out of 49 Atari games which matches PPO with 18, followed by BASELINE with 6, and last ranked by TRPO with 5. If we measure the stability of an algorithm by the score variance of different trials, POP3D scores high with good stability across various seeds. And PPO behaves worse in Game Kangaroo and UpNDown. Interestingly, BASELINE shows a large variance for different seeds for several games such as BattleZone, Freeway, Pitfall, and Seaquest. POP3D reveals its better capacity to score high and similar fast learning ability in this domain. The detailed metric for each game is listed in Table 3 and 4.
|
| 237 |
+
|
| 238 |
+
# 4.4 CONTINUOUS DOMAIN COMPARISONS
|
| 239 |
+
|
| 240 |
+
Hyper-parameters For PPO, we use the same hyperparameter configuration as Schulman et al. (2017). Regarding POP3D, we search on two games three times and select 5.0 as the penalty coefficient. More details about hyper-parameters for PPO and POP3D are listed in Table 8. Unlike the Atari domain, we utilize the constant learning rate strategy as Schulman et al. (2017) in the continuous domain instead of the linear decrease strategy.
|
| 241 |
+
|
| 242 |
+
Comparison Results The scores are also averaged on three trials and summarized in Table 1. POP3D occupies 6 out of 7 games on $S c o r e _ { 1 0 0 }$ . Evaluation metrics of both across different games are illustrated in Table 2
|
| 243 |
+
|
| 244 |
+
Table 1: Top: The number of games "won" by each algorithm for Atari games. Bottom: The number of games won by each algorithm for Mujoco games. Each experiment is averaged across three seeds.
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Metric</td><td colspan="4">PPO POP3D BASELINE TRPO</td></tr><tr><td>Score100 Scoreall</td><td>11 18</td><td>32 20</td><td>5 6</td><td>1 5</td></tr><tr><td></td><td>Metric</td><td>PPO POP3D</td><td></td><td></td></tr><tr><td></td><td>Score100</td><td>1</td><td>6</td><td></td></tr><tr><td></td><td>Scoreall</td><td>4</td><td>3</td><td></td></tr></table>
|
| 247 |
+
|
| 248 |
+
and 5. In summary, both metrics indicate that POP3D is competitive to PPO in the continuous domain.
|
| 249 |
+
|
| 250 |
+
# 5 CONCLUSION
|
| 251 |
+
|
| 252 |
+
In this paper, we introduce a new reinforcement learning algorithm called POP3D (Policy Optimization with Penalized Point Probability Distance), which acts as a TRPO variant like PPO. Compared with KLD that is an upper bound for the square of total variance divergence between two distributions, the penalized point probability distance is a symmetric lower bound. Besides, it equivalently expands the optimal solution manifold effectively while encouraging exploration, which is a similar mechanism implicitly possessed by PPO. The proposed method not only possesses several critical improvements from PPO but outperforms with a clear margin on 49 Atari games from the respective of final scores and meets PPO’s match as for fast learning ability.
|
| 253 |
+
|
| 254 |
+
Table 2: Mean final scores (last 100 episodes) of PPO, POP3D on Mujoco games after 10M frames. The results are averaged by three trials.
|
| 255 |
+
|
| 256 |
+
<table><tr><td>Game</td><td>PPO</td><td>POP3D</td></tr><tr><td>HalfCheetah</td><td>2726.03</td><td>3184.54</td></tr><tr><td>Hopper</td><td>2027.21</td><td>1452.09</td></tr><tr><td>InvertedDblPendulum 4455.03</td><td></td><td>4907.64</td></tr><tr><td>InvertedPendulum</td><td>544.02</td><td>741.94</td></tr><tr><td>Reacher</td><td>-5.00</td><td>-4.29</td></tr><tr><td>Swimmer</td><td>111.88</td><td>112.08</td></tr><tr><td>Walker2d</td><td>1112.25</td><td>3966.01</td></tr></table>
|
| 257 |
+
|
| 258 |
+
More interestingly, it not only suffers less from the penalty item setting headache along with TRPO, where is arduous to select one fixed value for various environments but outperforms fixed KLD baseline from PPO. In summary, POP3D is highly competitive and an alternative to PPO.
|
| 259 |
+
|
| 260 |
+
# REFERENCES
|
| 261 |
+
|
| 262 |
+
Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. arXiv preprint arXiv:1707.06887, 2017.
|
| 263 |
+
|
| 264 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 265 |
+
|
| 266 |
+
Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Firdaus Janoos, Larry Rudolph, and Aleksander Madry. Implementation matters in deep rl: A case study on ppo and trpo. In International Conference on Learning Representations, 2020. URL https://openreview. net/forum?id ${ . } = { }$ r1etN1rtPB.
|
| 267 |
+
|
| 268 |
+
Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymir Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. arXiv preprint arXiv:1802.01561, 2018.
|
| 269 |
+
|
| 270 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, pp. 1861–1870, 2018.
|
| 271 |
+
|
| 272 |
+
Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 273 |
+
|
| 274 |
+
Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 275 |
+
|
| 276 |
+
Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado van Hasselt, and David Silver. Distributed prioritized experience replay. In International Conference on Learning Representations, 2018.
|
| 277 |
+
|
| 278 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 279 |
+
|
| 280 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436–444, 2015.
|
| 281 |
+
|
| 282 |
+
Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
|
| 283 |
+
|
| 284 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015.
|
| 285 |
+
|
| 286 |
+
Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pp. 1928–1937, 2016.
|
| 287 |
+
|
| 288 |
+
Kevin P Murphy. Machine learning: a probabilistic perspective. MIT press, 2012.
|
| 289 |
+
|
| 290 |
+
Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In International Conference on Machine Learning, pp. 4095–4104, 2018.
|
| 291 |
+
|
| 292 |
+
Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. arXiv preprint arXiv:1511.05952, 2015.
|
| 293 |
+
|
| 294 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pp. 1889–1897, 2015.
|
| 295 |
+
|
| 296 |
+
John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In ICLR, 2016.
|
| 297 |
+
|
| 298 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 299 |
+
|
| 300 |
+
David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017.
|
| 301 |
+
|
| 302 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 303 |
+
|
| 304 |
+
Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2820–2828, 2019.
|
| 305 |
+
|
| 306 |
+
Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double qlearning. In Thirtieth AAAI conference on artificial intelligence, 2016.
|
| 307 |
+
|
| 308 |
+
Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Hasselt, Marc Lanctot, and Nando Freitas. Dueling network architectures for deep reinforcement learning. In International conference on machine learning, pp. 1995–2003, 2016.
|
| 309 |
+
|
| 310 |
+
Yuhuai Wu, Elman Mansimov, Roger B Grosse, Shun Liao, and Jimmy Ba. Scalable trust-region method for deep reinforcement learning using kronecker-factored approximation. In Advances in neural information processing systems, pp. 5279–5288, 2017.
|
| 311 |
+
|
| 312 |
+
# A SCORE TABLES AND CURVES
|
| 313 |
+
|
| 314 |
+
Mean scores of various methods for Atari domain are listed in Table 3 and 4.
|
| 315 |
+
|
| 316 |
+
Table 3: Mean final scores (last 100 episodes) of PPO, POP3D, BASELINE and TRPO on Atari games after 40M frames. The results are averaged on three trials.
|
| 317 |
+
|
| 318 |
+
<table><tr><td>game</td><td>POP3D</td><td>PPO</td><td>BASELINE</td><td>TPRO</td></tr><tr><td>Alien</td><td>1510.80</td><td>1431.17</td><td>1311.23</td><td>1110.40</td></tr><tr><td>Amidar</td><td>729.15</td><td>790.75</td><td>655.10</td><td>200.56</td></tr><tr><td>Assault</td><td>5400.13</td><td>4438.82</td><td>1846.75</td><td>1363.46</td></tr><tr><td>Asterix</td><td>4310.67</td><td>3483.17</td><td>3657.67</td><td>2651.33</td></tr><tr><td>Asteroids</td><td>2488.10</td><td>1605.33</td><td>1615.37</td><td>2205.70</td></tr><tr><td>Atlantis</td><td>2193605.67</td><td>2140536.33</td><td>1515993.33</td><td>1419104.67</td></tr><tr><td>BankHeist</td><td>1212.23</td><td>1206.67</td><td>1124.43</td><td>1125.17</td></tr><tr><td>BattleZone</td><td>15466.67</td><td>14766.67</td><td>14690.00</td><td>15123.33</td></tr><tr><td>BeamRider</td><td>4549.00</td><td>2624.19</td><td>6898.09</td><td>5073.75</td></tr><tr><td>Bowling</td><td>38.99</td><td>47.27</td><td>30.48</td><td>31.24</td></tr><tr><td>Boxing</td><td>97.23</td><td>93.70</td><td>65.33</td><td>50.07</td></tr><tr><td>Breakout</td><td>458.41</td><td>281.93</td><td>67.70</td><td>40.65</td></tr><tr><td>Centipede</td><td>3315.44</td><td>3565.18</td><td>3393.93</td><td>3353.14</td></tr><tr><td>Chopper-Command</td><td>6308.33</td><td>4872.67</td><td>2676.00</td><td>2286.67</td></tr><tr><td>CrazyClimber</td><td>120247.33</td><td>105940.00</td><td>98219.67</td><td>87522.33</td></tr><tr><td>DemonAttack</td><td>61147.33</td><td>26740.57</td><td>57476.65</td><td>21525.08</td></tr><tr><td>DoubleDunk</td><td>-7.89</td><td>-11.22</td><td>-8.61</td><td>-10.04</td></tr><tr><td>Enduro</td><td>459.85</td><td>698.46</td><td>518.41</td><td>365.95</td></tr><tr><td>FishingDerby</td><td>28.99</td><td>17.72</td><td>-64.27</td><td>-69.64</td></tr><tr><td>Freeway</td><td>21.21</td><td>21.11</td><td>18.37</td><td>20.89</td></tr><tr><td>Frostbite</td><td>316.87</td><td>280.30</td><td>280.30</td><td>291.77</td></tr><tr><td>Gopher</td><td>6207.00</td><td>1791.00</td><td>940.87</td><td>938.27</td></tr><tr><td>Gravitar</td><td>557.17</td><td>753.50</td><td>449.00</td><td>495.17</td></tr><tr><td>IceHockey</td><td>-4.12</td><td>-4.83</td><td>-3.61</td><td>-4.61</td></tr><tr><td>Jamesbond</td><td>527.17</td><td>488.17</td><td>685.17</td><td>901.67</td></tr><tr><td>Kangaroo</td><td>3891.67</td><td>6845.00</td><td>1850.00</td><td>1214.67</td></tr><tr><td>Krull</td><td>7715.68</td><td>8329.08</td><td>7204.95</td><td>4881.65</td></tr><tr><td>KungFuMaster</td><td>33728.00</td><td>29958.67</td><td>29843.67</td><td>26808.00</td></tr><tr><td>Montezuma-Revenge</td><td>0.00</td><td>10.67</td><td>0.67</td><td>0.00</td></tr><tr><td>MsPacman</td><td>1683.87</td><td>1981.50</td><td>1170.70</td><td>1133.57</td></tr><tr><td>NameThisGame</td><td>6065.63</td><td>5397.47</td><td>5672.60</td><td>5604.10</td></tr><tr><td>Pitfall</td><td>0.00</td><td>-2.32</td><td>-17.26</td><td>-43.60</td></tr><tr><td>Pong</td><td>20.50</td><td>20.80</td><td>20.79</td><td>19.63</td></tr><tr><td>PrivateEye</td><td>79.67</td><td>36.50</td><td>99.67</td><td>99.33</td></tr><tr><td>Qbert</td><td>15396.67</td><td>14556.83</td><td>4114.00</td><td>3781.58</td></tr><tr><td>Riverraid</td><td>8052.23</td><td>7360.40</td><td>7722.00</td><td>6773.67</td></tr><tr><td>RoadRunner</td><td>44679.67</td><td>36289.33</td><td>43626.33</td><td>24061.33</td></tr><tr><td>Robotank</td><td>4.60</td><td>14.15</td><td>24.60</td><td>24.18</td></tr><tr><td>Seaquest</td><td>1807.47</td><td>1470.60</td><td>1501.47</td><td>926.40</td></tr><tr><td>SpaceInvaders</td><td>1216.15</td><td>944.63</td><td>814.53</td><td>634.07</td></tr><tr><td>StarGunner</td><td>48984.00</td><td>33862.00</td><td>47738.00</td><td>33442.67</td></tr><tr><td>Tennis</td><td>-8.32</td><td>-13.74</td><td>-19.13</td><td>-18.40</td></tr><tr><td>TimePilot</td><td>3770.33</td><td>5321.33</td><td>6278.33</td><td>5701.00</td></tr><tr><td>Tutankham</td><td>241.21</td><td>177.58</td><td>135.80</td><td>136.21</td></tr><tr><td>UpNDown</td><td>242701.51</td><td>153160.66</td><td>11815.87</td><td>10949.53</td></tr><tr><td>Venture</td><td>36.33</td><td>0.00</td><td>4.00</td><td>0.00</td></tr><tr><td>VideoPinball</td><td>37780.70</td><td>31577.24</td><td>21438.64</td><td>25095.20</td></tr><tr><td>WizardOfWor</td><td>4704.00</td><td>4886.67</td><td>3533.67</td><td>3103.00</td></tr><tr><td>Zaxxon</td><td>9472.00</td><td>5728.67</td><td>1179.67</td><td>4796.67</td></tr></table>
|
| 319 |
+
|
| 320 |
+
Table 4: All episodes mean scores of PPO, POP3D, BASELINE and TRPO on Atari games after 40M frames. The results are averaged by three trials.
|
| 321 |
+
|
| 322 |
+
<table><tr><td>game</td><td>POP3D</td><td>PPO</td><td>BASELINE</td><td>TRPO</td></tr><tr><td>Alien</td><td>1147.29</td><td>1115.94</td><td>851.13</td><td>841.08</td></tr><tr><td>Amidar</td><td>299.55</td><td>413.46</td><td>295.91</td><td>169.12</td></tr><tr><td>Assault</td><td>2139.15</td><td>2168.93</td><td>1159.50</td><td>971.78</td></tr><tr><td>Asterix</td><td>2004.43</td><td>2102.10</td><td>1884.68</td><td>1342.83</td></tr><tr><td>Asteroids</td><td>1652.48</td><td>1470.46</td><td>1477.71</td><td>1760.73</td></tr><tr><td>Atlantis</td><td>488134.03</td><td>596807.27</td><td>192798.74</td><td>174394.94</td></tr><tr><td>BankHeist</td><td>662.26</td><td>643.94</td><td>859.25</td><td>831.95</td></tr><tr><td>BattleZone</td><td>11131.44</td><td>9387.77</td><td>11674.30</td><td>12918.39</td></tr><tr><td>BeamRider</td><td>1965.27</td><td>1460.59</td><td>3321.25</td><td>2431.63</td></tr><tr><td>Bowling</td><td>37.97</td><td>39.41</td><td>33.90</td><td>30.99</td></tr><tr><td>Boxing</td><td>83.12</td><td>78.61</td><td>27.92</td><td>23.07</td></tr><tr><td>Breakout</td><td>143.60</td><td>124.98</td><td>29.99</td><td>26.56</td></tr><tr><td>Centipede</td><td>3056.81</td><td>3344.63</td><td>3042.48</td><td>3142.22</td></tr><tr><td>Chopper-</td><td></td><td></td><td></td><td></td></tr><tr><td>Command</td><td>3269.47</td><td>3106.14</td><td>1780.38</td><td>1595.82</td></tr><tr><td>CrazyClimber</td><td>97257.52</td><td>90169.60</td><td>69258.31</td><td>63189.78</td></tr><tr><td>DemonAttack</td><td>7611.27</td><td>7180.43</td><td>9814.42</td><td>6204.68</td></tr><tr><td>DoubleDunk</td><td>-13.70</td><td>-15.45</td><td>-15.93</td><td>-14.57</td></tr><tr><td>Enduro</td><td>107.84</td><td>321.20</td><td>92.59</td><td>140.67</td></tr><tr><td>FishingDerby</td><td>-21.00</td><td>-27.51</td><td>-81.90</td><td>-81.97</td></tr><tr><td>Freeway</td><td>17.76</td><td>15.87</td><td>15.93</td><td>17.33</td></tr><tr><td>Frostbite</td><td>276.47</td><td>267.73</td><td>270.42</td><td>270.57</td></tr><tr><td>Gopher</td><td>1556.29</td><td>1196.20</td><td>900.74</td><td>875.93</td></tr><tr><td>Gravitar</td><td>413.20</td><td>509.81</td><td>342.74</td><td>317.86</td></tr><tr><td>IceHockey</td><td>-4.67</td><td>-5.50</td><td>-4.61</td><td>-5.21</td></tr><tr><td>Jamesbond</td><td>358.54</td><td>394.45</td><td>380.91</td><td>519.01</td></tr><tr><td>Kangaroo</td><td>1614.63</td><td>2199.74</td><td>937.98</td><td>566.85</td></tr><tr><td>Krull</td><td>6538.16</td><td>7195.24</td><td>4760.66</td><td>3861.87</td></tr><tr><td>KungFuMaster</td><td>23253.96</td><td>23283.31</td><td>19637.58</td><td>18293.12</td></tr><tr><td>Montezuma- Revenge</td><td>0.14</td><td>0.74</td><td>0.22</td><td>0.12</td></tr><tr><td>MsPacman</td><td>1214.09</td><td>1482.77</td><td>860.63</td><td>864.84</td></tr><tr><td>NameThisGame</td><td>5353.14</td><td>5199.37</td><td>4562.32</td><td>4504.67</td></tr><tr><td>Pitfall</td><td>-2.41</td><td>-5.81</td><td>-31.27</td><td>-33.93</td></tr><tr><td>Pong</td><td>13.24</td><td>12.83</td><td>7.20</td><td>-2.91</td></tr><tr><td>PrivateEye</td><td>87.37</td><td>52.76</td><td>56.70</td><td>98.79</td></tr><tr><td>Qbert</td><td>5852.10</td><td>6744.13</td><td>1760.92</td><td>1679.03</td></tr><tr><td>Riverraid</td><td>5260.89</td><td>5487.17</td><td>5220.64</td><td>4549.22</td></tr><tr><td>RoadRunner</td><td>25456.31</td><td>24688.07</td><td>20385.91</td><td>16269.40</td></tr><tr><td>Robotank</td><td>3.08</td><td>8.65</td><td>13.89</td><td>14.57</td></tr><tr><td></td><td>1487.84</td><td></td><td></td><td>848.47</td></tr><tr><td>Seaquest</td><td></td><td>1120.15</td><td>1112.51</td><td>483.48</td></tr><tr><td>SpaceInvaders StarGunner</td><td>693.26</td><td>632.17</td><td>552.50</td><td>13341.23</td></tr><tr><td></td><td>14734.11</td><td>13643.80</td><td>16288.35</td><td>-21.04</td></tr><tr><td>Tennis</td><td>-19.86</td><td>-21.80</td><td>-21.84</td><td></td></tr><tr><td>TimePilot Tutankham</td><td>3396.61</td><td>4410.87</td><td>4718.46</td><td>4544.68 109.18</td></tr><tr><td></td><td>179.96</td><td>152.72</td><td>103.95</td><td>7085.02</td></tr><tr><td>UpNDown</td><td>38728.48</td><td>43208.99</td><td>5430.22</td><td></td></tr><tr><td>Venture</td><td>15.89</td><td>14.66</td><td>0.57</td><td>0.03</td></tr><tr><td>VideoPinball WizardOfWor</td><td>27346.44 2340.60</td><td>27549.55 2743.40</td><td>23998.09 2409.94</td><td>23705.39</td></tr><tr><td></td><td></td><td></td><td></td><td>2045.17</td></tr><tr><td>Zaxxon</td><td>3739.56</td><td>1813.90</td><td>256.78</td><td>1521.28</td></tr></table>
|
| 323 |
+
|
| 324 |
+
Table 5: All episodes mean scores of PPO, POP3D on Mujoco games after 10M frames. The results are averaged by three trials.
|
| 325 |
+
|
| 326 |
+
<table><tr><td>game</td><td>PPO</td><td>POP3D</td></tr><tr><td>HalfCheetah</td><td>3250.22</td><td>2373.30</td></tr><tr><td>Hopper</td><td>1767.14</td><td>1257.72</td></tr><tr><td>InvertedDoublePendulum</td><td>3684.92</td><td>2561.77</td></tr><tr><td>InvertedPendulum</td><td>531.77</td><td>552.98</td></tr><tr><td>Reacher</td><td>-5.94</td><td>-8.05</td></tr><tr><td>Swimmer</td><td>94.01</td><td>108.27</td></tr><tr><td>Walker2d</td><td>1770.37</td><td>2439.54</td></tr></table>
|
| 327 |
+
|
| 328 |
+
# B EXPERIMENTS
|
| 329 |
+
|
| 330 |
+
# B.1 HYPER-PARAMETERS
|
| 331 |
+
|
| 332 |
+
B.1.1 ATARI
|
| 333 |
+
|
| 334 |
+
PPO’s and POP3D’s hyper-parameters for Mujoco games are respectively listed in Table 6.
|
| 335 |
+
|
| 336 |
+
<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size</td><td>128 2.5 ×10-4 × α</td></tr><tr><td>Num epochs Mini-batch size</td><td>3 32×8</td></tr><tr><td>Discount (γ) GAE parameter (入)</td><td>0.99 0.95</td></tr><tr><td>Number of actors</td><td>8</td></tr><tr><td></td><td>0.1×α</td></tr><tr><td>Clipping parameter VF coeff. Entropy coeff.</td><td>1 0.01</td></tr></table>
|
| 337 |
+
|
| 338 |
+
Table 6: Left: PPO’s hyper-parameters for Atari games. Right:POP3D’s hyper-parameters for Atari games.
|
| 339 |
+
|
| 340 |
+
<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size Num epochs</td><td>128 2.5 ×10-4 × α 3</td></tr><tr><td>Mini-batch size Discount (γ)</td><td>32×8</td></tr><tr><td>GAE parameter (入)</td><td>0.99 0.95</td></tr><tr><td>Number of actors</td><td>8</td></tr><tr><td></td><td>1</td></tr><tr><td>VF coeff. Entropy coeff. KL penalty coeff.</td><td>0.01</td></tr></table>
|
| 341 |
+
|
| 342 |
+
Table 7: BASELINE’s hyper-parameters for Atari games.
|
| 343 |
+
|
| 344 |
+
<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T)</td><td>128 2.5 ×10-4 × α</td></tr><tr><td>Adam step-size Num epochs</td><td>3</td></tr><tr><td>Mini-batch size</td><td>32×8</td></tr><tr><td>Discount (γ)</td><td>0.99</td></tr><tr><td>GAE parameter (入)</td><td>0.95</td></tr><tr><td>Number of actors</td><td>8</td></tr><tr><td>VF coeff.</td><td>1</td></tr><tr><td>Entropy coeff.</td><td>0.01</td></tr><tr><td>KL penalty coeff.</td><td>10.0</td></tr></table>
|
| 345 |
+
|
| 346 |
+
# B.1.2 MUJOCO
|
| 347 |
+
|
| 348 |
+
PPO’s and POP3D’s hyper-parameters for Mujoco games are respectively listed in Table 8.
|
| 349 |
+
|
| 350 |
+
Table 8: Left: PPO’s hyper-parameters for Mujoco games. Right:POP3D’s hyper-parameters for Mujoco games.
|
| 351 |
+
|
| 352 |
+
<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size</td><td>2048 3×10-4</td></tr><tr><td>Num epochs Mini-batch size</td><td>10 64</td></tr><tr><td>Discount (γ)</td><td>0.99</td></tr><tr><td>GAE parameter (入) KL penalty coeff.</td><td>0.95 5.0</td></tr></table>
|
| 353 |
+
|
| 354 |
+
<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size</td><td>2048 3×10-4</td></tr><tr><td>Num epochs</td><td>10</td></tr><tr><td>Mini-batch size</td><td>64</td></tr><tr><td>Discount (γ)</td><td>0.99</td></tr><tr><td>GAE parameter (入) Clipping parameter</td><td>0.95</td></tr></table>
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
Figure 1: Score curves of three methods on Atari games within 40 million frame steps.
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
Figure 2: Score curves on 7 Mujoco games within 10 million frame steps.
|
parse/train/0migj5lyUZl/0migj5lyUZl_content_list.json
ADDED
|
@@ -0,0 +1,1769 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A STRONG ON-POLICY COMPETITOR TO PPO",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
723,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
400,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
224
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "As a recognized variant and improvement for Trust Region Policy Optimization (TRPO), proximal policy optimization (PPO) has been widely used with several advantages: efficient data utilization, easy implementation, and good parallelism. In this paper, a first-order gradient reinforcement learning algorithm called Policy Optimization with Penalized Point Probability Distance (POP3D), which is a lower bound to the square of total variance divergence, is proposed as another powerful variant. The penalty item has dual effects, prohibiting policy updates from overshooting and encouraging more explorations. By carefully controlled experiments on both discrete and continuous benchmarks, our approach is proved highly competitive to PPO. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
241,
|
| 43 |
+
766,
|
| 44 |
+
380
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
406,
|
| 55 |
+
336,
|
| 56 |
+
422
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "With the development of deep reinforcement learning, lots of impressive results have been produced in a wide range of fields such as playing Atari game (Mnih et al., 2015; Hessel et al., 2018), controlling robotics (Lillicrap et al., 2015), Go (Silver et al., 2017), neural architecture search (Tan et al., 2019; Pham et al., 2018). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
438,
|
| 66 |
+
825,
|
| 67 |
+
493
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The basis of a reinforcement learning algorithm is generalized policy iteration (Sutton & Barto, 2018), which states two essential iterative steps: policy evaluation and improvement. Among various algorithms, policy gradient is an active branch of reinforcement learning whose foundations are Policy Gradient Theorem and the most classical algorithm REINFORCEMENT (Sutton & Barto, 2018). Since then, handfuls of policy gradient variants have been proposed, such as Deep Deterministic Policy Gradient (DDPG) (Lillicrap et al., 2015), Asynchronous Advantage Actor-Critic (A3C) (Mnih et al., 2016), Actor-Critic using Kronecker-factored Trust Region (ACKTR) (Wu et al., 2017), and Proximal Policy Optimization (PPO) (Schulman et al., 2017). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
500,
|
| 77 |
+
825,
|
| 78 |
+
612
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Improving the strategy monotonically had been nontrivial until Schulman et al. (2015) proposed Trust Region Policy Optimization (TRPO), in which Fisher vector product is utilized to cut down the computing burden. Specifically, Kullback–Leibler divergence (KLD) acts as a hard constraint in place of objective, because its corresponding coefficient is difficult to set for different problems. However, TRPO still has several drawbacks: too complicated, inefficient data usage. Quite a lot of efforts have been devoted to improving TRPO since then and the most commonly used one is PPO. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
619,
|
| 88 |
+
825,
|
| 89 |
+
703
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "PPO can be regarded as a first-order variant of TRPO and have obvious improvements in several facets. In particular, a pessimistic clipped surrogate objective is proposed where TRPO’s hard constraint is replaced by the clipped action probability ratio. In such a way, it constructs an unconstrained optimization problem so that any first-order stochastic gradient optimizer can be directly applied. Besides, it’s easier to be implemented and more robust against various problems, achieving an impressive result on Atari games (Brockman et al., 2016). However, the cost of data sampling is not always cheap. Haarnoja et al. (2018) design an off-policy algorithm called Soft Actor-Critic and achieves the state of the art result by encouraging better exploration using maximum entropy. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
709,
|
| 99 |
+
825,
|
| 100 |
+
821
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this paper, we focus on the on-policy improvement to improve PPO and answer the question: how to successfully leverage penalized optimization to solve the constrained one which is formulated by Schulman et al. (2015). ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
178,
|
| 109 |
+
828,
|
| 110 |
+
821,
|
| 111 |
+
869
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "1. It proposes a simple variant of TRPO called POP3D along with a new surrogate objective containing a point probability penalty item, which is symmetric lower bound to the square of the total variance divergence of policy distributions. Specifically, it helps to stabilize the learning process and encourage exploration. Furthermore, it escapes from penalty item setting headache along with penalized version TRPO, where is arduous to select one fixed value for various environments. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
214,
|
| 120 |
+
882,
|
| 121 |
+
823,
|
| 122 |
+
924
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "",
|
| 129 |
+
"bbox": [
|
| 130 |
+
230,
|
| 131 |
+
103,
|
| 132 |
+
823,
|
| 133 |
+
146
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2. It achieves state-of-the-art results among on-policy algorithms with a clear margin on 49 Atari games within 40 million frame steps based on two shared metrics. Moreover, it also achieves competitive results compared with PPO in the continuous domain. It dives into the mechanism of PPO’s improvement over TRPO from the perspective of solution manifold, which also plays an important role in our method. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
212,
|
| 142 |
+
148,
|
| 143 |
+
825,
|
| 144 |
+
219
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "3. It enjoys almost all PPO’s advantages such as easy implementation, fast learning ability. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
204,
|
| 153 |
+
222,
|
| 154 |
+
808,
|
| 155 |
+
237
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "We provide the code and training logs to make our work reproducible. ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
173,
|
| 164 |
+
246,
|
| 165 |
+
632,
|
| 166 |
+
262
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "2 PRELIMINARY KNOWLEDGE AND RELATED WORK ",
|
| 173 |
+
"text_level": 1,
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
281,
|
| 177 |
+
625,
|
| 178 |
+
297
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "2.1 POLICY GRADIENT ",
|
| 185 |
+
"text_level": 1,
|
| 186 |
+
"bbox": [
|
| 187 |
+
176,
|
| 188 |
+
310,
|
| 189 |
+
349,
|
| 190 |
+
325
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Agents interact with the environment and receive rewards which are used to adjust their policy in turn. At state $s _ { t }$ , one agent takes strategy $\\pi$ and transfers to a new state $s _ { t + 1 }$ , rewarded $r _ { t }$ by the environment. Maximizing discounted return (accumulated rewards) $R _ { t }$ is its objective. In particular, given a policy $\\pi$ , $R _ { t }$ is defined as ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
174,
|
| 199 |
+
337,
|
| 200 |
+
825,
|
| 201 |
+
393
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "equation",
|
| 207 |
+
"img_path": "images/f5396e081d7dcec37967c6ad4fa994836bf9ccccdb18ac4c7bc22de9b3bddbd6.jpg",
|
| 208 |
+
"text": "$$\nR _ { t } = \\sum _ { n = 0 } ^ { \\infty } ( r _ { t } + \\gamma r _ { t + 1 } + \\gamma ^ { 2 } r _ { t + 2 } + \\ldots + \\gamma ^ { n } r _ { t + n } ) .\n$$",
|
| 209 |
+
"text_format": "latex",
|
| 210 |
+
"bbox": [
|
| 211 |
+
334,
|
| 212 |
+
395,
|
| 213 |
+
663,
|
| 214 |
+
436
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "$\\gamma$ is the discounted coefficient to control future rewards, which lies in the range $( 0 , 1 )$ . Regarding a neural network with parameter $\\theta$ , the policy $\\pi _ { \\boldsymbol { \\theta } } ( a | \\boldsymbol { s } )$ can be learned by maximizing Equation 1 using the back-propagation algorithm. Particularly, given $Q ( s , a )$ which represents the agent’s return in state $s$ after taking action $a$ , the objective function can be written as ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
173,
|
| 223 |
+
444,
|
| 224 |
+
825,
|
| 225 |
+
501
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "equation",
|
| 231 |
+
"img_path": "images/61ec2fbef39429d670d7838a4c9ec364f5dbaea4d711a697dc02b38fd4f635b7.jpg",
|
| 232 |
+
"text": "$$\n\\operatorname* { m a x } _ { \\theta } \\quad \\mathbb { E } _ { s , a } \\log \\pi _ { \\theta } ( a | s ) Q ( s , a ) .\n$$",
|
| 233 |
+
"text_format": "latex",
|
| 234 |
+
"bbox": [
|
| 235 |
+
392,
|
| 236 |
+
502,
|
| 237 |
+
607,
|
| 238 |
+
525
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Equation 2 lays the foundation for handfuls of policy gradient based algorithms. Another variant can be deduced by using ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
171,
|
| 247 |
+
535,
|
| 248 |
+
823,
|
| 249 |
+
563
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "equation",
|
| 255 |
+
"img_path": "images/d1157a141e25c5686e888a58dad548b2df896d0fac6656efd8a106b324536c9e.jpg",
|
| 256 |
+
"text": "$$\nA ( s , a ) = Q ( s , a ) - V ( s )\n$$",
|
| 257 |
+
"text_format": "latex",
|
| 258 |
+
"bbox": [
|
| 259 |
+
410,
|
| 260 |
+
561,
|
| 261 |
+
588,
|
| 262 |
+
578
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 1
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "to replace $Q ( s , a )$ in Equation 2 equivalently, $V ( s )$ can be any function so long as $V$ depends on $s$ but not $a$ . In most cases, state value function is used for $V$ , which not only helps to reduce variations but has clear physical meaning. Formally, it can be written as ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
173,
|
| 271 |
+
579,
|
| 272 |
+
823,
|
| 273 |
+
621
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "equation",
|
| 279 |
+
"img_path": "images/259ebbf451aa81bd06ecb0d5ca5e59c41fa6a427cd0c23e0254350331018ec0f.jpg",
|
| 280 |
+
"text": "$$\n\\operatorname* { m a x } _ { \\theta } \\quad \\mathbb { E } _ { s , a } \\log \\pi _ { \\theta } ( a | s ) A ( s , a ) .\n$$",
|
| 281 |
+
"text_format": "latex",
|
| 282 |
+
"bbox": [
|
| 283 |
+
393,
|
| 284 |
+
622,
|
| 285 |
+
606,
|
| 286 |
+
645
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 1
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "2.2 ADVANTAGE ESTIMATE ",
|
| 293 |
+
"text_level": 1,
|
| 294 |
+
"bbox": [
|
| 295 |
+
174,
|
| 296 |
+
660,
|
| 297 |
+
379,
|
| 298 |
+
674
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 1
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "A commonly used method for advantage calculation is one-step estimation, which follows ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
169,
|
| 307 |
+
685,
|
| 308 |
+
764,
|
| 309 |
+
700
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 1
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "equation",
|
| 315 |
+
"img_path": "images/d466e063092178d47c74fa7f10265250369d99236f9bd279832b6bb3fc9f0fb3.jpg",
|
| 316 |
+
"text": "$$\nA ( s _ { t } , a _ { t } ) = Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) = r _ { t } + \\gamma V ( s _ { t + 1 } ) - V ( s _ { t } ) .\n$$",
|
| 317 |
+
"text_format": "latex",
|
| 318 |
+
"bbox": [
|
| 319 |
+
303,
|
| 320 |
+
703,
|
| 321 |
+
692,
|
| 322 |
+
720
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 1
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "However, a more accurate method called generalized advantage estimation is proposed in Schulman et al. (2016), where all time steps of estimation are combined and summarized using $\\lambda$ -based weights,. The generalized advantage estimator $\\hat { A } _ { t } ^ { G A E ( \\gamma , \\lambda ) }$ is defined by Schulman et al. (2016) as ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
728,
|
| 332 |
+
825,
|
| 333 |
+
775
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 1
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "equation",
|
| 339 |
+
"img_path": "images/2b8d38b68f319404e7e9e7b6ed6e557505e55a000ac7c57e65af6dec0c324e13.jpg",
|
| 340 |
+
"text": "$$\n\\begin{array} { c } { { \\hat { A } _ { t } ^ { G A E ( \\gamma , \\lambda ) } : = ( 1 - \\lambda ) * ( \\hat { A } _ { t } ^ { ( 1 ) } + \\lambda \\hat { A } _ { t } ^ { ( 2 ) } + \\lambda ^ { 2 } \\hat { A } _ { t } ^ { ( 3 ) } + . . . ) = \\displaystyle \\sum _ { l = 0 } ^ { \\infty } ( \\gamma \\lambda ) ^ { l } \\delta _ { t + l } ^ { V } } } \\\\ { { \\displaystyle \\delta _ { t + l } ^ { V } = r _ { t + l } + \\gamma V ( s _ { t + l + 1 } ) - V ( s _ { t + l } ) . } } \\\\ { { \\displaystyle \\hat { A } _ { t } ^ { ( k ) } : = \\sum _ { l = 0 } ^ { k - 1 } \\gamma ^ { l } \\delta _ { t + l } ^ { V } = - V ( s _ { t } ) + r _ { t } + \\gamma r _ { t + 1 } + \\cdot \\cdot \\cdot + \\gamma ^ { k - 1 } r _ { t + k - 1 } + \\gamma ^ { k } V ( s _ { t + k } ) } } \\end{array}\n$$",
|
| 341 |
+
"text_format": "latex",
|
| 342 |
+
"bbox": [
|
| 343 |
+
230,
|
| 344 |
+
777,
|
| 345 |
+
766,
|
| 346 |
+
885
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 1
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "The parameter $\\lambda$ meets $0 \\leq \\lambda \\leq 1$ , which controls the trade-off between bias and variance. All methods in this paper utilize $\\hat { A } _ { t } ^ { G A E ( \\gamma , \\lambda ) }$ to estimate the advantage. ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
173,
|
| 355 |
+
891,
|
| 356 |
+
825,
|
| 357 |
+
925
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 1
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "2.3 TRUST REGION POLICY OPTIMIZATION",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
103,
|
| 368 |
+
488,
|
| 369 |
+
118
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Schulman et al. (2015) propose TRPO to update the policy monotonically. In particular, its mathematical form is ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
171,
|
| 378 |
+
128,
|
| 379 |
+
825,
|
| 380 |
+
159
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 2
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "equation",
|
| 386 |
+
"img_path": "images/09e3cd716af2916e66c12fc1da2483ab675281c61410183fc11968f048f1f5a6.jpg",
|
| 387 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\theta } { \\operatorname* { m a x } } } & { \\mathbb { E } _ { t } [ \\frac { \\pi _ { \\theta } \\left( a _ { t } \\vert s _ { t } \\right) } { \\pi _ { \\theta _ { o l d } } \\left( a _ { t } \\vert s _ { t } \\right) } \\hat { A } _ { t } ] - C \\mathbb { E } _ { t } [ K L [ \\pi _ { \\theta _ { o l d } } ( \\cdot \\vert s _ { t } ) , \\pi _ { \\theta } ( \\cdot \\vert s _ { t } ) ] ] } \\\\ & { \\epsilon = \\underset { s } { \\operatorname* { m a x } } E _ { a \\sim \\pi _ { \\theta } \\left( a \\vert s \\right) } [ A _ { \\pi _ { \\theta _ { o l d } } } ( s , a ) ] ) } \\end{array}\n$$",
|
| 388 |
+
"text_format": "latex",
|
| 389 |
+
"bbox": [
|
| 390 |
+
297,
|
| 391 |
+
166,
|
| 392 |
+
697,
|
| 393 |
+
224
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 2
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "where $C$ is the penalty coefficient, $\\begin{array} { r } { C = \\frac { 2 \\epsilon \\gamma } { ( 1 - \\gamma ) ^ { 2 } } } \\end{array}$ . ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
173,
|
| 402 |
+
227,
|
| 403 |
+
486,
|
| 404 |
+
244
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 2
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "In practice, the policy update steps would be too small if $C$ is valued as Equation 7. In fact, it’s intractable to calculate $C$ beforehand since it requires traversing all states to reach the maximum. Moreover, inevitable bias and variance will be introduced by estimating the advantages of old policy while training. Instead, a surrogate objective is maximized based on the KLD constraint between the old and new policy, which can be written as below, ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
251,
|
| 414 |
+
826,
|
| 415 |
+
321
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 2
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "equation",
|
| 421 |
+
"img_path": "images/bb58997c9c0ad351185482de781a70f5e94d7d96228e467b2878057d66bc1ff6.jpg",
|
| 422 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\theta } { \\operatorname* { m a x } } } & { \\mathbb { E } _ { t } [ \\frac { \\pi _ { \\theta } \\left( a _ { t } \\vert s _ { t } \\right) } { \\pi _ { \\theta _ { o l d } } \\left( a _ { t } \\vert s _ { t } \\right) } \\hat { A } _ { t } ] } \\\\ { s . t . } & { \\mathbb { E } _ { t } [ K L [ \\pi _ { \\theta _ { o l d } } ( \\cdot \\vert s _ { t } ) , \\pi _ { \\theta } ( \\cdot \\vert s _ { t } ) ] ] \\leq \\delta } \\end{array}\n$$",
|
| 423 |
+
"text_format": "latex",
|
| 424 |
+
"bbox": [
|
| 425 |
+
364,
|
| 426 |
+
344,
|
| 427 |
+
633,
|
| 428 |
+
398
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 2
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "where $\\delta$ is the KLD upper limitation. In addition, the conjugate gradient algorithm is applied to solve Equation 8 more efficiently. Two major problems have yet to be addressed: one is its complexity even using the conjugate gradient approach, another is compatibility with architectures that involve noise or parameter sharing tricks (Schulman et al., 2017). ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
173,
|
| 437 |
+
401,
|
| 438 |
+
825,
|
| 439 |
+
457
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 2
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "2.4 PROXIMAL POLICY OPTIMIZATION ",
|
| 446 |
+
"text_level": 1,
|
| 447 |
+
"bbox": [
|
| 448 |
+
176,
|
| 449 |
+
473,
|
| 450 |
+
455,
|
| 451 |
+
488
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 2
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "To overcome the shortcomings of TRPO, PPO replaces the original constrained problem with a pessimistic clipped surrogate objective where KL constraint is implicitly imposed. The loss function can be written as ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
498,
|
| 461 |
+
825,
|
| 462 |
+
541
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 2
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "equation",
|
| 468 |
+
"img_path": "images/72508160e6fab5c78c854e00c89bf2bceae15862c92aac78ca603470f3e936a2.jpg",
|
| 469 |
+
"text": "$$\n\\begin{array} { r l r } & { } & { L ^ { { \\cal C } L I P } ( \\theta ) = \\mathbb { E } _ { t } [ \\operatorname* { m i n } ( r _ { t } ( \\theta ) \\hat { A } _ { t } , c l i p ( r _ { t } ( \\theta ) , 1 - \\epsilon , 1 + \\epsilon ) \\hat { A } _ { t } ) ] } \\\\ & { } & { r _ { t } ( \\theta ) = \\frac { \\pi _ { \\theta } \\left( a _ { t } | s _ { t } \\right) } { \\pi _ { \\theta _ { o l d } } \\left( a _ { t } | s _ { t } \\right) } } \\end{array}\n$$",
|
| 470 |
+
"text_format": "latex",
|
| 471 |
+
"bbox": [
|
| 472 |
+
300,
|
| 473 |
+
541,
|
| 474 |
+
696,
|
| 475 |
+
602
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 2
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "where $\\epsilon$ is a hyper-parameter to control the clipping ratio. Except for the clipped PPO version, KL penalty versions including fixed and adaptive KLD. Besides, their simulation results convince that clipped PPO performs best with an obvious margin across various domains. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
173,
|
| 484 |
+
604,
|
| 485 |
+
825,
|
| 486 |
+
647
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 2
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "3 POLICY OPTIMIZATION WITH PENALIZED POINT PROBABILITY DISTANCE ",
|
| 493 |
+
"text_level": 1,
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
665,
|
| 497 |
+
820,
|
| 498 |
+
683
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 2
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "Before diving into the details of POP3D, we review some drawbacks of several methods, which partly motivate us. ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
174,
|
| 507 |
+
695,
|
| 508 |
+
821,
|
| 509 |
+
726
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 2
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "3.1 DISADVANTAGES OF KULLBACK-LEIBLER DIVERGENCE ",
|
| 516 |
+
"text_level": 1,
|
| 517 |
+
"bbox": [
|
| 518 |
+
171,
|
| 519 |
+
741,
|
| 520 |
+
606,
|
| 521 |
+
757
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 2
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "TRPO (Schulman et al., 2015) induced the following inequality1, ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
767,
|
| 531 |
+
602,
|
| 532 |
+
782
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 2
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "equation",
|
| 538 |
+
"img_path": "images/d4609f5cb10ee7294464f9123d9a968bb24774eb1cc8027011749c2daa316aab.jpg",
|
| 539 |
+
"text": "$$\n\\begin{array} { c } { { \\eta ( \\pi _ { \\theta } ) \\leq L _ { \\pi _ { \\theta _ { o l d } } } ( \\pi _ { \\theta } ) + \\displaystyle \\frac { 2 \\epsilon \\gamma } { ( 1 - \\gamma ) ^ { 2 } } \\alpha ^ { 2 } } } \\\\ { { \\alpha = D _ { T V } ^ { \\operatorname* { m a x } } ( \\pi _ { \\theta _ { o l d } } , \\pi _ { \\theta } ) } } \\\\ { { D _ { T V } ^ { \\operatorname* { m a x } } ( \\pi _ { \\theta _ { o l d } } , \\pi _ { \\theta } ) = \\displaystyle \\operatorname* { m a x } _ { s } D _ { T V } \\bigl ( \\pi _ { \\theta _ { o l d } } | | \\pi _ { \\theta } \\bigr ) } } \\end{array}\n$$",
|
| 540 |
+
"text_format": "latex",
|
| 541 |
+
"bbox": [
|
| 542 |
+
346,
|
| 543 |
+
786,
|
| 544 |
+
651,
|
| 545 |
+
861
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 2
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "TRPO replaces the square of total variation divergence $D _ { T V } ^ { m a x } ( \\pi _ { \\theta _ { o l d } } , \\pi _ { \\theta } )$ by $D _ { K L } ^ { \\operatorname * { m a x } } ( \\pi _ { \\theta _ { o l d } } , \\pi _ { \\theta } ) =$ $\\operatorname* { m a x } _ { s } D _ { K L } ( \\pi _ { \\theta _ { o l d } } | | \\pi _ { \\theta } )$ . ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
176,
|
| 554 |
+
871,
|
| 555 |
+
825,
|
| 556 |
+
902
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 2
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "Given a discrete distribution $p$ and $q$ , their total variation divergence $D _ { T V } ( p | | q )$ is defined as ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
171,
|
| 565 |
+
102,
|
| 566 |
+
781,
|
| 567 |
+
119
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 3
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "equation",
|
| 573 |
+
"img_path": "images/deae3aa73b84ae1d9de017d727833a61d95f1831a8e9bb1a3899dfc084511e90.jpg",
|
| 574 |
+
"text": "$$\nD _ { T V } ( p | | q ) : = \\frac { 1 } { 2 } \\sum _ { i } \\left| p _ { i } - q _ { i } \\right|\n$$",
|
| 575 |
+
"text_format": "latex",
|
| 576 |
+
"bbox": [
|
| 577 |
+
398,
|
| 578 |
+
137,
|
| 579 |
+
598,
|
| 580 |
+
174
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 3
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "in TRPO (Schulman et al., 2015). Obviously, $D _ { T V }$ is symmetric by definition, while KLD is asymmetric. Formally, given state $s$ , KLD of $\\pi _ { \\theta _ { o l d } } ( \\cdot | s )$ for $\\pi _ { \\boldsymbol { \\theta } } ( \\cdot | s )$ can be written as ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
171,
|
| 589 |
+
180,
|
| 590 |
+
825,
|
| 591 |
+
209
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 3
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "equation",
|
| 597 |
+
"img_path": "images/401194ebed781ef5be02e66e0c059933d992a95fd49942aef99fc3dabf3aa614.jpg",
|
| 598 |
+
"text": "$$\nD _ { K L } ( \\pi _ { \\theta _ { o l d } } ( \\cdot | s ) | | \\pi _ { \\theta } ( \\cdot | s ) ) : = \\sum _ { a } \\pi _ { \\theta _ { o l d } } ( a | s ) \\ln \\frac { \\pi _ { \\theta _ { o l d } } ( a | s ) } { \\pi _ { \\theta } ( a | s ) } .\n$$",
|
| 599 |
+
"text_format": "latex",
|
| 600 |
+
"bbox": [
|
| 601 |
+
308,
|
| 602 |
+
218,
|
| 603 |
+
691,
|
| 604 |
+
256
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 3
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "Similarly, KLD in the continuous domain can be defined simply by replacing summation with integration. The consequence of KLD’s asymmetry leads to a non-negligible difference of whether choose $D _ { K L } ( \\pi _ { \\theta _ { o l d } } | | \\pi _ { \\theta } )$ or $D _ { K L } ( \\pi _ { \\theta } | | \\pi _ { \\theta _ { o l d } } \\rangle$ . Sometimes, those two choices result in quite different solutions. Robert compared the forward and reverse KL on a distribution, one solution matches only one of the modes, and another covers both modes (Murphy, 2012). Therefore, KLD is not an ideal bound or approximation for the expected discounted cost. ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
173,
|
| 613 |
+
270,
|
| 614 |
+
825,
|
| 615 |
+
354
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 3
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "3.2 DISCUSSION ABOUT PESSIMISTIC PROXIMAL POLICY ",
|
| 622 |
+
"text_level": 1,
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
375,
|
| 626 |
+
584,
|
| 627 |
+
388
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 3
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "In fact, PPO is called pessimistic proximal policy optimization2 in the meaning of its objective construction style. Without loss of generality, supposing $A _ { t } > 0$ for given state $s _ { t }$ and action $a _ { t }$ , and the optimal choice is $a _ { t } ^ { \\star }$ . When $a _ { t } = a _ { t } ^ { \\star }$ , a good update policy is to increase the probability of action to a relatively high value $a _ { t } ^ { \\star }$ by adjusting $\\theta$ . However, the clipped item $c l i p ( r _ { t } ( \\theta ) , 1 - \\epsilon , 1 + \\epsilon ) \\hat { A } _ { t }$ will fully contribute to the loss function by the minimum operation, which ignores further reward by zero gradients even though it’s the optimal action. Other situation with $A _ { t } < 0$ can be analyzed in the same manner. ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
173,
|
| 636 |
+
400,
|
| 637 |
+
825,
|
| 638 |
+
501
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 3
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "However, if the pessimistic limitation is removed, PPO’s performance decreases dramatically (Schulman et al., 2017), which is again confirmed by our preliminary experiments. In a word, the pessimistic mechanism plays a very critical role for PPO in that it has a relatively weak preference for a good action decision at a given state, which in turn affects its learning efficiency. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
507,
|
| 648 |
+
825,
|
| 649 |
+
564
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 3
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "3.3 RESTRICTED SOLUTION MANIFOLD FOR EXACT DISTRIBUTION MATCHING ",
|
| 656 |
+
"text_level": 1,
|
| 657 |
+
"bbox": [
|
| 658 |
+
176,
|
| 659 |
+
583,
|
| 660 |
+
738,
|
| 661 |
+
598
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 3
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "To be simple, we don’t take the model identifiability issues along with deep neural network into account here because they don’t affect the following discussion much (LeCun et al., 2015). Suppose $\\pi _ { \\theta \\star }$ is the optimal solution for a given environment, in most cases, more than one parameter set for $\\theta$ can generate the ideal policy, especially when $\\pi _ { \\theta \\star }$ is learned by a deep neural network. In other words, the relationship between $\\theta$ and $\\pi _ { \\theta \\star }$ is many to one. On the other hand, when agents interact with the environment using policy represented by neural networks, they prefer to takes the action with the highest probability. Although some strategies of enhancing exploration are applied, they don’t affect the policy much in the meaning of expectation. ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
173,
|
| 670 |
+
611,
|
| 671 |
+
825,
|
| 672 |
+
723
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 3
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "RL methods can help agents learn useful policies after fully interacting with the environment. Take Atari-Pong game for example, when an agent sees a Pong ball coming close to the right (state $s _ { 1 }$ ), its optimal policy is moving the racket to the right position (for example, the \"RIGHT\" action) with a distribution $p _ { \\theta _ { 1 } } ^ { \\bar { s _ { 1 } } } = [ 0 . 0 5 , \\mathbf { \\bar { 0 } } . 0 5 , 0 . 1 , 0 . 7 , 0 . 0 5 , 0 . 0 5 ] ^ { 3 }$ . The probability of selecting \"RIGHT\" is a relatively high value such as 0.7. It’s almost impossible to push it to be 1.0 exactly since it’s produced by a softmax operation on several discrete actions. In fact, we hardly obtain the optimal solution accurately. Instead, our goal is to find a good enough policy. In this case, the policy of pushing $p ( { \\mathrm { R I G H T } } | s _ { 1 } )$ above a threshold is sufficient to be a good one. In other words, paying attention to the most critical actions is sufficient, and we don’t care much the probability value of the other non-critical actions. For example, a good policy at $s _ { 1 }$ is $[ ? , ? , \\geq 0 . 7$ , ?,?,?]. Note that $\\pi _ { \\boldsymbol { \\theta } } ( a | \\boldsymbol { s } )$ is represented by a neural network parameterized using $\\theta$ and a good policy for the whole game means that the network can perform well across the whole state space. Focusing on those critical actions at each state4 and ignoring non-critical ones can help the network learn better and more easily. ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
729,
|
| 682 |
+
825,
|
| 683 |
+
882
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 3
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "",
|
| 690 |
+
"bbox": [
|
| 691 |
+
173,
|
| 692 |
+
103,
|
| 693 |
+
823,
|
| 694 |
+
132
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 4
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Using a penalty such as KLD cannot utilize this good property, because it involves all of the actions’ probabilities. Moreover, it doesn’t stop penalizing unless two distributions become exactly indifferent or the advantage item is large enough to compensate for the KLD cost. Therefore, even if $\\theta$ outputs hat two $\\theta _ { o l d }$ the same meters for obaband ty for th, where s. Su and $\\theta _ { 1 } \\colon \\theta _ { 2 }$ $\\theta _ { 3 }$ $\\mathcal { P } _ { \\theta _ { 2 } } ^ { s _ { 1 } - } = [ 0 . 0 1 , 0 . 1 5 , 0 . 0 5 , 0 . 7 , 0 . 0 1 , 0 . 0 8 ]$ $p _ { \\theta _ { 3 } } ^ { s _ { 1 } } =$ [0.01, 0.01, 0.01, 0.7, 0.26, 0.01]. When the agent already chooses RIGHT at $S _ { 1 }$ , the loss item from a good penalized distance should be small. However, $D _ { K L } ( \\pi _ { \\theta _ { 1 } } ( \\cdot | s _ { 1 } ) | | \\pi _ { \\theta _ { 2 } } ( \\cdot | s _ { 1 } ) ) { = } 0 . 1 5$ and $D _ { K L } \\big ( \\pi _ { \\theta _ { 1 } } ( \\cdot | s _ { 1 } ) \\vert \\vert \\pi _ { \\theta _ { 3 } } ( \\cdot | s _ { 1 } ) \\big ) { = } 0 . 3 9$ . However, it’s not necessary to require the distribution of other actions $( \\mathbf { \\hat { \\Pi } } \\mathbf { \\tilde { N O O P } } ^ { \\prime }$ , ‘FIRE’, ‘LEFT’, ‘RIGHTFIRE’, ‘LEFTFIRE’) of $p _ { \\theta _ { 2 } } ^ { s _ { 1 } }$ near to $p _ { \\theta _ { 1 } } ^ { s _ { 1 } }$ . Instead, it’s better to relax this requirement to enlarge the freedom degree of the network and focus on learning important actions. Doing this brings another advantage, the agent can explore more for non critical actions. From the perspective of the manifold, optimal parameters constitute a solution manifold. The KLD penalty will act until $\\theta$ exactly locates in the solution if possible, akin to mapping a point onto a curve. Instead, if the agent concentrates only on critical actions like a human does, it’s much easier to approach the manifold in a higher dimension. This is comparable to expanding the solution manifold by at least one dimension, e.g. from curves to surfaces or from surfaces to spheres. ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
138,
|
| 704 |
+
825,
|
| 705 |
+
361
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 4
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "3.4 EXPLORATION ",
|
| 712 |
+
"text_level": 1,
|
| 713 |
+
"bbox": [
|
| 714 |
+
176,
|
| 715 |
+
397,
|
| 716 |
+
315,
|
| 717 |
+
411
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 4
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "One shared highlight in reinforcement learning is the balance between exploitation and exploration. For a policy-gradient algorithm, entropy is added in the total loss to encourage exploration in most cases. When included in the loss function, KLD penalizes the old and new policy probability mismatch for all possible actions as Equation 12 given a state $s$ . This strict punishment for every action’s probability mismatch, which discourages exploration. ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
174,
|
| 726 |
+
431,
|
| 727 |
+
825,
|
| 728 |
+
501
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 4
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "3.5 POINT PROBABILITY DISTANCE ",
|
| 735 |
+
"text_level": 1,
|
| 736 |
+
"bbox": [
|
| 737 |
+
176,
|
| 738 |
+
537,
|
| 739 |
+
434,
|
| 740 |
+
553
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 4
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "text",
|
| 746 |
+
"text": "To overcome the above-mentioned shortcomings, we propose a surrogate objective with the point probability distance penalty, which is symmetric and more optimistic than PPO. In the discrete domain, when the agent takes action $a$ , the point probability distance between $\\pi _ { \\theta _ { o l d } } ( \\cdot | s )$ and $\\pi _ { \\boldsymbol { \\theta } } ( \\cdot | \\boldsymbol { s } )$ is defined by ",
|
| 747 |
+
"bbox": [
|
| 748 |
+
174,
|
| 749 |
+
571,
|
| 750 |
+
825,
|
| 751 |
+
628
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 4
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "equation",
|
| 757 |
+
"img_path": "images/e08d5b22ac053b10609368ec276eb1ad9491e7579872d63b85679d166fb7f431.jpg",
|
| 758 |
+
"text": "$$\nD _ { p p } ^ { a } ( \\pi _ { \\theta _ { o l d } } ( \\cdot | s ) , \\pi _ { \\theta } ( \\cdot | s ) ) = ( \\pi _ { \\theta _ { o l d } } ( a | s ) - \\pi _ { \\theta } ( a | s ) ) ^ { 2 } .\n$$",
|
| 759 |
+
"text_format": "latex",
|
| 760 |
+
"bbox": [
|
| 761 |
+
326,
|
| 762 |
+
672,
|
| 763 |
+
669,
|
| 764 |
+
693
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 4
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Attention should be paid to the penalty definition item, the distance is measured by the point probability, which emphasizes its mismatch for the sampled actions for a state. Unless it would lead to confusion, we omit $a$ for simplicity in the following sections. Undoubtedly, $D _ { p p }$ is symmetric by definition. Furthermore, it can be proved that $D _ { p p }$ is indeed a lower bound for the total variance divergence $D _ { T V }$ . As a special case, it can be easily proved that for binary distribution, $D _ { T V } ^ { 2 } ( p | | q ) =$ $D _ { p p } ( p | | q )$ . ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
727,
|
| 774 |
+
825,
|
| 775 |
+
814
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 4
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Theorem 3.1. For two discrete probability distributions $p$ and $q$ with $K$ values, then $D _ { T V } ^ { 2 } ( p | | q ) \\geq$ $D _ { p p } ^ { a } ( p | | q )$ holds for any action a and $\\mathbb { E } _ { a } D _ { p p } ^ { a } ( p | | q )$ is a lower bound for $D _ { T V } ^ { 2 } ( p | | q )$ . ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
171,
|
| 784 |
+
827,
|
| 785 |
+
823,
|
| 786 |
+
857
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 4
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "Proof. Let $p _ { l } = \\alpha , q _ { l } = \\beta$ for the $l$ -th action $a$ , and suppose $a \\geq b$ without loss of generalization. So, ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
171,
|
| 795 |
+
102,
|
| 796 |
+
826,
|
| 797 |
+
119
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 5
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "equation",
|
| 803 |
+
"img_path": "images/a95b9c6081c5d3da78cc71bea8c75622d08122a83f9dfdaeba9e8f8c615963e4.jpg",
|
| 804 |
+
"text": "$$\n\\begin{array} { l c l } { \\displaystyle D _ { T V } ^ { 2 } ( p | | q ) } & { = } & { \\displaystyle ( \\frac { 1 } { 2 } \\sum _ { i = 1 } ^ { K } | p _ { i } - q _ { i } | ) ^ { 2 } = ( \\frac { 1 } { 2 } \\sum _ { i = 1 , i \\neq l } ^ { K } | p _ { i } - q _ { i } | + \\frac { 1 } { 2 } | p _ { l } - q _ { l } | ) ^ { 2 } } \\\\ & { \\ge } & { \\displaystyle ( \\frac { 1 } { 2 } | \\sum _ { i = 1 , i \\neq l } ^ { K } p _ { i } - q _ { i } | + \\frac { 1 } { 2 } ( \\alpha - \\beta ) ) ^ { 2 } = ( \\frac { 1 } { 2 } | 1 - \\alpha - ( 1 - \\beta ) | + \\frac { 1 } { 2 } ( \\alpha - \\beta ) ) ^ { 2 } } \\\\ & { = } & { \\displaystyle ( \\frac { 1 } { 2 } ( \\alpha - \\beta ) + \\frac { 1 } { 2 } ( \\alpha - \\beta ) ) ^ { 2 } = D _ { p p } ^ { \\alpha } ( p | | q ) } \\\\ { \\mathbb { E } _ { a } D _ { p p } ^ { a } ( p | | q ) } & { = } & { \\displaystyle \\sum _ { a } p ( a ) D _ { p p } ^ { a } ( p | | q ) \\le \\sum _ { a } p ( a ) D _ { T V } ^ { 2 } ( p | | q ) = D _ { T V } ^ { 2 } ( p | | q ) } \\end{array}\n$$",
|
| 805 |
+
"text_format": "latex",
|
| 806 |
+
"bbox": [
|
| 807 |
+
192,
|
| 808 |
+
132,
|
| 809 |
+
805,
|
| 810 |
+
289
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 5
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "Since $0 \\leq \\pi _ { \\theta } ( a | s ) \\leq 1$ holds for discrete action space, $D _ { p p }$ has a lower and upper boundary: $0 \\leq D _ { p p } \\leq 1$ . Moreover, $D _ { p p }$ is less sensitive to action space dimension than KLD, which has a similar effect as PPO’s clipped ratio to increase robustness and enhance stability. Equation 13 stays unchanged for the continuous domain, and the only difference is $\\pi _ { \\boldsymbol { \\theta } } ( a | \\boldsymbol { s } )$ represents point probability density instead of probability. ",
|
| 817 |
+
"bbox": [
|
| 818 |
+
173,
|
| 819 |
+
359,
|
| 820 |
+
825,
|
| 821 |
+
431
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 5
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "3.6 POP3D ",
|
| 828 |
+
"text_level": 1,
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
454,
|
| 832 |
+
269,
|
| 833 |
+
469
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 5
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "After we have defined the point probability distance, we use a new surrogate objective $f _ { \\theta }$ for POP3D, which can be written as ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
484,
|
| 843 |
+
825,
|
| 844 |
+
513
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 5
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "equation",
|
| 850 |
+
"img_path": "images/4b5d4584bef3d54359d613a0619fafda3b9c69c02e44429271e906efcaac94df.jpg",
|
| 851 |
+
"text": "$$\n\\operatorname* { m a x } _ { \\theta } \\quad \\mathbb { E } _ { t } [ \\frac { \\pi _ { \\theta } ( a _ { t } | s _ { t } ) } { \\pi _ { \\theta _ { o l d } } ( a _ { t } | s _ { t } ) } \\hat { A } _ { t } - \\beta D _ { p p } ^ { a _ { t } } ( \\pi _ { \\theta _ { o l d } } ( \\cdot | s _ { t } ) , \\pi _ { \\theta } ( \\cdot | s _ { t } ) ) ] ,\n$$",
|
| 852 |
+
"text_format": "latex",
|
| 853 |
+
"bbox": [
|
| 854 |
+
308,
|
| 855 |
+
523,
|
| 856 |
+
689,
|
| 857 |
+
559
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 5
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "where $\\beta$ is the penalized coefficient. These combined advantages lead to considerable performance improvement, which escapes from the dilemma of choosing preferable penalty coefficient. Besides, we use generalized advantage estimates to calculate $\\hat { A } _ { t }$ . Algorithm 1 shows the complete iteration process of POP3D. Moreover, it possesses the same computing cost and data efficiency as PPO. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
570,
|
| 867 |
+
826,
|
| 868 |
+
631
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 5
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Algorithm 1 POP3D ",
|
| 875 |
+
"text_level": 1,
|
| 876 |
+
"bbox": [
|
| 877 |
+
173,
|
| 878 |
+
651,
|
| 879 |
+
313,
|
| 880 |
+
666
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 5
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "1: Input: max iterations $L$ , actors $N$ , epochs $K$ \n2: for iteration $= 1$ to $L$ do \n3: for actor $= 1$ to $N$ do \n4: Run policy $\\pi _ { \\theta _ { o l d } }$ for $T$ time steps \n5: Compute advantage estimations $\\hat { A } _ { 1 } , . . . , \\hat { A } _ { T }$ \n6: end for \n7: for epoch $, = 1$ to $K$ do \n8: Optimized loss objective $f ( \\theta )$ w.r.t $\\theta$ with mini-batch size $M \\leq N T$ , then update $\\theta _ { o l d } \\theta$ . \n9: end for \n10: end for ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
178,
|
| 889 |
+
667,
|
| 890 |
+
826,
|
| 891 |
+
813
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 5
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "3.7 WORKING MECHANISM OF POP3D ",
|
| 898 |
+
"text_level": 1,
|
| 899 |
+
"bbox": [
|
| 900 |
+
176,
|
| 901 |
+
852,
|
| 902 |
+
460,
|
| 903 |
+
867
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 5
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "As for the toy example in Section 3.3, Therefore, it can help the agent to f $D _ { p p } ^ { R I G H T } ( \\pi _ { \\theta _ { 1 } } ( \\cdot | s ) | | \\pi _ { \\theta _ { 2 } } ( \\cdot | s ) = D _ { p p } ^ { R I G H T } ( \\pi _ { \\theta _ { 1 } } ( \\cdot | s ) | | \\pi _ { \\theta _ { 3 } } ( \\cdot | s ) = 0 .$ $\\theta$ $\\theta _ { o l d }$ Equation 14, the gradient $f ( \\theta )$ w.r.t. $\\theta$ can be written as ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
174,
|
| 912 |
+
878,
|
| 913 |
+
826,
|
| 914 |
+
924
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 5
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "equation",
|
| 920 |
+
"img_path": "images/5e17806dcde5f15ce92e950ce11741b8c13c43b18e4306768bb237fc88e5deb1.jpg",
|
| 921 |
+
"text": "$$\n\\begin{array} { l l } { \\nabla _ { \\theta } f ( \\theta ) = \\frac { \\nabla _ { \\theta } \\pi _ { \\theta } \\left( a _ { t } | s _ { t } \\right) } { \\pi _ { \\theta _ { o l d } } \\left( a _ { t } | s _ { t } \\right) } \\hat { A } _ { t } - 2 \\beta [ \\pi _ { \\theta } ( a _ { t } | s _ { t } ) - \\pi _ { \\theta _ { o l d } } ( a _ { t } | s _ { t } ) ] \\nabla _ { \\theta } \\pi _ { \\theta } ( a _ { t } | s _ { t } ) } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\hat { A } _ { t } } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\pi _ { \\theta } \\pi _ { \\theta } ( a _ { t } | s _ { t } ) [ \\frac { \\hat { A } _ { t } } { \\pi _ { \\theta _ { o l d } } \\left( a _ { t } | s _ { t } \\right) } - 2 \\beta ( \\pi _ { \\theta } ( a _ { t } | s _ { t } ) - \\pi _ { \\theta _ { o l d } } ( a _ { t } | s _ { t } ) ) ] } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\hat { A } _ { t } } \\\\ { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad } \\end{array}\n$$",
|
| 922 |
+
"text_format": "latex",
|
| 923 |
+
"bbox": [
|
| 924 |
+
261,
|
| 925 |
+
125,
|
| 926 |
+
732,
|
| 927 |
+
236
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 6
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "where $\\delta ( \\boldsymbol { a } _ { t } | \\boldsymbol { s } _ { t } ) : = \\pi _ { \\boldsymbol { \\theta } } ( \\boldsymbol { a } _ { t } | \\boldsymbol { s } _ { t } ) - \\pi _ { \\boldsymbol { \\theta } _ { o l d } } ( \\boldsymbol { a } _ { t } | \\boldsymbol { s } _ { t } )$ . Suppose the agent selects $a _ { t }$ at $s _ { t }$ using $\\pi _ { \\theta _ { o l d } }$ and obtains a positive advantage $\\hat { A } _ { t }$ , if $\\pi _ { \\boldsymbol { \\theta } } \\big ( a _ { t } | \\boldsymbol { s } _ { t } \\big )$ is larger than $\\pi _ { \\boldsymbol { \\theta } } ( a _ { t } | \\boldsymbol { s } _ { t } )$ , then $2 \\beta \\delta ( a _ { t } | s _ { t } )$ will play a damping role to avoid too greedy preference for $a _ { t }$ (i.e. too large probability), which in turn leaves more space for other actions to be explored. Other cases such as negative $\\hat { A } _ { t }$ can be analyzed similarly. The hyper-parameter $\\beta$ controls the damping force. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
242,
|
| 937 |
+
825,
|
| 938 |
+
318
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 6
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "In the early stage of learning, $\\pi _ { \\theta _ { o l d } } ( a _ { t } | s _ { t } )$ is near $1 / K$ (taking $K$ discrete spaces for example) and the magnitude of $\\hat { A } _ { t }$ is large, while the damping force is a bit weak. Therefore, the agent learns fast. Then $\\beta$ shows a relative stronger force to avoid overshooting for action selection and encourage more exploration. As for the final stage, the policy changes slowly because the learning rate is low, where $\\delta ( \\boldsymbol { a } _ { t } | \\boldsymbol { s } _ { t } )$ is small and therefore it converges. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
173,
|
| 947 |
+
323,
|
| 948 |
+
825,
|
| 949 |
+
397
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 6
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "3.8 RELATIONSHIP WITH PPO ",
|
| 956 |
+
"text_level": 1,
|
| 957 |
+
"bbox": [
|
| 958 |
+
176,
|
| 959 |
+
415,
|
| 960 |
+
400,
|
| 961 |
+
430
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 6
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "To conclude this section, we take some time to see why PPO works by taking the above viewpoints into account. When we pour more attention to Equation 9, the ratio $r _ { t } ( \\boldsymbol { \\dot { \\theta } } )$ only involves the probability for given action $a$ , which is chosen by policy $\\pi$ . In other words, all other actions’ probabilities except $a$ are not activated, which no longer contribute to back-propagation and allow probability mismatch, which encourage exploration. This procedure behaves similarly to POP3D, which helps the network to learn more easily. Above all, POP3D is designed to conform with the regulations for overcoming above mentioned problems, and in the next section experiments from commonly used benchmarks will evaluate its performance. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
173,
|
| 970 |
+
443,
|
| 971 |
+
825,
|
| 972 |
+
555
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 6
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "4 EXPERIMENTS ",
|
| 979 |
+
"text_level": 1,
|
| 980 |
+
"bbox": [
|
| 981 |
+
176,
|
| 982 |
+
578,
|
| 983 |
+
326,
|
| 984 |
+
594
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 6
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "4.1 CONTROLLED EXPERIMENTS SETUP ",
|
| 991 |
+
"text_level": 1,
|
| 992 |
+
"bbox": [
|
| 993 |
+
176,
|
| 994 |
+
611,
|
| 995 |
+
465,
|
| 996 |
+
626
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 6
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "OpenAI Gym is a well-known simulation environment to test and evaluate various reinforcement algorithms, which is composed of both discrete (Atari) and continuous (Mujoco) domains (Brockman et al., 2016). Most recent deep reinforcement learning methods such as DQN variants (Van Hasselt et al., 2016; Wang et al., 2016; Schaul et al., 2015; Bellemare et al., 2017; Hessel et al., 2018), A3C, ACKTR, PPO are evaluated using only one set of hyper-parameters5. Therefore, we evaluate POP3D’s performance on 49 Atari games(v4, discrete action space ) and 7 Mujoco (v2, continuous). ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
174,
|
| 1005 |
+
638,
|
| 1006 |
+
825,
|
| 1007 |
+
722
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 6
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Since PPO is a distinguished RL algorithm which defeats various methods such as A3C, A2C ACKTR, we focus on a detailed quantitative comparison with fine-tuned PPO. And we don’t consider large scale distributed algorithms Apex-DQN (Horgan et al., 2018) and IMPALA (Espeholt et al., 2018), because we concentrate on comparable and fair evaluation, while the latter is designed to apply with large scale parallelism. Nevertheless, some orthogonal improvements from those methods have the potentials to improve our method further. Furthermore, we include TRPO to acts as a baseline method. Engstrom et al. (2020) carefully study the underlying factor that helps PPO outperform TPRO. To avoid unfair comparisons, we carefully control the settings. In addition, quantitative comparisons between KLD and point probability penalty helps to convince the critical role of the latter, where the former strategy is named fixed KLD in Schulman et al. (2017) and can act as another good baseline in this context, named by BASELINE below. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
728,
|
| 1017 |
+
826,
|
| 1018 |
+
882
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 6
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "In particular, we retrained one agent for each game with fine-tuned hyper-parameters6. To avoid the problems of reproduction about reinforcement algorithms mentioned in Henderson et al. (2018), we take the following measures: ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
174,
|
| 1027 |
+
103,
|
| 1028 |
+
825,
|
| 1029 |
+
145
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 7
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "• Use the same training steps and make use of the same amount of game frames(40M for Atari game and 10M for Mujoco). \n• Use the same neural network structures, which is the CNN model with one action head and one value head for the Atari game, and a fully-connected model with one value head and one action head which produces the mean and standard deviation of diagonal Gaussian distribution as PPO. \n• Initialize parameters using the same strategy as PPO. \n• Keep Gym wrappers from Deepmind such as reward clipping and frame stacking unchanged for Atari domain, and enable 30 no-ops at the beginning of each episode. \n• Use Adam optimizer (Kingma & Ba, 2014) and decrease $\\alpha$ linearly from 1 to 0 for Atari domain as PPO. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
217,
|
| 1038 |
+
159,
|
| 1039 |
+
825,
|
| 1040 |
+
332
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 7
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "To facilitate further comparisons with other approaches, we release the seeds and detailed results7(across the entire training process for different trials). In addition, we randomly select three seeds from $\\{ 0 , 1 0 , 1 0 0 , 1 0 0 0 , 1 0 0 0 0 \\}$ for two domains, {10,100,1000} for Atari and {0,10,100} for Mujoco in order to decrease unfavorable subjective bias stated in Henderson et al. (2018). ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
174,
|
| 1049 |
+
345,
|
| 1050 |
+
825,
|
| 1051 |
+
402
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 7
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "4.2 EVALUATION METRICS ",
|
| 1058 |
+
"text_level": 1,
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
174,
|
| 1061 |
+
419,
|
| 1062 |
+
375,
|
| 1063 |
+
433
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 7
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "PPO utilizes two score metrics for evaluating agents’ performance using various RL algorithms. One is the mean score of the last 100 episodes $S c o r e _ { 1 0 0 }$ , which measures how high a strategy can hit eventually. Another is the average score across all episodes $S c o r e _ { a l l }$ , which evaluates how fast an agent learns. In this paper, we conform to this routine and calculate individual metric by averaging three seeds in the same way. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
174,
|
| 1072 |
+
445,
|
| 1073 |
+
825,
|
| 1074 |
+
515
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 7
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "4.3 DISCRETE DOMAIN COMPARISONS ",
|
| 1081 |
+
"text_level": 1,
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
176,
|
| 1084 |
+
531,
|
| 1085 |
+
457,
|
| 1086 |
+
546
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 7
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Hyper-parameters We search hyper-parameter four times for the penalty coefficient $\\beta$ based on four Atari games while keeping other hyper-parameters unchanged as PPO and fix $\\beta = 5 . 0$ to train all Atari games. For BASELINE, we also search hyper-parameter four times on penalty coefficient $\\beta$ and choose $\\beta = 1 0 . 0$ . To save space, detailed hyper-parameter setting can be found in Table 6 and 7. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
174,
|
| 1095 |
+
558,
|
| 1096 |
+
825,
|
| 1097 |
+
614
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 7
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "This process is not beneficial for POP3D owing to missing optimization for all hyper-parameters. There are two reasons to make this choice. On the one hand, it’s the simplest way to make a relatively fair comparison group such as keeping the same iterations and epochs within one loop to our knowledge. On the other hand, this process imposes low search requirements for time and resources. That’s to say, we can draw a conclusion that our method is at least competitive to PPO if it performs better on benchmarks. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
621,
|
| 1107 |
+
825,
|
| 1108 |
+
704
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 7
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Comparisons The final score of each game is averaged by three different seeds and the highest is in bold. As Table 1 shows, POP3D outperforms 32 across 49 Atari games given the final score, followed by PPO with 11, BASELINE with 5, and TRPO with 1. Interestingly, for games that POP3D score highest, BASELINE score worse than PPO more often than the other way round, which means that POP3D is not just an approximate version of BASELINE. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
174,
|
| 1117 |
+
712,
|
| 1118 |
+
825,
|
| 1119 |
+
781
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 7
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "For another metric, POP3D wins 20 out of 49 Atari games which matches PPO with 18, followed by BASELINE with 6, and last ranked by TRPO with 5. If we measure the stability of an algorithm by the score variance of different trials, POP3D scores high with good stability across various seeds. And PPO behaves worse in Game Kangaroo and UpNDown. Interestingly, BASELINE shows a large variance for different seeds for several games such as BattleZone, Freeway, Pitfall, and Seaquest. POP3D reveals its better capacity to score high and similar fast learning ability in this domain. The detailed metric for each game is listed in Table 3 and 4. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
174,
|
| 1128 |
+
787,
|
| 1129 |
+
825,
|
| 1130 |
+
886
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 7
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "4.4 CONTINUOUS DOMAIN COMPARISONS ",
|
| 1137 |
+
"text_level": 1,
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
176,
|
| 1140 |
+
103,
|
| 1141 |
+
480,
|
| 1142 |
+
117
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Hyper-parameters For PPO, we use the same hyperparameter configuration as Schulman et al. (2017). Regarding POP3D, we search on two games three times and select 5.0 as the penalty coefficient. More details about hyper-parameters for PPO and POP3D are listed in Table 8. Unlike the Atari domain, we utilize the constant learning rate strategy as Schulman et al. (2017) in the continuous domain instead of the linear decrease strategy. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
174,
|
| 1151 |
+
130,
|
| 1152 |
+
531,
|
| 1153 |
+
256
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 8
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Comparison Results The scores are also averaged on three trials and summarized in Table 1. POP3D occupies 6 out of 7 games on $S c o r e _ { 1 0 0 }$ . Evaluation metrics of both across different games are illustrated in Table 2 ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
173,
|
| 1162 |
+
262,
|
| 1163 |
+
531,
|
| 1164 |
+
318
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 8
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "table",
|
| 1170 |
+
"img_path": "images/c293fb60b774bcd29e3715d965787fc6d86e1237874544d5e6d78bed9da8d9aa.jpg",
|
| 1171 |
+
"table_caption": [
|
| 1172 |
+
"Table 1: Top: The number of games \"won\" by each algorithm for Atari games. Bottom: The number of games won by each algorithm for Mujoco games. Each experiment is averaged across three seeds. "
|
| 1173 |
+
],
|
| 1174 |
+
"table_footnote": [
|
| 1175 |
+
"and 5. In summary, both metrics indicate that POP3D is competitive to PPO in the continuous domain. "
|
| 1176 |
+
],
|
| 1177 |
+
"table_body": "<table><tr><td>Metric</td><td colspan=\"4\">PPO POP3D BASELINE TRPO</td></tr><tr><td>Score100 Scoreall</td><td>11 18</td><td>32 20</td><td>5 6</td><td>1 5</td></tr><tr><td></td><td>Metric</td><td>PPO POP3D</td><td></td><td></td></tr><tr><td></td><td>Score100</td><td>1</td><td>6</td><td></td></tr><tr><td></td><td>Scoreall</td><td>4</td><td>3</td><td></td></tr></table>",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
553,
|
| 1180 |
+
203,
|
| 1181 |
+
813,
|
| 1182 |
+
314
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 8
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "5 CONCLUSION ",
|
| 1189 |
+
"text_level": 1,
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
176,
|
| 1192 |
+
352,
|
| 1193 |
+
318,
|
| 1194 |
+
367
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 8
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "In this paper, we introduce a new reinforcement learning algorithm called POP3D (Policy Optimization with Penalized Point Probability Distance), which acts as a TRPO variant like PPO. Compared with KLD that is an upper bound for the square of total variance divergence between two distributions, the penalized point probability distance is a symmetric lower bound. Besides, it equivalently expands the optimal solution manifold effectively while encouraging exploration, which is a similar mechanism implicitly possessed by PPO. The proposed method not only possesses several critical improvements from PPO but outperforms with a clear margin on 49 Atari games from the respective of final scores and meets PPO’s match as for fast learning ability. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
174,
|
| 1203 |
+
383,
|
| 1204 |
+
531,
|
| 1205 |
+
592
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 8
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "table",
|
| 1211 |
+
"img_path": "images/1efbbfe3526c554ef70fba199a014a6bd603362a27a3f2eedd7d1a3d4be8801e.jpg",
|
| 1212 |
+
"table_caption": [
|
| 1213 |
+
"Table 2: Mean final scores (last 100 episodes) of PPO, POP3D on Mujoco games after 10M frames. The results are averaged by three trials. "
|
| 1214 |
+
],
|
| 1215 |
+
"table_footnote": [],
|
| 1216 |
+
"table_body": "<table><tr><td>Game</td><td>PPO</td><td>POP3D</td></tr><tr><td>HalfCheetah</td><td>2726.03</td><td>3184.54</td></tr><tr><td>Hopper</td><td>2027.21</td><td>1452.09</td></tr><tr><td>InvertedDblPendulum 4455.03</td><td></td><td>4907.64</td></tr><tr><td>InvertedPendulum</td><td>544.02</td><td>741.94</td></tr><tr><td>Reacher</td><td>-5.00</td><td>-4.29</td></tr><tr><td>Swimmer</td><td>111.88</td><td>112.08</td></tr><tr><td>Walker2d</td><td>1112.25</td><td>3966.01</td></tr></table>",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
540,
|
| 1219 |
+
446,
|
| 1220 |
+
834,
|
| 1221 |
+
575
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 8
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "More interestingly, it not only suffers less from the penalty item setting headache along with TRPO, where is arduous to select one fixed value for various environments but outperforms fixed KLD baseline from PPO. In summary, POP3D is highly competitive and an alternative to PPO. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
174,
|
| 1230 |
+
598,
|
| 1231 |
+
828,
|
| 1232 |
+
641
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "REFERENCES ",
|
| 1239 |
+
"text_level": 1,
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
176,
|
| 1242 |
+
102,
|
| 1243 |
+
287,
|
| 1244 |
+
118
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 9
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. arXiv preprint arXiv:1707.06887, 2017. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
176,
|
| 1253 |
+
126,
|
| 1254 |
+
823,
|
| 1255 |
+
155
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 9
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
171,
|
| 1264 |
+
164,
|
| 1265 |
+
823,
|
| 1266 |
+
193
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 9
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Firdaus Janoos, Larry Rudolph, and Aleksander Madry. Implementation matters in deep rl: A case study on ppo and trpo. In International Conference on Learning Representations, 2020. URL https://openreview. net/forum?id ${ . } = { }$ r1etN1rtPB. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
173,
|
| 1275 |
+
200,
|
| 1276 |
+
826,
|
| 1277 |
+
257
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 9
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymir Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. arXiv preprint arXiv:1802.01561, 2018. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
176,
|
| 1286 |
+
267,
|
| 1287 |
+
823,
|
| 1288 |
+
310
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 9
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, pp. 1861–1870, 2018. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
174,
|
| 1297 |
+
318,
|
| 1298 |
+
826,
|
| 1299 |
+
362
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 9
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
174,
|
| 1308 |
+
369,
|
| 1309 |
+
826,
|
| 1310 |
+
412
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 9
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
174,
|
| 1319 |
+
421,
|
| 1320 |
+
825,
|
| 1321 |
+
465
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 9
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado van Hasselt, and David Silver. Distributed prioritized experience replay. In International Conference on Learning Representations, 2018. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
173,
|
| 1330 |
+
473,
|
| 1331 |
+
825,
|
| 1332 |
+
517
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 9
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
173,
|
| 1341 |
+
526,
|
| 1342 |
+
825,
|
| 1343 |
+
554
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 9
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436–444, 2015. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
169,
|
| 1352 |
+
563,
|
| 1353 |
+
826,
|
| 1354 |
+
593
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 9
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
176,
|
| 1363 |
+
602,
|
| 1364 |
+
823,
|
| 1365 |
+
645
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 9
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
176,
|
| 1374 |
+
654,
|
| 1375 |
+
825,
|
| 1376 |
+
696
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 9
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pp. 1928–1937, 2016. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
174,
|
| 1385 |
+
705,
|
| 1386 |
+
825,
|
| 1387 |
+
748
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 9
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "Kevin P Murphy. Machine learning: a probabilistic perspective. MIT press, 2012. ",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
174,
|
| 1396 |
+
757,
|
| 1397 |
+
715,
|
| 1398 |
+
773
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 9
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In International Conference on Machine Learning, pp. 4095–4104, 2018. ",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
173,
|
| 1407 |
+
781,
|
| 1408 |
+
818,
|
| 1409 |
+
810
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 9
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. arXiv preprint arXiv:1511.05952, 2015. ",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
174,
|
| 1418 |
+
819,
|
| 1419 |
+
823,
|
| 1420 |
+
848
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 9
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pp. 1889–1897, 2015. ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
173,
|
| 1429 |
+
857,
|
| 1430 |
+
821,
|
| 1431 |
+
887
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 9
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In ICLR, 2016. ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
173,
|
| 1440 |
+
895,
|
| 1441 |
+
823,
|
| 1442 |
+
924
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 9
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
169,
|
| 1451 |
+
103,
|
| 1452 |
+
825,
|
| 1453 |
+
132
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 10
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017. ",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
178,
|
| 1462 |
+
141,
|
| 1463 |
+
823,
|
| 1464 |
+
184
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 10
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. ",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
173,
|
| 1473 |
+
193,
|
| 1474 |
+
825,
|
| 1475 |
+
208
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 10
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "text",
|
| 1481 |
+
"text": "Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2820–2828, 2019. ",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
176,
|
| 1484 |
+
215,
|
| 1485 |
+
823,
|
| 1486 |
+
260
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 10
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"type": "text",
|
| 1492 |
+
"text": "Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double qlearning. In Thirtieth AAAI conference on artificial intelligence, 2016. ",
|
| 1493 |
+
"bbox": [
|
| 1494 |
+
171,
|
| 1495 |
+
267,
|
| 1496 |
+
825,
|
| 1497 |
+
297
|
| 1498 |
+
],
|
| 1499 |
+
"page_idx": 10
|
| 1500 |
+
},
|
| 1501 |
+
{
|
| 1502 |
+
"type": "text",
|
| 1503 |
+
"text": "Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Hasselt, Marc Lanctot, and Nando Freitas. Dueling network architectures for deep reinforcement learning. In International conference on machine learning, pp. 1995–2003, 2016. ",
|
| 1504 |
+
"bbox": [
|
| 1505 |
+
176,
|
| 1506 |
+
305,
|
| 1507 |
+
821,
|
| 1508 |
+
348
|
| 1509 |
+
],
|
| 1510 |
+
"page_idx": 10
|
| 1511 |
+
},
|
| 1512 |
+
{
|
| 1513 |
+
"type": "text",
|
| 1514 |
+
"text": "Yuhuai Wu, Elman Mansimov, Roger B Grosse, Shun Liao, and Jimmy Ba. Scalable trust-region method for deep reinforcement learning using kronecker-factored approximation. In Advances in neural information processing systems, pp. 5279–5288, 2017. ",
|
| 1515 |
+
"bbox": [
|
| 1516 |
+
176,
|
| 1517 |
+
357,
|
| 1518 |
+
825,
|
| 1519 |
+
400
|
| 1520 |
+
],
|
| 1521 |
+
"page_idx": 10
|
| 1522 |
+
},
|
| 1523 |
+
{
|
| 1524 |
+
"type": "text",
|
| 1525 |
+
"text": "A SCORE TABLES AND CURVES ",
|
| 1526 |
+
"text_level": 1,
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
176,
|
| 1529 |
+
102,
|
| 1530 |
+
452,
|
| 1531 |
+
118
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 11
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "Mean scores of various methods for Atari domain are listed in Table 3 and 4. ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
174,
|
| 1540 |
+
150,
|
| 1541 |
+
674,
|
| 1542 |
+
165
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 11
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "table",
|
| 1548 |
+
"img_path": "images/3b50531ddfff889c389e426d48a60dc8a09a1a31993985989410f59ebdd89389.jpg",
|
| 1549 |
+
"table_caption": [
|
| 1550 |
+
"Table 3: Mean final scores (last 100 episodes) of PPO, POP3D, BASELINE and TRPO on Atari games after 40M frames. The results are averaged on three trials. "
|
| 1551 |
+
],
|
| 1552 |
+
"table_footnote": [],
|
| 1553 |
+
"table_body": "<table><tr><td>game</td><td>POP3D</td><td>PPO</td><td>BASELINE</td><td>TPRO</td></tr><tr><td>Alien</td><td>1510.80</td><td>1431.17</td><td>1311.23</td><td>1110.40</td></tr><tr><td>Amidar</td><td>729.15</td><td>790.75</td><td>655.10</td><td>200.56</td></tr><tr><td>Assault</td><td>5400.13</td><td>4438.82</td><td>1846.75</td><td>1363.46</td></tr><tr><td>Asterix</td><td>4310.67</td><td>3483.17</td><td>3657.67</td><td>2651.33</td></tr><tr><td>Asteroids</td><td>2488.10</td><td>1605.33</td><td>1615.37</td><td>2205.70</td></tr><tr><td>Atlantis</td><td>2193605.67</td><td>2140536.33</td><td>1515993.33</td><td>1419104.67</td></tr><tr><td>BankHeist</td><td>1212.23</td><td>1206.67</td><td>1124.43</td><td>1125.17</td></tr><tr><td>BattleZone</td><td>15466.67</td><td>14766.67</td><td>14690.00</td><td>15123.33</td></tr><tr><td>BeamRider</td><td>4549.00</td><td>2624.19</td><td>6898.09</td><td>5073.75</td></tr><tr><td>Bowling</td><td>38.99</td><td>47.27</td><td>30.48</td><td>31.24</td></tr><tr><td>Boxing</td><td>97.23</td><td>93.70</td><td>65.33</td><td>50.07</td></tr><tr><td>Breakout</td><td>458.41</td><td>281.93</td><td>67.70</td><td>40.65</td></tr><tr><td>Centipede</td><td>3315.44</td><td>3565.18</td><td>3393.93</td><td>3353.14</td></tr><tr><td>Chopper-Command</td><td>6308.33</td><td>4872.67</td><td>2676.00</td><td>2286.67</td></tr><tr><td>CrazyClimber</td><td>120247.33</td><td>105940.00</td><td>98219.67</td><td>87522.33</td></tr><tr><td>DemonAttack</td><td>61147.33</td><td>26740.57</td><td>57476.65</td><td>21525.08</td></tr><tr><td>DoubleDunk</td><td>-7.89</td><td>-11.22</td><td>-8.61</td><td>-10.04</td></tr><tr><td>Enduro</td><td>459.85</td><td>698.46</td><td>518.41</td><td>365.95</td></tr><tr><td>FishingDerby</td><td>28.99</td><td>17.72</td><td>-64.27</td><td>-69.64</td></tr><tr><td>Freeway</td><td>21.21</td><td>21.11</td><td>18.37</td><td>20.89</td></tr><tr><td>Frostbite</td><td>316.87</td><td>280.30</td><td>280.30</td><td>291.77</td></tr><tr><td>Gopher</td><td>6207.00</td><td>1791.00</td><td>940.87</td><td>938.27</td></tr><tr><td>Gravitar</td><td>557.17</td><td>753.50</td><td>449.00</td><td>495.17</td></tr><tr><td>IceHockey</td><td>-4.12</td><td>-4.83</td><td>-3.61</td><td>-4.61</td></tr><tr><td>Jamesbond</td><td>527.17</td><td>488.17</td><td>685.17</td><td>901.67</td></tr><tr><td>Kangaroo</td><td>3891.67</td><td>6845.00</td><td>1850.00</td><td>1214.67</td></tr><tr><td>Krull</td><td>7715.68</td><td>8329.08</td><td>7204.95</td><td>4881.65</td></tr><tr><td>KungFuMaster</td><td>33728.00</td><td>29958.67</td><td>29843.67</td><td>26808.00</td></tr><tr><td>Montezuma-Revenge</td><td>0.00</td><td>10.67</td><td>0.67</td><td>0.00</td></tr><tr><td>MsPacman</td><td>1683.87</td><td>1981.50</td><td>1170.70</td><td>1133.57</td></tr><tr><td>NameThisGame</td><td>6065.63</td><td>5397.47</td><td>5672.60</td><td>5604.10</td></tr><tr><td>Pitfall</td><td>0.00</td><td>-2.32</td><td>-17.26</td><td>-43.60</td></tr><tr><td>Pong</td><td>20.50</td><td>20.80</td><td>20.79</td><td>19.63</td></tr><tr><td>PrivateEye</td><td>79.67</td><td>36.50</td><td>99.67</td><td>99.33</td></tr><tr><td>Qbert</td><td>15396.67</td><td>14556.83</td><td>4114.00</td><td>3781.58</td></tr><tr><td>Riverraid</td><td>8052.23</td><td>7360.40</td><td>7722.00</td><td>6773.67</td></tr><tr><td>RoadRunner</td><td>44679.67</td><td>36289.33</td><td>43626.33</td><td>24061.33</td></tr><tr><td>Robotank</td><td>4.60</td><td>14.15</td><td>24.60</td><td>24.18</td></tr><tr><td>Seaquest</td><td>1807.47</td><td>1470.60</td><td>1501.47</td><td>926.40</td></tr><tr><td>SpaceInvaders</td><td>1216.15</td><td>944.63</td><td>814.53</td><td>634.07</td></tr><tr><td>StarGunner</td><td>48984.00</td><td>33862.00</td><td>47738.00</td><td>33442.67</td></tr><tr><td>Tennis</td><td>-8.32</td><td>-13.74</td><td>-19.13</td><td>-18.40</td></tr><tr><td>TimePilot</td><td>3770.33</td><td>5321.33</td><td>6278.33</td><td>5701.00</td></tr><tr><td>Tutankham</td><td>241.21</td><td>177.58</td><td>135.80</td><td>136.21</td></tr><tr><td>UpNDown</td><td>242701.51</td><td>153160.66</td><td>11815.87</td><td>10949.53</td></tr><tr><td>Venture</td><td>36.33</td><td>0.00</td><td>4.00</td><td>0.00</td></tr><tr><td>VideoPinball</td><td>37780.70</td><td>31577.24</td><td>21438.64</td><td>25095.20</td></tr><tr><td>WizardOfWor</td><td>4704.00</td><td>4886.67</td><td>3533.67</td><td>3103.00</td></tr><tr><td>Zaxxon</td><td>9472.00</td><td>5728.67</td><td>1179.67</td><td>4796.67</td></tr></table>",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
253,
|
| 1556 |
+
238,
|
| 1557 |
+
743,
|
| 1558 |
+
885
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 11
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "table",
|
| 1564 |
+
"img_path": "images/5b807726bf18371054129dc6f645a6d52ca392f2f3bc60d0c20fcc192de19465.jpg",
|
| 1565 |
+
"table_caption": [
|
| 1566 |
+
"Table 4: All episodes mean scores of PPO, POP3D, BASELINE and TRPO on Atari games after 40M frames. The results are averaged by three trials. "
|
| 1567 |
+
],
|
| 1568 |
+
"table_footnote": [],
|
| 1569 |
+
"table_body": "<table><tr><td>game</td><td>POP3D</td><td>PPO</td><td>BASELINE</td><td>TRPO</td></tr><tr><td>Alien</td><td>1147.29</td><td>1115.94</td><td>851.13</td><td>841.08</td></tr><tr><td>Amidar</td><td>299.55</td><td>413.46</td><td>295.91</td><td>169.12</td></tr><tr><td>Assault</td><td>2139.15</td><td>2168.93</td><td>1159.50</td><td>971.78</td></tr><tr><td>Asterix</td><td>2004.43</td><td>2102.10</td><td>1884.68</td><td>1342.83</td></tr><tr><td>Asteroids</td><td>1652.48</td><td>1470.46</td><td>1477.71</td><td>1760.73</td></tr><tr><td>Atlantis</td><td>488134.03</td><td>596807.27</td><td>192798.74</td><td>174394.94</td></tr><tr><td>BankHeist</td><td>662.26</td><td>643.94</td><td>859.25</td><td>831.95</td></tr><tr><td>BattleZone</td><td>11131.44</td><td>9387.77</td><td>11674.30</td><td>12918.39</td></tr><tr><td>BeamRider</td><td>1965.27</td><td>1460.59</td><td>3321.25</td><td>2431.63</td></tr><tr><td>Bowling</td><td>37.97</td><td>39.41</td><td>33.90</td><td>30.99</td></tr><tr><td>Boxing</td><td>83.12</td><td>78.61</td><td>27.92</td><td>23.07</td></tr><tr><td>Breakout</td><td>143.60</td><td>124.98</td><td>29.99</td><td>26.56</td></tr><tr><td>Centipede</td><td>3056.81</td><td>3344.63</td><td>3042.48</td><td>3142.22</td></tr><tr><td>Chopper-</td><td></td><td></td><td></td><td></td></tr><tr><td>Command</td><td>3269.47</td><td>3106.14</td><td>1780.38</td><td>1595.82</td></tr><tr><td>CrazyClimber</td><td>97257.52</td><td>90169.60</td><td>69258.31</td><td>63189.78</td></tr><tr><td>DemonAttack</td><td>7611.27</td><td>7180.43</td><td>9814.42</td><td>6204.68</td></tr><tr><td>DoubleDunk</td><td>-13.70</td><td>-15.45</td><td>-15.93</td><td>-14.57</td></tr><tr><td>Enduro</td><td>107.84</td><td>321.20</td><td>92.59</td><td>140.67</td></tr><tr><td>FishingDerby</td><td>-21.00</td><td>-27.51</td><td>-81.90</td><td>-81.97</td></tr><tr><td>Freeway</td><td>17.76</td><td>15.87</td><td>15.93</td><td>17.33</td></tr><tr><td>Frostbite</td><td>276.47</td><td>267.73</td><td>270.42</td><td>270.57</td></tr><tr><td>Gopher</td><td>1556.29</td><td>1196.20</td><td>900.74</td><td>875.93</td></tr><tr><td>Gravitar</td><td>413.20</td><td>509.81</td><td>342.74</td><td>317.86</td></tr><tr><td>IceHockey</td><td>-4.67</td><td>-5.50</td><td>-4.61</td><td>-5.21</td></tr><tr><td>Jamesbond</td><td>358.54</td><td>394.45</td><td>380.91</td><td>519.01</td></tr><tr><td>Kangaroo</td><td>1614.63</td><td>2199.74</td><td>937.98</td><td>566.85</td></tr><tr><td>Krull</td><td>6538.16</td><td>7195.24</td><td>4760.66</td><td>3861.87</td></tr><tr><td>KungFuMaster</td><td>23253.96</td><td>23283.31</td><td>19637.58</td><td>18293.12</td></tr><tr><td>Montezuma- Revenge</td><td>0.14</td><td>0.74</td><td>0.22</td><td>0.12</td></tr><tr><td>MsPacman</td><td>1214.09</td><td>1482.77</td><td>860.63</td><td>864.84</td></tr><tr><td>NameThisGame</td><td>5353.14</td><td>5199.37</td><td>4562.32</td><td>4504.67</td></tr><tr><td>Pitfall</td><td>-2.41</td><td>-5.81</td><td>-31.27</td><td>-33.93</td></tr><tr><td>Pong</td><td>13.24</td><td>12.83</td><td>7.20</td><td>-2.91</td></tr><tr><td>PrivateEye</td><td>87.37</td><td>52.76</td><td>56.70</td><td>98.79</td></tr><tr><td>Qbert</td><td>5852.10</td><td>6744.13</td><td>1760.92</td><td>1679.03</td></tr><tr><td>Riverraid</td><td>5260.89</td><td>5487.17</td><td>5220.64</td><td>4549.22</td></tr><tr><td>RoadRunner</td><td>25456.31</td><td>24688.07</td><td>20385.91</td><td>16269.40</td></tr><tr><td>Robotank</td><td>3.08</td><td>8.65</td><td>13.89</td><td>14.57</td></tr><tr><td></td><td>1487.84</td><td></td><td></td><td>848.47</td></tr><tr><td>Seaquest</td><td></td><td>1120.15</td><td>1112.51</td><td>483.48</td></tr><tr><td>SpaceInvaders StarGunner</td><td>693.26</td><td>632.17</td><td>552.50</td><td>13341.23</td></tr><tr><td></td><td>14734.11</td><td>13643.80</td><td>16288.35</td><td>-21.04</td></tr><tr><td>Tennis</td><td>-19.86</td><td>-21.80</td><td>-21.84</td><td></td></tr><tr><td>TimePilot Tutankham</td><td>3396.61</td><td>4410.87</td><td>4718.46</td><td>4544.68 109.18</td></tr><tr><td></td><td>179.96</td><td>152.72</td><td>103.95</td><td>7085.02</td></tr><tr><td>UpNDown</td><td>38728.48</td><td>43208.99</td><td>5430.22</td><td></td></tr><tr><td>Venture</td><td>15.89</td><td>14.66</td><td>0.57</td><td>0.03</td></tr><tr><td>VideoPinball WizardOfWor</td><td>27346.44 2340.60</td><td>27549.55 2743.40</td><td>23998.09 2409.94</td><td>23705.39</td></tr><tr><td></td><td></td><td></td><td></td><td>2045.17</td></tr><tr><td>Zaxxon</td><td>3739.56</td><td>1813.90</td><td>256.78</td><td>1521.28</td></tr></table>",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
277,
|
| 1572 |
+
141,
|
| 1573 |
+
715,
|
| 1574 |
+
811
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 12
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "table",
|
| 1580 |
+
"img_path": "images/ea18da1f333365c4964c83e6e2b5a98f721669a57a3d7d0b3b7ffdb4e3e86b43.jpg",
|
| 1581 |
+
"table_caption": [
|
| 1582 |
+
"Table 5: All episodes mean scores of PPO, POP3D on Mujoco games after 10M frames. The results are averaged by three trials. "
|
| 1583 |
+
],
|
| 1584 |
+
"table_footnote": [],
|
| 1585 |
+
"table_body": "<table><tr><td>game</td><td>PPO</td><td>POP3D</td></tr><tr><td>HalfCheetah</td><td>3250.22</td><td>2373.30</td></tr><tr><td>Hopper</td><td>1767.14</td><td>1257.72</td></tr><tr><td>InvertedDoublePendulum</td><td>3684.92</td><td>2561.77</td></tr><tr><td>InvertedPendulum</td><td>531.77</td><td>552.98</td></tr><tr><td>Reacher</td><td>-5.94</td><td>-8.05</td></tr><tr><td>Swimmer</td><td>94.01</td><td>108.27</td></tr><tr><td>Walker2d</td><td>1770.37</td><td>2439.54</td></tr></table>",
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
328,
|
| 1588 |
+
141,
|
| 1589 |
+
665,
|
| 1590 |
+
267
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 13
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "B EXPERIMENTS ",
|
| 1597 |
+
"text_level": 1,
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
176,
|
| 1600 |
+
297,
|
| 1601 |
+
331,
|
| 1602 |
+
314
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 13
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "B.1 HYPER-PARAMETERS ",
|
| 1609 |
+
"text_level": 1,
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
176,
|
| 1612 |
+
329,
|
| 1613 |
+
367,
|
| 1614 |
+
343
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 13
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "B.1.1 ATARI ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
174,
|
| 1623 |
+
354,
|
| 1624 |
+
276,
|
| 1625 |
+
369
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 13
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"text": "PPO’s and POP3D’s hyper-parameters for Mujoco games are respectively listed in Table 6. ",
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
173,
|
| 1634 |
+
378,
|
| 1635 |
+
769,
|
| 1636 |
+
393
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 13
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "table",
|
| 1642 |
+
"img_path": "images/1128ba7ee3765c0c2adc3e7145f8030d5cb825c480a72c7d24f06233b45304f9.jpg",
|
| 1643 |
+
"table_caption": [],
|
| 1644 |
+
"table_footnote": [],
|
| 1645 |
+
"table_body": "<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size</td><td>128 2.5 ×10-4 × α</td></tr><tr><td>Num epochs Mini-batch size</td><td>3 32×8</td></tr><tr><td>Discount (γ) GAE parameter (入)</td><td>0.99 0.95</td></tr><tr><td>Number of actors</td><td>8</td></tr><tr><td></td><td>0.1×α</td></tr><tr><td>Clipping parameter VF coeff. Entropy coeff.</td><td>1 0.01</td></tr></table>",
|
| 1646 |
+
"bbox": [
|
| 1647 |
+
215,
|
| 1648 |
+
446,
|
| 1649 |
+
488,
|
| 1650 |
+
614
|
| 1651 |
+
],
|
| 1652 |
+
"page_idx": 13
|
| 1653 |
+
},
|
| 1654 |
+
{
|
| 1655 |
+
"type": "table",
|
| 1656 |
+
"img_path": "images/df21408e592b52b20ce9e7d0632477747a4f0ed023844ee27e992b7db3b674c5.jpg",
|
| 1657 |
+
"table_caption": [
|
| 1658 |
+
"Table 6: Left: PPO’s hyper-parameters for Atari games. Right:POP3D’s hyper-parameters for Atari games. "
|
| 1659 |
+
],
|
| 1660 |
+
"table_footnote": [],
|
| 1661 |
+
"table_body": "<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size Num epochs</td><td>128 2.5 ×10-4 × α 3</td></tr><tr><td>Mini-batch size Discount (γ)</td><td>32×8</td></tr><tr><td>GAE parameter (入)</td><td>0.99 0.95</td></tr><tr><td>Number of actors</td><td>8</td></tr><tr><td></td><td>1</td></tr><tr><td>VF coeff. Entropy coeff. KL penalty coeff.</td><td>0.01</td></tr></table>",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
504,
|
| 1664 |
+
445,
|
| 1665 |
+
777,
|
| 1666 |
+
614
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 13
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "table",
|
| 1672 |
+
"img_path": "images/df53e03b5ffd013199d23b58a0a81ef707672d49d03f5fca6afa29215595e564.jpg",
|
| 1673 |
+
"table_caption": [
|
| 1674 |
+
"Table 7: BASELINE’s hyper-parameters for Atari games. "
|
| 1675 |
+
],
|
| 1676 |
+
"table_footnote": [],
|
| 1677 |
+
"table_body": "<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T)</td><td>128 2.5 ×10-4 × α</td></tr><tr><td>Adam step-size Num epochs</td><td>3</td></tr><tr><td>Mini-batch size</td><td>32×8</td></tr><tr><td>Discount (γ)</td><td>0.99</td></tr><tr><td>GAE parameter (入)</td><td>0.95</td></tr><tr><td>Number of actors</td><td>8</td></tr><tr><td>VF coeff.</td><td>1</td></tr><tr><td>Entropy coeff.</td><td>0.01</td></tr><tr><td>KL penalty coeff.</td><td>10.0</td></tr></table>",
|
| 1678 |
+
"bbox": [
|
| 1679 |
+
361,
|
| 1680 |
+
669,
|
| 1681 |
+
633,
|
| 1682 |
+
837
|
| 1683 |
+
],
|
| 1684 |
+
"page_idx": 13
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"type": "text",
|
| 1688 |
+
"text": "B.1.2 MUJOCO ",
|
| 1689 |
+
"text_level": 1,
|
| 1690 |
+
"bbox": [
|
| 1691 |
+
174,
|
| 1692 |
+
866,
|
| 1693 |
+
294,
|
| 1694 |
+
880
|
| 1695 |
+
],
|
| 1696 |
+
"page_idx": 13
|
| 1697 |
+
},
|
| 1698 |
+
{
|
| 1699 |
+
"type": "text",
|
| 1700 |
+
"text": "PPO’s and POP3D’s hyper-parameters for Mujoco games are respectively listed in Table 8. ",
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
171,
|
| 1703 |
+
890,
|
| 1704 |
+
767,
|
| 1705 |
+
905
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 13
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "table",
|
| 1711 |
+
"img_path": "images/d0bca410ae3bcf6acc54fe34a863a84e45b30ec069443b3f6d7232e3bdc753c0.jpg",
|
| 1712 |
+
"table_caption": [
|
| 1713 |
+
"Table 8: Left: PPO’s hyper-parameters for Mujoco games. Right:POP3D’s hyper-parameters for Mujoco games. "
|
| 1714 |
+
],
|
| 1715 |
+
"table_footnote": [],
|
| 1716 |
+
"table_body": "<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size</td><td>2048 3×10-4</td></tr><tr><td>Num epochs Mini-batch size</td><td>10 64</td></tr><tr><td>Discount (γ)</td><td>0.99</td></tr><tr><td>GAE parameter (入) KL penalty coeff.</td><td>0.95 5.0</td></tr></table>",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
504,
|
| 1719 |
+
463,
|
| 1720 |
+
736,
|
| 1721 |
+
592
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 14
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "table",
|
| 1727 |
+
"img_path": "images/ec09665c0b52f01198d5a018443c6156d178e34bce265b421f1b69a788be563a.jpg",
|
| 1728 |
+
"table_caption": [],
|
| 1729 |
+
"table_footnote": [],
|
| 1730 |
+
"table_body": "<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Horizon (T) Adam step-size</td><td>2048 3×10-4</td></tr><tr><td>Num epochs</td><td>10</td></tr><tr><td>Mini-batch size</td><td>64</td></tr><tr><td>Discount (γ)</td><td>0.99</td></tr><tr><td>GAE parameter (入) Clipping parameter</td><td>0.95</td></tr></table>",
|
| 1731 |
+
"bbox": [
|
| 1732 |
+
256,
|
| 1733 |
+
464,
|
| 1734 |
+
488,
|
| 1735 |
+
592
|
| 1736 |
+
],
|
| 1737 |
+
"page_idx": 14
|
| 1738 |
+
},
|
| 1739 |
+
{
|
| 1740 |
+
"type": "image",
|
| 1741 |
+
"img_path": "images/5b4b33235a0ab6b0e0a9c1d57d3efcec9854cb8d2269eea795279d7288f562d1.jpg",
|
| 1742 |
+
"image_caption": [
|
| 1743 |
+
"Figure 1: Score curves of three methods on Atari games within 40 million frame steps. "
|
| 1744 |
+
],
|
| 1745 |
+
"image_footnote": [],
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
274,
|
| 1748 |
+
148,
|
| 1749 |
+
709,
|
| 1750 |
+
859
|
| 1751 |
+
],
|
| 1752 |
+
"page_idx": 15
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "image",
|
| 1756 |
+
"img_path": "images/b334ff90f04d263256c24e4717cabc5143d181c1eaf5c3b306260b9cbbd026d5.jpg",
|
| 1757 |
+
"image_caption": [
|
| 1758 |
+
"Figure 2: Score curves on 7 Mujoco games within 10 million frame steps. "
|
| 1759 |
+
],
|
| 1760 |
+
"image_footnote": [],
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
370,
|
| 1763 |
+
409,
|
| 1764 |
+
619,
|
| 1765 |
+
573
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 16
|
| 1768 |
+
}
|
| 1769 |
+
]
|
parse/train/0migj5lyUZl/0migj5lyUZl_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/0migj5lyUZl/0migj5lyUZl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/AY8zfZm0tDd/AY8zfZm0tDd.md
ADDED
|
@@ -0,0 +1,578 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RANDOMIZED ENSEMBLED DOUBLE Q-LEARNING: LEARNING FAST WITHOUT A MODEL
|
| 2 |
+
|
| 3 |
+
Xinyue Chen1∗
|
| 4 |
+
|
| 5 |
+
Zijian Zhou1∗
|
| 6 |
+
|
| 7 |
+
Keith Ross1,2†
|
| 8 |
+
|
| 9 |
+
1 New York University Shanghai
|
| 10 |
+
2 New York University
|
| 11 |
+
|
| 12 |
+
# ABSTRACT
|
| 13 |
+
|
| 14 |
+
Using a high Update-To-Data (UTD) ratio, model-based methods have recently achieved much higher sample efficiency than previous model-free methods for continuous-action DRL benchmarks. In this paper, we introduce a simple modelfree algorithm, Randomized Ensembled Double Q-Learning (REDQ), and show that its performance is just as good as, if not better than, a state-of-the-art modelbased algorithm for the MuJoCo benchmark. Moreover, REDQ can achieve this performance using fewer parameters than the model-based method, and with less wall-clock run time. REDQ has three carefully integrated ingredients which allow it to achieve its high performance: (i) a UTD ratio $\gg 1$ ; (ii) an ensemble of $\mathrm { Q }$ functions; (iii) in-target minimization across a random subset of Q functions from the ensemble. Through carefully designed experiments, we provide a detailed analysis of REDQ and related model-free algorithms. To our knowledge, REDQ is the first successful model-free DRL algorithm for continuous-action spaces using a UTD ratio $\gg 1$ .
|
| 15 |
+
|
| 16 |
+
# 1 INTRODUCTION
|
| 17 |
+
|
| 18 |
+
Recently, model-based methods in continuous action space domains have achieved much higher sample efficiency than previous model-free methods. Model-based methods often attain higher sample efficiency by using a high Update-To-Data (UTD) ratio, which is the number of updates taken by the agent compared to the number of actual interactions with the environment. For example, Model-Based Policy Optimization (MBPO) (Janner et al., 2019), is a state-of-the-art model-based algorithm which updates the agent with a mix of real data from the environment and “fake” data from its model, and uses a large UTD ratio of 20-40. Compared to Soft-Actor-Critic (SAC), which is model-free and uses a UTD of 1, MBPO achieves much higher sample efficiency in the OpenAI MuJoCo benchmark (Todorov et al., 2012; Brockman et al., 2016). This raises the question of whether it is also possible to achieve such high performance without a model?
|
| 19 |
+
|
| 20 |
+
In this paper, we introduce a simple model-free algorithm called Randomized Ensemble Double Q learning (REDQ), and show that its performance is just as good as, if not better than, MBPO. The result indicates, that at least for the MuJoCo benchmark, simple model-free algorithms can attain the performance of current state-of-the-art model-based algorithms. Moreover, REDQ can achieve this performance using fewer parameters than MBPO, and with less wall-clock run time.
|
| 21 |
+
|
| 22 |
+
Like MBPO, REDQ employs a UTD ratio that is $\gg 1$ , but unlike MBPO it is model-free, has no roll outs, and performs all updates with real data. In addition to using a UTD ratio that is $\gg 1$ , it has two other carefully integrated ingredients: an ensemble of Q functions; and in-target minimization across a random subset of Q functions from the ensemble.
|
| 23 |
+
|
| 24 |
+
Through carefully designed experiments, we provide a detailed analysis of REDQ. We introduce the metrics of average Q-function bias and standard deviation (std) of Q-function bias. Our results show that using ensembles with in-target minimization reduces the std of the Q-function bias to close to zero for most of training, even when the UTD is very high. Furthermore, by adjusting the number of randomly selected Q-functions for in-target minimization, REDQ can control the average Q-function bias. In comparison with standard ensemble averaging and with SAC with a higher UTD, REDQ has much lower std of Q-function bias while maintaining an average bias that is negative but close to zero throughout most of training, resulting in significantly better learning performance. We perform an ablation study, and show that REDQ is very robust to choices of hyperparameters, and can work well with a small ensemble and a small number of Q functions in the in-target minimization. We also provide a theoretical analysis, providing additional insights into REDQ. Finally, we consider combining the REDQ algorithm with an online feature extractor network (OFENet) (Ota et al., 2020) to further improve performance, particularly for the more challenging environments Ant and Humanoid. We achieve more than $7 \mathbf { x }$ the sample efficiency of SAC to reach a score of 5000 for both Ant and Humanoid. In Humanoid, REDQ-OFE also greatly outperforms MBPO, reaching a score of 5000 at 150K interactions, which is $3 \mathbf { x }$ MBPO’s score at that point.
|
| 25 |
+
|
| 26 |
+
To ensure our comparisons are fair, and to ensure our results are reproducible (Henderson et al., 2018; Islam et al., 2017; Duan et al., 2016), we provide open source code1. For all algorithmic comparisons, we use the same codebase (except for MBPO, for which we use the authors’ code).
|
| 27 |
+
|
| 28 |
+
# 2 RANDOMIZED ENSEMBLED DOUBLE Q-LEARNING (REDQ)
|
| 29 |
+
|
| 30 |
+
Janner et al. (2019) proposed Model-Based Policy Optimization (MBPO), which was shown to be much more sample efficient than popular model-free algorithms such as SAC and PPO for the MuJoCo environments. MBPO learns a model, and generates “fake data” from its model as well as “real data” through environment interactions. It then performs parameter updates using both the fake and the real data. One of the distinguishing features of MBPO is that it has a UTD ratio $\gg 1$ for updating its Q functions, enabling MBPO to achieve high sample efficiency.
|
| 31 |
+
|
| 32 |
+
We propose Randomized Ensembled Double Q-learning (REDQ), a novel model-free algorithm whose sample-efficiency performance is just as good as, if not better than, the state-of-the-art modelbased algorithm for the MuJoCo benchmark. The pseudocode for REDQ is shown in Algorithm 1. REDQ can be used with any standard off-policy model-free algorithm, such as SAC (Haarnoja et al., 2018b), SOP (Wang et al., 2019), TD3 (Fujimoto et al., 2018), or DDPG (Lillicrap et al., 2015). For the sake of concreteness, we use SAC in Algorithm 1. REDQ has the following key components: $( i )$ To improve sample efficiency, the UTD ratio $G$ is much greater than one; $( i i )$ To reduce the variance in the Q-function estimate, REDQ uses an ensemble of $N$ Q-functions, with each Q-function randomly and independently initialized but updated with the same target; $( i i i )$ To reduce over-estimation bias, the target for the Q-function includes a minimization over a random subset $\mathcal { M }$ of the $N$ Q-functions. The size of the subset $\mathcal { M }$ is kept fixed, and is denoted as $M$ , and is referred to as the $i n$ -target minimization parameter. Since our default choice for $M$ is $M = 2$ , we refer to the algorithm as Randomized Ensembled Double Q-learning (REDQ).
|
| 33 |
+
|
| 34 |
+
REDQ shares some similarities with Maxmin Q-learning (Lan et al., 2020), which also uses ensembles and also minimizes over multiple Q-functions in the target. However, Maxmin Q-learning and REDQ have many differences, e.g., Maxmin Q-learning minimizes over the full ensemble in the target, whereas REDQ minimizes over a random subset of Q-functions. Unlike Maxmin Q-learning, REDQ controls over-estimation bias and variance of the Q estimate by separately setting $M$ and $N$ . REDQ has many possible variations, some of which are discussed in the ablation section.
|
| 35 |
+
|
| 36 |
+
REDQ has three key hyperparameters, $G , N$ , and $M$ . When $N = M = 2$ and $G = 1$ , then REDQ simply becomes the underlying off-policy algorithm such as SAC. When $N = M > 2$ and $G = 1$ , then REDQ is similar to, but not equivalent to, Maxmin Q-learning (Lan et al., 2020). In practice, we find $M = 2$ works well for REDQ, and that a wide range of values around $N = 1 0$ and $G = 2 0$ work well. To our knowledge, REDQ is the first successful model-free DRL algorithm for continuous-action spaces using a UTD ratio $G \gg 1$ .
|
| 37 |
+
|
| 38 |
+
# Algorithm 1 Randomized Ensembled Double Q-learning (REDQ)
|
| 39 |
+
|
| 40 |
+
1: Initialize policy parameters $\theta$ , $N$ Q-function parameters $\phi _ { i }$ , $i = 1 , \ldots , N$ , empty replay buffer $\mathcal { D }$ . Set target parameters $\phi _ { \mathrm { t a r g } , i } \phi _ { i }$ , for $i = 1 , 2 , \dots , N$
|
| 41 |
+
|
| 42 |
+
# 2: repeat
|
| 43 |
+
|
| 44 |
+
3: $a _ { t } \sim \pi _ { \theta } ( \cdot | s _ { t } )$ $r _ { t }$ $s _ { t + 1 }$
|
| 45 |
+
|
| 46 |
+
Add data to buffer: $\mathcal { D } \mathcal { D } \cup \{ ( s _ { t } , a _ { t } , r _ { t } , s _ { t + 1 } ) \}$
|
| 47 |
+
|
| 48 |
+
5: for $\cdot$ updates do
|
| 49 |
+
6: Sample a mini-batch $B = \{ ( s , a , r , s ^ { \prime } ) \}$ from $\mathcal { D }$
|
| 50 |
+
7: Sample a set $\mathcal { M }$ of $\cdot$ distinct indices from $\{ 1 , 2 , \ldots , N \}$
|
| 51 |
+
8: Compute the Q target $y$ (same for all of the $N$ Q-functions):
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
y = r + \gamma \left( \underset { i \in \mathcal { M } } { \operatorname* { m i n } } Q _ { \phi _ { \mathrm { t a r g } , i } } \left( s ^ { \prime } , \tilde { a } ^ { \prime } \right) - \alpha \log \pi _ { \theta } \left( \tilde { a } ^ { \prime } \mid s ^ { \prime } \right) \right) , \quad \tilde { a } ^ { \prime } \sim \pi _ { \theta } \left( \cdot \mid s ^ { \prime } \right)
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
9: for $i = 1 , \ldots , N$ do
|
| 58 |
+
|
| 59 |
+
Update $\phi _ { i }$ with gradient descent using
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\nabla _ { \phi } \frac { 1 } { | B | } \sum _ { ( s , a , r , s ^ { \prime } ) \in B } \left( Q _ { \phi _ { i } } ( s , a ) - y \right) ^ { 2 }
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
Update target networks with $\phi _ { \mathrm { t a r g } , i } \rho \phi _ { \mathrm { t a r g } , i } + ( 1 - \rho ) \phi _ { i }$
|
| 66 |
+
|
| 67 |
+
12: Update policy parameters $\theta$ with gradient ascent using
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\nabla _ { \theta } \frac { 1 } { | B | } \sum _ { s \in B } \left( \frac { 1 } { N } \sum _ { i = 1 } ^ { N } Q _ { \phi _ { i } } \left( s , \widetilde { a } _ { \theta } ( s ) \right) - \alpha \log \pi _ { \theta } \left( \widetilde { a } _ { \theta } ( s ) | s \right) \right) , \quad \widetilde { a } _ { \theta } ( s ) \sim \pi _ { \theta } ( \cdot \vert s ) ,
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
# 2.1 EXPERIMENTAL RESULTS FOR REDQ
|
| 74 |
+
|
| 75 |
+
We now provide experimental results for REDQ and MBPO for the four most challenging MuJoCo environments, namely, Hopper, Walker2d, Ant, and Humanoid. We have taken great care to make a fair comparison of REDQ and MBPO. The MBPO results are reproduced using the author’s open source code, and we use the hyperparameters suggested in the MBPO paper, including $G = 2 0$ . We obtain MBPO results similar to those reported in the MBPO paper. For REDQ, we use $G = 2 0$ , $N = 1 0$ , and $M = 2$ for all environments. We use the evaluation protocol proposed in the MBPO paper. Specifically, after every epoch we run one test episode with the current policy and record the performance as the undiscounted sum of all the rewards in the episode. A more detailed discussion on hyperparameters and implementation details is given in the Appendix.
|
| 76 |
+
|
| 77 |
+
Figure 1 shows the training curves for REDQ, MBPO, and SAC. For each algorithm, we plot the average return of 5 independent trials as the solid curve, and plot the standard deviation across 5 seeds as the transparent shaded region. For each environment, we train each algorithm for exactly the same number of environment interactions as done in the MBPO paper. Figure 1 shows that both REDQ and MBPO learn much faster than SAC, with REDQ performing somewhat better than MBPO on the whole. In particular, REDQ learns significantly faster for Hopper, and has somewhat better asymptotic performance for Hopper, Walker2d, and Humanoid. A more detailed performance comparison is given in the Appendix, where it is shown that, averaging across the environments, REDQ performs $1 . 4 \mathbf { x }$ better than MBPO half-way through training and 1.1x better at the end of training. These results taken together are perhaps counter-intuitive. They show that a simple modelfree algorithm can achieve as good or better sample-efficiency performance as the state-of-the-art model-based algorithm for the MuJoCo environments.
|
| 78 |
+
|
| 79 |
+
Does REDQ achieve its sample efficiency using more computational resources than MBPO? We now compare the number of parameters used in REDQ and MBPO. With REDQ, for each Q network and the policy network, we use a multi-layer perceptron with two hidden layers, each with 256 units. For MBPO, we use the default network architectures for the Q networks, policy network, and model ensembles (Janner et al., 2019). The Appendix provides a table comparing the number of parameters: REDQ uses fewer parameters than MBPO for all four environments, specifically, between
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
Figure 1: REDQ compared to MBPO and SAC. Both REDQ and MBPO use $G = 2 0$ .
|
| 83 |
+
|
| 84 |
+
$26 \%$ and $70 \%$ as many parameters depending on the environment. Additionally, we measured the runtime on a 2080-Ti GPU and found that MBPO roughly takes $7 5 \%$ longer. In summary, the results in this section show that the model-free algorithm REDQ is not only at least as sample efficient as MBPO, but also has fewer parameters and is significantly faster in terms of wall-clock time.
|
| 85 |
+
|
| 86 |
+
# 3 WHY DOES REDQ SUCCEED WHEREAS OTHERS FAIL?
|
| 87 |
+
|
| 88 |
+
REDQ is a simple model-free algorithm that matches the performance of a state-of-the-art modelbased algorithm. Key to REDQ’s sample efficiency is using a $\mathrm { U T D } \gg 1 .$ . Why is it that SAC and ordinary ensemble averaging (AVG) cannot do as well as REDQ by simply increasing the UTD?
|
| 89 |
+
|
| 90 |
+
To address these questions, let $Q ^ { \pi } ( s , a )$ be the action-value function for policy $\pi$ using the standard infinite-horizon discounted return definition. Let $Q _ { \phi } ( s , a )$ be an estimate of $Q ^ { \pi } ( s , a )$ , which is defined as the average of $Q _ { \phi _ { i } } ( s , a )$ , $i = 1 , \ldots , N$ , when using an ensemble. We define the bias of an estimate at state-action pair $( s , a )$ to be $Q _ { \phi } ( s , a ) - Q ^ { \pi } ( s , a )$ . We are primarily interested in the accuracy of $Q _ { \phi } ( s , a )$ over the state-action distribution of the current policy $\pi$ . To quantitatively analyze how estimation error accumulates in the training process, we perform an analysis that is similar to previous work (Van Hasselt et al., 2016; Fujimoto et al., 2018), but not exactly the same. We run a number of analysis episodes from different random initial states using the current policy $\pi$ . For each state-action pair visited, we obtain both the discounted Monte Carlo return and the estimated $\mathrm { Q }$ value using $Q _ { \phi }$ , and then compute the difference to obtain an estimate of the bias for that state-action pair. We then calculate the average and std of these bias values. The average gives us an idea of whether $Q _ { \phi }$ is in general overestimating or underestimating, and the std measures how uniform the bias is across different state-action pairs. We argue that the std is just as important as the average of the bias. As discussed in Van Hasselt et al. (2016), a uniform bias is not necessarily harmful as it does not change the action selection. Thus near-uniform bias can be preferable to a highly non-uniform bias with a small average value. Although average bias has been analyzed in several previous works (Van Hasselt et al., 2016; Fujimoto et al., 2018; Anschel et al., 2017), the std does not seem to have received much attention.
|
| 91 |
+
|
| 92 |
+
Since the MC return values can change significantly throughout training, to make comparisons more meaningful, we define the normalized bias of the estimate $Q _ { \phi } ( s , a )$ to be $( Q _ { \phi } ( s , a ) \ - $ $Q ^ { \pi } ( s , a ) ) / | E _ { \bar { s } , \bar { a } \sim \pi } ^ { - } [ Q ^ { \pi } ( \bar { s } , \bar { a } ) ] |$ , which is simply the bias divided by the absolute value of the expected discounted MC return for state-action pairs sampled from the current policy. We focus on the normalized bias in our analysis since it helps show how large the bias is, compared to the scale of the current MC return.
|
| 93 |
+
|
| 94 |
+
In this and the subsequent section, we compare REDQ with several algorithms and variants. We emphasize that all of the algorithms and variants use the same code base as used in the REDQ experiments (including using SAC as the underlying off-policy algorithm). The only difference is how the targets are calculated in lines 7 and 8 of Algorithm 1.
|
| 95 |
+
|
| 96 |
+
We first compare REDQ with two natural algorithms, which we call SAC-20 and ensemble averaging (AVG). SAC-20 is SAC but with $G$ increased from 1 (as in standard SAC) to 20. For AVG, we use an ensemble of Q functions, and when computing the Q target, we take the average of all Q values without any in-target minimization. In these comparisons, all three algorithms use a UTD of $G = 2 0$ . In the later ablation section we also have a detailed discussion on experimental results with Maxmin, and explain why it does not work well for the MuJoCo benchmark when using a large ensemble.
|
| 97 |
+
|
| 98 |
+
Figure 2 presents the results for Ant; the results for the other three environments are consistent with those for Ant and are shown in the Appendix. For each experiment we use 5 random seeds. We first note REDQ learns significantly faster than both SAC-20 and AVG. Strikingly, relative to the other two algorithms, REDQ has a very low normalized std of bias for most of training, indicating the bias across different in-distribution state-action pairs is about the same. Furthermore, throughout most of training, REDQ has a small and near-constant under-estimation bias. The shaded areas for mean and std of bias are also smaller, indicating that REDQ is robust to random initial conditions.
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 2: Performance, mean and std of normalized Q bias for REDQ, AVG, and SAC for Ant. Figures for the other three environments have similar trends and are shown in the Appendix.
|
| 102 |
+
|
| 103 |
+
SAC with a UTD ratio of 20 performs poorly for the most challenging environments Ant and Humanoid. For SAC-20, the high UTD ratio leads to an average bias that fluctuates during training. We also see a high normalized std of bias, indicating that the bias is highly non-uniform, which can be detrimental. The bias values also have large variance across random initial seeds, as indicated by the large shaded area, showing that the bias in SAC-20 is sensitive to initial conditions. Comparing AVG and SAC-20, we see AVG performs significantly better than SAC-20 in Ant and Humanoid. This can be explained again by the bias: due to ensemble averaging, AVG can achieve a lower std of bias; and when it does, its performance improves significantly faster than SAC-20.
|
| 104 |
+
|
| 105 |
+
REDQ has two critical components that allow it to maintain stable and near-uniform bias under high UTD ratios: an ensemble and in-target minimization. AVG and SAC-20 each has one of these components but neither has both. Thus the success of REDQ is largely due to a careful integration of both of these critical components. Additionally, as shown in the ablation study, the random selection of Q functions in the in-target minimization can give REDQ a further performance boost.
|
| 106 |
+
|
| 107 |
+
# 3.1 THEORETICAL ANALYSIS
|
| 108 |
+
|
| 109 |
+
We now characterize the relation between the estimation error, the in-target minimization parameter $M$ and the size of the ensemble $N$ . We use the theoretical framework introduced in Thrun & Schwartz (1993) and extended in Lan et al. (2020). We do this for the tabular version of REDQ, for which the target for $Q ^ { i } ( s , a )$ for each $i = 1 , \ldots , N$ is:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
r + \gamma \operatorname* { m a x } _ { a ^ { \prime } \in \mathcal { A } } \operatorname* { m i n } _ { j \in \mathcal { M } } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } )
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $\mathcal { A }$ is the finite action space, $( s , a , r , s ^ { \prime } )$ is a transition, and $\mathcal { M }$ is again a uniformly random subset from $\{ 1 , \ldots , N \}$ with $| { \mathcal { M } } | = M$ . The complete pseudocode for tabular REDQ is provided in the Appendix.
|
| 116 |
+
|
| 117 |
+
Let $Q ^ { i } ( s , a ) - Q ^ { \pi } ( s , a )$ be the pre-update estimation bias for the ith Q-function, where $Q ^ { \pi } ( s , a )$ is once again the ground-truth Q-value for the current policy $\pi$ . We are interested in how the bias changes after an update, and how this change is effected by $M$ and $N$ . Similar to Thrun $\&$ Schwartz (1993) and Lan et al. (2020), define the post-update estimation bias as the difference between the target (1) and the target when using the ground-truth:
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\begin{array} { r l } & { Z _ { M , N } \triangleq r + \gamma \underset { a ^ { \prime } \in A } { \operatorname* { m a x } } \underset { j \in \mathcal { M } } { \operatorname* { m i n } } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } ) - ( r + \gamma \underset { a ^ { \prime } \in A } { \operatorname* { m a x } } Q ^ { \pi } ( s ^ { \prime } , a ^ { \prime } ) ) } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \end{array}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
Here we write $Z _ { M , N }$ to emphasize its dependence on both $M$ and $N$ . Following Thrun & Schwartz (1993) and Lan et al. (2020), fix $s$ and assume each $Q ^ { i } ( s , a )$ has a random approximation error $e _ { s a } ^ { i }$ :
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
Q ^ { i } ( s , a ) = Q ^ { \pi } ( s , a ) + e _ { s a } ^ { i }
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where for each fixed $s { \mathrm { . } }$ , $\{ e _ { s a } ^ { i } \}$ are zero-mean independent random variables such that $\{ e _ { s a } ^ { i } \}$ are identically distributed across $i$ for each fixed $( s , a )$ pair. Note that due to the zero-mean assumption, the expected pre-update estimation bias is $\mathbb { E } [ Q ^ { i } ( s , a ) - Q ^ { \pi } ( s , a ) ] = 0$ . Thus if $\mathbb { E } \big [ Z _ { M , N } \big ] > 0$ , then the expected post-update bias is positive and there is a tendency for over-estimation accumulation; and if $\mathbf { \mathbb { E } } \big [ Z _ { M , N } \big ] < \mathbf { \dot { 0 } }$ , then there is a tendency for under-estimation accumulation.
|
| 130 |
+
|
| 131 |
+
Theorem 1. 1. For any fixed $M$ , $\mathbb { E } \left[ Z _ { M , N } \right]$ does not depend on $N$ .
|
| 132 |
+
|
| 133 |
+
2. $\mathbb { E } \left[ Z _ { 1 , N } \right] \geq 0$ for all $N \geq 1$ .
|
| 134 |
+
|
| 135 |
+
3. $\mathbb E \big [ Z _ { M + 1 , N } \big ] \leq \mathbb E \big [ Z _ { M , N } \big ]$ for any $M < N$ .
|
| 136 |
+
|
| 137 |
+
4. Suppose that $e _ { s a } ^ { i } \leq c$ for some $c > 0$ for all s, a and $i$ . Then there exists an $M$ such that for all $N \geq M$ , $\mathbb { E } \big [ Z _ { M , N } \big ] < 0$ .
|
| 138 |
+
|
| 139 |
+
Points 2-4 of the Theorem indicate that we can control the expected post-update bias $\mathbb { E } \left[ Z _ { M , N } \right]$ , bringing it from above zero (over estimation) to under zero (under estimation) by increasing $\bar { M }$ . Moreover, from the first point, the expected bias only depends on $M$ , which implies that increasing $N$ can reduce the variance of the ensemble average but does not change the expected post-update bias. Thus, we can control the post-update bias with $M$ and separately control the variance of the average of the ensemble with $N$ . Note that this is not possible for Maxmin Q-learning, for which $M = N$ , and thus increasing the ensemble size $N$ will also decrease the post-update bias, potentially making it more negative, which can be detrimental. Note that this also cannot be done for standard ensemble averaging, for which there is no in-target minimization parameter $M$ .
|
| 140 |
+
|
| 141 |
+
Note we make very weak assumptions on the distribution of the error term. Thrun & Schwartz (1993) and Lan et al. (2020) make a strong assumption, namely, the error term is uniformly distributed. Because our assumption is much weaker, our proof methodology in the Appendix is very different.
|
| 142 |
+
|
| 143 |
+
We also consider a variant of REDQ where instead of choosing a random set of size $M$ in the target, we calculate the target by taking the expected value over all possible subsets of size $M$ . In this case, the target in the tabular version becomes
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
Y _ { M , N } = r ( s , a ) + \gamma \frac { 1 } { { \binom { N } { M } } } \sum _ { \stackrel { B \subset \mathcal { N } } { | B | = M } } \operatorname* { m a x } _ { a ^ { \prime } } \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } )
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
We write the target here as $Y _ { M , N }$ to emphasize its dependence on both $M$ and $N$ . We refer to this variant of REDQ as “Weighted” since we can efficiently calculate the target as a weighted sum of a re-ordering of the $N$ Q-functions, as described in the Appendix.
|
| 150 |
+
|
| 151 |
+
The following theorem shows that the variance of this target goes to zero as $N \infty$ . We note, however, that in practice, some variance in the target may be beneficial in reducing overfitting or help exploration. We can retain some variance by keeping $N$ finite or using the unweighted REDQ scheme.
|
| 152 |
+
|
| 153 |
+
Let $\begin{array} { r } { v _ { M } : = \operatorname { V a r } ( \operatorname* { m a x } _ { a ^ { \prime } } \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } ) ) } \end{array}$ for any subset $B \subset { \mathcal { N } }$ where $| B | = M$ . (It is easily seen that $v _ { M }$ only depends on $M$ and not only the specific elements of $B$ .)
|
| 154 |
+
|
| 155 |
+
# Theorem 2.
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\mathrm { V a r } ( Y _ { M , N } ) \leq G _ { M } ( N )
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
for some function $G _ { M } ( N )$ satisfying
|
| 162 |
+
|
| 163 |
+
$$
|
| 164 |
+
\operatorname* { l i m } _ { N \infty } \frac { G _ { M } ( N ) } { M ^ { 2 } v _ { M } / N } = 1
|
| 165 |
+
$$
|
| 166 |
+
|
| 167 |
+
Consequently,
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
\operatorname* { l i m } _ { N \infty } \mathrm { V a r } ( Y _ { M , N } ) = 0
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
Also in the Appendix we show that the tabular version of REDQ convergences to the optimal Q function with probability one.
|
| 174 |
+
|
| 175 |
+
# 4 REDQ VARIANTS AND ABLATIONS
|
| 176 |
+
|
| 177 |
+
In this section, we use ablations to provide further insight into REDQ. We focus on the Ant environment. We first look at how the ensemble size $N$ affects REDQ. The top row in Figure 3 shows REDQ with $N = 2 , 3 , 5 , 1 0 ,$ 15. We can see that when we increase the ensemble size, we generally get a more stable average bias, a lower std of bias, and stronger performance. The result shows that even a small ensemble (e.g., $N = 5$ ) can greatly help in stabilizing bias accumulation when training under high UTD.
|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
Figure 3: REDQ ablation results for Ant. The top row shows the effect of the ensemble size $N$ . The middle row shows the effect of the in-target minimization parameter $M$ . The bottom row compares REDQ to several variants.
|
| 181 |
+
|
| 182 |
+
The middle row of Figure 3 shows how $M$ , the in-target minimization parameter, can affect performance. When $M$ is not an integer, e.g., $M = 1 . 5$ , for each update, with probability 0.5 only one randomly-chosen Q function is used in the target, and with probability 0.5, two randomly-chosen functions are used. Similarly, for $M = 2 . 5$ , for each update either two or three Q functions are used. Consistent with the theoretical result in Theorem 1, by increasing $M$ we lower the average bias. When $M$ gets too large, the Q estimate becomes too conservative and the large negative bias makes learning difficult.
|
| 183 |
+
|
| 184 |
+
$M = 2$ , which has the overall best performance, strikes a good balance between average bias (small underestimation during most of training) and std of the bias (consistently small).
|
| 185 |
+
|
| 186 |
+
The bottom row of Figure 3 shows the results for different target computation methods. The Maxmin curve in the figures is a variant based on Maxmin Q-learning, where the min of all the Q networks in the ensemble is taken to compute the Q target. As the ensemble size increases, Maxmin Q-learning shifts from overestimation to underestimation (Lan et al., 2020); Figure 3 shows Maxmin with $N =$ 3 instead of $N = 1 0$ , since a large $N$ value will cause even more divergence of the Q values. When varying the ensemble size of Maxmin, we see the same problem as shown in the middle row of Figure 3. When we increase the ensemble size to be larger than 3, Maxmin starts to reduce the bias so much that we get a highly negative Q bias, which accumulates quickly, leading to instability in the Q networks and poor performance. In the Maxmin paper, it was mainly tested on Atari environments with a small finite action space, in which case it provides good performance. Our results show that when using environments with high-dimensional continuous action spaces, such as MuJoCo, the rapid accumulation of (negative) bias becomes a problem. This result parallels some recent research in offline (i.e., batch) DRL. In Agarwal et al. (2020), it is shown that with small finite action spaces, naive offline training with deep Q-networks (DQN) only slightly reduces performance. However, continuous action Q-learning based methods such as Deep Deterministic Policy Gradient and SAC suffer much more from Q bias accumulation compared to discrete action methods. Recent work shows that offline training with these methods often lead to poor performance, and can even entirely diverge (Fujimoto et al., 2019; Kumar et al., 2019).
|
| 187 |
+
|
| 188 |
+
Random ensemble mixture (REM) is a method originally proposed to boost performance of DQN in the discrete-action setting. REM uses the random convex combination of Q values to compute the target: it is similar to ensemble average (AVG), but with more randomization (Agarwal et al., 2020).
|
| 189 |
+
|
| 190 |
+
For Weighted, the target is computed as the expectation of all the REDQ targets, where the expectation is taken over all $N$ -choose-2 pairs of Q-functions. This leads to a formula that is a weighted sum of the ordered Q-functions, where the ordering is from the lowest to the highest Q value in the ensemble, as described in the Appendix. Our baseline REDQ in Algorithm 1 can be considered as a random-sample version of Weighted. For the MinPair REDQ variant, we divide the $1 0 \mathrm { Q }$ networks into 5 fixed pairs, and during an update we sample a pair of Q networks from these 5 fixed pairs.
|
| 191 |
+
|
| 192 |
+
From Figure 3 we see that REDQ and MinPair are the best and their performance is similar. For Ant, the performance of Weighted is much lower than REDQ. However, as shown in the Appendix, Weighted and REDQ have similar performance for the other three environments. The randomization might help alleviate overfitting in the early stage, or improve exploration. REM has performance similar to AVG, studied in Section 3. In terms of the Q bias, REM has a positive average bias, while REDQ, MinPair, and Weighted all have a small negative average bias. Overall these results indicate that the REDQ algorithm is robust across different mechanisms for choosing the functions, and that randomly choosing the Q functions can sometimes boost performance. Additional results and discussions are provided in the appendix.
|
| 193 |
+
|
| 194 |
+
# 4.1 IMPROVING REDQ WITH AUXILIARY FEATURE LEARNING
|
| 195 |
+
|
| 196 |
+
We now investigate whether we can further improve the performance of REDQ by incorporating better representation learning? Ota et al. (2020) recently proposed the online feature extractor network (OFENet), which learns representation vectors from environment data, and provides them to the agent as additional input, giving significant performance improvement.
|
| 197 |
+
|
| 198 |
+
Is it possible to further improve the performance of REDQ with OFENet? We trained an OFENet together with REDQ to provide extra input, giving the algorithm REDQ-OFE. We found that OFENet did not help much for Hopper and Walker2d, which may be because REDQ already learns very fast, leaving little room for improvement. But as shown in Figure 4, online feature extraction can further improve REDQ performance for the more challenging environments Ant and Humanoid.
|
| 199 |
+
|
| 200 |
+
REDQ-OFE achieves $7 \mathbf { x }$ the sample efficiency of SAC to reach 5000 on Ant and Humanoid, and outperforms MBPO with $3 . 1 2 \mathrm { x }$ and $1 . 2 6 \mathrm { x }$ the performance of MBPO at 150K and 300K data, respectively. A more detailed performance comparison table can be found in the Appendix.
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 4: Performance of REDQ, REDQ with OFE, and SAC.
|
| 204 |
+
|
| 205 |
+
# 5 RELATED WORK
|
| 206 |
+
|
| 207 |
+
It has long been recognized that maximization bias in Q-learning can significantly impede learning. Thrun & Schwartz (1993) first highlighted the existence of maximization bias. Van Hasselt (2010) proposed Double Q-Learning to address maximization bias for the tabular case, and showed that in general it leads to an under-estimation bias. Van Hasselt et al. (2016) showed that adding Double Q-learning to deep Q networks (DQN) (Mnih et al., 2013; 2015) gives a major performance boost for the Atari games benchmark. For continuous-action spaces, Fujimoto et al. (2018) introduced clipped-double Q-learning (CDQ), which further reduces maximization bias and brings significant improvements over the deep deterministic policy gradient (DDPG) algorithm (Lillicrap et al., 2015). CDQ was later combined with entropy maximization in SAC to achieve even stronger performance (Haarnoja et al., 2018a;b). Other bias reduction techniques include using bias-correction terms (Lee et al., 2013), using weighted Q estimates (Zhang et al., 2017; Li & Hou, 2019), penalizing deterministic policies at early stage of training (Fox et al., 2015), using multi-step methods (Meng et al., 2020), performing weighted Bellman updates to mitigate error propagation (Lee et al., 2020), and truncating sampled Q estimates with distributional networks (Kuznetsov et al., 2020).
|
| 208 |
+
|
| 209 |
+
It has also long been recognized that using ensembles can improve the performance of DRL algorithms (Faußer & Schwenker, 2015; Osband et al., 2016). For Q-learning based methods, Anschel et al. (2017) use the average of multiple Q estimates to reduce variance. Agarwal et al. (2020) introduced Random Ensemble Mixture (REM), which enforces optimal Bellman consistency on random convex combinations of multiple Q estimates. Lan et al. (2020) introduced Maxmin Q-learning, as discussed in Sections 2-4. Although in discrete action domains it has been found that fine-tuning DQN variants, including the UTD, can boost performance, little experimental or theoretical analysis is given to explain how this improvement is obtained (Kielak, 2020; van Hasselt et al., 2019).
|
| 210 |
+
|
| 211 |
+
To address some of the critical issues in model-based learning (Langlois et al., 2019), recent methods such as MBPO combine a model ensemble with a carefully controlled rollout horizon to obtain better performance (Janner et al., 2019; Buckman et al., 2018). These model-based methods can also be enhanced with advanced sampling (Zhang et al., 2020), bidirectional models (Lai et al., 2020), or backprop through the model (Clavera et al., 2020), and be analyzed through new theoretical frameworks (Rajeswaran et al., 2020; Dong et al., 2020).
|
| 212 |
+
|
| 213 |
+
# 6 CONCLUSION
|
| 214 |
+
|
| 215 |
+
The contributions of this paper are as follows. (1) We propose a simple model-free algorithm that attains sample efficiency that is as good as or better than state-of-the-art model-based algorithms for the MuJoCo benchmark. This result indicates that, at least for the MuJoCo benchmark, models may not be necessary for achieving high sample efficiency. (2) Using carefully designed experiments, we explain why REDQ succeeds when other model-free algorithms with high UTD ratios fail. (3) Finally, we combine REDQ with OFE, and show that REDQ-OFE can learn extremely fast for the challenging environments Ant and Humanoid.
|
| 216 |
+
|
| 217 |
+
# REFERENCES
|
| 218 |
+
|
| 219 |
+
Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning (ICML), 2020.
|
| 220 |
+
|
| 221 |
+
Oron Anschel, Nir Baram, and Nahum Shimkin. Averaged-dqn: Variance reduction and stabilization for deep reinforcement learning. In International Conference on Machine Learning, pp. 176–185, 2017.
|
| 222 |
+
|
| 223 |
+
Dimitri P Bertsekas and John N Tsitsiklis. Neuro-dynamic programming, volume 5. Athena Scientific Belmont, MA, 1996.
|
| 224 |
+
|
| 225 |
+
Ronen I Brafman and Moshe Tennenholtz. R-max-a general polynomial time algorithm for nearoptimal reinforcement learning. Journal of Machine Learning Research, 3(Oct):213–231, 2002.
|
| 226 |
+
|
| 227 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 228 |
+
|
| 229 |
+
Jacob Buckman, Danijar Hafner, George Tucker, Eugene Brevdo, and Honglak Lee. Sampleefficient reinforcement learning with stochastic ensemble value expansion. In Advances in Neural Information Processing Systems, pp. 8224–8234, 2018.
|
| 230 |
+
|
| 231 |
+
Kamil Ciosek, Quan Vuong, Robert Loftin, and Katja Hofmann. Better exploration with optimistic actor critic. In Advances in Neural Information Processing Systems, pp. 1787–1798, 2019.
|
| 232 |
+
|
| 233 |
+
Ignasi Clavera, Violet Fu, and Pieter Abbeel. Model-augmented actor-critic: Backpropagating through paths. arXiv preprint arXiv:2005.08068, 2020.
|
| 234 |
+
|
| 235 |
+
Kefan Dong, Yuping Luo, Tianhe Yu, Chelsea Finn, and Tengyu Ma. On the expressivity of neural networks for deep reinforcement learning. International Conference on Machine Learning (ICML), 2020.
|
| 236 |
+
|
| 237 |
+
Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In International Conference on Machine Learning, pp. 1329–1338, 2016.
|
| 238 |
+
|
| 239 |
+
Stefan Faußer and Friedhelm Schwenker. Neural network ensembles in reinforcement learning. Neural Processing Letters, 41(1):55–69, 2015.
|
| 240 |
+
|
| 241 |
+
Meire Fortunato, Mohammad Gheshlaghi Azar, Bilal Piot, Jacob Menick, Ian Osband, Alex Graves, Vlad Mnih, Remi Munos, Demis Hassabis, Olivier Pietquin, et al. Noisy networks for exploration. ICLR, 2018.
|
| 242 |
+
|
| 243 |
+
Roy Fox, Ari Pakman, and Naftali Tishby. Taming the noise in reinforcement learning via soft updates. arXiv preprint arXiv:1512.08562, 2015.
|
| 244 |
+
|
| 245 |
+
Scott Fujimoto, Herke van Hoof, and Dave Meger. Addressing function approximation error in actor-critic methods. arXiv preprint arXiv:1802.09477, 2018.
|
| 246 |
+
|
| 247 |
+
Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, pp. 2052–2062, 2019.
|
| 248 |
+
|
| 249 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018a.
|
| 250 |
+
|
| 251 |
+
Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018b.
|
| 252 |
+
|
| 253 |
+
Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 254 |
+
|
| 255 |
+
Riashat Islam, Peter Henderson, Maziar Gomrokchi, and Doina Precup. Reproducibility of benchmarked deep reinforcement learning tasks for continuous control. arXiv preprint arXiv:1708.04133, 2017.
|
| 256 |
+
|
| 257 |
+
Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Modelbased policy optimization. In Advances in Neural Information Processing Systems, pp. 12519– 12530, 2019.
|
| 258 |
+
|
| 259 |
+
Kacper Kielak. Do recent advancements in model-based deep reinforcement learning really improve data efficiency? arXiv preprint arXiv:2003.10181, 2020.
|
| 260 |
+
|
| 261 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 262 |
+
|
| 263 |
+
Aviral Kumar, Justin Fu, Matthew Soh, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. In Advances in Neural Information Processing Systems, pp. 11784–11794, 2019.
|
| 264 |
+
|
| 265 |
+
Arsenii Kuznetsov, Pavel Shvechikov, Alexander Grishin, and Dmitry Vetrov. Controlling overestimation bias with truncated mixture of continuous distributional quantile critics. arXiv preprint arXiv:2005.04269, 2020.
|
| 266 |
+
|
| 267 |
+
Hang Lai, Jian Shen, Weinan Zhang, and Yong Yu. Bidirectional model-based policy optimization. arXiv preprint arXiv:2007.01995, 2020.
|
| 268 |
+
|
| 269 |
+
Qingfeng Lan, Yangchen Pan, Alona Fyshe, and Martha White. Maxmin q-learning: Controlling the estimation bias of q-learning. arXiv preprint arXiv:2002.06487, 2020.
|
| 270 |
+
|
| 271 |
+
Eric Langlois, Shunshi Zhang, Guodong Zhang, Pieter Abbeel, and Jimmy Ba. Benchmarking model-based reinforcement learning. arXiv preprint arXiv:1907.02057, 2019.
|
| 272 |
+
|
| 273 |
+
Donghun Lee, Boris Defourny, and Warren B Powell. Bias-corrected q-learning to control maxoperator bias in q-learning. In 2013 IEEE Symposium on Adaptive Dynamic Programming and Reinforcement Learning (ADPRL), pp. 93–99. IEEE, 2013.
|
| 274 |
+
|
| 275 |
+
Kimin Lee, Michael Laskin, Aravind Srinivas, and Pieter Abbeel. Sunrise: A simple unified framework for ensemble learning in deep reinforcement learning. arXiv preprint arXiv:2007.04938, 2020.
|
| 276 |
+
|
| 277 |
+
Zhunan Li and Xinwen Hou. Mixing update q-value for deep reinforcement learning. In 2019 International Joint Conference on Neural Networks (IJCNN), pp. 1–6. IEEE, 2019.
|
| 278 |
+
|
| 279 |
+
Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
|
| 280 |
+
|
| 281 |
+
Lingheng Meng, Rob Gorbet, and Dana Kulic. The effect of multi-step methods on overestimation ´ in deep reinforcement learning. arXiv preprint arXiv:2006.12692, 2020.
|
| 282 |
+
|
| 283 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.
|
| 284 |
+
|
| 285 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
|
| 286 |
+
|
| 287 |
+
Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. In Advances in neural information processing systems, pp. 4026–4034, 2016.
|
| 288 |
+
|
| 289 |
+
Kei Ota, Tomoaki Oiki, Devesh K Jha, Toshisada Mariyama, and Daniel Nikovski. Can increasing input dimensionality improve deep reinforcement learning? arXiv preprint arXiv:2003.01629, 2020.
|
| 290 |
+
|
| 291 |
+
Aravind Rajeswaran, Igor Mordatch, and Vikash Kumar. A game theoretic framework for model based reinforcement learning. arXiv preprint arXiv:2004.07804, 2020.
|
| 292 |
+
|
| 293 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 294 |
+
|
| 295 |
+
Sebastian Thrun and Anton Schwartz. Issues in using function approximation for reinforcement learning. In Proceedings of the 1993 Connectionist Models Summer School Hillsdale, NJ. Lawrence Erlbaum, 1993.
|
| 296 |
+
|
| 297 |
+
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026– 5033. IEEE, 2012.
|
| 298 |
+
|
| 299 |
+
John N Tsitsiklis. Asynchronous stochastic approximation and q-learning. Machine learning, 16 (3):185–202, 1994.
|
| 300 |
+
|
| 301 |
+
Hado Van Hasselt. Double q-learning. In Advances in neural information processing systems, pp. 2613–2621, 2010.
|
| 302 |
+
|
| 303 |
+
Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double qlearning. In AAAI, volume 2, pp. 5. Phoenix, AZ, 2016.
|
| 304 |
+
|
| 305 |
+
Hado P van Hasselt, Matteo Hessel, and John Aslanides. When to use parametric models in reinforcement learning? In Advances in Neural Information Processing Systems, pp. 14322–14333, 2019.
|
| 306 |
+
|
| 307 |
+
Che Wang, Yanqiu Wu, Quan Vuong, and Keith Ross. Striving for simplicity and performance in off-policy drl: Output normalization and non-uniform sampling. arXiv, pp. arXiv–1910, 2019.
|
| 308 |
+
|
| 309 |
+
Chi Zhang, Sanmukh Rao Kuppannagari, and Viktor K Prasanna. Maximum entropy model rollouts: Fast model based policy optimization without compounding errors. arXiv preprint arXiv:2006.04802, 2020.
|
| 310 |
+
|
| 311 |
+
Zongzhang Zhang, Zhiyuan Pan, and Mykel J Kochenderfer. Weighted double q-learning. In IJCAI, pp. 3455–3461, 2017.
|
| 312 |
+
|
| 313 |
+
# A THEORETICAL RESULTS
|
| 314 |
+
|
| 315 |
+
# A.1 TABULAR VERSION OF REDQ
|
| 316 |
+
|
| 317 |
+
In the tabular algorithm below, for clarity we use $G = 1$ .
|
| 318 |
+
|
| 319 |
+
# Algorithm 2 Tabular REDQ
|
| 320 |
+
|
| 321 |
+
1: Initialize 2: repeat3: Choo $\left\{ Q ^ { i } ( s , a ) , s \in \mathcal { S } , a \in \mathcal { A } \right\} _ { i = 1 } ^ { N }$ , observe
|
| 322 |
+
$a \in { \mathcal { A } }$ $\left\{ Q ^ { i } ( s , a ) \right\} _ { i = 1 } ^ { N }$ $r$ $s ^ { \prime }$
|
| 323 |
+
4: Randomly choose a subset $\mathcal { M }$ of size $M$ from $\{ 1 , . . , N \}$
|
| 324 |
+
5: $\begin{array} { r } { y = r + \gamma \operatorname* { m a x } _ { a ^ { \prime } \in \mathcal { A } } \operatorname* { m i n } _ { j \in \mathcal { M } } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } ) } \end{array}$
|
| 325 |
+
6: for $i = 1 , \ldots , N$ do:
|
| 326 |
+
7: $Q ^ { i } ( s , a ) \stackrel { . } { } Q ^ { i } ( s , a ) + \alpha ( y - Q ^ { i } ( s , a ) )$
|
| 327 |
+
8: $s \gets s ^ { \prime }$
|
| 328 |
+
9: until end
|
| 329 |
+
|
| 330 |
+
Alternatively in Algorithm 2, at each iteration we could just update one of the $Q ^ { i }$ functions.
|
| 331 |
+
|
| 332 |
+
# A.2 PROOF OF THEOREM 1
|
| 333 |
+
|
| 334 |
+
We first prove the following lemma:
|
| 335 |
+
|
| 336 |
+
Lemma 1. Let $X _ { 1 } , X _ { 2 } , \ldots$ be an infinite sequence of i.i.d. random variables. Let $F ( x )$ be the cdf of $X _ { m }$ and let $\tau = \operatorname* { i n f } \{ x : F ( x ) > 0 \}$ . Also let $Y _ { m } = \operatorname* { m i n } \{ X _ { 1 } , X _ { 2 } , \dots , X _ { m } \}$ . Then $Y _ { 1 } , Y _ { 2 } , \dots$ converges to $\tau$ almost surely.
|
| 337 |
+
|
| 338 |
+
# Proof:
|
| 339 |
+
|
| 340 |
+
Let $F _ { m } ( x )$ be the cdf of $Y _ { m }$ . Since $X _ { 1 } , . . . , X _ { m }$ are independent,
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
F _ { m } ( x ) = 1 - [ 1 - F ( x ) ] ^ { m }
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
For $x \ < \ \tau$ , $F _ { m } ( x ) = 0$ since $F ( x ) = 0$ . For $x > \tau , F _ { m } ( x ) \xrightarrow { m \infty } 1 \quad$ . Therefore, $Y _ { m }$ weakly converges to $\tau$ .
|
| 347 |
+
|
| 348 |
+
Moreover, for each $\omega \in \Omega$ , $\{ Y _ { m } ( \omega ) \}$ is a decreasing sequence. So $\{ Y _ { m } ( \omega ) \}$ either converges to a real number or $- \infty$ . Therefore $Y _ { m } Y$ almost surely for some random variable $Y$ . Combined with the result that $Y _ { m } \overset { d } { \to } \tau$ , we can conclude that
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
Y _ { m } \xrightarrow { a . s . } \tau
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
# Proof of Theorem 1:
|
| 355 |
+
|
| 356 |
+
1. Let $B _ { 1 } , B _ { 2 }$ be two subsets of $\mathcal { N } = \{ 1 , . . . , N \}$ of size $M$ . First of all, since $\{ Q ^ { j } ( s , a ) \} _ { j = 1 } ^ { N }$ are i.i.d for any $a \in \mathcal { A } , \operatorname* { m i n } _ { j \in B _ { 1 } } Q ^ { j } ( s , a )$ and $\textstyle \operatorname* { m i n } _ { j \in B _ { 2 } } Q ^ { j } ( s , a )$ are identically distributed. Furthermore, since $Q ^ { j } ( s , a )$ are independent for all $a \in { \mathcal { A } }$ and $1 \leq j \leq N$ , $\textstyle { \left\{ \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s , a ) \right\} } _ { a \in { \mathcal { A } } }$ are independent for any $B \subset { \mathcal { N } }$ . Denote the distribution function of $\textstyle \operatorname* { m a x } _ { a } \operatorname* { m i n } _ { j \in B _ { 1 } } Q ^ { j } ( s , a )$ as $F _ { 1 } ( x )$ and the distribution function of $\textstyle \operatorname* { m a x } _ { a } \operatorname* { m i n } _ { j \in B _ { 2 } } Q ^ { j } { \big ( } s , a { \big ) }$ as $F _ { 2 } ( x )$ . Then for any $x \in \mathbb { R }$ ,
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\begin{array} { r l } & { F _ { 1 } ( x ) = \mathbb { P } \big ( \underset { a } { \operatorname* { m a x } } \underset { j \in B _ { 1 } } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \le x \big ) = \mathbb { P } \big ( \cap _ { a \in \mathcal { A } } \left\{ \underset { i \in B _ { 1 } } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \le x \right\} \big ) } \\ & { \quad \quad = \underset { a \in \mathcal { A } } { \prod } \mathbb { P } \big ( \underset { j \in B _ { 1 } } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \le x \big ) = \underset { a \in \mathcal { A } } { \prod } \mathbb { P } \big ( \underset { j \in B _ { 2 } } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \le x \big ) } \\ & { \quad \quad = \mathbb { P } \big ( \underset { a } { \operatorname* { m a x } } \underset { j \in B _ { 2 } } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \le x \big ) = F _ { 2 } ( x ) } \end{array}
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
Therefore, we have proved that $\textstyle \operatorname* { m a x } _ { a } \operatorname* { m i n } _ { j \in B _ { 1 } } Q ^ { j } ( s , a )$ and $\textstyle \operatorname* { m a x } _ { a } \operatorname* { m i n } _ { j \in B _ { 2 } } Q ^ { j } ( s , a )$ are identically distributed. Then
|
| 363 |
+
|
| 364 |
+
$$
|
| 365 |
+
\begin{array} { r l } & { \mathbb { E } \big [ Z _ { M , N } \big ] = \gamma \mathbb { E } \big [ ( \underset { a } { \operatorname* { m a x } } \underset { j \in \mathcal { M } } { \operatorname* { m i n } } Q ^ { j } ( s , a ) - \underset { a } { \operatorname* { m a x } } Q ^ { \pi } ( s , a ) ) \big ] } \\ & { \quad \quad \quad = \gamma \mathbb { E } \big [ \frac { 1 } { \binom { N } { M } } \underset { | B | = M } { \overset { \sum } { \sum } } \underset { \substack { i \geq N } } { \operatorname* { m a x } } \underset { j \in B } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \big ] - \gamma \underset { a } { \operatorname* { m a x } } Q ^ { \pi } ( s , a ) } \\ & { \quad \quad \quad = \gamma \bigg ( \mathbb { E } \big [ \underset { a } { \operatorname* { m a x } } \underset { 1 \leq j \leq M } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \big ] - \underset { a } { \operatorname* { m a x } } Q ^ { \pi } ( s , a ) \bigg ) } \end{array}
|
| 366 |
+
$$
|
| 367 |
+
|
| 368 |
+
which does not depend on $N$ .
|
| 369 |
+
|
| 370 |
+
2. It follows from 1 that
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
\mathbb { E } \big [ Z _ { 1 , N } \big ] = \gamma \bigg ( \mathbb { E } \big [ \operatorname* { m a x } _ { a } Q ^ { 1 } ( s , a ) \big ] - \operatorname* { m a x } _ { a } Q ^ { \pi } ( s , a ) \bigg )
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
Since $\operatorname* { m a x } _ { a } Q ^ { 1 } ( s , a ) \geq Q ^ { 1 } ( s , a ^ { \prime } )$ for all $a ^ { \prime } \in { \mathcal { A } }$ , we have
|
| 377 |
+
|
| 378 |
+
$$
|
| 379 |
+
\mathbb { E } \big [ \operatorname* { m a x } _ { a } Q ^ { 1 } ( s , a ) \big ] \geq \mathbb { E } \big [ Q ^ { 1 } ( s , a ^ { \prime } ) \big ]
|
| 380 |
+
$$
|
| 381 |
+
|
| 382 |
+
for all $a ^ { \prime } \in { \mathcal { A } }$ . Consequently,
|
| 383 |
+
|
| 384 |
+
$$
|
| 385 |
+
\mathbb { E } \big [ \operatorname* { m a x } _ { a } Q ^ { 1 } ( s , a ) \big ] \geq \operatorname* { m a x } _ { a } \mathbb { E } \big [ Q ^ { 1 } ( s , a ) \big ] = \operatorname* { m a x } _ { a } Q ^ { \pi } ( s , a )
|
| 386 |
+
$$
|
| 387 |
+
|
| 388 |
+
$$
|
| 389 |
+
\begin{array} { r l } & { \qquad \mathbf { \Phi } _ { a } ^ { a } } \\ & { \qquad \mathbb { E } \left[ Z _ { 1 , N } \right] = \gamma \left( \mathbb { E } \left[ \underset { a } { \mathrm { m a x } } Q ^ { 1 } ( s , a ) \right] - \underset { a } { \mathrm { m a x } } Q ^ { \pi } ( s , a ) \right) \geq 0 } \\ & { \qquad \mathrm { m a x } _ { a } \mathrm { m i n } _ { 1 \leq j \leq M } Q ^ { j } ( s , a ) \geq \mathrm { m a x } _ { a } \mathrm { m i n } _ { 1 \leq j \leq M + 1 } Q ^ { j } ( s , a ) , } \\ & { \qquad \mathbb { E } \left[ Z _ { M , N } \right] = \gamma \left( \mathbb { E } \left[ \underset { a } { \mathrm { m a x } } \underset { 1 \leq j \leq M + 1 } { \mathrm { m i n } } Q ^ { j } ( s , a ) \right] - \underset { a } { \mathrm { m a x } } Q ^ { \pi } ( s , a ) \right) } \\ & { \qquad \geq \gamma \left( \mathbb { E } \left[ \underset { a } { \mathrm { m a x } } \underset { 1 \leq j \leq M + 1 } { \mathrm { m i n } } Q ^ { j } ( s , a ) \right] - \underset { a } { \mathrm { m a x } } Q ^ { \pi } ( s , a ) \right) = \mathbb { E } \left[ Z _ { M + 1 , N } \right] } \end{array}
|
| 390 |
+
$$
|
| 391 |
+
|
| 392 |
+
4. Let $F _ { a } ( x )$ be the cdf of $Q ^ { j } ( s , a )$ and let $\tau _ { a } = \operatorname* { i n f } \{ x : F _ { a } ( x ) > 0 \}$ . Here we assume the approximation error $e _ { s a } ^ { i }$ is non-trivial, which implies $\tau _ { a } < Q ^ { \pi } ( s , a )$ . Note that $\tau _ { a }$ can be equal to $- \infty$ . Let
|
| 393 |
+
|
| 394 |
+
$$
|
| 395 |
+
Y _ { a } ^ { M } = \operatorname* { m i n } _ { 1 \leq i \leq M } Q ^ { j } ( s , a )
|
| 396 |
+
$$
|
| 397 |
+
|
| 398 |
+
From Lemma 1 we have $Y _ { a } ^ { M }$ converges to $\tau _ { a }$ almost surely for each $a$ . Because the action space is finite, it therefore follows that
|
| 399 |
+
|
| 400 |
+
$$
|
| 401 |
+
Y ^ { M } = \operatorname* { m a x } _ { a } Y _ { a } ^ { M }
|
| 402 |
+
$$
|
| 403 |
+
|
| 404 |
+
converges almost surely to $\tau = \operatorname* { m a x } _ { a } \tau _ { a }$ . Furthermore, for each $a$ we have
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
Y _ { a } ^ { M } = \operatorname * { m i n } _ { 1 \leq j \leq M } Q ^ { j } ( s , a ) \geq \operatorname * { m i n } _ { 1 \leq j \leq M + 1 } Q ^ { j } ( s , a ) = Y _ { a } ^ { M + 1 }
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
from which it follows that $Y ^ { M } \ge Y ^ { M + 1 }$ . Thus $\{ Y ^ { M } \}$ is a monotonically decreasing sequence. We also note that due to the assumption $e _ { s a } ^ { i } \ \leq \ c$ for all $a$ and $i$ , and because $Q ^ { \pi } ( s , a )$ is finite for all $s$ and $a$ , it follows that $Y ^ { M } \leq d$ for all $M$ for a finite $d$ . Thus $\{ Y ^ { M } \}$ is a bounded-above, monotonically-decreasing sequence of random variables which converges almost surely to $\tau$ . We can therefore apply the monotone convergence theorem, giving
|
| 411 |
+
|
| 412 |
+
$$
|
| 413 |
+
\begin{array} { r l } & { \mathbb { E } \big [ Z _ { M , N } \big ] = \gamma \bigg ( \mathbb { E } \big [ \underset { a } { \operatorname* { m a x } } \underset { 1 \leq j \leq M } { \operatorname* { m i n } } Q ^ { j } ( s , a ) \big ] - \underset { a } { \operatorname* { m a x } } Q ^ { \pi } ( s , a ) \bigg ) } \\ & { \quad \quad \quad = \gamma \bigg ( \mathbb { E } [ \underset { a } { \operatorname* { m a x } } Y _ { a } ^ { M } ] - \underset { a } { \operatorname* { m a x } } Q ^ { \pi } ( s , a ) \bigg ) \xrightarrow { M \to \infty } \gamma \bigg ( \underset { a } { \operatorname* { m a x } } \tau _ { a } - \underset { a } { \operatorname* { m a x } } Q ^ { \pi } ( s , a ) \bigg ) < 0 , } \end{array}
|
| 414 |
+
$$
|
| 415 |
+
|
| 416 |
+
where the last inequality follows from $\tau _ { a } < Q ^ { \pi } ( s , a )$ for all actions $a$ .
|
| 417 |
+
|
| 418 |
+
# A.3 PROOF OF THEOREM 2
|
| 419 |
+
|
| 420 |
+
For convenience, define $\begin{array} { r } { Y _ { B } = \operatorname* { m a x } _ { a ^ { \prime } } \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } ) } \end{array}$ . Suppose $N > 2 M$
|
| 421 |
+
|
| 422 |
+
$$
|
| 423 |
+
\begin{array} { l } { { \mathrm { V a r } ( Y _ { M , N } ) = \displaystyle \frac { \gamma ^ { 2 } } { \binom { N } { M } ^ { 2 } } \mathrm { V a r } ( \displaystyle \sum _ { B \subset N } Y _ { B } ) } \ ~ } \\ { { \mathrm { ~ } = \displaystyle \frac { \gamma ^ { 2 } ( M ! ) ^ { 2 } } { \left( \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) \right) ^ { 2 } } \biggl [ \sum _ { B \subset \mathcal { N } } \mathrm { V a r } ( Y _ { B } ) + 2 \cdot \sum _ { B _ { 1 } , B _ { 2 } \subset N } \mathrm { C o v } ( Y _ { B _ { 1 } } , Y _ { B _ { 2 } } ) \biggr ] } } \end{array}
|
| 424 |
+
$$
|
| 425 |
+
|
| 426 |
+
Let $\begin{array} { r } { A = \sum _ { B _ { 1 } , B _ { 2 } \subset \mathcal { N } } \mathrm { C o v } ( Y _ { B _ { 1 } } , Y _ { B _ { 2 } } ) } \\ { B _ { 1 } \ne B _ { 2 } \qquad } \end{array}$ , which consists of
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
\begin{array} { r l r } { { \binom { \binom { N } { M } } { 2 } = \frac { 1 } { 2 } \cdot \frac { N ! } { ( N - M ) ! M ! } \cdot ( \frac { N ! } { ( N - M ) ! M ! } - 1 ) } } \\ & { } & { = \frac { 1 } { 2 ( M ! ) ^ { 2 } } \cdot \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) ^ { 2 } - \frac { N ! } { 2 \cdot M ! ( N - M ) ! } } \end{array}
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
terms. $\binom { \binom { N } { M } } { 2 }$ can be seen as a polynomial function of $N$ with degree $2 M$ . The coefficient for the term $N ^ { 2 M }$ i s 12(M!)2 . The coefficient for the term N 2M−1 i s $\begin{array} { r } { \frac { 1 } { 2 ( M ! ) ^ { 2 } } \cdot ( - 2 \sum _ { i = 0 } ^ { M - 1 } i ) } \end{array}$
|
| 433 |
+
|
| 434 |
+
Note that $Y _ { B _ { 1 } }$ and $Y _ { B _ { 2 } }$ are independent if $B _ { 1 } \cap B _ { 2 } = \mathcal { O }$ . The total number of different pairs $( B _ { 1 } , B _ { 2 } )$ such that $B _ { 1 } \cap B _ { 2 } = \emptyset$ is
|
| 435 |
+
|
| 436 |
+
$$
|
| 437 |
+
{ \binom { N } { 2 M } } \cdot { \binom { 2 M } { M } } \cdot { \frac { 1 } { 2 } } = { \frac { 1 } { 2 ( M ! ) ^ { 2 } } } \cdot { \frac { N ! } { ( N - 2 M ) ! } } = { \frac { 1 } { 2 ( M ! ) ^ { 2 } } } \cdot \Pi _ { i = 0 } ^ { 2 M - 1 } ( N - i )
|
| 438 |
+
$$
|
| 439 |
+
|
| 440 |
+
This is again a polynomial function of $N$ with degree $2 M$ . The coefficient of the term $N ^ { 2 M }$ is 12(M!)2 . The coefficient of the term N 2M−1 is $\begin{array} { r } { \frac { 1 } { 2 ( M ! ) ^ { 2 } } \cdot ( - \sum _ { i = 0 } ^ { 2 M - 1 } i ) } \end{array}$ . So the number of non-zero terms in $A$ is at most
|
| 441 |
+
|
| 442 |
+
$$
|
| 443 |
+
\begin{array} { l } { { { \displaystyle { \frac { 1 } { 2 ( M ! ) ^ { 2 } } } \cdot \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) ^ { 2 } - { \displaystyle { \frac { N ! } { 2 \cdot M ! ( N - M ) ! } } } - { \displaystyle { \frac { 1 } { 2 ( M ! ) ^ { 2 } } } \cdot \Pi _ { i = 0 } ^ { 2 M - 1 } ( N - i ) } } } } \\ { { { \displaystyle { = \frac { M ^ { 2 } } { 2 ( M ! ) ^ { 2 } } } \cdot N ^ { 2 M - 1 } + O ( N ^ { 2 M - 2 } ) } } } \end{array}
|
| 444 |
+
$$
|
| 445 |
+
|
| 446 |
+
Moreover, by Cauchy-Schwarz inequality, for any $B _ { 1 } , B _ { 2 } \subset \mathcal { N }$
|
| 447 |
+
|
| 448 |
+
$$
|
| 449 |
+
\mathrm { C o v } ( Y _ { B _ { 1 } } , Y _ { B _ { 2 } } ) \leq \sqrt { \mathrm { V a r } ( Y _ { B _ { 1 } } ) \cdot \mathrm { V a r } ( Y _ { B _ { 2 } } ) } = v _ { M }
|
| 450 |
+
$$
|
| 451 |
+
|
| 452 |
+
Therefore,
|
| 453 |
+
|
| 454 |
+
$$
|
| 455 |
+
A \leq [ \frac { M ^ { 2 } } { 2 ( M ! ) ^ { 2 } } \cdot N ^ { 2 M - 1 } + O ( N ^ { 2 M - 2 } ) ] v _ { M }
|
| 456 |
+
$$
|
| 457 |
+
|
| 458 |
+
which implies
|
| 459 |
+
|
| 460 |
+
$$
|
| 461 |
+
\begin{array} { r l } & { \mathrm { V a r } ( Y _ { M , N } ) = \displaystyle \frac { \gamma ^ { 2 } ( M ! ) ^ { 2 } } { \left( \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) \right) ^ { 2 } } \Biggl [ \sum _ { B \subset \mathcal { N } } \mathrm { V a r } ( Y _ { B } ) + 2 \cdot \sum _ { B _ { 1 } , B _ { 2 } \subset \mathcal { N } } \mathrm { C o v } ( Y _ { B _ { 1 } } , Y _ { B _ { 2 } } ) \Biggr ] } \\ & { \quad \quad \quad = \displaystyle \frac { \gamma ^ { 2 } ( M ! ) ^ { 2 } } { \left( \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) \right) ^ { 2 } } \Biggl [ \sum _ { B \subset \mathcal { N } } \mathrm { V a r } ( Y _ { B } ) + 2 A \Biggr ] } \\ & { \quad \quad \quad \leq \gamma ^ { 2 } \big [ M ^ { 2 } \cdot \frac { N ^ { 2 M - 1 } } { \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) ^ { 2 } } + O ( \frac { 1 } { N ^ { 2 } } ) \big ] v _ { M } \xrightarrow { N \to \infty } 0 } \end{array}
|
| 462 |
+
$$
|
| 463 |
+
|
| 464 |
+
Moreover,
|
| 465 |
+
|
| 466 |
+
$$
|
| 467 |
+
\operatorname* { l i m } _ { N \to \infty } \frac { M ^ { 2 } v _ { M } / N } { \left[ M ^ { 2 } \cdot \frac { N ^ { 2 M - 1 } } { \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) ^ { 2 } } + { \cal O } ( \frac { 1 } { N ^ { 2 } } ) \right] v _ { M } } = \operatorname* { l i m } _ { N \to \infty } \frac { \Pi _ { i = 0 } ^ { M - 1 } ( N - i ) ^ { 2 } } { N ^ { 2 M } } = 1
|
| 468 |
+
$$
|
| 469 |
+
|
| 470 |
+
# A.4 PROOF OF CONVERGENCE OF TABULAR REDQ
|
| 471 |
+
|
| 472 |
+
Assuming that the step size satisfies the standard Robbins-Monro conditions, it is easily seen that the tabular version of REDQ converges with probability 1 to the optimal Q function. In fact, for our Weighted scheme, where we take the expectation over all sets of size $M$ , the convergence conditions in Lan et al. (2020) are fully satisfied.
|
| 473 |
+
|
| 474 |
+
For the randomized case, only very minor changes are needed in the proof in Lan et al. (2020). Note that in the case of REDQ, the underlying deterministic target is:
|
| 475 |
+
|
| 476 |
+
$$
|
| 477 |
+
F \left( Q ^ { 1 } , Q ^ { 2 } , \dots , Q ^ { N } \right) ( s , a ) = r ( s , a ) + \gamma \sum _ { s ^ { \prime } } p \left( s ^ { \prime } \mid s , a \right) \sum _ { \stackrel { B \subset \mathcal { N } } { | B | = M } } \frac { 1 } { \left( { \frac { N } { M } } \right) } \operatorname* { m a x } _ { a ^ { \prime } } \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } )
|
| 478 |
+
$$
|
| 479 |
+
|
| 480 |
+
Let $\tau$ be the operator that concatenates $N$ identical copies of $F$ , so that $\mathcal { T } \colon \mathbb { R } ^ { S \times A \times N } \mathbb { R } ^ { S \times A \times N }$ where $S$ and $A$ are the cardinalities of the state and action spaces, respectively. It is easy to show that the operator $\tau$ is a contraction with the $l _ { \infty }$ norm. The stochastic approximation noise term is given by
|
| 481 |
+
|
| 482 |
+
$$
|
| 483 |
+
\ L _ { \nu } ( s , a ) = R - r ( s , a ) + \gamma \Big [ \operatorname* { m a x } _ { a ^ { \prime } } \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } ) - \sum _ { s ^ { \prime } } p \left( s ^ { \prime } \mid s , a \right) \sum _ { \stackrel { B \subset \mathcal { N } } { | B | = M } } \frac { 1 } { \binom { N } { M } } \operatorname* { m a x } _ { a ^ { \prime } } \operatorname* { m i n } _ { j \in B } Q ^ { j } ( s ^ { \prime } , a ^ { \prime } ) \Big ]
|
| 484 |
+
$$
|
| 485 |
+
|
| 486 |
+
It is straightforward to show
|
| 487 |
+
|
| 488 |
+
$$
|
| 489 |
+
\mathbb { E } \left[ \omega ^ { 2 } ( s , a ) \mid \mathcal { F } _ { \mathrm { p a s t } } \right] \leq \mathrm { V a r } \left( R \mid s , a \right) + \operatorname* { m a x } _ { 1 \leq i \leq N } \operatorname* { m a x } _ { s ^ { \prime } , a ^ { \prime } } \left( Q ^ { i } ( s ^ { \prime } , a ^ { \prime } ) \right) ^ { 2 }
|
| 490 |
+
$$
|
| 491 |
+
|
| 492 |
+
As in Lan et al. (2020), it follows from the contraction property and (2) that REDQ converges with probability 1 to the optimal Q function (Tsitsiklis, 1994; Bertsekas & Tsitsiklis, 1996).
|
| 493 |
+
|
| 494 |
+
# B HYPERPARAMETERS AND IMPLEMENTATION DETAILS
|
| 495 |
+
|
| 496 |
+
Since MBPO builds on top of a SAC agent, to make our comparisons fair, meaningful, and consistent with previous work, we make all SAC related hyperparameters exactly the same as used in the MBPO paper (Janner et al., 2019). Table 1 gives a list of hyperparameter used in the experiments. For all the REDQ curves reported in the results section, we use a Q network ensemble size $N$ of 10. We use a UTD ratio $G$ of 20 on the four MuJoCo environments, which is the same value that was used in the MBPO paper. Thus most of the hyperparameters are made to be the same as in the MBPO paper to ensure fairness and consistency in comparisons.
|
| 497 |
+
|
| 498 |
+
For all the algorithms and variants, we also first obtain 5000 data points by randomly sampling actions from the action space without making parameter updates. In our experiments we found that using a high UTD from the very beginning with a very small amount of data can easily lead to complete divergence on SAC-20. Sampling a number of random datapoints at the start of training is also a common technique that has been used in previous model-free as well as model-based works (Haarnoja et al., 2018a; Fujimoto et al., 2018; Janner et al., 2019).
|
| 499 |
+
|
| 500 |
+
Table 1: REDQ hyperparameters
|
| 501 |
+
|
| 502 |
+
<table><tr><td rowspan=1 colspan=1>Parameter</td><td rowspan=1 colspan=1>Value</td></tr><tr><td rowspan=1 colspan=1>Sharedoptimizerlearning ratediscount (γ)target smoothing coefficient (p)replay buffer sizenumber of hidden layers forall networksnumber of hidden units per layermini-batch sizenonlinearityrandom starting data</td><td rowspan=1 colspan=1>Adam (Kingma& Ba,2014)3.10-40.990.0051062256256ReLU5000</td></tr><tr><td rowspan=1 colspan=1>REDQensemble size Nin-target minimization parameter MUTD ratio G</td><td rowspan=1 colspan=1>10220</td></tr><tr><td rowspan=1 colspan=1>OFENetrandom starting dataOFENet number of pretraining updatesOFENet UTD ratio</td><td rowspan=1 colspan=1>20.000100,0004</td></tr></table>
|
| 503 |
+
|
| 504 |
+
For the REDQ-OFE experiments, we implemented a minimal version of the OFENet in the original paper, with no batchnorm layers. We use the recommended hyperparameters as described in the original paper (Ota et al., 2020). Compared to REDQ without OFENet, the main difference is we now first collect 20,000 random data points (which is accounted for in the training curves), and then pre-train the OFENet for 100,000 updates, with the same learning rate and batch size. We then train OFENet together with REDQ agent, and the OFENet uses a UTD ratio of 4. We tried a simple hyperparameter search on Ant with 200,000, 100,000 and 50,000 pre-train updates, and learning rates of 1e-4, 3e-4, 5e-4, and a OFENet UTD of 1, 4 and 20. However, the results are not very different. It is possible that better results can be obtained through a more extensive hyperparameter search or other modifications.
|
| 505 |
+
|
| 506 |
+
# B.1 EFFICIENT CALCULATION OF TARGET FOR WEIGHTED VERSION OF REDQ
|
| 507 |
+
|
| 508 |
+
In section 4 we provided experimental results for the Weighted version of REDQ. Recall that in this version, instead of sampling a random subset $\mathcal { M }$ in the target, we average over all subsets $B$ in
|
| 509 |
+
|
| 510 |
+
$\{ 1 , \ldots , N \}$ of size $M$ :
|
| 511 |
+
|
| 512 |
+
$$
|
| 513 |
+
y = r + \gamma \frac { 1 } { \binom { N } { M } } \sum _ { B } \left( \operatorname* { m i n } _ { i \in B } Q _ { \phi _ { \mathrm { t a r g } , i } } \left( s ^ { \prime } , \tilde { a } ^ { \prime } \right) \right)
|
| 514 |
+
$$
|
| 515 |
+
|
| 516 |
+
In practice, however, we do not need to sum over all $N$ choose $M$ subsets. Instead we can re-order the indices so that
|
| 517 |
+
|
| 518 |
+
$$
|
| 519 |
+
Q _ { \phi _ { \mathrm { t a r g } , i } } \left( s ^ { \prime } , \tilde { a } ^ { \prime } \right) \leq Q _ { \phi _ { \mathrm { t a r g } , i + 1 } } \left( s ^ { \prime } , \tilde { a } ^ { \prime } \right)
|
| 520 |
+
$$
|
| 521 |
+
|
| 522 |
+
for $i = 1 , \ldots , N - 1$ . After the re-ordering, we can use the identity:
|
| 523 |
+
|
| 524 |
+
$$
|
| 525 |
+
\frac { 1 } { { \binom { N } { M } } } \sum _ { B } \left( \operatorname* { m i n } _ { i \in B } Q _ { \phi _ { \mathrm { t a r g } , i } } \left( s ^ { \prime } , \tilde { a } ^ { \prime } \right) \right) = \frac { 1 } { { \binom { N } { M } } } \sum _ { i = 1 } ^ { N - M + 1 } { \binom { N - i } { M - 1 } } Q _ { \phi _ { \mathrm { t a r g } , i } } \left( s ^ { \prime } , \tilde { a } ^ { \prime } \right)
|
| 526 |
+
$$
|
| 527 |
+
|
| 528 |
+
# C SAMPLE EFFICIENCY COMPARISON FOR REDQ, SAC AND MBPO
|
| 529 |
+
|
| 530 |
+
The sample efficiency claims made in the main paper are based on Table 2 and Table 3. Table 2 shows that compared to naive SAC, REDQ is much more sample efficient. REDQ reaches 3500 on Hopper with ${ 8 } \mathbf { { x } }$ sample efficiency, and reaches 5000 for Ant and Humanoid with ${ 5 } \mathrm { x }$ and $3 . 7 \mathbf { x }$ sample efficiency. After adding OFE, this becomes more than $7 \mathbf { x }$ on Ant and Humanoid. If we average all the numbers for the four environments, then REDQ is $5 . 0 \mathrm { x }$ as sample efficient, and $6 . 4 \mathrm { x }$ after including OFE results.
|
| 531 |
+
|
| 532 |
+
Table 3 compares REDQ to SAC and MBPO. As in the MBPO paper, we train for 125K for Hopper, and 300K for the other three environments (Janner et al., 2019). The numbers in Table 3 show the performance when trained to half and to the full length of the MBPO training limits. When averaging the numbers, we see that REDQ reaches $4 . 5 \mathrm { x }$ and $2 . 1 \mathbf { x }$ the performance of SAC at 150K and 300K. REDQ is also stronger than MBPO, with $1 . 4 \mathrm { x }$ and $1 . 1 \mathrm { x }$ the performance of MBPO at 150K and $3 0 0 \mathrm { K }$ . If we include the results of REDQ-OFE, then the numbers become $5 . 5 \mathrm { x }$ and $2 . 3 \mathbf { x }$ the SAC performance at 150K and 300K, and $1 . 8 \mathrm { x }$ and $1 . 2 \mathrm { x }$ the MBPO performance at 150 and 300K.
|
| 533 |
+
|
| 534 |
+
Table 2: Sample efficiency comparison of SAC and REDQ. The numbers show the amount of data collected when the specified performance level is reached. The last two columns show how many times REDQ and REDQ-OFE are more sample efficient than SAC in reaching that performance.
|
| 535 |
+
|
| 536 |
+
<table><tr><td>Score</td><td>SAC</td><td>REDQ</td><td>REDQ-OFE</td><td>REDQ faster</td><td>REDQ-OFE faster</td></tr><tr><td>Hopper at 3500</td><td>933K</td><td>116K</td><td>1</td><td>8.04</td><td>1</td></tr><tr><td>Walker2d at 3500</td><td>440K</td><td>141K</td><td>=</td><td>3.12</td><td>=</td></tr><tr><td>Ant at 5000</td><td>771K</td><td>153K</td><td>106K</td><td>5.04</td><td>7.27</td></tr><tr><td>Humanoid at 5000</td><td>945K</td><td>255K</td><td>134K</td><td>3.71</td><td>7.05</td></tr></table>
|
| 537 |
+
|
| 538 |
+
Table 3: Performance comparison of REDQ, REDQ-OFE, MBPO and SAC. The numbers show the performance achieved when the specific amount of data is collected. The last two columns show the ratio of REDQ or REDQ-OFE performance compared to SAC and MBPO performance.
|
| 539 |
+
|
| 540 |
+
<table><tr><td>Amount of data</td><td>SAC</td><td>MBPO</td><td>REDQ</td><td>REDQ/SAC</td><td>REDQ/MBPO</td></tr><tr><td>Hopper at 62K</td><td>594</td><td>1919</td><td>3278</td><td>5.52</td><td>1.71</td></tr><tr><td>Hopper at 125K Walker2d at150K</td><td>2404</td><td>3131</td><td>3517</td><td>1.46</td><td>1.12</td></tr><tr><td>Walker2dat 300K</td><td>760</td><td>3308</td><td>3544</td><td>4.66</td><td>1.07</td></tr><tr><td></td><td>2556</td><td>3537</td><td>4589</td><td>1.80</td><td>1.30</td></tr><tr><td>Ant at150K</td><td>1245</td><td>4388</td><td>4803</td><td>3.86</td><td>1.09</td></tr><tr><td>Ant at 300K</td><td>2485</td><td>5774</td><td>5369</td><td>2.16</td><td>0.93</td></tr><tr><td>Humanoid at150K</td><td>674</td><td>1604</td><td>2641</td><td>3.92</td><td>1.65</td></tr><tr><td>Humanoid at 300K</td><td>1633</td><td>4199</td><td>4674</td><td>2.86</td><td>1.11</td></tr><tr><td>Amount of data</td><td>SAC</td><td>MBPO</td><td>REDQ-OFE</td><td>OFE/SAC</td><td>OFE/MBPO</td></tr><tr><td>Antat150K</td><td>1245</td><td>4388</td><td>5524</td><td>4.44</td><td>1.26</td></tr><tr><td>Ant at 300K</td><td>2485</td><td>5774</td><td>6578</td><td>2.65</td><td>1.14</td></tr><tr><td>Humanoid at150K</td><td>674</td><td>1604</td><td>5011</td><td>7.43</td><td>3.12</td></tr><tr><td>Humanoid at 300K</td><td>1633</td><td>4199</td><td>5309</td><td>3.25</td><td>1.26</td></tr></table>
|
| 541 |
+
|
| 542 |
+
# D NUMBER OF PARAMETERS COMPARISON
|
| 543 |
+
|
| 544 |
+
Table 4 gives the number of parameters for MBPO, REDQ and REDQ-OFE, for all four environments. As discussed in the main paper, REDQ uses fewer parameters than MBPO for all four environments: between $26 \%$ and $70 \%$ as many parameters depending on the environment. After adding OFENet, REDQ still uses fewer parameters than MBPO, with $80 \%$ and $3 5 \%$ as many parameters on Ant and Humanoid. In particular, it is surprising that REDQ-OFE can achieve a much stronger result on Humanoid with much fewer parameters.
|
| 545 |
+
|
| 546 |
+
Table 4: Number of parameters in millions. REDQ uses the same network structure and ensemble size for all four environments. The difference in the number of parameters comes from the fact that the environments have very different observation and action dimensions, which will affect the size of the input and output layers of the networks.
|
| 547 |
+
|
| 548 |
+
<table><tr><td>Algorithm</td><td>Hopper</td><td>Walker2d</td><td>Ant</td><td>Humanoid</td></tr><tr><td>MBPO</td><td>1.106M</td><td>1.144M</td><td>1.617M</td><td>7.087M</td></tr><tr><td>REDQ N = 10</td><td>0.769M</td><td>0.795M</td><td>1.066M</td><td>1.840M</td></tr><tr><td>REDQ-OFE N = 10</td><td></td><td></td><td>1.294M</td><td>2.460M</td></tr></table>
|
| 549 |
+
|
| 550 |
+
# E ADDITIONAL RESULTS FOR REDQ, SAC-20, AND AVG
|
| 551 |
+
|
| 552 |
+
Due to lack of space, Figure 2 in Section 3 only compared REDQ with SAC-20 and AVG for the Ant environment. Figure 5 presents the results for all four environments. We can see that in all four environments, REDQ has much stronger performance and much lower std of bias compared to SAC-20 and AVG. Note in terms of average normalized bias, AVG is slightly closer to zero in Ant compared to REDQ, and SAC-20 is a bit closer to zero in Humanoid compared to REDQ; however, their std of normalized bias is consistently higher. This shows the importance of having a low std of the bias in addition to a close-to-zero average bias.
|
| 553 |
+
|
| 554 |
+

|
| 555 |
+
Figure 5: Performance, mean and std of normalized Q bias for REDQ, AVG, and SAC. All three algorithms have a UTD ratio of 20.
|
| 556 |
+
|
| 557 |
+
# F REDQ AND SAC WITH AND WITHOUT POLICY DELAY
|
| 558 |
+
|
| 559 |
+
Note that in the REDQ pseudocode, the number of policy updates is always one for each data point collected. We set the UTD ratio for the policy update to always be one in order to isolate the effect of additional policy updates from Q updates. Note in this way, REDQ, SAC-20 and SAC-1 all take the same number of policy updates. This helps show that the performance gain mainly comes from the additional Q updates.
|
| 560 |
+
|
| 561 |
+
Having a lower number of policy updates can also be seen as a delayed policy update, or policy delay, and is a method that has been used in previous works to improve learning stability (Fujimoto et al., 2018). In this section we discuss how delayed policy update, or policy delay, impact the performance of REDQ and SAC (with UTD of 20). Figure 6 compares REDQ and SAC-20 with and without policy delay (NPD for no policy delay). We can see that having the policy delay consistently makes the bias and std of bias lower and more stable, although they have a smaller effect on REDQ than on SAC. Performance-wise SAC always gets a performance boost with policy delay, while REDQ sees improvement in Hopper and Humanoid, and becomes slightly worse in Walker2d and Ant. The results show that policy delay can be important under high UTD when the variance is not properly controlled. However, with enough variance reduction, the effect of policy delay is diminished, and in some cases having more policy update can give better performance.
|
| 562 |
+
|
| 563 |
+

|
| 564 |
+
Figure 6: Performance, mean and std of normalized Q bias of REDQ and SAC, with and without policy delay.
|
| 565 |
+
|
| 566 |
+
# G REDQ AND SAC WITH DIFFERENT UTD RATIOS
|
| 567 |
+
|
| 568 |
+
How do different UTD ratio values $G$ impact the performance of REDQ and SAC? Figure 7 compares the two algorithms under UTD ratio values of 1, 5, 10 and 20 for the Ant environment. The results show that in the Ant environment, REDQ greatly benefits from larger UTD values, with UTD of 20 giving the best result. For SAC, performance improves slightly for UTD ratios of 5 and 10, but becomes much worse at 20. Looking at the normalized bias and the std of the bias, we see that changing the UTD ratio does not change the values very much for REDQ, while for SAC, we see that as the UTD ratio increases, both the mean and the std of the bias becomes larger and more unstable.
|
| 569 |
+
|
| 570 |
+

|
| 571 |
+
Figure 7: Performance, mean and std of normalized Q bias for REDQ, and SAC, with different UTD ratios, in Ant environment.
|
| 572 |
+
|
| 573 |
+
# H ADDITIONAL RESULTS FOR WEIGHTED VARIANT
|
| 574 |
+
|
| 575 |
+
In this section we provide additional results for the Weighted variant. Figure 8 shows the performance and bias comparison on all four environments. Results show that Weighted and REDQ have similar average bias and std of bias. In terms of performance, Weighed is worse in Ant and Hopper, similar in Humanoid and slightly stronger in Walker2d. Overall REDQ seems to have stronger performance and is more robust. Randomness in the networks might help alleviate overfitting in the early stage, or improve exploration, as shown in previous studies (Osband et al., 2016; Fortunato et al., 2018). This can be important since positive bias in Q learning-based methods can sometimes help exploration. This is commonly referred to as optimistic initial values, or optimism in the face of uncertainty (Sutton & Barto, 2018; Brafman & Tennenholtz, 2002). Thus conservative Q estimates in recent algorithms can lead to the problem of pessimistic underexploration (Ciosek et al., 2019). An interesting future work direction is to study how robust and effective exploration can be achieved without relying on optimistic estimates.
|
| 576 |
+
|
| 577 |
+

|
| 578 |
+
Figure 8: Performance, mean and std of normalized Q bias for REDQ and Weighted.
|
parse/train/AY8zfZm0tDd/AY8zfZm0tDd_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/AY8zfZm0tDd/AY8zfZm0tDd_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/AY8zfZm0tDd/AY8zfZm0tDd_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlgNh0qKQ/BJlgNh0qKQ.md
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DIFFERENTIABLE PERTURB-AND-PARSE:SEMI-SUPERVISED PARSING WITH A STRUCTUREDVARIATIONAL AUTOENCODER
|
| 2 |
+
|
| 3 |
+
Caio Corro Ivan Titov
|
| 4 |
+
ILCC, School of Informatics, University of Edinburgh ILLC, University of Amsterdam
|
| 5 |
+
c.f.corro@uva.nl ititov@inf.ed.ac.uk
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Human annotation for syntactic parsing is expensive, and large resources are available only for a fraction of languages. A question we ask is whether one can leverage abundant unlabeled texts to improve syntactic parsers, beyond just using the texts to obtain more generalisable lexical features (i.e. beyond word embeddings). To this end, we propose a novel latent-variable generative model for semi-supervised syntactic dependency parsing. As exact inference is intractable, we introduce a differentiable relaxation to obtain approximate samples and compute gradients with respect to the parser parameters. Our method (Differentiable Perturb-and-Parse) relies on differentiable dynamic programming over stochastically perturbed arc weights. We demonstrate effectiveness of our approach with experiments on English, French and Swedish.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
A dependency tree is a lightweight syntactic structure exposing (possibly labeled) bi-lexical relations between words (Tesniere, 1959; Kaplan & Bresnan, 1982), see Figure 1. This representation \` has been widely studied by the NLP community leading to very efficient state-of-the-art parsers (Kiperwasser & Goldberg, 2016; Dozat & Manning, 2017; Ma & Hovy, 2017), motivated by the fact that dependency trees are useful in downstream tasks such as semantic parsing (Reddy et al., 2016; Marcheggiani & Titov, 2017), machine translation (Ding & Palmer, 2005; Bastings et al., 2017), information extraction (Culotta & Sorensen, 2004; Liu et al., 2015), question answering (Cui et al., 2005) and even as a filtering method for constituency parsing (Kong et al., 2015), among others.
|
| 14 |
+
|
| 15 |
+
Unfortunately, syntactic annotation is a tedious and expensive task, requiring highly-skilled human annotators. Consequently, even though syntactic annotation is now available for many languages, the datasets are often small. For example, 31 languages in the Universal Dependency Treebank,1 the largest dependency annotation resource, have fewer than 5,000 sentences, including such major languages as Vietnamese and Telugu. This makes the idea of using unlabeled texts as an additional source of supervision especially attractive.
|
| 16 |
+
|
| 17 |
+
In previous work, before the rise of deep learning, the semi-supervised parsing setting has been mainly tackled with two-step algorithms. On the one hand, feature extraction methods first learn an intermediate representation using an unlabeled dataset which is then used as input to train a supervised parser (Koo et al., 2008; Yu et al., 2008; Chen et al., 2009; Suzuki et al., 2011). On the other hand, the self-training and co-training methods start by learning a supervised parser that is then used to label extra data. Then, the parser is retrained with this additional annotation (Sagae & Tsujii, 2007; Kawahara & Uchimoto, 2008; McClosky et al., 2006). Nowadays, unsupervised feature extraction is achieved in neural parsers by the means of word embeddings (Mikolov et al., 2013; Peters et al., 2018). The natural question to ask is whether one can exploit unlabeled data in neural parsers beyond only inducing generalizable word representations.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Dependency tree example: each arc represents a labeled relation between the head word (the source of the arc) and the modifier word (the destination of the arc). The first token is a fake root word.
|
| 21 |
+
|
| 22 |
+
Table 1: Number of labeled and unlabeled instances in each dataset.
|
| 23 |
+
|
| 24 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Labeled</td><td rowspan=1 colspan=1>Unlabeled</td></tr><tr><td rowspan=1 colspan=1>English</td><td rowspan=1 colspan=1>3984</td><td rowspan=1 colspan=1>35848</td></tr><tr><td rowspan=1 colspan=1>French</td><td rowspan=1 colspan=1>1476</td><td rowspan=1 colspan=1>13280</td></tr><tr><td rowspan=1 colspan=1>Swedish</td><td rowspan=1 colspan=1>4880</td><td rowspan=1 colspan=1>5331</td></tr></table>
|
| 25 |
+
|
| 26 |
+
Our method can be regarded as semi-supervised Variational Auto-Encoder (VAE, Kingma et al., 2014). Specifically, we introduce a probabilistic model (Section 3) parametrized with a neural network (Section 4). The model assumes that a sentence is generated conditioned on a latent dependency tree. Dependency parsing corresponds to approximating the posterior distribution over the latent trees within this model, achieved by the encoder component of VAE, see Figure 2a. The parameters of the generative model and the parser (i.e. the encoder) are estimated by maximizing the likelihood of unlabeled sentences. In order to ensure that the latent representation is consistent with treebank annotation, we combine the above objective with maximizing the likelihood of gold parse trees in the labeled data.
|
| 27 |
+
|
| 28 |
+
Training a VAE via backpropagation requires marginalization over the latent variables, which is intractable for dependency trees. In this case, previous work proposed approximate training methods, mainly differentiable Monte-Carlo estimation (Kingma & Welling, 2013; Rezende et al., 2014) and score function estimation, e.g. REINFORCE (Williams, 1992). However, REINFORCE is known to suffer from high variance (Mnih & Gregor, 2014). Therefore, we propose an approximate differentiable Monte-Carlo approach that we call Differentiable Perturb-and-Parse (Section 5). The key idea is that we can obtain a differentiable relaxation of an approximate sample by (1) perturbing weights of candidate dependencies and (2) performing structured argmax inference with differentiable dynamic programming, relying on the perturbed scores. In this way we bring together ideas of perturb-and-map inference (Papandreou & Yuille, 2011; Maddison et al., 2017) and continuous relaxation for dynamic programming (Mensch & Blondel, 2018). Our model differs from previous works on latent structured models which compute marginal probabilities of individual edges Kim et al. (2017); Liu & Lapata (2018). Instead, we sample a single tree from the distribution that is represented with a soft selection of arcs. Therefore, we preserve higher-order statistics, which can then inform the decoder. Computing marginals would correspond to making strong independence assumptions. We evaluate our semi-supervised parser on English, French and Swedish and show improvement over a comparable supervised baseline (Section 6).
|
| 29 |
+
|
| 30 |
+
Our main contributions can be summarized as follows: (1) we introduce a variational autoencoder for semi-supervised dependency parsing; (2) we propose the Differentiable Perturb-and-Parse method for its estimation; (3) we demonstrate the effectiveness of the approach on three different languages. In short, we introduce a novel generative model for learning latent syntactic structures.
|
| 31 |
+
|
| 32 |
+
# 2 DEPENDENCY PARSING
|
| 33 |
+
|
| 34 |
+
A dependency is a bi-lexical relation between a head word (the source) and a modifier word (the target), see Figure 1. The set of dependencies of a sentence defines a tree-shaped structure.2 In the parsing problem, we aim to compute the dependency tree of a given sentence.
|
| 35 |
+
|
| 36 |
+
Formally, we define a sentence as a sequence of tokens (words) from vocabulary $\mathbb { W }$ . We assume a one-to-one mapping between $\mathbb { W }$ and integers $1 \dots | \mathbb { W } |$ . Therefore, we write a sentence of length $n$ as a vector of integers $\pmb { s }$ of size $n + 1$ with $1 \leq s _ { i } \leq | \mathbb { W } |$ and where $s _ { 0 }$ is a special root symbol. A dependency tree of sentence $\pmb { s }$ is a matrix of booleans $T \in \{ 0 , 1 \} ^ { ( n + 1 ) \times ( n + 1 ) }$ with $T _ { h , m } = 1$ meaning that word $s _ { h }$ is the head of word $s _ { m }$ in the dependency tree.
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
Figure 2: (a) Illustration of our probabilistic model with random variables $\pmb { s }$ , $_ { \mathbf { T } }$ and $_ z$ for sentences, dependency trees and sentence embeddings, respectively. The gray area delimits the latent space. Solid arcs denote the generative process, dashed arcs denotes posterior distributions over the latent variables. (b) Stochastic computation graph. (c) Illustration of the decoder when computing the probability distribution of $s _ { 4 }$ , the word at position 4. Dashed arcs at the bottom represent syntactic dependencies between word at position 4 and previous positions. At each step, the LSTM takes as input an embedding of the previous word $\scriptstyle { \mathcal { s } } _ { 0 }$ is a special start-of-sentence symbol). Then, the GCN combines different outputs of the LSTM by transforming them with respect to their syntactic relation with the current position. Finally, the probability of $s _ { 4 }$ is computed via the softmax function.
|
| 40 |
+
|
| 41 |
+
More specifically, a dependency tree $\mathbf { T }$ is the adjacency matrix of a directed graph with $n + 1$ vertices $\mathbf { v } _ { 0 } \ldots \mathbf { v } _ { n }$ . A matrix $\mathbf { T }$ is a valid dependency tree if and only if this graph is a $\mathbf { v } _ { 0 }$ -rooted spanning arborescence,3 i.e. the graph is connected, each vertex has at most one incoming arc and the only vertex without incoming arc is $\mathbf { v } _ { 0 }$ . A dependency tree is projective if and only if, for each arc $\mathbf { v } _ { h } \mathbf { v } _ { m }$ , if $h < m$ (resp. $m < h$ ) then there exists a path with arcs $\mathbf { T }$ from $\mathbf { V } _ { h }$ to each vertex $\mathbf { v } _ { k }$ such that $h < k < m$ (resp. $m < k < h$ ). From a linguistic point of view, projective dependency trees combine contiguous phrases (sequence of words) only. Intuitively, this means that we can draw the dependency tree above the sentence without crossing arcs.
|
| 42 |
+
|
| 43 |
+
Given a sentence $\pmb { s }$ , an arc-factored dependency parser computes the dependency tree $_ { \mathbf { T } }$ which maximizes a weighting function $\begin{array} { r } { f ( \mathbf { T } ; \mathbf { W } ) = \sum _ { h , m } { T _ { h , m } { W _ { h , m } } } } \end{array}$ , where $W$ is a matrix of dependency (arc) weights. This problem can be solved with a $\mathcal { O } ( n ^ { 2 } )$ time complexity (Tarjan, 1977; McDonald et al., 2005). If we restrict $\mathbf { T }$ to be a projective dependency tree, then the optimal solution can be computed with a $\mathcal { O } ( n ^ { 3 } )$ time complexity using dynamic programming (Eisner, 1996). Restricting the search space to projective trees is appealing for treebanks exhibiting this property (either exactly or approximately): they enforce a structural constraint that can be beneficial for accuracy, especially in a low-resource scenario. Moreover, using a more restricted search space of potential trees may be especially beneficial in a semi-supervised scenario: with a more restricted space a model is less likely to diverge from a treebank grammar and capture non-syntactic phenomena. Finally, Eisner’s algorithm (Eisner, 1996) can be described as a deduction system (Pereira & Warren, 1983), a framework that unifies many parsing algorithms. As such, our methodology could be applied to other grammar formalisms. For all these reasons, in this paper, we focus on projective dependency trees only.
|
| 44 |
+
|
| 45 |
+
# 3 GENERATIVE MODEL
|
| 46 |
+
|
| 47 |
+
We now turn to the learning problem, i.e. estimation of the matrix $W$ . We assume that we have access to a set of i.i.d. labeled sentences $\mathbb { L } = \{ \langle s , T \rangle , \dots \}$ and a set of i.i.d. unlabeled sentences $\mathbb { U } = \{ s , \ldots \}$ . In order to incorporate unlabeled data in the learning process, we introduce a generative model where the dependency tree is latent (Subsection 3.1). As such, we can maximize the likelihood of observed sentences even if the ground-truth dependency tree is unknown. We learn the parameters of this model using a variational Bayes approximation (Subsection 3.2) augmented with a discriminative objective on labeled data (Subsection 3.3).
|
| 48 |
+
|
| 49 |
+
# 3.1 GENERATIVE STORY
|
| 50 |
+
|
| 51 |
+
Under our probabilistic model, a sentence $\pmb { s }$ is generated from a continuous sentence embedding $_ { z }$ and with respect to a syntactic structure $\mathbf { T }$ . We formally define the generative process of a sentence of length $n$ as:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
T \sim p ( T | n ) \qquad z \sim p ( z | n ) \qquad s \sim p ( s | T , z , n )
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
This Bayesian network is shown in Figure 2a. In order to simplify notation, we omit conditioning on $n$ in the following. $_ { \mathbf { T } }$ and $_ { z }$ are latent variables and $p ( s | \bar { T } , \bar { z ) }$ is the conditional likelihood of observations. We assume that the priors $p ( \pmb { T } )$ and $p ( z )$ are the uniform distribution over projective trees and the multivariate standard normal distribution, respectively. The true distribution underlying the observed data is unknown, so we have to learn a model $p _ { \theta } ( \pmb { s } | \pmb { T } , \pmb { z } )$ parametrized by $\theta$ that best fits the given samples:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\theta = \arg \operatorname* { m a x } _ { \theta } \sum _ { s } \log p _ { \theta } ( s )
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
Then, the posterior distribution of latent variables $p _ { \theta } ( \pmb { T } , z | \pmb { s } )$ models the probability of underlying representations (including dependency trees) with respect to a sentence. This conditional distribution can be written as:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
p _ { \theta } ( \pmb { T } , z | \pmb { s } ) = \frac { p _ { \theta } ( \pmb { s } | \pmb { T } , z ) p ( \pmb { T } ) p ( z ) } { p _ { \theta } ( \pmb { s } ) }
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
In the next subsection, we explain how these two quantities can be estimated from data.
|
| 70 |
+
|
| 71 |
+
# 3.2 VARIATIONAL AUTO-ENCODERS
|
| 72 |
+
|
| 73 |
+
Computations in Equation 1 and Equation 2 require marginalization over the latent variables:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
p _ { \theta } ( s ) = \sum _ { T } \int p _ { \theta } ( s , T , z ) d z
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
which is intractable in general. We rely on the Variational Auto-Encoder (VAE) framework to tackle this challenge (Kingma $\&$ Welling, 2013; Rezende et al., 2014). We introduce a variational distribution $q _ { \phi } ( T , z | s )$ which is intended to be similar to $p _ { \theta } ( \pmb { T } , z | s )$ . More formally, we want $\mathrm { K L } [ q _ { \phi } ( \pmb { T } , \pmb { z } | \pmb { s } ) ] | p _ { \theta } ( \pmb { T } , \pmb { z } | \pmb { s } ) ]$ to be as small as possible, where $\mathrm { K L }$ is the Kulback-Leibler (KL) divergence. Then, the following equality holds:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\begin{array} { r } { \log p _ { \theta } ( s ) = \mathbb { E } _ { q _ { \phi } ( T , z | s ) } [ \log p _ { \theta } ( s | T , z ) ] - \mathrm { K L } [ q _ { \phi } ( T , z | s ) | p ( T , z ) ] + \mathrm { K L } [ q _ { \phi } ( T , z | s ) | ] p _ { \theta } ( T , z | s ) ] } \end{array}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $\log p _ { \theta } ( s )$ is called the evidence. The KL divergence is always positive, therefore by removing the last term we have:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\begin{array} { r } { \log p _ { \theta } ( s ) \geq \mathbb { E } _ { q _ { \phi } ( T , z \mid s ) } [ \log p _ { \theta } ( s | T , z ) ] - { \mathrm { K L } } [ q _ { \phi } ( T , z | s ) | p ( T , z ) ] = \tilde { \mathcal { E } } _ { \theta , \phi } ( s ) } \end{array}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where the right-hand side is called the Evidence Lower Bound (ELBO). By maximizing the ELBO term, the divergence KL $[ q _ { \phi } ( \pmb { T } , z | \pmb { s } ) \| p _ { \theta } ( \pmb { T } , z | \pmb { s } ) ]$ is implicitly minimized. Therefore, we define a surrogate objective, replacing the objective in Equation 1:
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\theta = \arg \operatorname* { m a x } _ { \theta } \sum _ { s } \operatorname* { m a x } _ { \phi } \tilde { \mathcal { E } } _ { \theta , \phi } ( s )
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
The ELBO in Equation 4 has two components. First, the KL divergence with the prior, which usually has a closed form solution. For the distribution over dependency trees, it can be computed with the semiring algorithm of Li & Eisner (2009). Second, the non-trivial term $\mathbb { E } _ { q _ { \phi } ( T , z | s ) } [ \log p _ { \theta } ( s | T , z ) ]$ . During training, Monte-Carlo method provides a tractable and unbiased estimation of the expectation. Note that a single sample from $q _ { \phi } ( T , z | s )$ can be understood as encoding the observation into the latent space, whereas regenerating a sentence from the latent space can be understood as decoding. However, training a VAE requires the sampling process to be differentiable. In the case of the sentence embedding, we follow the usual setting and define $q _ { \phi } ( z | s )$ as a diagonal Gaussian: backpropagation through the the sampling process $z \sim q _ { \phi } ( z | s )$ can be achieved thanks to the reparametrization trick (Kingma & Welling, 2013; Rezende et al., 2014). Unfortunately, this approach cannot be applied to dependency tree sampling $T \sim q _ { \phi } ( T | s )$ . We tackle this issue in Section 5.
|
| 98 |
+
|
| 99 |
+
# 3.3 SEMI-SUPERVISED LEARNING
|
| 100 |
+
|
| 101 |
+
VAEs are a convenient approach for semi-supervised learning (Kingma et al., 2014) and have been successfully applied in NLP (Kocisk ˇ y et al., 2016; Xu et al., 2017; Zhou & Neubig, 2017; Yin et al., ´ 2018). In this scenario, we are given the dependency structure of a subset of the observations, i.e. $_ { \mathbf { T } }$ is an observed variable. Then, the supervised ELBO term is defined as:
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\bar { \mathcal { E } } _ { \theta , \phi } ( s , \pmb { T } ) = \mathbb { E } _ { q _ { \phi } ( z | s ) } [ \log p _ { \theta } ( s | \pmb { T } , z ) ] - \mathrm { K L } [ q _ { \phi } ( z | s ) | p ( z ) ]
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
Note that our end goal is to estimate the posterior ditribution over dependency trees $q _ { \phi } ( \pmb { T } | s )$ , i.e. the dependency parser, which does not appear in the supervised ELBO. We want to explicitly use the labeled data in order to learn the parameters of this parser. This can be achieved by adding a discriminative training term to the overall loss.4
|
| 108 |
+
|
| 109 |
+
The loss function for training a semi-supervised VAE is:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\mathcal { L } _ { \boldsymbol { \theta , \phi } } ( \mathbb { L } , \mathbb { U } ) = - \sum _ { s , T \in \mathbb { L } } \log q _ { \phi } ( \boldsymbol { T } | s ) - \sum _ { s , T \in \mathbb { L } } \bar { \mathcal { E } } _ { \boldsymbol { \theta , \phi } } ( s , T ) - \sum _ { s \in \mathbb { U } } \tilde { \mathcal { E } } _ { \boldsymbol { \theta , \phi } } ( s )
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where the first term is the standard loss for supervised learning of log-linear models (Johnson et al., 1999; Lafferty et al., 2001).
|
| 116 |
+
|
| 117 |
+
# 4 NEURAL PARAMETRIZATION
|
| 118 |
+
|
| 119 |
+
In this section, we describe the neural parametrization of the encoder distribution $q _ { \phi }$ (Subsection 4.1) and the decoder distribution $p _ { \theta }$ (Subsection 4.2). A visual representation is given in Figure 2b.
|
| 120 |
+
|
| 121 |
+
# 4.1 ENCODER
|
| 122 |
+
|
| 123 |
+
We factorize the encoder as $q _ { \phi } ( T , z | s ) = q _ { \phi } ( T | s ) q _ { \phi } ( z | s )$ . The categorical distribution over dependency trees is parametrized by a log-linear model (Lafferty et al., 2001) where the weight of an arc is given by the neural network of Kiperwasser $\&$ Goldberg (2016).The sentence embedding model is specified as a diagonal Gaussian parametrized by a LSTM, similarly to the seq2seq framework (Sutskever et al., 2014; Bowman et al., 2016). That is:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\begin{array} { c c } { { W = \mathrm { D E P W E I G H T S } ( s ) } } & { { \qquad m , \log v ^ { 2 } = \mathrm { E M B P A R A M S } ( s ) } } \\ { { q _ { \phi } ( T | s ) = \displaystyle \frac { \exp ( \sum _ { i , j } W _ { i , j } T _ { i , j } ) } { \sum _ { T ^ { \prime } } \exp ( \sum _ { i , j } W _ { i , j } T _ { i , j } ^ { \prime } ) } } } & { { \qquad q _ { \phi } ( z | s ) = \mathcal { N } ( z | m , v ) } } \end{array}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where $_ { m }$ and $\textbf { { v } }$ are mean and variance vectors, respectively.5
|
| 130 |
+
|
| 131 |
+
# 4.2 DECODER
|
| 132 |
+
|
| 133 |
+
We use an autoregressive decoder that combines an LSTM and a Graph Convolutional Network (GCN, Kipf & Welling, 2016; Marcheggiani & Titov, 2017). The LSTM keeps the history of generated words, while the GCN incorporate information about syntactic dependencies.
|
| 134 |
+
|
| 135 |
+
The hidden state of the LSTM is initialized with latent variable $_ z$ (the sentence embedding). Then, at each step $1 \leq i \leq n$ , an embedding associated with word at position $i - 1$ is fed as input. A special start-of-sentence symbol embedding is used at the first position.
|
| 136 |
+
|
| 137 |
+
Let $o ^ { i }$ be the hidden state of the LSTM at position $i$ . The standard seq2seq architecture uses this vector to predict the word at position $i$ . Instead, we transform it in order to take into account the syntactic structure described by the latent variable $\mathbf { T }$ . Due to the autoregressive nature of the decoder, we can only take into account dependencies $T _ { h , m }$ such that $h < i$ and $m < i$ . Before being fed to the GCN, the output of the LSTM is fed to distinct multi-layer perceptrons6 that characterize syntactic relations: if $s _ { h }$ is the head of $s _ { i }$ , $o ^ { h }$ is transformed with ${ \bf M L P } ^ { \curvearrowright }$ , if $s _ { m }$ is a modifier of $s _ { i }$ , $\pmb { o } ^ { m }$ is transformed with ${ \bf M L P } ^ { \curvearrowright }$ , and lastly $o ^ { i }$ is transformed with ${ \bf M L P } ^ { \bigcirc }$ . Formally, the GCN is defined as follows:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
g ^ { i } = \operatorname { t a n h } \left( \mathbf { M } \mathbf { L } \mathbf { P } ^ { \mathcal { O } } ( \pmb { \sigma } ^ { i } ) + \sum _ { h = 0 } ^ { i - 1 } T _ { h , i } \times \mathbf { M } \mathbf { L } \mathbf { P } ^ { \mathcal { N } } ( \pmb { \sigma } ^ { h } ) + \sum _ { m = 0 } ^ { i - 1 } T _ { i , m } \times \mathbf { M } \mathbf { L } \mathbf { P } ^ { \mathcal { O } } ( \pmb { \sigma } ^ { m } ) \right)
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
The output vector $g ^ { i }$ is then used to estimate the probability of word $s _ { i }$ . The neural architecture of the decoder is illustrated on Figure 2c.
|
| 144 |
+
|
| 145 |
+
# 5 DIFFERENTIABLE PERTURB-AND-PARSE
|
| 146 |
+
|
| 147 |
+
Encoder-decoder architectures are usually straightforward to optimize with the back-propagation algorithm (Linnainmaa, 1976; LeCun et al., 2012) using any autodiff library. Unfortunately, our VAE contains stochastic nodes that can not be differentiated efficiently as marginalization is too expensive or intractable (see Figure 2b for the list of stochastic nodes in our computation graph). Kingma & Welling (2013) and Rezende et al. (2014) proposed to rely on a Monte-Carlo estimation of the gradient. This approximation is differentiable because the sampling process is moved out of the backpropagation path.7
|
| 148 |
+
|
| 149 |
+
In this section, we introduce our Differentiable Perturb-and-Parse operator to cope with the distribution over dependency trees. Firstly, in Subsection 5.1, we propose an approximate sampling process by computing the best parse tree with respect to independently perturbed arc weights. Secondly, we propose a differentiable surrogate of the parsing algorithm in Subsection 5.2.
|
| 150 |
+
|
| 151 |
+
# 5.1 PERTURB-AND-PARSE
|
| 152 |
+
|
| 153 |
+
Sampling from a categorical distributions can be achieved through the Gumbel-Max trick (Gumbel, 1954; Maddison et al., 2014).8 Unfortunately, this reparametrization is difficult to apply when the discrete variable can take an exponential number of values as in Markov Random Fields (MRF). Papandreou & Yuille (2011) proposed an approximate sampling process: each component is perturbed independently. Then, standard MAP inference algorithm computes the sample. This technique is called perturb-and-map.
|
| 154 |
+
|
| 155 |
+
Arc-factored dependency parsing can be expressed as a MRF where variable nodes represent arcs, singleton factors weight arcs and a fully connected factor forces the variable assignation to describe a valid dependency tree (Smith & Eisner, 2008). Therefore, we can apply the perturb-and-map method to dependency tree sampling:9
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\begin{array} { r c l } { { W } } & { { = } } & { { \operatorname { E M B P A R A M S } ( s ) } } \\ { { P } } & { { \sim } } & { { \mathcal { G } ( 0 , 1 ) } } \\ { { T } } & { { = } } & { { \operatorname { E I S N E R } ( W + P ) } } \end{array}
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
where $\mathcal { G } ( 0 , 1 )$ is the Gumbel distribution, that is sampling matrix $_ { r }$ is equivalent to setting $P _ { i , j } =$ $- \log ( - \log U _ { i , j } ) )$ ) where $U _ { i , j } \sim \mathrm { U n i f o r m } ( 0 , 1 )$ .
|
| 162 |
+
|
| 163 |
+
<table><tr><td>Algorithm1 This function search the best split point for constructing an element given its span.b is a one-hot vector such that bi-k = 1iff k is the best split position.</td></tr><tr><td>1: function DEDUCE-URIGHT(i, j, W) 2: s ← null-initialized vec.of size j-i 3: fori≤k<jdo 4: Si-k←[ik] +[k+1△j]</td></tr><tr><td>+Wji</td></tr><tr><td>5: b ← ONE-HOT-ARGMAX(s) 6: BACKPTR[ij]←b</td></tr><tr><td>7: WEIGHT[i j]←bs</td></tr></table>
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Algorithm2If item [ij]has contributed the optimal objective, this function sets Ti,j to 1.Then, it propagates the contribution in- formation to its antecedents.</td></tr><tr><td>1: function BACKTRACK-URIGHT(𝑖, j,T) 2: Ti,j←CONTRIB[i j]</td></tr><tr><td>3: b←BACKPTR[𝑖j] 4: fori≤k<jdo</td></tr><tr><td>CONTRIB[i△ k] ←bi-kTi,j 5: CONTRIB[k+1△j]←bi-kTi,j 6:</td></tr></table>
|
| 166 |
+
|
| 167 |
+
The (approximate) Monte-Carlo estimation of the expectation in Equation 3 is then defined as:10
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
\begin{array} { r } { { \mathbb E } _ { q _ { \phi } ( { \pmb T } | s ) } \left[ \log p _ { \theta } ( { \pmb s } | { \pmb T } ) \right] \simeq \log p _ { \theta } ( s | \mathrm { E I S N E R } ( { \pmb W } + { \pmb P } ) ) } \end{array}
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
where $\simeq$ denotes a Monte-Carlo estimation of the gradient, $\textstyle P \sim { \mathcal { G } } ( 0 , 1 )$ is sampled in the last line and EISNER is an algorithm that compute the projective dependency tree with maximum (perturbed) weight (Eisner, 1996). Therefore, the sampling process is outside of the backpropagation path. Unfortunately, the EISNER algorithm is built using ONE-HOT-ARGMAX operations that have illdefined partial derivatives. We propose a differentiable surrogate in the next section.
|
| 174 |
+
|
| 175 |
+
# 5.2 DIFFERENTIABLE PARSING ALGORITHM
|
| 176 |
+
|
| 177 |
+
We now propose a continuous relaxation of the projective dependency parsing algorithm. We start with a brief outline of the algorithm using the parsing-as-deduction formalism, restricting this presentation to the minimum needed to describe our continuous relaxation. We refer the reader to Eisner (1996) for an in-depth presentation.
|
| 178 |
+
|
| 179 |
+
The parsing-as-deduction formalism provides an unified presentation of many parsing algorithms (Pereira & Warren, 1983; Shieber et al., 1995). In this framework, a parsing algorithm is defined as a deductive system, i.e. as a set of axioms, a goal item and a set of deduction rules. Each deduced item represents a sub-analysis of the input. Regarding implementation, the common way is to rely on dynamic programming: items are deduced in a bottom-up fashion, from smaller sub-analyses to large ones. To this end, intermediate results are stored in a global chart.
|
| 180 |
+
|
| 181 |
+
For projective dependency parsing, the algorithm builds a chart whose items are of the form $[ i \triangleright j ]$ , $\left[ i \right] \varTheta \ j$ , $[ i \triangleright j ]$ and $[ i { \varDelta j } ]$ that represent sub-analyses from word $i$ to word $j$ . An item $[ i \triangleright j ]$ (resp. $[ i \complement j ] ,$ ) represents a sub-analysis where every word $s _ { k } , i \le k \le j$ is a descendant of $s _ { i }$ and where $s _ { j }$ cannot have any other modifier (resp. can have). The two other types are defined similarly for descendants of word $s _ { j }$ . In the first stage of the algorithm, the maximum weight of items are computed (deduced) in a bottom-up fashion. For example, the weight WEIGHT $[ i \stackrel { \bar { \mathbf { \sigma } } } { \supset } j ]$ is defined as the maximum of WEIGHT $[ i \triangleright k ] + \mathrm { w E I G H T } [ k + 1 \varDelta j ] ,$ , $\forall k$ s.t. $i \le k < j$ , plus $W _ { i , j }$ because $[ i \vartriangleright j ]$ assumes a dependency with head $s _ { i }$ and modifier $s _ { j }$ . In the second stage, the algorithm retrieves arcs whose scores have contributed to the optimal objective. Part of the pseudo-code for the first and second stages are given in Algorithm 1 and Algorithm 2, respectively. Note that, usually, the second stage is implemented with a linear time complexity but we cannot rely on this optimization for our continuous relaxation.
|
| 182 |
+
|
| 183 |
+
This algorithm can be thought of as the construction of a computational graph where WEIGHT, BACKPTR and CONTRIB are sets of nodes (variables). This graph includes ONE-HOT-ARGMAX operations that are not differentiable (see line 5 in Algorithm 1). This operation takes as input a vector of weights $\textbf { { v } }$ of size $k$ and returns a one-hot vector $^ o$ of the same size with $o _ { i } = 1$ if and only
|
| 184 |
+
|
| 185 |
+
if $v _ { i }$ is the element of maximum value:11
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
o _ { i } = \mathbb { 1 } [ \forall 1 \leq j \leq k , j \neq i : v _ { i } > v _ { j } ]
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
We follow a recent trend (Jang et al., 2017; Maddison et al., 2017; Goyal et al., 2017; 2018) in differentiable approximation of the ONE-HOT-ARGMAX function and replace it with the PEAKEDSOFTMAX operator:
|
| 192 |
+
|
| 193 |
+
$$
|
| 194 |
+
o _ { i } = \frac { \exp ( 1 / \tau \ v _ { i } ) } { \sum _ { 1 \leq j \leq k } \exp ( 1 / \tau \ v _ { j } ) }
|
| 195 |
+
$$
|
| 196 |
+
|
| 197 |
+
where $\tau > 0$ is a temperature hyperparameter controlling the smoothness of the relaxation: when $\tau \infty$ the relaxation becomes equivalent to ONE-HOT-ARGMAX. With this update, the parsing algorithm is fully differentiable.12 Note, however, that outputs are not valid dependency trees anymore. Indeed, then an output matrix $_ { \mathbf { T } }$ contains continuous values that represent soft selection of arcs. Mensch & Blondel (2018) introduced a alternative but similar approach for tagging with the Viterbi algorithm. We report pseudo-codes for the forward and backward passes of our continuous relaxation of EISNER’s algorithm in Appendix F.
|
| 198 |
+
|
| 199 |
+
# 5.3 DISCUSSION
|
| 200 |
+
|
| 201 |
+
The fact that $\mathbf { T }$ is a soft selection of arcs, and not a combinatorial structure, does not impact the decoder. Indeed, a GCN can be run over weighted graphs, the message passed between nodes is simply multiplied by the continuous weights. This is one of motivations for using GCNs rather than a Recursive LSTMs (Tai et al., 2015) in the decoder. On the one hand, running a GCN with a matrix that represents a soft selection of arcs (i.e. with real values) has the same computational cost than using a standard adjacency matrix (i.e. with binary elements) if we use matrix multiplication on GPU.13 On the other hand, a recursive network over a soft selection of arcs requires to build a $O ( n ^ { 2 } )$ set of RNN-cells that follow the dynamic programming chart where the possible inputs of a cell are multiplied by their corresponding weight in T, which is expensive and not GPU-friendly.
|
| 202 |
+
|
| 203 |
+
# 6 EXPERIMENTS
|
| 204 |
+
|
| 205 |
+
We ran a series of experiments on 3 different languages to test our method for semi-supervised dependency parsing: English, French and Swedish. Details about corpora can be found in Appendix C. The size of each dataset is reported in Table 1. Note that the setting is especially challenging for Swedish: the amount of unlabeled data we use here barely exceeds that of labeled data. The hyperparameters of our network are described in Appendix D. In order to ensure that we do not bias our model for the benefit of the semi-supervised scenario, we use the same parameters as Kiperwasser & Goldberg (2016) for the parser. Also, we did not perform any language-specific parameter selections. This makes us hope that our method can be applied to other languages with little extra effort. We stress that no part-of-speech tags are used as input in any part of our network. For English, the supervised parser took 1.5 hours to train on a NVIDIA Titan X GPU while the semi-supervised parser without sentence embedding, which sees 2 times more instances per epoch, took 3.5 hours to train.
|
| 206 |
+
|
| 207 |
+
Previous work has shown that learned latent structures tend to differ from linguistic syntactic structures (Kim et al., 2017; Williams et al., 2018). Therefore, we encourage the VAE to rely on latent structures close to the targeted ones by bootstrapping the training procedure with labeled data only. We follow a common practice for VAEs: we experimented with scaling down the KL-divergence of priors (Bowman et al., 2016; Miao et al., 2017; Yin et al., 2018). We use weights 0.01 the KLdivergence with the prior for distributions over sentence embeddings. For dependency trees, we report all experiments with the weight of 0, as removing the term or heavily downweighting it was yielding the best results. As the encoder is bootstrapped with the supervised loss, it is implicitly regularized toward linguistic trees, and the KL term would negate this effect. Intuitively, the KL term favors models which are uncertain on unlabeled examples, which may also be problematic, given that we would expect a strong parser to have sharp posteriors.
|
| 208 |
+
|
| 209 |
+
Table 2: (a) Parsing results: unlabeled attachment score / labeled attachment score. We also report results with the parser of (Kiperwasser & Goldberg, 2016) which uses a different discriminative loss for supervised training. (b) Recall / Precision evaluation with respect to dependency lengths for the supervised parser and the best semi-supervised parser on the English test set. Bold numbers highlight the main differences. (c) Recall / Precision evaluation with respect to dependency labels for multi-word expressions (mwe), adverbial modifiers (advmod) and appositional modifiers (appos).
|
| 210 |
+
(a) Parsing results
|
| 211 |
+
|
| 212 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>English</td><td rowspan=1 colspan=1>French</td><td rowspan=1 colspan=1>Swedish</td></tr><tr><td rowspan=1 colspan=1>Supervised</td><td rowspan=1 colspan=1>88.79/84.74</td><td rowspan=1 colspan=1>84.09/77.58</td><td rowspan=1 colspan=1>86.59 /78.95</td></tr><tr><td rowspan=1 colspan=1>VAE w. z</td><td rowspan=1 colspan=1>89.39/85.44</td><td rowspan=1 colspan=1>84.43/77.89</td><td rowspan=1 colspan=1>86.92/80.01</td></tr><tr><td rowspan=1 colspan=1>VAE w/o z</td><td rowspan=1 colspan=1>89.50/ 85.48</td><td rowspan=1 colspan=1>84.69/78.49</td><td rowspan=1 colspan=1>86.97/79.80</td></tr><tr><td rowspan=1 colspan=1>Kipperwasser& Goldberg</td><td rowspan=1 colspan=1>89.88 / 86.49</td><td rowspan=1 colspan=1>84.30/77.83</td><td rowspan=1 colspan=1>86.93/ 80.12</td></tr></table>
|
| 213 |
+
|
| 214 |
+
(b) Dependency length analysis
|
| 215 |
+
|
| 216 |
+
<table><tr><td rowspan=1 colspan=1>Distance</td><td rowspan=1 colspan=1>SupervisedRe/Pr</td><td rowspan=1 colspan=1> Semi-sup.Re/Pr</td></tr><tr><td rowspan=1 colspan=1>(to root)</td><td rowspan=1 colspan=1>93.46 / 89.30</td><td rowspan=1 colspan=1>93.84 /92.41</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>95.61 /94.07</td><td rowspan=1 colspan=1>95.33/994.57</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>93.01/990.88</td><td rowspan=1 colspan=1>92.50/92.09</td></tr><tr><td rowspan=1 colspan=1>3...6</td><td rowspan=1 colspan=1>85.95/88.13</td><td rowspan=1 colspan=1>87.31/ 87.93</td></tr><tr><td rowspan=1 colspan=1>>7</td><td rowspan=1 colspan=1>72.47 / 83.26</td><td rowspan=1 colspan=1>78.72 / 83.11</td></tr></table>
|
| 217 |
+
|
| 218 |
+
(c) Dependency label analysis
|
| 219 |
+
|
| 220 |
+
<table><tr><td rowspan=1 colspan=1>Label</td><td rowspan=1 colspan=1>SupervisedRe/Pr</td><td rowspan=1 colspan=1> Semi-sup.Re/Pr</td></tr><tr><td rowspan=1 colspan=1>mwe</td><td rowspan=1 colspan=1>75.58 / 81.25</td><td rowspan=1 colspan=1>90.70/84.78</td></tr><tr><td rowspan=1 colspan=1>advmod</td><td rowspan=1 colspan=1>87.27/85.95</td><td rowspan=1 colspan=1>87.32/87.51</td></tr><tr><td rowspan=1 colspan=1>appos</td><td rowspan=1 colspan=1>77.49/880.27</td><td rowspan=1 colspan=1>81.39/81.03</td></tr></table>
|
| 221 |
+
|
| 222 |
+
# 6.1 PARSING RESULTS
|
| 223 |
+
|
| 224 |
+
For each dataset, we train under the supervised and the semi-supervised scenario. Moreover, in the semi-supervised setting, we experiment with and without latent sentence embedding $_ z$ . We compare only to the model of Kiperwasser & Goldberg (2016). Recently, even more accurate models have been proposed (e.g., Dozat & Manning, 2017). In principle, the ideas introduced in recent work are mostly orthogonal to our proposal as we can modify our VAE model accordingly. For example, we experimented with using bi-affine attention of Dozat & Manning (2017), though it has not turned out beneficial in our low-resource setting. Comparing to multiple previous parsers would have also required tuning each of them on our dataset, which is infeasible. Therefore, we only report results with a comparable baseline, i.e. trained with a structured hinge loss (Kiperwasser & Goldberg, 2016; Taskar et al., 2005). We did not perform further tuning in order to ensure that our analysis is not skewed toward one setting. Parsing results are summarized in Table 2a.
|
| 225 |
+
|
| 226 |
+
We observe a score increase in all three languages. Moreover, we observe that VAE performs slightly better without latent sentence embedding. We assume this is due to the fact that dependencies are more useful when no information leaks in the decoder through $_ z$ . Interestingly, we observe an improvement, albeit smaller, even on Swedish, where we used a very limited amount of unlabeled data. We note that training with structured hinge loss gives stronger results than our supervised baseline. In order to maintain the probabilistic interpretation of our model, we did not include a similar term in our model.
|
| 227 |
+
|
| 228 |
+
We conducted qualitative analyses for English.14 We report scores with respect to dependency lengths in Table 2b. We observe that the semi-supervised parser tends to correct two kind of errors. Firstly, it makes fewer mistakes on root attachments, i.e. the recall is similar between the two parsers but the precision of the semi-supervised one is higher. We hypothesis that root attachment errors come at a high price in the decoder because there is only a small fraction of the vocabulary that is observed with this syntactic function. Secondly, the semi-supervised parser recovers more long distance relations, i.e. the recall for dependencies with a distance superior or equal to 7 is higher. Intuitively, we assume these dependencies are more useful in the decoder: for short distance dependencies, the LSTM efficiently captures the context of the word to predict, whereas this information could be vanishing for long distances, meaning the GCN has more impact on the prediction. We also checked how the scores differ across dependency labels. We report main differences in Tables 2c. The largest improvements are obtained for multi-word expressions: this is particularly interesting because they are known to be challenging in NLP.
|
| 229 |
+
|
| 230 |
+
# 7 RELATED WORK
|
| 231 |
+
|
| 232 |
+
Dependency parsing in the low-ressource scenario has been of interest in the NLP community due to the expensive nature of annotation. On the one hand, transfer approaches learn a delexicalized parser for a resource-rich language which is then used to parse a low-resource one (Agic et al., 2016; ´ McDonald et al., 2011). On the other hand, the grammar induction approach learns a dependency parser in an unsupervised manner. Klein & Manning (2004) introduced the first generative model that outperforms the right-branching heuristic in English. Close to our work, Cai et al. (2017) use an auto-encoder setting where the decoder tries to rebuild the source sentence. However, their decoder is unstructured (e.g. it is not auto-regressive).
|
| 233 |
+
|
| 234 |
+
Variational Auto-Encoders (Kingma & Welling, 2013; Rezende et al., 2014) have been investigated in the semi-supervised settings (Kingma et al., 2014) for NLP. Kocisk ˇ y et al. (2016) learn a semantic ´ parser where the latent variable is a discrete sequence of symbols. Zhou & Neubig (2017) successfully applied the variational method to semi-supervised morphological re-inflection where discrete latent variables represent linguistic features (e.g. tense, part-of-speech tag). Yin et al. (2018) proposed a semi-supervised semantic parser. Similarly to our model, they rely on a structured latent variable. However, all of these systems use either categorical random variables or the REINFORCE score estimator. To the best of our knowledge, no previous work used continuous relaxation of a dynamic programming latent variable in the VAE setting.
|
| 235 |
+
|
| 236 |
+
The main challenge is backpropagation through discrete random variables. Maddison et al. (2017) and Jang et al. (2017) first introduced the Gumbel-Softmax operator for the categorical distribution. There are two issues regarding more complex discrete distributions. Firstly, one have to build a reparametrization of the the sampling process. Papandreou & Yuille (2011) showed that low-order perturbations provide samples of good qualities for graphical models. Secondly, one have to build a good differentiable surrogate to the structured arg max operator. Early work replaced the structured arg max with structured attention (Kim et al., 2017). However, computing the marginals over the parse forest is sensitive to numerical stability outside specific cases like non-projective dependency parsing (Liu & Lapata, 2018; Tran & Bisk, 2018). Mensch & Blondel (2018) proposed a stable algorithm based on dynamic program smoothing. Our approach is highly related but we describe a continuous relaxation using the parsing-as-deduction formalism. Peng et al. (2018) propose to replace the true gradient with a proxy that tries to satisfy constraints on a arg max operator via a projection. However, their approach is computationally expensive, so they remove the tree constraint on dependencies during backpropagation. A parallel line of work focuses on sparse structures that are differentiable (Martins & Astudillo, 2016; Niculae et al., 2018).
|
| 237 |
+
|
| 238 |
+
# 8 CONCLUSIONS
|
| 239 |
+
|
| 240 |
+
We presented a novel generative learning approach for semi-supervised dependency parsing. We model the dependency structure of a sentence as a latent variable and build a VAE. We hope to motivate investigation of latent syntactic structures via differentiable dynamic programming in neural networks. Future work includes research for an informative prior for the dependency tree distribution, for example by introducing linguistic knowledge (Naseem et al., 2010; Noji et al., 2016) or with an adversarial training criterion Makhzani et al. (2016). This work could also be extended to the unsupervised scenario.
|
| 241 |
+
|
| 242 |
+
# ACKNOWLEDGMENTS
|
| 243 |
+
|
| 244 |
+
We thank Diego Marcheggiani, Wilker Ferreira Aziz and Serhii Havrylov for their comments and suggestions. We thank the anonymous reviewers for their comments. The project was supported by the Dutch National Science Foundation (NWO VIDI 639.022.518) and European Research Council (ERC Starting Grant BroadSem 678254).
|
| 245 |
+
|
| 246 |
+
# REFERENCES
|
| 247 |
+
|
| 248 |
+
Anne Abeille, Lionel Cl ´ ement, and Alexandra Kinyon. Building a treebank for french. In ´ Proceedings of the Second International Conference on Language Resources and Evaluation (LREC’00). European Language Resources Association (ELRA), 2000. URL http://www.aclweb. org/anthology/L00-1175.
|
| 249 |
+
|
| 250 |
+
Zeljko Agi ˇ c, Anders Johannsen, Barbara Plank, H ´ ector Mart ´ ´ınez Alonso, Natalie Schluter, and Anders Søgaard. Multilingual projection for parsing truly low-resource languages. Transactions of the Association for Computational Linguistics, 4:301–312, 2016. URL http://aclweb. org/anthology/Q16-1022.
|
| 251 |
+
|
| 252 |
+
Rami Al-Rfou, Bryan Perozzi, and Steven Skiena. Polyglot: Distributed word representations for multilingual NLP. In Proceedings of the Seventeenth Conference on Computational Natural Language Learning, pp. 183–192, Sofia, Bulgaria, August 2013. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/W13-3520.
|
| 253 |
+
|
| 254 |
+
Joost Bastings, Ivan Titov, Wilker Aziz, Diego Marcheggiani, and Khalil Simaan. Graph convolutional encoders for syntax-aware neural machine translation. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1947–1957. Association for Computational Linguistics, 2017. URL http://www.aclweb.org/anthology/ D17-1208.
|
| 255 |
+
|
| 256 |
+
Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. In Proceedings of The 20th SIGNLL Conference on Computational Natural Language Learning, pp. 10–21. Association for Computational Linguistics, 2016. doi: 10.18653/v1/K16-1002. URL http://www.aclweb.org/ anthology/K16-1002.
|
| 257 |
+
|
| 258 |
+
Jiong Cai, Yong Jiang, and Kewei Tu. CRF autoencoder for unsupervised dependency parsing. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1638–1643. Association for Computational Linguistics, 2017. URL http://aclweb.org/ anthology/D17-1171.
|
| 259 |
+
|
| 260 |
+
Wenliang Chen, Daisuke Kawahara, Kiyotaka Uchimoto, Yujie Zhang, and Hitoshi Isahara. Using short dependency relations from auto-parsed data for chinese dependency parsing. ACM Transactions on Asian Language Information Processing, pp. 10:1–10:20, 2009. ISSN 1530-0226.
|
| 261 |
+
|
| 262 |
+
Hang Cui, Renxu Sun, Keya Li, Min-Yen Kan, and Tat-Seng Chua. Question answering passage retrieval using dependency relations. In Proceedings of the 28th annual international ACM SIGIR conference on Research and development in information retrieval, pp. 400–407. ACM, 2005.
|
| 263 |
+
|
| 264 |
+
Aron Culotta and Jeffrey Sorensen. Dependency tree kernels for relation extraction. In Proceedings of the 42nd Annual Meeting of the Association for Computational Linguistics (ACL-04), 2004. URL http://www.aclweb.org/anthology/P04-1054.
|
| 265 |
+
|
| 266 |
+
Marie-Catherine De Marneffe and Christopher D Manning. Stanford typed dependencies manual. Technical report, Technical report, Stanford University, 2008.
|
| 267 |
+
|
| 268 |
+
Yuan Ding and Martha Palmer. Machine translation using probabilistic synchronous dependency insertion grammars. In Proceedings of the 43rd Annual Meeting of the Association for Computational Linguistics (ACL’05), pp. 541–548. Association for Computational Linguistics, 2005. URL http://www.aclweb.org/anthology/P05-1067.
|
| 269 |
+
|
| 270 |
+
Timothy Dozat and Christopher D Manning. Deep biaffine attention for neural dependency parsing. In Proceedings of the 2017 International Conference on Learning Representations, 2017.
|
| 271 |
+
|
| 272 |
+
Chris Dyer, Miguel Ballesteros, Wang Ling, Austin Matthews, and Noah A. Smith. Transitionbased dependency parsing with stack long short-term memory. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 334–343. Association for Computational Linguistics, 2015. doi: 10.3115/v1/P15-1033. URL http: //www.aclweb.org/anthology/P15-1033.
|
| 273 |
+
|
| 274 |
+
Jason Eisner. Inside-outside and forward-backward algorithms are just backprop (tutorial paper). In Proceedings of the Workshop on Structured Prediction for NLP, pp. 1–17. Association for Computational Linguistics, 2016. doi: 10.18653/v1/W16-5901. URL http://www.aclweb. org/anthology/W16-5901.
|
| 275 |
+
|
| 276 |
+
Jason M. Eisner. Three new probabilistic models for dependency parsing: An exploration. In COLING 1996 Volume 1: The 16th International Conference on Computational Linguistics, 1996. URL http://www.aclweb.org/anthology/C96-1058.
|
| 277 |
+
|
| 278 |
+
Joshua Goodman. Semiring parsing. Computational Linguistics, 25(4), 1999. URL http://www. aclweb.org/anthology/J99-4004.
|
| 279 |
+
|
| 280 |
+
Kartik Goyal, Chris Dyer, and Taylor Berg-Kirkpatrick. Differentiable scheduled sampling for credit assignment. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 366–371. Association for Computational Linguistics, 2017. doi: 10.18653/v1/P17-2058. URL http://www.aclweb.org/anthology/P17-2058.
|
| 281 |
+
|
| 282 |
+
Kartik Goyal, Graham Neubig, Chris Dyer, and Taylor Berg-Kirkpatrick. A continuous relaxation of beam search for end-to-end training of neural sequence models. In Thirty-Second AAAI Conference on Artificial Intelligence (AAAI-18), New Orleans, Louisiana, February 2018. URL https://arxiv.org/abs/1708.00111.
|
| 283 |
+
|
| 284 |
+
Emil Julius Gumbel. Statistical theory of extreme values and some practical applications: a series of lectures. Number 33. US Govt. Print. Office, 1954.
|
| 285 |
+
|
| 286 |
+
Johan Hall, Joakim Nivre, and Jens Nilsson. Discriminative classifiers for deterministic dependency parsing. In Proceedings of the COLING/ACL 2006 Main Conference Poster Sessions, pp. 316– 323. Association for Computational Linguistics, 2006. URL http://www.aclweb.org/ anthology/P06-2041.
|
| 287 |
+
|
| 288 |
+
Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In Proceedings of the 2017 International Conference on Learning Representations, 2017.
|
| 289 |
+
|
| 290 |
+
Mark Johnson, Stuart Geman, Stephen Canon, Zhiyi Chi, and Stefan Riezler. Estimators for stochastic “unification-based” grammars. In Proceedings of the 37th Annual Meeting of the Association for Computational Linguistics, 1999. URL http://www.aclweb.org/anthology/ P99-1069.
|
| 291 |
+
|
| 292 |
+
Ronald M Kaplan and Joan Bresnan. Lexical-functional grammar: A formal system for grammatical representation. Formal Issues in Lexical-Functional Grammar, pp. 29–130, 1982.
|
| 293 |
+
|
| 294 |
+
Daisuke Kawahara and Kiyotaka Uchimoto. Learning reliability of parses for domain adaptation of dependency parsing. In Proceedings of the Third International Joint Conference on Natural Language Processing: Volume-II, 2008. URL http://www.aclweb.org/anthology/ I08-2097.
|
| 295 |
+
|
| 296 |
+
Yoon Kim, Carl Denton, Luong Hoang, and Alexander M Rush. Structured attention networks. In Proceedings of the 2017 International Conference on Learning Representations, 2017.
|
| 297 |
+
|
| 298 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 299 |
+
|
| 300 |
+
Diederik P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 3581–3589. Curran Associates, Inc., 2014. URL http://papers.nips.cc/paper/ 5352-semi-supervised-learning-with-deep-generative-models.pdf.
|
| 301 |
+
|
| 302 |
+
Eliyahu Kiperwasser and Yoav Goldberg. Simple and accurate dependency parsing using bidirectional LSTM feature representations. Transactions of the Association of Computational Linguistics, 4:313–327, 2016. URL http://www.aclweb.org/anthology/Q16-1023.
|
| 303 |
+
|
| 304 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
|
| 305 |
+
|
| 306 |
+
Dan Klein and Christopher Manning. Corpus-based induction of syntactic structure: Models of dependency and constituency. In Proceedings of the 42nd Annual Meeting of the Association for Computational Linguistics (ACL-04), 2004. URL http://www.aclweb.org/ anthology/P04-1061.
|
| 307 |
+
|
| 308 |
+
Toma´s Ko ˇ cisk ˇ y, G ´ abor Melis, Edward Grefenstette, Chris Dyer, Wang Ling, Phil Blunsom, and´ Karl Moritz Hermann. Semantic parsing with semi-supervised sequential autoencoders. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1078–1087. Association for Computational Linguistics, 2016. doi: 10.18653/v1/D16-1116. URL http://www.aclweb.org/anthology/D16-1116.
|
| 309 |
+
|
| 310 |
+
Lingpeng Kong, Alexander M. Rush, and Noah A. Smith. Transforming dependencies into phrase structures. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 788–798. Association for Computational Linguistics, 2015. doi: 10.3115/v1/N15-1080. URL http: //www.aclweb.org/anthology/N15-1080.
|
| 311 |
+
|
| 312 |
+
Terry Koo, Xavier Carreras, and Michael Collins. Simple semi-supervised dependency parsing. In Proceedings of ACL-08: HLT, pp. 595–603. Association for Computational Linguistics, 2008. URL http://www.aclweb.org/anthology/P08-1068.
|
| 313 |
+
|
| 314 |
+
John Lafferty, Andrew McCallum, and Fernando CN Pereira. Conditional random fields: Probabilistic models for segmenting and labeling sequence data. In Proceedings of the International Conference on Machine Learning, 2001.
|
| 315 |
+
|
| 316 |
+
Yann A LeCun, Leon Bottou, Genevieve B Orr, and Klaus-Robert M ´ uller. Efficient backprop. In ¨ Neural networks: Tricks of the trade, pp. 9–48. Springer, 2012.
|
| 317 |
+
|
| 318 |
+
Zhifei Li and Jason Eisner. First- and second-order expectation semirings with applications to minimum-risk training on translation forests. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pp. 40–51. Association for Computational Linguistics, 2009. URL http://aclweb.org/anthology/D09-1005.
|
| 319 |
+
|
| 320 |
+
Wang Ling, Chris Dyer, Alan W Black, and Isabel Trancoso. Two/too simple adaptations of word2vec for syntax problems. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1299–1304. Association for Computational Linguistics, 2015. doi: 10.3115/v1/N15-1142. URL http://www.aclweb.org/anthology/N15-1142.
|
| 321 |
+
|
| 322 |
+
Seppo Linnainmaa. Taylor expansion of the accumulated rounding error. BIT Numerical Mathematics, 16(2):146–160, 1976.
|
| 323 |
+
|
| 324 |
+
Yang Liu and Mirella Lapata. Learning structured text representations. Transactions of the Association for Computational Linguistics, 6:63–75, 2018. URL http://aclweb.org/ anthology/Q18-1005.
|
| 325 |
+
|
| 326 |
+
Yang Liu, Furu Wei, Sujian Li, Heng Ji, Ming Zhou, and Houfeng WANG. A dependency-based neural network for relation classification. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pp. 285–290. Association for Computational Linguistics, 2015. doi: 10.3115/v1/P15-2047. URL http://www.aclweb.org/anthology/ P15-2047.
|
| 327 |
+
|
| 328 |
+
Xuezhe Ma and Eduard Hovy. Neural probabilistic model for non-projective mst parsing. In Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 59–69, Taipei, Taiwan, November 2017. Asian Federation of Natural Language Processing. URL http://www.aclweb.org/anthology/I17-1007.
|
| 329 |
+
|
| 330 |
+
Chris J. Maddison, Daniel Tarlow, and Tom Minka. A\* Sampling. In Advances in Neural Information Processing Systems 27, 2014.
|
| 331 |
+
|
| 332 |
+
Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables. In International Conference on Learning Representations, 2017.
|
| 333 |
+
|
| 334 |
+
Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. In ICLR 2016 Workshop, International Conference on Learning Representations, 2016.
|
| 335 |
+
|
| 336 |
+
Diego Marcheggiani and Ivan Titov. Encoding sentences with graph convolutional networks for semantic role labeling. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1507–1516. Association for Computational Linguistics, 2017. URL http://www.aclweb.org/anthology/D17-1159.
|
| 337 |
+
|
| 338 |
+
Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993.
|
| 339 |
+
|
| 340 |
+
Andre Martins and Ramon Astudillo. From softmax to sparsemax: A sparse model of attention and multi-label classification. In International Conference on Machine Learning, pp. 1614–1623, 2016.
|
| 341 |
+
|
| 342 |
+
David McClosky, Eugene Charniak, and Mark Johnson. Reranking and self-training for parser adaptation. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics, pp. 337–344. Association for Computational Linguistics, 2006. URL http://www.aclweb.org/anthology/ P06-1043.
|
| 343 |
+
|
| 344 |
+
Ryan McDonald, Fernando Pereira, Kiril Ribarov, and Jan Hajic. Non-projective dependency parsing using spanning tree algorithms. In Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing, 2005. URL http://www.aclweb.org/anthology/H05-1066.
|
| 345 |
+
|
| 346 |
+
Ryan McDonald, Slav Petrov, and Keith Hall. Multi-source transfer of delexicalized dependency parsers. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pp. 62–72. Association for Computational Linguistics, 2011. URL http://www. aclweb.org/anthology/D11-1006.
|
| 347 |
+
|
| 348 |
+
Arthur Mensch and Mathieu Blondel. Differentiable dynamic programming for structured prediction and attention. In In Proceedings of International Conference on Machine Learning, 2018.
|
| 349 |
+
|
| 350 |
+
Yishu Miao, Edward Grefenstette, and Phil Blunsom. Discovering discrete latent topics with neural variational inference. In International Conference on Machine Learning, 2017.
|
| 351 |
+
|
| 352 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013.
|
| 353 |
+
|
| 354 |
+
Andriy Mnih and Karol Gregor. Neural variational inference and learning in belief networks. In Proceedings of the 31st International Conference on Machine Learning, 2014.
|
| 355 |
+
|
| 356 |
+
Tahira Naseem, Harr Chen, Regina Barzilay, and Mark Johnson. Using universal linguistic knowledge to guide grammar induction. In Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, pp. 1234–1244. Association for Computational Linguistics, 2010. URL http://www.aclweb.org/anthology/D10-1120.
|
| 357 |
+
|
| 358 |
+
Graham Neubig, Chris Dyer, Yoav Goldberg, Austin Matthews, Waleed Ammar, Antonios Anastasopoulos, Miguel Ballesteros, David Chiang, Daniel Clothiaux, Trevor Cohn, Kevin Duh, Manaal Faruqui, Cynthia Gan, Dan Garrette, Yangfeng Ji, Lingpeng Kong, Adhiguna Kuncoro, Gaurav Kumar, Chaitanya Malaviya, Paul Michel, Yusuke Oda, Matthew Richardson, Naomi Saphra, Swabha Swayamdipta, and Pengcheng Yin. Dynet: The dynamic neural network toolkit. arXiv preprint arXiv:1701.03980, 2017.
|
| 359 |
+
|
| 360 |
+
Vlad Niculae, Andre FT Martins, Mathieu Blondel, and Claire Cardie. SparseMAP: Differentiable ´ sparse structured inference. In Proceedings of ICML 2018, 2018.
|
| 361 |
+
|
| 362 |
+
J. Nivre, J. Nilsson, and J. Hall. Talbanken05: A swedish treebank with phrase structure and dependency annotation. In Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC’06). European Language Resources Association (ELRA), 2006. URL http://www.aclweb.org/anthology/L06-1121.
|
| 363 |
+
|
| 364 |
+
Hiroshi Noji, Yusuke Miyao, and Mark Johnson. Using left-corner parsing to encode universal structural constraints in grammar induction. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 33–43. Association for Computational Linguistics, 2016. doi: 10.18653/v1/D16-1004. URL http://www.aclweb.org/anthology/ D16-1004.
|
| 365 |
+
|
| 366 |
+
George Papandreou and Alan L Yuille. Perturb-and-MAP random fields: Using discrete optimization to learn and sample from energy models. In Computer Vision (ICCV), 2011 IEEE International Conference on, pp. 193–200. IEEE, 2011.
|
| 367 |
+
|
| 368 |
+
Hao Peng, Sam Thomson, and Noah A. Smith. Backpropagating through structured argmax using a spigot. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1863–1873. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/P18-1173.
|
| 369 |
+
|
| 370 |
+
Fernando C. N. Pereira and David H. D. Warren. Parsing as deduction. In 21st Annual Meeting of the Association for Computational Linguistics, 1983. URL http://www.aclweb.org/ anthology/P83-1021.
|
| 371 |
+
|
| 372 |
+
Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pp. 2227–2237. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/N18-1202.
|
| 373 |
+
|
| 374 |
+
Siva Reddy, Oscar Tackstr ¨ om, Michael Collins, Tom Kwiatkowski, Dipanjan Das, Mark Steedman, ¨ and Mirella Lapata. Transforming dependency structures to logical forms for semantic parsing. Transactions of the Association for Computational Linguistics, 4:127–140, 2016.
|
| 375 |
+
|
| 376 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pp. 1278–1286, Bejing, China, 22–24 Jun 2014. PMLR. URL http://proceedings.mlr. press/v32/rezende14.html.
|
| 377 |
+
|
| 378 |
+
Kenji Sagae and Jun’ichi Tsujii. Dependency parsing and domain adaptation with lr models and parser ensembles. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), 2007. URL http://www.aclweb.org/anthology/D07-1111.
|
| 379 |
+
|
| 380 |
+
Djame Seddah, Reut Tsarfaty, Sandra K ´ ubler, Marie Candito, Jinho D. Choi, Rich ¨ ard Farkas, Jen- ´ nifer Foster, Iakes Goenaga, Koldo Gojenola Galletebeitia, Yoav Goldberg, Spence Green, Nizar Habash, Marco Kuhlmann, Wolfgang Maier, Joakim Nivre, Adam Przepiorkowski, Ryan Roth, ´ Wolfgang Seeker, Yannick Versley, Veronika Vincze, Marcin Wolinski, Alina Wr ´ oblewska, and ´ Eric Villemonte de la Clergerie. Overview of the spmrl 2013 shared task: A cross-framework evaluation of parsing morphologically rich languages. In Proceedings of the Fourth Workshop on Statistical Parsing of Morphologically-Rich Languages, pp. 146–182. Association for Computational Linguistics, 2013. URL http://www.aclweb.org/anthology/W13-4917.
|
| 381 |
+
|
| 382 |
+
Stuart M Shieber, Yves Schabes, and Fernando CN Pereira. Principles and implementation of deductive parsing. The Journal of logic programming, 24(1-2):3–36, 1995.
|
| 383 |
+
|
| 384 |
+
David Smith and Jason Eisner. Dependency parsing by belief propagation. In Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, pp. 145–156. Association for Computational Linguistics, 2008. URL http://www.aclweb.org/anthology/ D08-1016.
|
| 385 |
+
|
| 386 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 3104–3112. Curran Associates, Inc., 2014. URL http://papers.nips.cc/paper/ 5346-sequence-to-sequence-learning-with-neural-networks.pdf.
|
| 387 |
+
|
| 388 |
+
Jun Suzuki, Hideki Isozaki, and Masaaki Nagata. Learning condensed feature representations from large unsupervised data sets for supervised learning. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pp. 636– 641. Association for Computational Linguistics, 2011. URL http://www.aclweb.org/ anthology/P11-2112.
|
| 389 |
+
|
| 390 |
+
Kai Sheng Tai, Richard Socher, and Christopher D. Manning. Improved semantic representations from tree-structured long short-term memory networks. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 1556–1566. Association for Computational Linguistics, 2015. doi: 10.3115/v1/P15-1150. URL http://www.aclweb.org/ anthology/P15-1150.
|
| 391 |
+
|
| 392 |
+
Robert Endre Tarjan. Finding optimum branchings. Networks, 7(1):25–35, 1977.
|
| 393 |
+
|
| 394 |
+
Ben Taskar, Vassil Chatalbashev, Daphne Koller, and Carlos Guestrin. Learning structured prediction models: A large margin approach. In Proceedings of the 22nd international conference on Machine learning, pp. 896–903. ACM, 2005.
|
| 395 |
+
|
| 396 |
+
Lucien Tesniere. \` Les el´ ements de Syntaxe structurale ´ . Editions Klincksieck, 1959.
|
| 397 |
+
|
| 398 |
+
Ke Tran and Yonatan Bisk. Inducing grammars with and for neural machine translation. In Proceedings of the 2nd Workshop on Neural Machine Translation and Generation, pp. 25–35. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/ W18-2704.
|
| 399 |
+
|
| 400 |
+
Adina Williams, Andrew Drozdov, and Samuel R Bowman. Do latent tree learning models identify meaningful structure in sentences? Transactions of the Association for Computational Linguistics, 6:253–267, 2018.
|
| 401 |
+
|
| 402 |
+
Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
|
| 403 |
+
|
| 404 |
+
Weidi Xu, Haoze Sun, Chao Deng, and Ying Tan. Variational autoencoder for semi-supervised text classification. In AAAI, pp. 3358–3364, 2017.
|
| 405 |
+
|
| 406 |
+
Pengcheng Yin, Chunting Zhou, Junxian He, and Graham Neubig. Structvae: Tree-structured latent variable models for semi-supervised semantic parsing. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 754–765. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/ P18-1070.
|
| 407 |
+
|
| 408 |
+
Kun Yu, Daisuke Kawahara, and Sadao Kurohashi. Chinese dependency parsing with large scale automatically constructed case structures. In Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008), pp. 1049–1056. Coling 2008 Organizing Committee, 2008. URL http://www.aclweb.org/anthology/C08-1132.
|
| 409 |
+
|
| 410 |
+
Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012.
|
| 411 |
+
|
| 412 |
+
Chunting Zhou and Graham Neubig. Multi-space variational encoder-decoders for semi-supervised labeled sequence transduction. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 310–320. Association for Computational Linguistics, 2017. doi: 10.18653/v1/P17-1029. URL http://www.aclweb.org/ anthology/P17-1029.
|
| 413 |
+
|
| 414 |
+
# A REPARAMETRIZATION TRICK
|
| 415 |
+
|
| 416 |
+
Sampling from a diagonal Gaussian random variable with mean vector $_ { \mathbf { \nabla } } \mathbf { m } _ { \mathbf { \nabla } }$ and variance vector $\pmb { v }$ can be re-expressed as:
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
\begin{array} { l } { e \sim \mathcal { N } ( 0 , 1 ) } \\ { z = m + v \times e } \end{array}
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
where $_ { z }$ is the sample. As such, $\mathbf { \boldsymbol { e } } \sim \mathcal { N } ( \mathbf { \boldsymbol { 0 } } , \mathbf { \boldsymbol { 1 } } )$ is an input of the neural network for which we do not need to compute partial derivatives. This technique is called the reparametrization trick (Kingma & Welling, 2013; Rezende et al., 2014).
|
| 423 |
+
|
| 424 |
+
# B GUMBEL-MAX TRICK
|
| 425 |
+
|
| 426 |
+
Sampling from a categorical distributions can be achieved through the Gumbel-Max trick (Gumbel, 1954; Maddison et al., 2014). Randomly generated Gumbel noise is added to the log-probability of every element of the sample space. Then, the sample is simply the element with maximum perturbed log-probability. Let $d \in \triangle ^ { k }$ be a random variable taking values in the corner of the unit-simplex of dimension $k$ with probability:
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
p ( d \in \triangle ^ { k } ) = \frac { \exp ( \pmb { w } ^ { \top } d ) } { \sum _ { d ^ { \prime } \in \triangle ^ { k } } \exp ( \pmb { w } ^ { \top } d ^ { \prime } ) }
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
where $\textbf { \em w }$ is a vector of weights. Sampling $d \sim p ( d )$ can be re-expressed as follows:
|
| 433 |
+
|
| 434 |
+
$$
|
| 435 |
+
\begin{array} { l } { \pmb { g } \sim \pmb { \mathcal { G } } ( 0 , 1 ) } \\ { \pmb { d } = \arg \operatorname* { m a x } ( \pmb { w } + \pmb { g } ) ^ { \top } \pmb { d } } \\ { \pmb { d } \in \triangle ^ { k } } \end{array}
|
| 436 |
+
$$
|
| 437 |
+
|
| 438 |
+
where $\mathcal { G } ( 0 , 1 )$ is the Gumbel distribution. Sampling $\mathbf { \boldsymbol { \mathscr { g } } } \sim \mathcal { G } ( 0 , 1 )$ is equivalent to setting $g _ { i } =$ $- \log ( - \log u _ { i } ) )$ where $u _ { i } \sim \mathrm { U n i f o r m } ( 0 , 1 )$ . If $\pmb { w }$ is computed by a neural network, the sampling process is outside the backpropagation path.
|
| 439 |
+
|
| 440 |
+
# C CORPORA
|
| 441 |
+
|
| 442 |
+
English We use the Stanford Dependency conversion (De Marneffe & Manning, 2008) of the Penn Treebank (Marcus et al., 1993) with the usual section split: 02-21 for training, 22 for development and 23 for testing. In order to simulate our framework under a low-resource setting, the annotation is kept for $1 0 \%$ of the training set only: a labeled sentence is the sentence which has an index (in the training set) modulo 10 equal to zero.
|
| 443 |
+
|
| 444 |
+
French We use a similar setting with the French Treebank version distributed for the SPMRL 2013 shared task and the provided train/dev/test split (Abeille et al., 2000; Seddah et al., 2013). ´
|
| 445 |
+
|
| 446 |
+
Swedish We use the Talbanken dataset (Nivre et al., 2006) which contains two written text parts: the professional prose part (P) and the high school students’ essays part (G). We drop the annotation of (G) in order to use this section as unlabeled data. We split the (P) section in labeled train/dev/test using a pseudo-randomized scheme. We follow the splitting scheme of Hall et al. (2006) but fix section 9 as development instead of $k$ -fold cross-validation. Sentence $i$ is allocated to section $i$ mod 10. Then, section 1-8 are used for training, section 9 for dev and section 0 for test.
|
| 447 |
+
|
| 448 |
+
# D HYPER-PARAMETERS
|
| 449 |
+
|
| 450 |
+
Encoder: word embeddings We concatenate trainable word embeddings of size 100 with external word embeddings.15 We use the word-dropout settings of Kiperwasser & Goldberg (2016). For English, external embeddings are pre-trained with the structured skip n-gram objective (Ling et al., 2015).16 For French and Swedish, we use the Polyglot embeddings (Al-Rfou et al., 2013).17 We stress out that no part-of-speech tag is used as input in any part of our network.
|
| 451 |
+
|
| 452 |
+
Encoder: dependency parser The dependency parser is built upon a two-stack BiLSTM with a hidden layer size of 125 (i.e. the output at each position is of size 250). Each dependency is then weighted using a single-layer perceptron with a tanh activation function. Arc label prediction rely on a similar setting, we refer to the reader to Kiperwasser & Goldberg (2016) for more information about the parser’s architecture.
|
| 453 |
+
|
| 454 |
+
Encoder: sentence embedding The sentence is encoded into a fixed size vector with a simple leftto-right LSTM with an hidden size of 100. The hidden layer at the last position of the sentence is then fed to two distinct single-layer perceptrons, with an output size of 100 followed by a piecewise tanh activation function, that computes means and standard deviations of the diagonal Gaussian distribution.
|
| 455 |
+
|
| 456 |
+
Decoder The decoder use fixed pre-trained embeddings only. The recurrent layer of the decoder is a LSTM with an hidden layer size of $1 0 0 . ~ \mathrm { M L P } ^ { \sim }$ , ${ \bf M L P } ^ { \curvearrowright }$ and ${ \bf M L P } ^ { \mathrm { O } }$ are all single-layer perceptrons with an output size of 100 and without activation function.
|
| 457 |
+
|
| 458 |
+
Training We encourage the VAE to rely on latent structures close to the targeted ones by bootstrapping the training procedure with labeled data only. In the first two epochs, we train the network with the discriminative loss only. Then, for the next two epochs, we add the supervised ELBO term (Equation 5). Finally, after the 6th epoch, we also add the unsupervised ELBO term (Equation 3). We train our network using stochastic gradient descent for 30 epochs using Adadelta (Zeiler, 2012) with default parameters as provided by the Dynet library (Neubig et al., 2017). In the semisupervised scenario, we alternate between labeled and unlabeled instances. The temperature of the PEAKED-SOFTMAX operator is fixed to $\tau = 1$ .
|
| 459 |
+
|
| 460 |
+
# E COMPARISON WITH SEMIRING PARSING
|
| 461 |
+
|
| 462 |
+
Dynamic programs for parsing have been studied as abstract algorithms that can be instantiated with different semirings (Goodman, 1999). For example, computing the weight of the best parse relies on the $\langle \mathbb { R } , \operatorname* { m a x } , + \rangle$ semiring. This semiring can be augmented with set-valued operations to retrieve the best derivation. However, a straightforward implementation would have a $\hat { \mathcal { O } } ( n ^ { 5 } )$ space complexity: for each item in the chart, we also need to store the set of arcs. Under this formalism, the backpointer trick is a method to implicitly constructs these sets and maintain the optimal $\mathcal { O } ( n ^ { 3 } )$ complexity. Our continuous relaxation replaces the max operator with a smooth surrogate and the set values with a soft-selection of sets. Unfortunately, $\langle \mathbb { R }$ , PEAKED-SOFTMAXi is not a commutative monoid, therefore the semiring analogy is not transposable.
|
| 463 |
+
|
| 464 |
+
# F DIFFERENTIABLE DYNAMIC PROGRAMMING FOR PROJECTIVEDEPENDENCY PARSING
|
| 465 |
+
|
| 466 |
+
We describe how we can embed a continuous relaxation of projective dependency parsing as a node in a neural network. During the forward pass, we are given arc weights $W$ and we compute the relaxed projective dependency tree $_ { \mathbf { T } }$ that maximize the arc-factored weight $\begin{array} { r } { \sum _ { h , m } T _ { h , m } \times \bar { W _ { h , m } } } \end{array}$ . Each output variable $T _ { h , m } \in [ 0 , 1 ]$ is a soft selection of dependency with head-word $s _ { h }$ and modifier $s _ { m }$ . During back-propagation, we are given partial derivatives of the loss with respect to each arc and we compute the ones with respect to arc weights:
|
| 467 |
+
|
| 468 |
+
$$
|
| 469 |
+
\frac { \partial \mathcal { L } } { \partial W _ { h , m } } = \sum _ { i , j } \frac { \partial \mathcal { L } } { \partial T _ { i , j } } \frac { \partial T _ { i , j } } { \partial W _ { h , m } }
|
| 470 |
+
$$
|
| 471 |
+
|
| 472 |
+
Note that the Jacobian matrix has $\mathcal { O } ( n ^ { 4 } )$ values but we do need to explicitly compute it. The space and time complexity of the forward and backward passes are both cubic, similar to Eisner’s algorithm.
|
| 473 |
+
|
| 474 |
+
# F.1 FORWARD PASS
|
| 475 |
+
|
| 476 |
+
The forward pass is a two step algorithm:
|
| 477 |
+
|
| 478 |
+
1. First, we compute the cumulative weight of each item and store soft backpointers to keep track of contribution of antecedents. This step is commonly called to inside algorithm. 2. Then, we compute the contribution of each arc thanks to the backpointers. This step is somewhat similar to the arg max reconstruction algorithm.
|
| 479 |
+
|
| 480 |
+
The outline of the algorithm is given in Algorithm 3.
|
| 481 |
+
|
| 482 |
+
The inside algorithm computes the following variables:
|
| 483 |
+
|
| 484 |
+
• $a [ i \triangleright j ] [ k ]$ is the weight of item $[ i \triangleright j ]$ if we split its antecedent at $k$ .
|
| 485 |
+
• $b [ i \triangleright j ] [ k ]$ is the soft backpointer to antecedents of item $[ i \triangleright j ]$ with split at $k$ .
|
| 486 |
+
• $c [ i \triangleright j ]$ is the cumulative weight of item $[ i \triangleright j ]$ .
|
| 487 |
+
|
| 488 |
+
and similarly for the other chart values. The algorithm is given in Algorithm 5.
|
| 489 |
+
|
| 490 |
+
The backpointer reconstruction algorithm compute the contribution of each arc. We follow backpointers in reverse order in order to compute the contribution of each item $\tilde { c } [ i \triangleright j ]$ . The algorithm is given in Algorithm 6.
|
| 491 |
+
|
| 492 |
+
# F.2 BACKWARD PASS
|
| 493 |
+
|
| 494 |
+
During the backward pass, we compute the partial derivatives of variables using the chain rule, i.e. in the reverse order of their creation: we first run backpropagation through the backpointer reconstruction algorithm and then through the inside algorithm (see Algorithm 4). Given the partial derivatives in Figure 3, backpropagation through the backpointer reconstruction algorithm is straighforward to compute, see Algorithm 7. Partial derivatives of the inside algorithm’s variables are given in Figure 4.
|
| 495 |
+
|
| 496 |
+
<table><tr><td>Algorithm3Forward algorithm</td></tr><tr><td>function RELAXED-EISNER(</td></tr><tr><td>INSIDE()</td></tr><tr><td>BACKPTRO</td></tr><tr><td></td></tr><tr><td>fori=O...ndo for j=1...n do</td></tr><tr><td>if i<jthen</td></tr><tr><td>Ti,j←ci口j]</td></tr><tr><td>else if j<ithen Ti,j←i□j</td></tr></table>
|
| 497 |
+
|
| 498 |
+
<table><tr><td>Algorithm4Backward algorithm</td></tr><tr><td>function BACKPROP-RELAXED-EISNER()</td></tr><tr><td>BACKPROP-BACKPTR()</td></tr><tr><td>BACKPROP-INSIDE(</td></tr><tr><td></td></tr><tr><td>fori=O...ndo for j=1...n do</td></tr><tr><td>ifi<jthen</td></tr><tr><td>8L 8L ↑</td></tr><tr><td>Wi,j dc[iDj else if j<ithen</td></tr><tr><td>Algorithm 5 Inside algorithm - Forward pass</td></tr><tr><td>function INSIDE(n)</td></tr><tr><td>fori←O...ndo</td></tr><tr><td>c[𝑖△i]←O,c[i△i]←O,c[i△i]←O,c[ii]←0</td></tr><tr><td>forl←1...ndo</td></tr><tr><td>fori←O...n-ldo j←i+l</td></tr><tr><td>for k=i...j-1do</td></tr><tr><td>a[𝑖j][k]←c[𝑖△k]+c[k+1△j]</td></tr><tr><td>b[ij] ← softmax(a[i j])</td></tr><tr><td>c[iDj]←Wi,j +∑k=i.j-1b[iDj][]× a[ Dj][]</td></tr><tr><td>fork=i...j-1do</td></tr><tr><td>a[ij][k]←c[𝑖△k]+c[k+1△j] b[ij] ← softmax(a[ijl)</td></tr><tr><td>c[i□j]←Wj,i+∑k=i.j-1b[i △j][k] × a[i j][k]</td></tr><tr><td>for k=i+1...j do</td></tr><tr><td>a[i△j][k]←c[𝑖△k]+c[k△j]</td></tr><tr><td>b[i j] ← softmax(a[i jl)</td></tr><tr><td>c[i△j]←∑k=i+1.,jb[𝑖△j][k] × a[i△ j][k]</td></tr><tr><td></td></tr><tr><td>fork=i...j-1do</td></tr><tr><td>a[i △j][k]←c[𝑖△k]+c[kj] b[i △ j] ← softmax(a[i △ jl)</td></tr><tr><td>c[i△j]←∑k=i..j-1b[i △j][k]×a[i △j[k]</td></tr><tr><td>Algorithm 6 Backpointer reconstruction algorithm - Forward pass</td></tr><tr><td>function BACKPTR()</td></tr><tr><td>fori=O...ndo</td></tr><tr><td>forj=i...n do c[𝑖□j]←0,c[𝑖△j]←0,c[𝑖△j]←0,c[𝑖△j]←0</td></tr><tr><td>c[0△n]←1</td></tr><tr><td>forl=n...1do</td></tr><tr><td>fori=O...n-ldo</td></tr><tr><td>j←i+l</td></tr><tr><td>for k=i+1...j do</td></tr><tr><td>[ik][i△j]×b[i△j[]</td></tr><tr><td>[k△j]↑c[i△j]×b[i△j][]</td></tr><tr><td>for k=i...j-1 do</td></tr><tr><td>c[i△k]←c[i△j]×b[i△j][k]</td></tr><tr><td>[k△j]↑[i△j]×b[i△j[k]</td></tr><tr><td></td></tr><tr><td>for k=i...j-1 do [i△k]←[ij]×b[ij][k]</td></tr><tr><td>c[k+1△j]↑c[ij]×6[ij][k]</td></tr><tr><td></td></tr><tr><td>for k =i...j-1 do</td></tr><tr><td>[i△k]←[ij]×b[ij][k]</td></tr><tr><td>[k+1△j]←[ij]×b[𝑖j][]</td></tr></table>
|
| 499 |
+
|
| 500 |
+
$$
|
| 501 |
+
\begin{array} { r l r l r l r l } & { \langle \Psi | \le K \le \xi \ge \frac { 1 } { 2 } ; } & & { \frac { \partial \langle \Psi | \le R \vec { \xi } \perp \vec { K } \_ j \big | } { \partial \xi } = b | \le \ \sqrt { \xi } , } & & { \forall \xi \le \ k \le \ j : } & & { \frac { \partial \langle \Psi | \le R \vec { \xi } \perp \vec { K } \_ j \big | } { \partial \xi } = c | \mathrm { t s } \cdot \ b | \le \vec { \xi } \big | } \\ & { \langle \Psi | \le K \le \xi \ge \frac { 1 } { 2 } ; } & & { \frac { \partial \langle \Psi | \cdot K \vec { \xi } \_ j \big | } { \partial \xi } - b | \sqrt { \xi } \big | \sqrt { \xi } \quad , } & & { \forall \xi \le \ k \le \ j : } & & { \frac { \partial \langle \Psi | \cdot K \vec { \xi } \_ j \big | } { \partial \xi } \big | \sqrt { \xi } \big | \sqrt { \xi } \big | \sqrt { \xi } \big | \sqrt { \xi } \big | } \\ & { \langle \Psi | \le K \le \xi \le \frac { 1 } { 2 } ; } & & { \frac { \partial \langle \Psi | \le R \vec { \xi } \_ j \big | } { \partial \xi } \big | \frac { 1 } { \partial \xi } \big | \frac { 1 } { \partial \xi } \big | \sqrt { \xi } \big | \sqrt { \xi } \big | \sqrt { \xi } \big | \sqrt { \xi } \big | \xi \big | \xi \big | \xi \big | , } & & { \forall \xi \le \ k \le \ j \ } & & { \frac { \partial \langle \Psi | \cdot K \vec { \xi } \_ j \big | } { \partial \xi } \big | \sqrt { \xi } \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | } \\ & { \langle \Psi | \le K \le \xi \le \frac { 1 } { 2 } ; } & & \frac { \partial \langle \Psi | \cdot K \vec { \xi } \_ j \big | } { \partial \xi } \big | \frac { 1 } { \partial \xi } \big | \frac { 1 } { \partial \xi } \big | \sqrt { \xi } \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \xi \xi \xi \xi \xi \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \big | \xi \end{array}
|
| 502 |
+
$$
|
| 503 |
+
|
| 504 |
+
<table><tr><td>Algorithm 7 Backpointer reconstruction algorithm - Backward pass</td><td></td></tr><tr><td>function BACKPROP-BACKPTR(n) for l=1...ndo</td><td></td></tr><tr><td>fori=O...n-ldo</td><td></td></tr><tr><td>j↑i+l</td><td></td></tr><tr><td>aL aL</td><td>3L 8 ↑ 0, ↑ 0, ↑0</td></tr><tr><td>0, dj dc[ij] fork=i...j-1do</td><td>i dcij</td></tr><tr><td>aL 仁 aL</td><td>6ij][]+ aL 6[ij][]</td></tr><tr><td>dii d[iK] 8L aL ↑</td><td>dc[k+14j] ci□j]+ 8 ci□j</td></tr><tr><td>6[ij][] i]</td><td>ac[k+14j]</td></tr><tr><td>fork=i...j-1do</td><td></td></tr><tr><td>8L 土 aL</td><td>6[i□j][]+ aL</td></tr><tr><td>Dj] aL 8L ↑</td><td>k] dc[k+1j] 8L</td></tr><tr><td>6[j][]</td><td>iDj+ C[iDj] ] dc[k+14j]</td></tr><tr><td></td><td></td></tr><tr><td>for=i...j-1do aL 仁 8L</td><td></td></tr><tr><td>diAj ac[ik]</td><td>6[i△j][]+ aL 6[i△j][] kj</td></tr><tr><td>8 ab[ij][k] 个</td><td>a i△j]+ 8 i△j]</td></tr><tr><td></td><td>dciZk] ci</td></tr><tr><td></td><td></td></tr><tr><td>for=i+1...j do</td><td></td></tr><tr><td>aL ↑</td><td>aL aL</td></tr><tr><td>j]</td><td>bi△j][k]+ 6[ij][]</td></tr><tr><td></td><td>dc[ik] d[i]</td></tr><tr><td>aL</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>aL cij]</td></tr><tr><td></td><td>ij+ 8</td></tr><tr><td></td><td></td></tr><tr><td>6[ij][]</td><td>ik]</td></tr><tr><td></td><td>dkj</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>
|
| 505 |
+
|
| 506 |
+
$$
|
| 507 |
+
\begin{array} { r l r l } & { \mathrm { ~ w h e r e a g e ~ \_ t h ~ } } & { \frac { \mathrm { S u b s i n g ~ i n g ~ 1 } } { \mathrm { S u b s i n g ~ 1 } } } & { \quad \forall i \in \Sigma \setminus \Omega _ { \theta } } & { \frac { \mathrm { S u b s i n g ~ 1 } } { \mathrm { S u b s i n g ~ 1 } } } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \times \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \times \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \times \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \end{array}
|
| 508 |
+
$$
|
| 509 |
+
|
| 510 |
+
Algorithm 8 Inside algorithm - Backward pass
|
| 511 |
+
|
| 512 |
+
function BACKPROP-INSIDE(n)
|
| 513 |
+
|
| 514 |
+
$$
|
| 515 |
+
\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial c [ i \mathcal { L } j ] } 0 , \frac { \partial \mathcal { L } } { \partial c [ i \triangleright j ] } 0 , \frac { \partial \mathcal { L } } { \partial c [ i \mathcal { L } j ] } 0 , \frac { \partial \mathcal { L } } { \partial c [ i \triangleright j ] } 0 } \end{array}
|
| 516 |
+
$$
|
| 517 |
+
|
| 518 |
+
do $\triangleright$ Backpropagation through the ”inside” algorithm
|
| 519 |
+
$i = 0 \dots n - l$ do
|
| 520 |
+
$j \gets i + l$
|
| 521 |
+
for $k = i \dots j - 1$ $\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial b [ i \mathcal { A } j ] [ k ] } \^ { } - \frac { \partial \mathcal { L } } { \partial c [ i \mathcal { A } j ] } a [ i \mathcal { A } j ] [ k ] } \end{array}$ $\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial a [ i \mathcal { A } j ] [ k ] } \frac { \partial \mathcal { L } } { \partial c [ i \mathcal { A } j ] } b [ i \mathcal { A } j ] [ k ] } \end{array}$
|
| 522 |
+
s = Pk=i...j−1 ∂L∂b[i j][k ] b[i j][k] . Backpropagate through the softmax function
|
| 523 |
+
for k = i . . . j − 1 do ∂L∂a[i j][k] ← b[i j][k] ∂L∂b[i j][k] − s
|
| 524 |
+
for $k = i \dots j - 1$ do ∂L +← ∂L ∂c[i k] ∂a[i j][k] $\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial c [ k \varTheta _ { j } ] } \stackrel { + } { } \frac { \partial \mathcal { L } } { \partial a [ i \varTheta _ { j } ] [ k ] } } \end{array}$
|
| 525 |
+
for $k = i + 1 \ldots j$ do∂L $\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial b [ i \triangleright j ] [ k ] } \frac { \partial \mathcal { L } } { \partial c [ i \triangleright j ] } a [ i \triangleright j ] [ k ] } \end{array}$ $\begin{array} { r } { \frac { \partial \mathcal { L } } { a [ i \triangleright j ] [ k ] } \frac { \partial \mathcal { L } } { \partial c [ i \triangleright j ] } { \partial b [ i \triangleright j ] [ k ] } } \end{array}$
|
| 526 |
+
s = Pk=i+1...j ∂L∂b[i j][k] b . Backpropagate through the softmax function
|
| 527 |
+
for $k = i + 1 \dots j$ do
|
| 528 |
+
for $\begin{array} { r l } & { \frac { \partial \mathcal { L } } { \partial a [ i \triangleright j ] [ k ] } b [ i \triangleright j ] [ k ] ( \frac { \partial \mathcal { L } } { \partial b [ i \triangleright j ] [ k ] } - s ) } \\ & { k = i + 1 \ldots j \bf { d o } } \\ & { \frac { \partial \mathcal { L } } { \partial c [ i \triangleright k ] } \frac { \partial \mathcal { L } } { \partial a [ i \triangleright j ] [ k ] } } \\ & { \frac { \partial \mathcal { L } } { \partial c [ k \triangleright j ] } \frac { \partial \mathcal { L } } { \partial a [ i \triangleright j ] [ k ] } } \end{array}$ $\begin{array} { r l } & { \begin{array} { r l } & { \mathrm { f o r ~ } k = i , \ldots , j - 1 \mathrm { ~ d o } } \\ & { \frac { \partial b ( k ) } { \partial a ( k ^ { 2 } ) [ k ] } \in - \frac { \partial C } { \partial ( k ^ { 2 } ) [ k ] } a [ i \coth ] } \\ & { \frac { \partial C } { \partial a ( k ^ { 2 } ) [ k ] } \in - \frac { \partial C } { \partial ( k ^ { 2 } ) [ k ] } b [ i \coth ] } \end{array} } \\ & { \begin{array} { r l } & { \mathrm { S ~ a c k ~ } } \\ & { \mathrm { f o r ~ } k = i , \ldots , j - 1 \frac { \partial C } { \partial ( k ^ { 2 } ) [ k ] } b [ i \coth ] } \\ & { \mathrm { f o r ~ } k = i , \ldots , j - 1 \mathrm { ~ d o } } \\ & { \frac { \partial C } { \partial a ( k ^ { 2 } ) [ k ] } b [ i \coth ] [ k ] ( \frac { \partial C } { \partial b [ k ^ { 2 } ] [ k ] } - s ) } \end{array} } \\ & { \begin{array} { r l } & { \mathrm { f o r ~ } k = i , \ldots , j - 1 \mathrm { ~ d o } } \\ & { \frac { \partial C } { \partial a ( k ^ { 2 } ) [ k ] } \in - b [ i \coth ] [ k ] ( \frac { \partial C } { \partial ( k ^ { 2 } ) [ k ] } - s ) } \end{array} } \\ & { \begin{array} { r l } & { \mathrm { f o r ~ } k = i , \ldots , j - 1 \mathrm { ~ d o } } \\ & { \frac { \partial C } { \partial a ( k ^ { 2 } ) [ k ] } \neq \frac { \partial C } { \partial a ( k ^ { 2 } ) [ k ] } } \\ & { \frac { \partial C } { \partial c [ k \coth ] } \neq \frac { \partial C } { \partial a ( k ^ { 2 } ) [ k ] } } \end{array} } \end{array}$
|
| 529 |
+
for $k = i \dots j - 1$ do $\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial b [ i \sum j ] [ k ] } \frac { \partial \mathcal { L } } { \partial c [ i \sum j ] } a [ i \triangleright j ] [ k ] } \end{array}$ ← ∂L∂c[i j] a[i j][k] $\begin{array} { r } { \frac { \partial \mathcal { L } } { \partial a [ i \sum j ] [ k ] } \frac { \partial \mathcal { L } } { \partial c [ i \sum j ] } b [ i \triangleright j ] [ k ] } \end{array}$
|
| 530 |
+
$\begin{array} { r } { s = \sum _ { k = i \dots j - 1 } \frac { \partial \mathcal { L } } { \partial b [ i \sum j ] [ k ] } b [ i \triangleright j ] [ k ] } \end{array}$ . Backpropagate through the softmax function
|
| 531 |
+
for k = i . . . j − 1 do ∂L∂a[i j][k] ← b[i j][k] ∂L∂b[i j][k] − s
|
| 532 |
+
for k = i . . . j − 1 do ∂L +← ∂L ∂c[i k]∂L ∂a[i j][k]+ ∂L 24 ∂c[k+1 j] ∂a[i j][k]
|
parse/train/BJlgNh0qKQ/BJlgNh0qKQ_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlgNh0qKQ/BJlgNh0qKQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlgNh0qKQ/BJlgNh0qKQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bkl086VYvH/Bkl086VYvH.md
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FEATURE-MAP-LEVEL ONLINE ADVERSARIAL KNOWLEDGE DISTILLATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Feature maps contain rich information about image intensity and spatial correlation. However, previous online knowledge distillation methods only utilize the class probabilities. Thus in this paper, we propose an online knowledge distillation method that transfers not only the knowledge of the class probabilities but also that of the feature map using the adversarial training framework. We train multiple networks simultaneously by employing discriminators to distinguish the feature map distributions of different networks. Each network has its corresponding discriminator which discriminates the feature map from its own as fake while classifying that of the other network as real. By training a network to fool the corresponding discriminator, it can learn the other network’s feature map distribution. Discriminators and networks are trained concurrently in a minimax twoplayer game. Also, we propose a novel cyclic learning scheme for training more than two networks together. We have applied our method to various network architectures on the classification task and discovered a significant improvement of performance especially in the case of training a pair of a small network and a large one.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
With the advent of Alexnet (Krizhevsky et al., 2012), deep convolution neural networks have achieved remarkable success in a variety of computer vision tasks. However, high-performance of deep neural network is often gained by increasing the depth or the width of a network. Deep and wide networks cost a large number of computation as well as memory storage which is not suitable for a resource-limited environment such as mobile or embedded systems. To overcome this issue, many researches have been conducted to develop smaller but accurate neural networks. Some of the well-known methods in this line of research are parameter quantization or binarization (Rastegari et al., 2016), pruning (Li et al., 2016) and knowledge distillation (KD) (Hinton et al., 2015).
|
| 12 |
+
|
| 13 |
+
KD has been an active area of research as a solution to improve the performance of a light-weight network by transferring the knowledge of a large pre-trained network (or an ensemble of small networks) as a teacher network. KD sets the teacher network’s class probabilities as a target which a small student network tries to mimic. By aligning the student’s predictions to those of the teacher, the student can improve its performance. Recently, some studies have shown that rather than using a pretrained teacher, simultaneously training networks to learn from each other in a peer-teaching manner is also possible. This approach is called online distillation. Deep mutual learning (DML) (Zhang et al., 2018) and on-the-fly native ensemble (ONE) (Lan et al., 2018) are the representative online distillation methods that show appealing results in the image classification tasks. Conventional distillation method requires pre-training a powerful teacher network and performs an one-way transfer to a relatively small and untrained student network. On the other hand, in online mutual distillation, there is no specific teacher-student role. All the student networks learn simultaneously by teaching each other from the start of training. It trains with the conventional cross-entropy loss from the ground truth label along with the mimicry loss to learn from its peers. Networks trained in such an online distillation way achieve results superior not only to the networks trained with the cross-entropy loss alone but also to those trained in conventional offline distillation manner from a pre-trained teacher network.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: The concept of online Adversarial Feature map Distillation (AFD) Each point represents a feature map for the corresponding input denoted by different colors. The thin line arrow indicates the evolvement of feature map data points as iteration goes on and the broader arrow indicates the way each method compares the feature maps from different networks. (a) In direct feature map alignment, networks are trained such that the distance between each pair of points with the same color is minimized. (b) In AFD, the discriminators contain information on feature map distributions and thus the networks are trained such that the distributions match. (best viewed in color)
|
| 17 |
+
|
| 18 |
+
However, aforementioned online distillation methods make use of only the logit information. While the logit contains the probabilistic information over classes, the feature map, the output of convolution layer, has more meaningful and abundant feature information on image intensity and spatial correlation. In offline distillation which utilizes a pre-trained model as a teacher network, many methods such as FitNet (Romero et al., 2014), attention transfer (AT) (Zagoruyko & Komodakis, 2016a) and factor transfer (FT) (Kim et al., 2018) make use of this intermediate feature representation as a target to learn for the student network, but in online distillation, to the best of our knowledge, no feature map-based knowledge distillation method has been proposed.
|
| 19 |
+
|
| 20 |
+
This is due to some challenges. Unlike the offline methods that have a clear target to mimic, there is no static target to follow in an online method. At every training iteration, the feature maps of the co-trained network change, thus in online feature map-level distillation, the problem turns into mimicking the moving target properly. While each node of the logit is confined to represent its assigned class probability which does not change drastically over iterations, at the feature map-level, much more flexibility comes into play, which makes the problem more challenging. Therefore, the direct aligning method such as using L1 or L2 distance is not suitable for online mutual feature map distillation because it updates the network parameters to generate a feature map that tries to mimic the current output feature map of the other network. In other words, the direct alignment method only tries to minimize the distance between the two feature map points (one for each network), hence it ignores the distributional difference between the two feature maps (Fig. 1(a)).
|
| 21 |
+
|
| 22 |
+
To alleviate this problem, in this paper, we propose a novel online distillation method that transfers the knowledge of feature maps adversarially as well as a cyclic learning framework for training more than two networks simultaneously. Unlike the direct aligning method, our adversarial distillation method enables a network to learn the overall feature map distribution of the co-trained network (Fig. 1(b)). Since the discriminator is trained to distinguish the difference between the networks’ feature map distributions (containing the history of feature maps for different input images) at every training iteration, by fooling the discriminator, the network learns the co-trained network’s changing feature map distribution. Exchanging the knowledge of feature map distribution facilitates the networks to converge to a better feature map manifold that generalizes better and yields more accurate results.
|
| 23 |
+
|
| 24 |
+
Our method consists of two major losses: 1) logit-based loss and 2) feature map-based loss. Logitbased loss is defined by two different loss terms which are conventional cross-entropy (CE) loss and the mutual distillation loss using the Kullback-Leibler divergence (KLD). Our newly proposed feature map-based loss is to distill the feature map indirectly via discriminators. We use the feature map from the last convolution layer since deeper convolution layer generates more meaningful features with a high-level abstraction (Kim et al., 2018). The adversarial training scheme of generative adversarial networks (GAN) (Goodfellow et al., 2014) is utilized to transfer the knowledge at feature map-level.
|
| 25 |
+
|
| 26 |
+
The contributions of this paper can be summarized as follows: 1) we propose an online knowledge distillation method that utilizes not only the logit but also the feature map from the convolution layer. 2) Our method transfers the knowledge of feature maps not by directly aligning them using
|
| 27 |
+
|
| 28 |
+
the distance loss but by learning their distributions using the adversarial training via discriminators.
|
| 29 |
+
3) We propose a novel cyclic learning scheme for training more than two networks simultaneously.
|
| 30 |
+
|
| 31 |
+
# 2 RELATED WORK
|
| 32 |
+
|
| 33 |
+
The idea of model compression by transferring the knowledge of a high performing model to a smaller model was originally proposed by Bucilua et al. (2006). Then in recent years, this research ˇ area got invigorated due to the work of knowledge distillation (KD) by Hinton et al. (2015). The main contribution of KD is to use the softened logit of pre-trained teacher network that has higher entropy as an extra supervision to train a student network. KD trains a compact student network to learn not only by the conventional CE loss subjected to the labeled data but also by the final outputs of the teacher network. While KD only utilizes the logit, method such as FitNet (Romero et al., 2014), AT (Zagoruyko & Komodakis, 2016a), FT (Kim et al., 2018) and KTAN (Liu et al., 2018) use the intermediate feature representation to transfer the knowledge of a teacher network.
|
| 34 |
+
|
| 35 |
+
Online Knowledge Distillation: Conventional offline methods require training a teacher model in advance while online methods do not require any pre-trained model. Instead, the networks teach each other mutually by sharing their knowledge throughout the training process. Some examples of recent online methods are DML (Zhang et al., 2018) and ONE (Lan et al., 2018) which demonstrate promising results. DML simply applies KD losses mutually, treating each other as teachers, and it achieves results that is even better than the offline KD method. The drawback of DML is that it lacks an appropriate teacher role, hence provides only limited information to each network. ONE pointed out this defect of DML. Rather than mutually distilling between the networks, ONE generates a gated ensemble logit of the training networks and uses it as a target to align for each network. ONE tries to create a powerful teacher logit that can provide more generalized information. The flaw of ONE is that it can not train different network architectures at the same time due to its architecture of sharing the low-level layers for the gating module. The common limitation of existing online methods is that they are dependent only on the logit and do not make any use of the feature map information. Considering that KD loss term is only applicable to the classification task, transferring knowledge at feature map-level can enlarge the applicability to other tasks. Therefore, our method proposes a distillation method that utilizes not only the logit but also the feature map via adversarial training, moreover, our method can be applied in case where the co-trained networks have different architectures.
|
| 36 |
+
|
| 37 |
+
Generative Adversarial Network (GAN): GAN (Goodfellow et al., 2014) is a generative model framework that is proposed with an adversarial training scheme, using a generator network $G$ and a discriminator network $D$ . $G$ learns to generate the real data distribution while $D$ is trained to distinguish the real samples of the dataset from the fake results generated by $G$ . The goal of $G$ is to trick $D$ to make a mistake of determining the fake results as the real samples. Though it was initially proposed for generative models, its adversarial training scheme is not limited to data generation. Adversarial training has been adapted to various tasks such as image translation (Isola et al., 2017; Zhu et al., 2017), captioning (Dai et al., 2017), semi-supervised learning (Miyato et al., 2016; Springenberg, 2015), reinforcement learning (Pfau & Vinyals, 2016), and many others. In this paper, we utilize GAN’s adversarial training strategy to transfer the knowledge at feature map-level in an online manner. The networks learn the other networks’ feature map distributions by trying to deceive the discriminators while the discriminators are trained to distinguish the different distributions of each network.
|
| 38 |
+
|
| 39 |
+
# 3 PROPOSED METHOD
|
| 40 |
+
|
| 41 |
+
In this section, we describe the overall process of our proposed Online Adversarial Feature map Distillation (AFD). As can be seen in Figure 2, when training two different networks, $\Theta _ { 1 }$ and $\Theta _ { 2 }$ , in an online manner, we employ two discriminators, $D _ { 1 }$ and $D _ { 2 }$ . We train $D _ { 1 }$ such that the feature map of $\Theta _ { 2 }$ is regarded as a real and that of $\Theta _ { 1 }$ is classified as a fake and do vice versa for discriminator $D _ { 2 }$ . Then, each network $\Theta _ { 1 }$ and $\Theta _ { 2 }$ are trained to fool its corresponding discriminator so that it can generate a feature map that mimics the other network’s feature map. Throughout this adversarial training, each network learns the feature map distribution of the other network. By exploiting both logit-based distillation loss and feature map-based adversarial loss together, we could observe a significant improvement of performance in various pairs of network architectures especially when training small and large networks together. Also we introduce a cyclic learning scheme for training more than two networks simultaneously. It reduces the number of required discriminators from $2 \times _ { 2 } C _ { K }$ (when employing discriminators bidirectionally between every network pairs.) to $K$ where $K$ is the number of networks participating. This cyclic learning framework not only requires less computation than the bidirectional way but also achieves better results compared to other online training schemes for multiple networks.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 2: Overall schematic of online adversarial feature map distillation (AFD). At feature maplevel, each network is trained to deceive the corresponding discriminator so that it can mimic the other network’s feature map distribution. While at logit-level, KL loss to learn the peer network’s logit is applied as well as the conventional CE loss.
|
| 45 |
+
|
| 46 |
+
First, we explain the conventional mutual knowledge distillation method conducted among the networks at the logit-level. Then we introduce our novel online feature map distillation method using the adversarial training scheme in addition to the cyclic learning framework for training more than two networks at the same time.
|
| 47 |
+
|
| 48 |
+
# 3.1 LOGIT-BASED MUTUAL KNOWLEDGE DISTILLATION
|
| 49 |
+
|
| 50 |
+
We use two loss terms for logit-based learning, one is the conventional cross-entropy(CE) loss and the other is mutual distillation loss between networks based on Kullback Leibler(KL) divergence. We formulate our proposed method assuming training two networks. Training scheme for more than two networks will be explained in Sec 3.3. Below is the overall logit-based loss for two networks:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\begin{array} { r l } & { \mathcal { L } _ { l o g i t } ^ { 1 } = \mathcal { L } _ { c e } ( y , \sigma ( z _ { 1 } ) ) + T ^ { 2 } \times \mathcal { L } _ { k l } ( \sigma ( z _ { 2 } / T ) , \sigma ( z _ { 1 } / T ) ) } \\ & { \mathcal { L } _ { l o g i t } ^ { 2 } = \mathcal { L } _ { c e } ( y , \sigma ( z _ { 2 } ) ) + T ^ { 2 } \times \mathcal { L } _ { k l } ( \sigma ( z _ { 1 } / T ) , \sigma ( z _ { 2 } / T ) ) . } \end{array}
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
Here, $\sigma ( \cdot )$ refers to softmax function and $z \in \mathbb { R } ^ { C }$ is the logit produced from a network for $C$ - class classification problem. The temperature term $T$ is used to control the level of smoothness in probabilities. As the temperature term $T$ goes up, it creates a more softened probability distribution. We use $T = 3$ for every experiment. $\mathcal { L } _ { c e }$ is the CE loss between the ground truth label $y$ and the softmax output $\sigma ( z )$ that is commonly used in image classification. $\mathcal { L } _ { k l }$ is the KL loss between the softened logit of each network. We multiply the KL loss term with $T ^ { 2 }$ because the gradients produced by the soft targets are scaled by $1 / \dot { T } ^ { 2 }$ . While the CE loss is between the correct labels and the outputs of the model, the KL loss is the KL distance between the outputs of two training networks. The KL loss provides an extra information from the peer network so that the network can improve its generalization performance. The difference with DML is that while DML updates asynchronously which means that it updates one network first and then the other network, our AFD updates the networks synchronously, not alternatingly. The CE loss trains the networks to predict the correct truth label while the mutual distillation loss tries to match the outputs of the peer-networks, enabling the networks to share the knowledge at logit-level.
|
| 57 |
+
|
| 58 |
+
# .2 FEATURE MAP-BASED LEARNING VIA ADVERSARIAL TRAINING
|
| 59 |
+
|
| 60 |
+
Our AFD uses adversarial training to transfer knowledge at feature map-level. We formulate our adversarial feature map distillation for two networks which will be extended for more networks later. We divide a network into two parts, one is the feature extractor part that generates a feature map and the other is the classifier part that transforms the feature map into a logit. Each network also has a corresponding discriminator which distinguishes different feature map distributions. The architecture of the discriminator is simply a series of Conv-Batch Normalization-Leaky ReLU-Conv-Sigmoid. It takes a feature map of the last layer and it reduces the spatial size and the number of channel of the feature map as it goes through the convolution operation so that it can produce a single scalar value. Then we apply the sigmoid function of the value to normalize it between 0 and 1.
|
| 61 |
+
|
| 62 |
+
We utilize the feature extractor part to enable feature map-level distillation. For the convenience of mathematical notation, we name the feature extractor part as $G _ { k }$ and its discriminator as $D _ { k }$ , $k$ indicates the network number. As depicted in Figure 2, each network has to fool its discriminator to mimic the peer network’s feature map and the discriminator has to discriminate from which network the feature map is originated. Following LSGAN (Mao et al., 2017), our overall adversarial loss for discriminator and the feature extractor can be written as below:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\begin{array} { r l } & { \mathcal { L } _ { D _ { 1 } } = [ 1 - D _ { 1 } ( G _ { 2 } ( x ) ) ] ^ { 2 } + [ D _ { 1 } ( G _ { 1 } ( x ) ) ] ^ { 2 } } \\ & { } \\ & { \mathcal { L } _ { G _ { 1 } } = [ 1 - D _ { 1 } ( G _ { 1 } ( x ) ) ] ^ { 2 } . } \end{array}
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
The feature extractors $G _ { 1 }$ and $G _ { 2 }$ take input $x$ and generate feature maps. The discriminator $D _ { 1 }$ takes a feature map and yields a scalar between 0 (fake) and 1 (real). It is trained to output 1 if the feature map came from the co-trained network (in this case, $G _ { 2 }$ ) or 0 if the feature map is produced from the network it belongs to ( $G _ { 1 }$ in this case). The goal of $D _ { 1 }$ is to minimize the discriminator loss term $\mathcal { L } _ { D 1 }$ by correctly distinguishing the two different feature map distributions while $G _ { 1 }$ ’s goal is to minimize the loss term ${ \mathcal L } _ { G _ { 1 } }$ by fooling $D _ { 1 }$ to make mistake of determining $G _ { 1 }$ ’s feature map as real and yield 1. Each training network’s object is to minimize $\mathcal { L } _ { G _ { k } }$ to mimic the peer network’s feature map distribution. This adversarial scheme works exactly the same by changing the role of two networks.
|
| 69 |
+
|
| 70 |
+
In case where the two networks’ feature map outputs have different channel sizes, for example a pair like (WRN-16-2, WRN-16-4) (Zagoruyko & Komodakis, 2016b), we use a transfer layer that is composed of a convolution layer, a batch normalization and a ReLU which converts the number of channels to that of peer network. The above loss terms change as ${ \mathcal { L } } _ { D _ { 1 } } = [ 1 - D _ { 1 } ( T _ { 2 } ( G _ { 2 } ( x ) ) ) ] ^ { 2 } +$ $[ D _ { 1 } ( T _ { 1 } ( G _ { 1 } ( x ) ) ) ] ^ { 2 }$ and $\mathcal { L } _ { G _ { 1 } } = [ 1 - D _ { 1 } ( T _ { 1 } ( G _ { 1 } ( x ) ) ) ] ^ { 2 }$ when using the transfer layer $T _ { k }$ .
|
| 71 |
+
|
| 72 |
+
Optimization: Combining both logit-based loss and the adversarial feature map-based loss, the overall loss for each network $\Theta _ { 1 }$ and $\Theta _ { 2 }$ are as follows:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\mathcal { L } _ { \Theta _ { 1 } } = \mathcal { L } _ { l o g i t } ^ { 1 } + \mathcal { L } _ { G _ { 1 } } , \qquad \mathcal { L } _ { \Theta _ { 2 } } = \mathcal { L } _ { l o g i t } ^ { 2 } + \mathcal { L } _ { G _ { 2 } }
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
However, the logit-based loss term by the same optimizer. In fact, they $\mathcal { L } _ { l o g i t } ^ { k }$ and the feature map-based loss term ptimized alternatingly in a same min $\mathcal { L } _ { G _ { k } }$ are not optimizedch. At every minibatch iteration, we infer an image into a model and it computes a logit and a feature map. Then we calculate the two loss terms and optimize the networks based on the two losses separately, meaning that we update the parameters by the logit-based loss once and then update again by the feature map-based loss. The reason we optimize separately for each loss term is because they use different learning rates. The adversarial loss requires much slower learning rate thus if we use the same optimizer with the same learning rate, the networks would not be optimized. Note that we do not infer for each loss term, inference is conducted only once, only the optimization is conducted twice, one for each loss term.
|
| 79 |
+
|
| 80 |
+
# 3.3 CYCLIC LEARNING FRAMEWORK
|
| 81 |
+
|
| 82 |
+
Our method proposes a novel cyclic peer-learning scheme for training more than two networks simultaneously. As can be seen in Figure 3, each network transfers its knowledge to its next peer network in an one-way cyclic manner. If we train $K$ number of networks together, each network distills its knowledge to its next network except the last network transfers its knowledge to the first network, creating a cyclic knowledge transfer flow as $1 \to 2 , 2 \to 3 , \cdots , ( K - 1 ) \to K , K \to 1$ . The main contribution of using this cyclic learning framework is to avoid employing too many number of discriminators. If we apply our adversarial loss for every pair of networks, it would demand two times the amount of every possible pair of $K$ networks which would cost a lot of computation. Also in Sec 4.5, we empirically show that our cyclic training scheme is better than other online methods’ training scheme for multiple networks.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 3: Schematic of cyclic-learning framework for training 3 networks simultaneously.
|
| 86 |
+
|
| 87 |
+
# 4 EXPERIMENT
|
| 88 |
+
|
| 89 |
+
In this section, to show the adequacy of our method, we first present comparison experiment with distance method and ablation study to analyze our method. Then we compare our approach with existing online knowledge distillation methods under different settings. First of all, we demonstrate results on using the same sub-network architectures in Sec 4.3. Then, we apply our method on subnetworks with different architectures in Sec 4.4. In Sec 4.5, we also show the results of training more than two networks to demonstrate that our method generalizes well even when the number of networks increases.
|
| 90 |
+
|
| 91 |
+
In most of the experiments, we use the CIFAR-100 (Krizhevsky et al.) dataset. It consists of 50K training images and 10K test images over 100 classes, accordingly it has 600 images per each class. All the reported results on CIFAR-100 are average of 5 experiments. Since our method uses two loss terms, logit-based loss and feature map-based loss, we use different learning details for each loss term. For overall learning schedule, we follow the learning schedule of ONE(Lan et al., 2018) to conduct fair comparison which is 300 epochs of training. In terms of logit-based loss, the learning rate starts at 0.1 and is multiplied by 0.1 at 150, 225 epoch. We optimize the logit-based loss using SGD with mini-batch size of 128, momentum 0.9 and weight decay of 1e-4. This learning details for logit-based loss is equally applied to other compared online distillation methods. For feature map-based loss, the learning rate starts at 2e-5 for both discriminators and feature extractors and is decayed by 0.1 at 75, 150 epoch. The feature map-based loss is optimized by ADAM(Kingma & Ba, 2014) with the same mini-batch size and weight decay of 1e-1.
|
| 92 |
+
|
| 93 |
+
In tables, ‘2 Net Avg’ and ‘Ens’ represents the average accuracy of the two sub-networks and the ensemble accuracy respectively. The average ensemble is used for AFD, DML and KD while ONE uses gated ensemble of sub-networks according to its methodology.
|
| 94 |
+
|
| 95 |
+
# .1 COMPARISON WITH DIRECT FEATURE MAP ALIGNMENT METHODS
|
| 96 |
+
|
| 97 |
+
Since our goal is to distill feature map information that suits for mutual online distillation, we briefly compare our method with conventional direct alignment method in Table 1. We train two networks together, in one setting, we use the same architecture (ResNet-32 (He et al., 2016)) and in the other, we use different types (WRN-16-2, WRN-28-2 (Zagoruyko & Komodakis, 2016b)). For $L _ { 1 }$ , each network is trained not only to follow the ground-truth label by CE loss, but also to mimic the other network’s feature map using the $L _ { 1 }$ distance loss. For $L _ { 1 } +$ KD, KD (Hinton et al., 2015) loss is applied mutually along with the $L _ { 1 }$ loss between the feature maps. We also compare our results with offline method, $L 1 +$ KD (offline) employs a pre-trained network as a teacher network and distills its feature map knowledge to an untrained student network by $L 1$ loss as well as the KD loss at logit level. ResNet-32 and WRN-28-2 that shows $6 9 . 7 9 \%$ and $7 3 . 6 2 \%$ accuracy are used as the teacher networks in the two settings respectively. The results clearly show that learning the distributions of feature maps with adversarial loss performs better than direct alignment method in both mutual online distillation and offline distillation. We could observe that using $L _ { 1 }$ distance loss actually disturbs the networks to learn good features in online environment. The accuracy of ResNet-32 has dropped more than $2 \%$ compared to its vanilla version accuracy $( 6 9 . 3 8 \% )$ and the accuracy of WRN-16-2 is also lower than its vanilla network $( 7 1 . 0 7 \% )$ . Even when combined with KD loss $( L 1 + \mathrm { K D } )$ , direct alignment method shows poor performance compared to ours in both online and offline manner. Though distance loss is used in many conventional offline methods, they suffer when it comes to online environment. In case of different architecture types, our method also outperforms the direct alignment method. It indicates that when it comes to online feature map distillation, transferring feature map information with direct alignment method such as $L 1$ distance is worse than indirect distillation that uses feature map distribution via adversarial loss.
|
| 98 |
+
|
| 99 |
+
Table 1: Top-1 accuracy( $\%$ ) comparison with direct alignment methods using CIFAR-100 dataset.
|
| 100 |
+
|
| 101 |
+
<table><tr><td>Model Type</td><td colspan="2">L1</td><td colspan="2">L1+ KD</td><td colspan="3">L1+KD(offline)</td><td colspan="2">AFD</td><td colspan="2"></td><td colspan="2">Vanilla</td></tr><tr><td>Same Arch.</td><td>2 Net Avg</td><td>Ens</td><td>2 NetAvg</td><td></td><td>Ens</td><td>Student</td><td>Teacher</td><td>Ens</td><td></td><td>2 Net Avg</td><td>Ens</td><td>Net</td><td></td></tr><tr><td>ResNet-32</td><td>66.82</td><td>70.69</td><td></td><td>70.16</td><td>72.44</td><td>71.91</td><td>69.79</td><td>72.07</td><td>74.03</td><td></td><td>75.64</td><td>69.38</td><td></td></tr><tr><td>Different Arch.</td><td>Net1 Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Student</td><td>Teacher</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td></tr><tr><td>WRN-(16-2,28-2)</td><td>69.84 73.41</td><td>74.63</td><td>72.35</td><td>74.82</td><td>75.10</td><td>73.94</td><td>73.62</td><td>76.56</td><td>75.88</td><td>77.08</td><td>77.82</td><td>71.07</td><td>73.50</td></tr></table>
|
| 102 |
+
|
| 103 |
+
Table 2: Ablation study of AFD. Top-1 accuracy $\% )$ on CIFAR-100 dataset.
|
| 104 |
+
|
| 105 |
+
<table><tr><td>Model Type</td><td colspan="3">w/o KD (Adv only)</td><td colspan="3">w/o Adv (KD only)</td><td colspan="3">Full model (AFD)</td></tr><tr><td>Same Arch.</td><td colspan="2">2 Net Avg</td><td>Ens</td><td colspan="2">2 Net Avg</td><td>Ens</td><td colspan="2">2 Net Avg</td><td>Ens</td></tr><tr><td>ResNet-32</td><td colspan="2">70.09</td><td>74.77</td><td colspan="2">73.38</td><td>75.21</td><td colspan="2">74.03</td><td>75.64</td></tr><tr><td>WRN-16-2</td><td colspan="2">71.94</td><td>75.92</td><td colspan="2">74.81</td><td>76.20</td><td colspan="2">75.33</td><td>76.34</td></tr><tr><td>Different Arch.</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td></tr><tr><td>WRN-(16-2,28-2)</td><td>72.05</td><td>73.80</td><td>76.82</td><td>74.99</td><td>76.64</td><td>77.28</td><td>75.88</td><td>77.08</td><td>77.82</td></tr></table>
|
| 106 |
+
|
| 107 |
+
# 4.2 ABLATION STUDY
|
| 108 |
+
|
| 109 |
+
Table 2 shows the ablation study of our proposed method. We conduct experiments using the same and different sub-network architectures. We run three experiments with different training settings for each model case. The three settings are full model, without mutual knowledge distillation at logitlevel and without adversarial feature map distillation. When trained without the adversarial feature map distillation, the accuracy decreases in all three model cases. The accuracy of both ResNet-32 and WRN-16-2 dropped by $0 . 6 5 \%$ and $0 . 5 2 \%$ respectively, and those of (WRN-16-2, WRN-28-2) pair declined by $0 . 8 9 \%$ and $0 . 4 4 \%$ compared to the full model. Ensemble results are also lower than those of the full models. When only the adversarial feature map distillation is applied, the accuracy has increased by $0 . 7 1 \%$ and $0 . 8 7 \%$ compared to the vanilla versions of ResNet-32 and WRN-16-2 respectively. Especially in case of different sub-network architecture, the accuracy of WRN-16-2 has increased by almost $1 \%$ . Based on these experiments, we could confirm that adversarial feature map distillation has some efficacy of improving the performance in online environment.
|
| 110 |
+
|
| 111 |
+
# 4.3 SAME ARCHITECTURE
|
| 112 |
+
|
| 113 |
+
We compare our method with DML and ONE for training two sub-networks with the same architecture. The vanilla network refers to the original network trained without any distillation method. As shown in Table 3, in both ResNet and WRN serises, DML, ONE and AFD all improves the networks’ accuracy compared to the vanilla networks. However, AFD shows the highest improvement of performance in both sub-network and ensemble accuracy among the compared distillation methods. Especially in case of ResNet-20, ResNet-32 and WRN-16-2, our method significantly improves the accuracy by more than $4 \%$ compared to the vanilla version while other distillation methods improve around $3 \%$ on average except the ResNet-32 of DML.
|
| 114 |
+
|
| 115 |
+
Table 3: Top-1 accuracy $\% )$ comparison with other online distillation methods for training two same architecture networks as a pair on the CIFAR-100 dataset. The numbers in parentheses refer to the amount of increase in accuracy compared to the vanilla network.
|
| 116 |
+
|
| 117 |
+
<table><tr><td rowspan="2">Model Type</td><td colspan="2">DML</td><td colspan="2">ONE</td><td colspan="2">AFD</td><td rowspan="2">Vanila</td></tr><tr><td>2 Net Avg</td><td>Ens</td><td>2 Net Avg</td><td>Ens</td><td>2 Net Avg</td><td>Ens</td></tr><tr><td>ResNet-20</td><td>70.90(+3.42%)</td><td>72.08</td><td>70.56(+3.08%)</td><td>72.26</td><td>71.72(+4.24%)</td><td>72.98</td><td>67.48</td></tr><tr><td>ResNet-32</td><td>73.40(+4.02%)</td><td>74.89</td><td>72.61(+3.23%)</td><td>74.07</td><td>74.03(+4.65%)</td><td>75.64</td><td>69.38</td></tr><tr><td>ResNet-56</td><td>75.48(+1.64%)</td><td>76.73</td><td>76.45(+2.61%)</td><td>77.16</td><td>77.25(+3.41%)</td><td>78.35</td><td>73.84</td></tr><tr><td>WRN-16-2</td><td>74.68(+3.61%)</td><td>75.81</td><td>73.85(+2.78%)</td><td>74.84</td><td>75.33(+4.26%)</td><td>76.34</td><td>71.07</td></tr><tr><td>WRN-16-4</td><td>78.17(+2.79%)</td><td>79.06</td><td>77.32(+1.94%)</td><td>77.79</td><td>78.55(+3.17%)</td><td>79.28</td><td>75.38</td></tr><tr><td>WRN-28-2</td><td>77.02(+3.52%)</td><td>78.64</td><td>76.67(+3.17%)</td><td>77.40</td><td>77.22(+3.72%)</td><td>78.72</td><td>73.50</td></tr><tr><td>WRN-28-4</td><td>79.16(+2.56%)</td><td>80.56</td><td>79.25(+2.65%)</td><td>79.73</td><td>79.46(+2.86%)</td><td>80.65</td><td>76.60</td></tr></table>
|
| 118 |
+
|
| 119 |
+
Table 4: Top-1 accuracy $( \% )$ comparison with other online distillation methods for training two different architectures as a pair on CIFAR-100 dataset.
|
| 120 |
+
|
| 121 |
+
<table><tr><td colspan="2">Model Types</td><td colspan="3">KD</td><td colspan="3">DML</td><td colspan="3">AFD</td></tr><tr><td>Net1</td><td>Net2</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td></tr><tr><td>ResNet-32</td><td>ResNet-56</td><td>72.92</td><td>76.27</td><td>76.71</td><td>73.48</td><td>76.35</td><td>76.74</td><td>74.13</td><td>76.69</td><td>77.11</td></tr><tr><td>ResNet-32</td><td>WRN-16-4</td><td>72.67</td><td>77.26</td><td>76.94</td><td>73.48</td><td>77.43</td><td>77.01</td><td>74.43</td><td>77.82</td><td>77.67</td></tr><tr><td>ResNet-56</td><td>WRN-28-4</td><td>75.48</td><td>78.91</td><td>79.23</td><td>76.03</td><td>79.32</td><td>79.38</td><td>77.95</td><td>79.21</td><td>80.01</td></tr><tr><td>ResNet-20</td><td>WRN-28-10</td><td>70.08</td><td>78.17</td><td>76.12</td><td>71.03</td><td>77.70</td><td>75.78</td><td>72.62</td><td>77.83</td><td>76.70</td></tr><tr><td>WRN-16-2</td><td>WRN-16-4</td><td>74.87</td><td>77.42</td><td>77.30</td><td>74.87</td><td>77.17</td><td>76.96</td><td>75.81</td><td>78.00</td><td>77.84</td></tr><tr><td>WRN-16-2</td><td>WRN-28-2</td><td>74.86</td><td>76.45</td><td>77.29</td><td>75.11</td><td>76.91</td><td>77.24</td><td>75.88</td><td>77.08</td><td>77.82</td></tr><tr><td>WRN-16-2</td><td>WRN-28-4</td><td>74.51</td><td>78.18</td><td>77.60</td><td>74.95</td><td>78.23</td><td>77.67</td><td>76.23</td><td>78.26</td><td>78.28</td></tr><tr><td colspan="2">Average</td><td>73.63</td><td>77.52</td><td>77.31</td><td>74.14</td><td>77.59</td><td>77.25</td><td>75.29</td><td>77.84</td><td>77.92</td></tr></table>
|
| 122 |
+
|
| 123 |
+
# 4.4 DIFFERENT ARCHITECTURE
|
| 124 |
+
|
| 125 |
+
In this section, we compare our method with DML and KD using different network architectures. We set Net2 as the higher capacity network. For KD, we use the ensemble of the two sub-networks as a teacher to mimic at every iteration. The difference with original KD (Hinton et al., 2015) is that it is an online learning method, not offline. We did not include ONE because ONE can not be applied in case where the sub-networks have different model types due to its architecture of sharing the lowlevel layers. In table 4, we could observe that our method shows better performance improvement than other methods in both Net1 and Net2 except for a couple of cases. The interesting result is that when AFD is applied, the performance of Net1 (smaller network) is improved significantly compared to other online distillation methods. This is because AFD can transfer the higher capacity network’s meaningful knowledge (feature map distribution) to the lower capacity one better than other online methods. When compared with KD and DML, AFD’s Net1 accuracy is higher by $1 . 6 6 \%$ and $1 . 1 5 \%$ and the ensemble accuracy is better by $0 . 6 1 \%$ and $0 . 6 7 \%$ on average respectively. In case of (WRN-16-2, WRN-28-4) pair, the Net1’s parameter size (0.70M) is more than 8 times smaller than Net2 (5.87M). Despite the large size difference, our method improves both networks’ accuracy, particularly our Net1 performance is better than KD and DML by $1 . 7 2 \%$ and $1 . 2 8 \%$ respectively. The performance of KD and DML seems to decline as the difference between the two model sizes gets larger. Throughout this experiment, we have shown that our method also works properly for different architectures of sub-networks even when two networks have large difference in their model sizes. Using our method, smaller network considerably benefits from the large network.
|
| 126 |
+
|
| 127 |
+
# 4.5 EXPANSION TO 3 NETWORKS
|
| 128 |
+
|
| 129 |
+
To show our method’s expandability for training more than two networks, we conduct experiment of training 3 networks in this section. As proposed in Sec 3.3, our method uses a cyclic learning framework rather than employing adversarial loss between every network pairs in order to reduce the amount of computation and memory. DML calculates the mutual knowledge distillation loss between every network pairs and uses the average of the losses. ONE generates a gated ensemble of the sub-networks and transfers the knowledge of the ensemble logit to each network. As it can be seen in Table 5, AFD outperforms the compared online distillation methods on both $3 \ \mathrm { N e t }$ average and ensemble accuracy in every model types. Comparing the results of Table 5 to that of Table 3, the overall tendency of performance gains compared to DML and ONE is maintained.
|
| 130 |
+
|
| 131 |
+
Table 5: Top-1 accuracy $\% )$ comparison with other online distillation methods using 3 networks on CIFAR-100 dataset. ’3 Net Avg’ represents the average accuracy of the 3 networks.
|
| 132 |
+
|
| 133 |
+
<table><tr><td rowspan="2">Model Type</td><td colspan="2">DML</td><td colspan="2">ONE</td><td colspan="2">AFD</td><td rowspan="2">Vanilla</td></tr><tr><td>3 Net Avg</td><td>Ens</td><td>3 Net Avg</td><td>Ens</td><td>3 Net Avg</td><td>Ens</td></tr><tr><td>ResNet-32</td><td>73.43</td><td>76.11</td><td>73.25</td><td>74.94</td><td>74.14</td><td>76.64</td><td>69.38</td></tr><tr><td>ResNet-56</td><td>76.11</td><td>77.83</td><td>76.49</td><td>77.38</td><td>77.37</td><td>79.18</td><td>73.84</td></tr><tr><td>WRN-16-2</td><td>75.15</td><td>76.93</td><td>73.87</td><td>75.26</td><td>75.65</td><td>77.54</td><td>71.07</td></tr><tr><td>WRN-28-2</td><td>77.12</td><td>79.41</td><td>76.66</td><td>77.53</td><td>77.20</td><td>79.78</td><td>73.50</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Table 6: Top-1 accuracy( $\textcircled{9}$ comparison with DML on ImageNet dataset.
|
| 136 |
+
|
| 137 |
+
<table><tr><td colspan="2">Model Types</td><td colspan="3">DML</td><td colspan="3">AFD</td><td colspan="2">Vanilla</td></tr><tr><td>Net1</td><td>Net2</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td></tr><tr><td>ResNet-18</td><td>ResNet-34</td><td>70.19</td><td>73.57</td><td>73.33</td><td>70.39</td><td>74.00</td><td>74.47</td><td>69.76</td><td>73.27</td></tr></table>
|
| 138 |
+
|
| 139 |
+
# 4.6 IMAGENET EXPERIMENT
|
| 140 |
+
|
| 141 |
+
We evaluate our method on ImageNet dataset to show that our method can also be applicable to a large scale image dataset. We use ImageNet LSVRC 2015 (Russakovsky et al., 2015) which has 1.2M training images and 50K validation images over 1,000 classes. We compare our method with DML using two pre-trained networks ResNet-18 and ResNet-34 as a pair. The results are after 30 epochs of training. As shown in Table 6, our method improves the networks better than DML.
|
| 142 |
+
|
| 143 |
+
# 5 CONCLUSION
|
| 144 |
+
|
| 145 |
+
We proposed an online knowledge distillation method that transfers the knowledge not only at logitlevel but also at feature map-level using the adversarial training scheme. Unlike existing online distillation methods, our method utilizes the feature map information and showed that knowledge transfer at feature map-level is possible even in an online environment. Through extensive experiments, we demonstrated the adequacy of adopting the distribution learning via adversarial training for online feature map distillation and could achieve better performance than existing online methods. We also introduced a novel cyclic learning framework for training multiple networks concurrently and presented its efficacy by comparing with existing approaches. We also confirmed that our method is broadly suitable to various architecture types from a very small network (ResNet-20) to a large (WRN-28-4) network. We hope that due to the work of our research, the area of knowledge distillation can be further advanced and studied by many researchers.
|
| 146 |
+
|
| 147 |
+
# REFERENCES
|
| 148 |
+
|
| 149 |
+
Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In ˇ Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006.
|
| 150 |
+
Bo Dai, Sanja Fidler, Raquel Urtasun, and Dahua Lin. Towards diverse and natural image descriptions via a conditional gan. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2970–2979, 2017.
|
| 151 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 152 |
+
|
| 153 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 154 |
+
|
| 155 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
|
| 156 |
+
|
| 157 |
+
Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1125–1134, 2017.
|
| 158 |
+
|
| 159 |
+
Jangho Kim, SeongUk Park, and Nojun Kwak. Paraphrasing complex network: Network compression via factor transfer. In Advances in Neural Information Processing Systems, pp. 2760–2769, 2018.
|
| 160 |
+
|
| 161 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 162 |
+
|
| 163 |
+
Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-100 (canadian institute for advanced research). URL http://www.cs.toronto.edu/˜kriz/cifar.html.
|
| 164 |
+
|
| 165 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 166 |
+
|
| 167 |
+
Xu Lan, Xiatian Zhu, and Shaogang Gong. Knowledge distillation by on-the-fly native ensemble. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pp. 7528–7538. Curran Associates Inc., 2018.
|
| 168 |
+
|
| 169 |
+
Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016.
|
| 170 |
+
|
| 171 |
+
Peiye Liu, Wu Liu, Huadong Ma, Tao Mei, and Mingoo Seok. Ktan: knowledge transfer adversarial network. arXiv preprint arXiv:1810.08126, 2018.
|
| 172 |
+
|
| 173 |
+
Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2794–2802, 2017.
|
| 174 |
+
|
| 175 |
+
Takeru Miyato, Andrew M Dai, and Ian Goodfellow. Adversarial training methods for semisupervised text classification. arXiv preprint arXiv:1605.07725, 2016.
|
| 176 |
+
|
| 177 |
+
David Pfau and Oriol Vinyals. Connecting generative adversarial networks and actor-critic methods. arXiv preprint arXiv:1610.01945, 2016.
|
| 178 |
+
|
| 179 |
+
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016.
|
| 180 |
+
|
| 181 |
+
Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
|
| 182 |
+
|
| 183 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
|
| 184 |
+
|
| 185 |
+
Jost Tobias Springenberg. Unsupervised and semi-supervised learning with categorical generative adversarial networks. arXiv preprint arXiv:1511.06390, 2015.
|
| 186 |
+
|
| 187 |
+
Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928, 2016a.
|
| 188 |
+
|
| 189 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016b.
|
| 190 |
+
|
| 191 |
+
Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4320– 4328, 2018.
|
| 192 |
+
|
| 193 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pp. 2223–2232, 2017.
|
parse/train/Bkl086VYvH/Bkl086VYvH_content_list.json
ADDED
|
@@ -0,0 +1,1057 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FEATURE-MAP-LEVEL ONLINE ADVERSARIAL KNOWLEDGE DISTILLATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
101,
|
| 9 |
+
803,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Feature maps contain rich information about image intensity and spatial correlation. However, previous online knowledge distillation methods only utilize the class probabilities. Thus in this paper, we propose an online knowledge distillation method that transfers not only the knowledge of the class probabilities but also that of the feature map using the adversarial training framework. We train multiple networks simultaneously by employing discriminators to distinguish the feature map distributions of different networks. Each network has its corresponding discriminator which discriminates the feature map from its own as fake while classifying that of the other network as real. By training a network to fool the corresponding discriminator, it can learn the other network’s feature map distribution. Discriminators and networks are trained concurrently in a minimax twoplayer game. Also, we propose a novel cyclic learning scheme for training more than two networks together. We have applied our method to various network architectures on the classification task and discovered a significant improvement of performance especially in the case of training a pair of a small network and a large one. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
271,
|
| 43 |
+
764,
|
| 44 |
+
493
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
534,
|
| 55 |
+
336,
|
| 56 |
+
549
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "With the advent of Alexnet (Krizhevsky et al., 2012), deep convolution neural networks have achieved remarkable success in a variety of computer vision tasks. However, high-performance of deep neural network is often gained by increasing the depth or the width of a network. Deep and wide networks cost a large number of computation as well as memory storage which is not suitable for a resource-limited environment such as mobile or embedded systems. To overcome this issue, many researches have been conducted to develop smaller but accurate neural networks. Some of the well-known methods in this line of research are parameter quantization or binarization (Rastegari et al., 2016), pruning (Li et al., 2016) and knowledge distillation (KD) (Hinton et al., 2015). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
569,
|
| 66 |
+
825,
|
| 67 |
+
681
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "KD has been an active area of research as a solution to improve the performance of a light-weight network by transferring the knowledge of a large pre-trained network (or an ensemble of small networks) as a teacher network. KD sets the teacher network’s class probabilities as a target which a small student network tries to mimic. By aligning the student’s predictions to those of the teacher, the student can improve its performance. Recently, some studies have shown that rather than using a pretrained teacher, simultaneously training networks to learn from each other in a peer-teaching manner is also possible. This approach is called online distillation. Deep mutual learning (DML) (Zhang et al., 2018) and on-the-fly native ensemble (ONE) (Lan et al., 2018) are the representative online distillation methods that show appealing results in the image classification tasks. Conventional distillation method requires pre-training a powerful teacher network and performs an one-way transfer to a relatively small and untrained student network. On the other hand, in online mutual distillation, there is no specific teacher-student role. All the student networks learn simultaneously by teaching each other from the start of training. It trains with the conventional cross-entropy loss from the ground truth label along with the mimicry loss to learn from its peers. Networks trained in such an online distillation way achieve results superior not only to the networks trained with the cross-entropy loss alone but also to those trained in conventional offline distillation manner from a pre-trained teacher network. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
688,
|
| 77 |
+
825,
|
| 78 |
+
922
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/152e0f91fd83e929bd1339fb8de49322b8e5b1b9dd90640fa5570de8581ff42d.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: The concept of online Adversarial Feature map Distillation (AFD) Each point represents a feature map for the corresponding input denoted by different colors. The thin line arrow indicates the evolvement of feature map data points as iteration goes on and the broader arrow indicates the way each method compares the feature maps from different networks. (a) In direct feature map alignment, networks are trained such that the distance between each pair of points with the same color is minimized. (b) In AFD, the discriminators contain information on feature map distributions and thus the networks are trained such that the distributions match. (best viewed in color) "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
174,
|
| 91 |
+
101,
|
| 92 |
+
823,
|
| 93 |
+
227
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "However, aforementioned online distillation methods make use of only the logit information. While the logit contains the probabilistic information over classes, the feature map, the output of convolution layer, has more meaningful and abundant feature information on image intensity and spatial correlation. In offline distillation which utilizes a pre-trained model as a teacher network, many methods such as FitNet (Romero et al., 2014), attention transfer (AT) (Zagoruyko & Komodakis, 2016a) and factor transfer (FT) (Kim et al., 2018) make use of this intermediate feature representation as a target to learn for the student network, but in online distillation, to the best of our knowledge, no feature map-based knowledge distillation method has been proposed. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
353,
|
| 103 |
+
825,
|
| 104 |
+
464
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "This is due to some challenges. Unlike the offline methods that have a clear target to mimic, there is no static target to follow in an online method. At every training iteration, the feature maps of the co-trained network change, thus in online feature map-level distillation, the problem turns into mimicking the moving target properly. While each node of the logit is confined to represent its assigned class probability which does not change drastically over iterations, at the feature map-level, much more flexibility comes into play, which makes the problem more challenging. Therefore, the direct aligning method such as using L1 or L2 distance is not suitable for online mutual feature map distillation because it updates the network parameters to generate a feature map that tries to mimic the current output feature map of the other network. In other words, the direct alignment method only tries to minimize the distance between the two feature map points (one for each network), hence it ignores the distributional difference between the two feature maps (Fig. 1(a)). ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
470,
|
| 114 |
+
825,
|
| 115 |
+
625
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "To alleviate this problem, in this paper, we propose a novel online distillation method that transfers the knowledge of feature maps adversarially as well as a cyclic learning framework for training more than two networks simultaneously. Unlike the direct aligning method, our adversarial distillation method enables a network to learn the overall feature map distribution of the co-trained network (Fig. 1(b)). Since the discriminator is trained to distinguish the difference between the networks’ feature map distributions (containing the history of feature maps for different input images) at every training iteration, by fooling the discriminator, the network learns the co-trained network’s changing feature map distribution. Exchanging the knowledge of feature map distribution facilitates the networks to converge to a better feature map manifold that generalizes better and yields more accurate results. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
631,
|
| 125 |
+
825,
|
| 126 |
+
756
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Our method consists of two major losses: 1) logit-based loss and 2) feature map-based loss. Logitbased loss is defined by two different loss terms which are conventional cross-entropy (CE) loss and the mutual distillation loss using the Kullback-Leibler divergence (KLD). Our newly proposed feature map-based loss is to distill the feature map indirectly via discriminators. We use the feature map from the last convolution layer since deeper convolution layer generates more meaningful features with a high-level abstraction (Kim et al., 2018). The adversarial training scheme of generative adversarial networks (GAN) (Goodfellow et al., 2014) is utilized to transfer the knowledge at feature map-level. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
762,
|
| 136 |
+
825,
|
| 137 |
+
875
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "The contributions of this paper can be summarized as follows: 1) we propose an online knowledge distillation method that utilizes not only the logit but also the feature map from the convolution layer. 2) Our method transfers the knowledge of feature maps not by directly aligning them using ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
176,
|
| 146 |
+
882,
|
| 147 |
+
823,
|
| 148 |
+
924
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "the distance loss but by learning their distributions using the adversarial training via discriminators. \n3) We propose a novel cyclic learning scheme for training more than two networks simultaneously. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
171,
|
| 157 |
+
103,
|
| 158 |
+
821,
|
| 159 |
+
132
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 2
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 RELATED WORK ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
155,
|
| 170 |
+
341,
|
| 171 |
+
170
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "The idea of model compression by transferring the knowledge of a high performing model to a smaller model was originally proposed by Bucilua et al. (2006). Then in recent years, this research ˇ area got invigorated due to the work of knowledge distillation (KD) by Hinton et al. (2015). The main contribution of KD is to use the softened logit of pre-trained teacher network that has higher entropy as an extra supervision to train a student network. KD trains a compact student network to learn not only by the conventional CE loss subjected to the labeled data but also by the final outputs of the teacher network. While KD only utilizes the logit, method such as FitNet (Romero et al., 2014), AT (Zagoruyko & Komodakis, 2016a), FT (Kim et al., 2018) and KTAN (Liu et al., 2018) use the intermediate feature representation to transfer the knowledge of a teacher network. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
188,
|
| 181 |
+
825,
|
| 182 |
+
313
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Online Knowledge Distillation: Conventional offline methods require training a teacher model in advance while online methods do not require any pre-trained model. Instead, the networks teach each other mutually by sharing their knowledge throughout the training process. Some examples of recent online methods are DML (Zhang et al., 2018) and ONE (Lan et al., 2018) which demonstrate promising results. DML simply applies KD losses mutually, treating each other as teachers, and it achieves results that is even better than the offline KD method. The drawback of DML is that it lacks an appropriate teacher role, hence provides only limited information to each network. ONE pointed out this defect of DML. Rather than mutually distilling between the networks, ONE generates a gated ensemble logit of the training networks and uses it as a target to align for each network. ONE tries to create a powerful teacher logit that can provide more generalized information. The flaw of ONE is that it can not train different network architectures at the same time due to its architecture of sharing the low-level layers for the gating module. The common limitation of existing online methods is that they are dependent only on the logit and do not make any use of the feature map information. Considering that KD loss term is only applicable to the classification task, transferring knowledge at feature map-level can enlarge the applicability to other tasks. Therefore, our method proposes a distillation method that utilizes not only the logit but also the feature map via adversarial training, moreover, our method can be applied in case where the co-trained networks have different architectures. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
319,
|
| 192 |
+
825,
|
| 193 |
+
569
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Generative Adversarial Network (GAN): GAN (Goodfellow et al., 2014) is a generative model framework that is proposed with an adversarial training scheme, using a generator network $G$ and a discriminator network $D$ . $G$ learns to generate the real data distribution while $D$ is trained to distinguish the real samples of the dataset from the fake results generated by $G$ . The goal of $G$ is to trick $D$ to make a mistake of determining the fake results as the real samples. Though it was initially proposed for generative models, its adversarial training scheme is not limited to data generation. Adversarial training has been adapted to various tasks such as image translation (Isola et al., 2017; Zhu et al., 2017), captioning (Dai et al., 2017), semi-supervised learning (Miyato et al., 2016; Springenberg, 2015), reinforcement learning (Pfau & Vinyals, 2016), and many others. In this paper, we utilize GAN’s adversarial training strategy to transfer the knowledge at feature map-level in an online manner. The networks learn the other networks’ feature map distributions by trying to deceive the discriminators while the discriminators are trained to distinguish the different distributions of each network. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
575,
|
| 203 |
+
825,
|
| 204 |
+
756
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "3 PROPOSED METHOD ",
|
| 211 |
+
"text_level": 1,
|
| 212 |
+
"bbox": [
|
| 213 |
+
176,
|
| 214 |
+
779,
|
| 215 |
+
375,
|
| 216 |
+
795
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "In this section, we describe the overall process of our proposed Online Adversarial Feature map Distillation (AFD). As can be seen in Figure 2, when training two different networks, $\\Theta _ { 1 }$ and $\\Theta _ { 2 }$ , in an online manner, we employ two discriminators, $D _ { 1 }$ and $D _ { 2 }$ . We train $D _ { 1 }$ such that the feature map of $\\Theta _ { 2 }$ is regarded as a real and that of $\\Theta _ { 1 }$ is classified as a fake and do vice versa for discriminator $D _ { 2 }$ . Then, each network $\\Theta _ { 1 }$ and $\\Theta _ { 2 }$ are trained to fool its corresponding discriminator so that it can generate a feature map that mimics the other network’s feature map. Throughout this adversarial training, each network learns the feature map distribution of the other network. By exploiting both logit-based distillation loss and feature map-based adversarial loss together, we could observe a significant improvement of performance in various pairs of network architectures especially when training small and large networks together. Also we introduce a cyclic learning scheme for training more than two networks simultaneously. It reduces the number of required discriminators from $2 \\times _ { 2 } C _ { K }$ (when employing discriminators bidirectionally between every network pairs.) to $K$ where $K$ is the number of networks participating. This cyclic learning framework not only requires less computation than the bidirectional way but also achieves better results compared to other online training schemes for multiple networks. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
811,
|
| 226 |
+
825,
|
| 227 |
+
924
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "image",
|
| 233 |
+
"img_path": "images/59ee2b5d08ffdf4df067c9b42ab71081ff7a5d972694eb4afb866124a1cfea94.jpg",
|
| 234 |
+
"image_caption": [
|
| 235 |
+
"Figure 2: Overall schematic of online adversarial feature map distillation (AFD). At feature maplevel, each network is trained to deceive the corresponding discriminator so that it can mimic the other network’s feature map distribution. While at logit-level, KL loss to learn the peer network’s logit is applied as well as the conventional CE loss. "
|
| 236 |
+
],
|
| 237 |
+
"image_footnote": [],
|
| 238 |
+
"bbox": [
|
| 239 |
+
173,
|
| 240 |
+
102,
|
| 241 |
+
807,
|
| 242 |
+
321
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 3
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "",
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
405,
|
| 252 |
+
825,
|
| 253 |
+
502
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 3
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "First, we explain the conventional mutual knowledge distillation method conducted among the networks at the logit-level. Then we introduce our novel online feature map distillation method using the adversarial training scheme in addition to the cyclic learning framework for training more than two networks at the same time. ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
174,
|
| 262 |
+
503,
|
| 263 |
+
825,
|
| 264 |
+
558
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 3
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "3.1 LOGIT-BASED MUTUAL KNOWLEDGE DISTILLATION ",
|
| 271 |
+
"text_level": 1,
|
| 272 |
+
"bbox": [
|
| 273 |
+
173,
|
| 274 |
+
580,
|
| 275 |
+
578,
|
| 276 |
+
594
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 3
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "We use two loss terms for logit-based learning, one is the conventional cross-entropy(CE) loss and the other is mutual distillation loss between networks based on Kullback Leibler(KL) divergence. We formulate our proposed method assuming training two networks. Training scheme for more than two networks will be explained in Sec 3.3. Below is the overall logit-based loss for two networks: ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
609,
|
| 286 |
+
825,
|
| 287 |
+
665
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 3
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "equation",
|
| 293 |
+
"img_path": "images/fcd21249998a9db9b30e86dba21450707cdab094400b1b6fbcf9f3ae8ae7b9a5.jpg",
|
| 294 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { l o g i t } ^ { 1 } = \\mathcal { L } _ { c e } ( y , \\sigma ( z _ { 1 } ) ) + T ^ { 2 } \\times \\mathcal { L } _ { k l } ( \\sigma ( z _ { 2 } / T ) , \\sigma ( z _ { 1 } / T ) ) } \\\\ & { \\mathcal { L } _ { l o g i t } ^ { 2 } = \\mathcal { L } _ { c e } ( y , \\sigma ( z _ { 2 } ) ) + T ^ { 2 } \\times \\mathcal { L } _ { k l } ( \\sigma ( z _ { 1 } / T ) , \\sigma ( z _ { 2 } / T ) ) . } \\end{array}\n$$",
|
| 295 |
+
"text_format": "latex",
|
| 296 |
+
"bbox": [
|
| 297 |
+
310,
|
| 298 |
+
674,
|
| 299 |
+
686,
|
| 300 |
+
718
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 3
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "Here, $\\sigma ( \\cdot )$ refers to softmax function and $z \\in \\mathbb { R } ^ { C }$ is the logit produced from a network for $C$ - class classification problem. The temperature term $T$ is used to control the level of smoothness in probabilities. As the temperature term $T$ goes up, it creates a more softened probability distribution. We use $T = 3$ for every experiment. $\\mathcal { L } _ { c e }$ is the CE loss between the ground truth label $y$ and the softmax output $\\sigma ( z )$ that is commonly used in image classification. $\\mathcal { L } _ { k l }$ is the KL loss between the softened logit of each network. We multiply the KL loss term with $T ^ { 2 }$ because the gradients produced by the soft targets are scaled by $1 / \\dot { T } ^ { 2 }$ . While the CE loss is between the correct labels and the outputs of the model, the KL loss is the KL distance between the outputs of two training networks. The KL loss provides an extra information from the peer network so that the network can improve its generalization performance. The difference with DML is that while DML updates asynchronously which means that it updates one network first and then the other network, our AFD updates the networks synchronously, not alternatingly. The CE loss trains the networks to predict the correct truth label while the mutual distillation loss tries to match the outputs of the peer-networks, enabling the networks to share the knowledge at logit-level. ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
173,
|
| 309 |
+
728,
|
| 310 |
+
825,
|
| 311 |
+
924
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 3
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"text": ".2 FEATURE MAP-BASED LEARNING VIA ADVERSARIAL TRAINING ",
|
| 318 |
+
"text_level": 1,
|
| 319 |
+
"bbox": [
|
| 320 |
+
184,
|
| 321 |
+
104,
|
| 322 |
+
651,
|
| 323 |
+
117
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 4
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "Our AFD uses adversarial training to transfer knowledge at feature map-level. We formulate our adversarial feature map distillation for two networks which will be extended for more networks later. We divide a network into two parts, one is the feature extractor part that generates a feature map and the other is the classifier part that transforms the feature map into a logit. Each network also has a corresponding discriminator which distinguishes different feature map distributions. The architecture of the discriminator is simply a series of Conv-Batch Normalization-Leaky ReLU-Conv-Sigmoid. It takes a feature map of the last layer and it reduces the spatial size and the number of channel of the feature map as it goes through the convolution operation so that it can produce a single scalar value. Then we apply the sigmoid function of the value to normalize it between 0 and 1. ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
174,
|
| 332 |
+
130,
|
| 333 |
+
825,
|
| 334 |
+
256
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 4
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "We utilize the feature extractor part to enable feature map-level distillation. For the convenience of mathematical notation, we name the feature extractor part as $G _ { k }$ and its discriminator as $D _ { k }$ , $k$ indicates the network number. As depicted in Figure 2, each network has to fool its discriminator to mimic the peer network’s feature map and the discriminator has to discriminate from which network the feature map is originated. Following LSGAN (Mao et al., 2017), our overall adversarial loss for discriminator and the feature extractor can be written as below: ",
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
256,
|
| 344 |
+
825,
|
| 345 |
+
339
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 4
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "equation",
|
| 351 |
+
"img_path": "images/9c6c603581086d68a770553b9229d9275cab852060959b024e0091365ec1b005.jpg",
|
| 352 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { D _ { 1 } } = [ 1 - D _ { 1 } ( G _ { 2 } ( x ) ) ] ^ { 2 } + [ D _ { 1 } ( G _ { 1 } ( x ) ) ] ^ { 2 } } \\\\ & { } \\\\ & { \\mathcal { L } _ { G _ { 1 } } = [ 1 - D _ { 1 } ( G _ { 1 } ( x ) ) ] ^ { 2 } . } \\end{array}\n$$",
|
| 353 |
+
"text_format": "latex",
|
| 354 |
+
"bbox": [
|
| 355 |
+
354,
|
| 356 |
+
348,
|
| 357 |
+
642,
|
| 358 |
+
391
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 4
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "The feature extractors $G _ { 1 }$ and $G _ { 2 }$ take input $x$ and generate feature maps. The discriminator $D _ { 1 }$ takes a feature map and yields a scalar between 0 (fake) and 1 (real). It is trained to output 1 if the feature map came from the co-trained network (in this case, $G _ { 2 }$ ) or 0 if the feature map is produced from the network it belongs to ( $G _ { 1 }$ in this case). The goal of $D _ { 1 }$ is to minimize the discriminator loss term $\\mathcal { L } _ { D 1 }$ by correctly distinguishing the two different feature map distributions while $G _ { 1 }$ ’s goal is to minimize the loss term ${ \\mathcal L } _ { G _ { 1 } }$ by fooling $D _ { 1 }$ to make mistake of determining $G _ { 1 }$ ’s feature map as real and yield 1. Each training network’s object is to minimize $\\mathcal { L } _ { G _ { k } }$ to mimic the peer network’s feature map distribution. This adversarial scheme works exactly the same by changing the role of two networks. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
173,
|
| 367 |
+
398,
|
| 368 |
+
825,
|
| 369 |
+
525
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 4
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "In case where the two networks’ feature map outputs have different channel sizes, for example a pair like (WRN-16-2, WRN-16-4) (Zagoruyko & Komodakis, 2016b), we use a transfer layer that is composed of a convolution layer, a batch normalization and a ReLU which converts the number of channels to that of peer network. The above loss terms change as ${ \\mathcal { L } } _ { D _ { 1 } } = [ 1 - D _ { 1 } ( T _ { 2 } ( G _ { 2 } ( x ) ) ) ] ^ { 2 } +$ $[ D _ { 1 } ( T _ { 1 } ( G _ { 1 } ( x ) ) ) ] ^ { 2 }$ and $\\mathcal { L } _ { G _ { 1 } } = [ 1 - D _ { 1 } ( T _ { 1 } ( G _ { 1 } ( x ) ) ) ] ^ { 2 }$ when using the transfer layer $T _ { k }$ . ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
174,
|
| 378 |
+
531,
|
| 379 |
+
825,
|
| 380 |
+
603
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 4
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "Optimization: Combining both logit-based loss and the adversarial feature map-based loss, the overall loss for each network $\\Theta _ { 1 }$ and $\\Theta _ { 2 }$ are as follows: ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
174,
|
| 389 |
+
608,
|
| 390 |
+
823,
|
| 391 |
+
637
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 4
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "equation",
|
| 397 |
+
"img_path": "images/354527b4c9202b8f142b1b4c9b207b1a7eb444046cae60dc8b7f5db254dffa4f.jpg",
|
| 398 |
+
"text": "$$\n\\mathcal { L } _ { \\Theta _ { 1 } } = \\mathcal { L } _ { l o g i t } ^ { 1 } + \\mathcal { L } _ { G _ { 1 } } , \\qquad \\mathcal { L } _ { \\Theta _ { 2 } } = \\mathcal { L } _ { l o g i t } ^ { 2 } + \\mathcal { L } _ { G _ { 2 } }\n$$",
|
| 399 |
+
"text_format": "latex",
|
| 400 |
+
"bbox": [
|
| 401 |
+
338,
|
| 402 |
+
647,
|
| 403 |
+
658,
|
| 404 |
+
667
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 4
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "However, the logit-based loss term by the same optimizer. In fact, they $\\mathcal { L } _ { l o g i t } ^ { k }$ and the feature map-based loss term ptimized alternatingly in a same min $\\mathcal { L } _ { G _ { k } }$ are not optimizedch. At every minibatch iteration, we infer an image into a model and it computes a logit and a feature map. Then we calculate the two loss terms and optimize the networks based on the two losses separately, meaning that we update the parameters by the logit-based loss once and then update again by the feature map-based loss. The reason we optimize separately for each loss term is because they use different learning rates. The adversarial loss requires much slower learning rate thus if we use the same optimizer with the same learning rate, the networks would not be optimized. Note that we do not infer for each loss term, inference is conducted only once, only the optimization is conducted twice, one for each loss term. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
679,
|
| 414 |
+
825,
|
| 415 |
+
820
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "3.3 CYCLIC LEARNING FRAMEWORK ",
|
| 422 |
+
"text_level": 1,
|
| 423 |
+
"bbox": [
|
| 424 |
+
176,
|
| 425 |
+
840,
|
| 426 |
+
444,
|
| 427 |
+
854
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 4
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "Our method proposes a novel cyclic peer-learning scheme for training more than two networks simultaneously. As can be seen in Figure 3, each network transfers its knowledge to its next peer network in an one-way cyclic manner. If we train $K$ number of networks together, each network distills its knowledge to its next network except the last network transfers its knowledge to the first network, creating a cyclic knowledge transfer flow as $1 \\to 2 , 2 \\to 3 , \\cdots , ( K - 1 ) \\to K , K \\to 1$ . The main contribution of using this cyclic learning framework is to avoid employing too many number of discriminators. If we apply our adversarial loss for every pair of networks, it would demand two times the amount of every possible pair of $K$ networks which would cost a lot of computation. Also in Sec 4.5, we empirically show that our cyclic training scheme is better than other online methods’ training scheme for multiple networks. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
176,
|
| 436 |
+
867,
|
| 437 |
+
823,
|
| 438 |
+
924
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "image",
|
| 444 |
+
"img_path": "images/20e560521e4bd10e2bb504a563a10b0cff737518c82eda761a1ab98a29880778.jpg",
|
| 445 |
+
"image_caption": [
|
| 446 |
+
"Figure 3: Schematic of cyclic-learning framework for training 3 networks simultaneously. "
|
| 447 |
+
],
|
| 448 |
+
"image_footnote": [],
|
| 449 |
+
"bbox": [
|
| 450 |
+
176,
|
| 451 |
+
104,
|
| 452 |
+
820,
|
| 453 |
+
324
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 5
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "",
|
| 460 |
+
"bbox": [
|
| 461 |
+
174,
|
| 462 |
+
376,
|
| 463 |
+
825,
|
| 464 |
+
460
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 5
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "4 EXPERIMENT ",
|
| 471 |
+
"text_level": 1,
|
| 472 |
+
"bbox": [
|
| 473 |
+
176,
|
| 474 |
+
481,
|
| 475 |
+
316,
|
| 476 |
+
496
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 5
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "In this section, to show the adequacy of our method, we first present comparison experiment with distance method and ablation study to analyze our method. Then we compare our approach with existing online knowledge distillation methods under different settings. First of all, we demonstrate results on using the same sub-network architectures in Sec 4.3. Then, we apply our method on subnetworks with different architectures in Sec 4.4. In Sec 4.5, we also show the results of training more than two networks to demonstrate that our method generalizes well even when the number of networks increases. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
512,
|
| 486 |
+
825,
|
| 487 |
+
608
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 5
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "In most of the experiments, we use the CIFAR-100 (Krizhevsky et al.) dataset. It consists of 50K training images and 10K test images over 100 classes, accordingly it has 600 images per each class. All the reported results on CIFAR-100 are average of 5 experiments. Since our method uses two loss terms, logit-based loss and feature map-based loss, we use different learning details for each loss term. For overall learning schedule, we follow the learning schedule of ONE(Lan et al., 2018) to conduct fair comparison which is 300 epochs of training. In terms of logit-based loss, the learning rate starts at 0.1 and is multiplied by 0.1 at 150, 225 epoch. We optimize the logit-based loss using SGD with mini-batch size of 128, momentum 0.9 and weight decay of 1e-4. This learning details for logit-based loss is equally applied to other compared online distillation methods. For feature map-based loss, the learning rate starts at 2e-5 for both discriminators and feature extractors and is decayed by 0.1 at 75, 150 epoch. The feature map-based loss is optimized by ADAM(Kingma & Ba, 2014) with the same mini-batch size and weight decay of 1e-1. ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
616,
|
| 497 |
+
825,
|
| 498 |
+
784
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 5
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "In tables, ‘2 Net Avg’ and ‘Ens’ represents the average accuracy of the two sub-networks and the ensemble accuracy respectively. The average ensemble is used for AFD, DML and KD while ONE uses gated ensemble of sub-networks according to its methodology. ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
176,
|
| 507 |
+
790,
|
| 508 |
+
823,
|
| 509 |
+
832
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 5
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": ".1 COMPARISON WITH DIRECT FEATURE MAP ALIGNMENT METHODS ",
|
| 516 |
+
"text_level": 1,
|
| 517 |
+
"bbox": [
|
| 518 |
+
186,
|
| 519 |
+
843,
|
| 520 |
+
666,
|
| 521 |
+
856
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 5
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "Since our goal is to distill feature map information that suits for mutual online distillation, we briefly compare our method with conventional direct alignment method in Table 1. We train two networks together, in one setting, we use the same architecture (ResNet-32 (He et al., 2016)) and in the other, we use different types (WRN-16-2, WRN-28-2 (Zagoruyko & Komodakis, 2016b)). For $L _ { 1 }$ , each network is trained not only to follow the ground-truth label by CE loss, but also to mimic the other network’s feature map using the $L _ { 1 }$ distance loss. For $L _ { 1 } +$ KD, KD (Hinton et al., 2015) loss is applied mutually along with the $L _ { 1 }$ loss between the feature maps. We also compare our results with offline method, $L 1 +$ KD (offline) employs a pre-trained network as a teacher network and distills its feature map knowledge to an untrained student network by $L 1$ loss as well as the KD loss at logit level. ResNet-32 and WRN-28-2 that shows $6 9 . 7 9 \\%$ and $7 3 . 6 2 \\%$ accuracy are used as the teacher networks in the two settings respectively. The results clearly show that learning the distributions of feature maps with adversarial loss performs better than direct alignment method in both mutual online distillation and offline distillation. We could observe that using $L _ { 1 }$ distance loss actually disturbs the networks to learn good features in online environment. The accuracy of ResNet-32 has dropped more than $2 \\%$ compared to its vanilla version accuracy $( 6 9 . 3 8 \\% )$ and the accuracy of WRN-16-2 is also lower than its vanilla network $( 7 1 . 0 7 \\% )$ . Even when combined with KD loss $( L 1 + \\mathrm { K D } )$ , direct alignment method shows poor performance compared to ours in both online and offline manner. Though distance loss is used in many conventional offline methods, they suffer when it comes to online environment. In case of different architecture types, our method also outperforms the direct alignment method. It indicates that when it comes to online feature map distillation, transferring feature map information with direct alignment method such as $L 1$ distance is worse than indirect distillation that uses feature map distribution via adversarial loss. ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
176,
|
| 530 |
+
867,
|
| 531 |
+
823,
|
| 532 |
+
924
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 5
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "table",
|
| 538 |
+
"img_path": "images/71b223c4a3a6959296498cc8094d50e582d7dfcbcc04f0a132f51dd4da0ff664.jpg",
|
| 539 |
+
"table_caption": [
|
| 540 |
+
"Table 1: Top-1 accuracy( $\\%$ ) comparison with direct alignment methods using CIFAR-100 dataset. "
|
| 541 |
+
],
|
| 542 |
+
"table_footnote": [],
|
| 543 |
+
"table_body": "<table><tr><td>Model Type</td><td colspan=\"2\">L1</td><td colspan=\"2\">L1+ KD</td><td colspan=\"3\">L1+KD(offline)</td><td colspan=\"2\">AFD</td><td colspan=\"2\"></td><td colspan=\"2\">Vanilla</td></tr><tr><td>Same Arch.</td><td>2 Net Avg</td><td>Ens</td><td>2 NetAvg</td><td></td><td>Ens</td><td>Student</td><td>Teacher</td><td>Ens</td><td></td><td>2 Net Avg</td><td>Ens</td><td>Net</td><td></td></tr><tr><td>ResNet-32</td><td>66.82</td><td>70.69</td><td></td><td>70.16</td><td>72.44</td><td>71.91</td><td>69.79</td><td>72.07</td><td>74.03</td><td></td><td>75.64</td><td>69.38</td><td></td></tr><tr><td>Different Arch.</td><td>Net1 Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Student</td><td>Teacher</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td></tr><tr><td>WRN-(16-2,28-2)</td><td>69.84 73.41</td><td>74.63</td><td>72.35</td><td>74.82</td><td>75.10</td><td>73.94</td><td>73.62</td><td>76.56</td><td>75.88</td><td>77.08</td><td>77.82</td><td>71.07</td><td>73.50</td></tr></table>",
|
| 544 |
+
"bbox": [
|
| 545 |
+
174,
|
| 546 |
+
143,
|
| 547 |
+
825,
|
| 548 |
+
194
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 6
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "table",
|
| 554 |
+
"img_path": "images/87b72e28a1c012cb97585365da685fbe4082722eabc68d30fa4933a4c15423fd.jpg",
|
| 555 |
+
"table_caption": [
|
| 556 |
+
"Table 2: Ablation study of AFD. Top-1 accuracy $\\% )$ on CIFAR-100 dataset. "
|
| 557 |
+
],
|
| 558 |
+
"table_footnote": [],
|
| 559 |
+
"table_body": "<table><tr><td>Model Type</td><td colspan=\"3\">w/o KD (Adv only)</td><td colspan=\"3\">w/o Adv (KD only)</td><td colspan=\"3\">Full model (AFD)</td></tr><tr><td>Same Arch.</td><td colspan=\"2\">2 Net Avg</td><td>Ens</td><td colspan=\"2\">2 Net Avg</td><td>Ens</td><td colspan=\"2\">2 Net Avg</td><td>Ens</td></tr><tr><td>ResNet-32</td><td colspan=\"2\">70.09</td><td>74.77</td><td colspan=\"2\">73.38</td><td>75.21</td><td colspan=\"2\">74.03</td><td>75.64</td></tr><tr><td>WRN-16-2</td><td colspan=\"2\">71.94</td><td>75.92</td><td colspan=\"2\">74.81</td><td>76.20</td><td colspan=\"2\">75.33</td><td>76.34</td></tr><tr><td>Different Arch.</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td></tr><tr><td>WRN-(16-2,28-2)</td><td>72.05</td><td>73.80</td><td>76.82</td><td>74.99</td><td>76.64</td><td>77.28</td><td>75.88</td><td>77.08</td><td>77.82</td></tr></table>",
|
| 560 |
+
"bbox": [
|
| 561 |
+
174,
|
| 562 |
+
229,
|
| 563 |
+
823,
|
| 564 |
+
319
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 6
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
334,
|
| 574 |
+
825,
|
| 575 |
+
584
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 6
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "4.2 ABLATION STUDY ",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
176,
|
| 585 |
+
603,
|
| 586 |
+
338,
|
| 587 |
+
616
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 6
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "Table 2 shows the ablation study of our proposed method. We conduct experiments using the same and different sub-network architectures. We run three experiments with different training settings for each model case. The three settings are full model, without mutual knowledge distillation at logitlevel and without adversarial feature map distillation. When trained without the adversarial feature map distillation, the accuracy decreases in all three model cases. The accuracy of both ResNet-32 and WRN-16-2 dropped by $0 . 6 5 \\%$ and $0 . 5 2 \\%$ respectively, and those of (WRN-16-2, WRN-28-2) pair declined by $0 . 8 9 \\%$ and $0 . 4 4 \\%$ compared to the full model. Ensemble results are also lower than those of the full models. When only the adversarial feature map distillation is applied, the accuracy has increased by $0 . 7 1 \\%$ and $0 . 8 7 \\%$ compared to the vanilla versions of ResNet-32 and WRN-16-2 respectively. Especially in case of different sub-network architecture, the accuracy of WRN-16-2 has increased by almost $1 \\%$ . Based on these experiments, we could confirm that adversarial feature map distillation has some efficacy of improving the performance in online environment. ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
174,
|
| 596 |
+
628,
|
| 597 |
+
825,
|
| 598 |
+
795
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 6
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "4.3 SAME ARCHITECTURE ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
176,
|
| 608 |
+
814,
|
| 609 |
+
366,
|
| 610 |
+
827
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 6
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "We compare our method with DML and ONE for training two sub-networks with the same architecture. The vanilla network refers to the original network trained without any distillation method. As shown in Table 3, in both ResNet and WRN serises, DML, ONE and AFD all improves the networks’ accuracy compared to the vanilla networks. However, AFD shows the highest improvement of performance in both sub-network and ensemble accuracy among the compared distillation methods. Especially in case of ResNet-20, ResNet-32 and WRN-16-2, our method significantly improves the accuracy by more than $4 \\%$ compared to the vanilla version while other distillation methods improve around $3 \\%$ on average except the ResNet-32 of DML. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
174,
|
| 619 |
+
840,
|
| 620 |
+
823,
|
| 621 |
+
922
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 6
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "table",
|
| 627 |
+
"img_path": "images/e933a56f64699856ab78d11436dd30f6fb1bc6682b60d12e1fa2d2248c62ad5b.jpg",
|
| 628 |
+
"table_caption": [
|
| 629 |
+
"Table 3: Top-1 accuracy $\\% )$ comparison with other online distillation methods for training two same architecture networks as a pair on the CIFAR-100 dataset. The numbers in parentheses refer to the amount of increase in accuracy compared to the vanilla network. "
|
| 630 |
+
],
|
| 631 |
+
"table_footnote": [],
|
| 632 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model Type</td><td colspan=\"2\">DML</td><td colspan=\"2\">ONE</td><td colspan=\"2\">AFD</td><td rowspan=\"2\">Vanila</td></tr><tr><td>2 Net Avg</td><td>Ens</td><td>2 Net Avg</td><td>Ens</td><td>2 Net Avg</td><td>Ens</td></tr><tr><td>ResNet-20</td><td>70.90(+3.42%)</td><td>72.08</td><td>70.56(+3.08%)</td><td>72.26</td><td>71.72(+4.24%)</td><td>72.98</td><td>67.48</td></tr><tr><td>ResNet-32</td><td>73.40(+4.02%)</td><td>74.89</td><td>72.61(+3.23%)</td><td>74.07</td><td>74.03(+4.65%)</td><td>75.64</td><td>69.38</td></tr><tr><td>ResNet-56</td><td>75.48(+1.64%)</td><td>76.73</td><td>76.45(+2.61%)</td><td>77.16</td><td>77.25(+3.41%)</td><td>78.35</td><td>73.84</td></tr><tr><td>WRN-16-2</td><td>74.68(+3.61%)</td><td>75.81</td><td>73.85(+2.78%)</td><td>74.84</td><td>75.33(+4.26%)</td><td>76.34</td><td>71.07</td></tr><tr><td>WRN-16-4</td><td>78.17(+2.79%)</td><td>79.06</td><td>77.32(+1.94%)</td><td>77.79</td><td>78.55(+3.17%)</td><td>79.28</td><td>75.38</td></tr><tr><td>WRN-28-2</td><td>77.02(+3.52%)</td><td>78.64</td><td>76.67(+3.17%)</td><td>77.40</td><td>77.22(+3.72%)</td><td>78.72</td><td>73.50</td></tr><tr><td>WRN-28-4</td><td>79.16(+2.56%)</td><td>80.56</td><td>79.25(+2.65%)</td><td>79.73</td><td>79.46(+2.86%)</td><td>80.65</td><td>76.60</td></tr></table>",
|
| 633 |
+
"bbox": [
|
| 634 |
+
173,
|
| 635 |
+
160,
|
| 636 |
+
825,
|
| 637 |
+
282
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 7
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "table",
|
| 643 |
+
"img_path": "images/b10a09248791568a1031ea046b46587a8e6cf524863e16cd90869fe74b15302f.jpg",
|
| 644 |
+
"table_caption": [
|
| 645 |
+
"Table 4: Top-1 accuracy $( \\% )$ comparison with other online distillation methods for training two different architectures as a pair on CIFAR-100 dataset. "
|
| 646 |
+
],
|
| 647 |
+
"table_footnote": [],
|
| 648 |
+
"table_body": "<table><tr><td colspan=\"2\">Model Types</td><td colspan=\"3\">KD</td><td colspan=\"3\">DML</td><td colspan=\"3\">AFD</td></tr><tr><td>Net1</td><td>Net2</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td></tr><tr><td>ResNet-32</td><td>ResNet-56</td><td>72.92</td><td>76.27</td><td>76.71</td><td>73.48</td><td>76.35</td><td>76.74</td><td>74.13</td><td>76.69</td><td>77.11</td></tr><tr><td>ResNet-32</td><td>WRN-16-4</td><td>72.67</td><td>77.26</td><td>76.94</td><td>73.48</td><td>77.43</td><td>77.01</td><td>74.43</td><td>77.82</td><td>77.67</td></tr><tr><td>ResNet-56</td><td>WRN-28-4</td><td>75.48</td><td>78.91</td><td>79.23</td><td>76.03</td><td>79.32</td><td>79.38</td><td>77.95</td><td>79.21</td><td>80.01</td></tr><tr><td>ResNet-20</td><td>WRN-28-10</td><td>70.08</td><td>78.17</td><td>76.12</td><td>71.03</td><td>77.70</td><td>75.78</td><td>72.62</td><td>77.83</td><td>76.70</td></tr><tr><td>WRN-16-2</td><td>WRN-16-4</td><td>74.87</td><td>77.42</td><td>77.30</td><td>74.87</td><td>77.17</td><td>76.96</td><td>75.81</td><td>78.00</td><td>77.84</td></tr><tr><td>WRN-16-2</td><td>WRN-28-2</td><td>74.86</td><td>76.45</td><td>77.29</td><td>75.11</td><td>76.91</td><td>77.24</td><td>75.88</td><td>77.08</td><td>77.82</td></tr><tr><td>WRN-16-2</td><td>WRN-28-4</td><td>74.51</td><td>78.18</td><td>77.60</td><td>74.95</td><td>78.23</td><td>77.67</td><td>76.23</td><td>78.26</td><td>78.28</td></tr><tr><td colspan=\"2\">Average</td><td>73.63</td><td>77.52</td><td>77.31</td><td>74.14</td><td>77.59</td><td>77.25</td><td>75.29</td><td>77.84</td><td>77.92</td></tr></table>",
|
| 649 |
+
"bbox": [
|
| 650 |
+
173,
|
| 651 |
+
342,
|
| 652 |
+
825,
|
| 653 |
+
477
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 7
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "",
|
| 660 |
+
"bbox": [
|
| 661 |
+
178,
|
| 662 |
+
500,
|
| 663 |
+
823,
|
| 664 |
+
527
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 7
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "4.4 DIFFERENT ARCHITECTURE ",
|
| 671 |
+
"text_level": 1,
|
| 672 |
+
"bbox": [
|
| 673 |
+
176,
|
| 674 |
+
547,
|
| 675 |
+
403,
|
| 676 |
+
560
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 7
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "In this section, we compare our method with DML and KD using different network architectures. We set Net2 as the higher capacity network. For KD, we use the ensemble of the two sub-networks as a teacher to mimic at every iteration. The difference with original KD (Hinton et al., 2015) is that it is an online learning method, not offline. We did not include ONE because ONE can not be applied in case where the sub-networks have different model types due to its architecture of sharing the lowlevel layers. In table 4, we could observe that our method shows better performance improvement than other methods in both Net1 and Net2 except for a couple of cases. The interesting result is that when AFD is applied, the performance of Net1 (smaller network) is improved significantly compared to other online distillation methods. This is because AFD can transfer the higher capacity network’s meaningful knowledge (feature map distribution) to the lower capacity one better than other online methods. When compared with KD and DML, AFD’s Net1 accuracy is higher by $1 . 6 6 \\%$ and $1 . 1 5 \\%$ and the ensemble accuracy is better by $0 . 6 1 \\%$ and $0 . 6 7 \\%$ on average respectively. In case of (WRN-16-2, WRN-28-4) pair, the Net1’s parameter size (0.70M) is more than 8 times smaller than Net2 (5.87M). Despite the large size difference, our method improves both networks’ accuracy, particularly our Net1 performance is better than KD and DML by $1 . 7 2 \\%$ and $1 . 2 8 \\%$ respectively. The performance of KD and DML seems to decline as the difference between the two model sizes gets larger. Throughout this experiment, we have shown that our method also works properly for different architectures of sub-networks even when two networks have large difference in their model sizes. Using our method, smaller network considerably benefits from the large network. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
573,
|
| 686 |
+
825,
|
| 687 |
+
835
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 7
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "4.5 EXPANSION TO 3 NETWORKS ",
|
| 694 |
+
"text_level": 1,
|
| 695 |
+
"bbox": [
|
| 696 |
+
176,
|
| 697 |
+
854,
|
| 698 |
+
416,
|
| 699 |
+
868
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 7
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "To show our method’s expandability for training more than two networks, we conduct experiment of training 3 networks in this section. As proposed in Sec 3.3, our method uses a cyclic learning framework rather than employing adversarial loss between every network pairs in order to reduce the amount of computation and memory. DML calculates the mutual knowledge distillation loss between every network pairs and uses the average of the losses. ONE generates a gated ensemble of the sub-networks and transfers the knowledge of the ensemble logit to each network. As it can be seen in Table 5, AFD outperforms the compared online distillation methods on both $3 \\ \\mathrm { N e t }$ average and ensemble accuracy in every model types. Comparing the results of Table 5 to that of Table 3, the overall tendency of performance gains compared to DML and ONE is maintained. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
176,
|
| 708 |
+
882,
|
| 709 |
+
823,
|
| 710 |
+
924
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 7
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "table",
|
| 716 |
+
"img_path": "images/e9a8f454cc8b61d91cf2be924ce2dc5ccf593f8dd14790c902383028d157ce60.jpg",
|
| 717 |
+
"table_caption": [
|
| 718 |
+
"Table 5: Top-1 accuracy $\\% )$ comparison with other online distillation methods using 3 networks on CIFAR-100 dataset. ’3 Net Avg’ represents the average accuracy of the 3 networks. "
|
| 719 |
+
],
|
| 720 |
+
"table_footnote": [],
|
| 721 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model Type</td><td colspan=\"2\">DML</td><td colspan=\"2\">ONE</td><td colspan=\"2\">AFD</td><td rowspan=\"2\">Vanilla</td></tr><tr><td>3 Net Avg</td><td>Ens</td><td>3 Net Avg</td><td>Ens</td><td>3 Net Avg</td><td>Ens</td></tr><tr><td>ResNet-32</td><td>73.43</td><td>76.11</td><td>73.25</td><td>74.94</td><td>74.14</td><td>76.64</td><td>69.38</td></tr><tr><td>ResNet-56</td><td>76.11</td><td>77.83</td><td>76.49</td><td>77.38</td><td>77.37</td><td>79.18</td><td>73.84</td></tr><tr><td>WRN-16-2</td><td>75.15</td><td>76.93</td><td>73.87</td><td>75.26</td><td>75.65</td><td>77.54</td><td>71.07</td></tr><tr><td>WRN-28-2</td><td>77.12</td><td>79.41</td><td>76.66</td><td>77.53</td><td>77.20</td><td>79.78</td><td>73.50</td></tr></table>",
|
| 722 |
+
"bbox": [
|
| 723 |
+
197,
|
| 724 |
+
146,
|
| 725 |
+
797,
|
| 726 |
+
234
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 8
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "table",
|
| 732 |
+
"img_path": "images/5065616fc6455458e6cc953de6b7d1a02899c0684a82747320321fc4c157f01d.jpg",
|
| 733 |
+
"table_caption": [
|
| 734 |
+
"Table 6: Top-1 accuracy( $\\textcircled{9}$ comparison with DML on ImageNet dataset. "
|
| 735 |
+
],
|
| 736 |
+
"table_footnote": [],
|
| 737 |
+
"table_body": "<table><tr><td colspan=\"2\">Model Types</td><td colspan=\"3\">DML</td><td colspan=\"3\">AFD</td><td colspan=\"2\">Vanilla</td></tr><tr><td>Net1</td><td>Net2</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td><td>Ens</td><td>Net1</td><td>Net2</td></tr><tr><td>ResNet-18</td><td>ResNet-34</td><td>70.19</td><td>73.57</td><td>73.33</td><td>70.39</td><td>74.00</td><td>74.47</td><td>69.76</td><td>73.27</td></tr></table>",
|
| 738 |
+
"bbox": [
|
| 739 |
+
181,
|
| 740 |
+
273,
|
| 741 |
+
816,
|
| 742 |
+
320
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 8
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "",
|
| 749 |
+
"bbox": [
|
| 750 |
+
173,
|
| 751 |
+
338,
|
| 752 |
+
825,
|
| 753 |
+
422
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 8
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "4.6 IMAGENET EXPERIMENT ",
|
| 760 |
+
"text_level": 1,
|
| 761 |
+
"bbox": [
|
| 762 |
+
174,
|
| 763 |
+
439,
|
| 764 |
+
388,
|
| 765 |
+
453
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 8
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "We evaluate our method on ImageNet dataset to show that our method can also be applicable to a large scale image dataset. We use ImageNet LSVRC 2015 (Russakovsky et al., 2015) which has 1.2M training images and 50K validation images over 1,000 classes. We compare our method with DML using two pre-trained networks ResNet-18 and ResNet-34 as a pair. The results are after 30 epochs of training. As shown in Table 6, our method improves the networks better than DML. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
174,
|
| 774 |
+
465,
|
| 775 |
+
825,
|
| 776 |
+
535
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 8
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "5 CONCLUSION ",
|
| 783 |
+
"text_level": 1,
|
| 784 |
+
"bbox": [
|
| 785 |
+
176,
|
| 786 |
+
554,
|
| 787 |
+
318,
|
| 788 |
+
570
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 8
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "We proposed an online knowledge distillation method that transfers the knowledge not only at logitlevel but also at feature map-level using the adversarial training scheme. Unlike existing online distillation methods, our method utilizes the feature map information and showed that knowledge transfer at feature map-level is possible even in an online environment. Through extensive experiments, we demonstrated the adequacy of adopting the distribution learning via adversarial training for online feature map distillation and could achieve better performance than existing online methods. We also introduced a novel cyclic learning framework for training multiple networks concurrently and presented its efficacy by comparing with existing approaches. We also confirmed that our method is broadly suitable to various architecture types from a very small network (ResNet-20) to a large (WRN-28-4) network. We hope that due to the work of our research, the area of knowledge distillation can be further advanced and studied by many researchers. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
174,
|
| 797 |
+
585,
|
| 798 |
+
825,
|
| 799 |
+
738
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 8
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "REFERENCES ",
|
| 806 |
+
"text_level": 1,
|
| 807 |
+
"bbox": [
|
| 808 |
+
174,
|
| 809 |
+
758,
|
| 810 |
+
285,
|
| 811 |
+
773
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 8
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In ˇ Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006. \nBo Dai, Sanja Fidler, Raquel Urtasun, and Dahua Lin. Towards diverse and natural image descriptions via a conditional gan. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2970–2979, 2017. \nIan Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
173,
|
| 820 |
+
781,
|
| 821 |
+
826,
|
| 822 |
+
924
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 8
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
103,
|
| 832 |
+
821,
|
| 833 |
+
146
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 9
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
171,
|
| 842 |
+
155,
|
| 843 |
+
823,
|
| 844 |
+
185
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 9
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1125–1134, 2017. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
194,
|
| 854 |
+
823,
|
| 855 |
+
237
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Jangho Kim, SeongUk Park, and Nojun Kwak. Paraphrasing complex network: Network compression via factor transfer. In Advances in Neural Information Processing Systems, pp. 2760–2769, 2018. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
173,
|
| 864 |
+
246,
|
| 865 |
+
823,
|
| 866 |
+
289
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 9
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
174,
|
| 875 |
+
299,
|
| 876 |
+
823,
|
| 877 |
+
327
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 9
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-100 (canadian institute for advanced research). URL http://www.cs.toronto.edu/˜kriz/cifar.html. ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
173,
|
| 886 |
+
337,
|
| 887 |
+
823,
|
| 888 |
+
366
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 9
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
375,
|
| 898 |
+
821,
|
| 899 |
+
417
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 9
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Xu Lan, Xiatian Zhu, and Shaogang Gong. Knowledge distillation by on-the-fly native ensemble. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pp. 7528–7538. Curran Associates Inc., 2018. ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
174,
|
| 908 |
+
428,
|
| 909 |
+
825,
|
| 910 |
+
470
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 9
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
169,
|
| 919 |
+
479,
|
| 920 |
+
823,
|
| 921 |
+
508
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 9
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Peiye Liu, Wu Liu, Huadong Ma, Tao Mei, and Mingoo Seok. Ktan: knowledge transfer adversarial network. arXiv preprint arXiv:1810.08126, 2018. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
169,
|
| 930 |
+
517,
|
| 931 |
+
823,
|
| 932 |
+
547
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 9
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2794–2802, 2017. ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
174,
|
| 941 |
+
556,
|
| 942 |
+
823,
|
| 943 |
+
601
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 9
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Takeru Miyato, Andrew M Dai, and Ian Goodfellow. Adversarial training methods for semisupervised text classification. arXiv preprint arXiv:1605.07725, 2016. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
173,
|
| 952 |
+
608,
|
| 953 |
+
823,
|
| 954 |
+
638
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "David Pfau and Oriol Vinyals. Connecting generative adversarial networks and actor-critic methods. arXiv preprint arXiv:1610.01945, 2016. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
173,
|
| 963 |
+
647,
|
| 964 |
+
823,
|
| 965 |
+
676
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
173,
|
| 974 |
+
685,
|
| 975 |
+
825,
|
| 976 |
+
729
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 9
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
173,
|
| 985 |
+
738,
|
| 986 |
+
825,
|
| 987 |
+
767
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 9
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
173,
|
| 996 |
+
776,
|
| 997 |
+
825,
|
| 998 |
+
833
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 9
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Jost Tobias Springenberg. Unsupervised and semi-supervised learning with categorical generative adversarial networks. arXiv preprint arXiv:1511.06390, 2015. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
171,
|
| 1007 |
+
843,
|
| 1008 |
+
823,
|
| 1009 |
+
872
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 9
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928, 2016a. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
174,
|
| 1018 |
+
882,
|
| 1019 |
+
825,
|
| 1020 |
+
922
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016b. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
103,
|
| 1030 |
+
823,
|
| 1031 |
+
132
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 10
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4320– 4328, 2018. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
174,
|
| 1040 |
+
140,
|
| 1041 |
+
823,
|
| 1042 |
+
184
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 10
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pp. 2223–2232, 2017. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
173,
|
| 1051 |
+
193,
|
| 1052 |
+
823,
|
| 1053 |
+
234
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 10
|
| 1056 |
+
}
|
| 1057 |
+
]
|
parse/train/Bkl086VYvH/Bkl086VYvH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bkl086VYvH/Bkl086VYvH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Goz-qsH1F14/Goz-qsH1F14.md
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Adaptive Machine Unlearning
|
| 2 |
+
|
| 3 |
+
Varun Gupta1, Christopher Jung1, Seth Neel2, Aaron Roth1, Saeed Sharifi-Malvajerdi1, and Chris Waites3
|
| 4 |
+
|
| 5 |
+
1University of Pennsylvania 2Harvard University 3Stanford University
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Data deletion algorithms aim to remove the influence of deleted data points from trained models at a cheaper computational cost than fully retraining those models. However, for sequences of deletions, most prior work in the non-convex setting gives valid guarantees only for sequences that are chosen independently of the models that are published. If people choose to delete their data as a function of the published models (because they don’t like what the models reveal about them, for example), then the update sequence is adaptive. In this paper, we give a general reduction from deletion guarantees against adaptive sequences to deletion guarantees against non-adaptive sequences, using differential privacy and its connection to max information. Combined with ideas from prior work which give guarantees for non-adaptive deletion sequences, this leads to extremely flexible algorithms able to handle arbitrary model classes and training methodologies, giving strong provable deletion guarantees for adaptive deletion sequences. We show in theory how prior work for non-convex models fails against adaptive deletion sequences, and use this intuition to design a practical attack against the SISA algorithm of Bourtoule et al. [2021] on CIFAR-10, MNIST, Fashion-MNIST.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Businesses like Facebook and Google depend on training sophisticated models on user data. Increasingly—in part because of regulations like the European Union’s General Data Protection Act and the California Consumer Privacy Act—these organizations are receiving requests to delete the data of particular users. But what should that mean? It is straightforward to delete a customer’s data from a database and stop using it to train future models. But what about models that have already been trained using an individual’s data? These are not necessarily safe; it is known that individual training data can be exfiltrated from models trained in standard ways via model inversion attacks [Shokri et al., 2017, Veale et al., 2018, Fredrikson et al., 2015]. Regulators are still grappling with when a trained model should be considered to contain personal data of individuals in the training set and the potential legal implications. In 2020 draft guidance, the U.K.’s Information Commissioner’s Office addressed how to comply with data deletion requests as they pertain to ML models:
|
| 14 |
+
|
| 15 |
+
If the request is for rectification or erasure of the data, this may not be possible without re-training the model...or deleting the model altogether [ICO, 2020].
|
| 16 |
+
|
| 17 |
+
Fully retraining the model every time a deletion request is received can be prohibitive in terms of both time and money—especially for large models and frequent deletion requests. The problem of data deletion (also known as machine unlearning) is to find an algorithmic middle ground between the compliant but impractical baseline of retraining, and the potentially illegal standard of doing nothing. We iteratively update models as deletion requests come in, with the twin goals of having computational cost that is substantially less than the cost of full retraining, and the guarantee that the models we produce are (almost) indistinguishable from the models that would have resulted from full retraining.
|
| 18 |
+
|
| 19 |
+
After an initial model is deployed deletion requests arrive over time as users make decisions about whether to delete their data. It is easy to see how these decisions may be adaptive with respect to the models. For example, security researchers may publish a new model inversion attack that identifies a specific subset of people in the training data, thus leading to increased deletion requests for people in that subset. In this paper we give the first machine unlearning algorithms that both have rigorous deletion guarantees against these kind of adaptive deletion sequence, and can accommodate arbitrary non-convex models like deep neural networks without requiring pretraining on non-user data.
|
| 20 |
+
|
| 21 |
+
# 1.1 Main Results
|
| 22 |
+
|
| 23 |
+
The deletion guarantees proven for several prior methods crucially rely on the implicit assumption that the points that are deleted are independent of the randomness used to train the models. However this assumption fails unless the sequence of deletion requests is chosen independently of the information that the model provider has made public. This is a very strong assumption, because users may wish to delete their data exactly because of what deployed models reveal about them.
|
| 24 |
+
|
| 25 |
+
We give a generic reduction. We show that if:
|
| 26 |
+
|
| 27 |
+
1. A data deletion algorithm $\mathcal { R } _ { A }$ for a learning algorithm $\mathcal { A }$ has deletion guarantees for oblivious sequences of deletion requests (as those from past work do), and 2. Information about the internal randomness of $\mathcal { R } _ { A }$ is revealed only in a manner that satisfies differential privacy, then
|
| 28 |
+
|
| 29 |
+
$( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ also satisfies data deletion guarantees against an adaptive sequence of deletion requests, that can depend in arbitrary ways on the information that the model provider has made public.
|
| 30 |
+
|
| 31 |
+
In Section 3, we motivate our main result with a theoretical example which illustrates that past method’s lack of guarantees for adaptive sequences is not simply a failure of analysis, but an actual failure of these methods to satisfy deletion guarantees for adaptive deletion sequences. As an exemplar, we use a variant of SISA from Bourtoule et al. [2021] that satisfies perfect deletion guarantees for non-adaptive deletion sequences and exhibit adaptive deletion sequences that strongly separate the resulting distribution on models compared to the retraining baseline.
|
| 32 |
+
|
| 33 |
+
The generic reduction found in Section 4 can be used to give adaptive data deletion mechanisms for a wide variety of problems by leveraging past work on deletion algorithms for non-adaptive sequences, and a line of work on differentially private aggregation [Papernot et al., 2018, Dwork and Feldman, 2018]. Since prior deletion algorithms themselves tend to use existing learning algorithms in a black-box way, the entire pipeline is modular and easy to bolt-on to existing methods. In Section 5, we show how this can be accomplished by using a variant of the SISA framework of Bourtoule et al. [2021] together with a differentially private aggregation method.
|
| 34 |
+
|
| 35 |
+
In Section 6, we complement our main result with a set of experimental results on CIFAR-10, MNIST, and Fashion-MNIST that demonstrate differential privacy may be useful in giving adaptive guarantees beyond the statement of our theorems. Specifically we show that small amounts of noise addition (insufficient for our theorems to apply) already serve to break the adaptive deletion strategies that we use to falsify the adaptive deletion guarantees in our experiments described in Section 3 and do so at minimal expense in model accuracy.
|
| 36 |
+
|
| 37 |
+
# 1.2 Related Work
|
| 38 |
+
|
| 39 |
+
Data deletion was introduced by Cao and Yang [2015]; we adopt the randomized formulation of Ginart et al. [2019]. Ginart et al. [2019] anticipate the problem of deletion requests that might be correlated with internal state of the algorithm, and define (and propose as a study for future work) robust data deletion which is a data deletion guarantee that holds for adversaries with knowledge of the internal state. Our insight is that we can provide deletion guarantees against adaptive sequences by instead obscuring the internal state of the algorithm using techniques from differential privacy.
|
| 40 |
+
|
| 41 |
+
We are the first to explicitly consider the problem of adaptive sequences of deletion requests, but some techniques from past work do have deletion guarantees that extend to adaptive sequences. Deterministic methods and methods that depend only on randomness that is sampled after the deletion request are already robust to adaptive deletion. This includes techniques that find an approximately optimal solution to a strongly convex problem and then perturb the solution to obscure the optimizer within a small radius e.g. Guo et al. [2019], Neel et al. [2021], Sekhari et al. [2021]. It also includes the approach of Golatkar et al. [2020a,b] which pre-trains a nonconvex model on data that will never be deleted and then does convex fine-tuning on user data on top of that. Techniques whose deletion guarantees depend on randomness sampled at training in general do not have guarantees against adaptive deletions. This includes algorithms given in Ginart et al. [2019], Bourtoule et al. [2021], Neel et al. [2021] — the SISA framework of Bourtoule et al. [2021] being of particular interest as it is agnostic to the class of models and training methodology, and so is extremely flexible.
|
| 42 |
+
|
| 43 |
+
Differential privacy has been used as a mitigation for adaptivity since the work of Dwork et al. [2015c,a]. In machine learning, it has been used to mitigate the bias of adaptive data gathering strategies as used in bandit learning algorithms [Neel and Roth, 2018]. The application that is most similar to our work is Hassidim et al. [2020], which uses differential privacy of the internal randomness of an algorithm (as we do) to reduce streaming algorithms with guarantees against adaptive adversarial streams to streaming algorithms with guarantees against oblivious adversaries. Our techniques differ; while Hassidim et al. [2020] reduce to the so-called “transfer theorem for linear and low sensitivity queries” developed over a series of works Dwork et al. [2015c], Bassily et al. [2021], Jung et al. [2020], we use a more general connection between differential privacy and “max-information” established in Dwork et al. [2015b], Rogers et al. [2016].
|
| 44 |
+
|
| 45 |
+
# 2 Preliminaries
|
| 46 |
+
|
| 47 |
+
Let $\mathcal { Z }$ be the data domain. A dataset $D$ is a multi-set of elements from $\mathcal { Z }$ . We consider update requests of two types: deletion and addition. These update requests are formally defined below, similar to how they are defined in [Neel et al., 2021].
|
| 48 |
+
|
| 49 |
+
Definition 2.1 (Update Operations and Sequences). An update $u$ is a pair $( z , \bullet )$ where $z \in { \mathcal { Z } }$ is $a$ datapoint and $\bullet \in \mathcal { T } = \{ ^ { \prime } \mathbf { a d d } ^ { \prime } , ^ { \prime } \mathbf { d e l e t e } ^ { \prime } \}$ determines the type of the update. An update sequence $U$ is a sequence $( u ^ { 1 } , u ^ { 2 } , \ldots )$ where $u ^ { t } \in \mathcal { Z } \times \mathcal { T }$ for all $t$ . Given a dataset $D$ and an update $u = ( z , \bullet )$ , the update operation is defined as:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
D \circ u \triangleq { \left\{ { D \cup \{ z \} } \quad i f \bullet = { ' } { \mathsf { a d d } } ^ { \prime } \right.} _ { D \setminus \{ z \} } _ { i f \bullet = { ' } { \mathsf { d e l e t e } } ^ { \prime } }
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
Given an update sequence $U = ( u ^ { 1 } , u ^ { 2 } , \ldots ) ;$ , we have $D \circ U \triangleq ( ( ( D \circ u ^ { 1 } ) \circ u ^ { 2 } ) \circ \ldots ) .$ .
|
| 56 |
+
|
| 57 |
+
We use $\Theta$ to denote the space of models. A learning or training algorithm is a mapping $\mathcal { A } : \mathcal { Z } ^ { * } \to \Theta ^ { * }$ that maps a dataset $D \in { \mathcal { Z } } ^ { * }$ to a collection of models $\theta \in \Theta ^ { * }$ . An unlearning or update algorithm for $\mathcal { A }$ is a mapping $\mathcal { R } _ { A } : \mathcal { Z } ^ { * } \times ( \mathcal { Z } \times \mathcal { T } ) \times \mathcal { S } \to \Theta ^ { * }$ which takes in a data set $D \in { \mathcal { Z } } ^ { * }$ , an update request $u \in \mathcal { Z } \times \mathcal { T }$ , and some current state for the algorithms $s \in S$ (the domain $s$ can be arbitrary), and outputs an updated collection of models $\theta ^ { \prime } \in \Theta ^ { * }$ . In this paper we consider a setting in which a stream of update requests arrive in sequence. We note that in this sequential framework, the update algorithm $\mathcal { R } _ { A }$ also updates the state of the algorithm after each update request is processed; however, for notational economy, we do not explicitly write the updated state as an output of the algorithm.
|
| 58 |
+
|
| 59 |
+
At each round, we provide access to the models through a mapping $f _ { \mathrm { p u b l i s h } } ^ { t } : \Theta ^ { * } \to \Psi$ that takes in the collection of models and outputs some object $\psi \in \Psi$ . A published object $\psi \in \Psi$ can, for instance, be the aggregate predictions of the learned models on a data set, or, some aggregation of the models. To model adaptively chosen update sequences, we define an arbitrary “update requester” who interacts with the learning and unlearning algorithms $( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ through the publishing function $f _ { \mathrm { p u b l i s h } }$ in rounds to generate a sequence of updates. The update requester is denoted by UpdReq and defined in Definition 2.2, and the interaction between the algorithms and the update requester is described in Algorithm 1.
|
| 60 |
+
|
| 61 |
+
Throughout we will use $u ^ { t }$ to denote the update request at round $t$ . We will use $D ^ { t }$ to denote the data set at round $t$ : $D ^ { 0 }$ is the initial training data set and for all $t \geq 1$ , $D ^ { t } = D ^ { t - 1 } \circ u ^ { t }$ . We will use $\theta ^ { t }$ to denote the learned models at round $t$ : $\theta ^ { 0 }$ is generated by the initial training algorithm $\mathcal { A }$ , and $\theta ^ { t }$ for $t \geq 1$ denotes the updated models at round $t$ generated by the update algorithm $\mathcal { R } _ { A }$ . $\psi ^ { t }$ denotes the published object at round $t$ : $\psi ^ { t } = f _ { \mathrm { p u b l i s h } } ^ { t } ( \theta ^ { t } )$ .
|
| 62 |
+
|
| 63 |
+
Algorithm 1: Interaction between $( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ and UpdReq
|
| 64 |
+
|
| 65 |
+
<table><tr><td></td><td>1: Input: Data set D</td></tr><tr><td>2:</td><td>Let D°← D.</td></tr><tr><td>3:</td><td>Train 0° ← A(D).</td></tr><tr><td>4:</td><td>Publish y0←pubish(00).</td></tr><tr><td>5:</td><td> Save the initial state so.</td></tr><tr><td>6:</td><td>for t = 1,2,... do</td></tr><tr><td>7:</td><td> The update requester requests a new update, given the history of interaction:</td></tr><tr><td>8:</td><td>ut←UpdReq(o,u¹,1,u², ,ut-1,γt-1).</td></tr><tr><td>9:</td><td>The algorithms update, given ut:</td></tr><tr><td>10:</td><td>Update the models 0t ← RA (Dt-1,ut,st-1).</td></tr><tr><td>11:</td><td>Publish bt ← fpubish (0t).</td></tr><tr><td>12:</td><td>Save the updated state st .</td></tr><tr><td>13:</td><td>Update the data set Dt ← Dt-1 o ut .</td></tr></table>
|
| 66 |
+
|
| 67 |
+
Definition 2.2 (Update Requester (UpdReq)). The update sequence is generated by an update requester which is modeled by a (possibly randomized) mapping UpdReq : $\Psi ^ { * } \times ( \mathcal { Z } \times \mathcal { T } ) ^ { * } ( \mathcal { Z } \times \mathcal { T } )$ that takes as input the history of interaction between herself and the algorithms, and outputs a new update for the current round. Given an update requester UpdReq, algorithms $( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ and publishing functions $\{ f _ { p u b l i s h } ^ { t } \} _ { t }$ , the update sequence $U = \{ u ^ { t } \} _ { t }$ can be written as
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\boldsymbol { u } ^ { 1 } = \mathrm { U p d R e q } \left( \boldsymbol { \psi } ^ { 0 } \right) , \boldsymbol { u } ^ { 2 } = \mathrm { U p d R e q } \left( \boldsymbol { \psi } ^ { 0 } , \boldsymbol { u } ^ { 1 } , \boldsymbol { \psi } ^ { 1 } \right) , \boldsymbol { \cdot } , \boldsymbol { \cdot } , \boldsymbol { u } ^ { t } = \mathrm { U p d R e q } \left( \boldsymbol { \psi } ^ { 0 } , \boldsymbol { u } ^ { 1 } , \boldsymbol { \psi } ^ { 1 } , \boldsymbol { \cdot } , \boldsymbol { \cdot } , \boldsymbol { u } ^ { t - 1 } , \boldsymbol { \psi } ^ { t - 1 } \right)
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
We say an update requester UpdReq is nonadaptive if it is independent of the published objects, i.e., if there exists a mapping UpdR $\mathfrak { s q } ^ { \prime } : ( \mathcal { Z } \times \mathcal { T } ) ^ { \ast } ( \mathcal { Z } \times \mathcal { T } )$ such that for all $t \geq 1$ ,
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
u ^ { t } = \mathtt { U p d R e q } \left( \psi ^ { 0 } , u ^ { 1 } , \psi ^ { 1 } , u ^ { 2 } , \ldots , u ^ { t - 1 } , \psi ^ { t - 1 } \right) = \mathtt { U p d R e q } ^ { \prime } \left( u ^ { 1 } , u ^ { 2 } , \ldots , u ^ { t - 1 } \right)
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
This is equivalent to saying that the update sequence is fixed before the interaction occurs.
|
| 80 |
+
|
| 81 |
+
Following [Ginart et al., 2019], we propose the following definition for an unlearning algorithm in the sequential update setting ([Ginart et al., 2019] gives a definition for a single deletion request, whereas here we define a natural extension for an arbitrarily long sequence of deletions, as well as additions, that can be chosen adaptively.). Informally, we require that at every round, and for all possible update requesters, with high probability over the draw of the update sequence, no subset of models resulting from deletion occurs with substantially higher probability than it would have under full retraining.
|
| 82 |
+
|
| 83 |
+
Definition 2.3 $( \alpha , \beta , \gamma )$ -unlearning). We say that $\mathcal { R } _ { A }$ is an $( \alpha , \beta , \gamma )$ -unlearning algorithm for $\mathcal { A }$ if for all datasets $D = D ^ { 0 }$ and all update requesters UpdReq, the following condition holds: For every update step $t \geq 1$ , with probability at least $1 - \gamma$ over the draw of the update sequence $u ^ { \le t } \overset { \cdot } { = } \hat { ( } u ^ { 1 } , \ldots , \overset { \cdot } { u } ^ { t } )$ from UpdReq,
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array} { r } { \forall E \subseteq \Theta ^ { * } : \quad \operatorname* { P r } \left[ \mathcal { R } _ { { \cal A } } \left( D ^ { t - 1 } , u ^ { t } , s ^ { t - 1 } \right) \in E \middle | u ^ { \leq t } \right] \leq e ^ { \alpha } \cdot \operatorname* { P r } \left[ { \cal A } \left( D ^ { t } \right) \in E \right] + \beta } \end{array}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
We say $\mathcal { R } _ { A }$ is a nonadaptive $( \alpha , \beta , \gamma )$ -unlearning algorithm for $\mathcal { A }$ if the above condition holds for any nonadaptive UpdReq.
|
| 90 |
+
|
| 91 |
+
Remark 2.1. Our definition of unlearning is reminiscent of differential privacy, but following [Ginart et al., 2019], we ask only for $a$ one-sided guarantee: that the probability of any event under the unlearning scheme is not too much larger than the probability of the same event under full retraining, but not vice versa. The reason is that we do not want there to be events that can substantially increase an observer’s confidence that we did not engage in full retraining, but we do not object to observers who strongly update their beliefs that we did engage in full retraining. Our events $E$ are defined directly over the sets of models in $\Theta ^ { * }$ output by $\mathcal { A }$ and $\mathcal { R } _ { A }$ — note that because of information processing inequalities, this is only stronger than defining events $E$ over the observable outcome space $\Psi$ .
|
| 92 |
+
|
| 93 |
+
# 2.1 Differential Privacy and Max-Information
|
| 94 |
+
|
| 95 |
+
Differential privacy will be a key tool in our results. Let $\mathcal { X }$ denote an arbitrary data domain. We use $x \in \mathcal { X }$ to denote an individual element of $\mathcal { X }$ , and $X \in \mathcal { X } ^ { \ast }$ to denote a collection of elements from $\mathcal { X }$ — which we call a data set. We say two data sets $X , X ^ { \prime } \in { \mathcal { X } } ^ { * }$ are neighboring if they differ in at most one element. We say an algorithm $M : \mathcal { X } ^ { n } \mathcal { O }$ is differentially private if its output distributions on neighboring data sets are close, formalized below.
|
| 96 |
+
|
| 97 |
+
Definition 2.4 (Differential Privacy (DP) [Dwork et al., 2006b,a]). An algorithm $M : \mathcal { X } ^ { m } \mathcal { O }$ is $( \epsilon , \delta )$ -differentially private, if for every neighboring $X$ and $X ^ { \prime }$ , and for every $O \subseteq { \mathcal { O } }$ , we have $\mathrm { P r } \left[ M ( X ) \in O \right] \leq e ^ { \epsilon } \mathrm { P r } \left[ M ( \dot { X } ^ { \prime } ) \in O \right] + \delta$ .
|
| 98 |
+
|
| 99 |
+
We remark at the outset that the “datasets” to which we will eventually ask for differential privacy with respect to will not be the datasets on which our learning algorithms are trained, but will instead be collections of random bits parameterizing our randomized algorithms.
|
| 100 |
+
|
| 101 |
+
Differentially private algorithms are robust to data-independent post-processing:
|
| 102 |
+
|
| 103 |
+
Lemma 2.1 (Post-processing preserves DP [Dwork et al., 2006b]). If $M : \mathcal { X } ^ { m } \mathcal { O }$ is $( \epsilon , \delta )$ - differentially private, then for all $f : \mathcal { O } \mathcal { R }$ , we have $f \circ M : \mathcal { X } ^ { m } \mathcal { R }$ defined by $f \circ M ( X ) =$ $f ( M ( X ) )$ is $( \epsilon , \delta )$ -differentially private.
|
| 104 |
+
|
| 105 |
+
The max-information between two jointly distributed random variables measures how close their joint distribution is to the product of their corresponding marginal distributions.
|
| 106 |
+
|
| 107 |
+
Definition 2.5 (Max-Information [Dwork et al., 2015b]). Let $X$ and $Y$ be jointly distributed random variables over the domain $( \mathcal { X } , \mathcal { Y } )$ . The $\beta$ -approximate max-information between $X$ and $Y$ is:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
I _ { \infty } ^ { \beta } ( X ; Y ) = \log \operatorname* { s u p } _ { \substack { E \subseteq ( \mathcal { X } , \mathcal { Y } ) , \operatorname* { P r } [ ( X , Y ) \in E ] > \beta } } \frac { \operatorname* { P r } [ ( X , Y ) \in E ] - \beta } { \operatorname* { P r } [ ( X \otimes Y ) \in E ] }
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
where $( X \otimes Y )$ represents the product distribution of $X$ and $Y$ .
|
| 114 |
+
|
| 115 |
+
The max-information of an algorithm $M$ that takes a dataset $X$ as input and outputs $M ( X )$ , is defined as the max-information between $X$ and $M ( X )$ for the worst case product distribution over $X$ :
|
| 116 |
+
|
| 117 |
+
Definition 2.6 (Max-Information of an Algorithm [Dwork et al., 2015b]). Let $M : \mathcal { X } ^ { m } \mathcal { O }$ be an Algorithm. We say $M$ has $\beta$ -approximate max-information of $k$ , written $T _ { \infty } ^ { \beta } ( M , m ) \leq k$ , if for every distribution $\mathcal { P }$ over $\mathcal { X }$ , we have $I _ { \infty } ^ { \beta } ( X ; M ( X ) ) \le k$ when $X \sim \mathcal { P } ^ { m }$ .
|
| 118 |
+
|
| 119 |
+
In this paper, we will use the fact that differentially private algorithms have bounded max-information:
|
| 120 |
+
|
| 121 |
+
Theorem 2.1 (DP implies bounded max-information [Rogers et al., 2016]). Let $M : \mathcal { X } ^ { m } \mathcal { O }$ be an $( \epsilon , \delta )$ -differentially private algorithm for $0 < \epsilon \le 1 / 2$ and $0 < \delta < \epsilon$ . Then, $I _ { \infty } ^ { \beta } ( M , m ) =$ $O \left( \epsilon ^ { 2 } m + m \sqrt { \delta / \epsilon } \right) f o r \beta = e ^ { - \epsilon ^ { 2 } m } + O \left( m \sqrt { \delta / \epsilon } \right) .$ .
|
| 122 |
+
|
| 123 |
+
# 3 Falsifying Unlearning Guarantees with Adaptivity
|
| 124 |
+
|
| 125 |
+
In this section we demonstrate that the deletion guarantees of algorithms in the SISA framework [Bourtoule et al., 2021] fail for adaptive deletion sequences. We give a clean toy construction which shows algorithms in the SISA framework fail to have nontrivial adaptive deletion guarantees even in the black-box setting when the models within each shard are not made public, only aggregations of their classification outputs. In the Appendix we experimentally evaluate a more realistic instantiation of this construction.
|
| 126 |
+
|
| 127 |
+
The setting we consider directly corresponds to the setting in which our final algorithms operate: what is made public is the aggregate predictions of the ensemble of models, but not the models themselves. For non-adaptive sequences of deletions, distributed algorithms of the sort described in Section 5 have perfect deletion guarantees. We demonstrate via a simple example that these guarantees dramatically fail for adaptive deletion sequences.
|
| 128 |
+
|
| 129 |
+
Suppose we have a dataset consisting of real-valued points with binary labels $\{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { 2 n }$ , $x _ { i } \in \mathbb { R } ^ { d }$ $y _ { i } \ \stackrel { - } { \in } \ \{ 0 , 1 \}$ in which there are exactly two copies of each distinct training example. Consider a simplistic classification model, resembling a lookup table, which given a point $x _ { i }$ predicts the label $y _ { i }$ if the model has been trained on $( x _ { i } , y _ { i } )$ and a dummy prediction value " $" \perp "$ otherwise:
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
f _ { \mathcal { D } } ( x _ { i } ) = \left\{ \begin{array} { l l } { y _ { i } } & { \mathrm { i f } \left( x _ { i } , y _ { i } \right) \in \mathcal { D } , } \\ { \perp } & { \mathrm { o t h e r w i s e } } \end{array} \right.
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
Consider what happens when the training algorithm randomly partitions this dataset into three pieces and trains such a model on each partition. This constructs an ensemble which, at query time, predicts the class with the majority vote. On this dataset, the ensemble will predict the labels of roughly $2 / 3$ of the training points correctly—that is, exactly those points for which the duplicates have fallen into distinct partitions, so that the ensemble gets the majority vote right.
|
| 136 |
+
|
| 137 |
+
We construct an adaptive adversary who chooses to delete exactly those training points that the ensemble correctly classifies (which are those points for whom the duplicates have fallen into distinct shards). The result is that the model resulting from this deletion sequence will misclassify every remaining training point. Full retraining (because it would rerandomize the partition) would again lead to training accuracy of approximately $2 / 3$ . Recalling that our deletion notion requires that the probability of any event under the unlearning scheme is not much larger than the probability of the same event under full retraining, this demonstrates that there are algorithms in the SISA framework — even if the models are not directly exposed — that do not satisfy $( \alpha , \beta , \gamma )$ -deletion guarantees for any nontrivial value of $\alpha$ . We formalize this below:
|
| 138 |
+
|
| 139 |
+
Theorem 3.1. There are learning and unlearning algorithms in the SISA framework $( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ such that for any $\alpha _ { i }$ , and any $\beta , \gamma < 1 / 4$ , $\mathcal { R } _ { A }$ is not an $( \alpha , \beta , \gamma )$ -unlearning algorithm for $\mathcal { A }$ .
|
| 140 |
+
|
| 141 |
+
A proof of this theorem can be found in the appendix.
|
| 142 |
+
|
| 143 |
+
# 4 A Reduction from Adaptive to Nonadaptive Update Requesters
|
| 144 |
+
|
| 145 |
+
In our analysis we imagine without loss of generality that the learning algorithm $\mathcal { A }$ draws an i.i.d. sequence of random variables $r \sim \mathcal { P } ^ { m }$ (that encodes all the randomness to be used over the course of the updates) from some distribution $\mathcal { P }$ , and passes it to the unlearning algorithm $\mathcal { R } _ { A }$ . Note $r$ is drawn once in the initial training, and given $r$ , $\mathcal { A }$ and $\mathcal { R } _ { A }$ become deterministic mappings. We can also view the state $s ^ { t }$ as a deterministic mapping of $r$ , the update requests so far $u ^ { \le t } = ( \bar { u ^ { 1 } } , \dots , u ^ { t } )$ , and the original data set $D ^ { 0 }$ . We write $s ^ { t } = g ^ { t } \bar { ( } D ^ { 0 } , u ^ { \le t } , r \bar { ) }$ for some deterministic mapping $g ^ { t }$ . We can therefore summarize the trajectory of the algorithms $( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ as follows.
|
| 146 |
+
|
| 147 |
+
In this view, the randomness $r$ used by the learning algorithm $\mathcal { A }$ and the subsequent invocations of the unlearning algorithm $\mathcal { R } _ { A }$ is represented as part of the internal state. Past analyses of unlearning algorithms have crucially assumed that $r$ is statistically independent of the updates $( \dot { u } ^ { 1 } , u ^ { 2 } , \dots )$ (which is the case for non-adaptive update requesters, but not for adaptive update requesters). In the following general theorem, we show that if a learning/unlearning pair satisfies unlearning guarantees against non-adaptive update requesters, and the publishing function is differentially private in the internal randomness $r$ , then the resulting algorithms also satisfy unlearning guarantees against adaptive update requesters. Note that what is important is that the publishing algorithms are differentially private in the internal randomness $r$ , not in the datapoints used for training.
|
| 148 |
+
|
| 149 |
+
Theorem 4.1 (A General Theorem). Fix a pair of learning and unlearning algorithms $( \mathcal { A } , \mathcal { R } _ { \mathcal { A } } )$ and the publishing functions $\{ f _ { p u b l i s h } ^ { t } \} _ { t }$ . Suppose for every round $t$ , the sequence of publishing functions $\{ f _ { p u b l i s h } ^ { t ^ { \prime } } \} _ { t ^ { \prime } \leq t }$ is $( \epsilon , \delta )$ -differentially private in $r \sim \mathcal { P } ^ { m }$ , for $0 < \epsilon \le 1 / 2$ and $0 < \delta < \epsilon$ . Suppose $\mathcal { R } _ { A }$ is a non-adaptive $( \alpha , \beta , \gamma )$ -unlearning algorithm for $\mathcal { A }$ . Then $\mathcal { R } _ { A }$ is an $( \alpha ^ { \prime } , \beta ^ { \prime } , \gamma ^ { \prime } )$ -unlearning algorithm for $\mathcal { A }$ for $\alpha ^ { \prime } = \alpha + \epsilon ^ { \prime } , \beta ^ { \prime } = \beta e ^ { \epsilon ^ { \prime } } + \sqrt { \delta ^ { \prime } } , \gamma ^ { \prime } = \gamma + \sqrt { \delta ^ { \prime } }$ where $\epsilon ^ { \prime } = O \left( \epsilon ^ { 2 } m + m \sqrt { \delta / \epsilon } \right)$ and $\delta ^ { \prime } = e ^ { - \epsilon ^ { 2 } m } + O \left( m \sqrt { \delta / \epsilon } \right) .$ .
|
| 150 |
+
|
| 151 |
+
The proof can be found in the Appendix, but at an intuitive level, it proceeds as follows. Because it does not change the joint distribution on update requests and internal state, we can imagine in our analysis that $r$ is redrawn after each update request from its conditional distribution, conditioned on the observed update sequence so far. Because the publishing function is differentially private in $r$ , by the fact that post-processing preserves differential privacy (Lemma 2.1), so is the update sequence. We may therefore apply the max-information bound (Theorem 2.1), which allows us to relate the conditional distribution on $r$ to its original (prior) distribution $\mathcal { P } ^ { m }$ . But resampling $r$ from $\mathcal { P } ^ { m }$ removes the dependence between $r$ and the update sequence, which places us in the non-adaptive case, and allows us to apply the hypothesized unlearning guarantees for nonadaptive update requesters.
|
| 152 |
+
|
| 153 |
+
Algorithm 2: ${ \mathcal { A } } ^ { \mathrm { d i s t r } }$ : Distributed Learning Algorithm
|
| 154 |
+
|
| 155 |
+
<table><tr><td>Input: dataset D = D° of size n Draw the shards: D = Sampler(D°,p), for every i ∈ [k]. Train the models: 0 = Asingle(D),for every i∈ [k]. Save the state: s°= ({D'}i∈[k],{}iε[k]) // to be used for the 1st update.</td></tr></table>
|
| 156 |
+
|
| 157 |
+
# 5 Distributed Algorithms
|
| 158 |
+
|
| 159 |
+
In this section, we describe a general family of distributed learning and unlearning algorithms that are in the spirit of the “SISA” framework of Bourtoule et al. [2021] (with one crucial modification). At a high level, the SISA framework operates by first randomly dividing the data into $k$ “shards”, and separately training a model on each shard. When a new point is deleted, it is removed from the shards that contained it, and only the models corresponding to those shards are retrained. The flexibility of this methodology is that the models and training procedures used in each shard can be arbitrary, as can the aggregation done at the end to convert the resulting ensemble into predictions: however these choices are instantiated, this framework gives a $( 0 , 0 , 0 )$ -unlearning algorithm against any non-adaptive update requester (Lemma 5.1). Here we show that if the $k$ shards are selected independently of one another, then we can apply our reduction given in the previous section with $m = k$ and obtain algorithms that satisfy deletion guarantees against adaptive update requesters.
|
| 160 |
+
|
| 161 |
+
A distributed learning algorithm $\mathcal { A } ^ { \mathrm { d i s t r } } : \mathcal { Z } ^ { * } \to \Theta ^ { * }$ is described by a single-shard learning algorithm $\mathcal { A } ^ { \mathrm { s i n g l e } } : \mathcal { Z } ^ { * } \to \Theta$ and a routine Sampler, used to select the points in a shard. Sampler, given a dataset $D$ and some probability $p \in [ 0 , 1 ]$ , includes each element of $D$ in the shard with probability $p$
|
| 162 |
+
|
| 163 |
+
Distributed learning algorithm ${ \mathcal { A } } ^ { \mathrm { d i s t r } }$ creates $k$ independent shards from the dataset $D$ of size $n$ by running Sampler $k$ times and training a model with $\bar { \mathcal { A } } ^ { \mathrm { s i n g l e } }$ on each shard $i \in [ k ]$ to form an ensemble of $k$ models. To emphasize that the randomness across shards is independent, we will instantiate $k$ independent samplers $\mathtt { S a m p l e r } _ { i }$ and training algorithms $\mathcal { A } _ { i } ^ { \mathrm { s i n g l e } }$ for each shard $i \in [ k ]$ . We formally describe ${ \mathcal { A } } ^ { \mathrm { d i s t r } }$ in Algorithm 2.
|
| 164 |
+
|
| 165 |
+
The state $s$ of the unlearning algorithm ${ \mathcal { R } } _ { A ^ { \mathrm { d i s t r } } }$ records the $k$ shards $\{ D _ { i } \} _ { i }$ and the ensemble of $k$ models $\{ \theta _ { i } \} _ { i }$ . Thus $\mathcal { S } = \{ \mathcal { Z } ^ { * } \} ^ { k } \times \Theta ^ { k }$ . As an update request $u$ is received, the update function removes the data point from every shard that contains it (for deletion) or adds the new point to each shard with probability $p$ (for addition). In either case, only the models corresponding to shards that have been updated are retrained using $\mathcal { A } ^ { \mathrm { s i n g l e } }$ . We formally describe ${ \mathcal { R } } _ { A ^ { \mathrm { d i s t r } } }$ in Algorithm 3.
|
| 166 |
+
|
| 167 |
+
First, we show that if the update requester is non-adaptive, ${ \mathcal { R } } _ { A ^ { \mathrm { d i s t r } } }$ is a $( 0 , 0 , 0 )$ -unlearning algorithm: Lemma 5.1. $\mathcal { R } _ { \mathcal { A } ^ { d i s t r } }$ is a non-adaptive $( 0 , 0 , 0 )$ -unlearning algorithm for $\mathcal { A } ^ { d i s t r }$ .
|
| 168 |
+
|
| 169 |
+
Now, by combining Lemma 5.1 and our general Theorem 4.1, we can show the following:
|
| 170 |
+
|
| 171 |
+
Theorem 5.1 (Unlearning Guarantees). If for every round $t$ , the sequence of publishing functions $\{ f _ { p u b l i s h } ^ { t ^ { \prime } } \} _ { t ^ { \prime } \leq t }$ is $( \epsilon , \delta )$ -differentially private in the random seeds $r \sim \mathcal { P } ^ { k }$ of the algorithms for $0 < \epsilon \leq 1 / 2$ and $0 < \delta < \epsilon _ { \cdot }$ , then $\mathcal { R } _ { \mathcal { A } ^ { d i s t r } }$ is an $( \alpha , \beta , \gamma )$ -unlearning algorithm for $\mathcal { A } ^ { d i s t r }$ where
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
\alpha = O \left( \epsilon ^ { 2 } k + k \sqrt { \delta / \epsilon } \right) , \quad \beta = \gamma = O \left( \sqrt { e ^ { - \epsilon ^ { 2 } k } + k \sqrt { \delta / \epsilon } } \right)
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
Next, we bound the time complexity of our algorithms:
|
| 178 |
+
|
| 179 |
+
Input: dataset $D ^ { t - 1 }$ , update $u ^ { t } = ( z ^ { t } , \bullet ^ { t } )$ , state $s ^ { t - 1 } = ( \{ D _ { i } ^ { t - 1 } \} _ { i \in [ k ] } , \{ \theta _ { i } ^ { t - 1 } \} _ { i \in [ k ] } )$
|
| 180 |
+
if $\bullet ^ { t } = { } ^ { \prime } \mathtt { d e l e t e } ^ { \prime }$ then $S = \left\{ i \in [ k ] : z ^ { t } \in D _ { i } ^ { t - 1 } \right\} / /$ the shards $z ^ { t }$ belongs to.
|
| 181 |
+
else $S = \{ i \in [ k ] : \mathtt { S a m p l e r } _ { i } ( \{ z ^ { t } \} , p ) \neq \{ \} \} / \prime$ the shards $z ^ { t }$ will be added to.
|
| 182 |
+
Update the shards: $D _ { i } ^ { t } = \left\{ { D _ { i } ^ { t - 1 } \circ u } \right.$ t if ot $i \in S$ se , for every $i \in [ k ]$ .
|
| 183 |
+
Update the models: $\theta _ { i } ^ { t } = \Big \{ \mathcal { A } _ { i } ^ { \mathrm { s i n g l e } } ( D _ { i } ^ { t } )$ if ot $i \in S$ se , for every $i \in [ k ]$ .
|
| 184 |
+
Update the state: $s ^ { t } = ( \{ D _ { i } ^ { t } \} _ { i \in [ k ] } , \{ \theta _ { i } ^ { t } \} _ { i \in [ k ] } ) / /$ to be used for the next update.
|
| 185 |
+
Output: {θti }i∈[k]
|
| 186 |
+
|
| 187 |
+
Theorem 5.2 (Run-time Guarantees). Let $p = 1 / k$ . Suppose the publishing functions satisfy the differential privacy requirement of Theorem 5.1. Let $N ^ { t }$ denote the number of times $\mathcal { R } _ { \mathcal { A } } ^ { d i s t r }$ calls $\mathcal { A } ^ { s i n g l e }$ at round $t$ . We have that $N ^ { 0 } = k$ , and for every round $t \geq 1$ : 1) if the update requester is non-adaptive, for every $\xi$ , with probability at least $1 - \xi$ , $N ^ { t } \leq 1 + \sqrt { 2 \log { ( 1 / \xi ) } }$ . 2) if the update requester is adaptive, for every $\xi$ , with probability at least 1 − ξ, $N ^ { t } \leq 1 + \sqrt { 2 \log { ( ( n + t ) / \xi ) } }$ . Furthermore, for $\xi > \delta ^ { \prime }$ , with probability at least $1 - \xi$ , we have
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
\begin{array} { c } { { N ^ { t } \leq 1 + \operatorname* { m i n } \left\{ \sqrt { 2 \log \left( 2 ( n + t ) / ( \xi - \delta ^ { \prime } ) \right) } , \sqrt { 2 \epsilon ^ { \prime } + 2 \log \left( 2 / ( \xi - \delta ^ { \prime } ) \right) } \right\} } } \\ { { { } } } \\ { { = O \left( \epsilon ^ { 2 } k + k \sqrt { \delta / \epsilon } \right) a n d \delta ^ { \prime } = e ^ { - \epsilon ^ { 2 } k } + O \left( k \sqrt { \delta / \epsilon } \right) } } \end{array}
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
The proof can be found in the appendix, but at a high level it proceeds as follows. For a deletion request, we must retrain every shard that contains the point to be deleted. For a non-adaptive deletion request, we retrain one shard in expectation and we can obtain a high probability upper bound by using a Hoeffding bound. In the adaptive case, this may no longer be true, but there are two ways to obtain upper bounds that correspond to the two bounds in our Theorem. We can provide a worst-case upper bound on the number of shards that any of the √ $n$ data points belongs to, which incurs a cost of order $\sqrt { \log n }$ . Alternately, we can apply max-information bounds to reduce to the non-adaptive case, using an argument that is similar to our reduction for deletion guarantees.
|
| 194 |
+
|
| 195 |
+
Remark 5.1. We note that there is an alternative algorithm that one might consider, resulting from group differential privacy. If a learning algorithm satisfies $\frac { \epsilon } { k }$ −differential privacy, a valid unlearning procedure is to do nothing for $k$ updates and then fully retrain on the $( k + 1 ) ^ { t h }$ update. This follows from the −differential privacy guarantee the algorithm will have for groups of size $k$ . Our algorithm substantially outperforms this alternative algorithm as well, namely because our privacy parameter degrades much slower than in this group privacy baseline. Our analysis leverages adaptive composition of privacy across the publishing functions which means that privacy degrades with the square root of the number of updates, while it degrades linearly with group privacy. Consequently the group privacy baseline would require a full retraining every $k$ updates, but our algorithm requires a full retraining only every $k ^ { 2 }$ updates.
|
| 196 |
+
|
| 197 |
+
# 5.1 Private Aggregation
|
| 198 |
+
|
| 199 |
+
We briefly describe how we serve prediction requests by privately aggregating the output of the ensemble of models such that the published predictions are differentially private in the random seeds $r$ . At each round $t$ , while $\mathcal { R } _ { \mathcal { A } } ^ { \mathrm { d i s t r } }$ is waiting for the next update request $\hat { u ^ { t + 1 } }$ , we receive prediction requests $x$ and serve predictions $\hat { y }$ . For each prediction request, we privately aggregate the predictions made by the ensemble of models $\{ \theta _ { i } ^ { t } \} _ { i }$ ; Dwork and Feldman [2018] show several ways to privately aggregate predictions (one simple technique is to use the exponential mechanism to approximate the majority vote). Suppose we aggregate the predictions made by the ensemble of models using PrivatePredi $\mathfrak { L } _ { \epsilon ^ { \prime } } ^ { k } : \bar { \Theta } ^ { k } \times \mathcal { X } \stackrel { \left. } { \right. } \mathcal { Y }$ , which takes in an ensemble of $k$ models and a data point, aggregates predictions from the ensemble models, and outputs a label that is $\epsilon ^ { \prime }$ -differentially private in the models. If we receive $l ^ { t }$ many prediction requests $( x _ { 1 } ^ { t } , \ldots , x _ { l ^ { t } } ^ { t } )$ before our next update request $\boldsymbol u ^ { t + 1 }$ , we can write $( \hat { y } _ { 1 } ^ { t } , \dots , \hat { y } _ { l ^ { t } } ^ { t } ) = f _ { \mathrm { p u b l i s h } } ^ { t } ( \{ \theta _ { i } ^ { t } \} _ { i } )$ where $\begin{array} { r } { \hat { y } _ { j } ^ { t } = \mathtt { P r i v a t e P r e d i c t } _ { \epsilon ^ { \prime } } ^ { k } ( \{ \theta _ { i } ^ { t } \} _ { i } , x _ { j } ^ { t } ) . } \end{array}$ .
|
| 200 |
+
|
| 201 |
+
Theorem 5.1, tells us that desired unlearning parameters $( \alpha , \beta , \gamma )$ can be obtained by guaranteeing that the sequence of predictions is $( \epsilon , \delta )$ differentially private in the models (and hence $r$ ), for target parameters $\epsilon , \delta$ . As we serve prediction requests using PrivatePredict $\mathbf { \Sigma } _ { \epsilon ^ { \prime } } ^ { k }$ our privacy loss will accumulate and eventually exhaust our budget of $( \epsilon , \delta )$ -differential privacy. Hence we must track our accumulated privacy loss in the state of our unlearning algorithm, and when it is exhausted, fully retrain using $\bar { \mathcal { A } } ^ { \mathrm { d i s t r } }$ . This resamples $r$ and hence resets our privacy budget. Standard composition theorems (see Dwork and Roth [2014]) show that we exhaust our privacy budget (and need to fully retrain) every time the number of prediction requests made since the last full retraining exceeds $\left\lfloor { \frac { \epsilon ^ { 2 } } { 8 ( \epsilon ^ { \prime } ) ^ { 2 } \ln ( { \frac { 1 } { \delta } } ) } } \right\rfloor$ We formally describe this process denoted as PrivatePredictionInteraction $( \epsilon ^ { \prime } , \epsilon , \delta , k )$ in the appendix and state its unlearning guarantee in Theorem 5.3.
|
| 202 |
+
|
| 203 |
+
Theorem 5.3. The models $\{ \{ \theta _ { i } ^ { t } \} _ { i } \} _ { t }$ in PrivatePredictionInteraction $( \epsilon ^ { \prime } , \epsilon , \delta , k )$ satisfy $( \alpha , \beta , \gamma )$ -unlearning guarantee for $\mathcal { A } ^ { d i s t r }$ where $\begin{array} { r l r } { \alpha } & { { } = } & { O \left( \epsilon ^ { 2 } k + k \sqrt { \delta / \epsilon } \right) } \end{array}$ and $\beta , \gamma \quad = \quad$ $O \left( \sqrt { e ^ { - \epsilon ^ { 2 } k } + k \sqrt { \delta / \epsilon } } \right)$ , $i f 0 < \epsilon \leq 1 / 2$ and $0 < \delta < \epsilon$ .
|
| 204 |
+
|
| 205 |
+
# 6 Evaluation of Unlearning Guarantees
|
| 206 |
+
|
| 207 |
+
In this section we consider the white-box setting in which the models in each shard are made public. SISA continues to have perfect deletion guarantees against non-adaptive deletion sequences in this setting. Experimental results on CIFAR-10 [Krizhevsky and Hinton, 2009], MNIST [Lecun et al., 1998], and Fashion-MNIST [Xiao et al., 2017] show both the failure of SISA to satisfy adaptive deletion guarantees, and give evidence that differential privacy can mitigate this problem well beyond the setting of our theorems while achieving accuracy only modestly worse than SISA. The code for our experiments can be found at https://github.com/ChrisWaites/adaptive-machine-unlearning.
|
| 208 |
+
|
| 209 |
+
We train SISA with an ensemble of convolutional neural networks on several datasets of points with categorical labels. Given a new point at query time, each model in the ensemble votes on the most likely label and aggregates their votes. The models are exposed publicly. This scheme has perfect non-adaptive deletion guarantees.
|
| 210 |
+
|
| 211 |
+
To construct an adaptive deletion sequence to falsify the hypothesis that the scheme has adaptive deletion guarantees, we exploit the observation that neural networks are often overconfident in the correct label for points on which they have been trained. For each training point, we guess that it falls into the shard corresponding to the model that has the highest confidence for the correct label. We then delete points for which we guess that they fall into the first $k / 2$ of the shards, and do not delete any others. After deleting the targeted points, we compute a test statistic: the indicator of whether the average accuracy of the models from the targeted shards is lower than the average accuracy of the models from the non-targeted shards. Under full retraining, by the symmetry of the random partition, the expectation of this test statistic is 0.5. Thus under the null hypothesis that the deletion algorithm satisfies perfect deletion guarantees, the test statistic also has expectation 0.5. Therefore, to the extent that the expectation of the indicator differs from 0.5, we falsify the null hypothesis that SISA has adaptive data deletion guarantees, and larger deviations from 0.5 falsify weaker deletion guarantees.
|
| 212 |
+
|
| 213 |
+
We run this experiment on three datasets (CIFAR-10, MNIST, and Fashion-MNIST), and plot the results in Figure 1. We then repeat the experiment by adding various amounts of noise to the gradients in the model training process to guarantee finite levels of differential privacy (though much weaker privacy guarantees than would be needed to invoke our theorems). We observe that on each dataset, modest amounts of noise are sufficient to break our attack (i.e. $9 5 \%$ confidence intervals for the expectation of our indicator include 0.5, and hence fail to falsify the null hypothesis) while still approaching the accuracy of our models trained without differential privacy. This is also plotted in Figure 1. This gives evidence that differential privacy can improve deletion guarantees in the presence of adaptivity even in regimes beyond which our theory gives nontrivial guarantees.
|
| 214 |
+
|
| 215 |
+
Full experimental details can be found in the appendix.
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
Figure 1: The top row and bottom row show experiments with $k = 6$ and $k = 2$ shards respectively. The 3 columns report on 3 datasets. The $x$ axis denotes estimated expectation of our test statistic (the null hypothesis is expectation 0.5). The $y$ axis denotes the accuracy of the ensemble after deletion. Each point is annotated with the noise multiplier used in DP-SGD, the standard deviation of Gaussian noise applied to gradients during training. A label of 0.0 for a point represents the baseline case of no noise (original SISA algorithm). Points are affixed with $9 5 \%$ confidence intervals along both axes (over the randomness of repeating the training/deletion experiment). Horizontal confidence intervals that overlap the line denoting expectation 0.5 fail to reject the null hypothesis that the algorithm has adaptive data deletion guarantees at $p \leq 0 . 0 5$ . We get to this point with a level of noise addition that results in only a modest degradation in ensemble performance compared to SISA.
|
| 219 |
+
|
| 220 |
+
# 7 Conclusion and Discussion
|
| 221 |
+
|
| 222 |
+
We identify an important blindspot in the data deletion literature (the tenuous implicit assumption that deletion requests are independent of previously released models), and provide a very general methodology to reduce adaptive deletion guarantees to oblivious deletion guarantees. Through this reduction we get the first model and training algorithm agnostic methodology that allows for deletion of arbitrary sequences of adaptively chosen points while giving rigorous guarantees. The constants that our theorems inherit from the max information bounds of Rogers et al. [2016] are such that in most realistic settings they will not give useful parameters. But we hope that these constants will be improved in future work, and we give empirical evidence that differential privacy mitigates adaptive deletion “attacks” at very practical levels, beyond the promises of our theoretical results. We note that like for differential privacy, the $( \alpha , \beta , \gamma )$ -deletion guarantees we give in this paper are parameterized, and are not meaningful absent a specification of those parameters. There is a risk with such technologies that they will be used with large values of the parameters that give only very weak guarantees, but will be described publicly in a way that glosses over this issue. We therefore recommend that if adopted in deployed products, deletion guarantees always be discussed in public in a way that is precise about what they promise, including the relevant parameter settings.
|
| 223 |
+
|
| 224 |
+
# Acknowledgements
|
| 225 |
+
|
| 226 |
+
V.G., C.J., A.R., and S.S. were supported in part by NSF grants CCF-1934876 and AF-1763307, and a grant from the Simons Foundation.
|
| 227 |
+
|
| 228 |
+
# References
|
| 229 |
+
|
| 230 |
+
Raef Bassily, Kobbi Nissim, Adam Smith, Thomas Steinke, Uri Stemmer, and Jonathan Ullman. Algorithmic stability for adaptive data analysis. SIAM Journal on Computing, (0):STOC16–377, 2021.
|
| 231 |
+
|
| 232 |
+
Lucas Bourtoule, Varun Chandrasekaran, Christopher Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie, and Nicolas Papernot. Machine unlearning. In Proceedings of the 42nd IEEE Symposium on Security and Privacy, San Francisco, CA., 2021.
|
| 233 |
+
|
| 234 |
+
James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax.
|
| 235 |
+
|
| 236 |
+
Yinzhi Cao and Junfeng Yang. Towards making systems forget with machine unlearning. In 2015 IEEE Symposium on Security and Privacy, pages 463–480. IEEE, 2015.
|
| 237 |
+
|
| 238 |
+
Cynthia Dwork and Vitaly Feldman. Privacy-preserving prediction. CoRR, abs/1803.10266, 2018. URL http://arxiv.org/abs/1803.10266.
|
| 239 |
+
|
| 240 |
+
Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends® in Theoretical Computer Science, 9(3–4):211–407, 2014.
|
| 241 |
+
|
| 242 |
+
Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 486–503. Springer, 2006a.
|
| 243 |
+
|
| 244 |
+
Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006b.
|
| 245 |
+
|
| 246 |
+
Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. The reusable holdout: Preserving validity in adaptive data analysis. Science, 349(6248):636–638, 2015a.
|
| 247 |
+
|
| 248 |
+
Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. Generalization in adaptive data analysis and holdout reuse. In Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume 2, pages 2350–2358, 2015b.
|
| 249 |
+
|
| 250 |
+
Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Leon Roth. Preserving statistical validity in adaptive data analysis. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing, pages 117–126, 2015c.
|
| 251 |
+
|
| 252 |
+
Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Indrajit Ray, Ninghui Li, and Christopher Kruegel, editors, Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA, October 12-16, 2015, pages 1322–1333. ACM, 2015. doi: 10.1145/ 2810103.2813677. URL https://doi.org/10.1145/2810103.2813677.
|
| 253 |
+
|
| 254 |
+
Antonio Ginart, Melody Y. Guan, Gregory Valiant, and James Zou. Making AI forget you: Data deletion in machine learning. CoRR, abs/1907.05012, 2019. URL http://arxiv.org/abs/ 1907.05012.
|
| 255 |
+
|
| 256 |
+
Aditya Golatkar, Alessandro Achille, Avinash Ravichandran, Marzia Polito, and Stefano Soatto. Mixed-privacy forgetting in deep networks. arXiv preprint arXiv:2012.13431, 2020a.
|
| 257 |
+
|
| 258 |
+
Aditya Golatkar, Alessandro Achille, and Stefano Soatto. Forgetting outside the box: Scrubbing deep networks of information accessible from input-output observations. In European Conference on Computer Vision, pages 383–398. Springer, 2020b.
|
| 259 |
+
|
| 260 |
+
Chuan Guo, Tom Goldstein, Awni Hannun, and Laurens van der Maaten. Certified data removal from machine learning models. arXiv preprint arXiv:1911.03030, 2019.
|
| 261 |
+
|
| 262 |
+
Avinatan Hassidim, Haim Kaplan, Yishay Mansour, Yossi Matias, and Uri Stemmer. Adversarially robust streaming algorithms via differential privacy. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips. cc/paper/2020/hash/0172d289da48c48de8c5ebf3de9f7ee1-Abstract.html.
|
| 263 |
+
|
| 264 |
+
The U.K. Information Commissioner’s Office ICO. Guidance on the ai auditing framework. Draft Consultation, 2020. URL https://ico.org.uk/media/about-the-ico/consultations/ 2617219/guidance-on-the-ai-auditing-framework-draft-for-consultation.pdf.
|
| 265 |
+
|
| 266 |
+
Christopher Jung, Katrina Ligett, Seth Neel, Aaron Roth, Saeed Sharifi-Malvajerdi, and Moshe Shenfeld. A new analysis of differential privacy’s generalization guarantees. In 11th Innovations in Theoretical Computer Science Conference (ITCS 2020), volume 151, page 31. Schloss Dagstuhl– Leibniz-Zentrum fuer Informatik, 2020.
|
| 267 |
+
|
| 268 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
|
| 269 |
+
|
| 270 |
+
Yann Lecun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. In Proceedings of the IEEE, pages 2278–2324, 1998.
|
| 271 |
+
|
| 272 |
+
Seth Neel and Aaron Roth. Mitigating bias in adaptive data gathering via differential privacy. In International Conference on Machine Learning, pages 3720–3729. PMLR, 2018.
|
| 273 |
+
|
| 274 |
+
Seth Neel, Aaron Roth, and Saeed Sharifi-Malvajerdi. Descent-to-delete: Gradient-based methods for machine unlearning. In Algorithmic Learning Theory, pages 931–962. PMLR, 2021.
|
| 275 |
+
|
| 276 |
+
Nicolas Papernot, Shuang Song, Ilya Mironov, Ananth Raghunathan, Kunal Talwar, and Úlfar Erlingsson. Scalable private learning with pate, 2018.
|
| 277 |
+
|
| 278 |
+
Nicolas Papernot, Abhradeep Thakurta, Shuang Song, Steve Chien, and Ulfar Erlingsson. Tempered sigmoid activations for deep learning with differential privacy. The 35th AAAI Conference on Artificial Intelligence, 2021.
|
| 279 |
+
|
| 280 |
+
Ryan Rogers, Aaron Roth, Adam Smith, and Om Thakkar. Max-information, differential privacy, and post-selection hypothesis testing. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 487–494. IEEE, 2016.
|
| 281 |
+
|
| 282 |
+
Ayush Sekhari, Jayadev Acharya, Gautam Kamath, and Ananda Theertha Suresh. Remember what you want to forget: Algorithms for machine unlearning. arXiv preprint arXiv:2103.03279, 2021.
|
| 283 |
+
|
| 284 |
+
Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3–18. IEEE, 2017.
|
| 285 |
+
|
| 286 |
+
Michael Veale, Reuben Binns, and Lilian Edwards. Algorithms that remember: Model inversion attacks and data protection law. CoRR, abs/1807.04644, 2018. URL http://arxiv.org/abs/ 1807.04644.
|
| 287 |
+
|
| 288 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. 2017.
|
parse/train/Goz-qsH1F14/Goz-qsH1F14_content_list.json
ADDED
|
@@ -0,0 +1,1543 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Adaptive Machine Unlearning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
315,
|
| 8 |
+
122,
|
| 9 |
+
681,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Varun Gupta1, Christopher Jung1, Seth Neel2, Aaron Roth1, Saeed Sharifi-Malvajerdi1, and Chris Waites3 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
305,
|
| 19 |
+
198,
|
| 20 |
+
691,
|
| 21 |
+
227
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1University of Pennsylvania 2Harvard University 3Stanford University ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
406,
|
| 30 |
+
238,
|
| 31 |
+
591,
|
| 32 |
+
281
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
321,
|
| 43 |
+
535,
|
| 44 |
+
338
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Data deletion algorithms aim to remove the influence of deleted data points from trained models at a cheaper computational cost than fully retraining those models. However, for sequences of deletions, most prior work in the non-convex setting gives valid guarantees only for sequences that are chosen independently of the models that are published. If people choose to delete their data as a function of the published models (because they don’t like what the models reveal about them, for example), then the update sequence is adaptive. In this paper, we give a general reduction from deletion guarantees against adaptive sequences to deletion guarantees against non-adaptive sequences, using differential privacy and its connection to max information. Combined with ideas from prior work which give guarantees for non-adaptive deletion sequences, this leads to extremely flexible algorithms able to handle arbitrary model classes and training methodologies, giving strong provable deletion guarantees for adaptive deletion sequences. We show in theory how prior work for non-convex models fails against adaptive deletion sequences, and use this intuition to design a practical attack against the SISA algorithm of Bourtoule et al. [2021] on CIFAR-10, MNIST, Fashion-MNIST. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
353,
|
| 54 |
+
764,
|
| 55 |
+
573
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
598,
|
| 66 |
+
310,
|
| 67 |
+
616
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Businesses like Facebook and Google depend on training sophisticated models on user data. Increasingly—in part because of regulations like the European Union’s General Data Protection Act and the California Consumer Privacy Act—these organizations are receiving requests to delete the data of particular users. But what should that mean? It is straightforward to delete a customer’s data from a database and stop using it to train future models. But what about models that have already been trained using an individual’s data? These are not necessarily safe; it is known that individual training data can be exfiltrated from models trained in standard ways via model inversion attacks [Shokri et al., 2017, Veale et al., 2018, Fredrikson et al., 2015]. Regulators are still grappling with when a trained model should be considered to contain personal data of individuals in the training set and the potential legal implications. In 2020 draft guidance, the U.K.’s Information Commissioner’s Office addressed how to comply with data deletion requests as they pertain to ML models: ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
630,
|
| 77 |
+
825,
|
| 78 |
+
781
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "If the request is for rectification or erasure of the data, this may not be possible without re-training the model...or deleting the model altogether [ICO, 2020]. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
232,
|
| 87 |
+
792,
|
| 88 |
+
764,
|
| 89 |
+
821
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Fully retraining the model every time a deletion request is received can be prohibitive in terms of both time and money—especially for large models and frequent deletion requests. The problem of data deletion (also known as machine unlearning) is to find an algorithmic middle ground between the compliant but impractical baseline of retraining, and the potentially illegal standard of doing nothing. We iteratively update models as deletion requests come in, with the twin goals of having computational cost that is substantially less than the cost of full retraining, and the guarantee that the models we produce are (almost) indistinguishable from the models that would have resulted from full retraining. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
832,
|
| 99 |
+
825,
|
| 100 |
+
901
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
90,
|
| 110 |
+
823,
|
| 111 |
+
132
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "After an initial model is deployed deletion requests arrive over time as users make decisions about whether to delete their data. It is easy to see how these decisions may be adaptive with respect to the models. For example, security researchers may publish a new model inversion attack that identifies a specific subset of people in the training data, thus leading to increased deletion requests for people in that subset. In this paper we give the first machine unlearning algorithms that both have rigorous deletion guarantees against these kind of adaptive deletion sequence, and can accommodate arbitrary non-convex models like deep neural networks without requiring pretraining on non-user data. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
140,
|
| 121 |
+
825,
|
| 122 |
+
237
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "1.1 Main Results ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
257,
|
| 133 |
+
305,
|
| 134 |
+
272
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "The deletion guarantees proven for several prior methods crucially rely on the implicit assumption that the points that are deleted are independent of the randomness used to train the models. However this assumption fails unless the sequence of deletion requests is chosen independently of the information that the model provider has made public. This is a very strong assumption, because users may wish to delete their data exactly because of what deployed models reveal about them. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
285,
|
| 144 |
+
825,
|
| 145 |
+
354
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "We give a generic reduction. We show that if: ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
361,
|
| 155 |
+
472,
|
| 156 |
+
376
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "1. A data deletion algorithm $\\mathcal { R } _ { A }$ for a learning algorithm $\\mathcal { A }$ has deletion guarantees for oblivious sequences of deletion requests (as those from past work do), and 2. Information about the internal randomness of $\\mathcal { R } _ { A }$ is revealed only in a manner that satisfies differential privacy, then ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
200,
|
| 165 |
+
388,
|
| 166 |
+
825,
|
| 167 |
+
455
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "$( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ also satisfies data deletion guarantees against an adaptive sequence of deletion requests, that can depend in arbitrary ways on the information that the model provider has made public. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
176,
|
| 176 |
+
468,
|
| 177 |
+
825,
|
| 178 |
+
497
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "In Section 3, we motivate our main result with a theoretical example which illustrates that past method’s lack of guarantees for adaptive sequences is not simply a failure of analysis, but an actual failure of these methods to satisfy deletion guarantees for adaptive deletion sequences. As an exemplar, we use a variant of SISA from Bourtoule et al. [2021] that satisfies perfect deletion guarantees for non-adaptive deletion sequences and exhibit adaptive deletion sequences that strongly separate the resulting distribution on models compared to the retraining baseline. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
502,
|
| 188 |
+
825,
|
| 189 |
+
587
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "The generic reduction found in Section 4 can be used to give adaptive data deletion mechanisms for a wide variety of problems by leveraging past work on deletion algorithms for non-adaptive sequences, and a line of work on differentially private aggregation [Papernot et al., 2018, Dwork and Feldman, 2018]. Since prior deletion algorithms themselves tend to use existing learning algorithms in a black-box way, the entire pipeline is modular and easy to bolt-on to existing methods. In Section 5, we show how this can be accomplished by using a variant of the SISA framework of Bourtoule et al. [2021] together with a differentially private aggregation method. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
592,
|
| 199 |
+
826,
|
| 200 |
+
690
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "In Section 6, we complement our main result with a set of experimental results on CIFAR-10, MNIST, and Fashion-MNIST that demonstrate differential privacy may be useful in giving adaptive guarantees beyond the statement of our theorems. Specifically we show that small amounts of noise addition (insufficient for our theorems to apply) already serve to break the adaptive deletion strategies that we use to falsify the adaptive deletion guarantees in our experiments described in Section 3 and do so at minimal expense in model accuracy. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
695,
|
| 210 |
+
825,
|
| 211 |
+
779
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "1.2 Related Work ",
|
| 218 |
+
"text_level": 1,
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
800,
|
| 222 |
+
310,
|
| 223 |
+
815
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "Data deletion was introduced by Cao and Yang [2015]; we adopt the randomized formulation of Ginart et al. [2019]. Ginart et al. [2019] anticipate the problem of deletion requests that might be correlated with internal state of the algorithm, and define (and propose as a study for future work) robust data deletion which is a data deletion guarantee that holds for adversaries with knowledge of the internal state. Our insight is that we can provide deletion guarantees against adaptive sequences by instead obscuring the internal state of the algorithm using techniques from differential privacy. ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
827,
|
| 233 |
+
825,
|
| 234 |
+
911
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 1
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "We are the first to explicitly consider the problem of adaptive sequences of deletion requests, but some techniques from past work do have deletion guarantees that extend to adaptive sequences. Deterministic methods and methods that depend only on randomness that is sampled after the deletion request are already robust to adaptive deletion. This includes techniques that find an approximately optimal solution to a strongly convex problem and then perturb the solution to obscure the optimizer within a small radius e.g. Guo et al. [2019], Neel et al. [2021], Sekhari et al. [2021]. It also includes the approach of Golatkar et al. [2020a,b] which pre-trains a nonconvex model on data that will never be deleted and then does convex fine-tuning on user data on top of that. Techniques whose deletion guarantees depend on randomness sampled at training in general do not have guarantees against adaptive deletions. This includes algorithms given in Ginart et al. [2019], Bourtoule et al. [2021], Neel et al. [2021] — the SISA framework of Bourtoule et al. [2021] being of particular interest as it is agnostic to the class of models and training methodology, and so is extremely flexible. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
173,
|
| 243 |
+
90,
|
| 244 |
+
825,
|
| 245 |
+
257
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "Differential privacy has been used as a mitigation for adaptivity since the work of Dwork et al. [2015c,a]. In machine learning, it has been used to mitigate the bias of adaptive data gathering strategies as used in bandit learning algorithms [Neel and Roth, 2018]. The application that is most similar to our work is Hassidim et al. [2020], which uses differential privacy of the internal randomness of an algorithm (as we do) to reduce streaming algorithms with guarantees against adaptive adversarial streams to streaming algorithms with guarantees against oblivious adversaries. Our techniques differ; while Hassidim et al. [2020] reduce to the so-called “transfer theorem for linear and low sensitivity queries” developed over a series of works Dwork et al. [2015c], Bassily et al. [2021], Jung et al. [2020], we use a more general connection between differential privacy and “max-information” established in Dwork et al. [2015b], Rogers et al. [2016]. ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
173,
|
| 254 |
+
263,
|
| 255 |
+
825,
|
| 256 |
+
401
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "2 Preliminaries ",
|
| 263 |
+
"text_level": 1,
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
421,
|
| 267 |
+
318,
|
| 268 |
+
438
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 2
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "Let $\\mathcal { Z }$ be the data domain. A dataset $D$ is a multi-set of elements from $\\mathcal { Z }$ . We consider update requests of two types: deletion and addition. These update requests are formally defined below, similar to how they are defined in [Neel et al., 2021]. ",
|
| 275 |
+
"bbox": [
|
| 276 |
+
176,
|
| 277 |
+
452,
|
| 278 |
+
823,
|
| 279 |
+
494
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 2
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "Definition 2.1 (Update Operations and Sequences). An update $u$ is a pair $( z , \\bullet )$ where $z \\in { \\mathcal { Z } }$ is $a$ datapoint and $\\bullet \\in \\mathcal { T } = \\{ ^ { \\prime } \\mathbf { a d d } ^ { \\prime } , ^ { \\prime } \\mathbf { d e l e t e } ^ { \\prime } \\}$ determines the type of the update. An update sequence $U$ is a sequence $( u ^ { 1 } , u ^ { 2 } , \\ldots )$ where $u ^ { t } \\in \\mathcal { Z } \\times \\mathcal { T }$ for all $t$ . Given a dataset $D$ and an update $u = ( z , \\bullet )$ , the update operation is defined as: ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
173,
|
| 288 |
+
498,
|
| 289 |
+
825,
|
| 290 |
+
555
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 2
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "equation",
|
| 296 |
+
"img_path": "images/96b4b5ec8998a0e7c67003ba2bfac3fc872c4ac9a59a896e8b6c404ede3d3cb3.jpg",
|
| 297 |
+
"text": "$$\nD \\circ u \\triangleq { \\left\\{ { D \\cup \\{ z \\} } \\quad i f \\bullet = { ' } { \\mathsf { a d d } } ^ { \\prime } \\right.} _ { D \\setminus \\{ z \\} } _ { i f \\bullet = { ' } { \\mathsf { d e l e t e } } ^ { \\prime } }\n$$",
|
| 298 |
+
"text_format": "latex",
|
| 299 |
+
"bbox": [
|
| 300 |
+
370,
|
| 301 |
+
563,
|
| 302 |
+
625,
|
| 303 |
+
598
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "Given an update sequence $U = ( u ^ { 1 } , u ^ { 2 } , \\ldots ) ;$ , we have $D \\circ U \\triangleq ( ( ( D \\circ u ^ { 1 } ) \\circ u ^ { 2 } ) \\circ \\ldots ) .$ . ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
173,
|
| 312 |
+
606,
|
| 313 |
+
748,
|
| 314 |
+
623
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "We use $\\Theta$ to denote the space of models. A learning or training algorithm is a mapping $\\mathcal { A } : \\mathcal { Z } ^ { * } \\to \\Theta ^ { * }$ that maps a dataset $D \\in { \\mathcal { Z } } ^ { * }$ to a collection of models $\\theta \\in \\Theta ^ { * }$ . An unlearning or update algorithm for $\\mathcal { A }$ is a mapping $\\mathcal { R } _ { A } : \\mathcal { Z } ^ { * } \\times ( \\mathcal { Z } \\times \\mathcal { T } ) \\times \\mathcal { S } \\to \\Theta ^ { * }$ which takes in a data set $D \\in { \\mathcal { Z } } ^ { * }$ , an update request $u \\in \\mathcal { Z } \\times \\mathcal { T }$ , and some current state for the algorithms $s \\in S$ (the domain $s$ can be arbitrary), and outputs an updated collection of models $\\theta ^ { \\prime } \\in \\Theta ^ { * }$ . In this paper we consider a setting in which a stream of update requests arrive in sequence. We note that in this sequential framework, the update algorithm $\\mathcal { R } _ { A }$ also updates the state of the algorithm after each update request is processed; however, for notational economy, we do not explicitly write the updated state as an output of the algorithm. ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
174,
|
| 323 |
+
632,
|
| 324 |
+
825,
|
| 325 |
+
744
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "At each round, we provide access to the models through a mapping $f _ { \\mathrm { p u b l i s h } } ^ { t } : \\Theta ^ { * } \\to \\Psi$ that takes in the collection of models and outputs some object $\\psi \\in \\Psi$ . A published object $\\psi \\in \\Psi$ can, for instance, be the aggregate predictions of the learned models on a data set, or, some aggregation of the models. To model adaptively chosen update sequences, we define an arbitrary “update requester” who interacts with the learning and unlearning algorithms $( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ through the publishing function $f _ { \\mathrm { p u b l i s h } }$ in rounds to generate a sequence of updates. The update requester is denoted by UpdReq and defined in Definition 2.2, and the interaction between the algorithms and the update requester is described in Algorithm 1. ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
174,
|
| 334 |
+
750,
|
| 335 |
+
826,
|
| 336 |
+
863
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "Throughout we will use $u ^ { t }$ to denote the update request at round $t$ . We will use $D ^ { t }$ to denote the data set at round $t$ : $D ^ { 0 }$ is the initial training data set and for all $t \\geq 1$ , $D ^ { t } = D ^ { t - 1 } \\circ u ^ { t }$ . We will use $\\theta ^ { t }$ to denote the learned models at round $t$ : $\\theta ^ { 0 }$ is generated by the initial training algorithm $\\mathcal { A }$ , and $\\theta ^ { t }$ for $t \\geq 1$ denotes the updated models at round $t$ generated by the update algorithm $\\mathcal { R } _ { A }$ . $\\psi ^ { t }$ denotes the published object at round $t$ : $\\psi ^ { t } = f _ { \\mathrm { p u b l i s h } } ^ { t } ( \\theta ^ { t } )$ . ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
176,
|
| 345 |
+
869,
|
| 346 |
+
825,
|
| 347 |
+
911
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "table",
|
| 353 |
+
"img_path": "images/49af37bb3ca08e560a92e8b40ce7bbcad36a565b9bdae3ca4959afdb266bd33a.jpg",
|
| 354 |
+
"table_caption": [
|
| 355 |
+
"Algorithm 1: Interaction between $( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ and UpdReq "
|
| 356 |
+
],
|
| 357 |
+
"table_footnote": [],
|
| 358 |
+
"table_body": "<table><tr><td></td><td>1: Input: Data set D</td></tr><tr><td>2:</td><td>Let D°← D.</td></tr><tr><td>3:</td><td>Train 0° ← A(D).</td></tr><tr><td>4:</td><td>Publish y0←pubish(00).</td></tr><tr><td>5:</td><td> Save the initial state so.</td></tr><tr><td>6:</td><td>for t = 1,2,... do</td></tr><tr><td>7:</td><td> The update requester requests a new update, given the history of interaction:</td></tr><tr><td>8:</td><td>ut←UpdReq(o,u¹,1,u², ,ut-1,γt-1).</td></tr><tr><td>9:</td><td>The algorithms update, given ut:</td></tr><tr><td>10:</td><td>Update the models 0t ← RA (Dt-1,ut,st-1).</td></tr><tr><td>11:</td><td>Publish bt ← fpubish (0t).</td></tr><tr><td>12:</td><td>Save the updated state st .</td></tr><tr><td>13:</td><td>Update the data set Dt ← Dt-1 o ut .</td></tr></table>",
|
| 359 |
+
"bbox": [
|
| 360 |
+
178,
|
| 361 |
+
113,
|
| 362 |
+
720,
|
| 363 |
+
308
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "",
|
| 370 |
+
"bbox": [
|
| 371 |
+
173,
|
| 372 |
+
339,
|
| 373 |
+
823,
|
| 374 |
+
371
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "Definition 2.2 (Update Requester (UpdReq)). The update sequence is generated by an update requester which is modeled by a (possibly randomized) mapping UpdReq : $\\Psi ^ { * } \\times ( \\mathcal { Z } \\times \\mathcal { T } ) ^ { * } ( \\mathcal { Z } \\times \\mathcal { T } )$ that takes as input the history of interaction between herself and the algorithms, and outputs a new update for the current round. Given an update requester UpdReq, algorithms $( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ and publishing functions $\\{ f _ { p u b l i s h } ^ { t } \\} _ { t }$ , the update sequence $U = \\{ u ^ { t } \\} _ { t }$ can be written as ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
173,
|
| 383 |
+
375,
|
| 384 |
+
825,
|
| 385 |
+
445
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "equation",
|
| 391 |
+
"img_path": "images/4518acdec353d550f167a7e753c1d2dea3736017a727d5ca5e9755ddcf286abc.jpg",
|
| 392 |
+
"text": "$$\n\\boldsymbol { u } ^ { 1 } = \\mathrm { U p d R e q } \\left( \\boldsymbol { \\psi } ^ { 0 } \\right) , \\boldsymbol { u } ^ { 2 } = \\mathrm { U p d R e q } \\left( \\boldsymbol { \\psi } ^ { 0 } , \\boldsymbol { u } ^ { 1 } , \\boldsymbol { \\psi } ^ { 1 } \\right) , \\boldsymbol { \\cdot } , \\boldsymbol { \\cdot } , \\boldsymbol { u } ^ { t } = \\mathrm { U p d R e q } \\left( \\boldsymbol { \\psi } ^ { 0 } , \\boldsymbol { u } ^ { 1 } , \\boldsymbol { \\psi } ^ { 1 } , \\boldsymbol { \\cdot } , \\boldsymbol { \\cdot } , \\boldsymbol { u } ^ { t - 1 } , \\boldsymbol { \\psi } ^ { t - 1 } \\right)\n$$",
|
| 393 |
+
"text_format": "latex",
|
| 394 |
+
"bbox": [
|
| 395 |
+
181,
|
| 396 |
+
455,
|
| 397 |
+
820,
|
| 398 |
+
474
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 3
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "We say an update requester UpdReq is nonadaptive if it is independent of the published objects, i.e., if there exists a mapping UpdR $\\mathfrak { s q } ^ { \\prime } : ( \\mathcal { Z } \\times \\mathcal { T } ) ^ { \\ast } ( \\mathcal { Z } \\times \\mathcal { T } )$ such that for all $t \\geq 1$ , ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
173,
|
| 407 |
+
481,
|
| 408 |
+
826,
|
| 409 |
+
511
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 3
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "equation",
|
| 415 |
+
"img_path": "images/787e0ccfabb01426b1d2ca8a285bb48e80098736481a4556a309978293362e34.jpg",
|
| 416 |
+
"text": "$$\nu ^ { t } = \\mathtt { U p d R e q } \\left( \\psi ^ { 0 } , u ^ { 1 } , \\psi ^ { 1 } , u ^ { 2 } , \\ldots , u ^ { t - 1 } , \\psi ^ { t - 1 } \\right) = \\mathtt { U p d R e q } ^ { \\prime } \\left( u ^ { 1 } , u ^ { 2 } , \\ldots , u ^ { t - 1 } \\right)\n$$",
|
| 417 |
+
"text_format": "latex",
|
| 418 |
+
"bbox": [
|
| 419 |
+
241,
|
| 420 |
+
518,
|
| 421 |
+
754,
|
| 422 |
+
537
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "This is equivalent to saying that the update sequence is fixed before the interaction occurs. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
171,
|
| 431 |
+
545,
|
| 432 |
+
763,
|
| 433 |
+
560
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Following [Ginart et al., 2019], we propose the following definition for an unlearning algorithm in the sequential update setting ([Ginart et al., 2019] gives a definition for a single deletion request, whereas here we define a natural extension for an arbitrarily long sequence of deletions, as well as additions, that can be chosen adaptively.). Informally, we require that at every round, and for all possible update requesters, with high probability over the draw of the update sequence, no subset of models resulting from deletion occurs with substantially higher probability than it would have under full retraining. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
173,
|
| 442 |
+
570,
|
| 443 |
+
826,
|
| 444 |
+
656
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "Definition 2.3 $( \\alpha , \\beta , \\gamma )$ -unlearning). We say that $\\mathcal { R } _ { A }$ is an $( \\alpha , \\beta , \\gamma )$ -unlearning algorithm for $\\mathcal { A }$ if for all datasets $D = D ^ { 0 }$ and all update requesters UpdReq, the following condition holds: For every update step $t \\geq 1$ , with probability at least $1 - \\gamma$ over the draw of the update sequence $u ^ { \\le t } \\overset { \\cdot } { = } \\hat { ( } u ^ { 1 } , \\ldots , \\overset { \\cdot } { u } ^ { t } )$ from UpdReq, ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
660,
|
| 454 |
+
825,
|
| 455 |
+
717
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "equation",
|
| 461 |
+
"img_path": "images/c295b206a4b441920ca55ee78e1e09506489e57b0554e585b2708a730f93b6a0.jpg",
|
| 462 |
+
"text": "$$\n\\begin{array} { r } { \\forall E \\subseteq \\Theta ^ { * } : \\quad \\operatorname* { P r } \\left[ \\mathcal { R } _ { { \\cal A } } \\left( D ^ { t - 1 } , u ^ { t } , s ^ { t - 1 } \\right) \\in E \\middle | u ^ { \\leq t } \\right] \\leq e ^ { \\alpha } \\cdot \\operatorname* { P r } \\left[ { \\cal A } \\left( D ^ { t } \\right) \\in E \\right] + \\beta } \\end{array}\n$$",
|
| 463 |
+
"text_format": "latex",
|
| 464 |
+
"bbox": [
|
| 465 |
+
230,
|
| 466 |
+
724,
|
| 467 |
+
766,
|
| 468 |
+
746
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "We say $\\mathcal { R } _ { A }$ is a nonadaptive $( \\alpha , \\beta , \\gamma )$ -unlearning algorithm for $\\mathcal { A }$ if the above condition holds for any nonadaptive UpdReq. ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
171,
|
| 477 |
+
752,
|
| 478 |
+
823,
|
| 479 |
+
782
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "Remark 2.1. Our definition of unlearning is reminiscent of differential privacy, but following [Ginart et al., 2019], we ask only for $a$ one-sided guarantee: that the probability of any event under the unlearning scheme is not too much larger than the probability of the same event under full retraining, but not vice versa. The reason is that we do not want there to be events that can substantially increase an observer’s confidence that we did not engage in full retraining, but we do not object to observers who strongly update their beliefs that we did engage in full retraining. Our events $E$ are defined directly over the sets of models in $\\Theta ^ { * }$ output by $\\mathcal { A }$ and $\\mathcal { R } _ { A }$ — note that because of information processing inequalities, this is only stronger than defining events $E$ over the observable outcome space $\\Psi$ . ",
|
| 486 |
+
"bbox": [
|
| 487 |
+
173,
|
| 488 |
+
786,
|
| 489 |
+
825,
|
| 490 |
+
911
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "2.1 Differential Privacy and Max-Information ",
|
| 497 |
+
"text_level": 1,
|
| 498 |
+
"bbox": [
|
| 499 |
+
176,
|
| 500 |
+
90,
|
| 501 |
+
508,
|
| 502 |
+
106
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 4
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "Differential privacy will be a key tool in our results. Let $\\mathcal { X }$ denote an arbitrary data domain. We use $x \\in \\mathcal { X }$ to denote an individual element of $\\mathcal { X }$ , and $X \\in \\mathcal { X } ^ { \\ast }$ to denote a collection of elements from $\\mathcal { X }$ — which we call a data set. We say two data sets $X , X ^ { \\prime } \\in { \\mathcal { X } } ^ { * }$ are neighboring if they differ in at most one element. We say an algorithm $M : \\mathcal { X } ^ { n } \\mathcal { O }$ is differentially private if its output distributions on neighboring data sets are close, formalized below. ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
173,
|
| 511 |
+
116,
|
| 512 |
+
825,
|
| 513 |
+
185
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 4
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "Definition 2.4 (Differential Privacy (DP) [Dwork et al., 2006b,a]). An algorithm $M : \\mathcal { X } ^ { m } \\mathcal { O }$ is $( \\epsilon , \\delta )$ -differentially private, if for every neighboring $X$ and $X ^ { \\prime }$ , and for every $O \\subseteq { \\mathcal { O } }$ , we have $\\mathrm { P r } \\left[ M ( X ) \\in O \\right] \\leq e ^ { \\epsilon } \\mathrm { P r } \\left[ M ( \\dot { X } ^ { \\prime } ) \\in O \\right] + \\delta$ . ",
|
| 520 |
+
"bbox": [
|
| 521 |
+
174,
|
| 522 |
+
189,
|
| 523 |
+
823,
|
| 524 |
+
233
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "We remark at the outset that the “datasets” to which we will eventually ask for differential privacy with respect to will not be the datasets on which our learning algorithms are trained, but will instead be collections of random bits parameterizing our randomized algorithms. ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
174,
|
| 533 |
+
242,
|
| 534 |
+
825,
|
| 535 |
+
286
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Differentially private algorithms are robust to data-independent post-processing: ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
176,
|
| 544 |
+
291,
|
| 545 |
+
699,
|
| 546 |
+
306
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "Lemma 2.1 (Post-processing preserves DP [Dwork et al., 2006b]). If $M : \\mathcal { X } ^ { m } \\mathcal { O }$ is $( \\epsilon , \\delta )$ - differentially private, then for all $f : \\mathcal { O } \\mathcal { R }$ , we have $f \\circ M : \\mathcal { X } ^ { m } \\mathcal { R }$ defined by $f \\circ M ( X ) =$ $f ( M ( X ) )$ is $( \\epsilon , \\delta )$ -differentially private. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
174,
|
| 555 |
+
309,
|
| 556 |
+
826,
|
| 557 |
+
353
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "The max-information between two jointly distributed random variables measures how close their joint distribution is to the product of their corresponding marginal distributions. ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
363,
|
| 567 |
+
823,
|
| 568 |
+
392
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "Definition 2.5 (Max-Information [Dwork et al., 2015b]). Let $X$ and $Y$ be jointly distributed random variables over the domain $( \\mathcal { X } , \\mathcal { Y } )$ . The $\\beta$ -approximate max-information between $X$ and $Y$ is: ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
173,
|
| 577 |
+
395,
|
| 578 |
+
823,
|
| 579 |
+
424
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "equation",
|
| 585 |
+
"img_path": "images/c01dbe67c5f13bd3c0e5eb1ead4db719c15dd45a5707b961fc413e7c40663f11.jpg",
|
| 586 |
+
"text": "$$\nI _ { \\infty } ^ { \\beta } ( X ; Y ) = \\log \\operatorname* { s u p } _ { \\substack { E \\subseteq ( \\mathcal { X } , \\mathcal { Y } ) , \\operatorname* { P r } [ ( X , Y ) \\in E ] > \\beta } } \\frac { \\operatorname* { P r } [ ( X , Y ) \\in E ] - \\beta } { \\operatorname* { P r } [ ( X \\otimes Y ) \\in E ] }\n$$",
|
| 587 |
+
"text_format": "latex",
|
| 588 |
+
"bbox": [
|
| 589 |
+
290,
|
| 590 |
+
430,
|
| 591 |
+
705,
|
| 592 |
+
467
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "where $( X \\otimes Y )$ represents the product distribution of $X$ and $Y$ . ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
174,
|
| 601 |
+
473,
|
| 602 |
+
593,
|
| 603 |
+
488
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "The max-information of an algorithm $M$ that takes a dataset $X$ as input and outputs $M ( X )$ , is defined as the max-information between $X$ and $M ( X )$ for the worst case product distribution over $X$ : ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
174,
|
| 612 |
+
498,
|
| 613 |
+
825,
|
| 614 |
+
527
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 4
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "Definition 2.6 (Max-Information of an Algorithm [Dwork et al., 2015b]). Let $M : \\mathcal { X } ^ { m } \\mathcal { O }$ be an Algorithm. We say $M$ has $\\beta$ -approximate max-information of $k$ , written $T _ { \\infty } ^ { \\beta } ( M , m ) \\leq k$ , if for every distribution $\\mathcal { P }$ over $\\mathcal { X }$ , we have $I _ { \\infty } ^ { \\beta } ( X ; M ( X ) ) \\le k$ when $X \\sim \\mathcal { P } ^ { m }$ . ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
173,
|
| 623 |
+
531,
|
| 624 |
+
825,
|
| 625 |
+
575
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 4
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "In this paper, we will use the fact that differentially private algorithms have bounded max-information: ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
169,
|
| 634 |
+
584,
|
| 635 |
+
823,
|
| 636 |
+
601
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 4
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Theorem 2.1 (DP implies bounded max-information [Rogers et al., 2016]). Let $M : \\mathcal { X } ^ { m } \\mathcal { O }$ be an $( \\epsilon , \\delta )$ -differentially private algorithm for $0 < \\epsilon \\le 1 / 2$ and $0 < \\delta < \\epsilon$ . Then, $I _ { \\infty } ^ { \\beta } ( M , m ) =$ $O \\left( \\epsilon ^ { 2 } m + m \\sqrt { \\delta / \\epsilon } \\right) f o r \\beta = e ^ { - \\epsilon ^ { 2 } m } + O \\left( m \\sqrt { \\delta / \\epsilon } \\right) .$ . ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
173,
|
| 645 |
+
617,
|
| 646 |
+
825,
|
| 647 |
+
671
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 4
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "3 Falsifying Unlearning Guarantees with Adaptivity ",
|
| 654 |
+
"text_level": 1,
|
| 655 |
+
"bbox": [
|
| 656 |
+
173,
|
| 657 |
+
685,
|
| 658 |
+
624,
|
| 659 |
+
704
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "In this section we demonstrate that the deletion guarantees of algorithms in the SISA framework [Bourtoule et al., 2021] fail for adaptive deletion sequences. We give a clean toy construction which shows algorithms in the SISA framework fail to have nontrivial adaptive deletion guarantees even in the black-box setting when the models within each shard are not made public, only aggregations of their classification outputs. In the Appendix we experimentally evaluate a more realistic instantiation of this construction. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
173,
|
| 668 |
+
717,
|
| 669 |
+
825,
|
| 670 |
+
801
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 4
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "The setting we consider directly corresponds to the setting in which our final algorithms operate: what is made public is the aggregate predictions of the ensemble of models, but not the models themselves. For non-adaptive sequences of deletions, distributed algorithms of the sort described in Section 5 have perfect deletion guarantees. We demonstrate via a simple example that these guarantees dramatically fail for adaptive deletion sequences. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
806,
|
| 680 |
+
825,
|
| 681 |
+
877
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 4
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "Suppose we have a dataset consisting of real-valued points with binary labels $\\{ ( x _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { 2 n }$ , $x _ { i } \\in \\mathbb { R } ^ { d }$ $y _ { i } \\ \\stackrel { - } { \\in } \\ \\{ 0 , 1 \\}$ in which there are exactly two copies of each distinct training example. Consider a simplistic classification model, resembling a lookup table, which given a point $x _ { i }$ predicts the label $y _ { i }$ if the model has been trained on $( x _ { i } , y _ { i } )$ and a dummy prediction value \" $\" \\perp \"$ otherwise: ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
173,
|
| 690 |
+
882,
|
| 691 |
+
823,
|
| 692 |
+
911
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "",
|
| 699 |
+
"bbox": [
|
| 700 |
+
171,
|
| 701 |
+
90,
|
| 702 |
+
825,
|
| 703 |
+
119
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 5
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "equation",
|
| 709 |
+
"img_path": "images/2dad0327245c5c034647574ad26888aa1312e4c98faf0655406d013a697d07cc.jpg",
|
| 710 |
+
"text": "$$\nf _ { \\mathcal { D } } ( x _ { i } ) = \\left\\{ \\begin{array} { l l } { y _ { i } } & { \\mathrm { i f } \\left( x _ { i } , y _ { i } \\right) \\in \\mathcal { D } , } \\\\ { \\perp } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
|
| 711 |
+
"text_format": "latex",
|
| 712 |
+
"bbox": [
|
| 713 |
+
390,
|
| 714 |
+
125,
|
| 715 |
+
604,
|
| 716 |
+
160
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 5
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "Consider what happens when the training algorithm randomly partitions this dataset into three pieces and trains such a model on each partition. This constructs an ensemble which, at query time, predicts the class with the majority vote. On this dataset, the ensemble will predict the labels of roughly $2 / 3$ of the training points correctly—that is, exactly those points for which the duplicates have fallen into distinct partitions, so that the ensemble gets the majority vote right. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
173,
|
| 725 |
+
171,
|
| 726 |
+
825,
|
| 727 |
+
242
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 5
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "We construct an adaptive adversary who chooses to delete exactly those training points that the ensemble correctly classifies (which are those points for whom the duplicates have fallen into distinct shards). The result is that the model resulting from this deletion sequence will misclassify every remaining training point. Full retraining (because it would rerandomize the partition) would again lead to training accuracy of approximately $2 / 3$ . Recalling that our deletion notion requires that the probability of any event under the unlearning scheme is not much larger than the probability of the same event under full retraining, this demonstrates that there are algorithms in the SISA framework — even if the models are not directly exposed — that do not satisfy $( \\alpha , \\beta , \\gamma )$ -deletion guarantees for any nontrivial value of $\\alpha$ . We formalize this below: ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
173,
|
| 736 |
+
247,
|
| 737 |
+
826,
|
| 738 |
+
372
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 5
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "Theorem 3.1. There are learning and unlearning algorithms in the SISA framework $( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ such that for any $\\alpha _ { i }$ , and any $\\beta , \\gamma < 1 / 4$ , $\\mathcal { R } _ { A }$ is not an $( \\alpha , \\beta , \\gamma )$ -unlearning algorithm for $\\mathcal { A }$ . ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
375,
|
| 748 |
+
823,
|
| 749 |
+
405
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 5
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "A proof of this theorem can be found in the appendix. ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
173,
|
| 758 |
+
414,
|
| 759 |
+
526,
|
| 760 |
+
429
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 5
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "4 A Reduction from Adaptive to Nonadaptive Update Requesters ",
|
| 767 |
+
"text_level": 1,
|
| 768 |
+
"bbox": [
|
| 769 |
+
173,
|
| 770 |
+
446,
|
| 771 |
+
732,
|
| 772 |
+
465
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 5
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "In our analysis we imagine without loss of generality that the learning algorithm $\\mathcal { A }$ draws an i.i.d. sequence of random variables $r \\sim \\mathcal { P } ^ { m }$ (that encodes all the randomness to be used over the course of the updates) from some distribution $\\mathcal { P }$ , and passes it to the unlearning algorithm $\\mathcal { R } _ { A }$ . Note $r$ is drawn once in the initial training, and given $r$ , $\\mathcal { A }$ and $\\mathcal { R } _ { A }$ become deterministic mappings. We can also view the state $s ^ { t }$ as a deterministic mapping of $r$ , the update requests so far $u ^ { \\le t } = ( \\bar { u ^ { 1 } } , \\dots , u ^ { t } )$ , and the original data set $D ^ { 0 }$ . We write $s ^ { t } = g ^ { t } \\bar { ( } D ^ { 0 } , u ^ { \\le t } , r \\bar { ) }$ for some deterministic mapping $g ^ { t }$ . We can therefore summarize the trajectory of the algorithms $( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ as follows. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
173,
|
| 781 |
+
478,
|
| 782 |
+
826,
|
| 783 |
+
577
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 5
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "In this view, the randomness $r$ used by the learning algorithm $\\mathcal { A }$ and the subsequent invocations of the unlearning algorithm $\\mathcal { R } _ { A }$ is represented as part of the internal state. Past analyses of unlearning algorithms have crucially assumed that $r$ is statistically independent of the updates $( \\dot { u } ^ { 1 } , u ^ { 2 } , \\dots )$ (which is the case for non-adaptive update requesters, but not for adaptive update requesters). In the following general theorem, we show that if a learning/unlearning pair satisfies unlearning guarantees against non-adaptive update requesters, and the publishing function is differentially private in the internal randomness $r$ , then the resulting algorithms also satisfy unlearning guarantees against adaptive update requesters. Note that what is important is that the publishing algorithms are differentially private in the internal randomness $r$ , not in the datapoints used for training. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
173,
|
| 792 |
+
633,
|
| 793 |
+
825,
|
| 794 |
+
761
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 5
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Theorem 4.1 (A General Theorem). Fix a pair of learning and unlearning algorithms $( \\mathcal { A } , \\mathcal { R } _ { \\mathcal { A } } )$ and the publishing functions $\\{ f _ { p u b l i s h } ^ { t } \\} _ { t }$ . Suppose for every round $t$ , the sequence of publishing functions $\\{ f _ { p u b l i s h } ^ { t ^ { \\prime } } \\} _ { t ^ { \\prime } \\leq t }$ is $( \\epsilon , \\delta )$ -differentially private in $r \\sim \\mathcal { P } ^ { m }$ , for $0 < \\epsilon \\le 1 / 2$ and $0 < \\delta < \\epsilon$ . Suppose $\\mathcal { R } _ { A }$ is a non-adaptive $( \\alpha , \\beta , \\gamma )$ -unlearning algorithm for $\\mathcal { A }$ . Then $\\mathcal { R } _ { A }$ is an $( \\alpha ^ { \\prime } , \\beta ^ { \\prime } , \\gamma ^ { \\prime } )$ -unlearning algorithm for $\\mathcal { A }$ for $\\alpha ^ { \\prime } = \\alpha + \\epsilon ^ { \\prime } , \\beta ^ { \\prime } = \\beta e ^ { \\epsilon ^ { \\prime } } + \\sqrt { \\delta ^ { \\prime } } , \\gamma ^ { \\prime } = \\gamma + \\sqrt { \\delta ^ { \\prime } }$ where $\\epsilon ^ { \\prime } = O \\left( \\epsilon ^ { 2 } m + m \\sqrt { \\delta / \\epsilon } \\right)$ and $\\delta ^ { \\prime } = e ^ { - \\epsilon ^ { 2 } m } + O \\left( m \\sqrt { \\delta / \\epsilon } \\right) .$ . ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
173,
|
| 803 |
+
762,
|
| 804 |
+
825,
|
| 805 |
+
875
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 5
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "The proof can be found in the Appendix, but at an intuitive level, it proceeds as follows. Because it does not change the joint distribution on update requests and internal state, we can imagine in our analysis that $r$ is redrawn after each update request from its conditional distribution, conditioned on the observed update sequence so far. Because the publishing function is differentially private in $r$ , by the fact that post-processing preserves differential privacy (Lemma 2.1), so is the update sequence. We may therefore apply the max-information bound (Theorem 2.1), which allows us to relate the conditional distribution on $r$ to its original (prior) distribution $\\mathcal { P } ^ { m }$ . But resampling $r$ from $\\mathcal { P } ^ { m }$ removes the dependence between $r$ and the update sequence, which places us in the non-adaptive case, and allows us to apply the hypothesized unlearning guarantees for nonadaptive update requesters. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
173,
|
| 814 |
+
882,
|
| 815 |
+
821,
|
| 816 |
+
912
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 5
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "table",
|
| 822 |
+
"img_path": "images/75b45716a089d8a2549115650460c6df9fe917ad406518bdf6dd3055e3d50ee3.jpg",
|
| 823 |
+
"table_caption": [
|
| 824 |
+
"Algorithm 2: ${ \\mathcal { A } } ^ { \\mathrm { d i s t r } }$ : Distributed Learning Algorithm "
|
| 825 |
+
],
|
| 826 |
+
"table_footnote": [],
|
| 827 |
+
"table_body": "<table><tr><td>Input: dataset D = D° of size n Draw the shards: D = Sampler(D°,p), for every i ∈ [k]. Train the models: 0 = Asingle(D),for every i∈ [k]. Save the state: s°= ({D'}i∈[k],{}iε[k]) // to be used for the 1st update.</td></tr></table>",
|
| 828 |
+
"bbox": [
|
| 829 |
+
179,
|
| 830 |
+
113,
|
| 831 |
+
758,
|
| 832 |
+
194
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 6
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "",
|
| 839 |
+
"bbox": [
|
| 840 |
+
173,
|
| 841 |
+
222,
|
| 842 |
+
825,
|
| 843 |
+
334
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 6
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "5 Distributed Algorithms ",
|
| 850 |
+
"text_level": 1,
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
352,
|
| 854 |
+
400,
|
| 855 |
+
369
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 6
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "In this section, we describe a general family of distributed learning and unlearning algorithms that are in the spirit of the “SISA” framework of Bourtoule et al. [2021] (with one crucial modification). At a high level, the SISA framework operates by first randomly dividing the data into $k$ “shards”, and separately training a model on each shard. When a new point is deleted, it is removed from the shards that contained it, and only the models corresponding to those shards are retrained. The flexibility of this methodology is that the models and training procedures used in each shard can be arbitrary, as can the aggregation done at the end to convert the resulting ensemble into predictions: however these choices are instantiated, this framework gives a $( 0 , 0 , 0 )$ -unlearning algorithm against any non-adaptive update requester (Lemma 5.1). Here we show that if the $k$ shards are selected independently of one another, then we can apply our reduction given in the previous section with $m = k$ and obtain algorithms that satisfy deletion guarantees against adaptive update requesters. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
173,
|
| 864 |
+
382,
|
| 865 |
+
826,
|
| 866 |
+
535
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 6
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "A distributed learning algorithm $\\mathcal { A } ^ { \\mathrm { d i s t r } } : \\mathcal { Z } ^ { * } \\to \\Theta ^ { * }$ is described by a single-shard learning algorithm $\\mathcal { A } ^ { \\mathrm { s i n g l e } } : \\mathcal { Z } ^ { * } \\to \\Theta$ and a routine Sampler, used to select the points in a shard. Sampler, given a dataset $D$ and some probability $p \\in [ 0 , 1 ]$ , includes each element of $D$ in the shard with probability $p$ ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
174,
|
| 875 |
+
540,
|
| 876 |
+
823,
|
| 877 |
+
583
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 6
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "Distributed learning algorithm ${ \\mathcal { A } } ^ { \\mathrm { d i s t r } }$ creates $k$ independent shards from the dataset $D$ of size $n$ by running Sampler $k$ times and training a model with $\\bar { \\mathcal { A } } ^ { \\mathrm { s i n g l e } }$ on each shard $i \\in [ k ]$ to form an ensemble of $k$ models. To emphasize that the randomness across shards is independent, we will instantiate $k$ independent samplers $\\mathtt { S a m p l e r } _ { i }$ and training algorithms $\\mathcal { A } _ { i } ^ { \\mathrm { s i n g l e } }$ for each shard $i \\in [ k ]$ . We formally describe ${ \\mathcal { A } } ^ { \\mathrm { d i s t r } }$ in Algorithm 2. ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
174,
|
| 886 |
+
588,
|
| 887 |
+
825,
|
| 888 |
+
662
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 6
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "The state $s$ of the unlearning algorithm ${ \\mathcal { R } } _ { A ^ { \\mathrm { d i s t r } } }$ records the $k$ shards $\\{ D _ { i } \\} _ { i }$ and the ensemble of $k$ models $\\{ \\theta _ { i } \\} _ { i }$ . Thus $\\mathcal { S } = \\{ \\mathcal { Z } ^ { * } \\} ^ { k } \\times \\Theta ^ { k }$ . As an update request $u$ is received, the update function removes the data point from every shard that contains it (for deletion) or adds the new point to each shard with probability $p$ (for addition). In either case, only the models corresponding to shards that have been updated are retrained using $\\mathcal { A } ^ { \\mathrm { s i n g l e } }$ . We formally describe ${ \\mathcal { R } } _ { A ^ { \\mathrm { d i s t r } } }$ in Algorithm 3. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
667,
|
| 898 |
+
825,
|
| 899 |
+
739
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 6
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "First, we show that if the update requester is non-adaptive, ${ \\mathcal { R } } _ { A ^ { \\mathrm { d i s t r } } }$ is a $( 0 , 0 , 0 )$ -unlearning algorithm: Lemma 5.1. $\\mathcal { R } _ { \\mathcal { A } ^ { d i s t r } }$ is a non-adaptive $( 0 , 0 , 0 )$ -unlearning algorithm for $\\mathcal { A } ^ { d i s t r }$ . ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
173,
|
| 908 |
+
746,
|
| 909 |
+
823,
|
| 910 |
+
779
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 6
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Now, by combining Lemma 5.1 and our general Theorem 4.1, we can show the following: ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
171,
|
| 919 |
+
786,
|
| 920 |
+
766,
|
| 921 |
+
801
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 6
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Theorem 5.1 (Unlearning Guarantees). If for every round $t$ , the sequence of publishing functions $\\{ f _ { p u b l i s h } ^ { t ^ { \\prime } } \\} _ { t ^ { \\prime } \\leq t }$ is $( \\epsilon , \\delta )$ -differentially private in the random seeds $r \\sim \\mathcal { P } ^ { k }$ of the algorithms for $0 < \\epsilon \\leq 1 / 2$ and $0 < \\delta < \\epsilon _ { \\cdot }$ , then $\\mathcal { R } _ { \\mathcal { A } ^ { d i s t r } }$ is an $( \\alpha , \\beta , \\gamma )$ -unlearning algorithm for $\\mathcal { A } ^ { d i s t r }$ where ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
174,
|
| 930 |
+
806,
|
| 931 |
+
825,
|
| 932 |
+
852
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 6
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "equation",
|
| 938 |
+
"img_path": "images/129e8e9ed74c537bbd51cd4895d8c06221772667ff86984801778b047e7df81f.jpg",
|
| 939 |
+
"text": "$$\n\\alpha = O \\left( \\epsilon ^ { 2 } k + k \\sqrt { \\delta / \\epsilon } \\right) , \\quad \\beta = \\gamma = O \\left( \\sqrt { e ^ { - \\epsilon ^ { 2 } k } + k \\sqrt { \\delta / \\epsilon } } \\right)\n$$",
|
| 940 |
+
"text_format": "latex",
|
| 941 |
+
"bbox": [
|
| 942 |
+
292,
|
| 943 |
+
854,
|
| 944 |
+
705,
|
| 945 |
+
888
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 6
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Next, we bound the time complexity of our algorithms: ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
897,
|
| 955 |
+
535,
|
| 956 |
+
912
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 6
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Input: dataset $D ^ { t - 1 }$ , update $u ^ { t } = ( z ^ { t } , \\bullet ^ { t } )$ , state $s ^ { t - 1 } = ( \\{ D _ { i } ^ { t - 1 } \\} _ { i \\in [ k ] } , \\{ \\theta _ { i } ^ { t - 1 } \\} _ { i \\in [ k ] } )$ \nif $\\bullet ^ { t } = { } ^ { \\prime } \\mathtt { d e l e t e } ^ { \\prime }$ then $S = \\left\\{ i \\in [ k ] : z ^ { t } \\in D _ { i } ^ { t - 1 } \\right\\} / /$ the shards $z ^ { t }$ belongs to. \nelse $S = \\{ i \\in [ k ] : \\mathtt { S a m p l e r } _ { i } ( \\{ z ^ { t } \\} , p ) \\neq \\{ \\} \\} / \\prime$ the shards $z ^ { t }$ will be added to. \nUpdate the shards: $D _ { i } ^ { t } = \\left\\{ { D _ { i } ^ { t - 1 } \\circ u } \\right.$ t if ot $i \\in S$ se , for every $i \\in [ k ]$ . \nUpdate the models: $\\theta _ { i } ^ { t } = \\Big \\{ \\mathcal { A } _ { i } ^ { \\mathrm { s i n g l e } } ( D _ { i } ^ { t } )$ if ot $i \\in S$ se , for every $i \\in [ k ]$ . \nUpdate the state: $s ^ { t } = ( \\{ D _ { i } ^ { t } \\} _ { i \\in [ k ] } , \\{ \\theta _ { i } ^ { t } \\} _ { i \\in [ k ] } ) / /$ to be used for the next update. \nOutput: {θti }i∈[k] ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
183,
|
| 965 |
+
112,
|
| 966 |
+
779,
|
| 967 |
+
291
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 7
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Theorem 5.2 (Run-time Guarantees). Let $p = 1 / k$ . Suppose the publishing functions satisfy the differential privacy requirement of Theorem 5.1. Let $N ^ { t }$ denote the number of times $\\mathcal { R } _ { \\mathcal { A } } ^ { d i s t r }$ calls $\\mathcal { A } ^ { s i n g l e }$ at round $t$ . We have that $N ^ { 0 } = k$ , and for every round $t \\geq 1$ : 1) if the update requester is non-adaptive, for every $\\xi$ , with probability at least $1 - \\xi$ , $N ^ { t } \\leq 1 + \\sqrt { 2 \\log { ( 1 / \\xi ) } }$ . 2) if the update requester is adaptive, for every $\\xi$ , with probability at least 1 − ξ, $N ^ { t } \\leq 1 + \\sqrt { 2 \\log { ( ( n + t ) / \\xi ) } }$ . Furthermore, for $\\xi > \\delta ^ { \\prime }$ , with probability at least $1 - \\xi$ , we have ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
173,
|
| 976 |
+
321,
|
| 977 |
+
825,
|
| 978 |
+
414
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 7
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "equation",
|
| 984 |
+
"img_path": "images/ae1774c441c6ddb0054e6f3f295ae6b952de2af5475d4b11fb5793e00a93a87f.jpg",
|
| 985 |
+
"text": "$$\n\\begin{array} { c } { { N ^ { t } \\leq 1 + \\operatorname* { m i n } \\left\\{ \\sqrt { 2 \\log \\left( 2 ( n + t ) / ( \\xi - \\delta ^ { \\prime } ) \\right) } , \\sqrt { 2 \\epsilon ^ { \\prime } + 2 \\log \\left( 2 / ( \\xi - \\delta ^ { \\prime } ) \\right) } \\right\\} } } \\\\ { { { } } } \\\\ { { = O \\left( \\epsilon ^ { 2 } k + k \\sqrt { \\delta / \\epsilon } \\right) a n d \\delta ^ { \\prime } = e ^ { - \\epsilon ^ { 2 } k } + O \\left( k \\sqrt { \\delta / \\epsilon } \\right) } } \\end{array}\n$$",
|
| 986 |
+
"text_format": "latex",
|
| 987 |
+
"bbox": [
|
| 988 |
+
236,
|
| 989 |
+
419,
|
| 990 |
+
743,
|
| 991 |
+
481
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 7
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "The proof can be found in the appendix, but at a high level it proceeds as follows. For a deletion request, we must retrain every shard that contains the point to be deleted. For a non-adaptive deletion request, we retrain one shard in expectation and we can obtain a high probability upper bound by using a Hoeffding bound. In the adaptive case, this may no longer be true, but there are two ways to obtain upper bounds that correspond to the two bounds in our Theorem. We can provide a worst-case upper bound on the number of shards that any of the √ $n$ data points belongs to, which incurs a cost of order $\\sqrt { \\log n }$ . Alternately, we can apply max-information bounds to reduce to the non-adaptive case, using an argument that is similar to our reduction for deletion guarantees. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
488,
|
| 1001 |
+
825,
|
| 1002 |
+
599
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 7
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Remark 5.1. We note that there is an alternative algorithm that one might consider, resulting from group differential privacy. If a learning algorithm satisfies $\\frac { \\epsilon } { k }$ −differential privacy, a valid unlearning procedure is to do nothing for $k$ updates and then fully retrain on the $( k + 1 ) ^ { t h }$ update. This follows from the \u000f−differential privacy guarantee the algorithm will have for groups of size $k$ . Our algorithm substantially outperforms this alternative algorithm as well, namely because our privacy parameter degrades much slower than in this group privacy baseline. Our analysis leverages adaptive composition of privacy across the publishing functions which means that privacy degrades with the square root of the number of updates, while it degrades linearly with group privacy. Consequently the group privacy baseline would require a full retraining every $k$ updates, but our algorithm requires a full retraining only every $k ^ { 2 }$ updates. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
173,
|
| 1011 |
+
603,
|
| 1012 |
+
825,
|
| 1013 |
+
746
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 7
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "5.1 Private Aggregation ",
|
| 1020 |
+
"text_level": 1,
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
174,
|
| 1023 |
+
761,
|
| 1024 |
+
352,
|
| 1025 |
+
776
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 7
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "We briefly describe how we serve prediction requests by privately aggregating the output of the ensemble of models such that the published predictions are differentially private in the random seeds $r$ . At each round $t$ , while $\\mathcal { R } _ { \\mathcal { A } } ^ { \\mathrm { d i s t r } }$ is waiting for the next update request $\\hat { u ^ { t + 1 } }$ , we receive prediction requests $x$ and serve predictions $\\hat { y }$ . For each prediction request, we privately aggregate the predictions made by the ensemble of models $\\{ \\theta _ { i } ^ { t } \\} _ { i }$ ; Dwork and Feldman [2018] show several ways to privately aggregate predictions (one simple technique is to use the exponential mechanism to approximate the majority vote). Suppose we aggregate the predictions made by the ensemble of models using PrivatePredi $\\mathfrak { L } _ { \\epsilon ^ { \\prime } } ^ { k } : \\bar { \\Theta } ^ { k } \\times \\mathcal { X } \\stackrel { \\left. } { \\right. } \\mathcal { Y }$ , which takes in an ensemble of $k$ models and a data point, aggregates predictions from the ensemble models, and outputs a label that is $\\epsilon ^ { \\prime }$ -differentially private in the models. If we receive $l ^ { t }$ many prediction requests $( x _ { 1 } ^ { t } , \\ldots , x _ { l ^ { t } } ^ { t } )$ before our next update request $\\boldsymbol u ^ { t + 1 }$ , we can write $( \\hat { y } _ { 1 } ^ { t } , \\dots , \\hat { y } _ { l ^ { t } } ^ { t } ) = f _ { \\mathrm { p u b l i s h } } ^ { t } ( \\{ \\theta _ { i } ^ { t } \\} _ { i } )$ where $\\begin{array} { r } { \\hat { y } _ { j } ^ { t } = \\mathtt { P r i v a t e P r e d i c t } _ { \\epsilon ^ { \\prime } } ^ { k } ( \\{ \\theta _ { i } ^ { t } \\} _ { i } , x _ { j } ^ { t } ) . } \\end{array}$ . ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
786,
|
| 1035 |
+
825,
|
| 1036 |
+
911
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 7
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
174,
|
| 1045 |
+
90,
|
| 1046 |
+
823,
|
| 1047 |
+
125
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 8
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "Theorem 5.1, tells us that desired unlearning parameters $( \\alpha , \\beta , \\gamma )$ can be obtained by guaranteeing that the sequence of predictions is $( \\epsilon , \\delta )$ differentially private in the models (and hence $r$ ), for target parameters $\\epsilon , \\delta$ . As we serve prediction requests using PrivatePredict $\\mathbf { \\Sigma } _ { \\epsilon ^ { \\prime } } ^ { k }$ our privacy loss will accumulate and eventually exhaust our budget of $( \\epsilon , \\delta )$ -differential privacy. Hence we must track our accumulated privacy loss in the state of our unlearning algorithm, and when it is exhausted, fully retrain using $\\bar { \\mathcal { A } } ^ { \\mathrm { d i s t r } }$ . This resamples $r$ and hence resets our privacy budget. Standard composition theorems (see Dwork and Roth [2014]) show that we exhaust our privacy budget (and need to fully retrain) every time the number of prediction requests made since the last full retraining exceeds $\\left\\lfloor { \\frac { \\epsilon ^ { 2 } } { 8 ( \\epsilon ^ { \\prime } ) ^ { 2 } \\ln ( { \\frac { 1 } { \\delta } } ) } } \\right\\rfloor$ We formally describe this process denoted as PrivatePredictionInteraction $( \\epsilon ^ { \\prime } , \\epsilon , \\delta , k )$ in the appendix and state its unlearning guarantee in Theorem 5.3. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
173,
|
| 1056 |
+
130,
|
| 1057 |
+
826,
|
| 1058 |
+
280
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 8
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Theorem 5.3. The models $\\{ \\{ \\theta _ { i } ^ { t } \\} _ { i } \\} _ { t }$ in PrivatePredictionInteraction $( \\epsilon ^ { \\prime } , \\epsilon , \\delta , k )$ satisfy $( \\alpha , \\beta , \\gamma )$ -unlearning guarantee for $\\mathcal { A } ^ { d i s t r }$ where $\\begin{array} { r l r } { \\alpha } & { { } = } & { O \\left( \\epsilon ^ { 2 } k + k \\sqrt { \\delta / \\epsilon } \\right) } \\end{array}$ and $\\beta , \\gamma \\quad = \\quad$ $O \\left( \\sqrt { e ^ { - \\epsilon ^ { 2 } k } + k \\sqrt { \\delta / \\epsilon } } \\right)$ , $i f 0 < \\epsilon \\leq 1 / 2$ and $0 < \\delta < \\epsilon$ . ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
173,
|
| 1067 |
+
287,
|
| 1068 |
+
825,
|
| 1069 |
+
361
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 8
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "6 Evaluation of Unlearning Guarantees ",
|
| 1076 |
+
"text_level": 1,
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
173,
|
| 1079 |
+
388,
|
| 1080 |
+
519,
|
| 1081 |
+
407
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 8
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "In this section we consider the white-box setting in which the models in each shard are made public. SISA continues to have perfect deletion guarantees against non-adaptive deletion sequences in this setting. Experimental results on CIFAR-10 [Krizhevsky and Hinton, 2009], MNIST [Lecun et al., 1998], and Fashion-MNIST [Xiao et al., 2017] show both the failure of SISA to satisfy adaptive deletion guarantees, and give evidence that differential privacy can mitigate this problem well beyond the setting of our theorems while achieving accuracy only modestly worse than SISA. The code for our experiments can be found at https://github.com/ChrisWaites/adaptive-machine-unlearning. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
173,
|
| 1090 |
+
428,
|
| 1091 |
+
826,
|
| 1092 |
+
526
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 8
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "We train SISA with an ensemble of convolutional neural networks on several datasets of points with categorical labels. Given a new point at query time, each model in the ensemble votes on the most likely label and aggregates their votes. The models are exposed publicly. This scheme has perfect non-adaptive deletion guarantees. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
531,
|
| 1102 |
+
825,
|
| 1103 |
+
588
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 8
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "To construct an adaptive deletion sequence to falsify the hypothesis that the scheme has adaptive deletion guarantees, we exploit the observation that neural networks are often overconfident in the correct label for points on which they have been trained. For each training point, we guess that it falls into the shard corresponding to the model that has the highest confidence for the correct label. We then delete points for which we guess that they fall into the first $k / 2$ of the shards, and do not delete any others. After deleting the targeted points, we compute a test statistic: the indicator of whether the average accuracy of the models from the targeted shards is lower than the average accuracy of the models from the non-targeted shards. Under full retraining, by the symmetry of the random partition, the expectation of this test statistic is 0.5. Thus under the null hypothesis that the deletion algorithm satisfies perfect deletion guarantees, the test statistic also has expectation 0.5. Therefore, to the extent that the expectation of the indicator differs from 0.5, we falsify the null hypothesis that SISA has adaptive data deletion guarantees, and larger deviations from 0.5 falsify weaker deletion guarantees. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
174,
|
| 1112 |
+
593,
|
| 1113 |
+
825,
|
| 1114 |
+
760
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 8
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "We run this experiment on three datasets (CIFAR-10, MNIST, and Fashion-MNIST), and plot the results in Figure 1. We then repeat the experiment by adding various amounts of noise to the gradients in the model training process to guarantee finite levels of differential privacy (though much weaker privacy guarantees than would be needed to invoke our theorems). We observe that on each dataset, modest amounts of noise are sufficient to break our attack (i.e. $9 5 \\%$ confidence intervals for the expectation of our indicator include 0.5, and hence fail to falsify the null hypothesis) while still approaching the accuracy of our models trained without differential privacy. This is also plotted in Figure 1. This gives evidence that differential privacy can improve deletion guarantees in the presence of adaptivity even in regimes beyond which our theory gives nontrivial guarantees. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
174,
|
| 1123 |
+
765,
|
| 1124 |
+
825,
|
| 1125 |
+
891
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 8
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Full experimental details can be found in the appendix. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
174,
|
| 1134 |
+
897,
|
| 1135 |
+
534,
|
| 1136 |
+
911
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 8
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "image",
|
| 1142 |
+
"img_path": "images/44fba5964c6c783ca2ae42a63a10ae0552b68072bfa7bccf8697ae8c62cbba64.jpg",
|
| 1143 |
+
"image_caption": [
|
| 1144 |
+
"Figure 1: The top row and bottom row show experiments with $k = 6$ and $k = 2$ shards respectively. The 3 columns report on 3 datasets. The $x$ axis denotes estimated expectation of our test statistic (the null hypothesis is expectation 0.5). The $y$ axis denotes the accuracy of the ensemble after deletion. Each point is annotated with the noise multiplier used in DP-SGD, the standard deviation of Gaussian noise applied to gradients during training. A label of 0.0 for a point represents the baseline case of no noise (original SISA algorithm). Points are affixed with $9 5 \\%$ confidence intervals along both axes (over the randomness of repeating the training/deletion experiment). Horizontal confidence intervals that overlap the line denoting expectation 0.5 fail to reject the null hypothesis that the algorithm has adaptive data deletion guarantees at $p \\leq 0 . 0 5$ . We get to this point with a level of noise addition that results in only a modest degradation in ensemble performance compared to SISA. "
|
| 1145 |
+
],
|
| 1146 |
+
"image_footnote": [],
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
191,
|
| 1149 |
+
93,
|
| 1150 |
+
820,
|
| 1151 |
+
373
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "7 Conclusion and Discussion ",
|
| 1158 |
+
"text_level": 1,
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
176,
|
| 1161 |
+
558,
|
| 1162 |
+
426,
|
| 1163 |
+
575
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "We identify an important blindspot in the data deletion literature (the tenuous implicit assumption that deletion requests are independent of previously released models), and provide a very general methodology to reduce adaptive deletion guarantees to oblivious deletion guarantees. Through this reduction we get the first model and training algorithm agnostic methodology that allows for deletion of arbitrary sequences of adaptively chosen points while giving rigorous guarantees. The constants that our theorems inherit from the max information bounds of Rogers et al. [2016] are such that in most realistic settings they will not give useful parameters. But we hope that these constants will be improved in future work, and we give empirical evidence that differential privacy mitigates adaptive deletion “attacks” at very practical levels, beyond the promises of our theoretical results. We note that like for differential privacy, the $( \\alpha , \\beta , \\gamma )$ -deletion guarantees we give in this paper are parameterized, and are not meaningful absent a specification of those parameters. There is a risk with such technologies that they will be used with large values of the parameters that give only very weak guarantees, but will be described publicly in a way that glosses over this issue. We therefore recommend that if adopted in deployed products, deletion guarantees always be discussed in public in a way that is precise about what they promise, including the relevant parameter settings. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
173,
|
| 1172 |
+
599,
|
| 1173 |
+
825,
|
| 1174 |
+
808
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 9
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Acknowledgements ",
|
| 1181 |
+
"text_level": 1,
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
176,
|
| 1184 |
+
842,
|
| 1185 |
+
338,
|
| 1186 |
+
858
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 9
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "V.G., C.J., A.R., and S.S. were supported in part by NSF grants CCF-1934876 and AF-1763307, and a grant from the Simons Foundation. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
882,
|
| 1196 |
+
823,
|
| 1197 |
+
911
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 9
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "References ",
|
| 1204 |
+
"text_level": 1,
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
174,
|
| 1207 |
+
89,
|
| 1208 |
+
267,
|
| 1209 |
+
106
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 10
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Raef Bassily, Kobbi Nissim, Adam Smith, Thomas Steinke, Uri Stemmer, and Jonathan Ullman. Algorithmic stability for adaptive data analysis. SIAM Journal on Computing, (0):STOC16–377, 2021. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
114,
|
| 1219 |
+
825,
|
| 1220 |
+
155
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 10
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Lucas Bourtoule, Varun Chandrasekaran, Christopher Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie, and Nicolas Papernot. Machine unlearning. In Proceedings of the 42nd IEEE Symposium on Security and Privacy, San Francisco, CA., 2021. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
174,
|
| 1229 |
+
166,
|
| 1230 |
+
823,
|
| 1231 |
+
209
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 10
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
173,
|
| 1240 |
+
219,
|
| 1241 |
+
825,
|
| 1242 |
+
276
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 10
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Yinzhi Cao and Junfeng Yang. Towards making systems forget with machine unlearning. In 2015 IEEE Symposium on Security and Privacy, pages 463–480. IEEE, 2015. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
173,
|
| 1251 |
+
286,
|
| 1252 |
+
825,
|
| 1253 |
+
316
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 10
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Cynthia Dwork and Vitaly Feldman. Privacy-preserving prediction. CoRR, abs/1803.10266, 2018. URL http://arxiv.org/abs/1803.10266. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
169,
|
| 1262 |
+
325,
|
| 1263 |
+
826,
|
| 1264 |
+
356
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 10
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends® in Theoretical Computer Science, 9(3–4):211–407, 2014. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
169,
|
| 1273 |
+
364,
|
| 1274 |
+
825,
|
| 1275 |
+
395
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 10
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 486–503. Springer, 2006a. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
178,
|
| 1284 |
+
404,
|
| 1285 |
+
825,
|
| 1286 |
+
448
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 10
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006b. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
173,
|
| 1295 |
+
457,
|
| 1296 |
+
823,
|
| 1297 |
+
488
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 10
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. The reusable holdout: Preserving validity in adaptive data analysis. Science, 349(6248):636–638, 2015a. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
497,
|
| 1307 |
+
826,
|
| 1308 |
+
539
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 10
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. Generalization in adaptive data analysis and holdout reuse. In Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume 2, pages 2350–2358, 2015b. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
173,
|
| 1317 |
+
549,
|
| 1318 |
+
826,
|
| 1319 |
+
593
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 10
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Leon Roth. Preserving statistical validity in adaptive data analysis. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing, pages 117–126, 2015c. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
176,
|
| 1328 |
+
603,
|
| 1329 |
+
825,
|
| 1330 |
+
647
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 10
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Indrajit Ray, Ninghui Li, and Christopher Kruegel, editors, Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA, October 12-16, 2015, pages 1322–1333. ACM, 2015. doi: 10.1145/ 2810103.2813677. URL https://doi.org/10.1145/2810103.2813677. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
174,
|
| 1339 |
+
656,
|
| 1340 |
+
826,
|
| 1341 |
+
727
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 10
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Antonio Ginart, Melody Y. Guan, Gregory Valiant, and James Zou. Making AI forget you: Data deletion in machine learning. CoRR, abs/1907.05012, 2019. URL http://arxiv.org/abs/ 1907.05012. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
174,
|
| 1350 |
+
737,
|
| 1351 |
+
826,
|
| 1352 |
+
780
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Aditya Golatkar, Alessandro Achille, Avinash Ravichandran, Marzia Polito, and Stefano Soatto. Mixed-privacy forgetting in deep networks. arXiv preprint arXiv:2012.13431, 2020a. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
168,
|
| 1361 |
+
790,
|
| 1362 |
+
825,
|
| 1363 |
+
820
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 10
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Aditya Golatkar, Alessandro Achille, and Stefano Soatto. Forgetting outside the box: Scrubbing deep networks of information accessible from input-output observations. In European Conference on Computer Vision, pages 383–398. Springer, 2020b. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
174,
|
| 1372 |
+
829,
|
| 1373 |
+
823,
|
| 1374 |
+
872
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 10
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Chuan Guo, Tom Goldstein, Awni Hannun, and Laurens van der Maaten. Certified data removal from machine learning models. arXiv preprint arXiv:1911.03030, 2019. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
174,
|
| 1383 |
+
883,
|
| 1384 |
+
821,
|
| 1385 |
+
911
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 10
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Avinatan Hassidim, Haim Kaplan, Yishay Mansour, Yossi Matias, and Uri Stemmer. Adversarially robust streaming algorithms via differential privacy. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips. cc/paper/2020/hash/0172d289da48c48de8c5ebf3de9f7ee1-Abstract.html. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
174,
|
| 1394 |
+
90,
|
| 1395 |
+
826,
|
| 1396 |
+
174
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 11
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "The U.K. Information Commissioner’s Office ICO. Guidance on the ai auditing framework. Draft Consultation, 2020. URL https://ico.org.uk/media/about-the-ico/consultations/ 2617219/guidance-on-the-ai-auditing-framework-draft-for-consultation.pdf. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
174,
|
| 1405 |
+
184,
|
| 1406 |
+
826,
|
| 1407 |
+
227
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 11
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Christopher Jung, Katrina Ligett, Seth Neel, Aaron Roth, Saeed Sharifi-Malvajerdi, and Moshe Shenfeld. A new analysis of differential privacy’s generalization guarantees. In 11th Innovations in Theoretical Computer Science Conference (ITCS 2020), volume 151, page 31. Schloss Dagstuhl– Leibniz-Zentrum fuer Informatik, 2020. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
174,
|
| 1416 |
+
234,
|
| 1417 |
+
826,
|
| 1418 |
+
291
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 11
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
171,
|
| 1427 |
+
300,
|
| 1428 |
+
825,
|
| 1429 |
+
315
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 11
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Yann Lecun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. In Proceedings of the IEEE, pages 2278–2324, 1998. ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
174,
|
| 1438 |
+
323,
|
| 1439 |
+
823,
|
| 1440 |
+
353
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 11
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Seth Neel and Aaron Roth. Mitigating bias in adaptive data gathering via differential privacy. In International Conference on Machine Learning, pages 3720–3729. PMLR, 2018. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
174,
|
| 1449 |
+
361,
|
| 1450 |
+
821,
|
| 1451 |
+
391
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 11
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "Seth Neel, Aaron Roth, and Saeed Sharifi-Malvajerdi. Descent-to-delete: Gradient-based methods for machine unlearning. In Algorithmic Learning Theory, pages 931–962. PMLR, 2021. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
174,
|
| 1460 |
+
398,
|
| 1461 |
+
823,
|
| 1462 |
+
429
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 11
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Nicolas Papernot, Shuang Song, Ilya Mironov, Ananth Raghunathan, Kunal Talwar, and Úlfar Erlingsson. Scalable private learning with pate, 2018. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
174,
|
| 1471 |
+
438,
|
| 1472 |
+
825,
|
| 1473 |
+
467
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 11
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "Nicolas Papernot, Abhradeep Thakurta, Shuang Song, Steve Chien, and Ulfar Erlingsson. Tempered sigmoid activations for deep learning with differential privacy. The 35th AAAI Conference on Artificial Intelligence, 2021. ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
174,
|
| 1482 |
+
476,
|
| 1483 |
+
821,
|
| 1484 |
+
518
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 11
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "Ryan Rogers, Aaron Roth, Adam Smith, and Om Thakkar. Max-information, differential privacy, and post-selection hypothesis testing. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 487–494. IEEE, 2016. ",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
173,
|
| 1493 |
+
527,
|
| 1494 |
+
825,
|
| 1495 |
+
570
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 11
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"text": "Ayush Sekhari, Jayadev Acharya, Gautam Kamath, and Ananda Theertha Suresh. Remember what you want to forget: Algorithms for machine unlearning. arXiv preprint arXiv:2103.03279, 2021. ",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
171,
|
| 1504 |
+
579,
|
| 1505 |
+
823,
|
| 1506 |
+
608
|
| 1507 |
+
],
|
| 1508 |
+
"page_idx": 11
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"type": "text",
|
| 1512 |
+
"text": "Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3–18. IEEE, 2017. ",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
173,
|
| 1515 |
+
616,
|
| 1516 |
+
825,
|
| 1517 |
+
659
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 11
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"text": "Michael Veale, Reuben Binns, and Lilian Edwards. Algorithms that remember: Model inversion attacks and data protection law. CoRR, abs/1807.04644, 2018. URL http://arxiv.org/abs/ 1807.04644. ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
171,
|
| 1526 |
+
667,
|
| 1527 |
+
823,
|
| 1528 |
+
709
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 11
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. 2017. ",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
171,
|
| 1537 |
+
719,
|
| 1538 |
+
823,
|
| 1539 |
+
748
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 11
|
| 1542 |
+
}
|
| 1543 |
+
]
|
parse/train/Goz-qsH1F14/Goz-qsH1F14_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Goz-qsH1F14/Goz-qsH1F14_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1lVvgHKDr/H1lVvgHKDr.md
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KNOWLEDGE TRANSFER VIA STUDENT-TEACHER COLLABORATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Accompanying with the flourish development in various fields, deep neural networks, however, are still facing with the plight of high computational costs and storage. One way to compress these heavy models is knowledge transfer (KT), in which a light student network is trained through absorbing the knowledge from a powerful teacher network. In this paper, we propose a novel knowledge transfer method which employs a Student-Teacher Collaboration (STC) network during the knowledge transfer process. This is done by connecting the front part of the student network to the back part of the teacher network as the STC network. The back part of the teacher network takes the intermediate representation from the front part of the student network as input to make the prediction. The difference between the prediction from the collaboration network and the output tensor from the teacher network is taken into account of the loss during the train process. Through back propagation, the teacher network provides guidance to the student network in a gradient signal manner. In this way, our method takes advantage of the knowledge from the entire teacher network, who instructs the student network in learning process. Through plentiful experiments, it is proved that our STC method outperforms other KT methods with conventional strategy.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep neural networks have produced breakthrough results in various fields, such as computer vision (Krizhevsky et al., 2012; He et al., 2016) and natural language processing (Mikolov et al., 2010) in recent years. Through a mass of studies (Neyshabur et al., 2017; Canziani et al., 2016; Novak et al., 2018), researchers have proved that a DNN with larger capacity will have a better generalizability, which leads to a better performance. However, larger capacity will also cause heavier computational costs and storage, making these powerful models difficult to meet real-time requirements on embedded systems.
|
| 12 |
+
|
| 13 |
+
One way to compress these heavy models is knowledge transfer (KT). As can be seen in Figure 1(a), KT is a method to improve the performance of a light student network by absorbing the knowledge from a strong teacher network. In the early studies of KT such as knowledge distillation (KD) (Hinton et al., 2015), researchers took advantage of the output vector from teacher networks, converted it into “soft target” and trained the student network with the soft target and the ground-truth. KD can only be applied in classification task since the “soft target” is produced by the softmax function with temperature T. In recent studies, many methods focused on the intermediate representation of the teacher network, in which the feature map (Romero et al., 2015), attention map (Zagoruyko & Komodakis, 2016a) or the factor (Kim et al., 2018) extracted from student network are induced to mimic the corresponding one from teacher network by minimizing the difference between them. Figure 1(b) and Figure 1(c) are the overview of AT and FT. As can be seen, the role of the teacher network in these two methods is simply to provide an intermediate representation for imitation while does not give extra help during the training process. Moreover, due to divergence of the structure between the student and teacher networks, the student network usually cannot generate the same intermediate representation as the teacher network. In this case, an intermediate representation with the smallest difference does not equal to an accurate prediction.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Overview of the proposed student-teacher collaboration method compared with other methods. (a) Student and teacher network. (b) Attention transfer (c) Factor transfer (d) Studentteacher collaboration. Different from the previous methods, we employ a collaboration network which is a connection of the front part of the student network and the back part of the teacher network. The difference between the predictions from the collaboration network and the teacher network is taken into account of loss during the training process. It can be clearly seen that our STC method additionally utilizes the knowledge from the top part of the teacher network.
|
| 17 |
+
|
| 18 |
+
To address the above problems, we propose a novel knowledge transfer method as illustrated in Figure 1(d). Different from the previous methods, we employ a collaboration network which is a connection of the front part of the student network and the back part of the teacher network during the training process. Specifically, we select a set of corresponding layers from the student and teacher networks. The front part and the back part of the selected layers of student and teacher networks are called student sub-network and teacher sub-network respectively. The teacher sub-network takes the intermediate representation from the student sub-network as input to make the prediction. Unlike KD using the soft target, in our method, the output tensor from the teacher network is directly treated as the target of the collaboration network. In this manner, our method can be applied to different tasks. During the training process, the difference between the predictions from the collaboration network and the teacher network is taken into account of the loss. Through back propagation, the gradient signal in the back part of the teacher network can be transferred to the student network and supervises the training process. In this way, teacher network in our method instructs student network on how to get the “answer”, rather than just give an intermediate representation for mimicking as in previous methods. It can be clearly seen from Figure 1 that our method additionally utilizes the knowledge from the teacher sub-network, compared with the previous methods. It is worth noting that the collaboration network is only used during the training process, the student network with the original structure is used for prediction during the inference time.
|
| 19 |
+
|
| 20 |
+
Our contributions can be summarized as follows:
|
| 21 |
+
|
| 22 |
+
• We propose a novel knowledge transfer method, additionally utilizing the knowledge from the back part of the teacher network by employing a collaboration network structure. To the best of our knowledge, the training strategy of insturcting the student network with a collaboration network has never been used.
|
| 23 |
+
• The teacher network in our method instructs student network on how to get the right “answer”, rather than just give an intermediate representation for mimicking as in previous methods.
|
| 24 |
+
• We take the output tensor from the teacher network as the target of the collaboration network, which brings good generalizability to our method on different tasks.
|
| 25 |
+
• We experimentally show that our method outperforms other methods with conventional strategy on various datasets in different tasks.
|
| 26 |
+
|
| 27 |
+
# 2 RELATED WORKS
|
| 28 |
+
|
| 29 |
+
To reduce the model size as well as the computational costs of deep neural networks, a variety of methods have been proposed. These methods can be summarized into five categories: network pruning, parameter quantization, tensor decomposition, efficient architecture design and knowledge transfer. Network pruning is a way to reduce the redundancy in the neural networks(LeCun et al., 1990). Han et al. (2015) pruned the network by removing the unimportant connections. Later network pruning methods operate at channel or filter levels(Han et al., 2015; Yamamoto & Maeno, 2018; Liu et al., 2018; He et al., 2017). Parameter quantization aims at compressing the model by reducing the number of bits occupied by the weights or neurons. In Gupta et al. (2015), Vanhoucke et al. (2011), Zhuang et al. and Rastegari et al. (2016), authors trained convolutional neural networks using 16-bit, 8-bit, 4-bit and 1-bit weights respectively. Han et al. (2016) optimized the model combined with network pruning, quantization and huffman coding. Tensor decomposition compresses the networks by decomposing dense convolutional kernels with low-rank approximations, including CP-decomposition(Lebedev et al., 2014), Tucker decomposition(Kim et al., 2016) and tensor ring decomposition(Zhao et al., 2016). Efficient network architecture design is an interesting approach to accelerate the model, such as SqueezeNet (Iandola et al., 2017), Mobilenet (Howard et al., 2017), ShuffleNet (Zhang et al., 2018) and Xception (Chollet, 2017).
|
| 30 |
+
|
| 31 |
+
In addition to the above four strategies that will partially change the components of the network, knowledge transfer is another way to compress the model by improving the performance of a lighter student network with the knowledge from a stronger teacher network. To the best of our knowledge, the earliest work of knowledge transfer is Bucilua et al. (2006), which to train a small model with data labeled by an ensemble of large model. Li et al. (2014) took the KL divergence between the posterior probabilities produced by the softmax operation from student and teacher model as loss function for knowledge transfer. Hinton et al. (2015) proposed a method called knowledge distillation (KD), converting the posterior probabilities extracted from teacher network into “soft targets”. In Fitnets (Romero et al., 2015), they regarded the feature map extracted from the teacher network as hints, and trained the student network by mimicking the corresponding feature maps of student and teacher networks. Attention transfer (AT) (Zagoruyko & Komodakis, 2016a) computed the summations of the feature map across the channel to generate the attention map and trained the student network by minimizing the difference between the attention map of corresponding blocks. Factor transfer (FT) (Kim et al., 2018) employed a paraphraser and a translator to translate the knowledge in the feature maps into factors. The student network is optimized by minimizing the $l _ { 2 }$ loss between student and teacher factors. In Ding et al. (2019), authors compressed the CNN-DBLSTM model on OCR task with Tucker decomposition and the knowledge in the teacher’s BLSTM and inner product layers. There are also studies on knowledge transfer utilizing the adversarial networks, such as $\mathrm { X u }$ et al., Belagiannis et al. (2018) and Wang et al. (2018).
|
| 32 |
+
|
| 33 |
+
# 3 METHOD
|
| 34 |
+
|
| 35 |
+
An eminent teacher should not only give a referenced answer to a student, but also teach student how to get the answer. Analogously, during the training process of the student network, a teacher network should teach the student network how to make the right prediction to play a role as an eminent teacher. In this section, we will firstly explain some concerns in the previous knowledge transfer methods and then describe our method in detail to explain how the teacher network instructs the student network’s learning process in our method.
|
| 36 |
+
|
| 37 |
+
# 3.1 CONCERNS IN THE PREVIOUS METHODS
|
| 38 |
+
|
| 39 |
+
Previous knowledge transfer methods, such as AT (Zagoruyko & Komodakis, 2016a) and FT (Kim et al., 2018), train the student network by minimizing the difference between the intermediate representations extracted from the corresponding layers of student and teacher networks. However, this training strategy contains the following problems.
|
| 40 |
+
|
| 41 |
+
The first problem is that the teacher network in the previous methods simply provided an intermediate representation for imitation but did not teach student network how to get it. Therefore, the guidance from teacher network is limited in the previous methods. Another problem is the intermediate representation from teacher network is treated as the target in these method. However, due to the divergence of the structure between the student and teacher networks, the student network usually cannot generate the same intermediate representation as the teacher network. In this case, an intermediate representation with the smallest difference does not equal to an accurate prediction. What’s more, the intermediate representation is extracted from the hidden layer of the network, so the knowledge in the subsequent layers of the teacher network cannot be utilized.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 2: Training process of the proposed student-teacher collaboration method. We take the output tensor from the teacher network as the target of the collaboration network. The student network is trained with the collaboration loss and the classification loss. During the training process, the weights of the teacher network and teacher sub-network are fixed, only the weights of student network are updated.
|
| 45 |
+
|
| 46 |
+
# 3.2 STUDENT-TEACHER COLLABORATION
|
| 47 |
+
|
| 48 |
+
To address the above problems, we proposed a novel training strategy for knowledge transfer in our method which is insturcting the student network with a collaboration network during the training process. As illustrated in Figure 2, our method consists of three steps. Firstly, we forward propagate a pretrained teacher network $\tau$ with the input data $\pmb { I }$ to get the target $O _ { t }$ . Secondly, we connect all the front part of a selected layer of the student network which we called student sub-network to the corresponding layer1 of the teacher network as a collaboration network. The subsequent layers of the teacher network which we called teacher sub-network takes the intermediate representation from the student sub-network as input to produce the prediction $O _ { c }$ . The forward propagation of the collaboration network can be formulated as:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
O _ { c } = \mathcal { T } _ { s u b } ( x _ { s } ^ { l _ { s } } ) = \mathcal { T } _ { s u b } \circ f ( w _ { s } ^ { l _ { s } } x _ { s } ^ { l _ { s } - 1 } )
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where $c$ and $s$ are the symbol for collaboration and student network respectively. $\tau _ { s u b }$ denotes the calculations of the teacher sub-network. $f$ denotes the activation function. $l , x$ and $w$ denotes the layer number, intermediate representation and weights of the network respectively. Biases are omitted for simplifying notations.
|
| 55 |
+
|
| 56 |
+
After forward propagate the collaboration network, we compute the difference between the predictions from the collaboration network and the teacher network as the STC loss $\pmb { L } _ { S T C }$ . The back propagation of STC loss can be formulated as:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\frac { \partial { \cal L } _ { S T C } ( { \cal O } _ { c } , { \cal O } _ { t } ) } { \partial w ^ { l _ { s } } } = \frac { \partial { \cal L } _ { S T C } ( { \cal O } _ { c } , { \cal O } _ { t } ) } { \partial { \cal O } _ { c } } \frac { \partial { \cal O } _ { c } } { \partial x _ { s } ^ { l _ { s } } } \frac { \partial x _ { s } ^ { l _ { s } } } { \partial w _ { s } ^ { l _ { s } } }
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where $O _ { t }$ denotes the output tensor from teacher network. Biases are omitted for simplifying notations.
|
| 63 |
+
|
| 64 |
+
As can be seen in Eq. 2, the teacher network instructs the training process of the student network in a gradient signal manner. To be specific, the gradient signal of the teacher sub-network $\frac { \partial O _ { c } } { \partial { \pmb x } _ { s } ^ { l _ { s } } }$ plays a role of weight parameters in the backward propagation formula, which indicates that the teacher network provides guidance to the student network on which element in the weights $\mathbf { \Delta } w ^ { l _ { s } }$ should be paid more attention to during the training process. Since we directly take the output tensor of the teacher network as the target of the collaboration network, this training strategy is more accurate than minimizing the difference between the intermediate representations as previous methods did. Moreover, it can be clearly seen from Figure 2 that our method additionally utilizes the back part of the teacher network, which will bring more knowledge for student network during the training process.
|
| 65 |
+
|
| 66 |
+
There are also optional selections of target in our method, which are soft target as in Hinton et al. (2015) and the ground-truth target. However, since there is no knowledge of the teacher network in the ground-truth target, it is not a good choice for our method. As for the soft target, it can only be applied to classification task, because it is generated by the softmax function with temperature T. We will demonstrate the experimental results of different selections of the target in Sec. 4.
|
| 67 |
+
|
| 68 |
+
# 3.3 LOSS FUNCTION
|
| 69 |
+
|
| 70 |
+
The loss function $\mathbf { { L } } _ { t o t a l }$ for training student network in classification task can be separated into two items, i.e. the classification loss $\scriptstyle { L _ { C F } }$ and the student-teacher collaboration (STC) loss $L _ { S T C }$ :
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array} { r l } & { \pmb { L } _ { t o t a l } = \alpha \pmb { L } _ { S T C } + ( 1 - \alpha ) \pmb { L } _ { C F } } \\ & { \pmb { L } _ { S T C } = \pmb { \mathcal { C } } ( \pmb { T } _ { s u b } \circ \pmb { S } _ { l _ { s } } ( \pmb { I } ) - \pmb { \mathcal { T } } ( \pmb { I } ) ) } \\ & { \qquad \pmb { L } _ { C F } = \pmb { \mathcal { C } } ( \pmb { S } ( \pmb { I } ) , \pmb { G } ) } \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where $c$ denotes the cross entropy loss, $\pmb { S } _ { l _ { s } }$ denotes the front part calculations of the student network and $G$ denotes the ground-truth label respectively.
|
| 77 |
+
|
| 78 |
+
We train the student network by minimizing the weighted sum of two loss as shown in Eq. 3, where weight $\alpha$ is a hyper-parameter. Specifically, the STC loss is the cross-entropy between the predictions from collaboration and teacher networks, the classification loss is the cross-entropy between the prediction from student network and ground-truth. During the training process, the weights of the teacher sub-network are fixed, only the weights of the student network are updated.
|
| 79 |
+
|
| 80 |
+
For other types of tasks, the training process can be achieved by replacing the cross-entropy loss with the corresponding loss, such as smooth- $\mathbf { \cdot L } _ { 1 }$ loss for bounding-box regression (Girshick, 2015).
|
| 81 |
+
|
| 82 |
+
# 3.4 INTEGRATING WITH KD
|
| 83 |
+
|
| 84 |
+
Knowledge distillation (KD) Hinton et al. (2015) trains the student network with the soft target from teacher network. The definition of soft target is $p = s o f t m a x ( \frac { o } { T } )$ , where $o$ is the output tensor of teacher logits (pre-softmax activations) and $T$ is a temperature. Since KD takes no additional storage and computational costs during training, it can be integrated with other knowledge transfer methods, such as AT Zagoruyko & Komodakis (2016a) and FT Kim et al. (2018) in the classification task. However, these methods result in performance degradation when integrating with KD in some cases, because of the fact that mimicking the intermediate representations does not equal to a good prediction of student network.
|
| 85 |
+
|
| 86 |
+
In contrast, our method takes the output tensor from teacher network as the target, which is consistent with KD. During experiments, our method shows good synergy integrating with KD, thus further improves the performance of student network. We will demonstrate these results in Sec. 4.
|
| 87 |
+
|
| 88 |
+
# 4 EXPERIMENTS
|
| 89 |
+
|
| 90 |
+
In this section, we demonstrate the performance of proposed STC method in classification task on CIFAR-10 (Krizhevsky et al., 2014), CIFAR-100 (Krizhevsky et al., 2009), ImageNet LSVRC 2012 (Deng et al., 2009) datasets and object detection task on PASCAL VOC 2007 (Everingham & Winn, 2006) dataset. Firstly, we evaluate the STC performance integrated with or without KD (Hinton et al., 2015) of various student and teacher models on CIFAR-10, CIFAR-100 and ImageNet
|
| 91 |
+
|
| 92 |
+
Table 1: Top-1 classification error $( \% )$ on CIFAR-10 dataset. The first 7 columns are from manuscript of Kim et al. (2018).
|
| 93 |
+
|
| 94 |
+
<table><tr><td>Student</td><td>Teacher</td><td>KD</td><td>AT</td><td>+KD</td><td>FT +KD</td><td>STC</td><td>+KD</td></tr><tr><td>ResNet-20 (7.78)</td><td>ResNet-56 (6.36)</td><td>7.19</td><td>7.13</td><td>6.89</td><td>6.85</td><td>7.04</td><td>6.53 6.3</td></tr><tr><td>ResNet-20 (7.78)</td><td>WRN-40-1 (6.52)</td><td>7.09</td><td>7.34</td><td>7.00</td><td>6.85</td><td>6.95</td><td>6.30 6.22</td></tr><tr><td>VGG-13 (5.99)</td><td>WRN-46-4 (4.22)</td><td>5.71</td><td>5.54</td><td>5.30</td><td>4.84</td><td>4.65</td><td>4.82 4.63</td></tr><tr><td>WRN-16-1 (8.62)</td><td>WRN-16-2 (5.99)</td><td>7.64</td><td>8.10</td><td>7.52</td><td>7.64</td><td>7.59</td><td>7.15 7.05</td></tr></table>
|
| 95 |
+
|
| 96 |
+
Table 2: Top-1 classification error $( \% )$ on CIFAR-100 dataset. The first 7 columns are from manuscript of Kim et al. (2018).
|
| 97 |
+
|
| 98 |
+
<table><tr><td>Student</td><td>Teacher</td><td>KD</td><td>AT</td><td>+KD</td><td>FT</td><td>+KD STC</td><td>+KD</td></tr><tr><td>ResNet-20 (31.24)</td><td>ResNet-110 (26.99)</td><td>33.14</td><td>31.04</td><td>34.78</td><td>29.08</td><td>32.19 28.75</td><td>28.53</td></tr><tr><td>ResNet-56 (28.04)</td><td>ResNet-110 (26.99)</td><td>27.96</td><td>27.28</td><td>28.01</td><td>25.62</td><td>26.93 25.33</td><td>24.92</td></tr></table>
|
| 99 |
+
|
| 100 |
+
ILSVRC2012 datasets, compared with AT (Zagoruyko & Komodakis, 2016a) and FT (Kim et al., 2018). Secondly, we evaluate our method on PASCAL VOC 2007 dataset for object detection task compared with FT to show the generalizability of our method. Finally, we illustrate the result of different types of target on CIFAR-10 dataset.
|
| 101 |
+
|
| 102 |
+
# 4.1 CIFAR
|
| 103 |
+
|
| 104 |
+
CIFAR-10 and CIFAR-100 both are the basic image classification datasets and are used to evaluate the performance in many knowledge transfer methods (Zagoruyko & Komodakis, 2016a; Kim et al., 2018; Huang & Wang, 2017). For these two sets, we train the student network for 500 epochs with a mini-batch size of 128 and weight decay of $1 0 ^ { - 4 }$ . The learning rate starts from 0.1 and is divided by 10 at 150, 300 and 400 epochs. $\alpha$ is set to 0.3 on CIFAR-10 and 0.5 on CIFAR100 empirically. For data augmentation, we following the policy in He et al. (2016). In order to make the experimental results more convincing, we use the same student and teacher networks as FT (Kim et al., 2018) did, including ResNet (He et al., 2016), Wide ResNet (WRN) (Zagoruyko & Komodakis, 2016b) and VGG (Simonyan & Zisserman, 2014). For CIFAR-10, the corresponding student and teacher networks are 1) ResNet-20 and ResNet-56, which have same width (number of channels) and different depth (number of layers). 2) ResNet-20 and WRN-40-1, which have different width and depth. 3) WRN-16-1 and WRN-16-2, which have same depth and different width. 4) VGG-13 and WRN-46-4, where residual block exists in WRN but not in VGG. For CIFAR-100, the corresponding student and teacher networks are 1) ResNet-56 and ResNet-110. 2) Resnet-20 and ResNet-110. For cases that the intermediate representation from the student sub-network has different number of channels with the teacher sub-network, a simple convolutional layer is employed to transform the dimension.
|
| 105 |
+
|
| 106 |
+
In Table 1 and Table 2, “Student” column shows the type of student network and the number in parentheses is the performance of student network trained from scratch. “Teacher” column provides the type of teacher network and the performance of pretrained teacher network by our implementation. $" + \mathrm { K D } ^ { \prime \prime }$ column provides the performance of the corresponding method combined with KD.
|
| 107 |
+
|
| 108 |
+
Performance on CIFAR-10 is shown in Table 1, for all the cases our STC method outperforms other knowledge transfer methods no matter with or without KD. We can find another result that AT and our method show good synergy when integrating with KD on CIFAR-10 dataset, while FT has conflicts with KD in some cases.
|
| 109 |
+
|
| 110 |
+
As shown in Table 2, on CIFAR-100 dataset, our method achieves the best performance among all the methods in both cases of integrated with or without KD. Different from CIFAR-10 dataset, after combining with KD, both AT and FT have an obvious performance degradation on CIFAR-100. This is because the data of CIFAR-100 are more complex than CIFAR-10 and the teacher network (ResNet-110) is deeper than that of CIFAR-10. In this case, the knowledge from the teacher subnetwork is vital for the student network.
|
| 111 |
+
|
| 112 |
+
# 4.2 IMAGENET
|
| 113 |
+
|
| 114 |
+
To demonstrate the performance of our method on large dataset, we choose ResNet-18 as student network and ResNet-34 as teacher network training on ImageNet ILSVRC2012 dataset, which consists of 1.2 million training images and 50 thousand validation images. We optimize the student network with a mini-batch size of 512 and weight decay of $1 0 ^ { - 4 }$ on 4 GPUs. The $\alpha$ are set to 0.5 empirically. The learning rate starts from 0.1 and is divided by 10 when the error plateaus. A $2 2 4 \times 2 2 4$ crop is randomly sampled from an image or its horizontal flip for data augmentation. We evaluate the performance of KD, AT, FT and proposed method STC. Top-1 and Top-5 error rates as shown in Table 3.
|
| 115 |
+
|
| 116 |
+
As can be seen, our STC method consistently outperforms other methods on both Top-1 and Top5 error rates on ImageNet dataset. KD method suffers from the gap of depths between teacher and student network, leads to an even worse performance than training the student from scratch. KT and AT, again, show the conflicts when combined with KD, since they target at mimicking the intermediate representation but not the prediction. In contrast, our STC method improve the performance of student network by $1 . 3 6 \%$ Top-1 error rate without KD and $1 . 6 1 \%$ Top-1 error rate combined with KD, consistently shows good synergy integrated with KD.
|
| 117 |
+
|
| 118 |
+
Table 3: Top-1 and Top-5 classification error $( \% )$ on ImageNet ILSVRC2012 dataset. Pretrained student and teacher network are from PyTorch (Paszke et al., 2017) model zoo. Other statistics are gathered from our implementations.
|
| 119 |
+
|
| 120 |
+
<table><tr><td rowspan=1 colspan=1>error(%)</td><td rowspan=1 colspan=1>Student</td><td rowspan=1 colspan=1>Teacher</td><td rowspan=1 colspan=1>KD</td><td rowspan=1 colspan=1>AT+KD</td><td rowspan=1 colspan=1>FT+KD</td><td rowspan=1 colspan=1>STC +KD</td></tr><tr><td rowspan=1 colspan=1>Top-1</td><td rowspan=1 colspan=1>ResNet-18 (30.24)</td><td rowspan=1 colspan=1>ResNet-34 (26.69)</td><td rowspan=1 colspan=1>33.77</td><td rowspan=1 colspan=1>29.5232.80</td><td rowspan=1 colspan=1>29.0830.30</td><td rowspan=1 colspan=1>28.88 28.63</td></tr><tr><td rowspan=1 colspan=1>Top-5</td><td rowspan=1 colspan=1>ResNet-18 (10.92)</td><td rowspan=1 colspan=1>ResNet-34 (8.58)</td><td rowspan=1 colspan=1>12.29</td><td rowspan=1 colspan=1>9.9511.89</td><td rowspan=1 colspan=1>9.7510.47</td><td rowspan=1 colspan=1>9.669.54</td></tr></table>
|
| 121 |
+
|
| 122 |
+
# 4.3 PASCAL VOC 2007
|
| 123 |
+
|
| 124 |
+
To verify the generalizability of our method on different tasks, we evaluate the performance of our method on PASCAL VOC 2007 detection dataset. We use Faster-RCNN (Ren et al., 2015) pipeline for evaluation as Kim et al. (2018) did, which are VGG-16 backbone for student network and ResNet-101 backbone for teacher network specifically. We train the student network for 15 epochs with a mini-batch size of 16. The learning rate starts from 0.01 and is divided by 10 at 6 and 11 epochs. The $\alpha$ are set to 0.5 empirically. Since the proposal boxes from RPN module in teacher and student network are of different spatial positions, we extract the RPN and detector module of the teacher network as the teacher sub-network and the backbone of student network as student sub-network, which can be seen in Figure 3.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 3: STC method on object detection task. We take the backbone of the student network as student sub-network and RPN, ROI pooling, detector module of teacher network as teacher subnetwork.
|
| 128 |
+
|
| 129 |
+
Table 4 is the performance of our method compared with FT on PASCAL VOC 2007 dataset. As can be seen, the mAP of the student network is promoted by $1 . 6 \%$ in our method, while that in FT is $0 . 8 \%$ . This result proves that our method can be applied to various tasks and is superior to the previous methods.
|
| 130 |
+
|
| 131 |
+
Table 4: Mean average precision $( \% )$ on PASCAL VOC 2007 dataset. Both student and teacher network follow the Faster-RCNN pipeline. The backbone of student and teacher networks are VGG16 and ResNet-101 respectively.
|
| 132 |
+
|
| 133 |
+
<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Student</td><td rowspan=1 colspan=1>Teacher</td><td rowspan=1 colspan=1>mAP</td></tr><tr><td rowspan=1 colspan=1>FT</td><td rowspan=1 colspan=1>VGG-16 backbone(69.4)</td><td rowspan=1 colspan=1>ResNet-101 backbone (75.2)</td><td rowspan=1 colspan=1>70.3</td></tr><tr><td rowspan=1 colspan=1>STC</td><td rowspan=1 colspan=1>VGG-16 backbone(69.4)</td><td rowspan=1 colspan=1>ResNet-101backbone (75.2)</td><td rowspan=1 colspan=1>71.0</td></tr></table>
|
| 134 |
+
|
| 135 |
+
# 4.4 ABLATION STUDY
|
| 136 |
+
|
| 137 |
+
In this paragraph, we evaluate the performance of different selections of the target in our method on CIFAR-10 dataset, using the same student and teacher network as Sec. 4.1.
|
| 138 |
+
|
| 139 |
+
The performance of various target can be seen in Table 5. In Table 5, “output tensor (t)” and “soft target (t)” denote the output tensor and the soft target are generated from the teacher networks. “ground-truth (d)” denotes the ground-truth target is from the dataset. For the generating of the soft target, we follow the fashion in Hinton et al. (2015).
|
| 140 |
+
|
| 141 |
+
As can be seen, the selection of ground-truth target gets the worst results among all the cases. This is because the ground-truth target does not contain knowledge in the teacher network, so there is limited help in improving the performance of the student network.
|
| 142 |
+
|
| 143 |
+
For the selection of soft target, even though it can get about the same performance, it can only be employed on classification task, because the soft target is produced by the softmax function with temperature T. Considering the generalizability of our method on different tasks, we choose the output tensor from teacher network as the target.
|
| 144 |
+
|
| 145 |
+
Table 5: Top-1 classification error $\% )$ of different selections of the target on CIFAR-10 dataset.
|
| 146 |
+
|
| 147 |
+
<table><tr><td rowspan=1 colspan=1>Student</td><td rowspan=1 colspan=1>Teacher</td><td rowspan=1 colspan=1>output tensor (t)</td><td rowspan=1 colspan=1>soft target (t)</td><td rowspan=1 colspan=1> ground-truth (d)</td></tr><tr><td rowspan=1 colspan=1>ResNet-20 (7.78)</td><td rowspan=1 colspan=1>ResNet-56 (6.39)</td><td rowspan=1 colspan=1>6.53</td><td rowspan=1 colspan=1>6.59</td><td rowspan=1 colspan=1>6.78</td></tr><tr><td rowspan=1 colspan=1>ResNet-20 (7.78)</td><td rowspan=1 colspan=1>WRN-40-1(6.84)</td><td rowspan=1 colspan=1>6.30</td><td rowspan=1 colspan=1>6.55</td><td rowspan=1 colspan=1>6.83</td></tr><tr><td rowspan=1 colspan=1>VGG-13 (5.99)</td><td rowspan=1 colspan=1>WRN-46-4 (4.44)</td><td rowspan=1 colspan=1>4.82</td><td rowspan=1 colspan=1>4.80</td><td rowspan=1 colspan=1>5.17</td></tr><tr><td rowspan=1 colspan=1>WRN-16-1 (8.62)</td><td rowspan=1 colspan=1>WRN-16-2 (6.27)</td><td rowspan=1 colspan=1>7.15</td><td rowspan=1 colspan=1>7.39</td><td rowspan=1 colspan=1>8.01</td></tr></table>
|
| 148 |
+
|
| 149 |
+
# 5 CONCLUSION
|
| 150 |
+
|
| 151 |
+
In this paper, we proposed a novel knowledge transfer method called student-teacher collaboration (STC). Different from previous methods, our method employs a collaboration network by connecting the front part of the student network and the back part of the teacher network during the training process. We take the difference between the output predictions from the collaboration network and the teacher network into account of the loss to train the student network. Through back propagation, the knowledge of the teacher sub-network can be additionally utilized in a gradient signal manner. Specifically, the teacher network provides guidance to the student network on which element in the weights should be paid more attention to during the training process.
|
| 152 |
+
|
| 153 |
+
Through plentiful experiments, it is proved that our STC method outperforms previous knowledge transfer methods on various datasets and has good generalizability on different tasks. What’s more, our method has good synergy integrated with KD to further improve the performance of the student network, while other methods result in accuracy degradation in some cases.
|
| 154 |
+
|
| 155 |
+
To the best of our knowledge, the training strategy which is insturcting the student network with a collaboration network has never been used in other knowledge transfer methods. We believe that this novel idea will further promote the development of knowledge transfer.
|
| 156 |
+
|
| 157 |
+
# REFERENCES
|
| 158 |
+
|
| 159 |
+
Vasileios Belagiannis, Azade Farshad, and Fabio Galasso. Adversarial network compression. 03 2018.
|
| 160 |
+
|
| 161 |
+
Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006.
|
| 162 |
+
|
| 163 |
+
Alfredo Canziani, Adam Paszke, and Eugenio Culurciello. An analysis of deep neural network models for practical applications. arXiv preprint arXiv:1605.07678, 2016.
|
| 164 |
+
|
| 165 |
+
Francois Chollet. Xception: Deep learning with depthwise separable convolutions. computer vision and pattern recognition, pp. 1800–1807, 2017.
|
| 166 |
+
|
| 167 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
|
| 168 |
+
|
| 169 |
+
Haisong Ding, Kai Chen, and Qiang Huo. Compressing cnn-dblstm models for ocr with teacherstudent learning and tucker decomposition. Pattern Recognition, 96, 07 2019. doi: 10.1016/j. patcog.2019.07.002.
|
| 170 |
+
|
| 171 |
+
Mark Everingham and John Winn. The pascal visual object classes challenge 2007 (voc2007) development kit. International Journal of Computer Vision, 111(1):98–136, 2006.
|
| 172 |
+
|
| 173 |
+
Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 1440–1448, 2015.
|
| 174 |
+
|
| 175 |
+
Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. Computer Science, 2015.
|
| 176 |
+
|
| 177 |
+
S. Han, J. Pool, J. Tran, and W. J. Dally. Learning both weights and connections for efficient neural networks. neural information processing systems, pp. 1135–1143, 2015.
|
| 178 |
+
|
| 179 |
+
S. Han, H. Mao, and W. J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. international conference on learning representations, 2016.
|
| 180 |
+
|
| 181 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 182 |
+
|
| 183 |
+
Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 184 |
+
|
| 185 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
|
| 186 |
+
|
| 187 |
+
Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv: Computer Vision and Pattern Recognition, 2017.
|
| 188 |
+
|
| 189 |
+
Zehao Huang and Naiyan Wang. Like what you like: Knowledge distill via neuron selectivity transfer. arXiv preprint arXiv:1707.01219, 2017.
|
| 190 |
+
|
| 191 |
+
Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and $\mathrm { i 0 . 5 m b }$ model size. arXiv: Computer Vision and Pattern Recognition, 2017.
|
| 192 |
+
|
| 193 |
+
Jangho Kim, Seounguk Park, and Nojun Kwak. Paraphrasing complex network: Network compression via factor transfer. neural information processing systems, pp. 2760–2769, 2018.
|
| 194 |
+
|
| 195 |
+
Yong-Deok Kim, Eunhyeok Park, Sungjoo Yoo, Taelim Choi, Lu Yang, and Dongjun Shin. Compression of deep convolutional neural networks for fast and low power mobile applications. 05 2016.
|
| 196 |
+
|
| 197 |
+
Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 and cifar-100 datasets. URl: https://www. cs. toronto. edu/kriz/cifar. html, 6, 2009.
|
| 198 |
+
|
| 199 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 200 |
+
|
| 201 |
+
Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The cifar-10 dataset. online: http://www. cs. toronto. edu/kriz/cifar. html, 55, 2014.
|
| 202 |
+
|
| 203 |
+
Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan Oseledets, and Victor Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition, 2014. URL http://arxiv.org/abs/1412.6553. cite arxiv:1412.6553.
|
| 204 |
+
|
| 205 |
+
Y. LeCun, J. S. Denker, and S. A. Solla. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990.
|
| 206 |
+
|
| 207 |
+
J. Li, R. Zhao, J.-T Huang, and Y. Gong. Learning small-size dnn with output-distribution-based criteria. Proceedings of the Annual Conference of the International Speech Communication Association, INTERSPEECH, pp. 1910–1914, 01 2014.
|
| 208 |
+
|
| 209 |
+
Zhenhua Liu, Jizheng Xu, Xiulian Peng, and Ruiqin Xiong. Frequency-domain dynamic pruning for convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1043–1053, 2018.
|
| 210 |
+
|
| 211 |
+
Toma´s Mikolov, Martin Karafi ˇ at, Luk ´ a´s Burget, Jan ˇ Cernock ˇ y, and Sanjeev Khudanpur. Recurrent\` neural network based language model. In Eleventh annual conference of the international speech communication association, 2010.
|
| 212 |
+
|
| 213 |
+
Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pp. 5947–5956, 2017.
|
| 214 |
+
|
| 215 |
+
Roman Novak, Yasaman Bahri, Daniel A Abolafia, Jeffrey Pennington, and Jascha SohlDickstein. Sensitivity and generalization in neural networks: an empirical study. arXiv preprint arXiv:1802.08760, 2018.
|
| 216 |
+
|
| 217 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
|
| 218 |
+
|
| 219 |
+
M. Rastegari, V. Ordonez, J. Redmon, and A. Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525– 542. Springer, 2016.
|
| 220 |
+
|
| 221 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015.
|
| 222 |
+
|
| 223 |
+
Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. international conference on learning representations, 2015.
|
| 224 |
+
|
| 225 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 226 |
+
|
| 227 |
+
V. Vanhoucke, A. Senior, and M.Z. Mao. Improving the speed of neural networks on cpus. 2011.
|
| 228 |
+
|
| 229 |
+
Xiaojie Wang, Rui Zhang, Yu Sun, and Jianzhong Qi. Kdgan: Knowledge distillation with generative adversarial networks. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 775–786. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 7358-kdgan-knowledge-distillation-with-generative-adversarial-networks. pdf.
|
| 230 |
+
|
| 231 |
+
Zheng Xu, Yen-Chang Hsu, and Jiawei Huang. Training shallow and thin networks for acceleration via knowledge distillation with conditional adversarial networks.
|
| 232 |
+
|
| 233 |
+
Kohei Yamamoto and Kurato Maeno. Pcas: Pruning channels with attention statistics. 2018.
|
| 234 |
+
|
| 235 |
+
Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928, 2016a.
|
| 236 |
+
|
| 237 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016b.
|
| 238 |
+
|
| 239 |
+
Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. computer vision and pattern recognition, pp. 6848–6856, 2018.
|
| 240 |
+
|
| 241 |
+
Qibin Zhao, Guoxu Zhou, Shengli Xie, Liqing Zhang, and Andrzej Cichocki. Tensor ring decomposition. 06 2016.
|
| 242 |
+
|
| 243 |
+
Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian Reid. Towards effective lowbitwidth convolutional neural networks.
|
parse/train/H1lVvgHKDr/H1lVvgHKDr_content_list.json
ADDED
|
@@ -0,0 +1,1293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "KNOWLEDGE TRANSFER VIA STUDENT-TEACHER COLLABORATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Accompanying with the flourish development in various fields, deep neural networks, however, are still facing with the plight of high computational costs and storage. One way to compress these heavy models is knowledge transfer (KT), in which a light student network is trained through absorbing the knowledge from a powerful teacher network. In this paper, we propose a novel knowledge transfer method which employs a Student-Teacher Collaboration (STC) network during the knowledge transfer process. This is done by connecting the front part of the student network to the back part of the teacher network as the STC network. The back part of the teacher network takes the intermediate representation from the front part of the student network as input to make the prediction. The difference between the prediction from the collaboration network and the output tensor from the teacher network is taken into account of the loss during the train process. Through back propagation, the teacher network provides guidance to the student network in a gradient signal manner. In this way, our method takes advantage of the knowledge from the entire teacher network, who instructs the student network in learning process. Through plentiful experiments, it is proved that our STC method outperforms other KT methods with conventional strategy. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
275,
|
| 43 |
+
764,
|
| 44 |
+
511
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
558,
|
| 55 |
+
336,
|
| 56 |
+
574
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks have produced breakthrough results in various fields, such as computer vision (Krizhevsky et al., 2012; He et al., 2016) and natural language processing (Mikolov et al., 2010) in recent years. Through a mass of studies (Neyshabur et al., 2017; Canziani et al., 2016; Novak et al., 2018), researchers have proved that a DNN with larger capacity will have a better generalizability, which leads to a better performance. However, larger capacity will also cause heavier computational costs and storage, making these powerful models difficult to meet real-time requirements on embedded systems. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
597,
|
| 66 |
+
825,
|
| 67 |
+
694
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "One way to compress these heavy models is knowledge transfer (KT). As can be seen in Figure 1(a), KT is a method to improve the performance of a light student network by absorbing the knowledge from a strong teacher network. In the early studies of KT such as knowledge distillation (KD) (Hinton et al., 2015), researchers took advantage of the output vector from teacher networks, converted it into “soft target” and trained the student network with the soft target and the ground-truth. KD can only be applied in classification task since the “soft target” is produced by the softmax function with temperature T. In recent studies, many methods focused on the intermediate representation of the teacher network, in which the feature map (Romero et al., 2015), attention map (Zagoruyko & Komodakis, 2016a) or the factor (Kim et al., 2018) extracted from student network are induced to mimic the corresponding one from teacher network by minimizing the difference between them. Figure 1(b) and Figure 1(c) are the overview of AT and FT. As can be seen, the role of the teacher network in these two methods is simply to provide an intermediate representation for imitation while does not give extra help during the training process. Moreover, due to divergence of the structure between the student and teacher networks, the student network usually cannot generate the same intermediate representation as the teacher network. In this case, an intermediate representation with the smallest difference does not equal to an accurate prediction. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
703,
|
| 77 |
+
825,
|
| 78 |
+
922
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/206032eee583c8289e602d20a96d66e95d1232ad882a298c7b22d17a51ba7b6c.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Overview of the proposed student-teacher collaboration method compared with other methods. (a) Student and teacher network. (b) Attention transfer (c) Factor transfer (d) Studentteacher collaboration. Different from the previous methods, we employ a collaboration network which is a connection of the front part of the student network and the back part of the teacher network. The difference between the predictions from the collaboration network and the teacher network is taken into account of loss during the training process. It can be clearly seen that our STC method additionally utilizes the knowledge from the top part of the teacher network. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
194,
|
| 91 |
+
108,
|
| 92 |
+
808,
|
| 93 |
+
344
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "To address the above problems, we propose a novel knowledge transfer method as illustrated in Figure 1(d). Different from the previous methods, we employ a collaboration network which is a connection of the front part of the student network and the back part of the teacher network during the training process. Specifically, we select a set of corresponding layers from the student and teacher networks. The front part and the back part of the selected layers of student and teacher networks are called student sub-network and teacher sub-network respectively. The teacher sub-network takes the intermediate representation from the student sub-network as input to make the prediction. Unlike KD using the soft target, in our method, the output tensor from the teacher network is directly treated as the target of the collaboration network. In this manner, our method can be applied to different tasks. During the training process, the difference between the predictions from the collaboration network and the teacher network is taken into account of the loss. Through back propagation, the gradient signal in the back part of the teacher network can be transferred to the student network and supervises the training process. In this way, teacher network in our method instructs student network on how to get the “answer”, rather than just give an intermediate representation for mimicking as in previous methods. It can be clearly seen from Figure 1 that our method additionally utilizes the knowledge from the teacher sub-network, compared with the previous methods. It is worth noting that the collaboration network is only used during the training process, the student network with the original structure is used for prediction during the inference time. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
483,
|
| 103 |
+
825,
|
| 104 |
+
732
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Our contributions can be summarized as follows: ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
176,
|
| 113 |
+
739,
|
| 114 |
+
495,
|
| 115 |
+
753
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "• We propose a novel knowledge transfer method, additionally utilizing the knowledge from the back part of the teacher network by employing a collaboration network structure. To the best of our knowledge, the training strategy of insturcting the student network with a collaboration network has never been used. \n• The teacher network in our method instructs student network on how to get the right “answer”, rather than just give an intermediate representation for mimicking as in previous methods. \n• We take the output tensor from the teacher network as the target of the collaboration network, which brings good generalizability to our method on different tasks. \n• We experimentally show that our method outperforms other methods with conventional strategy on various datasets in different tasks. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
766,
|
| 125 |
+
826,
|
| 126 |
+
924
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 RELATED WORKS ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
176,
|
| 136 |
+
102,
|
| 137 |
+
354,
|
| 138 |
+
117
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 2
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "To reduce the model size as well as the computational costs of deep neural networks, a variety of methods have been proposed. These methods can be summarized into five categories: network pruning, parameter quantization, tensor decomposition, efficient architecture design and knowledge transfer. Network pruning is a way to reduce the redundancy in the neural networks(LeCun et al., 1990). Han et al. (2015) pruned the network by removing the unimportant connections. Later network pruning methods operate at channel or filter levels(Han et al., 2015; Yamamoto & Maeno, 2018; Liu et al., 2018; He et al., 2017). Parameter quantization aims at compressing the model by reducing the number of bits occupied by the weights or neurons. In Gupta et al. (2015), Vanhoucke et al. (2011), Zhuang et al. and Rastegari et al. (2016), authors trained convolutional neural networks using 16-bit, 8-bit, 4-bit and 1-bit weights respectively. Han et al. (2016) optimized the model combined with network pruning, quantization and huffman coding. Tensor decomposition compresses the networks by decomposing dense convolutional kernels with low-rank approximations, including CP-decomposition(Lebedev et al., 2014), Tucker decomposition(Kim et al., 2016) and tensor ring decomposition(Zhao et al., 2016). Efficient network architecture design is an interesting approach to accelerate the model, such as SqueezeNet (Iandola et al., 2017), Mobilenet (Howard et al., 2017), ShuffleNet (Zhang et al., 2018) and Xception (Chollet, 2017). ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
133,
|
| 148 |
+
825,
|
| 149 |
+
356
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 2
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "In addition to the above four strategies that will partially change the components of the network, knowledge transfer is another way to compress the model by improving the performance of a lighter student network with the knowledge from a stronger teacher network. To the best of our knowledge, the earliest work of knowledge transfer is Bucilua et al. (2006), which to train a small model with data labeled by an ensemble of large model. Li et al. (2014) took the KL divergence between the posterior probabilities produced by the softmax operation from student and teacher model as loss function for knowledge transfer. Hinton et al. (2015) proposed a method called knowledge distillation (KD), converting the posterior probabilities extracted from teacher network into “soft targets”. In Fitnets (Romero et al., 2015), they regarded the feature map extracted from the teacher network as hints, and trained the student network by mimicking the corresponding feature maps of student and teacher networks. Attention transfer (AT) (Zagoruyko & Komodakis, 2016a) computed the summations of the feature map across the channel to generate the attention map and trained the student network by minimizing the difference between the attention map of corresponding blocks. Factor transfer (FT) (Kim et al., 2018) employed a paraphraser and a translator to translate the knowledge in the feature maps into factors. The student network is optimized by minimizing the $l _ { 2 }$ loss between student and teacher factors. In Ding et al. (2019), authors compressed the CNN-DBLSTM model on OCR task with Tucker decomposition and the knowledge in the teacher’s BLSTM and inner product layers. There are also studies on knowledge transfer utilizing the adversarial networks, such as $\\mathrm { X u }$ et al., Belagiannis et al. (2018) and Wang et al. (2018). ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
362,
|
| 159 |
+
825,
|
| 160 |
+
627
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "3 METHOD ",
|
| 167 |
+
"text_level": 1,
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
646,
|
| 171 |
+
281,
|
| 172 |
+
662
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 2
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "An eminent teacher should not only give a referenced answer to a student, but also teach student how to get the answer. Analogously, during the training process of the student network, a teacher network should teach the student network how to make the right prediction to play a role as an eminent teacher. In this section, we will firstly explain some concerns in the previous knowledge transfer methods and then describe our method in detail to explain how the teacher network instructs the student network’s learning process in our method. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
678,
|
| 182 |
+
825,
|
| 183 |
+
761
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "3.1 CONCERNS IN THE PREVIOUS METHODS ",
|
| 190 |
+
"text_level": 1,
|
| 191 |
+
"bbox": [
|
| 192 |
+
176,
|
| 193 |
+
780,
|
| 194 |
+
491,
|
| 195 |
+
792
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "Previous knowledge transfer methods, such as AT (Zagoruyko & Komodakis, 2016a) and FT (Kim et al., 2018), train the student network by minimizing the difference between the intermediate representations extracted from the corresponding layers of student and teacher networks. However, this training strategy contains the following problems. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
804,
|
| 205 |
+
823,
|
| 206 |
+
861
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "The first problem is that the teacher network in the previous methods simply provided an intermediate representation for imitation but did not teach student network how to get it. Therefore, the guidance from teacher network is limited in the previous methods. Another problem is the intermediate representation from teacher network is treated as the target in these method. However, due to the divergence of the structure between the student and teacher networks, the student network usually cannot generate the same intermediate representation as the teacher network. In this case, an intermediate representation with the smallest difference does not equal to an accurate prediction. What’s more, the intermediate representation is extracted from the hidden layer of the network, so the knowledge in the subsequent layers of the teacher network cannot be utilized. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
867,
|
| 216 |
+
823,
|
| 217 |
+
922
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "image",
|
| 223 |
+
"img_path": "images/809b017244274bca8c289f8970d78c5d7ecdb7492118a537cb9b1768c4460671.jpg",
|
| 224 |
+
"image_caption": [
|
| 225 |
+
"Figure 2: Training process of the proposed student-teacher collaboration method. We take the output tensor from the teacher network as the target of the collaboration network. The student network is trained with the collaboration loss and the classification loss. During the training process, the weights of the teacher network and teacher sub-network are fixed, only the weights of student network are updated. "
|
| 226 |
+
],
|
| 227 |
+
"image_footnote": [],
|
| 228 |
+
"bbox": [
|
| 229 |
+
236,
|
| 230 |
+
98,
|
| 231 |
+
754,
|
| 232 |
+
303
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 3
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"text": "",
|
| 239 |
+
"bbox": [
|
| 240 |
+
174,
|
| 241 |
+
411,
|
| 242 |
+
825,
|
| 243 |
+
482
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 3
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "3.2 STUDENT-TEACHER COLLABORATION ",
|
| 250 |
+
"text_level": 1,
|
| 251 |
+
"bbox": [
|
| 252 |
+
176,
|
| 253 |
+
498,
|
| 254 |
+
477,
|
| 255 |
+
512
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 3
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "To address the above problems, we proposed a novel training strategy for knowledge transfer in our method which is insturcting the student network with a collaboration network during the training process. As illustrated in Figure 2, our method consists of three steps. Firstly, we forward propagate a pretrained teacher network $\\tau$ with the input data $\\pmb { I }$ to get the target $O _ { t }$ . Secondly, we connect all the front part of a selected layer of the student network which we called student sub-network to the corresponding layer1 of the teacher network as a collaboration network. The subsequent layers of the teacher network which we called teacher sub-network takes the intermediate representation from the student sub-network as input to produce the prediction $O _ { c }$ . The forward propagation of the collaboration network can be formulated as: ",
|
| 262 |
+
"bbox": [
|
| 263 |
+
173,
|
| 264 |
+
523,
|
| 265 |
+
825,
|
| 266 |
+
650
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 3
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "equation",
|
| 272 |
+
"img_path": "images/908d3c765060d498922cab4c64d220e701ae2047adefd61b523b0d446ecc2942.jpg",
|
| 273 |
+
"text": "$$\nO _ { c } = \\mathcal { T } _ { s u b } ( x _ { s } ^ { l _ { s } } ) = \\mathcal { T } _ { s u b } \\circ f ( w _ { s } ^ { l _ { s } } x _ { s } ^ { l _ { s } - 1 } )\n$$",
|
| 274 |
+
"text_format": "latex",
|
| 275 |
+
"bbox": [
|
| 276 |
+
357,
|
| 277 |
+
667,
|
| 278 |
+
640,
|
| 279 |
+
686
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 3
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "where $c$ and $s$ are the symbol for collaboration and student network respectively. $\\tau _ { s u b }$ denotes the calculations of the teacher sub-network. $f$ denotes the activation function. $l , x$ and $w$ denotes the layer number, intermediate representation and weights of the network respectively. Biases are omitted for simplifying notations. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
174,
|
| 288 |
+
694,
|
| 289 |
+
825,
|
| 290 |
+
751
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "After forward propagate the collaboration network, we compute the difference between the predictions from the collaboration network and the teacher network as the STC loss $\\pmb { L } _ { S T C }$ . The back propagation of STC loss can be formulated as: ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
757,
|
| 300 |
+
825,
|
| 301 |
+
799
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "equation",
|
| 307 |
+
"img_path": "images/26f2889451f875a671f022f4d24dfac000710d103e2433b5dcdf8b67d7a2a401.jpg",
|
| 308 |
+
"text": "$$\n\\frac { \\partial { \\cal L } _ { S T C } ( { \\cal O } _ { c } , { \\cal O } _ { t } ) } { \\partial w ^ { l _ { s } } } = \\frac { \\partial { \\cal L } _ { S T C } ( { \\cal O } _ { c } , { \\cal O } _ { t } ) } { \\partial { \\cal O } _ { c } } \\frac { \\partial { \\cal O } _ { c } } { \\partial x _ { s } ^ { l _ { s } } } \\frac { \\partial x _ { s } ^ { l _ { s } } } { \\partial w _ { s } ^ { l _ { s } } }\n$$",
|
| 309 |
+
"text_format": "latex",
|
| 310 |
+
"bbox": [
|
| 311 |
+
334,
|
| 312 |
+
803,
|
| 313 |
+
663,
|
| 314 |
+
839
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 3
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "where $O _ { t }$ denotes the output tensor from teacher network. Biases are omitted for simplifying notations. ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
176,
|
| 323 |
+
849,
|
| 324 |
+
825,
|
| 325 |
+
877
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 3
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "As can be seen in Eq. 2, the teacher network instructs the training process of the student network in a gradient signal manner. To be specific, the gradient signal of the teacher sub-network $\\frac { \\partial O _ { c } } { \\partial { \\pmb x } _ { s } ^ { l _ { s } } }$ plays a role of weight parameters in the backward propagation formula, which indicates that the teacher network provides guidance to the student network on which element in the weights $\\mathbf { \\Delta } w ^ { l _ { s } }$ should be paid more attention to during the training process. Since we directly take the output tensor of the teacher network as the target of the collaboration network, this training strategy is more accurate than minimizing the difference between the intermediate representations as previous methods did. Moreover, it can be clearly seen from Figure 2 that our method additionally utilizes the back part of the teacher network, which will bring more knowledge for student network during the training process. ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
174,
|
| 334 |
+
103,
|
| 335 |
+
825,
|
| 336 |
+
247
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 4
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "There are also optional selections of target in our method, which are soft target as in Hinton et al. (2015) and the ground-truth target. However, since there is no knowledge of the teacher network in the ground-truth target, it is not a good choice for our method. As for the soft target, it can only be applied to classification task, because it is generated by the softmax function with temperature T. We will demonstrate the experimental results of different selections of the target in Sec. 4. ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
174,
|
| 345 |
+
253,
|
| 346 |
+
825,
|
| 347 |
+
324
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 4
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "3.3 LOSS FUNCTION ",
|
| 354 |
+
"text_level": 1,
|
| 355 |
+
"bbox": [
|
| 356 |
+
176,
|
| 357 |
+
340,
|
| 358 |
+
328,
|
| 359 |
+
356
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 4
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "The loss function $\\mathbf { { L } } _ { t o t a l }$ for training student network in classification task can be separated into two items, i.e. the classification loss $\\scriptstyle { L _ { C F } }$ and the student-teacher collaboration (STC) loss $L _ { S T C }$ : ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
173,
|
| 368 |
+
367,
|
| 369 |
+
823,
|
| 370 |
+
395
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 4
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "equation",
|
| 376 |
+
"img_path": "images/539858756a4c31fa15bf2d7bc3d748a2eae6a15b04bae04dc9b57f0f93c3b82c.jpg",
|
| 377 |
+
"text": "$$\n\\begin{array} { r l } & { \\pmb { L } _ { t o t a l } = \\alpha \\pmb { L } _ { S T C } + ( 1 - \\alpha ) \\pmb { L } _ { C F } } \\\\ & { \\pmb { L } _ { S T C } = \\pmb { \\mathcal { C } } ( \\pmb { T } _ { s u b } \\circ \\pmb { S } _ { l _ { s } } ( \\pmb { I } ) - \\pmb { \\mathcal { T } } ( \\pmb { I } ) ) } \\\\ & { \\qquad \\pmb { L } _ { C F } = \\pmb { \\mathcal { C } } ( \\pmb { S } ( \\pmb { I } ) , \\pmb { G } ) } \\end{array}\n$$",
|
| 378 |
+
"text_format": "latex",
|
| 379 |
+
"bbox": [
|
| 380 |
+
375,
|
| 381 |
+
400,
|
| 382 |
+
622,
|
| 383 |
+
455
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 4
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "where $c$ denotes the cross entropy loss, $\\pmb { S } _ { l _ { s } }$ denotes the front part calculations of the student network and $G$ denotes the ground-truth label respectively. ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
173,
|
| 392 |
+
459,
|
| 393 |
+
821,
|
| 394 |
+
487
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 4
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "We train the student network by minimizing the weighted sum of two loss as shown in Eq. 3, where weight $\\alpha$ is a hyper-parameter. Specifically, the STC loss is the cross-entropy between the predictions from collaboration and teacher networks, the classification loss is the cross-entropy between the prediction from student network and ground-truth. During the training process, the weights of the teacher sub-network are fixed, only the weights of the student network are updated. ",
|
| 401 |
+
"bbox": [
|
| 402 |
+
174,
|
| 403 |
+
493,
|
| 404 |
+
823,
|
| 405 |
+
564
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 4
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "For other types of tasks, the training process can be achieved by replacing the cross-entropy loss with the corresponding loss, such as smooth- $\\mathbf { \\cdot L } _ { 1 }$ loss for bounding-box regression (Girshick, 2015). ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
174,
|
| 414 |
+
570,
|
| 415 |
+
825,
|
| 416 |
+
599
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 4
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "3.4 INTEGRATING WITH KD ",
|
| 423 |
+
"text_level": 1,
|
| 424 |
+
"bbox": [
|
| 425 |
+
176,
|
| 426 |
+
616,
|
| 427 |
+
382,
|
| 428 |
+
631
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "Knowledge distillation (KD) Hinton et al. (2015) trains the student network with the soft target from teacher network. The definition of soft target is $p = s o f t m a x ( \\frac { o } { T } )$ , where $o$ is the output tensor of teacher logits (pre-softmax activations) and $T$ is a temperature. Since KD takes no additional storage and computational costs during training, it can be integrated with other knowledge transfer methods, such as AT Zagoruyko & Komodakis (2016a) and FT Kim et al. (2018) in the classification task. However, these methods result in performance degradation when integrating with KD in some cases, because of the fact that mimicking the intermediate representations does not equal to a good prediction of student network. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
641,
|
| 438 |
+
825,
|
| 439 |
+
753
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "In contrast, our method takes the output tensor from teacher network as the target, which is consistent with KD. During experiments, our method shows good synergy integrating with KD, thus further improves the performance of student network. We will demonstrate these results in Sec. 4. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
176,
|
| 448 |
+
761,
|
| 449 |
+
825,
|
| 450 |
+
803
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 4
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "4 EXPERIMENTS ",
|
| 457 |
+
"text_level": 1,
|
| 458 |
+
"bbox": [
|
| 459 |
+
176,
|
| 460 |
+
823,
|
| 461 |
+
326,
|
| 462 |
+
838
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "In this section, we demonstrate the performance of proposed STC method in classification task on CIFAR-10 (Krizhevsky et al., 2014), CIFAR-100 (Krizhevsky et al., 2009), ImageNet LSVRC 2012 (Deng et al., 2009) datasets and object detection task on PASCAL VOC 2007 (Everingham & Winn, 2006) dataset. Firstly, we evaluate the STC performance integrated with or without KD (Hinton et al., 2015) of various student and teacher models on CIFAR-10, CIFAR-100 and ImageNet ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
853,
|
| 472 |
+
823,
|
| 473 |
+
924
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "table",
|
| 479 |
+
"img_path": "images/b18a6a1c97cad58654778feb20d2d912a5325787125bc0b7626877c4f34a3308.jpg",
|
| 480 |
+
"table_caption": [
|
| 481 |
+
"Table 1: Top-1 classification error $( \\% )$ on CIFAR-10 dataset. The first 7 columns are from manuscript of Kim et al. (2018). "
|
| 482 |
+
],
|
| 483 |
+
"table_footnote": [],
|
| 484 |
+
"table_body": "<table><tr><td>Student</td><td>Teacher</td><td>KD</td><td>AT</td><td>+KD</td><td>FT +KD</td><td>STC</td><td>+KD</td></tr><tr><td>ResNet-20 (7.78)</td><td>ResNet-56 (6.36)</td><td>7.19</td><td>7.13</td><td>6.89</td><td>6.85</td><td>7.04</td><td>6.53 6.3</td></tr><tr><td>ResNet-20 (7.78)</td><td>WRN-40-1 (6.52)</td><td>7.09</td><td>7.34</td><td>7.00</td><td>6.85</td><td>6.95</td><td>6.30 6.22</td></tr><tr><td>VGG-13 (5.99)</td><td>WRN-46-4 (4.22)</td><td>5.71</td><td>5.54</td><td>5.30</td><td>4.84</td><td>4.65</td><td>4.82 4.63</td></tr><tr><td>WRN-16-1 (8.62)</td><td>WRN-16-2 (5.99)</td><td>7.64</td><td>8.10</td><td>7.52</td><td>7.64</td><td>7.59</td><td>7.15 7.05</td></tr></table>",
|
| 485 |
+
"bbox": [
|
| 486 |
+
184,
|
| 487 |
+
140,
|
| 488 |
+
813,
|
| 489 |
+
214
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 5
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "table",
|
| 495 |
+
"img_path": "images/addd7bd538b040c3af94be373024583639230857d004acdef01f37557eb2d431.jpg",
|
| 496 |
+
"table_caption": [
|
| 497 |
+
"Table 2: Top-1 classification error $( \\% )$ on CIFAR-100 dataset. The first 7 columns are from manuscript of Kim et al. (2018). "
|
| 498 |
+
],
|
| 499 |
+
"table_footnote": [],
|
| 500 |
+
"table_body": "<table><tr><td>Student</td><td>Teacher</td><td>KD</td><td>AT</td><td>+KD</td><td>FT</td><td>+KD STC</td><td>+KD</td></tr><tr><td>ResNet-20 (31.24)</td><td>ResNet-110 (26.99)</td><td>33.14</td><td>31.04</td><td>34.78</td><td>29.08</td><td>32.19 28.75</td><td>28.53</td></tr><tr><td>ResNet-56 (28.04)</td><td>ResNet-110 (26.99)</td><td>27.96</td><td>27.28</td><td>28.01</td><td>25.62</td><td>26.93 25.33</td><td>24.92</td></tr></table>",
|
| 501 |
+
"bbox": [
|
| 502 |
+
184,
|
| 503 |
+
276,
|
| 504 |
+
815,
|
| 505 |
+
321
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 5
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "ILSVRC2012 datasets, compared with AT (Zagoruyko & Komodakis, 2016a) and FT (Kim et al., 2018). Secondly, we evaluate our method on PASCAL VOC 2007 dataset for object detection task compared with FT to show the generalizability of our method. Finally, we illustrate the result of different types of target on CIFAR-10 dataset. ",
|
| 512 |
+
"bbox": [
|
| 513 |
+
174,
|
| 514 |
+
357,
|
| 515 |
+
825,
|
| 516 |
+
412
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 5
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "4.1 CIFAR ",
|
| 523 |
+
"text_level": 1,
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
440,
|
| 527 |
+
264,
|
| 528 |
+
455
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 5
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "CIFAR-10 and CIFAR-100 both are the basic image classification datasets and are used to evaluate the performance in many knowledge transfer methods (Zagoruyko & Komodakis, 2016a; Kim et al., 2018; Huang & Wang, 2017). For these two sets, we train the student network for 500 epochs with a mini-batch size of 128 and weight decay of $1 0 ^ { - 4 }$ . The learning rate starts from 0.1 and is divided by 10 at 150, 300 and 400 epochs. $\\alpha$ is set to 0.3 on CIFAR-10 and 0.5 on CIFAR100 empirically. For data augmentation, we following the policy in He et al. (2016). In order to make the experimental results more convincing, we use the same student and teacher networks as FT (Kim et al., 2018) did, including ResNet (He et al., 2016), Wide ResNet (WRN) (Zagoruyko & Komodakis, 2016b) and VGG (Simonyan & Zisserman, 2014). For CIFAR-10, the corresponding student and teacher networks are 1) ResNet-20 and ResNet-56, which have same width (number of channels) and different depth (number of layers). 2) ResNet-20 and WRN-40-1, which have different width and depth. 3) WRN-16-1 and WRN-16-2, which have same depth and different width. 4) VGG-13 and WRN-46-4, where residual block exists in WRN but not in VGG. For CIFAR-100, the corresponding student and teacher networks are 1) ResNet-56 and ResNet-110. 2) Resnet-20 and ResNet-110. For cases that the intermediate representation from the student sub-network has different number of channels with the teacher sub-network, a simple convolutional layer is employed to transform the dimension. ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
470,
|
| 538 |
+
825,
|
| 539 |
+
707
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 5
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "In Table 1 and Table 2, “Student” column shows the type of student network and the number in parentheses is the performance of student network trained from scratch. “Teacher” column provides the type of teacher network and the performance of pretrained teacher network by our implementation. $\" + \\mathrm { K D } ^ { \\prime \\prime }$ column provides the performance of the corresponding method combined with KD. ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
176,
|
| 548 |
+
714,
|
| 549 |
+
825,
|
| 550 |
+
770
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 5
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "Performance on CIFAR-10 is shown in Table 1, for all the cases our STC method outperforms other knowledge transfer methods no matter with or without KD. We can find another result that AT and our method show good synergy when integrating with KD on CIFAR-10 dataset, while FT has conflicts with KD in some cases. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
776,
|
| 560 |
+
823,
|
| 561 |
+
833
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 5
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "As shown in Table 2, on CIFAR-100 dataset, our method achieves the best performance among all the methods in both cases of integrated with or without KD. Different from CIFAR-10 dataset, after combining with KD, both AT and FT have an obvious performance degradation on CIFAR-100. This is because the data of CIFAR-100 are more complex than CIFAR-10 and the teacher network (ResNet-110) is deeper than that of CIFAR-10. In this case, the knowledge from the teacher subnetwork is vital for the student network. ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
839,
|
| 571 |
+
825,
|
| 572 |
+
922
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 5
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "4.2 IMAGENET ",
|
| 579 |
+
"text_level": 1,
|
| 580 |
+
"bbox": [
|
| 581 |
+
174,
|
| 582 |
+
103,
|
| 583 |
+
292,
|
| 584 |
+
117
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 6
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "To demonstrate the performance of our method on large dataset, we choose ResNet-18 as student network and ResNet-34 as teacher network training on ImageNet ILSVRC2012 dataset, which consists of 1.2 million training images and 50 thousand validation images. We optimize the student network with a mini-batch size of 512 and weight decay of $1 0 ^ { - 4 }$ on 4 GPUs. The $\\alpha$ are set to 0.5 empirically. The learning rate starts from 0.1 and is divided by 10 when the error plateaus. A $2 2 4 \\times 2 2 4$ crop is randomly sampled from an image or its horizontal flip for data augmentation. We evaluate the performance of KD, AT, FT and proposed method STC. Top-1 and Top-5 error rates as shown in Table 3. ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
173,
|
| 593 |
+
130,
|
| 594 |
+
825,
|
| 595 |
+
241
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 6
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "As can be seen, our STC method consistently outperforms other methods on both Top-1 and Top5 error rates on ImageNet dataset. KD method suffers from the gap of depths between teacher and student network, leads to an even worse performance than training the student from scratch. KT and AT, again, show the conflicts when combined with KD, since they target at mimicking the intermediate representation but not the prediction. In contrast, our STC method improve the performance of student network by $1 . 3 6 \\%$ Top-1 error rate without KD and $1 . 6 1 \\%$ Top-1 error rate combined with KD, consistently shows good synergy integrated with KD. ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
173,
|
| 604 |
+
248,
|
| 605 |
+
825,
|
| 606 |
+
347
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 6
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "table",
|
| 612 |
+
"img_path": "images/a66ec033925e4d20dde2838cd360b8f1c76699602cc81a8d90a37f08903d7e35.jpg",
|
| 613 |
+
"table_caption": [
|
| 614 |
+
"Table 3: Top-1 and Top-5 classification error $( \\% )$ on ImageNet ILSVRC2012 dataset. Pretrained student and teacher network are from PyTorch (Paszke et al., 2017) model zoo. Other statistics are gathered from our implementations. "
|
| 615 |
+
],
|
| 616 |
+
"table_footnote": [],
|
| 617 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>error(%)</td><td rowspan=1 colspan=1>Student</td><td rowspan=1 colspan=1>Teacher</td><td rowspan=1 colspan=1>KD</td><td rowspan=1 colspan=1>AT+KD</td><td rowspan=1 colspan=1>FT+KD</td><td rowspan=1 colspan=1>STC +KD</td></tr><tr><td rowspan=1 colspan=1>Top-1</td><td rowspan=1 colspan=1>ResNet-18 (30.24)</td><td rowspan=1 colspan=1>ResNet-34 (26.69)</td><td rowspan=1 colspan=1>33.77</td><td rowspan=1 colspan=1>29.5232.80</td><td rowspan=1 colspan=1>29.0830.30</td><td rowspan=1 colspan=1>28.88 28.63</td></tr><tr><td rowspan=1 colspan=1>Top-5</td><td rowspan=1 colspan=1>ResNet-18 (10.92)</td><td rowspan=1 colspan=1>ResNet-34 (8.58)</td><td rowspan=1 colspan=1>12.29</td><td rowspan=1 colspan=1>9.9511.89</td><td rowspan=1 colspan=1>9.7510.47</td><td rowspan=1 colspan=1>9.669.54</td></tr></table>",
|
| 618 |
+
"bbox": [
|
| 619 |
+
178,
|
| 620 |
+
414,
|
| 621 |
+
821,
|
| 622 |
+
460
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 6
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "4.3 PASCAL VOC 2007 ",
|
| 629 |
+
"text_level": 1,
|
| 630 |
+
"bbox": [
|
| 631 |
+
176,
|
| 632 |
+
488,
|
| 633 |
+
361,
|
| 634 |
+
502
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 6
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "To verify the generalizability of our method on different tasks, we evaluate the performance of our method on PASCAL VOC 2007 detection dataset. We use Faster-RCNN (Ren et al., 2015) pipeline for evaluation as Kim et al. (2018) did, which are VGG-16 backbone for student network and ResNet-101 backbone for teacher network specifically. We train the student network for 15 epochs with a mini-batch size of 16. The learning rate starts from 0.01 and is divided by 10 at 6 and 11 epochs. The $\\alpha$ are set to 0.5 empirically. Since the proposal boxes from RPN module in teacher and student network are of different spatial positions, we extract the RPN and detector module of the teacher network as the teacher sub-network and the backbone of student network as student sub-network, which can be seen in Figure 3. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
173,
|
| 643 |
+
513,
|
| 644 |
+
825,
|
| 645 |
+
640
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 6
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "image",
|
| 651 |
+
"img_path": "images/2c41b13a1b5199c7d9922e2e19e3458db4a06fc579e6106a287e69a3f7765d5c.jpg",
|
| 652 |
+
"image_caption": [
|
| 653 |
+
"Figure 3: STC method on object detection task. We take the backbone of the student network as student sub-network and RPN, ROI pooling, detector module of teacher network as teacher subnetwork. "
|
| 654 |
+
],
|
| 655 |
+
"image_footnote": [],
|
| 656 |
+
"bbox": [
|
| 657 |
+
284,
|
| 658 |
+
656,
|
| 659 |
+
709,
|
| 660 |
+
864
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 6
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Table 4 is the performance of our method compared with FT on PASCAL VOC 2007 dataset. As can be seen, the mAP of the student network is promoted by $1 . 6 \\%$ in our method, while that in FT is $0 . 8 \\%$ . This result proves that our method can be applied to various tasks and is superior to the previous methods. ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
173,
|
| 669 |
+
103,
|
| 670 |
+
825,
|
| 671 |
+
160
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 7
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "table",
|
| 677 |
+
"img_path": "images/63ad865d82af4d6c859b4cbbbf951256178c0ce568f087302877787c9fd91bca.jpg",
|
| 678 |
+
"table_caption": [
|
| 679 |
+
"Table 4: Mean average precision $( \\% )$ on PASCAL VOC 2007 dataset. Both student and teacher network follow the Faster-RCNN pipeline. The backbone of student and teacher networks are VGG16 and ResNet-101 respectively. "
|
| 680 |
+
],
|
| 681 |
+
"table_footnote": [],
|
| 682 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Student</td><td rowspan=1 colspan=1>Teacher</td><td rowspan=1 colspan=1>mAP</td></tr><tr><td rowspan=1 colspan=1>FT</td><td rowspan=1 colspan=1>VGG-16 backbone(69.4)</td><td rowspan=1 colspan=1>ResNet-101 backbone (75.2)</td><td rowspan=1 colspan=1>70.3</td></tr><tr><td rowspan=1 colspan=1>STC</td><td rowspan=1 colspan=1>VGG-16 backbone(69.4)</td><td rowspan=1 colspan=1>ResNet-101backbone (75.2)</td><td rowspan=1 colspan=1>71.0</td></tr></table>",
|
| 683 |
+
"bbox": [
|
| 684 |
+
238,
|
| 685 |
+
227,
|
| 686 |
+
758,
|
| 687 |
+
272
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 7
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "4.4 ABLATION STUDY ",
|
| 694 |
+
"text_level": 1,
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
297,
|
| 698 |
+
339,
|
| 699 |
+
311
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 7
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "In this paragraph, we evaluate the performance of different selections of the target in our method on CIFAR-10 dataset, using the same student and teacher network as Sec. 4.1. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
176,
|
| 708 |
+
324,
|
| 709 |
+
823,
|
| 710 |
+
352
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 7
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "The performance of various target can be seen in Table 5. In Table 5, “output tensor (t)” and “soft target (t)” denote the output tensor and the soft target are generated from the teacher networks. “ground-truth (d)” denotes the ground-truth target is from the dataset. For the generating of the soft target, we follow the fashion in Hinton et al. (2015). ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
358,
|
| 720 |
+
825,
|
| 721 |
+
415
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 7
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "As can be seen, the selection of ground-truth target gets the worst results among all the cases. This is because the ground-truth target does not contain knowledge in the teacher network, so there is limited help in improving the performance of the student network. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
174,
|
| 730 |
+
421,
|
| 731 |
+
825,
|
| 732 |
+
463
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 7
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "For the selection of soft target, even though it can get about the same performance, it can only be employed on classification task, because the soft target is produced by the softmax function with temperature T. Considering the generalizability of our method on different tasks, we choose the output tensor from teacher network as the target. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
174,
|
| 741 |
+
470,
|
| 742 |
+
823,
|
| 743 |
+
527
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 7
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "table",
|
| 749 |
+
"img_path": "images/e5e6c66ab21857a34ecebb80376df5d16e5068033947d8d52d5b8ff9c2a8143b.jpg",
|
| 750 |
+
"table_caption": [
|
| 751 |
+
"Table 5: Top-1 classification error $\\% )$ of different selections of the target on CIFAR-10 dataset. "
|
| 752 |
+
],
|
| 753 |
+
"table_footnote": [],
|
| 754 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Student</td><td rowspan=1 colspan=1>Teacher</td><td rowspan=1 colspan=1>output tensor (t)</td><td rowspan=1 colspan=1>soft target (t)</td><td rowspan=1 colspan=1> ground-truth (d)</td></tr><tr><td rowspan=1 colspan=1>ResNet-20 (7.78)</td><td rowspan=1 colspan=1>ResNet-56 (6.39)</td><td rowspan=1 colspan=1>6.53</td><td rowspan=1 colspan=1>6.59</td><td rowspan=1 colspan=1>6.78</td></tr><tr><td rowspan=1 colspan=1>ResNet-20 (7.78)</td><td rowspan=1 colspan=1>WRN-40-1(6.84)</td><td rowspan=1 colspan=1>6.30</td><td rowspan=1 colspan=1>6.55</td><td rowspan=1 colspan=1>6.83</td></tr><tr><td rowspan=1 colspan=1>VGG-13 (5.99)</td><td rowspan=1 colspan=1>WRN-46-4 (4.44)</td><td rowspan=1 colspan=1>4.82</td><td rowspan=1 colspan=1>4.80</td><td rowspan=1 colspan=1>5.17</td></tr><tr><td rowspan=1 colspan=1>WRN-16-1 (8.62)</td><td rowspan=1 colspan=1>WRN-16-2 (6.27)</td><td rowspan=1 colspan=1>7.15</td><td rowspan=1 colspan=1>7.39</td><td rowspan=1 colspan=1>8.01</td></tr></table>",
|
| 755 |
+
"bbox": [
|
| 756 |
+
184,
|
| 757 |
+
566,
|
| 758 |
+
813,
|
| 759 |
+
640
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 7
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "5 CONCLUSION ",
|
| 766 |
+
"text_level": 1,
|
| 767 |
+
"bbox": [
|
| 768 |
+
174,
|
| 769 |
+
669,
|
| 770 |
+
320,
|
| 771 |
+
685
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "In this paper, we proposed a novel knowledge transfer method called student-teacher collaboration (STC). Different from previous methods, our method employs a collaboration network by connecting the front part of the student network and the back part of the teacher network during the training process. We take the difference between the output predictions from the collaboration network and the teacher network into account of the loss to train the student network. Through back propagation, the knowledge of the teacher sub-network can be additionally utilized in a gradient signal manner. Specifically, the teacher network provides guidance to the student network on which element in the weights should be paid more attention to during the training process. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
700,
|
| 781 |
+
825,
|
| 782 |
+
813
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Through plentiful experiments, it is proved that our STC method outperforms previous knowledge transfer methods on various datasets and has good generalizability on different tasks. What’s more, our method has good synergy integrated with KD to further improve the performance of the student network, while other methods result in accuracy degradation in some cases. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
174,
|
| 791 |
+
818,
|
| 792 |
+
825,
|
| 793 |
+
875
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 7
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "To the best of our knowledge, the training strategy which is insturcting the student network with a collaboration network has never been used in other knowledge transfer methods. We believe that this novel idea will further promote the development of knowledge transfer. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
176,
|
| 802 |
+
882,
|
| 803 |
+
823,
|
| 804 |
+
924
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 7
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "REFERENCES ",
|
| 811 |
+
"text_level": 1,
|
| 812 |
+
"bbox": [
|
| 813 |
+
176,
|
| 814 |
+
103,
|
| 815 |
+
287,
|
| 816 |
+
117
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 8
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "Vasileios Belagiannis, Azade Farshad, and Fabio Galasso. Adversarial network compression. 03 2018. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
174,
|
| 825 |
+
126,
|
| 826 |
+
823,
|
| 827 |
+
154
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 8
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
176,
|
| 836 |
+
162,
|
| 837 |
+
821,
|
| 838 |
+
205
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Alfredo Canziani, Adam Paszke, and Eugenio Culurciello. An analysis of deep neural network models for practical applications. arXiv preprint arXiv:1605.07678, 2016. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
171,
|
| 847 |
+
213,
|
| 848 |
+
821,
|
| 849 |
+
243
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Francois Chollet. Xception: Deep learning with depthwise separable convolutions. computer vision and pattern recognition, pp. 1800–1807, 2017. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
171,
|
| 858 |
+
251,
|
| 859 |
+
825,
|
| 860 |
+
280
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
287,
|
| 870 |
+
823,
|
| 871 |
+
332
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 8
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Haisong Ding, Kai Chen, and Qiang Huo. Compressing cnn-dblstm models for ocr with teacherstudent learning and tucker decomposition. Pattern Recognition, 96, 07 2019. doi: 10.1016/j. patcog.2019.07.002. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
173,
|
| 880 |
+
339,
|
| 881 |
+
823,
|
| 882 |
+
382
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 8
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Mark Everingham and John Winn. The pascal visual object classes challenge 2007 (voc2007) development kit. International Journal of Computer Vision, 111(1):98–136, 2006. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
169,
|
| 891 |
+
390,
|
| 892 |
+
821,
|
| 893 |
+
421
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 1440–1448, 2015. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
173,
|
| 902 |
+
428,
|
| 903 |
+
823,
|
| 904 |
+
458
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 8
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. Computer Science, 2015. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
173,
|
| 913 |
+
465,
|
| 914 |
+
823,
|
| 915 |
+
494
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 8
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "S. Han, J. Pool, J. Tran, and W. J. Dally. Learning both weights and connections for efficient neural networks. neural information processing systems, pp. 1135–1143, 2015. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
171,
|
| 924 |
+
502,
|
| 925 |
+
823,
|
| 926 |
+
534
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 8
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "S. Han, H. Mao, and W. J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. international conference on learning representations, 2016. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
540,
|
| 936 |
+
823,
|
| 937 |
+
583
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 8
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
171,
|
| 946 |
+
592,
|
| 947 |
+
823,
|
| 948 |
+
621
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 8
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
171,
|
| 957 |
+
628,
|
| 958 |
+
821,
|
| 959 |
+
659
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 8
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
171,
|
| 968 |
+
666,
|
| 969 |
+
825,
|
| 970 |
+
695
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv: Computer Vision and Pattern Recognition, 2017. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
704,
|
| 980 |
+
823,
|
| 981 |
+
747
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "Zehao Huang and Naiyan Wang. Like what you like: Knowledge distill via neuron selectivity transfer. arXiv preprint arXiv:1707.01219, 2017. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
171,
|
| 990 |
+
755,
|
| 991 |
+
823,
|
| 992 |
+
785
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 8
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and $\\mathrm { i 0 . 5 m b }$ model size. arXiv: Computer Vision and Pattern Recognition, 2017. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
174,
|
| 1001 |
+
792,
|
| 1002 |
+
823,
|
| 1003 |
+
835
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Jangho Kim, Seounguk Park, and Nojun Kwak. Paraphrasing complex network: Network compression via factor transfer. neural information processing systems, pp. 2760–2769, 2018. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
843,
|
| 1013 |
+
821,
|
| 1014 |
+
873
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Yong-Deok Kim, Eunhyeok Park, Sungjoo Yoo, Taelim Choi, Lu Yang, and Dongjun Shin. Compression of deep convolutional neural networks for fast and low power mobile applications. 05 2016. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
176,
|
| 1023 |
+
882,
|
| 1024 |
+
823,
|
| 1025 |
+
922
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 8
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 and cifar-100 datasets. URl: https://www. cs. toronto. edu/kriz/cifar. html, 6, 2009. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
103,
|
| 1035 |
+
823,
|
| 1036 |
+
132
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
174,
|
| 1045 |
+
140,
|
| 1046 |
+
821,
|
| 1047 |
+
183
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 9
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The cifar-10 dataset. online: http://www. cs. toronto. edu/kriz/cifar. html, 55, 2014. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
169,
|
| 1056 |
+
191,
|
| 1057 |
+
823,
|
| 1058 |
+
220
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan Oseledets, and Victor Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition, 2014. URL http://arxiv.org/abs/1412.6553. cite arxiv:1412.6553. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
229,
|
| 1068 |
+
823,
|
| 1069 |
+
272
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "Y. LeCun, J. S. Denker, and S. A. Solla. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
169,
|
| 1078 |
+
280,
|
| 1079 |
+
823,
|
| 1080 |
+
309
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "J. Li, R. Zhao, J.-T Huang, and Y. Gong. Learning small-size dnn with output-distribution-based criteria. Proceedings of the Annual Conference of the International Speech Communication Association, INTERSPEECH, pp. 1910–1914, 01 2014. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
174,
|
| 1089 |
+
318,
|
| 1090 |
+
823,
|
| 1091 |
+
361
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 9
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "Zhenhua Liu, Jizheng Xu, Xiulian Peng, and Ruiqin Xiong. Frequency-domain dynamic pruning for convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1043–1053, 2018. ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
171,
|
| 1100 |
+
368,
|
| 1101 |
+
823,
|
| 1102 |
+
411
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 9
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "Toma´s Mikolov, Martin Karafi ˇ at, Luk ´ a´s Burget, Jan ˇ Cernock ˇ y, and Sanjeev Khudanpur. Recurrent\\` neural network based language model. In Eleventh annual conference of the international speech communication association, 2010. ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
173,
|
| 1111 |
+
419,
|
| 1112 |
+
823,
|
| 1113 |
+
463
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 9
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pp. 5947–5956, 2017. ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
174,
|
| 1122 |
+
470,
|
| 1123 |
+
823,
|
| 1124 |
+
513
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 9
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "Roman Novak, Yasaman Bahri, Daniel A Abolafia, Jeffrey Pennington, and Jascha SohlDickstein. Sensitivity and generalization in neural networks: an empirical study. arXiv preprint arXiv:1802.08760, 2018. ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
173,
|
| 1133 |
+
522,
|
| 1134 |
+
821,
|
| 1135 |
+
565
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 9
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
171,
|
| 1144 |
+
573,
|
| 1145 |
+
825,
|
| 1146 |
+
617
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 9
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "M. Rastegari, V. Ordonez, J. Redmon, and A. Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525– 542. Springer, 2016. ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
171,
|
| 1155 |
+
625,
|
| 1156 |
+
823,
|
| 1157 |
+
667
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 9
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015. ",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
173,
|
| 1166 |
+
676,
|
| 1167 |
+
823,
|
| 1168 |
+
719
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 9
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. international conference on learning representations, 2015. ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
173,
|
| 1177 |
+
727,
|
| 1178 |
+
823,
|
| 1179 |
+
770
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 9
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
171,
|
| 1188 |
+
779,
|
| 1189 |
+
823,
|
| 1190 |
+
808
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 9
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "V. Vanhoucke, A. Senior, and M.Z. Mao. Improving the speed of neural networks on cpus. 2011. ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
173,
|
| 1199 |
+
815,
|
| 1200 |
+
812,
|
| 1201 |
+
832
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 9
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "Xiaojie Wang, Rui Zhang, Yu Sun, and Jianzhong Qi. Kdgan: Knowledge distillation with generative adversarial networks. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 775–786. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 7358-kdgan-knowledge-distillation-with-generative-adversarial-networks. pdf. ",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
173,
|
| 1210 |
+
840,
|
| 1211 |
+
890,
|
| 1212 |
+
924
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 9
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "Zheng Xu, Yen-Chang Hsu, and Jiawei Huang. Training shallow and thin networks for acceleration via knowledge distillation with conditional adversarial networks. ",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
173,
|
| 1221 |
+
103,
|
| 1222 |
+
823,
|
| 1223 |
+
132
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 10
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "Kohei Yamamoto and Kurato Maeno. Pcas: Pruning channels with attention statistics. 2018. ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
174,
|
| 1232 |
+
141,
|
| 1233 |
+
781,
|
| 1234 |
+
156
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 10
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928, 2016a. ",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
176,
|
| 1243 |
+
165,
|
| 1244 |
+
825,
|
| 1245 |
+
207
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 10
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016b. ",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
176,
|
| 1254 |
+
215,
|
| 1255 |
+
823,
|
| 1256 |
+
244
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 10
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. computer vision and pattern recognition, pp. 6848–6856, 2018. ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
173,
|
| 1265 |
+
253,
|
| 1266 |
+
823,
|
| 1267 |
+
296
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 10
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "Qibin Zhao, Guoxu Zhou, Shengli Xie, Liqing Zhang, and Andrzej Cichocki. Tensor ring decomposition. 06 2016. ",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
173,
|
| 1276 |
+
305,
|
| 1277 |
+
823,
|
| 1278 |
+
334
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 10
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian Reid. Towards effective lowbitwidth convolutional neural networks. ",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
173,
|
| 1287 |
+
343,
|
| 1288 |
+
823,
|
| 1289 |
+
372
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 10
|
| 1292 |
+
}
|
| 1293 |
+
]
|
parse/train/H1lVvgHKDr/H1lVvgHKDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1lVvgHKDr/H1lVvgHKDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxiMAVtPH/HJxiMAVtPH.md
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MULTI-SCALE ATTRIBUTED NODE EMBEDDING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We present network embedding algorithms that capture information about a node from the local distribution over node attributes around it, as observed over random walks following an approach similar to Skip-gram. Observations from neighborhoods of different sizes are either pooled (AE) or encoded distinctly in a multiscale approach (MUSAE). Capturing attribute-neighborhood relationships over multiple scales is useful for a diverse range of applications, including latent feature identification across disconnected networks with similar attributes. We prove theoretically that matrices of node-feature pointwise mutual information are implicitly factorized by the embeddings. Experiments show that our algorithms are robust, computationally efficient and outperform comparable models on social, web and citation network datasets.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Node embedding is a fundamental technique in network analysis that serves as a precursor to numerous downstream machine learning and optimisation tasks, e.g. community detection, network visualization and link prediction (Perozzi et al., 2014; Grover & Leskovec, 2016; Tang et al., 2015). Several recent network embedding methods, such as Deepwalk (Perozzi et al., 2014), Node2Vec (Grover & Leskovec, 2016) and Walklets (Perozzi et al., 2017), achieve impressive performance by learning the network structure following an approach similar to Word2Vec Skip-gram (Mikolov et al., 2013b), originally designed for word embedding. In these works, sequences of neighboring nodes are generated from random walks over a network, and representations are distilled from extracted node-node proximity statistics that capture local neighbourhood information.
|
| 12 |
+
|
| 13 |
+
When the nodes of a network have attributes (or features), their embeddings can be used to capture information about the attributes in their local neighbourhood. For a social network, attributes might represent a person’s interests, habits, history or preferences. The pattern of node attributes are often similar in a neighborhood, and conversely, nodes with similar attributes are more likely to be connected. This property is known as homophily. Attributed network embedding methods (Yang et al., 2015; Huang et al., 2017; Liao et al., 2018) leverage this additional information to supplement that of node neighbourhood structure, benefiting many applications, e.g. recommender systems, node classification and link prediction (Yang et al., 2018; Yang & Yang, 2018; Zhang et al., 2018).
|
| 14 |
+
|
| 15 |
+
The neighborhood of a node can be considered at different path lengths, or scales. In a social network, near neighbors may correspond to classmates, whereas nodes separated by greater scales may be in different cities or countries. Attributes of neighbors at different scales can be considered separately (multi-scale) or pooled in some way (e.g. weighted average). Figure 1a shows how the attribute distribution over neighbourhoods at different scales can indicate nodes with similar network roles even if they are distant in the network, or even in different networks. Methods that take attributes of nearby nodes into account generalizes those that do not, e.g. Perozzi et al. (2017), for which feature vectors can be considered standard basis vectors.
|
| 16 |
+
|
| 17 |
+
Many embedding methods correspond to matrix factorization, indeed some attributed embedding methods (e.g. Yang et al. (2018)) explicitly factorize a matrix of link-attribute information. Embeddings learned using Skip-gram are known to factorize a matrix of pointwise mutual information (PMI) of co-occurrences between each word and local context words (Levy & Goldberg, 2014). Related network embedding methods (Perozzi et al., 2014; Grover & Leskovec, 2016; Tang et al., 2015; Qiu et al., 2018) also implicitly factorize PMI matrices based on the probability of encountering each (context) node on a random walk from each starting node (Qiu et al., 2018).
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Phenomena affecting and inspiring the design of the multi-scale attributed network embedding procedure. In Figure 1a attributed nodes D and G have the same feature set and their nearest neighbours also exhibit equivalent sets of features, whereas features at higher order neighbourhoods differ. Figure 1b shows that as the order of neighbourhoods considered $( r )$ increases, the product of the adjacency matrix power and the feature matrix becomes less sparse. This suggests that an implicit decomposition method would be computationally beneficial.
|
| 21 |
+
|
| 22 |
+
Our key contributions are:
|
| 23 |
+
|
| 24 |
+
1. to introduce the first Skip-gram style embedding algorithms that consider attribute distributions over local neighborhoods, both pooled $( A E )$ and multi-scale (MUSAE), and their counterparts that attribute distinct features to each node (AE-EGO and MUSAE-EGO);
|
| 25 |
+
2. to theoretically prove that their embeddings approximately factorize PMI matrices based on the product of an adjacency matrix power and node-feature matrix;
|
| 26 |
+
3. to show that popular network embedding methods DeepWalk (Perozzi et al., 2014) and Walklets (Perozzi et al., 2017) are special cases of our $A E$ and MUSAE;
|
| 27 |
+
4. we show empirically that $A E$ and MUSAE embeddings enable strong performance at regression, classification, and link prediction tasks for real-world networks (e.g. Wikipedia and Facebook), are computationally scalable and enable transfer learning between networks.
|
| 28 |
+
|
| 29 |
+
We provide reference implementations of $A E$ and MUSAE, together with the datasets used for evaluation at https://github.com/iclr2020/MUSAE.
|
| 30 |
+
|
| 31 |
+
# 2 RELATED WORK
|
| 32 |
+
|
| 33 |
+
Efficient unsupervised learning of node embeddings for large networks has seen unprecedented development in recent years. The current paradigm focuses on learning latent space representations of nodes such that those that share neighbors (Perozzi et al., 2014; Tang et al., 2015; Grover & Leskovec, 2016; Perozzi et al., 2017), structural roles (Ribeiro et al., 2017; Ahmed et al., 2018) or attributes are located close together in the embedding space. Our work falls under the last of these categories as our goal is to learn similar latent representations for nodes with similar sets of features in their neighborhoods, both on a pooled and multi-scale basis.
|
| 34 |
+
|
| 35 |
+
Neighborhood preserving node embedding procedures place nodes with common first, second and higher order neighbors within close proximity in the embedding space. Recent works in the neighborhood preserving node embedding literature were inspired by the Skip-gram model (Mikolov et al., 2013a;b), which generates word embeddings by implicitly factorizing a shifted pointwise mutual information (PMI) matrix (Levy & Goldberg, 2014) obtained from a text corpus. This procedure inspired DeepWalk (Perozzi et al., 2014), a method which generates truncated random walks over a graph to obtain a “corpus” from which the Skip-gram model generates neighborhood preserving node embeddings. In doing so, DeepWalk implicitly factorizes a PMI matrix, which can be shown, based on the underlying first-order Markov process, to correspond to the mean of a set of normalized adjacency matrix powers up to a given order (Qiu et al., 2018). Such pooling of matrices can be suboptimal since neighbors over increasing path lengths (or scales) are treated equally or according to fixed weightings (Mikolov et al., 2013a; Grover & Leskovec, 2016); whereas it has been found that an optimal weighting may be task or dataset specific (Abu-El-Haija et al., 2018). In contrast, multi-scale node embedding methods such as LINE (Tang et al., 2015), GraRep (Cao et al., 2015) and Walklets (Perozzi et al., 2017) separately learn lower-dimensional node embedding components from each adjacency matrix power and concatenate them to form the full node representation. Such un-pooled representations, comprising distinct but less information at each scale, are found to give higher performance in a number of downstream settings, without increasing the overall number of free parameters (Perozzi et al., 2017).
|
| 36 |
+
|
| 37 |
+
Attributed node embedding procedures refine ideas from neighborhood based node embeddings to also incorporate node attributes (equivalently, features or labels) (Yang et al., 2015; Liao et al., 2018; Huang et al., 2017; Yang et al., 2018; Yang & Yang, 2018). Similarities between both a node’s neighborhood structure and features contribute to determining pairwise proximity in the node embedding space. These models follow quite different strategies to obtain such representations. The most elemental procedure, TADW (Yang et al., 2015), decomposes a convex combination of normalized adjacency matrix powers into a matrix product that includes the feature matrix. Several other models, such as SINE (Zhang et al., 2018) and ASNE (Liao et al., 2018), implicitly factorize a matrix formed by concatenating the feature and adjacency matrices. Other approaches such as TENE (Yang & Yang, 2018), formulate the attributed node embedding task as a joint non-negative matrix factorization problem in which node representations obtained from sub-tasks are used to regularize one another. AANE (Huang et al., 2017) uses a similar network structure based regularization approach, in which a node feature similarity matrix is decomposed using the alternating direction method of multipliers. The method most similar to our own is BANE (Yang et al., 2018), in which the product of a normalized adjacency matrix power and a feature matrix is explicitly factorized to obtain attributed node embeddings. Many other methods exist, but do not consider the attributes of higher order neighborhoods (Yang et al., 2015; Liao et al., 2018; Huang et al., 2017; Zhang et al., 2018; Yang & Yang, 2018).
|
| 38 |
+
|
| 39 |
+
The relationship between our pooled $( A E )$ and multi-scale (MUSAE) attributed node embedding methods mirrors that between graph convolutional neural networks (GCNNs) and multi-scale GCNNs. Widely used graph convolutional layers, such as GCN (Kipf & Welling, 2017), GraphSage (Hamilton et al., 2017), GAT (Velickovi ˇ c et al., 2018), ´ APPNP (Klicpera et al., 2019), SGCONV (Wu et al., 2019) and ClusterGCN (Chiang et al., 2019), create latent node representations that pool node attributes from arbitrary order neighborhoods, which are then inseparable and unrecoverable. In contrast, MixHop (Abu-El-Haija et al., 2019) learns latent features for each proximity.
|
| 40 |
+
|
| 41 |
+
# 3 ATTRIBUTED EMBEDDING MODELS
|
| 42 |
+
|
| 43 |
+
We now define algorithms to learn node embeddings using the attributes of nearby nodes, that allows both node and attribute embeddings to be learned jointly. The aim is to learn similar embeddings for nodes that occur in neighbourhoods of similar attributes; and similar embeddings for attributes that often occur in similar neighbourhoods of nodes. Let $\mathcal { G } = ( \mathbb { V } , \mathbb { L } )$ be an undirected graph of interest where $\mathbb { V }$ and $\mathbb { L }$ are the sets of vertices and edges (or links) respectively; and let $\mathbb { F }$ be the set of all possible node features (i.e. attributes). We define $\mathbb { F } _ { v } \subseteq \mathbb { F }$ as the subset of features belonging to each node $v \in \mathbb { V }$ . An embedding of nodes is a mapping $g : \mathbb { V } \to \mathbb { R } ^ { d }$ that assigns a $d$ -dimensional representation g(v) (or simply gv) to each node v and is fully described by a matrix G ∈ R|V|×d. Similarly, an embedding of the features (to the same latent space) is a mapping $h : \mathbb { F } \mathbb { R } ^ { d }$ with embeddings denoted $h ( f )$ (or simply $h _ { f }$ ), and is fully described by a matrix $H \in \mathbb { R } ^ { | \mathbb { F } | \times d }$ .
|
| 44 |
+
|
| 45 |
+
# 3.1 ATTRIBUTED EMBEDDING
|
| 46 |
+
|
| 47 |
+
The Attributed Embedding $( A E )$ procedure is described by Algorithm 1. We sample $n$ nodes $w _ { 1 }$ , from which to start attributed random walks on $\mathcal { G }$ , with probability proportional to their degree (Line 2). From each starting node, a node sequence of length $l$ is sampled over $\mathcal { G }$ (Line 3), where sampling follows a first order random walk. For a given window size $t$ , we iterate over each of the first $l - t$ nodes of the sequence termed source nodes $w _ { j }$ (Line 4). For each source node, we consider the following $t$ nodes as target nodes (Line 5). For each target node $w _ { j + r }$ , we add the tuple $( w _ { j } , f )$ to the corpus $\mathbb { D }$ for each target feature $f \in \mathbb { F } _ { w _ { j + r } }$ (Lines 6 and 7). We also consider features of the source node $f \in \mathbb { F } _ { w _ { j } }$ , adding each $( w _ { j + r } , f )$ tuple to $\mathbb { D }$ (Lines 9 and 10). Running Skip-gram on $\mathbb { D }$ with $b$ negative samples (Line 15) generates the $d$ -dimensional node and feature embeddings.
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
|
| 51 |
+
Algorithm 1: AE sampling and training procedure
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
Algorithm 2: MUSAE sampling and training procedure
|
| 55 |
+
|
| 56 |
+
# 3.2 MULTI-SCALE ATTRIBUTED EMBEDDING
|
| 57 |
+
|
| 58 |
+
The $A E$ method (Algorithm 1) pools feature sets of neighborhoods at different proximities. Inspired by the performance of (unattributed) multi-scale node embeddings, we adapt the $A E$ algorithm to give multi-scale attributed node embeddings (MUSAE). The embedding component of a node $v \in \mathbb { V }$ for a specific proximity $r \in \{ 1 , . . . , t \}$ is given by a mapping $g ^ { r } : \mathbb { V } \overset { } { } \mathbb { R } ^ { d / t }$ (assuming $t$ divides $d )$ . Similarly, the embedding component of feature $f \in \mathbb { F }$ at proximity $r$ is given by a mapping $h ^ { r } : \mathbb { F } \mathbb { R } ^ { \dot { d } / t }$ . Concatenating gives a $d$ -dimensional embedding for each node and feature.
|
| 59 |
+
|
| 60 |
+
The Multi-Scale Attributed Embedding procedure is described by Algorithm 2. We again sample $n$ starting nodes $w _ { 1 }$ with a probability proportional to node degree (Line 2) and, for each, sample a node sequence of length $l$ over $\mathcal { G }$ (Line 3) according to either a first or second order random walk. For a given window size $t$ , we iterate over the first $l - t$ (source) nodes $w _ { j }$ of the sequence (Line 4) and for each source node we iterate through the $t$ (target) nodes $w _ { j + r }$ that follow (Line 5). We again consider each target node feature $f \in \mathbb { F } _ { w _ { j + r } }$ , but now add tuples $( w _ { j } , f )$ to a sub-corpus $\mathbb { D } _ { \stackrel { r } { \to } }$ (Lines 6 and 7). We add tuples $( w _ { j + r } , f )$ to another sub-corpus $\mathbb { D } _ { \mathcal { L } }$ for each source node feature $\dot { \boldsymbol { f } } \in \mathbb { F } _ { w _ { j } }$ (Lines 9 and 10). Running Skip-gram on each sub-corpus $\mathbb { D } _ { r } ^ { } = \mathbb { D } _ { \hat { \neq } } \cup \mathbb { D } _ { \hat { \varepsilon } }$ with $b$ negative samples (Line 16) output $t$ $\textstyle { \left( { \frac { d } { t } } \right) }$ -dimensional node and feature embeddings that are concatenated.
|
| 61 |
+
|
| 62 |
+
# 4 ATTRIBUTED EMBEDDING AS IMPLICIT MATRIX FACTORIZATION
|
| 63 |
+
|
| 64 |
+
Levy & Goldberg (2014) showed that the loss function of Skip-gram with negative sampling (SGNS) is minimized if the embedding matrices factorize a matrix of pointwise mutual information (PMI) of word co-occurrence statistics. Specifically, for a word dictionary $\mathbb { V }$ with $| \mathbb { V } | = n$ , SGNS (with $b$ negative samples) outputs two embedding matrices $W , C \in \mathbb { R } ^ { d \times n }$ such that $\forall w , c \in \mathbb { V }$ :
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\begin{array} { r } { \pmb { w } _ { w } ^ { \top } \pmb { c } _ { c } \approx \mathrm { l o g } \left( \frac { \# ( w , c ) | \mathbb { D } | } { \# ( w ) \# ( c ) } \right) - \mathrm { l o g } b , } \end{array}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $\# ( w , c ) , \# ( w ) , \# ( c )$ denote counts of word-context pair $( w , c )$ , $w$ and $c$ over a corpus $\mathbb { D }$ ; and word embeddings ${ \pmb w } _ { \pmb w }$ , $\pmb { c } _ { c } \in \mathbb { R } ^ { d }$ are columns of $W$ and $C$ corresponding to $w$ and $c$ respectively. Considering $\frac { \# ( w ) } { | { \mathbb D } | }$ , $\frac { \# ( c ) } { | { \mathbb D } | }$ , $\scriptstyle { \frac { \# ( w , c ) } { | \mathbb { D } | } }$ as empirical estimates of $p ( w )$ , $p ( c )$ and $p ( w , c )$ respectively shows:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\mathbf { } W ^ { \top } C \approx [ \operatorname { P M I } ( w , c ) - \log b ] _ { w , c \in \mathbb { V } } \ ,
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
i.e. an approximate low-rank factorization of a shifted PMI matrix (low rank since typically $d \ll n$ ).
|
| 77 |
+
|
| 78 |
+
Qiu et al. (2018) extended this result to node embedding models that apply SGNS to a “corpus” generated from random walks over the graph. In the case of DeepWalk where random walks are first-order Markov, the joint probability distributions over nodes at different stages of a random walk can be expressed in closed form. A closed form then follows for the factorized PMI matrix. We show that $A E$ and MUSAE implicitly perform analogous matrix factorizations.
|
| 79 |
+
|
| 80 |
+
Notation: $A \in \mathbb { R } ^ { n \times n }$ denotes the adjacency matrix and $D \in \mathbb { R } ^ { n \times n }$ the diagonal degree matrix of a graph $\mathcal { G }$ , i.e. $\begin{array} { r } { D _ { w , w } = \deg ( w ) = \sum _ { v } A _ { w , v } } \end{array}$ . We denote the volume of $\mathcal { G }$ by $\begin{array} { r } { c = \sum _ { v , w } A _ { v , w } } \end{array}$ . We define the binary attribute matrix $\pmb { F } \in \{ 0 , 1 \} ^ { | \mathbb { V } | \times | \mathbb { F } | }$ by $\pmb { F } _ { w , f } = \mathbf { 1 } _ { f \in \mathbb { F } _ { w } }$ , $\forall w \in \mathbb { V } , f \in \mathbb { F }$ . For ease of notation, we let $P { = } D ^ { - 1 } A$ and $\scriptstyle E = d i a g ( \mathbf { 1 } ^ { \top } D F )$ , where diag indicates a diagonal matrix.
|
| 81 |
+
|
| 82 |
+
Interpretation: Assuming $\mathcal { G }$ is ergodic: $\begin{array} { r } { p ( w ) = \frac { d e g ( w ) } { c } , w \in \mathbb { V } } \end{array}$ is the stationary distribution over nodes, i.e. $c ^ { - 1 } D = d i a g ( p ( w ) )$ ; and $c ^ { - 1 } { \cal A }$ is the stationary joint distribution over consecutive nodes $p ( w _ { j } , w _ { j + 1 } )$ . $F _ { w , f }$ can be considered a Bernoulli parameter describing the probability $p ( f | w )$ of observing a feature $f$ at a node $w$ and so $c ^ { - 1 } D F$ describes the stationary joint distribution $p ( f , w _ { j } )$ over nodes and features. Accordingly, $_ { P }$ is the matrix of conditional distributions $p ( w _ { j + 1 } | w _ { j } )$ ; and $\pmb { \cal E }$ is a diagonal matrix proportional to the probability of observing each feature at the stationary distribution $p ( f )$ (note that $p ( f )$ need not sum to 1, whereas $p ( w )$ necessarily must).
|
| 83 |
+
|
| 84 |
+
# 4.1 MULTI-SCALE CASE (MUSAE)
|
| 85 |
+
|
| 86 |
+
We know that the SGNS aspect of MUSAE (Algorithm 2, Line 17) is minimized when the learned embeddings grv , hrf satisfy grw>hrf ≈ log #(w,f )r|Dr|#(w)r#(f )r − log b ∀w ∈ V, f ∈ F. Our aim is to express this factorization in terms of known properties of the graph $\mathcal { G }$ and its features.
|
| 87 |
+
|
| 88 |
+
Lemma 1. The empirical statistics of node-feature pairs obtained from random walks give unbiased estimates of joint probabilities of observing feature $f \in \mathbb { F } r$ steps $( i )$ after; or $( i i )$ before node $v \in \mathbb { V }$ , as given by:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
p l i m \frac { \# ( w , f ) _ { \vec { r } } } { | \mathbb { D } _ { \vec { r } } | } = c ^ { - 1 } ( D P ^ { r } F ) _ { w , f } \qquad \underbrace { p l i m \frac { \# ( w , f ) _ { \vec { r } } } { | \mathbb { D } _ { \vec { r } } | } } _ { l \to \infty } = c ^ { - 1 } ( F ^ { \top } D P ^ { r } ) _ { f , w }
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
Proof. See Appendix.
|
| 95 |
+
|
| 96 |
+
Lemma 2. Empirical statistics of node-feature pairs obtained from random walks give unbiased estimates of joint probabilities of observing feature $f \in \mathbb { F } r$ steps either side of node $v \in \mathbb { V } ,$ , given by:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\begin{array} { r l } & { p l i m \frac { \# ( w , f ) _ { r } } { | \mathbb { D } _ { r } | } = c ^ { - 1 } ( D P ^ { r } F ) _ { w , f } \ , } \\ & { l \infty } \end{array}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
Proof. See Appendix.
|
| 103 |
+
|
| 104 |
+
Marginalizing gives unbiased estimates of stationary probability distributions of nodes and features:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\operatorname* { p l i m } _ { l \to \infty } \frac { \# ( w ) } { | \mathbb { D } _ { r } | } = \frac { d e g ( w ) } { c } = c ^ { - 1 } D _ { w , w } \qquad \mathrm { a n d } \qquad \operatorname* { p l i m } _ { l \to \infty } \frac { \# ( f ) } { | \mathbb { D } _ { r } | } = \sum _ { w | f \in \mathbb { R } _ { w } } \frac { d e g ( w ) } { c } = c ^ { - 1 } E _ { f , f }
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
Theorem 1. MUSAE embeddings approximately factorize the node-feature PMI matrix:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\begin{array} { r } { l o g \left( c P ^ { r } F E ^ { - 1 } \right) - \log b , \quad f o r r = 1 , \ldots , t . } \end{array}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
Proof.
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\begin{array} { r l } & { \frac { \# ( w , f ) _ { r } | \mathbb { D } _ { r } | } { \# ( f ) _ { r } \# ( w ) _ { r } } = \big ( \frac { \# ( w , f ) _ { r } } { | \mathbb { D } _ { r } | } \big ) / \big ( \frac { \# ( f ) _ { r } } { | \mathbb { D } _ { r } | } \frac { \# ( w ) _ { r } } { | \mathbb { D } _ { r } | } \big ) } \\ & { \xrightarrow { p } \big ( ( c D ^ { - 1 } ) ( c ^ { - 1 } D P ^ { r } F ) ( c E ^ { - 1 } ) \big ) _ { w , f } } \\ & { = c ( P ^ { r } F E ^ { - 1 } ) _ { w , f } } \end{array}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
# 4.2 POOLED CASE (AE)
|
| 123 |
+
|
| 124 |
+
Lemma 3. The empirical statistics of node-feature pairs learned by the AE algorithm give unbiased estimates of mean joint probabilities over different path lengths as follows:
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\underset { l \infty } { \underbrace { p l i m } } \frac { \# ( w , f ) } { | \mathbb { D } | } = \frac { c } { t } \big ( D ( \sum _ { r = 1 } ^ { t } \pmb { P } ^ { r } ) \pmb { F } \big ) _ { w , f }
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
Proof. By construction, $\begin{array} { r } { \left| \mathbb { D } \right| { = } \sum _ { r } \left| \mathbb { D } _ { r } \right| } \end{array}$ , #(w, f ) = Pr # $( w , f ) _ { r }$ , $| \mathbb { D } _ { r } | = | \mathbb { D } _ { s } | \forall r , s \in \{ 1 , \ldots , t \}$ and so $| \mathbb { D } _ { s } | = t ^ { - 1 } | \mathbb { D } |$ . Combining with Lemma 2, the result follows.
|
| 131 |
+
|
| 132 |
+
Theorem 2. AE embeddings approximately factorize the pooled node-feature matrix:
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\log \Big ( \frac { c } { t } \big ( \sum _ { r = 1 } ^ { t } \pmb { P } ^ { r } \big ) \pmb { F } E ^ { - 1 } \Big ) - \log b .
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
Proof. The proof is analogous to the proof of Theorem 1.
|
| 139 |
+
|
| 140 |
+
Remark 1. DeepWalk is a corner case of $A E$ with $\pmb { F } \mathrm { = } \pmb { I } _ { \vert \mathbb { V } \vert }$
|
| 141 |
+
|
| 142 |
+
That is, DeepWalk is equivalent to $A E$ if each node has a single unique feature. Thus ${ \pmb { { \cal E } } } =$ $d i a g ( { \bf 1 } ^ { \top } D I ) = D$ and, by Theorem 2, DeepWalk’s embeddings factorize $\begin{array} { r } { \log \left( \frac { c } { t } ( \sum _ { r = 1 } ^ { t } \mathbf { P } ^ { r } ) \mathbf { D } ^ { - 1 } \right) - } \end{array}$ $\log b$ , as previously noted by Qiu et al. (2018).
|
| 143 |
+
|
| 144 |
+
Remark 2. Walklets is a corner case of MUSAE with ${ \pmb F } = { \pmb I } _ { | \mathbb { V } | }$
|
| 145 |
+
|
| 146 |
+
Thus, for $r = 1 , \ldots , t$ , the embeddings of Walklets factorise $\log \left( c \mathbf { P } ^ { r } \mathbf { D } ^ { - 1 } \right) - \log b$ .
|
| 147 |
+
|
| 148 |
+
Remark 3. Appending an identity matrix $\pmb { I }$ to the feature matrices $\pmb { F }$ of $A E$ and MUSAE (denoted $[ F ; I ] )$ adds a unique feature to each node. The resulting algorithms, named AE-EGO and MUSAE$E G O$ , learn embeddings that, respectively, approximately factorize the node-feature PMI matrices:
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\partial g \left( c P ^ { r } \left[ F ; I \right] E ^ { - 1 } \right) - \log b , \forall r \in \{ 1 , . . . , t \} ; \qquad a n d \qquad \log \left( \frac { c } { t } ( \sum _ { r = 1 } ^ { t } P ^ { r } ) \left[ F ; I \right] E ^ { - 1 } \right) - \log b .
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
# 4.3 COMPLEXITY ANALYSIS
|
| 155 |
+
|
| 156 |
+
Under the assumption of a constant number of features per source node and first-order attributed random walk sampling, the corpus generation has a runtime complexity of $\mathcal { O } ( n l t x / y )$ , where $\begin{array} { r } { \boldsymbol { x } = \sum _ { v \in \mathbb { V } } \left| \mathbb { F } _ { v } \right| } \end{array}$ the total number of features across all nodes (including repetition) and $\dot { \boldsymbol y } = | \mathbb { V } |$ the number of nodes. Using negative sampling, the optimization runtime of a single asynchronous gradient descent epoch on $A E$ and the joint optimization runtime of MUSAE embeddings is described by $\mathcal { O } ( b d n l t x / y )$ . If one does $p$ truncated walks from each source node, the corpus generation complexity is $\mathcal { O } ( p y l t x )$ and the model optimization runtime is $\mathcal { O } ( b d p y l t x )$ . Our later runtime experiments in Section 5 will underpin optimization runtime complexity discussed above.
|
| 157 |
+
|
| 158 |
+
Corpus generation has a memory complexity of $\mathcal { O } ( n l t x / y )$ while the same when generating $p$ truncated walks per node has a memory complexity of $\mathcal { O } ( p y l t x )$ . Storing the parameters of an $A E$ embedding has a memory complexity of $\mathcal { O } ( y d )$ and MUSAE embeddings also use $\mathcal { O } ( y d )$ memory.
|
| 159 |
+
|
| 160 |
+
# 5 EXPERIMENTAL EVALUATION
|
| 161 |
+
|
| 162 |
+
In order to evaluate the quality of created representations we test the embeddings on supervised downstream tasks such as node classification, transfer learning across networks, regression, and link prediction. Finally, we investigate how changes in the input size affect the runtime. For doing so we utilize social networks and web graphs that we collected from Facebook, Github, Twitch and Wikipedia. The data sources, collection procedures and the datasets themselves are described with great detail in Appendix B. In addition we tested our methods on citation networks widely used for model evaluation (Shchur et al., 2018). Across all experiments we use the same hyperparameter settings of our own model, competing unsupervised methods and graph neural networks – these are respectively listed in Appendices C, E and F.
|
| 163 |
+
|
| 164 |
+
# 5.1 NODE CLASSIFICATION
|
| 165 |
+
|
| 166 |
+
We evaluate the node classification performance in two separate scenarios. In the first we do $k$ -shot learning by using the attributed embedding vectors with logistic regression to predict labels on the Facebook, Github and Twitch Portugal graphs. In the second we test the predictive performance under a fixed size train-test split to compare against various embedding methods and competitive neural network architectures.
|
| 167 |
+
|
| 168 |
+
# 5.1.1 K-SHOT LEARNING
|
| 169 |
+
|
| 170 |
+
In this experiment we take $k$ randomly selected samples per class, and use the attributed node embeddings to train a logistic regression model with $l _ { 2 }$ regularization and predict the labels on the remaining vertices. We repeated the above procedure with seeded splits 100 times to obtain robust comparable results (Shchur et al., 2018). From these we calculated the average of micro averaged $F _ { 1 }$ scores to compare our own methods with other unsupervised node embedding procedures. We varied $k$ in order to show the efficacy of the methods – what are the gains when the training set size is increased. These results are plotted in Figure 2 for Facebook, Github and Twitch Portugal networks.
|
| 171 |
+
|
| 172 |
+
Based on these plots it is evident that MUSAE and $A E$ embeddings have little gains in terms of micro $F _ { 1 }$ score when additional data points are added to the training set when $k$ is larger than 12. This implies that our method is data efficient. Moreover, $M U S A E – E G O$ and $A E / E G O$ have a slight performance advantage, which means that including the nodes in the attributed random walks helps when a small amount of labeled data is available in the downstream task.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 2: Node classification $k$ -shot learning performance as a function of training samples per class evaluated by average micro $F _ { 1 }$ scores calculated from a 100 seeded train-test splits.
|
| 176 |
+
|
| 177 |
+
# 5.1.2 FIXED RATIO TRAIN-TEST SPLITS
|
| 178 |
+
|
| 179 |
+
In this series of experiments we created a 100 seeded train test splits of nodes $80 \%$ train - $20 \%$ test) and calculated weighted, micro and macro averaged $F _ { 1 }$ scores on the test set to compare our methods to various embedding and graph neural network methods. Across procedures the same random seeds were used to obtain the train-test split this way the performances are directly comparable. We attached these results on the Facebook, Github and Twitch Portugal graphs as Table 6 of Appendix G. In each column red denotes the best performing unsupervised embedding model and blue corresponds to the strongest supervised neural model. We also attached additional supporting results using the same experimental setting with the unsupervised methods on the Cora, Citeseer, and Pubmed graphs as Table 5 of Appendix G.
|
| 180 |
+
|
| 181 |
+
In terms of micro $F _ { 1 }$ score our strongest method outperforms on the Facebook and GitHub networks the best unsupervised method by $1 . 0 1 \%$ and $0 . 4 7 \%$ respectively. On the Twitch Portugal network the relative micro $F _ { 1 }$ advantage of ASNE over our best method is $1 . 0 2 \%$ . Supervised node embedding methods outperform our and other unsupervised methods on every dataset for most metrics. In terms of micro $F _ { 1 }$ this relative advantage over our best performing model variant is the largest with $4 . 6 7 \%$ on the Facebook network, and only $0 . 1 1 \%$ on Twitch Portugal.
|
| 182 |
+
|
| 183 |
+
One can make four general observations based on our results (i) multi-scale representations can help with the classification tasks compared to pooled ones; (ii) the addition of the nodes in the ego augmented models to the feature sets does not help the performance when a large amount of labeled training data is available; (iii) based on the standard errors supervised neural models do not necessarily have a significant advantage over unsupervised methods (see the results on the Github and Twitch datasets); (iv) attributed node embedding methods that only consider first-order neighbourhoods have a poor performance.
|
| 184 |
+
|
| 185 |
+
# 5.2 TRANSFER LEARNING ON TWITCH SOCIAL NETWORKS
|
| 186 |
+
|
| 187 |
+
Neighbourhood based methods such as DeepWalk (Perozzi et al., 2014) are transductive and the function used to create the embedding cannot map nodes that are not connected to the original graph to the latent space. However, vanilla MUSAE and $A E$ are inductive and can easily map nodes to the embedding space if the attributes across the source and target graph are shared. This also means that supervised models trained on the embedding of a source graph are transferable. Importantly those attributed embedding methods such as AANE or ASNE that explicitly use the graph are unable to do this transfer.
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Figure 3: Mean micro $F _ { 1 }$ scores and standard errors calculated from 10 transfer learning runs with MUSAE and $A E$ on the Twitch graphs using Germany, England and Spain as target for the transfer. The blue reference line denotes the test performance on the target dataset in a non transfer learning scenario (standard hyperparameter settings and split ratio). The red reference line denotes the performance of random guesses.
|
| 191 |
+
|
| 192 |
+
Using the disjoint Twitch country level social networks (inter country edges are not present) we did a transfer learning experiment. First, we learn an embedding function given the social network from a country with the standard parameter settings. Second, we train regularized logistic regression on the embedding to predict whether the Twitch user streams explicit content. Third, using the embedding function we map the target graph to the embedding space. Fourth, we use the logistic model to predict the node labels on the target graph. We evaluate the performance by the micro $F _ { 1 }$ score based on 10 experimental repetitions. These averages with standard error bars are plotted for the Twitch Germany, England and Spain datasets as target graphs on Figure 3. We added additional results with France, Portugal and Russia being the target country in Appendix H as Table 5.
|
| 193 |
+
|
| 194 |
+
These results support that MUSAE and $A E$ create features that are transferable across graphs that share vertex features. For example, based on a comparison to non transfer-learning results we find that the transfer between the German and English user graphs is effective in terms of micro $F _ { 1 }$ score. Transfer from English users to German ones considerably improves performance, and the other way around there is a little gain. We also see that the upstream and downstream models that we trained on graphs with more vertices transfer well while transfer to the small ones is generally poor – most of the times worse than random guessing. There is no clear evidence that either $M U S A E$ or $A E$ gives better results on this specific problem.
|
| 195 |
+
|
| 196 |
+
# 5.3 REGRESSION ON WIKIPEDIA GRAPHS
|
| 197 |
+
|
| 198 |
+
We created embeddings of the Wikipedia webgraphs with all of our methods and the unsupervised baselines. Using a $80 \%$ train - $20 \%$ test split we predict the log of average traffic for each page using an elastic net model. The hyperparameters of the downstream model are available in Appendix D. In Table 7 of Appendix I we report average test $R ^ { 2 }$ and standard error of the predictive performance over 100 seeded train-test splits. Our key observation are: (i) that MUSAE outperforms all benchmark neighbourhood preserving and attributed node embedding methods, with the strongest MUSAE variant outperforming the best baseline between $2 . 0 5 \%$ and $1 0 . 0 3 \%$ (test $R ^ { 2 }$ ); (ii) that MUSAE significantly outperforms $A E$ by between $2 . 4 9 \%$ and $2 1 . 6 4 \%$ (test $R ^ { 2 }$ ); and (iii) the benefit of using the vertices as features (ego augmented model) can improve the performance of embeddings, but appears to be dataset specific phenomenon.
|
| 199 |
+
|
| 200 |
+
# 5.4 LINK PREDICTION ON WEB GRAPHS AND SOCIAL NETWORKS
|
| 201 |
+
|
| 202 |
+
The final series of experiments dedicated to the representation quality is about link prediction. We carried out an attenuated graph embedding trial to predict the removed edges from the graph. First, we randomly removed $50 \%$ of edges while the connectivity of the graph was not changed. Second, an embedding is created from the attenuated graph. Third, we calculate features for the removed edges and the same number of randomly selected pairs of nodes (negative candidates) with binary operators to create $d$ -dimensional edge features. We use the binary operators applied by Grover & Leskovec (2016). Specifically, we calculated the average, element-wise product, element-wise $l _ { 1 }$ norm and the element-wise $l _ { 2 }$ norm of vectors. Finally, we created a 100 seeded $80 \%$ train - $20 \%$ test splits and used logistic regression to predict whether an edge exists.
|
| 203 |
+
|
| 204 |
+
We compared to attributed and neighbourhood based embedding methods and average AUC scores are presented in Tables 8 and 9 of Appendix J. Our results show that Walklets (Perozzi et al., 2017) the multi-scale neighbourhood based embedding method materially outperforms every other method on most of the datasets and attributed embedding methods generally do poorly in terms of AUC compared to neighbourhood based ones.
|
| 205 |
+
|
| 206 |
+
# 5.5 SCALABILITY
|
| 207 |
+
|
| 208 |
+
In order to show the efficacy of our algorithms we run a series of experiments on synthetic graphs where we are able to manipulate the input size. Specifically, we look at the effect of changing the number of vertices and features per vertex. Our detailed experimental setup was as follows. Each point in Figure 4 is the mean runtime obtained from 100 experimental runs on Erdos-Renyi graphs. The base graph that we manipulated had $2 ^ { 1 1 }$ nodes, $2 ^ { 3 }$ edges and the same number of unique features per node uniformly selected from a feature set of $2 ^ { 1 1 }$ . Our experimental settings were the same as the ones described in Appendix C except for the number of epochs. We only did a single training epoch with asynchronous gradient descent on each graph. We tested the runtime with 1, 2 and 4 cores and included a dashed line as the linear runtime reference in each subfigure.
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 4: Optimization time as a function of average feature count / number of vertices.
|
| 212 |
+
|
| 213 |
+
We observe that doubling the average number of features per vertex doubles the runtime of $A E$ and MUSAE. Moreover, the number of cores used during the optimization does not decrease the runtime when the number of unique features per vertex compared to the cardinality of the feature set is large. When we look at the change in the vertex set size we also see a linear behaviour. Doubling the input size simply results in a doubled optimization runtime. In addition, if one interpolates linearly from these results it comes that a network with 1 million nodes, 8 edges per node, 8 unique features per node can be embedded with MUSAE on commodity hardware in less than 5 hours. This interpolation assumes that the standard parameter settings proposed in Appendix C and 4 cores were used for optimization.
|
| 214 |
+
|
| 215 |
+
# 6 DISCUSSION AND CONCLUSION
|
| 216 |
+
|
| 217 |
+
We investigated attributed node embedding and proposes efficient pooled $( A E )$ and multi-scale (MUSAE) attributed node embedding algorithms with linear runtime. We proved that these algorithms implicitly factorize probability matrices of features appearing in the neighbourhood of nodes. Two widely used neighbourhood preserving node embedding methods Perozzi et al. (2014; 2017) are in fact simplified cases of our models. On several datasets (Wikipedia, Facebook, Github, and citation networks) we found that representations learned by our methods, in particular MUSAE, outperform neighbourhood based node embedding methods (Perozzi et al. (2014); Grover & Leskovec (2016)), multi-scale algorithms (Tang et al. (2015); Perozzi et al. (2017)) and recently proposed attributed node embedding procedures (Yang et al. (2015); Liao et al. (2018); Huang et al. (2017); Yang et al. (2018); Yang & Yang (2018)).
|
| 218 |
+
|
| 219 |
+
Our proposed embedding models are differentiated from other methods in that they encode feature information from higher order neighborhoods. The most similar previous model BANE (Yang et al., 2018) encodes node attributes from higher order neighbourhoods but has non-linear runtime complexity and the product of adjacency matrix power and feature matrix is decomposed explicitly.
|
| 220 |
+
|
| 221 |
+
# REFERENCES
|
| 222 |
+
|
| 223 |
+
Sami Abu-El-Haija, Bryan Perozzi, Rami Al-Rfou, and Alexander A Alemi. Watch your step: Learning node embeddings via graph attention. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 9198–9208. 2018.
|
| 224 |
+
|
| 225 |
+
Sami Abu-El-Haija, Bryan Perozzi, Amol Kapoor, Nazanin Alipourfard, Kristina Lerman, Hrayr Harutyunyan, Greg Ver Steeg, and Aram Galstyan. MixHop: Higher-order graph convolutional architectures via sparsified neighborhood mixing. In Proceedings of the 36th International Conference on Machine Learning (ICML), pp. 21–29, 2019.
|
| 226 |
+
|
| 227 |
+
Nesreen K Ahmed, Ryan Rossi, John Boaz Lee, Xiangnan Kong, Theodore L Willke, Rong Zhou, and Hoda Eldardiry. Learning role-based graph embeddings. arXiv preprint arXiv:1802.02896, 2018.
|
| 228 |
+
|
| 229 |
+
Shaosheng Cao, Wei Lu, and Qiongkai Xu. Grarep: Learning graph representations with global structural information. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, pp. 891–900, 2015.
|
| 230 |
+
|
| 231 |
+
Wei-Lin Chiang, Xuanqing Liu, Si Si, Yang Li, Samy Bengio, and Cho-Jui Hsieh. Cluster-gcn: An efficient algorithm for training deep and large graph convolutional networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD), pp. 257–266, 2019.
|
| 232 |
+
|
| 233 |
+
Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
|
| 234 |
+
|
| 235 |
+
Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016.
|
| 236 |
+
|
| 237 |
+
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems (NIPS) 30, pp. 1024–1034. Curran Associates, Inc., 2017.
|
| 238 |
+
|
| 239 |
+
Xiao Huang, Jundong Li, and Xia Hu. Accelerated attributed network embedding. In Proceedings of the 2017 SIAM International Conference on Data Mining, pp. 633–641. SIAM, 2017.
|
| 240 |
+
|
| 241 |
+
George Karypis and Vipin Kumar. A fast and high quality multilevel scheme for partitioning irregular graphs. SIAM Journal on scientific Computing, 20(1):359–392, 1998.
|
| 242 |
+
|
| 243 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
|
| 244 |
+
|
| 245 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
|
| 246 |
+
|
| 247 |
+
Johannes Klicpera, Aleksandar Bojchevski, and Stephan Gunnemann. Predict then propagate: ¨ Graph neural networks meet personalized pagerank. In International Conference on Learning Representations (ICLR), 2019.
|
| 248 |
+
|
| 249 |
+
Omer Levy and Yoav Goldberg. Neural word embedding as implicit matrix factorization. In Advances in neural information processing systems, pp. 2177–2185, 2014.
|
| 250 |
+
|
| 251 |
+
Lizi Liao, Xiangnan He, Hanwang Zhang, and Tat-Seng Chua. Attributed social network embedding. IEEE Transactions on Knowledge and Data Engineering, 30(12):2257–2270, 2018.
|
| 252 |
+
|
| 253 |
+
Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. 2013a.
|
| 254 |
+
|
| 255 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013b.
|
| 256 |
+
|
| 257 |
+
Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML), pp. 807–814, 2010.
|
| 258 |
+
|
| 259 |
+
Fabian Pedregosa, Gael Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier ¨ Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, et al. Scikit-learn: Machine learning in python. Journal of machine learning research, 12(Oct):2825–2830, 2011.
|
| 260 |
+
|
| 261 |
+
Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining., 2014.
|
| 262 |
+
|
| 263 |
+
Bryan Perozzi, Vivek Kulkarni, Haochen Chen, and Steven Skiena. Don’t walk, skip!: Online learning of multi-scale network embeddings. In Proceedings of the 2017 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining 2017, pp. 258–265, 2017.
|
| 264 |
+
|
| 265 |
+
Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Kuansan Wang, and Jie Tang. Network embedding as matrix factorization: Unifying deepwalk, line, pte, and node2vec. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, pp. 459–467, 2018.
|
| 266 |
+
|
| 267 |
+
Leonardo F.R. Ribeiro, Pedro H.P. Saverese, and Daniel R. Figueiredo. Struc2vec: Learning node representations from structural identity. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’17, pp. 385–394, 2017.
|
| 268 |
+
|
| 269 |
+
Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. Relational Representation Learning Workshop, NeurIPS 2018, 2018.
|
| 270 |
+
|
| 271 |
+
Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, pp. 1067–1077, 2015.
|
| 272 |
+
|
| 273 |
+
Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \` Bengio. Graph attention networks. In International Conference on Learning Representations (ICLR), 2018.
|
| 274 |
+
|
| 275 |
+
Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying graph convolutional networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), pp. 6861–6871, 2019.
|
| 276 |
+
|
| 277 |
+
Cheng Yang, Zhiyuan Liu, Deli Zhao, Maosong Sun, and Edward Y Chang. Network representation learning with rich text information. In IJCAI, pp. 2111–2117, 2015.
|
| 278 |
+
|
| 279 |
+
Hong Yang, Shirui Pan, Peng Zhang, Ling Chen, Defu Lian, and Chengqi Zhang. Binarized attributed network embedding. In 2018 IEEE International Conference on Data Mining (ICDM), pp. 1476–1481. IEEE, 2018.
|
| 280 |
+
|
| 281 |
+
Shuang Yang and Bo Yang. Enhanced network embedding with text information. In 2018 24th International Conference on Pattern Recognition (ICPR), pp. 326–331. IEEE, 2018.
|
| 282 |
+
|
| 283 |
+
Daokun Zhang, Jie Yin, Xingquan Zhu, and Chengqi Zhang. Sine: Scalable incomplete network embedding. In 2018 IEEE International Conference on Data Mining (ICDM), pp. 737–746. IEEE, 2018.
|
| 284 |
+
|
| 285 |
+
# A PROOFS
|
| 286 |
+
|
| 287 |
+
Lemma 1. The empirical statistics of node-feature pairs obtained from random walks give unbiased estimates of joint probabilities of observing feature $f \in \mathbb { F } r$ steps $( i )$ after; or (ii) before node $v \in \mathbb { V }$ , as given by:
|
| 288 |
+
|
| 289 |
+
$$
|
| 290 |
+
p l i m \frac { \# ( w , f ) _ { \vec { r } } } { | \mathfrak { D } _ { \vec { r } } | } = c ^ { - 1 } ( D P ^ { r } F ) _ { w , f } \qquad \underbrace { p l i m \frac { \# ( w , f ) _ { \vec { r } } } { | \mathfrak { D } _ { \vec { r } } | } } _ { l \to \infty } = c ^ { - 1 } ( F ^ { \top } D P ^ { r } ) _ { f , w }
|
| 291 |
+
$$
|
| 292 |
+
|
| 293 |
+
Proof. The proof is analogous to that given for Theorem 2.1 in Qiu et al. (2018). We show that the computed statistics correspond to sequences of random variables with finite expectation, bounded variance and covariances that tend to zero as the separation between variables within the sequence tends to infinity. The Weak Law of Large Numbers (S.N.Bernstein) then guarantees that the sample mean converges to the expectation of the random variable. We first consider the special case $n = 1$ , i.e. we have a single sequence $w _ { 1 } , . . . , w _ { l }$ generated by a random walk (see Algorithm 1). For a particular node-feature pair $( w , f )$ , we let $Y _ { i }$ , $i \in \{ 1 , . . . , l - t \}$ , be the indicator function for the event $w _ { i } = w$ and $f \in \mathbb { F } _ { i + r }$ . Thus, we have:
|
| 294 |
+
|
| 295 |
+
$$
|
| 296 |
+
\begin{array} { r } { \frac { \# ( w , f ) _ { \vec { r } } } { | \mathbb { D } _ { \vec { r } } | } = \frac { 1 } { l - t } \displaystyle \sum _ { i = 1 } ^ { l - t } Y _ { i } , } \end{array}
|
| 297 |
+
$$
|
| 298 |
+
|
| 299 |
+
the sample average of the $Y _ { i } \mathrm { s }$ . We also have:
|
| 300 |
+
|
| 301 |
+
$$
|
| 302 |
+
\begin{array} { r } { \mathbb { E } [ Y _ { i } ] = \frac { d e g ( w ) } { c } ( P ^ { r } F ) _ { w , f } = \frac { 1 } { c } ( D P ^ { r } F ) _ { w , f } } \end{array}
|
| 303 |
+
$$
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
\mathbb { E } [ Y _ { i } Y _ { j } ] = \operatorname { P r o b } [ w _ { i } = w , f \in \mathbb { F } _ { i + r } , w _ { j } = w , f \in \mathbb { F } _ { j + r } ]
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
$$
|
| 310 |
+
\begin{array} { r l } & { = \underbrace { \frac { d e g \left( w \right) } { c } } _ { p \left( w _ { i } = w \right) } \underbrace { P _ { : w } ^ { r } } _ { p \left( w _ { i + r } | w _ { i } = w \right) } \underbrace { d i a g ( F _ { : f } ) } _ { p \left( f \in \mathbb { R } _ { i + r } | w _ { i + r } \right) } \underbrace { P _ { : w } ^ { j - \left( i + r \right) } } _ { p \left( w _ { j } = w | w _ { i + r } \right) } \underbrace { P _ { w : } ^ { r } F _ { : f } } _ { p \left( f \in \mathbb { R } _ { j + r } | w _ { j } = w \right) } } \\ & { \qquad p \left( w _ { j } = w , f \in \mathbb { R } _ { i + r } | w _ { i } = w \right) } \end{array}
|
| 311 |
+
$$
|
| 312 |
+
|
| 313 |
+
for $j > i + r$ . This allows us to compute the covariance:
|
| 314 |
+
|
| 315 |
+
$$
|
| 316 |
+
\begin{array} { r l } & { \mathrm { { C o v } } ( Y _ { i } , Y _ { j } ) = \mathbb { E } [ Y _ { i } Y _ { j } ] - \mathbb { E } [ Y _ { i } ] \mathbb { E } [ Y _ { j } ] } \\ & { \quad = \frac { d e g ( w ) } { c } P _ { w : } ^ { r } d i a g ( F _ { : f } ) \underbrace { ( P _ { : w } ^ { j - ( i + r ) } - \frac { d e g ( w ) } { c } \underline { { 1 } } ) } _ { \mathrm { t e n d s t o 0 a s } j - i \infty } P _ { w : } ^ { r } F _ { : f } , } \end{array}
|
| 317 |
+
$$
|
| 318 |
+
|
| 319 |
+
where $\underline { { 1 } }$ is a vector of ones. The difference term (indicated) tends to zero as $j - i \infty$ since then $p ( w _ { j } \ = \ w | w _ { i + r } )$ tends to the stationary distribution $\begin{array} { r } { p ( w ) ~ = ~ \frac { d e g ( w ) } { c } } \end{array}$ , regardless of $w _ { i + r }$ . Thus, applying the Weak Law of Large Numbers, the sample average converges in probability to the expected value, i.e.:
|
| 320 |
+
|
| 321 |
+
$$
|
| 322 |
+
\frac { \# ( w , f ) _ { \vec { r } } } { | \mathbb { D } _ { \vec { r } } | } = \frac { 1 } { l - t } \sum _ { i = 1 } ^ { l - t } Y _ { i } \overset { p } { } \frac { 1 } { l - t } \sum _ { i = 1 } ^ { l - t } \mathbb { E } [ Y _ { i } ] = \frac { 1 } { c } ( D P ^ { r } F ) _ { w , f }
|
| 323 |
+
$$
|
| 324 |
+
|
| 325 |
+
A similar argument applies to $\frac { \# ( w , f ) _ { \overleftarrow { r } } } { | \mathbb { D } _ { \overleftarrow { r } } | }$ , with expectation term $\scriptstyle { \frac { 1 } { c } } ( F ^ { \top } D P ^ { r } ) _ { f , w }$ . In both cases, the argument readily extends to the general setting where $n > 1$ with suitably defined indicator functions for each of the $n$ random walks (see Qiu et al. (2018)). □
|
| 326 |
+
|
| 327 |
+
Lemma 2. Empirical statistics of node-feature pairs obtained from random walks give unbiased estimates of joint probabilities of observing feature $f \in \mathbb { F } r$ steps either side of node $v \in \mathbb { V } ,$ , given by:
|
| 328 |
+
|
| 329 |
+
$$
|
| 330 |
+
\underset { l \infty } { \underbrace { p l i m } } ^ { \# ( w , f ) _ { r } } = c ^ { - 1 } ( D P ^ { r } F ) _ { w , f } \ ,
|
| 331 |
+
$$
|
| 332 |
+
|
| 333 |
+
Proof.
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
\begin{array} { r l } & { \frac { \dot { \phi } ( w , f ) _ { \mathrm { r } } } { | \mathbb { D } _ { \mathrm { r } } | } = \frac { \dot { \mathcal { H } } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \mathrm { r } } | } + \frac { \dot { \mathcal { H } } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \mathrm { r } } | } } \\ & { \phantom { \frac { \dot { \phi } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \mathrm { r } } | } } = \frac { 1 } { 2 } \Big ( \frac { \dot { \mathcal { H } } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \frac { \pi } { \gamma } } | } + \frac { \dot { \mathcal { H } } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \frac { \pi } { \gamma } } | } \Big ) } \\ & { \phantom { \frac { \dot { \phi } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \frac { \gamma } { \gamma } } | } } \frac { 1 } { \rho } \Big ( \frac { 1 } { c } ( D P ^ { \mathrm { r } } F ) _ { w , f } + \frac { 1 } { c } ( F ^ { \top } D P ^ { \mathrm { r } } ) _ { f , w } \Big ) } \\ & { \phantom { \frac { \dot { \phi } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \mathrm { r } } | } } = \frac { 1 } { 2 c } \big ( D P ^ { \mathrm { r } } F + P ^ { \mathrm { r } \top } D F \big ) _ { w , f } } \\ & { \phantom { \frac { \dot { \phi } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \frac { \pi } { \gamma } } | } } = \frac { 1 } { 2 c } \Big ( ( D P ^ { \mathrm { r } } + ( A ^ { \top } D ^ { - 1 } ) ^ { \top } D ) F \Big ) _ { w , f } } \\ & \phantom { \frac { \dot { \Theta } ( w , f ) _ { \frac { \pi } { \gamma } } } { | \mathbb { D } _ { \frac { \pi } { \gamma } } | } } \\ & \phantom { \frac { \dot { \Theta } ( w , f ) _ { \mathcal { H } } } } = \frac { 1 } { 2 c } \big ( ( D P ^ \end{array}
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
The final step follows by symmetry of $\pmb { A }$ , indicating how the Lemma can be extended to directed graphs. □
|
| 340 |
+
|
| 341 |
+
# B DATASETS AND DESCRIPTIVE STATISTICS
|
| 342 |
+
|
| 343 |
+
Our method was evaluated on a variety of social networks and web page-page graphs that we collected from openly available API services. In Table 1 we described the graphs with widely used statistics with respect to size, diameter, and level of clustering. We also included the average number of features per vertex and unique feature count in the last columns. These datasets are available with the source code of MUSAE and $A E$ at https://github.com/iclr2020/MUSAE.
|
| 344 |
+
|
| 345 |
+
Table 1: Descriptive statistics of the networks used in our experimental evaluation.
|
| 346 |
+
|
| 347 |
+
<table><tr><td>Dataset</td><td>Nodes</td><td>Edges</td><td>Diameter</td><td>Clustering Coefficient</td><td>Density</td><td>Average Feature</td><td>Unique Features</td></tr><tr><td>Facebook Page-Page</td><td>22,470</td><td>171,002</td><td>15</td><td>0.232</td><td>0.001</td><td>14.000</td><td>4,714</td></tr><tr><td>GitHubWeb-ML</td><td>37,700</td><td>289,003</td><td>7</td><td>0.013</td><td>0.001</td><td>18.312</td><td>4,005</td></tr><tr><td>Wikipedia Chameleon</td><td>2,277</td><td>31,421</td><td>11</td><td>0.314</td><td>0.012</td><td>21.547</td><td>3,132</td></tr><tr><td>Wikipedia Crocodile</td><td>11,631</td><td>170,918</td><td>11</td><td>0.026</td><td>0.003</td><td>75.161</td><td>13,183</td></tr><tr><td>Wikipedia Squirrel</td><td>5,201</td><td>198,493</td><td>10</td><td>0.348</td><td>0.015</td><td>26.474</td><td>3,148</td></tr><tr><td>Twitch DE</td><td>9,498</td><td>153,138</td><td>7</td><td>0.047</td><td>0.003</td><td>20.397</td><td>2,545</td></tr><tr><td>Twitch EN</td><td>7,126</td><td>35,324</td><td>10</td><td>0.042</td><td>0.002</td><td>20.799</td><td>2,545</td></tr><tr><td>Twitch ES</td><td>4,648</td><td>59,382</td><td>9</td><td>0.084</td><td>0.006</td><td>19.391</td><td>2,545</td></tr><tr><td>Twitch FR</td><td>6,549</td><td>112.666</td><td>7</td><td>0.054</td><td>0.005</td><td>19.758</td><td>2,545</td></tr><tr><td>Twitch PT</td><td>1,912</td><td>31,299</td><td>7</td><td>0.131</td><td>0.017</td><td>19.944</td><td>2,545</td></tr><tr><td>Twitch RU</td><td>4,385</td><td>37,304</td><td>9</td><td>0.049</td><td>0.004</td><td>20.635</td><td>2,545</td></tr></table>
|
| 348 |
+
|
| 349 |
+
# B.1 FACEBOOK PAGE-PAGE DATASET
|
| 350 |
+
|
| 351 |
+
This webgraph is a page-page graph of verified Facebook sites. Nodes represent official Facebook pages while the links are mutual likes between sites. Node features are extracted from the site descriptions that the page owners created to summarize the purpose of the site. This graph was collected through the Facebook Graph API in November 2017 and restricted to pages from 4 categories which are defined by Facebook. These categories are: politicians, governmental organizations, television shows and companies. As one can see in Table 1 it is a highly clustered graph with a large diameter. The task related to this dataset is multi-class node classification for the 4 site categories.
|
| 352 |
+
|
| 353 |
+
# B.2 GITHUB WEB AND MACHINE LEARNING DEVELOPERS DATASET
|
| 354 |
+
|
| 355 |
+
The largest graph used for evaluation is a social network of GitHub developers which we collected from the public API in June 2019. Nodes are developers who have starred at least 10 repositories and edges are mutual follower relationships between them. The vertex features are extracted based on the location, repositories starred, employer and e-mail address. The task related to the graph is binary node classification – one has to predict whether the GitHub user is a web or a machine learning developer. This target feature was derived from the job title of each user. As the descriptive statistics show in Table 1 this is the largest graph that we use for evaluation with the highest sparsity.
|
| 356 |
+
|
| 357 |
+
# B.3 WIKIPEDIA DATASETS
|
| 358 |
+
|
| 359 |
+
The datasets that we use to perform node level regression are Wikipedia page-page networks collected on three specific topics: chameleons, crocodiles and squirrels. In these networks nodes are articles from the English Wikipedia collected in December 2018, edges are mutual links that exist between pairs of sites. Node features describe the presence of nouns appearing in the articles. For each node we also have the average monthly traffic between October 2017 and November 2018. In the regression tasks used for embedding evaluation the logarithm of average traffic is the target variable. Table 1 shows that these networks are heterogeneous in terms of size, density, and clustering.
|
| 360 |
+
|
| 361 |
+
# B.4 TWITCH DATASETS
|
| 362 |
+
|
| 363 |
+
These datasets used for node classification and transfer learning are Twitch user-user networks of gamers who stream in a certain language. Nodes are the users themselves and the links are mutual friendships between them. Vertex features are extracted based on the games played and liked, location and streaming habits. Datasets share the same set of node features, this makes transfer learning across networks possible. These social networks were collected in May 2018. The supervised task related to these networks is binary node classification – one has to predict whether a streamer uses explicit language.
|
| 364 |
+
|
| 365 |
+
# C STANDARD HYPERPARAMETER SETTINGS OF OUR EMBEDDING MODELS
|
| 366 |
+
|
| 367 |
+
In MUSAE and $A E$ models we have a set of parameters that we use for model evaluation. Our parameter settings listed in Table 2 are quite similar to the widely used general settings of random walk sampled implicit factorization machines (Perozzi et al., 2014; Grover & Leskovec, 2016; Ribeiro et al., 2017; Perozzi et al., 2017). Each of our models is augmented with a Doc2Vec (Mikolov et al., 2013a;b) embedding of node features – this is done such way that the overall dimension is still 128.
|
| 368 |
+
|
| 369 |
+
Table 2: Standard hyperparameter settings of the AE and MUSAE embeddings.
|
| 370 |
+
|
| 371 |
+
<table><tr><td>Parameter</td><td>Value</td><td>Notation</td></tr><tr><td>Dimensions</td><td>128</td><td>d</td></tr><tr><td>Walk length</td><td>80</td><td>1</td></tr><tr><td>Number of walks per node</td><td>10</td><td>p</td></tr><tr><td>Number of epochs</td><td>5</td><td>k</td></tr><tr><td>Window size</td><td>3</td><td>t</td></tr><tr><td>Initial learning rate</td><td>0.05</td><td>Qmax</td></tr><tr><td>Final learning rate</td><td>0.025</td><td>αmin</td></tr><tr><td>Negative samples</td><td>5</td><td>b</td></tr></table>
|
| 372 |
+
|
| 373 |
+
# D HYPERPARAMETER SETTINGS OF THE DOWNSTREAM MODELS
|
| 374 |
+
|
| 375 |
+
The downstream tasks uses logistic and elastic net regression from Scikit-learn (Pedregosa et al., 2011) for node level classification, regression and link prediction. For the evaluation of every embedding model we use the standard settings of the library except for the regularization and norm mixing parameters. These are described in Table 3.
|
| 376 |
+
|
| 377 |
+
# E HYPERPARAMETER SETTINGS OF COMPETING UNSUPERVISED EMBEDDING METHODS
|
| 378 |
+
|
| 379 |
+
Our purpose was a fair evaluation compared to other node embedding procedures. Because of this each we tried to use hyperparameter settings that give similar expressive power to the competing methods with respect to target matrix approximation (Perozzi et al., 2014; Grover & Leskovec, 2016; Perozzi et al., 2017) and number of dimensions.
|
| 380 |
+
|
| 381 |
+
Table 3: Standard hyperparameter settings of the downstream logistic and elastic net regression models that use the embeddings for classification, link prediction and regression.
|
| 382 |
+
|
| 383 |
+
<table><tr><td>Parameter</td><td>Value</td><td>Notation</td></tr><tr><td>Regularization coefficient</td><td>0.01</td><td>入</td></tr><tr><td>Norm mixing parameter</td><td>0.5</td><td>Y</td></tr></table>
|
| 384 |
+
|
| 385 |
+
• DeepWalk (Perozzi et al., 2014): We used the hyperparameter settings described in Table 2. While the original DeepWalk model uses hierarchical softmax to speed up calculations we used a negative sampling based implementation. This way DeepWalk can be seen as a special case of Node2Vec (Grover & Leskovec, 2016) when the second-order random walks are equivalent to the firs-order walks.
|
| 386 |
+
• $L I N E _ { 2 }$ (Tang et al., 2015): We created 64 dimensional embeddings based on first and second order proximity and concatenated these together for the downstream tasks. Other hyperparameters are taken from the original work.
|
| 387 |
+
• Node2Vec (Grover & Leskovec, 2016): Except for the in-out and return parameters that control the second-order random walk behavior we used the hyperparameter settings described in Table 2. These behavior control parameters were tuned with grid search from the $\{ 4 , 2 , 1 , 0 . 5 , 0 . 2 5 \}$ set using a train-validation split of $8 0 \% - 2 0 \%$ within the training set itself.
|
| 388 |
+
• Walklets (Perozzi et al., 2017): We used the hyperparameters described in Table 2 except for window size. We set a window size of 4 with individual embedding sizes of 32. This way the overall number of dimensions of the representation remained the same.
|
| 389 |
+
• The attributed node embedding methods AANE, ASNE, BANE, TADW, TENE all use the hyperparameters described in the respective papers except for the dimension. We parametrized these methods such way that each of the final embeddings used in the downstream tasks is 128 dimensional.
|
| 390 |
+
|
| 391 |
+
# F HYPERPARAMETER SETTINGS OF COMPETING GRAPH NEURAL NETWORKS
|
| 392 |
+
|
| 393 |
+
Each model was optimized with the Adam optimizer (Kingma & Ba, 2015) with the standard moving average parameters and the model implementations are sparsity aware modifications based on PyTorch Geometric (Fey & Lenssen, 2019). We needed these modifications in order to accommodate the large number of vertex features – see the last column in Table 1. Except for the $G A T$ model (Velickoviˇ c et al., 2018) we used ReLU intermediate activation functions (Nair & Hinton, 2010)´ with a softmax unit in the final layer for classification. The hyperparameters used for the training and regularization of the neural models are listed in Table 4.
|
| 394 |
+
|
| 395 |
+
Table 4: Hyperparameter settings used for training the graph neural network baselines.
|
| 396 |
+
|
| 397 |
+
<table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Epochs</td><td>200</td></tr><tr><td>Learning rate</td><td>0.01</td></tr><tr><td>Dropout</td><td>0.5</td></tr><tr><td>l2 Weight regularization</td><td>0.001</td></tr><tr><td>Depth Filters per layer</td><td>2 32</td></tr></table>
|
| 398 |
+
|
| 399 |
+
Except for the APPNP model each baseline uses information up to 2-hop neighbourhoods. The model specific settings when we needed to deviate from the basic settings which are listed in Table 4 were as follows:
|
| 400 |
+
|
| 401 |
+
• Classical GCN (Kipf & Welling, 2017): We used the standard parameter settings described in this section.
|
| 402 |
+
|
| 403 |
+
• GraphSAGE (Hamilton et al., 2017): We utilized a graph convolutional aggregator on the sampled neighbourhoods, samples of 40 nodes per source, and standard settings.
|
| 404 |
+
• GAT (Velickovi ˇ c et al., 2018): The negative slope parameter of the leaky ReLU function ´ was 0.2, we applied a single attention head, and used the standard hyperparameter settings.
|
| 405 |
+
• MixHop (Abu-El-Haija et al., 2019): We took advantage of the $0 ^ { t h }$ , $1 ^ { s t }$ and $2 ^ { n d }$ powers of the normalized adjacency matrix with 32 dimensional convolutional filters for creating the first hidden representations. This was fed to a feed-forward layer to classify the nodes.
|
| 406 |
+
• ClusterGCN (Chiang et al., 2019): Just as Chiang et al. (2019) did, we used the METIS procedure (Karypis & Kumar, 1998). We clustered the graphs into disjoint clusters, and the number of clusters was the same as the number of node classes (e.g. in case of the Facebook page-page network we created 4 clusters). For training we used the earlier described setup.
|
| 407 |
+
• APPNP (Klicpera et al., 2019): The top level feed-forward layer had 32 hidden neurons, the teleport probability was set as 0.2 and we used 20 steps for approximate personalized pagerank calculation.
|
| 408 |
+
• SGCONV (Wu et al., 2019): We used the $2 ^ { n d }$ power of the normalized adjacency matrix for training the classifier.
|
| 409 |
+
|
| 410 |
+
# G CLASSIFICATION PERFORMANCE
|
| 411 |
+
|
| 412 |
+
Table 5: Node classification test performance evaluated by weighted, micro and macro $F _ { 1 }$ scores calculated from 10 seeded train-test splits. We included standard errors of the scores and used $80 \%$ of nodes for training / $20 \%$ of nodes for testing. Red numbers denote the best performing node embedding method.
|
| 413 |
+
Datasets
|
| 414 |
+
|
| 415 |
+
<table><tr><td rowspan="2"></td><td colspan="3">Cora</td><td colspan="3">Citeseer</td><td colspan="3">Pubmed</td></tr><tr><td>Weighted</td><td>Micro</td><td>Macro</td><td>Weighted</td><td>Micro</td><td>Macro</td><td>Weighted</td><td>Micro</td><td>Macro</td></tr><tr><td>DeepWalk</td><td>0.832 ±0.003</td><td>0.833 ±0.004</td><td>0.823 ±0.004</td><td>0.597 ±0.007</td><td>0.603 ±0.007</td><td>0.560 ±0.006</td><td>0.801 ±0.001</td><td>0.802 ±0.001</td><td>0.789 ±0.002</td></tr><tr><td>LINE2</td><td>0.775 ±0.004</td><td>0.777 ±0.004</td><td>0.768 ±0.005</td><td>0.529 ±0.006</td><td>0.542 ±0.006</td><td>0.486 ±0.005</td><td>0.798 ±0.001</td><td>0.799 ±0.001</td><td>0.785 ±0.001</td></tr><tr><td>Node2Vec</td><td>0.840 ±0.003</td><td>0.840 ±0.003</td><td>0.826 ±0.003</td><td>0.616 ±0.005</td><td>0.622 ±0.005</td><td>0.581 ±0.005</td><td>0.809 ±0.002</td><td>0.810 ±0.002</td><td>0.797 ±0.002</td></tr><tr><td>Walklets</td><td>0.843 ±0.003</td><td>0.843 ±0.003</td><td>0.827 ±0.003</td><td>0.624 ±0.005</td><td>0.630 ±0.006</td><td>0.590 ±0.005</td><td>0.815 ±0.001</td><td>0.815 ±0.001</td><td>0.804 ±0.002</td></tr><tr><td>TADW</td><td>0.819 ±0.004</td><td>0.819 ±0.004</td><td>0.804 ±0.005</td><td>0.725 ±0.004</td><td>0.734 ±0.004</td><td>0.685 ±0.004</td><td>0.862 ±0.002</td><td>0.862 ±0.002</td><td>0.863 ±0.002</td></tr><tr><td>AANE</td><td>0.793 ±0.006</td><td>0.793 ±0.006</td><td>0.777 ±0.006</td><td>0.728 ±0.005</td><td>0.733 ±0.004</td><td>0.693 ±0.005</td><td>0.867 ±0.001</td><td>0.867 ±0.001</td><td>0.867 ±0.002</td></tr><tr><td>ASNE</td><td>0.831 ±0.003</td><td>0.830 ±0.003</td><td>0.812 ±0.004</td><td>0.713 ±0.004</td><td>0.718 ±0.004</td><td>0.677 ±0.004</td><td>0.846 ±0.002</td><td>0.846 ±0.002</td><td>0.843 ±0.002</td></tr><tr><td>BANE</td><td>0.807 ±0.005</td><td>0.807 ±0.005</td><td>0.787 ±0.005</td><td>0.707 ±0.003</td><td>0.713 ±0.003</td><td>0.670 ±0.004</td><td>0.823 ±0.002</td><td>0.823 ±0.002</td><td>0.822 ±0.002</td></tr><tr><td>TENE</td><td>0.829 ±0.005</td><td>0.829 ±0.005</td><td>0.815 ±0.004</td><td>0.664 ±0.004</td><td>0.681 ±0.003</td><td>0.611 ±0.002</td><td>0.842 ±0.001</td><td>0.842 ±0.001</td><td>0.843 ±0.002</td></tr><tr><td>AE</td><td>0.835 ±0.005</td><td>0.835 ±0.005</td><td>0.815 ±0.006</td><td>0.730 ±0.005</td><td>0.739 ±0.005</td><td>0.688 ±0.006</td><td>0.839 ±0.002</td><td>0.839 ±0.002</td><td>0.840 ±0.002</td></tr><tr><td>AE-EGO</td><td>0.835 ±0.005</td><td>0.835 ±0.006</td><td>0.816 ±0.005</td><td>0.729 ±0.004</td><td>0.739 ±0.005</td><td>0.690 ±0.007</td><td>0.840 ±0.002</td><td>0.840 ±0.003</td><td>0.839 ±0.002</td></tr><tr><td>MUSAE</td><td>0.848 ±0.004</td><td>0.848 ±0.004</td><td>0.832 ±0.005</td><td>0.737 ±0.004</td><td>0.742 ±0.004</td><td>0.706 ±0.004</td><td>0.853 ±0.001</td><td>0.853 ±0.001</td><td>0.854 ±0.002</td></tr><tr><td>MUSAE-EGO</td><td>0.849 ±0.004</td><td>0.849 ±0.004</td><td>0.833 ±0.004</td><td>0.736 ±0.004</td><td>0.741 ±0.004</td><td>0.706 ±0.004</td><td>0.850 ±0.002</td><td>0.851 ±0.002</td><td>0.850 ±0.002</td></tr></table>
|
| 416 |
+
|
| 417 |
+
Table 6: Node classification test performance evaluated by weighted, micro and macro $F _ { 1 }$ scores calculated from 10 seeded train-test splits. We included standard errors of the scores and used $80 \%$ of nodes for training / $20 \%$ of nodes for testing. Red numbers denote the best performing node embedding method and blue ones denote the best performing supervised graph neural network.
|
| 418 |
+
|
| 419 |
+
<table><tr><td rowspan="3"></td><td colspan="9">Datasets</td></tr><tr><td colspan="3">Facebook Page-Page</td><td colspan="3">GitHubWebML</td><td colspan="3">TwitchPortugal</td></tr><tr><td>Weighted</td><td>Micro</td><td>Macro</td><td>Weighted</td><td>Micro</td><td>Macro</td><td>Weighted</td><td>Micro</td><td>Macro</td></tr><tr><td>DeepWalk</td><td>0.861 ±0.001</td><td>0.863 ±0.001</td><td>0.848 ±0.001</td><td>0.852 ±0.001</td><td>0.858 ±0.001</td><td>0.801 ±0.002</td><td>0.650 ±0.008</td><td>0.672 ±0.007</td><td>0.594 ±0.009</td></tr><tr><td>LINE2</td><td>0.874 ±0.001</td><td>0.875 ±0.001</td><td>0.862 ±0.001</td><td>0.852 ±0.001</td><td>0.858 ±0.001</td><td>0.800 ±0.002</td><td>0.636 ±0.006</td><td>0.670 ±0.005</td><td>0.571 ±0.005</td></tr><tr><td>Node2Vec</td><td>0.889 ±0.001</td><td>0.890 ±0.001</td><td>0.880 ±0.001</td><td>0.853 ±0.001</td><td>0.859 ±0.001</td><td>0.802 ±0.001</td><td>0.665 ±0.004</td><td>0.686 ±0.004</td><td>0.612 ±0.004</td></tr><tr><td>Walklets</td><td>0.886 ±0.001</td><td>0.887 ±0.001</td><td>0.875 ±0.001</td><td>0.854 ±0.001</td><td>0.860 ±0.001</td><td>0.804 ±0.002</td><td>0.652 ±0.006</td><td>0.671 ±0.006</td><td>0.599 ±0.005</td></tr><tr><td>TADW</td><td>0.760 ±0.002</td><td>0.765 ±0.002</td><td>0.740 ±0.003</td><td>0.650 ±0.001</td><td>0.748 ±0.001</td><td>0.528 ±0.007</td><td>0.459 ±0.001</td><td>0.659 ±0.005</td><td>0.406 ±0.003</td></tr><tr><td>AANE</td><td>0.793 ±0.001</td><td>0.796 ±0.001</td><td>0.775 ±0.001</td><td>0.848 ±0.001</td><td>0.856 ±0.001</td><td>0.794 ±0.002</td><td>0.636 ±0.006</td><td>0.661 ±0.006</td><td>0.577 ±0.006</td></tr><tr><td>ASNE</td><td>0.794 ±0.001</td><td>0.797 ±0.001</td><td>0.776 ±0.001</td><td>0.829 ±0.001</td><td>0.839 ±0.001</td><td>0.766 ±0.002</td><td>0.670 ±0.006</td><td>0.685 ±0.006</td><td>0.620 ±0.006</td></tr><tr><td>BANE</td><td>0.868 ±0.001</td><td>0.868 ±0.001</td><td>0.859 ±0.002</td><td>0.711 ±0.001</td><td>0.762 ±0.001</td><td>0.576 ±0.001</td><td>0.644 ±0.006</td><td>0.664 ±0.006</td><td>0.587 ±0.006</td></tr><tr><td>TENE</td><td>0.724 ±0.002</td><td>0.731 ±0.002</td><td>0.699 ±0.002</td><td>0.842 ±0.001</td><td>0.850 ±0.001</td><td>0.785 ±0.002</td><td>0.613 ±0.005</td><td>0.664 ±0.006</td><td>0.536 ±0.006</td></tr><tr><td>AE</td><td>0.887 ±0.001</td><td>0.888 ±0.001</td><td>0.879 ±0.001</td><td>0.858 ±0.001</td><td>0.863 ±0.001</td><td>0.807 ±0.001</td><td>0.653 ±0.005</td><td>0.672 ±0.004</td><td>0.598 ±0.006</td></tr><tr><td>AE-EGO</td><td>0.898 ±0.001</td><td>0.899 ±0.001</td><td>0.890 ±0.001</td><td>0.857 ±0.001</td><td>0.863 ±0.001</td><td>0.807 ±0.002</td><td>0.652 ±0.007</td><td>0.671 ±0.007</td><td>0.599 ±0.009</td></tr><tr><td>MUSAE MUSAE-EGO</td><td>0.886 ±0.001</td><td>0.887 ±0.001</td><td>0.877 ±0.001</td><td>0.859 ±0.001</td><td>0.864 ±0.001</td><td>0.810 ±0.001</td><td>0.654 ±0.006</td><td>0.672 ±0.006</td><td>0.600 ±0.007</td></tr><tr><td></td><td>0.893 ±0.001</td><td>0.894 ±0.001</td><td>0.884 ±0.001</td><td>0.859 ±0.001</td><td>0.864 ±0.001</td><td>0.810 ±0.001</td><td>0.655 ±0.003</td><td>0.671 ±0.002</td><td>0.604 ±0.003</td></tr><tr><td>GCN</td><td>0.931 ±0.001</td><td>0.932 ±0.001 0.814</td><td>0.928 ±0.001</td><td>0.859 ±0.001</td><td>0.865 ±0.001</td><td>0.809 ±0.002</td><td>0.650 ±0.013</td><td>0.695 ±0.007</td><td>0.577 ±0.02</td></tr><tr><td>GraphSAGE</td><td>0.812 ±0.002</td><td>±0.002</td><td>0.795 ±0.002</td><td>0.848 ±0.001</td><td>0.854 ±0.001</td><td>0.794 ±0.002</td><td>0.618 ±0.003</td><td>0.631 ±0.004</td><td>0.563 ±0.005</td></tr><tr><td>GAT</td><td>0.918 ±0.001</td><td>0.919 ±0.001</td><td>0.912 ±0.001</td><td>0.856 ±0.001</td><td>0.864 ±0.001</td><td>0.803 ±0.002</td><td>0.648 ±0.008</td><td>0.678 ±0.007</td><td>0.588 ±0.009</td></tr><tr><td>MixHop</td><td>0.940 ±0.001</td><td>0.941 ±0.002</td><td>0.937 ±0.001</td><td>0.847 ±0.000</td><td>0.85 ±0.001</td><td>0.800 ±0.001</td><td>0.626 ±0.003</td><td>0.630 ±0.004</td><td>0.576 ±0.003</td></tr><tr><td>ClusterGCN</td><td>0.937 ±0.001</td><td>0.937 ±0.001</td><td>0.934 ±0.001</td><td>0.855 ±0.001</td><td>0.859 ±0.001</td><td>0.807 ±0.001</td><td>0.647 ±0.004</td><td>0.654 ±0.004</td><td>0.602 ±0.005</td></tr><tr><td>APPNP</td><td>0.938 ±0.001</td><td>0.938 ±0.001</td><td>0.935 ±0.001</td><td>0.860 ±0.002</td><td>0.868 ±0.001</td><td>0.811 ±0.002</td><td>0.683 ±0.009</td><td>0.702 ±0.012</td><td>0.623 ±0.010</td></tr><tr><td>SGCONV</td><td>0.832 ±0.002</td><td>0.836 ±0.002</td><td>0.812 ±0.002</td><td>0.816 ±0.001</td><td>0.829 ±0.001</td><td>0.747 ±0.002</td><td>0.652 ±0.003</td><td>0.663 ±0.003</td><td>0.604 ±0.004</td></tr></table>
|
| 420 |
+
|
| 421 |
+

|
| 422 |
+
H ADDITIONAL TRANSFER LEARNING RESULTS ON THE TWITCH GRAPHS
|
| 423 |
+
Figure 5: Mean micro $F _ { 1 }$ scores and standard errors calculated from 10 transfer learning runs with $M U S A E$ and $A E$ on the Twitch graphs using France, Portugal and Russia as targets for the transfer. The blue reference line denotes the test performance on the target dataset in a non transfer learning scenario (standard hyperparameter settings and split ratio). The red reference line denotes the performance of random guesses.
|
| 424 |
+
|
| 425 |
+
# I REGRESSION RESULTS ON WIKIPEDIA PAGE-PAGE GRAPHS
|
| 426 |
+
|
| 427 |
+
Table 7: Average test $R ^ { 2 }$ values and standard errors on the Wikipedia traffic prediction tasks. Red numbers denote the best results on each page-page network.
|
| 428 |
+
|
| 429 |
+
Datasets
|
| 430 |
+
|
| 431 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">Datasets</td></tr><tr><td>Wikipedia Chameleons</td><td>Wikipedia Crocodiles</td><td>Wikipedia Squirrels</td></tr><tr><td>DeepWalk</td><td>0.375 ±0.004</td><td>0.553 ±0.001</td><td>0.170 ±0.002</td></tr><tr><td>LINE2</td><td>0.381 ±0.003</td><td>0.586 ±0.001</td><td>0.232 ±0.002</td></tr><tr><td>Node2Vec</td><td>0.414 ±0.003</td><td>0.574 ±0.001</td><td>0.174 ±0.002</td></tr><tr><td>Walklets</td><td>0.426 ±0.003</td><td>0.625 ±0.001</td><td>0.249 ±0.002</td></tr><tr><td>TADW</td><td>0.527 ±0.003</td><td>0.636 ±0.001</td><td>0.271</td></tr><tr><td>AANE</td><td>0.598 ±0.007</td><td>0.732</td><td>±0.002 0.287</td></tr><tr><td>ASNE</td><td>0.440 ±0.009</td><td>±0.002 0.572</td><td>±0.002 0.229</td></tr><tr><td>BANE</td><td>0.464 ±0.003</td><td>±0.003 0.617</td><td>±0.005 0.168</td></tr><tr><td>TENE</td><td>0.494</td><td>±0.001 0.701</td><td>±0.002 0.321</td></tr><tr><td>AE</td><td>±0.02 0.642</td><td>±0.003 0.743</td><td>±0.007 0.291</td></tr><tr><td>AE-EGO</td><td>±0.006 0.644</td><td>±0.003 0.732</td><td>±0.006 0.283</td></tr><tr><td>MUSAE</td><td>±0.009 0.658</td><td>±0.002 0.736</td><td>±0.006 0.338</td></tr><tr><td>MUSAE-EGO</td><td>±0.004 0.653 ±0.011</td><td>±0.003 0.747 ±0.003</td><td>±0.007 0.354 ±0.009</td></tr></table>
|
| 432 |
+
|
| 433 |
+
# J LINK PREDICTION RESULTS ON SOCIAL AND WEB NETWORKS
|
| 434 |
+
|
| 435 |
+
Table 8: Link prediction results - average AUC on the test set using attributed embeddings and logistic regression. We created 100 seeded splits $80 \%$ training - $20 \%$ test). Standard errors of AUC are included below. Red denotes the best performing embedding model considering both neighbourhood based and attributed methods. We used 4 element-wise operators to create features.
|
| 436 |
+
|
| 437 |
+
Datasets
|
| 438 |
+
|
| 439 |
+
<table><tr><td rowspan="2">Operator</td><td rowspan="2">Method</td><td rowspan="2">Facebook Page-Page</td><td rowspan="2">GitHub Web-ML</td><td rowspan="2">Twitch Spain</td><td rowspan="2">Twitch</td><td rowspan="2">Wikipedia Chameleons</td><td rowspan="2">Wikipedia Crocodiles</td></tr><tr><td>Germany</td></tr><tr><td rowspan="4">Average</td><td>DeepWalk</td><td>0.526 ±0.006</td><td>0.550 ±0.004</td><td>0.568 ±0.009</td><td>0.575 ±0.005</td><td>0.635 ±0.002</td><td>0.661 ±0.007</td></tr><tr><td>LINE2</td><td>0.517 ±0.007</td><td>0.551 ±0.003</td><td>0.540 ±0.011</td><td>0.544 ±0.004</td><td>0.627 ±0.001</td><td>0.708 ±0.004</td></tr><tr><td>Node2Vec</td><td>0.534 ±0.005</td><td>0.573 ±0.003</td><td>0.575 ±0.012</td><td>0.584 ±0.006</td><td>0.641 ±0.009</td><td>0.669 ±0.007</td></tr><tr><td>Walklets</td><td>0.518 ±0.008</td><td>0.552 ±0.003</td><td>0.541 ±0.006</td><td>0.545 ±0.004</td><td>0.635 ±0.015</td><td>0.716 ±0.003</td></tr><tr><td rowspan="4">Hadamard</td><td>DeepWalk</td><td>0.981 ±0.001</td><td>0.799 ±0.001</td><td>0.781 ±0.002</td><td>0.750 ±0.003</td><td>0.974 ±0.002</td><td>0.966 ±0.001</td></tr><tr><td>LINE2</td><td>0.979 ±0.001</td><td>0.899 ±0.001</td><td>0.843 ±0.003</td><td>0.755 ±0.001</td><td>0.939 ±0.003</td><td>0.938 ±0.001</td></tr><tr><td>Node2Vec</td><td>0.982 ±0.001</td><td>0.822 ±0.001</td><td>0.810 ±0.005</td><td>0.780 ±0.003</td><td>0.979 ±0.001</td><td>0.973</td></tr><tr><td>Walklets</td><td>0.984 ±0.001</td><td>0.925 ±0.001</td><td>0.873 ±0.003</td><td>0.819 ±0.001</td><td>0.966 ±0.004</td><td>±0.001 0.980 ±0.001</td></tr><tr><td rowspan="4">lNorm</td><td>DeepWalk</td><td>0.921 ±0.001</td><td>0.658 ±0.001</td><td>0.723 ±0.004</td><td>0.711 ±0.002</td><td>0.950 ±0.002</td><td>0.896 ±0.001</td></tr><tr><td>LINE2</td><td>0.924 ±0.001</td><td>0.913</td><td>0.882</td><td>0.855</td><td>0.922</td><td>0.930</td></tr><tr><td>Node2Vec</td><td>0.928</td><td>±0.002 0.725</td><td>±0.002 0.761</td><td>±0.001 0.745</td><td>±0.003 0.953</td><td>±0.001 0.913</td></tr><tr><td>Walklets</td><td>±0.001 0.980</td><td>±0.001 0.932</td><td>±0.004 0.898</td><td>±0.001 0.870</td><td>±0.003 0.961</td><td>±0.001 0.976</td></tr><tr><td rowspan="4">l2 Norm</td><td>DeepWalk</td><td>±0.001 0.922</td><td>±0.001 0.663</td><td>±0.002 0.731</td><td>±0.001 0.717</td><td>±0.004 0.951</td><td>±0.001 0.899</td></tr><tr><td>LINE2</td><td>±0.001 0.924</td><td>±0.001 0.910</td><td>±0.004 0.880</td><td>±0.002 0.855</td><td>±0.002 0.925</td><td>±0.002 0.936</td></tr><tr><td>Node2Vec</td><td>±0.001 0.929</td><td>±0.001 0.731</td><td>±0.002 0.768</td><td>±0.001 0.750</td><td>±0.003 0.954</td><td>±0.001 0.920</td></tr><tr><td>Walklets</td><td>±0.002 0.981 ±0.001</td><td>±0.001 0.930 ±0.001</td><td>±0.007 0.897 ±0.002</td><td>±0.001 0.870 ±0.002</td><td>±0.002 0.960 ±0.005</td><td>±0.001 0.978 ±0.001</td></tr></table>
|
| 440 |
+
|
| 441 |
+
Table 9: Link prediction results - average AUC on the test set using neighbourhood based embeddings and logistic regression. We created 100 seeded splits ( $80 \%$ training - $20 \%$ test). Standard errors of AUC are included below. Red denotes the best performing embedding model considering both neighbourhood based and attributed methods. We used 4 element-wise operators to create features.
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
<table><tr><td rowspan="2">Operator Method</td><td rowspan="2">GitHub</td><td colspan="5">Datasets</td></tr><tr><td>Facebook Page-Page</td><td>Web-ML</td><td>Twitch Twitch Spain Germany</td><td>Wikipedia Chameleons</td><td>Wikipedia Crocodiles</td></tr><tr><td rowspan="10">Average</td><td>TADW</td><td>0.517 ±0.004</td><td>0.553 ±0.004</td><td>0.541 ±0.007</td><td>0.556 ±0.008</td><td>0.573 ±0.012</td><td>0.625 ±0.006</td></tr><tr><td>AANE</td><td>0.523 ±0.003</td><td>0.539 ±0.003</td><td>0.536 ±0.001</td><td>0.554 ±0.004</td><td>0.552 ±0.013</td><td>0.577 ±0.005</td></tr><tr><td>ASNE</td><td>0.547 ±0.005</td><td>0.596 ±0.002</td><td>0.562 ±0.007</td><td>0.579 ±0.005</td><td>0.650 ±0.005</td><td>0.723 ±0.004</td></tr><tr><td>BANE</td><td>0.625 ±0.003</td><td>0.630</td><td>0.616</td><td>0.634</td><td>0.617</td><td>0.671 ±0.003</td></tr><tr><td>TENE</td><td>0.547 ±0.004</td><td>±0.002 0.515</td><td>±0.001 0.532</td><td>±0.003 0.555</td><td>±0.011 0.555</td><td>0.644 ±0.003</td></tr><tr><td>AE</td><td>0.572 ±0.006</td><td>±0.004 0.719</td><td>±0.011 0.679</td><td>±0.006 0.723</td><td>±0.011 0.669</td><td>0.834</td></tr><tr><td>MUSAE</td><td>0.642</td><td>±0.002 0.780</td><td>±0.006 0.733</td><td>±0.003 0.771</td><td>±0.007 0.810</td><td>±0.002 0.899</td></tr><tr><td>AE-EGO</td><td>±0.003 0.514 ±0.007</td><td>±0.001 0.546</td><td>±0.004 0.523</td><td>±0.002 0.545</td><td>±0.006 0.563</td><td>±0.001 0.660</td></tr><tr><td>MUSAE-EGO</td><td>0.511 ±0.005</td><td>±0.005 0.542 ±0.003</td><td>±0.011 0.533</td><td>±0.007 0.546</td><td>±0.011 0.622</td><td>±0.006 0.699</td></tr><tr><td>TADW</td><td>0.973</td><td>0.915</td><td>±0.005 0.886</td><td>±0.008 0.884</td><td>±0.008 0.964</td><td>±0.003 0.967</td></tr><tr><td rowspan="7">Hadamard</td><td>AANE</td><td>±0.001 0.911</td><td>±0.001 0.772</td><td>±0.003 0.833</td><td>±0.001 0.811</td><td>±0.002 0.917</td><td>±0.001 0.892</td></tr><tr><td>ASNE</td><td>±0.002 0.973</td><td>±0.002 0.912</td><td>±0.003 0.883</td><td>±0.002 0.866</td><td>±0.005 0.945</td><td>±0.005 0.940</td></tr><tr><td>BANE</td><td>±0.001 0.653</td><td>±0.001 0.664</td><td>±0.003 0.659</td><td>±0.002 0.816</td><td>±0.005 0.578</td><td>±0.001 0.738</td></tr><tr><td>TENE</td><td>±0.002 0.735</td><td>±0.003 0.878</td><td>±0.009 0.722</td><td>±0.002 0.748</td><td>±0.014 0.883</td><td>±0.002 0.872</td></tr><tr><td>AE</td><td>±0.012 0.926</td><td>±0.009 0.814</td><td>±0.007 0.743</td><td>±0.003 0.702</td><td>±0.003</td><td>±0.015</td></tr><tr><td>MUSAE</td><td>±0.001 0.945</td><td>±0.002 0.917</td><td>±0.003 0.871</td><td>±0.003 0.863</td><td>0.939 ±0.002 0.950</td><td>0.949 ±0.001 0.968</td></tr><tr><td>AE-EGO</td><td>±0.001 0.928</td><td>±0.002 0.786</td><td>±0.005 0.727</td><td>±0.002 0.687</td><td>±0.005 0.935</td><td>±0.001 0.939</td></tr><tr><td rowspan="10"></td><td>MUSAE-EGO</td><td>±0.001 0.938 ±0.001</td><td>±0.002 0.911 ±0.002</td><td>±0.006 0.881 ±0.003</td><td>±0.003 0.859</td><td>±0.002 0.952</td><td>±0.001 0.969 ±0.001</td></tr><tr><td>TADW</td><td>0.971 ±0.001</td><td>0.909</td><td>0.882</td><td>±0.001 0.881</td><td>±0.007 0.959</td><td>0.962</td></tr><tr><td>AANE</td><td>0.866 ±0.002</td><td>±0.002 0.720</td><td>±0.003 0.771</td><td>±0.001 0.768</td><td>±0.002 0.944</td><td>±0.001 0.913</td></tr><tr><td>ASNE</td><td>0.815 ±0.002</td><td>±0.001 0.866 ±0.001</td><td>±0.004 0.836 ±0.002</td><td>±0.001 0.849</td><td>±0.002 0.869</td><td>±0.001 0.874 ±0.001</td></tr><tr><td>BANE</td><td>0.653 ±0.002</td><td>0.664 ±0.003</td><td>0.658 ±0.009</td><td>±0.001 0.816</td><td>±0.001 0.578</td><td>0.74 ±0.002</td></tr><tr><td>TENE</td><td>0.940 ±0.001</td><td>0.942 ±0.001</td><td>0.857 ±0.004</td><td>±0.002 0.837 ±0.001</td><td>±0.014 0.945 ±0.003</td><td>0.927 ±0.001</td></tr><tr><td>AE</td><td>0.968 ±0.001</td><td>0.889 ±0.001</td><td>0.871 ±0.001</td><td>0.870 ±0.002</td><td>0.955 ±0.002</td><td>0.952 ±0.002</td></tr><tr><td>MUSAE</td><td>0.973 ±0.001</td><td>0.908 ±0.001</td><td>0.885 ±0.002</td><td>0.879 ±0.002</td><td>0.956 ±0.003</td><td>0.967 ±0.001</td></tr><tr><td>AE-EGO</td><td>0.973 ±0.001</td><td>0.891 ±0.001</td><td>0.872 ±0.002</td><td>0.872 ±0.002</td><td>0.953 ±0.002</td><td>0.955 ±0.001</td></tr><tr><td>MUSAE-EGO</td><td>0.977 ±0.001</td><td>0.911 ±0.001</td><td>0.891 ±0.002</td><td>0.884 ±0.002</td><td>0.955 ±0.003</td><td>0.963 ±0.001</td></tr><tr><td rowspan="8">l2 Norm</td><td>TADW</td><td>0.972 ±0.001</td><td>0.913 ±0.001</td><td>0.883 ±0.003</td><td>0.879 ±0.001</td><td>0.961 ±0.002</td><td>0.964 ±0.001</td></tr><tr><td>AANE</td><td>0.877 ±0.001</td><td>0.732 ±0.001</td><td>0.779 ±0.003</td><td>0.774 ±0.002</td><td>0.941 ±0.005</td><td>0.901 ±0.002</td></tr><tr><td>ASNE</td><td>0.806 ±0.004</td><td>0.872 ±0.001</td><td>0.839 ±0.003</td><td>0.852 ±0.002</td><td>0.875 ±0.006</td><td>0.880 ±0.001</td></tr><tr><td>BANE</td><td>0.653 ±0.002</td><td>0.664 ±0.003</td><td>0.659 ±0.009</td><td>.0.816 ±0.0002</td><td>0.578 ±0.014</td><td>0.738 ±0.002</td></tr><tr><td>TENE</td><td>0.893 ±0.001</td><td>0.884 ±0.016</td><td>0.826 ±0.009</td><td>0.797 ±0.005</td><td>0.930 ±0.003</td><td>0.863 ±0.013</td></tr><tr><td>AE</td><td>0.968 ±0.001</td><td>0.881 ±0.001</td><td>0.872 ±0.001</td><td>0.867 ±0.002</td><td>0.954 ±0.003</td><td>0.953 ±0.001</td></tr><tr><td>MUSAE</td><td>0.973 ±0.001</td><td>0.905 ±0.001</td><td>0.884 ±0.002</td><td>0.877 ±0.002</td><td>0.952 ±0.005</td><td>0.965 ±0.001</td></tr><tr><td>AE-EGO</td><td>0.973 ±0.001</td><td>0.884 ±0.001</td><td>0.873 ±0.001</td><td>0.871 ±0.002</td><td>0.952 ±0.003</td><td>0.956 ±0.001</td></tr><tr><td></td><td>MUSAE-EGO</td><td>0.977 ±0.001</td><td>0.907 ±0.001</td><td>0.891 ±0.003</td><td>0.881 ±0.002</td><td>0.951 ±0.006</td><td>0.961 ±0.001</td></tr></table>
|
parse/train/HJxiMAVtPH/HJxiMAVtPH_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxiMAVtPH/HJxiMAVtPH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxiMAVtPH/HJxiMAVtPH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hk0olMdZOIU/Hk0olMdZOIU.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Federated Reconstruction: Partially Local Federated Learning
|
| 2 |
+
|
| 3 |
+
Karan Singhal Google Research karansinghal@google.com
|
| 4 |
+
|
| 5 |
+
Hakim Sidahmed Google Research hsidahmed@google.com
|
| 6 |
+
|
| 7 |
+
Zachary Garrett Google Research zachgarrett@google.com
|
| 8 |
+
|
| 9 |
+
Shanshan Wu Google Research shanshanw@google.com
|
| 10 |
+
|
| 11 |
+
Keith Rush Google Research krush@google.com
|
| 12 |
+
|
| 13 |
+
Sushant Prakash Google Research sush@google.com
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Personalization methods in federated learning aim to balance the benefits of federated and local training for data availability, communication cost, and robustness to client heterogeneity. Approaches that require clients to communicate all model parameters can be undesirable due to privacy and communication constraints. Other approaches require always-available or stateful clients, impractical in large-scale cross-device settings. We introduce Federated Reconstruction, the first modelagnostic framework for partially local federated learning suitable for training and inference at scale. We motivate the framework via a connection to model-agnostic meta learning, empirically demonstrate its performance over existing approaches for collaborative filtering and next word prediction, and release an open-source library for evaluating approaches in this setting. We also describe the successful deployment of this approach at scale for federated collaborative filtering in a mobile keyboard application.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
Federated learning is a machine learning setting in which distributed clients solve a learning objective on sensitive data via communication with a coordinating server [44]. Typically, clients collaborate to train a single global model under an objective that combines heterogeneous local client objectives. For example, clients may collaborate to train a next word prediction model for a mobile keyboard application without sharing sensitive typing data with other clients or a centralized server [28]. This paradigm has been scaled to production and deployed in cross-device settings [3, 28, 56] and cross-silo settings [11, 13].
|
| 22 |
+
|
| 23 |
+
However, training a fully global federated model may not always be ideal due to heterogeneity in clients’ data distributions. Yu et al. [58] show that global models can perform worse than purely local (non-federated) models for many clients (e.g., those with many training examples). Moreover, in some settings privacy constraints completely prohibit fully global federated training. For instance, for models with user-specific embeddings, such as matrix factorization models for collaborative filtering [37], naively training a global federated model involves sending updates to user embeddings on the server, directly revealing potentially sensitive individual preferences [21, 47].
|
| 24 |
+
|
| 25 |
+
To address this, we explore partially local federated learning. In this setting, models are partitioned into global $g$ and local parameters $l$ such that local parameters never leave client devices. This enables training on sensitive user-specific parameters as in the collaborative filtering setting, and we show it can also improve robustness to client data heterogeneity and communication cost for other settings, since we are effectively interpolating between local and federated training. Previous works have looked at similar settings [4, 41]. Importantly, these approaches cannot realistically be applied at scale in cross-device settings because they assume clients are stateful or always-available: in practice, clients are sampled from an enormous population with unreliable availability, so approaches that rely on repeated sampling of the same stateful clients are impractical (Kairouz et al. [34] [Table 1]). Other work has demonstrated that stateful federated algorithms in partial participation regimes can perform worse than stateless algorithms due to the state becoming "stale" [48]. Previous methods also do not enable inference on new clients unseen during training, preventing real-world deployment.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: Schematic of Federated Reconstruction. Model variables are partitioned into global and local variables. For every round $t$ , each participating client $i$ is sent the current global variables, uses them to reconstruct its own local variables, and then updates its copy of the global variables. The server aggregates updates to only the global variables across clients.
|
| 29 |
+
|
| 30 |
+
These limitations motivate a new method for partially local federated learning, balancing the benefits of federated aggregation and local training. This approach should be:
|
| 31 |
+
|
| 32 |
+
1. Model-agnostic: works with any model.
|
| 33 |
+
2. Scalable: compatible with large-scale cross-device training with partial participation.
|
| 34 |
+
3. Practical for inference: new clients can perform inference.
|
| 35 |
+
4. Fast: clients can quickly adapt local parameters to their personal data.
|
| 36 |
+
|
| 37 |
+
In this work, we propose combining federated training of global parameters with reconstruction of local parameters (see Figure 1). We show that our method relaxes the statefulness requirement of previous work and enables fast personalization for unseen clients without additional communication, even for models without user-specific embeddings.
|
| 38 |
+
|
| 39 |
+
Our contributions: We make the following key contributions:
|
| 40 |
+
|
| 41 |
+
• Introduce a model-agnostic framework for training partially local and partially global models, satisfying the above criteria. We propose a practical algorithm instantiating this framework (FEDRECON).
|
| 42 |
+
Justify the algorithm via a connection to model-agnostic meta learning (see Section 4.2), showing that FEDRECON naturally leads to fast reconstruction at test time (see Table 1).
|
| 43 |
+
Demonstrate FEDRECON’s empirical performance over existing approaches for applications in collaborative filtering and next word prediction, showing that our method outperforms standard centralized and federated training in performance on unseen clients (see Table 1), enables fast adaptation to clients’ personal data (see Figure 3), and matches the performance of other federated personalization techniques with less communication (see Figure 2).
|
| 44 |
+
• Release an open-source library for evaluating algorithms across tasks in this setting.
|
| 45 |
+
• Describe the successful deployment of this approach at scale for collaborative filtering in a real-world mobile keyboard application (see Section 7).
|
| 46 |
+
|
| 47 |
+
# 2 Related Work
|
| 48 |
+
|
| 49 |
+
Previous works have explored personalization of federated models via finetuning [52, 58], meta learning / bi-level optimization [10, 16, 18, 33], and model interpolation [14, 27, 43]. Some works aim to improve training convergence with heterogeneous client gradient updates [35, 39], while others address client resource heterogeneity [15, 49]. All of these approaches require communicating all client parameters during training, which can be unreasonable due to privacy and communication constraints for some models (discussed further in Section 3), which motivates methods that aggregate only part of a model as in our work.
|
| 50 |
+
|
| 51 |
+
Arivazhagan et al. [4] and Liang et al. [41] aggregate part of a model, but these approaches do not meet the criteria from Section 1. Similar to other works proposing local parameters [22, 31, 40], both approaches require clients to maintain local models across rounds, which is problematic when sampling clients from large populations (criterion 2). Arivazhagan et al. [4] assumes that all clients are available for training at all times and do not propose a method for performing inference on new clients (criterion 3). Liang et al. [41] requires new inference clients to be able to ensemble the outputs of all other clients’ local models to evaluate on new data, which is unrealistic in practice due to communication and privacy constraints (criterion 3). These constraints are crucial: with previous methods most clients do not have a practical way to perform inference. Previous methods were also proposed for specific model types (criterion 1): Arivazhagan et al. [4] explores personalization layers after shared base layers and Liang et al. [41] learns personal representations of local data. Finally, as we discuss in Section 4.2, our method optimizes a meta learning objective for training global parameters that lead to fast reconstruction (criterion 4).
|
| 52 |
+
|
| 53 |
+
Federated Collaborative Filtering: We evaluate our approach on collaborative filtering [37] in Section 5.1.1. Prior work has explored federated matrix factorization: Ammad-Ud-Din et al. [2] avoids sending the user matrix to the server by storing it locally, aggregating only the item matrix globally. Chai et al. [9] applies homomorphic encryption to aggregation of the item matrix. Flanagan et al. [20] studies federated collaborative filtering as a multi-view learning problem. Each approach requires clients to maintain state, unlike our method. Ammad-Ud-Din et al. [2] and Chai et al. [9] also do not address the problem of inference on unseen users.
|
| 54 |
+
|
| 55 |
+
Federated Meta Learning: Our approach is motivated by a connection to meta learning, described in Section 4.2. Other federated learning works have also established connections to meta learning: Jiang et al. [33] observed that training a global federated model that can be easily personalized via finetuning can be studied in the model-agnostic meta learning (MAML) framework [19], and FEDAVG is performing the distributed version of the REPTILE meta learning algorithm presented by Nichol et al. [46]. Chen et al. [10], Fallah et al. [18], and Lin et al. [42] apply the MAML algorithm and variants in federated settings. Khodak et al. [36] aims to improve upon these methods by learning client similarities adaptively. These methods do not address the partially local federated learning setting, where some parameters are not aggregated globally.
|
| 56 |
+
|
| 57 |
+
# 3 Partially Local Federated Learning
|
| 58 |
+
|
| 59 |
+
Typically, federated learning of a global model optimizes:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\operatorname* { m i n } _ { \mathbf { x } \in \mathbb { R } ^ { d } } F ( \mathbf { x } ) = \mathbb { E } _ { i \sim \mathcal { P } } [ f _ { i } ( \mathbf { x } ) ]
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where $f _ { i } ( \mathbf { x } ) = \mathbb { E } _ { \xi \in \mathcal { D } _ { i } } [ f _ { i } ( \mathbf { x } , \boldsymbol { \xi } ) ]$ is the local objective for client $i , \textbf { x }$ is the $d$ -dimensional model parameter vector, $\mathcal { P }$ is the distribution of clients, and $\xi$ is a data sample drawn from client $i$ ’s data $\mathcal { D } _ { i }$ . In practical cross-device settings, $f _ { i } ( \mathbf { x } )$ may be highly heterogeneous for different $i$ , and the number of available clients may be large and constantly changing due to partial availability. Only a relatively small fraction of clients may be sampled for training.
|
| 66 |
+
|
| 67 |
+
To motivate partially local federated learning, we begin by considering models that can be partitioned into user-specific parameters and non-user-specific parameters. An example is matrix factorization in the collaborative filtering setting [30, 37]: in this scenario, a ratings matrix $R \in \mathbb { R } ^ { U \times I }$ representing user preferences is factorized into a user matrix $P \in \mathbb { R } ^ { U \times K }$ and an items matrix $Q \in \bar { \mathbb { R } ^ { I \times K } }$ such that $\dot { \boldsymbol { R } } \approx \boldsymbol { P } \boldsymbol { Q } ^ { \top }$ , where $U$ is the number of users and $I$ is the number of items. For each user $u$ , this approach yields a $K$ -dimensional user-specific embedding $P _ { u }$ .
|
| 68 |
+
|
| 69 |
+
To train this type of model in the federated setting, we cannot naively use the popular FEDAVG algorithm [44] or other (personalized) algorithms that involving aggregation of all model parameters. A simple application of global learning algorithms might require every client to be sent every other client’s personal parameters, which is clearly unreasonable for both privacy and communication. A more sophisticated approach might be to have each client communicate only their own personal parameters with the server. In this case, the server still has access to individual user parameters, which in this setting can be trivially used to recover sensitive user-item affinities, negating the privacy benefit of not centralizing the data (again unreasonable).
|
| 70 |
+
|
| 71 |
+
Algorithm 1 Federated Reconstruction Training
|
| 72 |
+
|
| 73 |
+
<table><tr><td colspan="2">Input: set of global parameters G,set of local parameters L,dataset split function S,reconstruction algorithm R, client update algorithm U</td></tr><tr><td>Server executes:</td><td></td></tr><tr><td>g(0)← (initialize G) for each round t do</td><td>ClientUpdate:</td></tr><tr><td>S(t) ← (randomly sample m clients)</td><td>(Di,s,Di,q) ← S(Di)</td></tr><tr><td>for each client i ∈ S(t) in parallel do</td><td>(t) ←R(Di,s,L,g(t))</td></tr><tr><td>(△,ni)←ClientUpdate(i,g(t)</td><td>(t) ←U(Di,q,l gi</td></tr><tr><td>end for</td><td>△(t) ↑gi (t) g(t)</td></tr><tr><td>n = ∑ies(t) ni</td><td>ni←|Di,ql</td></tr><tr><td>g(t+1) ←g(t)+ns∑i∈s(t) n end for</td><td>return △(t, n to the server</td></tr></table>
|
| 74 |
+
|
| 75 |
+
Thus a practical federated learning algorithm for this setting should be partially local: it should enable clients to train a subset of parameters entirely on-device. However, approaches that involve stateful clients storing their local parameters across rounds are undesirable in large-scale cross-device settings since clients are unlikely to be sampled repeatedly, causing state to be infrequently available and become stale, degrading performance (Reddi et al. [48] [Sec. 5.1]). Additionally, since only a fraction of clients participate in training, all other clients will be left without trained local parameters, preventing them from performing inference using the model. In a large population setting with hundreds of millions of clients as described in Section 7, this can mean $9 9 \% +$ of clients do not have a complete model, preventing practical deployment. Thus an algorithm for this setting ideally should not depend on stateful clients and should provide a way to perform inference on unseen clients.
|
| 76 |
+
|
| 77 |
+
Though we have motivated partially local federated learning via a setting that contains privacysensitive user-specific parameters, we will later show that this paradigm can also improve robustness to heterogeneity in $f _ { i } ( \mathbf { x } )$ and reduce communication cost, even for models without user-specific parameters. In this case, the partition between local and global parameters is determined by the use-case and communication limitations. As an example, in Section 5.1.2 we motivate a next word prediction use-case, where having a partially local model can be useful for handling diverse client inputs while reducing communication.
|
| 78 |
+
|
| 79 |
+
Achieving partially local federated learning in a practical cross-device setting with large, changing client distribution $\mathcal { P }$ and stateless clients is one of the key contributions of our work.
|
| 80 |
+
|
| 81 |
+
# 4 Federated Reconstruction
|
| 82 |
+
|
| 83 |
+
We now introduce the Federated Reconstruction framework. One of the key insights of our approach is that we can relax the requirement for clients to maintain local parameters across rounds by reconstructing local parameters whenever needed, running a reconstruction algorithm $R$ to recover them. Once a client is finished participating in a round, it can discard its reconstructed local parameters. An overview is presented in Figure 1.
|
| 84 |
+
|
| 85 |
+
Federated Reconstruction training is presented in Algorithm 1. Training proceeds as follows: for each round $t$ , the server sends the current global parameters $g ^ { ( t ) }$ to each selected client. Selected clients split their local data $\mathcal { D } _ { i }$ into a support set $\mathcal { D } _ { i , s }$ and a query set $\mathcal { D } _ { i , q }$ . Each client uses its support set $\mathcal { D } _ { i , s }$ and $g ^ { ( t ) }$ as inputs to reconstruction algorithm $R$ to produce its local parameters $l _ { i } ^ { ( t ) }$ . Then each client then uses its query set $\mathcal { D } _ { i , q }$ , its local parameters $l _ { i } ^ { ( t ) }$ , and the global parameters $g ^ { ( t ) }$ as inputs to update algorithm $U$ to produce updated global parameters $g _ { i } ^ { ( t ) }$ . Finally, the server aggregates updates to global parameters across clients. We describe key steps in further detail below.
|
| 86 |
+
|
| 87 |
+
Dataset Split Step: Clients apply a dataset split function $S$ to their datasets $\mathcal { D } _ { i }$ to produce a support set $\mathcal { D } _ { i , s }$ used for reconstruction and a query set $\mathcal { D } _ { i , q }$ used for updating global parameters. Typically these sets are disjoint to maximize the meta-generalization ability of the model (see Section 4.2), but in Appendix D we show that this assumption may be relaxed if clients don’t have sufficient data to partition.
|
| 88 |
+
|
| 89 |
+
Client Reconstruction Step: Reconstruction of local parameters is performed by algorithm $R$ . Though this algorithm can take other forms, in this work we instantiate $R$ as performing $k _ { r }$ local gradient descent steps on initialized local parameters with the global parameters frozen, using the support set $\mathcal { D } _ { i , s }$ . We show in Section 4.2 this naturally optimizes a well-motivated meta learning objective. Interestingly, this approach is related to gradient-based alternating minimization, a historically successful method for training factored models [26, 32].
|
| 90 |
+
|
| 91 |
+
A potential concern with reconstruction is that this may lead to additional client computation cost compared to storing local parameters on clients. However, since clients are unlikely to be reached repeatedly by large-scale cross-device training, in practice this cost is similar to the cost of initializing these local parameters and training them with stateful clients. Additionally, reconstruction provides a natural way for new clients unseen during training to produce their own partially local models offline (see Section 4.1)–without this step, the vast majority of clients would not be able to use the model. Finally, in Section 4.2 we argue and in Section 5.2 we empirically demonstrate that with our approach just one local gradient descent step can yield successful reconstruction because global parameters are being trained for fast reconstruction of local parameters.
|
| 92 |
+
|
| 93 |
+
Client Update Step: Client updates of global parameters are performed by update algorithm $U$ . In this work we instantiate $U$ as performing $k _ { u }$ local gradient descent steps on the global parameters, using the query set $\mathcal { D } _ { i , q }$ .
|
| 94 |
+
|
| 95 |
+
Server Update Step: We build on the generalized FEDAVG formulation proposed by Reddi et al. [48], treating aggregated global parameter updates as an "antigradient" that can be input into different server optimizers (SGD is shown in Algorithm 1). Note that the server update operates on a weighted average of client updates as in McMahan et al. [44], weighted by $n _ { i } = | \mathcal { D } _ { i , q } |$ .
|
| 96 |
+
|
| 97 |
+
We refer to the instantiation of this framework outlined here as FEDRECON below. We address frequently asked questions about FEDRECON and partially local federated learning in Appendix A.
|
| 98 |
+
|
| 99 |
+
# 4.1 Evaluation and Inference
|
| 100 |
+
|
| 101 |
+
To make predictions with global variables $g$ learned using Algorithm 1, clients can naturally reconstruct their local models just as they do during training, by using $R , g$ , and $\mathcal { D } _ { i , s }$ to produce local parameters $l$ . Then $g$ and $l$ combined make up a fully trained partially local model, which can be evaluated on $\mathcal { D } _ { i , q }$ . We refer to this evaluation approach as RECONEVAL below. Note that this can be applied to clients unseen during training (most clients in large-scale settings), enabling inference for these clients.2
|
| 102 |
+
|
| 103 |
+
Reconstruction for inference is performed offline, independently of any federated process, so clients can perform reconstruction once and store local parameters for repeated use, optionally refreshing them periodically if they have new local data.
|
| 104 |
+
|
| 105 |
+
# 4.2 Connection to Meta Learning
|
| 106 |
+
|
| 107 |
+
Our framework is naturally motivated via meta learning. Given that RECONEVAL involves clients doing (gradient-based) reconstruction using global parameters, we ask: Can we train global parameters conducive to fast reconstruction of local parameters?
|
| 108 |
+
|
| 109 |
+
We can easily formulate this question in the language of model-agnostic meta learning [19]. The heterogeneous client distribution $\mathcal { P }$ corresponds to the heterogeneous distribution of tasks; each round (episode) we sample a batch of clients in the hope of meta-generalizing to unseen clients. Each client has a support dataset for reconstruction and a query dataset for global parameter updates. Our meta-parameters are $g$ and our task-specific parameters are $l _ { i }$ for client $i$ . We want to find $g$ minimizing the objective:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\operatorname { \mathbb { E } } _ { i \sim \mathcal { P } } f _ { i } ( g \parallel l _ { i } ) = \operatorname { \mathbb { E } } _ { i \sim \mathcal { P } } f _ { i } ( g \parallel R ( \mathcal { D } _ { i , s } , \mathcal { L } , g ) ]
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where ${ \boldsymbol { g } } \parallel l _ { i }$ denotes the concatenation of $g$ and $l _ { i }$ and $f _ { i } ( g \parallel l _ { i } ) = \mathbb { E } _ { \xi \in \mathcal { D } _ { i , q } } [ f _ { i } ( g \parallel l _ { i } , \xi ) ] ,$ .
|
| 116 |
+
|
| 117 |
+
In Appendix B we show that the instantiation of our framework where $R$ performs $k _ { r } \geq 1$ steps of gradient descent on initialized local parameters using $\mathcal { D } _ { i , s }$ and $U$ performs $k _ { u } = 1$ step of gradient descent using $\mathcal { D } _ { i , q }$ is already minimizing the first-order terms in this objective (i.e., this version of FEDRECON is performing first-order meta learning). Intuitively, reconstruction corresponds to the MAML “inner loop” and the global parameter update corresponds to the “outer loop”; we test the same way we train (via reconstruction), a common pattern in meta learning.
|
| 118 |
+
|
| 119 |
+
Thus FEDRECON trains global parameters $g$ for fast reconstruction of local parameters $l$ , enabling partially local federated learning without requiring clients to maintain state. In Section 5.2 we observe that our method empirically produces $g$ more conducive to fast, performant reconstruction on unseen clients than standard centralized or federated training (e.g., see SERVER $^ +$ RECONEVAL vs. FEDRECON in Table 1). We see in Figure 3 that just one reconstruction step is sufficient to recover the majority of performance.
|
| 120 |
+
|
| 121 |
+
# 5 Experimental Evaluation
|
| 122 |
+
|
| 123 |
+
# 5.1 Tasks and Methods
|
| 124 |
+
|
| 125 |
+
We next describe experiments validating FEDRECON on matrix factorization and next word prediction. We aim to determine whether reconstruction can enable practical partially local federated learning with fast personalization for new clients, including in settings without user-specific embeddings.
|
| 126 |
+
|
| 127 |
+
# 5.1.1 Matrix Factorization
|
| 128 |
+
|
| 129 |
+
We evaluate on federated matrix factorization using the popular MovieLens 1M collaborative filtering dataset [29]. We perform two kinds of evaluation:
|
| 130 |
+
|
| 131 |
+
1. STANDARDEVAL on seen users, those users who participated in at least one round of federated training. We split each user’s ratings into $80 \%$ train, $10 \%$ validation, and $10 \%$ test by timestamp. We train on all users’ train ratings, and report results on users test ratings.
|
| 132 |
+
2. RECONEVAL on unseen users, those users who did not participate at all during federated training. We split the users randomly into $80 \%$ train, $10 \%$ validation, and $10 \%$ test; we train with the train users and report results on test users.
|
| 133 |
+
|
| 134 |
+
The model learns $P$ and $Q$ such that $R \approx P Q ^ { \top }$ as discussed in Section 3, with embedding dimensionality $K = 5 0$ . We apply FEDRECON with local user embeddings $P _ { u }$ and global item matrix $Q$ . We report root-mean-square-error (RMSE) and rating prediction accuracy. We compare centralized training, FEDAVG, and FEDRECON in Table 1. See also Appendix C.1 for more details on the dataset, model, and hyperparameter choices.
|
| 135 |
+
|
| 136 |
+
# 5.1.2 Next Word Prediction
|
| 137 |
+
|
| 138 |
+
We also aim to determine whether Federated Reconstruction can be successfully applied in settings without user-specific embeddings to improve robustness to client heterogeneity and communication cost, since our approach is agnostic to which parameters are chosen as local/global. We apply FEDRECON to next word prediction because the task provides a natural motivation for personalization: different clients often have highly heterogeneous data, e.g., if they use different slang, but language models typically have a fixed vocabulary. We propose improving the ability of a language model to capture diverse inputs using local out-of-vocabulary (OOV) embeddings. OOV embeddings are a common application of the hashing trick [54] in deep learning; combining them with FEDRECON enables language models to effectively allow for personal input vocabularies for different clients. For example, if client $i$ frequently uses OOV token $t _ { i }$ and client $j$ uses OOV token $t _ { j }$ , each client’s corresponding local OOV embedding can learn to reflect this (even if the OOV embeddings collide). So adding local OOV embeddings with the core global vocabulary fixed can lead to improved personalization without more communication per round; we will also show that we can reduce the size of the core model (reducing communication) and get further benefits.
|
| 139 |
+
|
| 140 |
+
We perform next word prediction with the federated Stack Overflow dataset introduced in TensorFlow [51]. We use an LSTM model and process data similarly to Reddi et al. [48], comparing to their best
|
| 141 |
+
|
| 142 |
+
Table 1: Movielens matrix factorization root-mean-square-error (lower is better) and rating prediction accuracy (higher is better). STANDARDEVAL is on seen users, RECONEVAL is on held-out users. Results within $2 \%$ of best for each metric are in bold.
|
| 143 |
+
|
| 144 |
+
<table><tr><td></td><td>RMSE↓</td><td>ACCURACY↑</td></tr><tr><td>CENTRALIZED+STANDARDEVAL</td><td>.923</td><td>43.2</td></tr><tr><td>CENTRALIZED+RECONEVAL</td><td>1.36</td><td>40.8</td></tr><tr><td>FEDAVG + STANDARD EVAL</td><td>.939</td><td>41.5</td></tr><tr><td>FEDAVG +RECONEVAL</td><td>.934</td><td>40.0</td></tr><tr><td>FEDRECON(OURS)</td><td>.907</td><td>43.3</td></tr></table>
|
| 145 |
+
|
| 146 |
+
Table 2: Stack Overflow next word prediction accuracy and communication per round, per client. FEDYOGI and OOV/FULL FINETUNING require communication of all model parameters, FEDRECON does not (see Figure 2). Results within $2 \%$ of best for each vocabulary size are in bold.
|
| 147 |
+
|
| 148 |
+
<table><tr><td>VOCAB. SIZE</td><td>1K</td><td>5K</td><td>10K</td><td>COMMUNICATION</td></tr><tr><td>FEDYOGI</td><td>24.3</td><td>26.3</td><td>26.7</td><td>2|+2lg|</td></tr><tr><td>FEDRECON (100V)</td><td>24.1</td><td>26.2</td><td>26.4</td><td>2|gl</td></tr><tr><td>FEDRECON (500 OOV)</td><td>29.6</td><td>28.1</td><td>27.7</td><td>21g</td></tr><tr><td>OOV FINETUNING (500 OOV)</td><td>30.0</td><td>28.1</td><td>27.9</td><td>2|+2lgl</td></tr><tr><td>FULL FINETUNING (500 OOV)</td><td>30.8</td><td>29.2</td><td>28.8</td><td>2||+2|gl</td></tr><tr><td>FEDRECON+FINETUNE (50O OOV)</td><td>30.7</td><td>28.9</td><td>28.6</td><td>2lgl</td></tr></table>
|
| 149 |
+
|
| 150 |
+
FEDYOGI result. To demonstrate that reconstruction can be used to reduce model size, we describe experiments with vocabulary sizes [1000, 5000, 10,000]. See Appendix C.2 for details on the dataset, model, and hyperparameter choices.
|
| 151 |
+
|
| 152 |
+
# 5.2 Results and Discussion
|
| 153 |
+
|
| 154 |
+
In Tables 1 and 2 we present results for matrix factorization and next word prediction for FEDRECON and baselines. We call out several key comparisons below; more results can be found in Appendix D.
|
| 155 |
+
|
| 156 |
+
For the MovieLens task FEDRECON is able to match the performance of CENTRALIZED $^ +$ STANDARD EVAL despite performing a more difficult task: as described in Section 5.1.1, FEDRECON is using RECONEVAL to evaluate on held-out users, reconstructing user embeddings for them and then evaluating. As is typical for server-trained matrix factorization models, CENTRALIZED $^ +$ STANDARD EVAL is only being evaluated on held-out ratings for seen users. Note that we would not be able to evaluate on unseen users since they do not have trained user embeddings (randomly initializing them produces garbage results). If we reconstruct user embeddings for unseen users and then evaluate as in CENTRALIZED $^ +$ RECONEVAL (we argue this is a fairer comparison with FEDRECON), we see that performance is significantly worse than FEDRECON and server-evaluation on seen users. One interesting finding was that the results of this seemed to vary widely across different users, with some users reconstructing embeddings no better than random initialization, while most others reconstructed better embeddings.3 We see a similar result with FEDAVG for the MovieLens task, where FEDAVG with standard evaluation on seen users4 performs a bit worse than CENTRALIZED $^ +$ STANDARD EVAL, and performance for RECONEVAL on unseen users is significantly worse than FEDRECON. This indicates that FEDRECON is doing a better job of training global parameters so they can reconstruct local parameters than other approaches, as motivated in Section 4.2. Moreover, FEDRECON is doing this despite not having direct access to the data or the user-specific parameters–enabling this approach in settings where centralized training or FEDAVG is impossible.
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 2: Accuracy as a function of total parameters communicated across all clients for FEDRECON and baselines for Stack Overflow next word prediction.
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 3: Accuracy compared to base FEDRECON when varying the number of reconstruction steps for local parameters (left plot) and client update steps for global parameters (right plot).
|
| 163 |
+
|
| 164 |
+
In the first section of the Stack Overflow results in Table 2, we compare FEDYOGI (an adaptive variant of FEDAVG introduced by Reddi et al. [48]) with FEDRECON, showing that enabling FEDRECON with 500 local OOV embeddings significantly boosts accuracy for every vocabulary size. Interestingly, we observe that accuracy actually improves for smaller vocabulary sizes for FEDRECON $( 5 0 0 \mathrm { O O V } )$ , whereas the reverse holds for FEDYOGI and FEDRECON (1 OOV). We posit that this is because decreasing the vocabulary size effectively increases the amount of "training data" available for the local part of the model, since OOV embeddings are only used (and trained) when tokens are out-ofvocabulary; this is useful only when the local part of the model has sufficient capacity via the number of OOV embeddings. This hypothesis is consistent with vocabulary coverage: a 10K vocabulary covers $8 6 . 9 \%$ of the tokens in the dataset, a 5K vocabulary covers $8 0 . 1 \%$ , and a 1K vocabulary covers $4 9 . 2 \%$ ; we see that difference in results for FEDRECON $( 5 0 0 \mathrm { O O V } )$ is greater between 1K and 5K than between 5K and 10K. We caution that reducing vocabulary size may be undesirable in some cases: reducing the size of the vocabulary also restricts the output tokens of the model.
|
| 165 |
+
|
| 166 |
+
Comparing with Finetuning: In Table 2 we compare FEDRECON with FINETUNING [52, 58] to study whether reconstruction can provide similar benefits as global personalization methods. In our implementation we train a fully global model using FEDYOGI, perform local gradient steps to finetune part of the model using the support set, and then evaluate on the query set (same sets as used for FEDRECON). For OOV FINETUNING, the OOV parameters only are finetuned using the support set (comparable to FEDRECON), and for FULL FINETUNING all parameters are finetuned. Comparing FEDRECON $( 5 0 0 \ \mathrm { O O V } )$ and OOV FINETUNING, we see that reconstructing local embeddings performs similarly to finetuning pre-trained OOV embeddings, despite FEDRECON not communicating the local parameters $l$ to the server. FULL FINETUNING from Table 2 achieves better accuracy since all parameters are finetuned. To compare this fairly with reconstruction, we perform FEDRECON $^ +$ FINETUNE, where the support set is used first to reconstruct local parameters and then to finetune global parameters before evaluation. We also see that we can get comparable results, indicating that reconstruction can enable personalization on (potentially privacy-sensitive) local parameters while reducing communication. See Figure 2 for a comparison of different approaches by the total number of parameters communicated–we see an advantage for FEDRECON, particularly for lower total communication.
|
| 167 |
+
|
| 168 |
+
Varying Reconstruction Steps: In Section 4.2 we described a connection between our framework and MAML [19], which has been a successful paradigm for fast adaptation to tasks with few steps. In Figure 3 we perform FEDRECON for varying numbers of reconstruction steps $k _ { r } \in [ 0 , 1 , 2 , 5 , 1 0 ]$ and plot the accuracy as a fraction of accuracy across tasks from Tables 1 and 2. We see that for zero reconstruction steps (an ablation skipping reconstruction), MovieLens accuracy is 0.0, as expected (all user embeddings are randomly initialized). Relative accuracy for Stack Overflow NWP settings remains above $90 \%$ , suggesting that for this task clients can still perform inference with a FEDRECON-trained model even without any data to reconstruct. Importantly, just one reconstruction step is required to recover the majority of remaining performance across both tasks, indicating that FEDRECON learns global parameters conducive to fast reconstruction.
|
| 169 |
+
|
| 170 |
+
Varying Client Update Steps: In Section 4.2 we showed that gradient-based FEDRECON, involving $k _ { r } \geq 1$ reconstruction steps and $k _ { u } = 1$ client update steps, is minimizing a first-order meta learning objective for training global parameters that yield good reconstructions. In Figure 3 we perform FEDRECON with $k _ { u } \in [ 1 , 2 , 5 , 1 0 ]$ and compute relative accuracy as a fraction of accuracy across tasks from Tables 1 and 2. For each experiment we run for a fixed number of rounds. We see that 1 step recovers almost all of the accuracy and adding more steps gradually increases accuracy further. Interestingly, we observe that for $k _ { u } = 1$ training proceeds significantly slower than for other values such that performance is still slightly increasing after the fixed number of rounds. This is analogous to the difference between FEDAVG and FEDSGD [44]. While FEDSGD is optimizing the original learning objective, FEDAVG often achieves similar performance in significantly fewer rounds by adding multiple gradient steps on aggregated parameters.
|
| 171 |
+
|
| 172 |
+
We present further baselines and ablations in Appendix D.
|
| 173 |
+
|
| 174 |
+
# 6 Open-Source Library
|
| 175 |
+
|
| 176 |
+
We are releasing a code framework for expressing and evaluating practical partially local federated models built on the popular TensorFlow Federated library [50]. The code is released under Apache License 2.0. In addition to allowing for easy reproduction of our experiments, the framework provides a flexible, well-documented interface for researchers and modelers to run simulations in this setting with models and tasks of their choice. Users can take any existing Keras model and plug it into this framework with just a few lines of code. We provide libraries for training and evaluation for MovieLens matrix factorization and Stack Overflow next word prediction, which can be easily extended for new tasks. We hope that the release of this framework spurs further research and lowers the barrier to more practical applications.
|
| 177 |
+
|
| 178 |
+
# 7 Deployment in a Mobile Keyboard Application
|
| 179 |
+
|
| 180 |
+
A key differentiator of our method is that it scales to practical training and inference in cross-device settings with large populations. To validate this, we deployed FEDRECON to a mobile keyboard application with hundreds of millions of federated learning clients. We used a system similar to Bonawitz et al. [7] to deploy FEDRECON for training. Note that the system does not support stateful clients given the issues with large-scale stateful training described in Section 4, so a stateless approach was necessary for deployment.
|
| 181 |
+
|
| 182 |
+
Users of the mobile keyboard application often use expressions (GIFs, stickers) to communicate with others in e.g., chat applications. Different users are highly heterogeneous in the style of expressions they use, which makes the problem a natural fit for collaborative filtering to predict new expressions a user might want to share. We trained matrix factorization models as described in Section 5.1.1, where the number of items ranged from hundreds to tens of thousands depending on the type of expression.
|
| 183 |
+
|
| 184 |
+
Training in production brought challenges due to data sparsity. Depending on the task, some clients had very few examples, if e.g., they didn’t commonly share stickers via the keyboard application. To ensure clients with just one example weren’t just adding noise to the training process by participating, we oversampled clients and filtered out the contributions of clients without at least some number of examples. We reused examples between the support and query sets as described in Appendix D to ensure all examples were used for both reconstruction and global updates.
|
| 185 |
+
|
| 186 |
+
Another practical challenge we faced was orthogonal to our method and commonly faced in realworld federated learning applications: heterogeneity in client resources and availability meant that some participating clients would drop out before sending updates to the server. We found that the simple strategy of oversampling clients and neglecting updates from dropped-out clients appeared to perform well, but we believe studying the fairness implications of this is a valuable area for future work.
|
| 187 |
+
|
| 188 |
+
After successful training, the resulting model was deployed for inference in predicting potential new expressions a user might share, which led to an increase of $2 9 . 3 \%$ in click-through-rate for expression recommendations. We hope that this successful deployment of FEDRECON demonstrates the practicality of our approach and leads the way for further real-world applications.
|
| 189 |
+
|
| 190 |
+
# 8 Conclusion
|
| 191 |
+
|
| 192 |
+
We introduced Federated Reconstruction, a model-agnostic framework for fast partially local federated learning suitable for training and inference at scale. We justified FEDRECON via a connection to meta learning and empirically validated the algorithm for collaborative filtering and next message prediction, showing that it can improve performance on unseen clients and enable fast personalization with less communication. We also released an open-source library for partially local federated learning and described a successful production deployment. Future work may explore the optimal balance of local and global parameters and the application of differential privacy to global parameters (see Appendix E).
|
| 193 |
+
|
| 194 |
+
# Acknowledgments and Disclosure of Funding
|
| 195 |
+
|
| 196 |
+
We thank Brendan McMahan, Lin Ning, Zachary Charles, Warren Morningstar, Daniel Ramage, Jakub Konecnˇ ý, Blaise Agüera y Arcas, and Jay Yagnik from Google Research for their helpful comments and discussions. We also thank Wei Li, Matt Newton, and Yang Lu for their collaboration towards deployment.
|
| 197 |
+
|
| 198 |
+
# References
|
| 199 |
+
|
| 200 |
+
[1] Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. 2016. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security. 308–318.
|
| 201 |
+
[2] Muhammad Ammad-Ud-Din, Elena Ivannikova, Suleiman A Khan, Were Oyomno, Qiang Fu, Kuan Eeik Tan, and Adrian Flanagan. 2019. Federated Collaborative Filtering for PrivacyPreserving Personalized Recommendation System. arXiv preprint arXiv:1901.09888 (2019).
|
| 202 |
+
[3] Apple. 2019. Designing for Privacy (video and slide deck). Apple WWDC, https: //developer.apple.com/videos/play/wwdc2019/708.
|
| 203 |
+
[4] Manoj Ghuhan Arivazhagan, Vinay Aggarwal, Aaditya Kumar Singh, and Sunav Choudhary. 2019. Federated learning with personalization layers. arXiv preprint arXiv:1912.00818 (2019).
|
| 204 |
+
[5] Raef Bassily, Vitaly Feldman, Kunal Talwar, and Abhradeep Thakurta. 2019. Private Stochastic Convex Optimization with Optimal Rates. CoRR abs/1908.09970 (2019). arXiv:1908.09970 http://arxiv.org/abs/1908.09970
|
| 205 |
+
[6] Raef Bassily, Adam D. Smith, and Abhradeep Thakurta. 2014. Private Empirical Risk Minimization, Revisited. CoRR abs/1405.7085 (2014). arXiv:1405.7085 http://arxiv.org/ abs/1405.7085
|
| 206 |
+
[7] Keith Bonawitz, Hubert Eichner, Wolfgang Grieskamp, Dzmitry Huba, Alex Ingerman, Vladimir Ivanov, Chloe Kiddon, Jakub Konecnˇ y, Stefano Mazzocchi, H Brendan McMahan, et al \` . 2019. Towards federated learning at scale: System design. arXiv preprint arXiv:1902.01046 (2019).
|
| 207 |
+
[8] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. 2017. Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security. 1175–1191.
|
| 208 |
+
[9] Di Chai, Leye Wang, Kai Chen, and Qiang Yang. 2020. Secure federated matrix factorization. IEEE Intelligent Systems (2020).
|
| 209 |
+
[10] Fei Chen, Mi Luo, Zhenhua Dong, Zhenguo Li, and Xiuqiang He. 2018. Federated metalearning with fast convergence and efficient communication. arXiv preprint arXiv:1802.07876 (2018).
|
| 210 |
+
[11] NVIDIA Clara. 2019. The Clara Training Framework Authors. https://developer. nvidia.com/clara
|
| 211 |
+
[12] Creative Commons. 2002. Attribution-ShareAlike 3.0 Unported. https:// creativecommons.org/licenses/by-sa/3.0/
|
| 212 |
+
[13] Walter de Brouwer. 2019. The Federated Future is ready for shipping. https://doc.ai/ blog/federated-future-ready-shipping/.
|
| 213 |
+
[14] Yuyang Deng, Mohammad Mahdi Kamani, and Mehrdad Mahdavi. 2020. Adaptive Personalized Federated Learning. arXiv preprint arXiv:2003.13461 (2020).
|
| 214 |
+
[15] Enmao Diao, Jie Ding, and Vahid Tarokh. 2020. HeteroFL: Computation and communication efficient federated learning for heterogeneous clients. arXiv preprint arXiv:2010.01264 (2020).
|
| 215 |
+
[16] Canh T Dinh, Nguyen H Tran, and Tuan Dung Nguyen. 2020. Personalized federated learning with Moreau envelopes. arXiv preprint arXiv:2006.08848 (2020).
|
| 216 |
+
[17] Cynthia Dwork, Aaron Roth, et al. 2014. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science 9, 3-4 (2014), 211–407.
|
| 217 |
+
[18] Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. 2020. Personalized federated learning: A meta-learning approach. arXiv preprint arXiv:2002.07948 (2020).
|
| 218 |
+
[19] Chelsea Finn, Pieter Abbeel, and Sergey Levine. 2017. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400 (2017).
|
| 219 |
+
[20] Adrian Flanagan, Were Oyomno, Alexander Grigorievskiy, Kuan Eeik Tan, Suleiman A Khan, and Muhammad Ammad-Ud-Din. 2020. Federated Multi-view Matrix Factorization for Personalized Recommendations. arXiv preprint arXiv:2004.04256 (2020).
|
| 220 |
+
[21] Dashan Gao, Ben Tan, Ce Ju, Vincent W Zheng, and Qiang Yang. 2020. Privacy Threats Against Federated Matrix Factorization. arXiv preprint arXiv:2007.01587 (2020).
|
| 221 |
+
[22] Suyu Ge, Fangzhao Wu, Chuhan Wu, Tao Qi, Yongfeng Huang, and Xing Xie. 2020. Fedner: Privacy-preserving medical named entity recognition with federated learning. arXiv preprint arXiv:2003.09288 (2020).
|
| 222 |
+
[23] Jonas Geiping, Hartmut Bauermeister, Hannah Dröge, and Michael Moeller. 2020. Inverting Gradients–How easy is it to break privacy in federated learning? arXiv preprint arXiv:2003.14053 (2020).
|
| 223 |
+
[24] Robin C Geyer, Tassilo Klein, and Moin Nabi. 2017. Differentially private federated learning: A client level perspective. arXiv preprint arXiv:1712.07557 (2017).
|
| 224 |
+
[25] GroupLens. 2015. MovieLens 1M License. https://files.grouplens.org/datasets/ movielens/ml-1m-README.txt
|
| 225 |
+
[26] Asela Gunawardana, William Byrne, and Michael I Jordan. 2005. Convergence Theorems for Generalized Alternating Minimization Procedures. Journal of machine learning research 6, 12 (2005).
|
| 226 |
+
[27] Filip Hanzely and Peter Richtárik. 2020. Federated learning of a mixture of global and local models. arXiv preprint arXiv:2002.05516 (2020).
|
| 227 |
+
[28] Andrew Hard, Kanishka Rao, Rajiv Mathews, Swaroop Ramaswamy, Françoise Beaufays, Sean Augenstein, Hubert Eichner, Chloé Kiddon, and Daniel Ramage. 2018. Federated learning for mobile keyboard prediction. arXiv preprint arXiv:1811.03604 (2018).
|
| 228 |
+
[29] F Maxwell Harper and Joseph A Konstan. 2015. The movielens datasets: History and context. Acm transactions on interactive intelligent systems (tiis) 5, 4 (2015), 1–19.
|
| 229 |
+
|
| 230 |
+
[30] Yifan Hu, Yehuda Koren, and Chris Volinsky. 2008. Collaborative filtering for implicit feedback datasets. In 2008 Eighth IEEE International Conference on Data Mining. Ieee, 263–272.
|
| 231 |
+
|
| 232 |
+
[31] Yutao Huang, Lingyang Chu, Zirui Zhou, Lanjun Wang, Jiangchuan Liu, Jian Pei, and Yong Zhang. 2021. Personalized cross-silo federated learning on non-iid data. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35. 7865–7873.
|
| 233 |
+
|
| 234 |
+
[32] Prateek Jain, Praneeth Netrapalli, and Sujay Sanghavi. 2013. Low-rank matrix completion using alternating minimization. In Proceedings of the forty-fifth annual ACM symposium on Theory of computing. 665–674.
|
| 235 |
+
|
| 236 |
+
[33] Yihan Jiang, Jakub Konecnˇ y, Keith Rush, and Sreeram Kannan. 2019. Improving federated \` learning personalization via model agnostic meta learning. arXiv preprint arXiv:1909.12488 (2019).
|
| 237 |
+
|
| 238 |
+
[34] Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. 2019. Advances and open problems in federated learning. arXiv preprint arXiv:1912.04977 (2019).
|
| 239 |
+
|
| 240 |
+
[35] Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. 2020. Scaffold: Stochastic controlled averaging for federated learning. In International Conference on Machine Learning. PMLR, 5132–5143.
|
| 241 |
+
|
| 242 |
+
[36] Mikhail Khodak, Maria-Florina F Balcan, and Ameet S Talwalkar. 2019. Adaptive gradientbased meta-learning methods. In Advances in Neural Information Processing Systems. 5917– 5928.
|
| 243 |
+
|
| 244 |
+
[37] Yehuda Koren, Robert Bell, and Chris Volinsky. 2009. Matrix factorization techniques for recommender systems. Computer 42, 8 (2009), 30–37.
|
| 245 |
+
|
| 246 |
+
[38] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. 2020. Federated learning: Challenges, methods, and future directions. IEEE Signal Processing Magazine 37, 3 (2020), 50–60.
|
| 247 |
+
|
| 248 |
+
[39] Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. 2018. Federated optimization in heterogeneous networks. arXiv preprint arXiv:1812.06127 (2018).
|
| 249 |
+
|
| 250 |
+
[40] Xiaoxiao Li, Meirui Jiang, Xiaofei Zhang, Michael Kamp, and Qi Dou. 2021. Fedbn: Federated learning on non-iid features via local batch normalization. arXiv preprint arXiv:2102.07623 (2021).
|
| 251 |
+
|
| 252 |
+
[41] Paul Pu Liang, Terrance Liu, Liu Ziyin, Ruslan Salakhutdinov, and Louis-Philippe Morency. 2020. Think locally, act globally: Federated learning with local and global representations. arXiv preprint arXiv:2001.01523 (2020).
|
| 253 |
+
|
| 254 |
+
[42] Yujie Lin, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Dongxiao Yu, Jun Ma, Maarten de Rijke, and Xiuzhen Cheng. 2020. Meta Matrix Factorization for Federated Rating Predictions. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval. 981–990.
|
| 255 |
+
|
| 256 |
+
[43] Yishay Mansour, Mehryar Mohri, Jae Ro, and Ananda Theertha Suresh. 2020. Three approaches for personalization with applications to federated learning. arXiv preprint arXiv:2002.10619 (2020).
|
| 257 |
+
|
| 258 |
+
[44] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. 2017. Communication-efficient learning of deep networks from decentralized data. In Artificial Intelligence and Statistics. PMLR, 1273–1282.
|
| 259 |
+
|
| 260 |
+
[45] H Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. 2017. Learning differentially private recurrent language models. arXiv preprint arXiv:1710.06963 (2017).
|
| 261 |
+
|
| 262 |
+
[46] Alex Nichol, Joshua Achiam, and John Schulman. 2018. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999 (2018).
|
| 263 |
+
[47] Valeria Nikolaenko, Stratis Ioannidis, Udi Weinsberg, Marc Joye, Nina Taft, and Dan Boneh. 2013. Privacy-preserving matrix factorization. In Proceedings of the 2013 ACM SIGSAC conference on Computer & communications security. 801–812.
|
| 264 |
+
[48] Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konecnˇ y,\` Sanjiv Kumar, and H Brendan McMahan. 2020. Adaptive Federated Optimization. arXiv preprint arXiv:2003.00295 (2020).
|
| 265 |
+
[49] Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. 2017. Federated multi-task learning. arXiv preprint arXiv:1705.10467 (2017).
|
| 266 |
+
[50] TensorFlow. 2019. TensorFlow Federated. https://www.tensorflow.org/federated
|
| 267 |
+
[51] TensorFlow. 2019. TensorFlow Federated Stack Overflow Dataset. https: //www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/ stackoverflow/load_data
|
| 268 |
+
[52] Kangkang Wang, Rajiv Mathews, Chloé Kiddon, Hubert Eichner, Françoise Beaufays, and Daniel Ramage. 2019. Federated evaluation of on-device personalization. arXiv preprint arXiv:1910.10252 (2019).
|
| 269 |
+
[53] Wenqi Wei, Ling Liu, Margaret Loper, Ka-Ho Chow, Mehmet Emre Gursoy, Stacey Truex, and Yanzhao Wu. 2020. A framework for evaluating gradient leakage attacks in federated learning. arXiv preprint arXiv:2004.10397 (2020).
|
| 270 |
+
[54] Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. 2009. Feature hashing for large scale multitask learning. In Proceedings of the 26th annual international conference on machine learning. 1113–1120.
|
| 271 |
+
[55] Xi Wu, Arun Kumar, Kamalika Chaudhuri, Somesh Jha, and Jeffrey F. Naughton. 2016. Differentially Private Stochastic Gradient Descent for in-RDBMS Analytics. CoRR abs/1606.04722 (2016). arXiv:1606.04722 http://arxiv.org/abs/1606.04722
|
| 272 |
+
[56] Timothy Yang, Galen Andrew, Hubert Eichner, Haicheng Sun, Wei Li, Nicholas Kong, Daniel Ramage, and Françoise Beaufays. 2018. Applied federated learning: Improving google keyboard query suggestions. arXiv preprint arXiv:1812.02903 (2018).
|
| 273 |
+
[57] Hongxu Yin, Arun Mallya, Arash Vahdat, Jose M Alvarez, Jan Kautz, and Pavlo Molchanov. 2021. See through Gradients: Image Batch Recovery via GradInversion. arXiv preprint arXiv:2104.07586 (2021).
|
| 274 |
+
[58] Tao Yu, Eugene Bagdasaryan, and Vitaly Shmatikov. 2020. Salvaging federated learning by local adaptation. arXiv preprint arXiv:2002.04758 (2020).
|
| 275 |
+
[59] Ligeng Zhu and Song Han. 2020. Deep leakage from gradients. In Federated Learning. Springer, 17–31.
|
parse/train/Hk0olMdZOIU/Hk0olMdZOIU_content_list.json
ADDED
|
@@ -0,0 +1,1305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Federated Reconstruction: Partially Local Federated Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
284,
|
| 8 |
+
122,
|
| 9 |
+
712,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Karan Singhal Google Research karansinghal@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
191,
|
| 19 |
+
226,
|
| 20 |
+
392,
|
| 21 |
+
268
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Hakim Sidahmed Google Research hsidahmed@google.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
415,
|
| 30 |
+
226,
|
| 31 |
+
589,
|
| 32 |
+
268
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Zachary Garrett Google Research zachgarrett@google.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
614,
|
| 41 |
+
226,
|
| 42 |
+
807,
|
| 43 |
+
268
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Shanshan Wu Google Research shanshanw@google.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
222,
|
| 52 |
+
290,
|
| 53 |
+
395,
|
| 54 |
+
332
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Keith Rush Google Research krush@google.com ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
450,
|
| 63 |
+
289,
|
| 64 |
+
591,
|
| 65 |
+
332
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Sushant Prakash Google Research sush@google.com ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
645,
|
| 74 |
+
290,
|
| 75 |
+
776,
|
| 76 |
+
332
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Abstract ",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
462,
|
| 86 |
+
367,
|
| 87 |
+
535,
|
| 88 |
+
382
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Personalization methods in federated learning aim to balance the benefits of federated and local training for data availability, communication cost, and robustness to client heterogeneity. Approaches that require clients to communicate all model parameters can be undesirable due to privacy and communication constraints. Other approaches require always-available or stateful clients, impractical in large-scale cross-device settings. We introduce Federated Reconstruction, the first modelagnostic framework for partially local federated learning suitable for training and inference at scale. We motivate the framework via a connection to model-agnostic meta learning, empirically demonstrate its performance over existing approaches for collaborative filtering and next word prediction, and release an open-source library for evaluating approaches in this setting. We also describe the successful deployment of this approach at scale for federated collaborative filtering in a mobile keyboard application. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
233,
|
| 97 |
+
398,
|
| 98 |
+
766,
|
| 99 |
+
579
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 Introduction ",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
604,
|
| 110 |
+
310,
|
| 111 |
+
622
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Federated learning is a machine learning setting in which distributed clients solve a learning objective on sensitive data via communication with a coordinating server [44]. Typically, clients collaborate to train a single global model under an objective that combines heterogeneous local client objectives. For example, clients may collaborate to train a next word prediction model for a mobile keyboard application without sharing sensitive typing data with other clients or a centralized server [28]. This paradigm has been scaled to production and deployed in cross-device settings [3, 28, 56] and cross-silo settings [11, 13]. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
637,
|
| 121 |
+
825,
|
| 122 |
+
734
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "However, training a fully global federated model may not always be ideal due to heterogeneity in clients’ data distributions. Yu et al. [58] show that global models can perform worse than purely local (non-federated) models for many clients (e.g., those with many training examples). Moreover, in some settings privacy constraints completely prohibit fully global federated training. For instance, for models with user-specific embeddings, such as matrix factorization models for collaborative filtering [37], naively training a global federated model involves sending updates to user embeddings on the server, directly revealing potentially sensitive individual preferences [21, 47]. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
741,
|
| 132 |
+
825,
|
| 133 |
+
838
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "To address this, we explore partially local federated learning. In this setting, models are partitioned into global $g$ and local parameters $l$ such that local parameters never leave client devices. This enables training on sensitive user-specific parameters as in the collaborative filtering setting, and we show it can also improve robustness to client data heterogeneity and communication cost for other settings, since we are effectively interpolating between local and federated training. Previous works have looked at similar settings [4, 41]. Importantly, these approaches cannot realistically be applied at scale in cross-device settings because they assume clients are stateful or always-available: in practice, clients are sampled from an enormous population with unreliable availability, so approaches that rely on repeated sampling of the same stateful clients are impractical (Kairouz et al. [34] [Table 1]). Other work has demonstrated that stateful federated algorithms in partial participation regimes can perform worse than stateless algorithms due to the state becoming \"stale\" [48]. Previous methods also do not enable inference on new clients unseen during training, preventing real-world deployment. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
844,
|
| 143 |
+
825,
|
| 144 |
+
900
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "image",
|
| 150 |
+
"img_path": "images/198f287e0066fe3a366e49d5054ddefa5e7b6055fb3e871faa1242b2d6d6a1c0.jpg",
|
| 151 |
+
"image_caption": [
|
| 152 |
+
"Figure 1: Schematic of Federated Reconstruction. Model variables are partitioned into global and local variables. For every round $t$ , each participating client $i$ is sent the current global variables, uses them to reconstruct its own local variables, and then updates its copy of the global variables. The server aggregates updates to only the global variables across clients. "
|
| 153 |
+
],
|
| 154 |
+
"image_footnote": [],
|
| 155 |
+
"bbox": [
|
| 156 |
+
334,
|
| 157 |
+
87,
|
| 158 |
+
660,
|
| 159 |
+
227
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
301,
|
| 169 |
+
825,
|
| 170 |
+
414
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "These limitations motivate a new method for partially local federated learning, balancing the benefits of federated aggregation and local training. This approach should be: ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
173,
|
| 179 |
+
420,
|
| 180 |
+
823,
|
| 181 |
+
448
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "1. Model-agnostic: works with any model. \n2. Scalable: compatible with large-scale cross-device training with partial participation. \n3. Practical for inference: new clients can perform inference. \n4. Fast: clients can quickly adapt local parameters to their personal data. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
210,
|
| 190 |
+
454,
|
| 191 |
+
789,
|
| 192 |
+
511
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "In this work, we propose combining federated training of global parameters with reconstruction of local parameters (see Figure 1). We show that our method relaxes the statefulness requirement of previous work and enables fast personalization for unseen clients without additional communication, even for models without user-specific embeddings. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
176,
|
| 201 |
+
516,
|
| 202 |
+
826,
|
| 203 |
+
571
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "Our contributions: We make the following key contributions: ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
176,
|
| 212 |
+
578,
|
| 213 |
+
584,
|
| 214 |
+
593
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "• Introduce a model-agnostic framework for training partially local and partially global models, satisfying the above criteria. We propose a practical algorithm instantiating this framework (FEDRECON). \nJustify the algorithm via a connection to model-agnostic meta learning (see Section 4.2), showing that FEDRECON naturally leads to fast reconstruction at test time (see Table 1). \nDemonstrate FEDRECON’s empirical performance over existing approaches for applications in collaborative filtering and next word prediction, showing that our method outperforms standard centralized and federated training in performance on unseen clients (see Table 1), enables fast adaptation to clients’ personal data (see Figure 3), and matches the performance of other federated personalization techniques with less communication (see Figure 2). \n• Release an open-source library for evaluating algorithms across tasks in this setting. \n• Describe the successful deployment of this approach at scale for collaborative filtering in a real-world mobile keyboard application (see Section 7). ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
194,
|
| 223 |
+
598,
|
| 224 |
+
826,
|
| 225 |
+
790
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "2 Related Work ",
|
| 232 |
+
"text_level": 1,
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
810,
|
| 236 |
+
321,
|
| 237 |
+
828
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 1
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "Previous works have explored personalization of federated models via finetuning [52, 58], meta learning / bi-level optimization [10, 16, 18, 33], and model interpolation [14, 27, 43]. Some works aim to improve training convergence with heterogeneous client gradient updates [35, 39], while others address client resource heterogeneity [15, 49]. All of these approaches require communicating all client parameters during training, which can be unreasonable due to privacy and communication constraints for some models (discussed further in Section 3), which motivates methods that aggregate only part of a model as in our work. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
176,
|
| 246 |
+
843,
|
| 247 |
+
825,
|
| 248 |
+
886
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 1
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
90,
|
| 258 |
+
825,
|
| 259 |
+
147
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "Arivazhagan et al. [4] and Liang et al. [41] aggregate part of a model, but these approaches do not meet the criteria from Section 1. Similar to other works proposing local parameters [22, 31, 40], both approaches require clients to maintain local models across rounds, which is problematic when sampling clients from large populations (criterion 2). Arivazhagan et al. [4] assumes that all clients are available for training at all times and do not propose a method for performing inference on new clients (criterion 3). Liang et al. [41] requires new inference clients to be able to ensemble the outputs of all other clients’ local models to evaluate on new data, which is unrealistic in practice due to communication and privacy constraints (criterion 3). These constraints are crucial: with previous methods most clients do not have a practical way to perform inference. Previous methods were also proposed for specific model types (criterion 1): Arivazhagan et al. [4] explores personalization layers after shared base layers and Liang et al. [41] learns personal representations of local data. Finally, as we discuss in Section 4.2, our method optimizes a meta learning objective for training global parameters that lead to fast reconstruction (criterion 4). ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
154,
|
| 269 |
+
825,
|
| 270 |
+
333
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "Federated Collaborative Filtering: We evaluate our approach on collaborative filtering [37] in Section 5.1.1. Prior work has explored federated matrix factorization: Ammad-Ud-Din et al. [2] avoids sending the user matrix to the server by storing it locally, aggregating only the item matrix globally. Chai et al. [9] applies homomorphic encryption to aggregation of the item matrix. Flanagan et al. [20] studies federated collaborative filtering as a multi-view learning problem. Each approach requires clients to maintain state, unlike our method. Ammad-Ud-Din et al. [2] and Chai et al. [9] also do not address the problem of inference on unseen users. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
339,
|
| 280 |
+
825,
|
| 281 |
+
436
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "Federated Meta Learning: Our approach is motivated by a connection to meta learning, described in Section 4.2. Other federated learning works have also established connections to meta learning: Jiang et al. [33] observed that training a global federated model that can be easily personalized via finetuning can be studied in the model-agnostic meta learning (MAML) framework [19], and FEDAVG is performing the distributed version of the REPTILE meta learning algorithm presented by Nichol et al. [46]. Chen et al. [10], Fallah et al. [18], and Lin et al. [42] apply the MAML algorithm and variants in federated settings. Khodak et al. [36] aims to improve upon these methods by learning client similarities adaptively. These methods do not address the partially local federated learning setting, where some parameters are not aggregated globally. ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
173,
|
| 290 |
+
443,
|
| 291 |
+
825,
|
| 292 |
+
568
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "3 Partially Local Federated Learning ",
|
| 299 |
+
"text_level": 1,
|
| 300 |
+
"bbox": [
|
| 301 |
+
173,
|
| 302 |
+
585,
|
| 303 |
+
501,
|
| 304 |
+
603
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "Typically, federated learning of a global model optimizes: ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
174,
|
| 313 |
+
616,
|
| 314 |
+
550,
|
| 315 |
+
631
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "equation",
|
| 321 |
+
"img_path": "images/f974ff47f323a90edf73204c12f174a6320232c203ee7bf5f2fb608d4428b062.jpg",
|
| 322 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\mathbf { x } \\in \\mathbb { R } ^ { d } } F ( \\mathbf { x } ) = \\mathbb { E } _ { i \\sim \\mathcal { P } } [ f _ { i } ( \\mathbf { x } ) ]\n$$",
|
| 323 |
+
"text_format": "latex",
|
| 324 |
+
"bbox": [
|
| 325 |
+
408,
|
| 326 |
+
633,
|
| 327 |
+
588,
|
| 328 |
+
659
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "where $f _ { i } ( \\mathbf { x } ) = \\mathbb { E } _ { \\xi \\in \\mathcal { D } _ { i } } [ f _ { i } ( \\mathbf { x } , \\boldsymbol { \\xi } ) ]$ is the local objective for client $i , \\textbf { x }$ is the $d$ -dimensional model parameter vector, $\\mathcal { P }$ is the distribution of clients, and $\\xi$ is a data sample drawn from client $i$ ’s data $\\mathcal { D } _ { i }$ . In practical cross-device settings, $f _ { i } ( \\mathbf { x } )$ may be highly heterogeneous for different $i$ , and the number of available clients may be large and constantly changing due to partial availability. Only a relatively small fraction of clients may be sampled for training. ",
|
| 335 |
+
"bbox": [
|
| 336 |
+
174,
|
| 337 |
+
662,
|
| 338 |
+
825,
|
| 339 |
+
733
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 2
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "To motivate partially local federated learning, we begin by considering models that can be partitioned into user-specific parameters and non-user-specific parameters. An example is matrix factorization in the collaborative filtering setting [30, 37]: in this scenario, a ratings matrix $R \\in \\mathbb { R } ^ { U \\times I }$ representing user preferences is factorized into a user matrix $P \\in \\mathbb { R } ^ { U \\times K }$ and an items matrix $Q \\in \\bar { \\mathbb { R } ^ { I \\times K } }$ such that $\\dot { \\boldsymbol { R } } \\approx \\boldsymbol { P } \\boldsymbol { Q } ^ { \\top }$ , where $U$ is the number of users and $I$ is the number of items. For each user $u$ , this approach yields a $K$ -dimensional user-specific embedding $P _ { u }$ . ",
|
| 346 |
+
"bbox": [
|
| 347 |
+
173,
|
| 348 |
+
738,
|
| 349 |
+
825,
|
| 350 |
+
821
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 2
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "To train this type of model in the federated setting, we cannot naively use the popular FEDAVG algorithm [44] or other (personalized) algorithms that involving aggregation of all model parameters. A simple application of global learning algorithms might require every client to be sent every other client’s personal parameters, which is clearly unreasonable for both privacy and communication. A more sophisticated approach might be to have each client communicate only their own personal parameters with the server. In this case, the server still has access to individual user parameters, which in this setting can be trivially used to recover sensitive user-item affinities, negating the privacy benefit of not centralizing the data (again unreasonable). ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
174,
|
| 359 |
+
828,
|
| 360 |
+
825,
|
| 361 |
+
911
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "table",
|
| 367 |
+
"img_path": "images/1c18a15b847b494664f7f156b38689ec66a47806db8fc853bd1122d4e3766984.jpg",
|
| 368 |
+
"table_caption": [
|
| 369 |
+
"Algorithm 1 Federated Reconstruction Training "
|
| 370 |
+
],
|
| 371 |
+
"table_footnote": [],
|
| 372 |
+
"table_body": "<table><tr><td colspan=\"2\">Input: set of global parameters G,set of local parameters L,dataset split function S,reconstruction algorithm R, client update algorithm U</td></tr><tr><td>Server executes:</td><td></td></tr><tr><td>g(0)← (initialize G) for each round t do</td><td>ClientUpdate:</td></tr><tr><td>S(t) ← (randomly sample m clients)</td><td>(Di,s,Di,q) ← S(Di)</td></tr><tr><td>for each client i ∈ S(t) in parallel do</td><td>(t) ←R(Di,s,L,g(t))</td></tr><tr><td>(△,ni)←ClientUpdate(i,g(t)</td><td>(t) ←U(Di,q,l gi</td></tr><tr><td>end for</td><td>△(t) ↑gi (t) g(t)</td></tr><tr><td>n = ∑ies(t) ni</td><td>ni←|Di,ql</td></tr><tr><td>g(t+1) ←g(t)+ns∑i∈s(t) n end for</td><td>return △(t, n to the server</td></tr></table>",
|
| 373 |
+
"bbox": [
|
| 374 |
+
184,
|
| 375 |
+
107,
|
| 376 |
+
826,
|
| 377 |
+
284
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "",
|
| 384 |
+
"bbox": [
|
| 385 |
+
174,
|
| 386 |
+
313,
|
| 387 |
+
821,
|
| 388 |
+
340
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Thus a practical federated learning algorithm for this setting should be partially local: it should enable clients to train a subset of parameters entirely on-device. However, approaches that involve stateful clients storing their local parameters across rounds are undesirable in large-scale cross-device settings since clients are unlikely to be sampled repeatedly, causing state to be infrequently available and become stale, degrading performance (Reddi et al. [48] [Sec. 5.1]). Additionally, since only a fraction of clients participate in training, all other clients will be left without trained local parameters, preventing them from performing inference using the model. In a large population setting with hundreds of millions of clients as described in Section 7, this can mean $9 9 \\% +$ of clients do not have a complete model, preventing practical deployment. Thus an algorithm for this setting ideally should not depend on stateful clients and should provide a way to perform inference on unseen clients. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
347,
|
| 398 |
+
825,
|
| 399 |
+
486
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "Though we have motivated partially local federated learning via a setting that contains privacysensitive user-specific parameters, we will later show that this paradigm can also improve robustness to heterogeneity in $f _ { i } ( \\mathbf { x } )$ and reduce communication cost, even for models without user-specific parameters. In this case, the partition between local and global parameters is determined by the use-case and communication limitations. As an example, in Section 5.1.2 we motivate a next word prediction use-case, where having a partially local model can be useful for handling diverse client inputs while reducing communication. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
492,
|
| 409 |
+
825,
|
| 410 |
+
589
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "Achieving partially local federated learning in a practical cross-device setting with large, changing client distribution $\\mathcal { P }$ and stateless clients is one of the key contributions of our work. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
176,
|
| 419 |
+
594,
|
| 420 |
+
821,
|
| 421 |
+
623
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "4 Federated Reconstruction ",
|
| 428 |
+
"text_level": 1,
|
| 429 |
+
"bbox": [
|
| 430 |
+
176,
|
| 431 |
+
643,
|
| 432 |
+
421,
|
| 433 |
+
661
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "We now introduce the Federated Reconstruction framework. One of the key insights of our approach is that we can relax the requirement for clients to maintain local parameters across rounds by reconstructing local parameters whenever needed, running a reconstruction algorithm $R$ to recover them. Once a client is finished participating in a round, it can discard its reconstructed local parameters. An overview is presented in Figure 1. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
675,
|
| 443 |
+
825,
|
| 444 |
+
746
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "Federated Reconstruction training is presented in Algorithm 1. Training proceeds as follows: for each round $t$ , the server sends the current global parameters $g ^ { ( t ) }$ to each selected client. Selected clients split their local data $\\mathcal { D } _ { i }$ into a support set $\\mathcal { D } _ { i , s }$ and a query set $\\mathcal { D } _ { i , q }$ . Each client uses its support set $\\mathcal { D } _ { i , s }$ and $g ^ { ( t ) }$ as inputs to reconstruction algorithm $R$ to produce its local parameters $l _ { i } ^ { ( t ) }$ . Then each client then uses its query set $\\mathcal { D } _ { i , q }$ , its local parameters $l _ { i } ^ { ( t ) }$ , and the global parameters $g ^ { ( t ) }$ as inputs to update algorithm $U$ to produce updated global parameters $g _ { i } ^ { ( t ) }$ . Finally, the server aggregates updates to global parameters across clients. We describe key steps in further detail below. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
751,
|
| 454 |
+
825,
|
| 455 |
+
863
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Dataset Split Step: Clients apply a dataset split function $S$ to their datasets $\\mathcal { D } _ { i }$ to produce a support set $\\mathcal { D } _ { i , s }$ used for reconstruction and a query set $\\mathcal { D } _ { i , q }$ used for updating global parameters. Typically these sets are disjoint to maximize the meta-generalization ability of the model (see Section 4.2), but in Appendix D we show that this assumption may be relaxed if clients don’t have sufficient data to partition. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
869,
|
| 465 |
+
825,
|
| 466 |
+
911
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "",
|
| 473 |
+
"bbox": [
|
| 474 |
+
173,
|
| 475 |
+
90,
|
| 476 |
+
823,
|
| 477 |
+
119
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "Client Reconstruction Step: Reconstruction of local parameters is performed by algorithm $R$ . Though this algorithm can take other forms, in this work we instantiate $R$ as performing $k _ { r }$ local gradient descent steps on initialized local parameters with the global parameters frozen, using the support set $\\mathcal { D } _ { i , s }$ . We show in Section 4.2 this naturally optimizes a well-motivated meta learning objective. Interestingly, this approach is related to gradient-based alternating minimization, a historically successful method for training factored models [26, 32]. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
173,
|
| 486 |
+
126,
|
| 487 |
+
825,
|
| 488 |
+
209
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "A potential concern with reconstruction is that this may lead to additional client computation cost compared to storing local parameters on clients. However, since clients are unlikely to be reached repeatedly by large-scale cross-device training, in practice this cost is similar to the cost of initializing these local parameters and training them with stateful clients. Additionally, reconstruction provides a natural way for new clients unseen during training to produce their own partially local models offline (see Section 4.1)–without this step, the vast majority of clients would not be able to use the model. Finally, in Section 4.2 we argue and in Section 5.2 we empirically demonstrate that with our approach just one local gradient descent step can yield successful reconstruction because global parameters are being trained for fast reconstruction of local parameters. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
173,
|
| 497 |
+
215,
|
| 498 |
+
825,
|
| 499 |
+
340
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "Client Update Step: Client updates of global parameters are performed by update algorithm $U$ . In this work we instantiate $U$ as performing $k _ { u }$ local gradient descent steps on the global parameters, using the query set $\\mathcal { D } _ { i , q }$ . ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
174,
|
| 508 |
+
345,
|
| 509 |
+
825,
|
| 510 |
+
388
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "Server Update Step: We build on the generalized FEDAVG formulation proposed by Reddi et al. [48], treating aggregated global parameter updates as an \"antigradient\" that can be input into different server optimizers (SGD is shown in Algorithm 1). Note that the server update operates on a weighted average of client updates as in McMahan et al. [44], weighted by $n _ { i } = | \\mathcal { D } _ { i , q } |$ . ",
|
| 517 |
+
"bbox": [
|
| 518 |
+
174,
|
| 519 |
+
395,
|
| 520 |
+
825,
|
| 521 |
+
450
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 4
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "We refer to the instantiation of this framework outlined here as FEDRECON below. We address frequently asked questions about FEDRECON and partially local federated learning in Appendix A. ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
171,
|
| 530 |
+
457,
|
| 531 |
+
823,
|
| 532 |
+
484
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "4.1 Evaluation and Inference ",
|
| 539 |
+
"text_level": 1,
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
502,
|
| 543 |
+
388,
|
| 544 |
+
517
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "To make predictions with global variables $g$ learned using Algorithm 1, clients can naturally reconstruct their local models just as they do during training, by using $R , g$ , and $\\mathcal { D } _ { i , s }$ to produce local parameters $l$ . Then $g$ and $l$ combined make up a fully trained partially local model, which can be evaluated on $\\mathcal { D } _ { i , q }$ . We refer to this evaluation approach as RECONEVAL below. Note that this can be applied to clients unseen during training (most clients in large-scale settings), enabling inference for these clients.2 ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
527,
|
| 554 |
+
825,
|
| 555 |
+
611
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Reconstruction for inference is performed offline, independently of any federated process, so clients can perform reconstruction once and store local parameters for repeated use, optionally refreshing them periodically if they have new local data. ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
176,
|
| 564 |
+
617,
|
| 565 |
+
823,
|
| 566 |
+
660
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "4.2 Connection to Meta Learning ",
|
| 573 |
+
"text_level": 1,
|
| 574 |
+
"bbox": [
|
| 575 |
+
176,
|
| 576 |
+
676,
|
| 577 |
+
419,
|
| 578 |
+
693
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 4
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "Our framework is naturally motivated via meta learning. Given that RECONEVAL involves clients doing (gradient-based) reconstruction using global parameters, we ask: Can we train global parameters conducive to fast reconstruction of local parameters? ",
|
| 585 |
+
"bbox": [
|
| 586 |
+
176,
|
| 587 |
+
703,
|
| 588 |
+
823,
|
| 589 |
+
744
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 4
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "We can easily formulate this question in the language of model-agnostic meta learning [19]. The heterogeneous client distribution $\\mathcal { P }$ corresponds to the heterogeneous distribution of tasks; each round (episode) we sample a batch of clients in the hope of meta-generalizing to unseen clients. Each client has a support dataset for reconstruction and a query dataset for global parameter updates. Our meta-parameters are $g$ and our task-specific parameters are $l _ { i }$ for client $i$ . We want to find $g$ minimizing the objective: ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
751,
|
| 599 |
+
825,
|
| 600 |
+
835
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "equation",
|
| 606 |
+
"img_path": "images/1728eb230a7817ce5c483a898860eb7b942df8c108fa96db4119dd0305c6c002.jpg",
|
| 607 |
+
"text": "$$\n\\operatorname { \\mathbb { E } } _ { i \\sim \\mathcal { P } } f _ { i } ( g \\parallel l _ { i } ) = \\operatorname { \\mathbb { E } } _ { i \\sim \\mathcal { P } } f _ { i } ( g \\parallel R ( \\mathcal { D } _ { i , s } , \\mathcal { L } , g ) ]\n$$",
|
| 608 |
+
"text_format": "latex",
|
| 609 |
+
"bbox": [
|
| 610 |
+
348,
|
| 611 |
+
843,
|
| 612 |
+
648,
|
| 613 |
+
861
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "where ${ \\boldsymbol { g } } \\parallel l _ { i }$ denotes the concatenation of $g$ and $l _ { i }$ and $f _ { i } ( g \\parallel l _ { i } ) = \\mathbb { E } _ { \\xi \\in \\mathcal { D } _ { i , q } } [ f _ { i } ( g \\parallel l _ { i } , \\xi ) ] ,$ . ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
171,
|
| 622 |
+
90,
|
| 623 |
+
751,
|
| 624 |
+
107
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "In Appendix B we show that the instantiation of our framework where $R$ performs $k _ { r } \\geq 1$ steps of gradient descent on initialized local parameters using $\\mathcal { D } _ { i , s }$ and $U$ performs $k _ { u } = 1$ step of gradient descent using $\\mathcal { D } _ { i , q }$ is already minimizing the first-order terms in this objective (i.e., this version of FEDRECON is performing first-order meta learning). Intuitively, reconstruction corresponds to the MAML “inner loop” and the global parameter update corresponds to the “outer loop”; we test the same way we train (via reconstruction), a common pattern in meta learning. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
112,
|
| 634 |
+
825,
|
| 635 |
+
195
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "Thus FEDRECON trains global parameters $g$ for fast reconstruction of local parameters $l$ , enabling partially local federated learning without requiring clients to maintain state. In Section 5.2 we observe that our method empirically produces $g$ more conducive to fast, performant reconstruction on unseen clients than standard centralized or federated training (e.g., see SERVER $^ +$ RECONEVAL vs. FEDRECON in Table 1). We see in Figure 3 that just one reconstruction step is sufficient to recover the majority of performance. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
174,
|
| 644 |
+
202,
|
| 645 |
+
825,
|
| 646 |
+
285
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 5
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "5 Experimental Evaluation ",
|
| 653 |
+
"text_level": 1,
|
| 654 |
+
"bbox": [
|
| 655 |
+
176,
|
| 656 |
+
303,
|
| 657 |
+
415,
|
| 658 |
+
320
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "5.1 Tasks and Methods ",
|
| 665 |
+
"text_level": 1,
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
333,
|
| 669 |
+
348,
|
| 670 |
+
348
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "We next describe experiments validating FEDRECON on matrix factorization and next word prediction. We aim to determine whether reconstruction can enable practical partially local federated learning with fast personalization for new clients, including in settings without user-specific embeddings. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
359,
|
| 680 |
+
825,
|
| 681 |
+
401
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "5.1.1 Matrix Factorization ",
|
| 688 |
+
"text_level": 1,
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
415,
|
| 692 |
+
370,
|
| 693 |
+
430
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "We evaluate on federated matrix factorization using the popular MovieLens 1M collaborative filtering dataset [29]. We perform two kinds of evaluation: ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
176,
|
| 702 |
+
439,
|
| 703 |
+
825,
|
| 704 |
+
467
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "1. STANDARDEVAL on seen users, those users who participated in at least one round of federated training. We split each user’s ratings into $80 \\%$ train, $10 \\%$ validation, and $10 \\%$ test by timestamp. We train on all users’ train ratings, and report results on users test ratings. \n2. RECONEVAL on unseen users, those users who did not participate at all during federated training. We split the users randomly into $80 \\%$ train, $10 \\%$ validation, and $10 \\%$ test; we train with the train users and report results on test users. ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
210,
|
| 713 |
+
478,
|
| 714 |
+
825,
|
| 715 |
+
565
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 5
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "The model learns $P$ and $Q$ such that $R \\approx P Q ^ { \\top }$ as discussed in Section 3, with embedding dimensionality $K = 5 0$ . We apply FEDRECON with local user embeddings $P _ { u }$ and global item matrix $Q$ . We report root-mean-square-error (RMSE) and rating prediction accuracy. We compare centralized training, FEDAVG, and FEDRECON in Table 1. See also Appendix C.1 for more details on the dataset, model, and hyperparameter choices. ",
|
| 722 |
+
"bbox": [
|
| 723 |
+
174,
|
| 724 |
+
575,
|
| 725 |
+
825,
|
| 726 |
+
646
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 5
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "5.1.2 Next Word Prediction ",
|
| 733 |
+
"text_level": 1,
|
| 734 |
+
"bbox": [
|
| 735 |
+
174,
|
| 736 |
+
659,
|
| 737 |
+
379,
|
| 738 |
+
674
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 5
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "We also aim to determine whether Federated Reconstruction can be successfully applied in settings without user-specific embeddings to improve robustness to client heterogeneity and communication cost, since our approach is agnostic to which parameters are chosen as local/global. We apply FEDRECON to next word prediction because the task provides a natural motivation for personalization: different clients often have highly heterogeneous data, e.g., if they use different slang, but language models typically have a fixed vocabulary. We propose improving the ability of a language model to capture diverse inputs using local out-of-vocabulary (OOV) embeddings. OOV embeddings are a common application of the hashing trick [54] in deep learning; combining them with FEDRECON enables language models to effectively allow for personal input vocabularies for different clients. For example, if client $i$ frequently uses OOV token $t _ { i }$ and client $j$ uses OOV token $t _ { j }$ , each client’s corresponding local OOV embedding can learn to reflect this (even if the OOV embeddings collide). So adding local OOV embeddings with the core global vocabulary fixed can lead to improved personalization without more communication per round; we will also show that we can reduce the size of the core model (reducing communication) and get further benefits. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
683,
|
| 748 |
+
825,
|
| 749 |
+
876
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 5
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "We perform next word prediction with the federated Stack Overflow dataset introduced in TensorFlow [51]. We use an LSTM model and process data similarly to Reddi et al. [48], comparing to their best ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
882,
|
| 759 |
+
821,
|
| 760 |
+
911
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 5
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "table",
|
| 766 |
+
"img_path": "images/814b021dbc1023bf937858a6a1dbc1e301a44a043a292d6f0862c6d8e776bf81.jpg",
|
| 767 |
+
"table_caption": [
|
| 768 |
+
"Table 1: Movielens matrix factorization root-mean-square-error (lower is better) and rating prediction accuracy (higher is better). STANDARDEVAL is on seen users, RECONEVAL is on held-out users. Results within $2 \\%$ of best for each metric are in bold. "
|
| 769 |
+
],
|
| 770 |
+
"table_footnote": [],
|
| 771 |
+
"table_body": "<table><tr><td></td><td>RMSE↓</td><td>ACCURACY↑</td></tr><tr><td>CENTRALIZED+STANDARDEVAL</td><td>.923</td><td>43.2</td></tr><tr><td>CENTRALIZED+RECONEVAL</td><td>1.36</td><td>40.8</td></tr><tr><td>FEDAVG + STANDARD EVAL</td><td>.939</td><td>41.5</td></tr><tr><td>FEDAVG +RECONEVAL</td><td>.934</td><td>40.0</td></tr><tr><td>FEDRECON(OURS)</td><td>.907</td><td>43.3</td></tr></table>",
|
| 772 |
+
"bbox": [
|
| 773 |
+
289,
|
| 774 |
+
147,
|
| 775 |
+
705,
|
| 776 |
+
241
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 6
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "table",
|
| 782 |
+
"img_path": "images/5bdfa76120d8de367a39a786febb1e934399fbeb230f2f36f45d7f71e2df6d4d.jpg",
|
| 783 |
+
"table_caption": [
|
| 784 |
+
"Table 2: Stack Overflow next word prediction accuracy and communication per round, per client. FEDYOGI and OOV/FULL FINETUNING require communication of all model parameters, FEDRECON does not (see Figure 2). Results within $2 \\%$ of best for each vocabulary size are in bold. "
|
| 785 |
+
],
|
| 786 |
+
"table_footnote": [],
|
| 787 |
+
"table_body": "<table><tr><td>VOCAB. SIZE</td><td>1K</td><td>5K</td><td>10K</td><td>COMMUNICATION</td></tr><tr><td>FEDYOGI</td><td>24.3</td><td>26.3</td><td>26.7</td><td>2|+2lg|</td></tr><tr><td>FEDRECON (100V)</td><td>24.1</td><td>26.2</td><td>26.4</td><td>2|gl</td></tr><tr><td>FEDRECON (500 OOV)</td><td>29.6</td><td>28.1</td><td>27.7</td><td>21g</td></tr><tr><td>OOV FINETUNING (500 OOV)</td><td>30.0</td><td>28.1</td><td>27.9</td><td>2|+2lgl</td></tr><tr><td>FULL FINETUNING (500 OOV)</td><td>30.8</td><td>29.2</td><td>28.8</td><td>2||+2|gl</td></tr><tr><td>FEDRECON+FINETUNE (50O OOV)</td><td>30.7</td><td>28.9</td><td>28.6</td><td>2lgl</td></tr></table>",
|
| 788 |
+
"bbox": [
|
| 789 |
+
235,
|
| 790 |
+
310,
|
| 791 |
+
758,
|
| 792 |
+
421
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "FEDYOGI result. To demonstrate that reconstruction can be used to reduce model size, we describe experiments with vocabulary sizes [1000, 5000, 10,000]. See Appendix C.2 for details on the dataset, model, and hyperparameter choices. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
176,
|
| 801 |
+
440,
|
| 802 |
+
825,
|
| 803 |
+
481
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "5.2 Results and Discussion ",
|
| 810 |
+
"text_level": 1,
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
502,
|
| 814 |
+
370,
|
| 815 |
+
517
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "In Tables 1 and 2 we present results for matrix factorization and next word prediction for FEDRECON and baselines. We call out several key comparisons below; more results can be found in Appendix D. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
171,
|
| 824 |
+
530,
|
| 825 |
+
823,
|
| 826 |
+
559
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "For the MovieLens task FEDRECON is able to match the performance of CENTRALIZED $^ +$ STANDARD EVAL despite performing a more difficult task: as described in Section 5.1.1, FEDRECON is using RECONEVAL to evaluate on held-out users, reconstructing user embeddings for them and then evaluating. As is typical for server-trained matrix factorization models, CENTRALIZED $^ +$ STANDARD EVAL is only being evaluated on held-out ratings for seen users. Note that we would not be able to evaluate on unseen users since they do not have trained user embeddings (randomly initializing them produces garbage results). If we reconstruct user embeddings for unseen users and then evaluate as in CENTRALIZED $^ +$ RECONEVAL (we argue this is a fairer comparison with FEDRECON), we see that performance is significantly worse than FEDRECON and server-evaluation on seen users. One interesting finding was that the results of this seemed to vary widely across different users, with some users reconstructing embeddings no better than random initialization, while most others reconstructed better embeddings.3 We see a similar result with FEDAVG for the MovieLens task, where FEDAVG with standard evaluation on seen users4 performs a bit worse than CENTRALIZED $^ +$ STANDARD EVAL, and performance for RECONEVAL on unseen users is significantly worse than FEDRECON. This indicates that FEDRECON is doing a better job of training global parameters so they can reconstruct local parameters than other approaches, as motivated in Section 4.2. Moreover, FEDRECON is doing this despite not having direct access to the data or the user-specific parameters–enabling this approach in settings where centralized training or FEDAVG is impossible. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
564,
|
| 836 |
+
825,
|
| 837 |
+
813
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 6
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "image",
|
| 843 |
+
"img_path": "images/b19182c05c8df5addd5db9b1ac7dcee1ce46b13bd43fdb0e428aec068a457fed.jpg",
|
| 844 |
+
"image_caption": [
|
| 845 |
+
"Figure 2: Accuracy as a function of total parameters communicated across all clients for FEDRECON and baselines for Stack Overflow next word prediction. "
|
| 846 |
+
],
|
| 847 |
+
"image_footnote": [],
|
| 848 |
+
"bbox": [
|
| 849 |
+
339,
|
| 850 |
+
92,
|
| 851 |
+
658,
|
| 852 |
+
220
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 7
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "image",
|
| 858 |
+
"img_path": "images/a4fdd7a9d62f3174f7d48dfb6dac275bfe3b9e0619ab1ff8919635a024bd7164.jpg",
|
| 859 |
+
"image_caption": [
|
| 860 |
+
"Figure 3: Accuracy compared to base FEDRECON when varying the number of reconstruction steps for local parameters (left plot) and client update steps for global parameters (right plot). "
|
| 861 |
+
],
|
| 862 |
+
"image_footnote": [],
|
| 863 |
+
"bbox": [
|
| 864 |
+
212,
|
| 865 |
+
272,
|
| 866 |
+
787,
|
| 867 |
+
388
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 7
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "In the first section of the Stack Overflow results in Table 2, we compare FEDYOGI (an adaptive variant of FEDAVG introduced by Reddi et al. [48]) with FEDRECON, showing that enabling FEDRECON with 500 local OOV embeddings significantly boosts accuracy for every vocabulary size. Interestingly, we observe that accuracy actually improves for smaller vocabulary sizes for FEDRECON $( 5 0 0 \\mathrm { O O V } )$ , whereas the reverse holds for FEDYOGI and FEDRECON (1 OOV). We posit that this is because decreasing the vocabulary size effectively increases the amount of \"training data\" available for the local part of the model, since OOV embeddings are only used (and trained) when tokens are out-ofvocabulary; this is useful only when the local part of the model has sufficient capacity via the number of OOV embeddings. This hypothesis is consistent with vocabulary coverage: a 10K vocabulary covers $8 6 . 9 \\%$ of the tokens in the dataset, a 5K vocabulary covers $8 0 . 1 \\%$ , and a 1K vocabulary covers $4 9 . 2 \\%$ ; we see that difference in results for FEDRECON $( 5 0 0 \\mathrm { O O V } )$ is greater between 1K and 5K than between 5K and 10K. We caution that reducing vocabulary size may be undesirable in some cases: reducing the size of the vocabulary also restricts the output tokens of the model. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
174,
|
| 876 |
+
441,
|
| 877 |
+
826,
|
| 878 |
+
621
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 7
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "Comparing with Finetuning: In Table 2 we compare FEDRECON with FINETUNING [52, 58] to study whether reconstruction can provide similar benefits as global personalization methods. In our implementation we train a fully global model using FEDYOGI, perform local gradient steps to finetune part of the model using the support set, and then evaluate on the query set (same sets as used for FEDRECON). For OOV FINETUNING, the OOV parameters only are finetuned using the support set (comparable to FEDRECON), and for FULL FINETUNING all parameters are finetuned. Comparing FEDRECON $( 5 0 0 \\ \\mathrm { O O V } )$ and OOV FINETUNING, we see that reconstructing local embeddings performs similarly to finetuning pre-trained OOV embeddings, despite FEDRECON not communicating the local parameters $l$ to the server. FULL FINETUNING from Table 2 achieves better accuracy since all parameters are finetuned. To compare this fairly with reconstruction, we perform FEDRECON $^ +$ FINETUNE, where the support set is used first to reconstruct local parameters and then to finetune global parameters before evaluation. We also see that we can get comparable results, indicating that reconstruction can enable personalization on (potentially privacy-sensitive) local parameters while reducing communication. See Figure 2 for a comparison of different approaches by the total number of parameters communicated–we see an advantage for FEDRECON, particularly for lower total communication. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
628,
|
| 888 |
+
825,
|
| 889 |
+
849
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 7
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Varying Reconstruction Steps: In Section 4.2 we described a connection between our framework and MAML [19], which has been a successful paradigm for fast adaptation to tasks with few steps. In Figure 3 we perform FEDRECON for varying numbers of reconstruction steps $k _ { r } \\in [ 0 , 1 , 2 , 5 , 1 0 ]$ and plot the accuracy as a fraction of accuracy across tasks from Tables 1 and 2. We see that for zero reconstruction steps (an ablation skipping reconstruction), MovieLens accuracy is 0.0, as expected (all user embeddings are randomly initialized). Relative accuracy for Stack Overflow NWP settings remains above $90 \\%$ , suggesting that for this task clients can still perform inference with a FEDRECON-trained model even without any data to reconstruct. Importantly, just one reconstruction step is required to recover the majority of remaining performance across both tasks, indicating that FEDRECON learns global parameters conducive to fast reconstruction. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
856,
|
| 899 |
+
825,
|
| 900 |
+
911
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 7
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
92,
|
| 910 |
+
825,
|
| 911 |
+
174
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 8
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Varying Client Update Steps: In Section 4.2 we showed that gradient-based FEDRECON, involving $k _ { r } \\geq 1$ reconstruction steps and $k _ { u } = 1$ client update steps, is minimizing a first-order meta learning objective for training global parameters that yield good reconstructions. In Figure 3 we perform FEDRECON with $k _ { u } \\in [ 1 , 2 , 5 , 1 0 ]$ and compute relative accuracy as a fraction of accuracy across tasks from Tables 1 and 2. For each experiment we run for a fixed number of rounds. We see that 1 step recovers almost all of the accuracy and adding more steps gradually increases accuracy further. Interestingly, we observe that for $k _ { u } = 1$ training proceeds significantly slower than for other values such that performance is still slightly increasing after the fixed number of rounds. This is analogous to the difference between FEDAVG and FEDSGD [44]. While FEDSGD is optimizing the original learning objective, FEDAVG often achieves similar performance in significantly fewer rounds by adding multiple gradient steps on aggregated parameters. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
181,
|
| 921 |
+
825,
|
| 922 |
+
333
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 8
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "We present further baselines and ablations in Appendix D. ",
|
| 929 |
+
"bbox": [
|
| 930 |
+
174,
|
| 931 |
+
339,
|
| 932 |
+
553,
|
| 933 |
+
353
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 8
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "6 Open-Source Library ",
|
| 940 |
+
"text_level": 1,
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
378,
|
| 944 |
+
385,
|
| 945 |
+
397
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 8
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "We are releasing a code framework for expressing and evaluating practical partially local federated models built on the popular TensorFlow Federated library [50]. The code is released under Apache License 2.0. In addition to allowing for easy reproduction of our experiments, the framework provides a flexible, well-documented interface for researchers and modelers to run simulations in this setting with models and tasks of their choice. Users can take any existing Keras model and plug it into this framework with just a few lines of code. We provide libraries for training and evaluation for MovieLens matrix factorization and Stack Overflow next word prediction, which can be easily extended for new tasks. We hope that the release of this framework spurs further research and lowers the barrier to more practical applications. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
173,
|
| 954 |
+
415,
|
| 955 |
+
825,
|
| 956 |
+
540
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 8
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "7 Deployment in a Mobile Keyboard Application ",
|
| 963 |
+
"text_level": 1,
|
| 964 |
+
"bbox": [
|
| 965 |
+
173,
|
| 966 |
+
564,
|
| 967 |
+
596,
|
| 968 |
+
583
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "A key differentiator of our method is that it scales to practical training and inference in cross-device settings with large populations. To validate this, we deployed FEDRECON to a mobile keyboard application with hundreds of millions of federated learning clients. We used a system similar to Bonawitz et al. [7] to deploy FEDRECON for training. Note that the system does not support stateful clients given the issues with large-scale stateful training described in Section 4, so a stateless approach was necessary for deployment. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
174,
|
| 977 |
+
599,
|
| 978 |
+
825,
|
| 979 |
+
684
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Users of the mobile keyboard application often use expressions (GIFs, stickers) to communicate with others in e.g., chat applications. Different users are highly heterogeneous in the style of expressions they use, which makes the problem a natural fit for collaborative filtering to predict new expressions a user might want to share. We trained matrix factorization models as described in Section 5.1.1, where the number of items ranged from hundreds to tens of thousands depending on the type of expression. ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
174,
|
| 988 |
+
690,
|
| 989 |
+
825,
|
| 990 |
+
760
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 8
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Training in production brought challenges due to data sparsity. Depending on the task, some clients had very few examples, if e.g., they didn’t commonly share stickers via the keyboard application. To ensure clients with just one example weren’t just adding noise to the training process by participating, we oversampled clients and filtered out the contributions of clients without at least some number of examples. We reused examples between the support and query sets as described in Appendix D to ensure all examples were used for both reconstruction and global updates. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
174,
|
| 999 |
+
765,
|
| 1000 |
+
825,
|
| 1001 |
+
849
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "Another practical challenge we faced was orthogonal to our method and commonly faced in realworld federated learning applications: heterogeneity in client resources and availability meant that some participating clients would drop out before sending updates to the server. We found that the simple strategy of oversampling clients and neglecting updates from dropped-out clients appeared to perform well, but we believe studying the fairness implications of this is a valuable area for future work. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
176,
|
| 1010 |
+
856,
|
| 1011 |
+
825,
|
| 1012 |
+
911
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
174,
|
| 1021 |
+
92,
|
| 1022 |
+
823,
|
| 1023 |
+
119
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 9
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "After successful training, the resulting model was deployed for inference in predicting potential new expressions a user might share, which led to an increase of $2 9 . 3 \\%$ in click-through-rate for expression recommendations. We hope that this successful deployment of FEDRECON demonstrates the practicality of our approach and leads the way for further real-world applications. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
174,
|
| 1032 |
+
126,
|
| 1033 |
+
825,
|
| 1034 |
+
181
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 9
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "8 Conclusion ",
|
| 1041 |
+
"text_level": 1,
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
200,
|
| 1045 |
+
297,
|
| 1046 |
+
217
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "We introduced Federated Reconstruction, a model-agnostic framework for fast partially local federated learning suitable for training and inference at scale. We justified FEDRECON via a connection to meta learning and empirically validated the algorithm for collaborative filtering and next message prediction, showing that it can improve performance on unseen clients and enable fast personalization with less communication. We also released an open-source library for partially local federated learning and described a successful production deployment. Future work may explore the optimal balance of local and global parameters and the application of differential privacy to global parameters (see Appendix E). ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
231,
|
| 1056 |
+
825,
|
| 1057 |
+
342
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 9
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1064 |
+
"text_level": 1,
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
361,
|
| 1068 |
+
553,
|
| 1069 |
+
378
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "We thank Brendan McMahan, Lin Ning, Zachary Charles, Warren Morningstar, Daniel Ramage, Jakub Konecnˇ ý, Blaise Agüera y Arcas, and Jay Yagnik from Google Research for their helpful comments and discussions. We also thank Wei Li, Matt Newton, and Yang Lu for their collaboration towards deployment. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
174,
|
| 1078 |
+
392,
|
| 1079 |
+
825,
|
| 1080 |
+
448
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "References ",
|
| 1087 |
+
"text_level": 1,
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
468,
|
| 1091 |
+
266,
|
| 1092 |
+
483
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "[1] Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. 2016. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security. 308–318. \n[2] Muhammad Ammad-Ud-Din, Elena Ivannikova, Suleiman A Khan, Were Oyomno, Qiang Fu, Kuan Eeik Tan, and Adrian Flanagan. 2019. Federated Collaborative Filtering for PrivacyPreserving Personalized Recommendation System. arXiv preprint arXiv:1901.09888 (2019). \n[3] Apple. 2019. Designing for Privacy (video and slide deck). Apple WWDC, https: //developer.apple.com/videos/play/wwdc2019/708. \n[4] Manoj Ghuhan Arivazhagan, Vinay Aggarwal, Aaditya Kumar Singh, and Sunav Choudhary. 2019. Federated learning with personalization layers. arXiv preprint arXiv:1912.00818 (2019). \n[5] Raef Bassily, Vitaly Feldman, Kunal Talwar, and Abhradeep Thakurta. 2019. Private Stochastic Convex Optimization with Optimal Rates. CoRR abs/1908.09970 (2019). arXiv:1908.09970 http://arxiv.org/abs/1908.09970 \n[6] Raef Bassily, Adam D. Smith, and Abhradeep Thakurta. 2014. Private Empirical Risk Minimization, Revisited. CoRR abs/1405.7085 (2014). arXiv:1405.7085 http://arxiv.org/ abs/1405.7085 \n[7] Keith Bonawitz, Hubert Eichner, Wolfgang Grieskamp, Dzmitry Huba, Alex Ingerman, Vladimir Ivanov, Chloe Kiddon, Jakub Konecnˇ y, Stefano Mazzocchi, H Brendan McMahan, et al \\` . 2019. Towards federated learning at scale: System design. arXiv preprint arXiv:1902.01046 (2019). \n[8] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. 2017. Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security. 1175–1191. \n[9] Di Chai, Leye Wang, Kai Chen, and Qiang Yang. 2020. Secure federated matrix factorization. IEEE Intelligent Systems (2020). \n[10] Fei Chen, Mi Luo, Zhenhua Dong, Zhenguo Li, and Xiuqiang He. 2018. Federated metalearning with fast convergence and efficient communication. arXiv preprint arXiv:1802.07876 (2018). \n[11] NVIDIA Clara. 2019. The Clara Training Framework Authors. https://developer. nvidia.com/clara \n[12] Creative Commons. 2002. Attribution-ShareAlike 3.0 Unported. https:// creativecommons.org/licenses/by-sa/3.0/ \n[13] Walter de Brouwer. 2019. The Federated Future is ready for shipping. https://doc.ai/ blog/federated-future-ready-shipping/. \n[14] Yuyang Deng, Mohammad Mahdi Kamani, and Mehrdad Mahdavi. 2020. Adaptive Personalized Federated Learning. arXiv preprint arXiv:2003.13461 (2020). \n[15] Enmao Diao, Jie Ding, and Vahid Tarokh. 2020. HeteroFL: Computation and communication efficient federated learning for heterogeneous clients. arXiv preprint arXiv:2010.01264 (2020). \n[16] Canh T Dinh, Nguyen H Tran, and Tuan Dung Nguyen. 2020. Personalized federated learning with Moreau envelopes. arXiv preprint arXiv:2006.08848 (2020). \n[17] Cynthia Dwork, Aaron Roth, et al. 2014. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science 9, 3-4 (2014), 211–407. \n[18] Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. 2020. Personalized federated learning: A meta-learning approach. arXiv preprint arXiv:2002.07948 (2020). \n[19] Chelsea Finn, Pieter Abbeel, and Sergey Levine. 2017. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400 (2017). \n[20] Adrian Flanagan, Were Oyomno, Alexander Grigorievskiy, Kuan Eeik Tan, Suleiman A Khan, and Muhammad Ammad-Ud-Din. 2020. Federated Multi-view Matrix Factorization for Personalized Recommendations. arXiv preprint arXiv:2004.04256 (2020). \n[21] Dashan Gao, Ben Tan, Ce Ju, Vincent W Zheng, and Qiang Yang. 2020. Privacy Threats Against Federated Matrix Factorization. arXiv preprint arXiv:2007.01587 (2020). \n[22] Suyu Ge, Fangzhao Wu, Chuhan Wu, Tao Qi, Yongfeng Huang, and Xing Xie. 2020. Fedner: Privacy-preserving medical named entity recognition with federated learning. arXiv preprint arXiv:2003.09288 (2020). \n[23] Jonas Geiping, Hartmut Bauermeister, Hannah Dröge, and Michael Moeller. 2020. Inverting Gradients–How easy is it to break privacy in federated learning? arXiv preprint arXiv:2003.14053 (2020). \n[24] Robin C Geyer, Tassilo Klein, and Moin Nabi. 2017. Differentially private federated learning: A client level perspective. arXiv preprint arXiv:1712.07557 (2017). \n[25] GroupLens. 2015. MovieLens 1M License. https://files.grouplens.org/datasets/ movielens/ml-1m-README.txt \n[26] Asela Gunawardana, William Byrne, and Michael I Jordan. 2005. Convergence Theorems for Generalized Alternating Minimization Procedures. Journal of machine learning research 6, 12 (2005). \n[27] Filip Hanzely and Peter Richtárik. 2020. Federated learning of a mixture of global and local models. arXiv preprint arXiv:2002.05516 (2020). \n[28] Andrew Hard, Kanishka Rao, Rajiv Mathews, Swaroop Ramaswamy, Françoise Beaufays, Sean Augenstein, Hubert Eichner, Chloé Kiddon, and Daniel Ramage. 2018. Federated learning for mobile keyboard prediction. arXiv preprint arXiv:1811.03604 (2018). \n[29] F Maxwell Harper and Joseph A Konstan. 2015. The movielens datasets: History and context. Acm transactions on interactive intelligent systems (tiis) 5, 4 (2015), 1–19. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
179,
|
| 1101 |
+
491,
|
| 1102 |
+
828,
|
| 1103 |
+
912
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
171,
|
| 1112 |
+
66,
|
| 1113 |
+
828,
|
| 1114 |
+
919
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 10
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "[30] Yifan Hu, Yehuda Koren, and Chris Volinsky. 2008. Collaborative filtering for implicit feedback datasets. In 2008 Eighth IEEE International Conference on Data Mining. Ieee, 263–272. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
169,
|
| 1123 |
+
90,
|
| 1124 |
+
825,
|
| 1125 |
+
121
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 11
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "[31] Yutao Huang, Lingyang Chu, Zirui Zhou, Lanjun Wang, Jiangchuan Liu, Jian Pei, and Yong Zhang. 2021. Personalized cross-silo federated learning on non-iid data. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35. 7865–7873. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
174,
|
| 1134 |
+
130,
|
| 1135 |
+
820,
|
| 1136 |
+
172
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 11
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "[32] Prateek Jain, Praneeth Netrapalli, and Sujay Sanghavi. 2013. Low-rank matrix completion using alternating minimization. In Proceedings of the forty-fifth annual ACM symposium on Theory of computing. 665–674. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
174,
|
| 1145 |
+
183,
|
| 1146 |
+
826,
|
| 1147 |
+
226
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 11
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "[33] Yihan Jiang, Jakub Konecnˇ y, Keith Rush, and Sreeram Kannan. 2019. Improving federated \\` learning personalization via model agnostic meta learning. arXiv preprint arXiv:1909.12488 (2019). ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
174,
|
| 1156 |
+
236,
|
| 1157 |
+
826,
|
| 1158 |
+
277
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 11
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "[34] Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. 2019. Advances and open problems in federated learning. arXiv preprint arXiv:1912.04977 (2019). ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
174,
|
| 1167 |
+
287,
|
| 1168 |
+
826,
|
| 1169 |
+
344
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 11
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "[35] Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. 2020. Scaffold: Stochastic controlled averaging for federated learning. In International Conference on Machine Learning. PMLR, 5132–5143. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
174,
|
| 1178 |
+
354,
|
| 1179 |
+
823,
|
| 1180 |
+
398
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 11
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "[36] Mikhail Khodak, Maria-Florina F Balcan, and Ameet S Talwalkar. 2019. Adaptive gradientbased meta-learning methods. In Advances in Neural Information Processing Systems. 5917– 5928. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
174,
|
| 1189 |
+
406,
|
| 1190 |
+
826,
|
| 1191 |
+
450
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 11
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "[37] Yehuda Koren, Robert Bell, and Chris Volinsky. 2009. Matrix factorization techniques for recommender systems. Computer 42, 8 (2009), 30–37. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
171,
|
| 1200 |
+
460,
|
| 1201 |
+
825,
|
| 1202 |
+
489
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 11
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "[38] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. 2020. Federated learning: Challenges, methods, and future directions. IEEE Signal Processing Magazine 37, 3 (2020), 50–60. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
173,
|
| 1211 |
+
500,
|
| 1212 |
+
828,
|
| 1213 |
+
541
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 11
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "[39] Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. 2018. Federated optimization in heterogeneous networks. arXiv preprint arXiv:1812.06127 (2018). ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
171,
|
| 1222 |
+
551,
|
| 1223 |
+
825,
|
| 1224 |
+
594
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 11
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "[40] Xiaoxiao Li, Meirui Jiang, Xiaofei Zhang, Michael Kamp, and Qi Dou. 2021. Fedbn: Federated learning on non-iid features via local batch normalization. arXiv preprint arXiv:2102.07623 (2021). ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
604,
|
| 1234 |
+
825,
|
| 1235 |
+
647
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 11
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "[41] Paul Pu Liang, Terrance Liu, Liu Ziyin, Ruslan Salakhutdinov, and Louis-Philippe Morency. 2020. Think locally, act globally: Federated learning with local and global representations. arXiv preprint arXiv:2001.01523 (2020). ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
174,
|
| 1244 |
+
657,
|
| 1245 |
+
826,
|
| 1246 |
+
700
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 11
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "[42] Yujie Lin, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Dongxiao Yu, Jun Ma, Maarten de Rijke, and Xiuzhen Cheng. 2020. Meta Matrix Factorization for Federated Rating Predictions. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval. 981–990. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
174,
|
| 1255 |
+
710,
|
| 1256 |
+
826,
|
| 1257 |
+
767
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 11
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "[43] Yishay Mansour, Mehryar Mohri, Jae Ro, and Ananda Theertha Suresh. 2020. Three approaches for personalization with applications to federated learning. arXiv preprint arXiv:2002.10619 (2020). ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
171,
|
| 1266 |
+
776,
|
| 1267 |
+
825,
|
| 1268 |
+
819
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 11
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "[44] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. 2017. Communication-efficient learning of deep networks from decentralized data. In Artificial Intelligence and Statistics. PMLR, 1273–1282. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
830,
|
| 1278 |
+
823,
|
| 1279 |
+
872
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 11
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "[45] H Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. 2017. Learning differentially private recurrent language models. arXiv preprint arXiv:1710.06963 (2017). ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
171,
|
| 1288 |
+
882,
|
| 1289 |
+
821,
|
| 1290 |
+
911
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 11
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "[46] Alex Nichol, Joshua Achiam, and John Schulman. 2018. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999 (2018). \n[47] Valeria Nikolaenko, Stratis Ioannidis, Udi Weinsberg, Marc Joye, Nina Taft, and Dan Boneh. 2013. Privacy-preserving matrix factorization. In Proceedings of the 2013 ACM SIGSAC conference on Computer & communications security. 801–812. \n[48] Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konecnˇ y,\\` Sanjiv Kumar, and H Brendan McMahan. 2020. Adaptive Federated Optimization. arXiv preprint arXiv:2003.00295 (2020). \n[49] Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. 2017. Federated multi-task learning. arXiv preprint arXiv:1705.10467 (2017). \n[50] TensorFlow. 2019. TensorFlow Federated. https://www.tensorflow.org/federated \n[51] TensorFlow. 2019. TensorFlow Federated Stack Overflow Dataset. https: //www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/ stackoverflow/load_data \n[52] Kangkang Wang, Rajiv Mathews, Chloé Kiddon, Hubert Eichner, Françoise Beaufays, and Daniel Ramage. 2019. Federated evaluation of on-device personalization. arXiv preprint arXiv:1910.10252 (2019). \n[53] Wenqi Wei, Ling Liu, Margaret Loper, Ka-Ho Chow, Mehmet Emre Gursoy, Stacey Truex, and Yanzhao Wu. 2020. A framework for evaluating gradient leakage attacks in federated learning. arXiv preprint arXiv:2004.10397 (2020). \n[54] Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. 2009. Feature hashing for large scale multitask learning. In Proceedings of the 26th annual international conference on machine learning. 1113–1120. \n[55] Xi Wu, Arun Kumar, Kamalika Chaudhuri, Somesh Jha, and Jeffrey F. Naughton. 2016. Differentially Private Stochastic Gradient Descent for in-RDBMS Analytics. CoRR abs/1606.04722 (2016). arXiv:1606.04722 http://arxiv.org/abs/1606.04722 \n[56] Timothy Yang, Galen Andrew, Hubert Eichner, Haicheng Sun, Wei Li, Nicholas Kong, Daniel Ramage, and Françoise Beaufays. 2018. Applied federated learning: Improving google keyboard query suggestions. arXiv preprint arXiv:1812.02903 (2018). \n[57] Hongxu Yin, Arun Mallya, Arash Vahdat, Jose M Alvarez, Jan Kautz, and Pavlo Molchanov. 2021. See through Gradients: Image Batch Recovery via GradInversion. arXiv preprint arXiv:2104.07586 (2021). \n[58] Tao Yu, Eugene Bagdasaryan, and Vitaly Shmatikov. 2020. Salvaging federated learning by local adaptation. arXiv preprint arXiv:2002.04758 (2020). \n[59] Ligeng Zhu and Song Han. 2020. Deep leakage from gradients. In Federated Learning. Springer, 17–31. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
169,
|
| 1299 |
+
90,
|
| 1300 |
+
828,
|
| 1301 |
+
719
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 12
|
| 1304 |
+
}
|
| 1305 |
+
]
|
parse/train/Hk0olMdZOIU/Hk0olMdZOIU_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hk0olMdZOIU/Hk0olMdZOIU_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/QtTKTdVrFBB/QtTKTdVrFBB.md
ADDED
|
@@ -0,0 +1,537 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RANDOM FEATURE ATTENTION
|
| 2 |
+
|
| 3 |
+
Hao Peng♠∗ Nikolaos Pappas♠ Dani Yogatama♣ Roy Schwartz♥ Noah A. Smith♠♦ Lingpeng $\mathbf { K o n g } ^ { \bullet \ast }$
|
| 4 |
+
|
| 5 |
+
♠Paul G. Allen School of Computer Science & Engineering, University of Washington
|
| 6 |
+
♣DeepMind ♦Allen Institute for Artificial Intelligence
|
| 7 |
+
♥School of Computer Science & Engineering, Hebrew University of Jerusalem
|
| 8 |
+
♦Department of Computer Science , The University of Hong Kong
|
| 9 |
+
{hapeng,npappas,nasmith}@cs.washington.edu
|
| 10 |
+
dyogatama@google.com, roys@cs.huji.ac.il, lpk@cs.hku.hk
|
| 11 |
+
|
| 12 |
+
# ABSTRACT
|
| 13 |
+
|
| 14 |
+
Transformers are state-of-the-art models for a variety of sequence modeling tasks. At their core is an attention function which models pairwise interactions between the inputs at every timestep. While attention is powerful, it does not scale efficiently to long sequences due to its quadratic time and space complexity in the sequence length. We propose RFA, a linear time and space attention that uses random feature methods to approximate the softmax function, and explore its application in transformers. RFA can be used as a drop-in replacement for conventional softmax attention and offers a straightforward way of learning with recency bias through an optional gating mechanism. Experiments on language modeling and machine translation demonstrate that RFA achieves similar or better performance compared to strong transformer baselines. In the machine translation experiment, RFA decodes twice as fast as a vanilla transformer. Compared to existing efficient transformer variants, RFA is competitive in terms of both accuracy and efficiency on three long text classification datasets. Our analysis shows that RFA’s efficiency gains are especially notable on long sequences, suggesting that RFA will be particularly useful in tasks that require working with large inputs, fast decoding speed, or low memory footprints.
|
| 15 |
+
|
| 16 |
+
# 1 INTRODUCTION
|
| 17 |
+
|
| 18 |
+
Transformer architectures (Vaswani et al., 2017) have achieved tremendous success on a variety of sequence modeling tasks (Ott et al., 2018; Radford et al., 2018; Parmar et al., 2018; Devlin et al., 2019; Parisotto et al., 2020, inter alia). Under the hood, the key component is attention (Bahdanau et al., 2015), which models pairwise interactions of the inputs, regardless of their distances from each other. This comes with quadratic time and memory costs, making the transformers computationally expensive, especially for long sequences. A large body of research has been devoted to improving their time and memory efficiency (Tay et al., 2020c). Although better asymptotic complexity and prominent gains for long sequences have been achieved (Lee et al., 2019; Child et al., 2019; Beltagy et al., 2020, inter alia), in practice, many existing approaches are less well-suited for moderatelength ones: the additional computation steps required by some approaches can overshadow the time and memory they save (Kitaev et al., 2020; Wang et al., 2020; Roy et al., 2020, inter alia).
|
| 19 |
+
|
| 20 |
+
This work proposes random feature attention (RFA), an efficient attention variant that scales linearly in sequence length in terms of time and space, and achieves practical gains for both long and moderate length sequences. RFA builds on a kernel perspective of softmax (Rawat et al., 2019). Using the well-established random feature maps (Rahimi & Recht, 2007; Avron et al., 2016; $\ S 2$ ), RFA approximates the dot-then-exponentiate function with a kernel trick (Hofmann et al., 2008): $\exp ( \mathbf { x } \cdot \mathbf { y } ) \approx \phi ( \mathbf { x } ) \cdot \phi ( \mathbf { y } )$ . Inspired by its connections to gated recurrent neural networks (Hochreiter & Schmidhuber, 1997; Cho et al., 2014) and fast weights (Schmidhuber, 1992), we further augment RFA with an optional gating mechanism, offering a straightforward way of learning with recency bias when locality is desired.
|
| 21 |
+
|
| 22 |
+
RFA and its gated variant (§3) can be used as a drop-in substitute for the canonical softmax attention, and increase the number of parameters by less than $0 . 1 \%$ . We explore its applications in transformers on language modeling, machine translation, and long text classification $( \ S 4 )$ . Our experiments show that RFA achieves comparable performance to vanilla transformer baselines in all tasks, while outperforming a recent related approach (Katharopoulos et al., 2020). The gating mechanism proves particularly useful in language modeling: the gated variant of RFA outperforms the transformer baseline on WikiText-103. RFA shines in decoding, even for shorter sequences. In our head-to-head comparison on machine translation benchmarks, RFA decodes around $2 \times$ faster than a transformer baseline, without accuracy loss. Comparisons to several recent efficient transformer variants on three long text classification datasets show that RFA is competitive in terms of both accuracy and efficiency. Our analysis (§5) shows that more significant time and memory efficiency improvements can be achieved for longer sequences: $1 2 \times$ decoding speedup with less than $10 \%$ of the memory for 2,048-length outputs.
|
| 23 |
+
|
| 24 |
+
# 2 BACKGROUND
|
| 25 |
+
|
| 26 |
+
# 2.1 ATTENTION IN SEQUENCE MODELING
|
| 27 |
+
|
| 28 |
+
The attention mechanism (Bahdanau et al., 2015) has been widely used in many sequence modeling tasks. Its dot-product variant is the key building block for the state-of-the-art transformer architectures (Vaswani et al., 2017). Let $\{ \mathbf { q } _ { t } \} _ { t = 1 } ^ { N }$ denote a sequence of $N$ query vectors, that attend to sequences of $M$ key and value vectors. At each timestep, the attention linearly combines the values weighted by the outputs of a softmax:
|
| 29 |
+
|
| 30 |
+
$$
|
| 31 |
+
\mathrm { a t t n } \left( \mathbf { q } _ { t } , \{ \mathbf { k } _ { i } \} , \{ \mathbf { v } _ { i } \} \right) = \sum _ { i } \frac { \exp \left( \mathbf { q } _ { t } \cdot \mathbf { k } _ { i } / \tau \right) } { \sum _ { j } \exp \left( \mathbf { q } _ { t } \cdot \mathbf { k } _ { j } / \tau \right) } \mathbf { v } _ { i } ^ { \top } .
|
| 32 |
+
$$
|
| 33 |
+
|
| 34 |
+
$\tau$ is the temperature hyperparameter determining how “flat” the softmax is (Hinton et al., 2015).1
|
| 35 |
+
|
| 36 |
+
Calculating attention for a single query takes $\mathcal { O } ( M )$ time and space. For the full sequence of $N$ queries the space amounts to $\mathcal { O } ( M N )$ . When the computation cannot be parallelized across the queries, e.g., in autoregressive decoding, the time complexity is quadratic in the sequence length.
|
| 37 |
+
|
| 38 |
+
# 2.2 RANDOM FEATURE METHODS
|
| 39 |
+
|
| 40 |
+
The theoretical backbone of this work is the unbiased estimation of the Gaussian kernel by Rahimi & Recht (2007). Based on Bochner’s theorem (Bochner, 1955), Rahimi & Recht (2007) proposed random Fourier features to approximate a desired shift-invariant kernel. The method nonlinearly transforms a pair of vectors $\mathbf { x }$ and $\mathbf { y }$ using a random feature map $\phi$ ; the inner product between $\phi ( \mathbf { x } )$ and $\phi ( \mathbf { y } )$ approximates the kernel evaluation on $\mathbf { x }$ and $\mathbf { y }$ . More precisely:
|
| 41 |
+
|
| 42 |
+
Theorem 1 (Rahimi & Recht, 2007). Let $\phi : \mathbb { R } ^ { d } \mathbb { R } ^ { 2 D }$ be a nonlinear transformation:
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\phi \left( \mathbf { x } \right) = \sqrt { 1 / D } \left[ \sin \left( \mathbf { w } _ { 1 } \cdot \mathbf { x } \right) , \ldots , \sin \left( \mathbf { w } _ { D } \cdot \mathbf { x } \right) , \cos \left( \mathbf { w } _ { 1 } \cdot \mathbf { x } \right) , \ldots , \cos \left( \mathbf { w } _ { D } \cdot \mathbf { x } \right) \right] ^ { \top } .
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
When $d$ -dimensional random vectors $\mathbf { w } _ { i }$ are independently sampled from ${ \mathcal { N } } ( \mathbf { 0 } , \sigma ^ { 2 } \mathbf { I } _ { d } )$ ,
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\begin{array} { r } { \mathbb { E } _ { \mathbf { w } _ { i } } \left[ \boldsymbol { \phi } \left( \mathbf { x } \right) \cdot \boldsymbol { \phi } \left( \mathbf { y } \right) \right] = \exp \left( - \left. \mathbf { x } - \mathbf { y } \right. ^ { 2 } / 2 \sigma ^ { 2 } \right) . } \end{array}
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
Variance of the estimation is inversely proportional to $D$ (Appendix A.2; Yu et al., 2016).
|
| 55 |
+
|
| 56 |
+
Random feature methods proved successful in speeding up kernel methods (Oliva et al., 2015; Avron et al., 2017; Sun, 2019, inter alia), and more recently are used to efficiently approximate softmax (Rawat et al., 2019). In $\ S 3 . 1$ , we use it to derive an unbiased estimate to $\exp ( \langle \cdot , \cdot \rangle )$ and then an efficient approximation to softmax attention.
|
| 57 |
+
|
| 58 |
+
# 3 MODEL
|
| 59 |
+
|
| 60 |
+
This section presents RFA (§3.1) and its gated variant (§3.2). In $\ S 3 . 3$ we lay out several design choices and relate RFA to prior works. We close by practically analyzing RFA’s complexity (§3.4).
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
Figure 1: Computation graphs for softmax attention (left) and random feature attention (right). Here, we assume cross attention with source length $M$ and target length $N$ .
|
| 64 |
+
|
| 65 |
+
# 3.1 RANDOM FEATURE ATTENTION
|
| 66 |
+
|
| 67 |
+
RFA builds on an unbiased estimate to $\exp ( \langle \cdot , \cdot \rangle )$ from Theorem 1, which we begin with:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\begin{array} { r l } & { \exp \left( \mathbf { x } \cdot \mathbf { y } / \sigma ^ { 2 } \right) = \exp \left( \left\| \mathbf { x } \right\| ^ { 2 } / 2 \sigma ^ { 2 } + \left\| \mathbf { y } \right\| ^ { 2 } / 2 \sigma ^ { 2 } \right) \exp \left( - \left\| \mathbf { x } - \mathbf { y } \right\| ^ { 2 } / 2 \sigma ^ { 2 } \right) } \\ & { \qquad \approx \exp \left( \left\| \mathbf { x } \right\| ^ { 2 } / 2 \sigma ^ { 2 } + \left\| \mathbf { y } \right\| ^ { 2 } / 2 \sigma ^ { 2 } \right) \phi \left( \mathbf { x } \right) \cdot \phi \left( \mathbf { y } \right) . } \end{array}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
The last line does not have any nonlinear interaction between $\phi ( \mathbf { x } )$ and $\phi ( \mathbf { y } )$ , allowing for a linear time/space approximation to attention. For clarity we assume the query and keys are unit vectors.2
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\begin{array} { l } { { \displaystyle \mathrm { a t t n } \left( { \bf q } _ { t } , \left\{ { \bf k } _ { i } \right\} , \left\{ { \bf v } _ { i } \right\} \right) = \sum _ { i } \frac { \exp \left( { \bf q } _ { t } \cdot { \bf k } _ { i } / \sigma ^ { 2 } \right) } { \sum _ { j } \exp \left( { \bf q } _ { t } \cdot { \bf k } _ { j } / \sigma ^ { 2 } \right) } { \bf v } _ { i } ^ { \top } } \ ~ } \\ { \displaystyle ~ \approx \sum _ { i } \frac { \phi \left( { \bf q } _ { t } \right) ^ { \top } \phi \left( { \bf k } _ { i } \right) { \bf v } _ { i } ^ { \top } } { \sum _ { j } \phi \left( { \bf q } _ { t } \right) \cdot \phi \left( { \bf k } _ { j } \right) } \ ~ } \\ { \displaystyle ~ = \frac { \phi \left( { \bf q } _ { t } \right) ^ { \top } \sum _ { i } \phi \left( { \bf k } _ { i } \right) \otimes { \bf v } _ { i } } { \phi \left( { \bf q } _ { t } \right) \cdot \sum _ { j } \phi \left( { \bf k } _ { j } \right) } = { \bf R F A } \left( { \bf q } _ { t } , \left\{ { \bf k } _ { i } \right\} , \left\{ { \bf v } _ { i } \right\} \right) . } \end{array}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
$\otimes$ denotes the outer product between vectors, and $\sigma ^ { 2 }$ corresponds to the temperature term $\tau$ in Eq. 1.
|
| 80 |
+
|
| 81 |
+
RFA can be used as a drop-in-replacement for softmax-attention.
|
| 82 |
+
|
| 83 |
+
(a) The input is revealed in full to cross attention and encoder self-attention. Here RFA calculates attention using Eq. 5.
|
| 84 |
+
(b) In causal attention RFA attends only to the prefix.3 This allows for a recurrent computation. Tuple $( \mathbf { S } _ { t } \in \mathbb { R } ^ { 2 D \times d } , \mathbf { z } _ { t } \in \dot { \mathbb { R } } ^ { 2 D } )$ is used as the “hidden state” at time step $t$ to keep track of the history, similar to those in RNNs. Then $\mathrm { R F A } ( \mathbf { q } _ { t } , \{ \mathbf { k } _ { i } \} _ { i \leq t } , \{ \mathbf { v } _ { i } \} _ { i \leq t } ) =$ $\phi ( \mathbf { q } _ { t } ) ^ { \top } \mathbf { S } _ { t } / ( \phi ( \mathbf { q } _ { t } ) \cdot \mathbf { z } _ { t } )$ , where
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\mathbf { S } _ { t } = \mathbf { S } _ { t - 1 } + \phi \left( \mathbf { k } _ { t } \right) \otimes \mathbf { v } _ { t } , \quad \mathbf { z } _ { t } = \mathbf { z } _ { t - 1 } + \phi \left( \mathbf { k } _ { t } \right) .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
$2 D$ denotes the size of $\phi ( \cdot )$ . Appendix A.1 summarizes the computation procedure of RFA, and Figure 1 compares it against the softmax attention. Appendix A.3 derives causal RFA in detail.
|
| 91 |
+
|
| 92 |
+
Analogously to the softmax attention, RFA has its multiheaded variant (Vaswani et al., 2017). In our experiments we use causal RFA in a transformer language model (§4.1), and both cross and causal RFA in the decoder of a sequence-to-sequence machine translation model.
|
| 93 |
+
|
| 94 |
+
# 3.2 RFA-GATE: LEARNING WITH RECENCY BIAS
|
| 95 |
+
|
| 96 |
+
The canonical softmax attention does not have any explicit modeling of distance or locality. In learning problems where such inductive bias is crucial (Ba et al., 2016; Parmar et al., 2018; Miconi et al., 2018; Li et al., 2019, inter alia), transformers heavily rely on positional encodings. Answering to this, many approaches have been proposed, e.g., learning the attention spans (Sukhbaatar et al.,
|
| 97 |
+
|
| 98 |
+
2019; Wu et al., 2020), and enhancing the attention computation with recurrent (Hao et al., 2019;
|
| 99 |
+
Chen et al., 2019) or convolutional (Wu et al., 2019; Mohamed et al., 2019) components.
|
| 100 |
+
|
| 101 |
+
RFA faces the same issue, but its causal attention variant (Eq. 6) offers a straightforward way of learning with recency bias. We draw inspiration from its connections to RNNs, and augment RFA with a learned gating mechanism (Hochreiter & Schmidhuber, 1997; Cho et al., 2014; Peng et al., 2018, inter alia):
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\begin{array} { r l } & { g _ { t } = \mathrm { s i g m o i d } ( \mathbf { w } _ { g } \cdot \mathbf { x } _ { t } + b _ { g } ) , } \\ & { \mathbf { S } _ { t } = g _ { t } \mathbf { S } _ { t - 1 } + \left( 1 - g _ { t } \right) \phi \left( \mathbf { k } _ { t } \right) \otimes \mathbf { v } _ { t } , } \\ & { \mathbf { z } _ { t } = g _ { t } \mathbf { z } _ { t - 1 } + \left( 1 - g _ { t } \right) \phi \left( \mathbf { k } _ { t } \right) . } \end{array}
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
${ \bf w } _ { g }$ and $b _ { g }$ are learned parameters, and $\mathbf { x } _ { t }$ is the input representation at timestep $t$ .4 By multiplying the learned scalar gates $0 ~ < ~ g _ { t } ~ < ~ 1$ against the hidden state $( \mathbf { S } _ { t } , \mathbf { z } _ { t } )$ , history is exponentially decayed, favoring more recent context.
|
| 108 |
+
|
| 109 |
+
The gating mechanism shows another benefit of RFA: it would be otherwise more difficult to build similar techniques into the softmax attention, where there is no clear sense of “recurrence” (Appendix A.5). It proves useful in our language modeling experiments $( \ S 4 . 1 )$ .
|
| 110 |
+
|
| 111 |
+
# 3.3 DISCUSSION
|
| 112 |
+
|
| 113 |
+
On query and key norms, and learned random feature variance. Eq. 5 assumes both the query and keys are of norm-1. It therefore approximates a softmax attention that normalizes the queries and keys before multiplying them, and then scales the logits by dividing them by $\sigma ^ { 2 }$ . Empirically, this normalization step scales down the logits (Vaswani et al., 2017) and enforces that $- 1 \overset { \cdot } { \leq } \mathbf { q } ^ { \intercal } \dot { \mathbf { k } } \leq 1$ . In consequence, the softmax outputs would be “flattened” if not for $\sigma$ , which can be set a priori as a hyperparameter (Yu et al., 2016; Avron et al., 2017; Sun, 2019, inter alia). Here we instead learn it from data with the reparameterization trick (Kingma & Welling, 2014):
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\widetilde { \mathbf { w } } _ { i } \sim { \mathcal { N } } ( \mathbf { 0 } , \mathbf { I } _ { d } ) , \quad \mathbf { w } _ { i } = \pmb { \sigma } \circ \widetilde { \mathbf { w } } _ { i } .
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
$\mathbf { I } _ { d }$ is the $d \times d$ identity matrix, and $\circ$ denotes elementwise product between vectors. $d$ -dimensional vector $\sigma$ is learned, but random vectors $\widetilde { \mathbf { w } } _ { i }$ are not.5
|
| 120 |
+
|
| 121 |
+
This norm-1 constraint is never mandatory. Rather, we employ it for notation clarity and easier implementation. In preliminary experiments we find it has little impact on the performance when $\sigma$ is set properly or learned from data. Eq. 12 in Appendix A presents RFA without imposing it.
|
| 122 |
+
|
| 123 |
+
Going beyond the Gaussian kernel. More broadly, random feature methods can be applied to a family of shift-invariant kernels, with the Gaussian kernel being one of them. In the same family, the order-1 arc-cosine kernel (Cho & Saul, 2009) can be approximated with feature map: $\phi _ { \mathrm { a r c c o s } } ( \mathbf { x } ) = \sqrt { 1 / D } [ \mathrm { R e L U } ( \mathbf { w } _ { 1 } \cdot \mathbf { x } ) , \dots , \mathrm { R e L U } ( \mathbf { w } _ { D } \cdot \mathbf { x } ) ] ^ { \top }$ (Alber et al., 2017).6 In our experiments, the Gaussian and arc-cosine variants achieve similar performance. This supplements the exploration of alternatives to softmax in attention (Tsai et al., 2019; Gao et al., 2019).
|
| 124 |
+
|
| 125 |
+
Relations to prior work. Katharopoulos et al. (2020) inspire the causal attention variant of RFA. They use a feature map based on the exponential linear unit activation (Clevert et al., 2016): $\mathrm { e l u } ( \cdot ) + 1$ . It significantly underperforms both the baseline and RFA in our controlled experiments, showing the importance of a properly-chosen feature map. Random feature approximation of attention is also explored by a concurrent work (Choromanski et al., 2021), with applications in masked language modeling for proteins. They propose positive random features to approximate softmax, aiming for a lower variance in critical regions. RFA instead normalizes the queries and keys before random projection to reduce variance. Going beyond both, RFA establishes the benefits of random feature methods as a more universal substitute for softmax across all attention variants, facilitating its applications in, e.g., sequence-to-sequence learning.
|
| 126 |
+
|
| 127 |
+
There are interesting connections between gated RFA and fast weights (Schmidhuber, 1992; 1993; Ba et al., 2016; Miconi et al., 2018, inter alia). Emphasizing recent patterns, they learn a temporal memory to store history similarly to Eqs. 7. The main difference is that RFA additionally normalizes the output using $\phi ( { \bf q } _ { t } ) \cdot { \bf z }$ as in Eq. 6, a by-product of approximating softmax’s partition function. It is intriguing to study the role of this normalization term, which we leave to future work.
|
| 128 |
+
|
| 129 |
+
# 3.4 COMPLEXITY ANALYSIS
|
| 130 |
+
|
| 131 |
+
Time. Scaling linearly in the sequence lengths, RFA needs less computation (in terms of number of operations) for long sequences. This implies speedup wherever the quadratic-time softmax attention cannot be fully-parallelized across time steps. More specifically:
|
| 132 |
+
|
| 133 |
+
• Significant speedup can be expected in autoregressive decoding, both conditional (e.g., machine translation) and unconditional (e.g., sampling from a language model). For example, $1 . 9 \times$ speedup is achieved in our machine translation experiments (§4.2); and more for longer sequences (e.g., $1 2 \times$ for 2,048-length ones; §5). Some applications (e.g., language modeling, text classification) reveal inputs to the model in full.7 When there are enough threads to parallelize softmax attention across time steps, hardly any speedup from RFA can be achieved; when there are not, typically for very long sequences $( > 1 , 0 0 0 )$ , substantial speed gain is possible. For example, RFA does not achieve any speedup when working with 512-length context $( \ S 4 . 1 )$ , but achieves a $5 . 3 \times$ speedup with 4,000-length context $( \ S 4 . 2 )$ .
|
| 134 |
+
|
| 135 |
+
Memory. Asymptotically, RFA has a better memory efficiency than its softmax counterpart (linear vs. quadratic). To reach a more practical conclusion, we include in our analysis the cost of the feature maps. $\phi$ ’s memory overhead largely depends on its size $D$ . For example, let’s consider the cross attention of a decoder. RFA uses $\mathcal { O } ( 4 D + 2 D d )$ space to store ${ \big . } \phi ( \mathbf { q } _ { t } ) , \sum _ { i } ^ { \cdot } \phi ( \mathbf { k } _ { i } ) \otimes \mathbf { v } _ { i }$ , and $\textstyle \sum _ { i } \phi ( \mathbf { k } _ { i } )$ (Eq. 5; line 12 of Algo. 2).8 In contrast, softmax cross attention stores the encoder outputs with $\mathcal O ( M d )$ memory, with $M$ being the source length. In this case RFA has a lower memory overhead when $2 D \ll M$ . Typically $D$ should be no less than $d$ in order for reasonable approximation (Yu et al., 2016); In a transformer model, $d$ is the size of an attention head, which is usually around 64 or 128 (Vaswani et al., 2017; Ott et al., 2018). This suggests that RFA can achieve significant memory saving with longer sequences, which is supported by our empirical analysis in $\ S 5$ . Further, using moderate sized feature maps is also desirable, so that its overhead does not overshadow the time and memory RFA saves. We experiment with $D$ at $d$ and $2 d$ ; the benefit of using $D > 2 d$ is marginal.
|
| 136 |
+
|
| 137 |
+
Appendix A.6 discusses the time and space complexity in more detail, and Appendix C.2 studies the effect of random feature size on performance.
|
| 138 |
+
|
| 139 |
+
# 4 EXPERIMENTS
|
| 140 |
+
|
| 141 |
+
We evaluate RFA on language modeling, machine translation, and long text classification.
|
| 142 |
+
|
| 143 |
+
# 4.1 LANGUAGE MODELING
|
| 144 |
+
|
| 145 |
+
Setting. We experiment with WikiText-103 (Merity et al., 2017). It is based on English Wikipedia. Table 5 in Appendix B summarizes some of its statistics. We compare the following models:
|
| 146 |
+
|
| 147 |
+
• BASE is our implementation of the strong transformer-based language model by Baevski & Auli (2019).
|
| 148 |
+
RFA builds on BASE, but replaces the softmax attention with random feature attention. We experiment with both Gaussian and arc-cosine kernel variants.
|
| 149 |
+
• RFA-GATE additionally learns a sigmoid gate on top of RFA (§3.2). It also has a Gaussian kernel variant and a arc-cosine kernel one.9
|
| 150 |
+
$\phi _ { \mathrm { e l u } }$ is a baseline to RFA. Instead of the random feature methods it uses the $\mathrm { e l u } ( \cdot ) + 1$ feature map, as in Katharopoulos et al. (2020).
|
| 151 |
+
|
| 152 |
+
To ensure fair comparisons, we use comparable implementations, tuning, and training procedure. All models use a 512 block size during both training and evaluation, i.e., they read as input a segment of 512 consecutive tokens, without access to the context from previous mini-batches. RFA variants use 64-dimensional random feature maps. We experiment with two model size settings, small (around 38M parameters) and big (around 242M parameters); they are described in Appendix B.1 along with other implementation details.
|
| 153 |
+
|
| 154 |
+
Table 1: Language model perplexity (lower is better) on the WikiText-103 development and test sets. Bolded numbers outperform BASE.
|
| 155 |
+
|
| 156 |
+
<table><tr><td></td><td colspan="2">Small</td><td colspan="2">Big</td></tr><tr><td>Model</td><td>Dev.</td><td>Test</td><td>Dev.</td><td>Test</td></tr><tr><td>BASE</td><td>33.0</td><td>34.5</td><td>24.5</td><td>26.2</td></tr><tr><td>Φelu (Katharopoulos et al., 2020)</td><td>38.4</td><td>40.1</td><td>28.7</td><td>30.2</td></tr><tr><td>RFA-Gaussian</td><td>33.6</td><td>35.7</td><td>25.8</td><td>27.5</td></tr><tr><td>RFA-arccos</td><td>36.0</td><td>37.7</td><td>26.4</td><td>28.1</td></tr><tr><td>RFA-GATE-Gaussian</td><td>31.3</td><td>32.7</td><td>23.2</td><td>25.0</td></tr><tr><td>RFA-GATE-arCCOS</td><td>32.8</td><td>34.0</td><td>24.8</td><td>26.3</td></tr><tr><td>RFA-GATE-Gaussian-Stateful</td><td>29.4</td><td>30.5</td><td>22.0</td><td>23.5</td></tr></table>
|
| 157 |
+
|
| 158 |
+
Results. Table 1 compares the models’ performance in perplexity on WikiText-103 development and test data. Both kernel variants of RFA, without gating, outperform $\phi _ { \mathrm { e l u } }$ by more than 2.4 and 2.1 test perplexity for the small and big model respectively, confirming the benefits from using random feature approximation.10 Yet both underperform BASE, with RFA-Gaussian having a smaller gap. Comparing RFA against its gated variants, a more than 1.8 perplexity improvement can be attributed to the gating mechanism; and the gap is larger for small models. Notably, RFA-GATE-Gaussian outperforms BASE under both size settings by at least 1.2 perplexity. In general, RFA models with Gaussian feature maps outperform their arc-cosine counterparts.11 From the analysis in $\ S 3 . 4$ we would not expect speedup by RFA models, nor do we see any in the experiments.12
|
| 159 |
+
|
| 160 |
+
Closing this section, we explore a “stateful” variant of RFA-GATE-Gaussian. It passes the last hidden state $( \mathbf { S } _ { t } , \mathbf { z } _ { t } )$ to the next mini-batch during both training and evaluation, a technique commonly used in RNN language models (Merity et al., 2018). This is a consequence of RFA’s RNN-style computation, and is less straightforward to be applicable in the vanilla transformer models.13 From the last row of Table 1 we see that this brings a more than 1.5 test perplexity improvement.
|
| 161 |
+
|
| 162 |
+
# 4.2 MACHINE TRANSLATION
|
| 163 |
+
|
| 164 |
+
Datasets. We experiment with three standard machine translation datasets.
|
| 165 |
+
|
| 166 |
+
• WMT14 EN-DE and EN-FR (Bojar et al., 2014). Our data split and preprocessing follow those of Vaswani et al. (2017). We share the source and target vocabularies within each language pair, with 32,768 byte pair encoding types (BPE; Sennrich et al., 2016). • IWSLT14 DE-EN (Cettolo et al., 2014) is based on TED talks. The preprocessing follows Edunov et al. (2018). Separate vocabularies of 9K/7K BPE types are used for the source and target.
|
| 167 |
+
|
| 168 |
+
Table 5 in Appendix B summarizes some statistics of the datasets.
|
| 169 |
+
|
| 170 |
+
Setting. We compare the RFA variants described in $\ S 4 . 1$ . They build on a BASE model that is our implementation of the base-sized transformer (Vaswani et al., 2017). All RFA models apply random feature attention in decoder cross and causal attention, but use softmax attention in encoders. This setting yields the greatest decoding time and memory savings (§3.4). We use 128/64 for $D$ in cross/causal attention. RFA-GATE learns sigmoid gates in the decoder causal attention. The $\phi _ { \mathrm { e l u } }$ baseline uses the same setting and applies feature map in both decoder cross and causal attention, but not in the encoders. Further details are described in Appendix B.2.
|
| 171 |
+
|
| 172 |
+
<table><tr><td></td><td colspan="2">WMT14</td><td>IWSLT14</td><td></td></tr><tr><td>Model</td><td>EN-DE</td><td>EN-FR</td><td>DE-EN</td><td>Speed</td></tr><tr><td>BASE</td><td>28.1</td><td>39.0</td><td>34.6</td><td>1.0×</td></tr><tr><td>Φelu (Katharopoulos et al., 2020)</td><td>21.3</td><td>34.0</td><td>29.9</td><td>2.0×</td></tr><tr><td>RFA-Gaussian</td><td>28.0</td><td>39.2</td><td>34.5</td><td>1.8×</td></tr><tr><td>RFA-arccos</td><td>28.1</td><td>38.9</td><td>34.4</td><td>1.9×</td></tr><tr><td>RFA-GATE-Gaussian</td><td>28.1</td><td>39.0</td><td>34.6</td><td>1.8×</td></tr><tr><td>RFA-GATE-arccOS</td><td>28.2</td><td>39.2</td><td>34.4</td><td>1.9×</td></tr></table>
|
| 173 |
+
|
| 174 |
+
Table 2: Machine translation test set BLEU. The decoding speed (last column) is relative to BASE.
|
| 175 |
+
All models are tested on a single TPU v2 accelerator, with batch size 32.
|
| 176 |
+
|
| 177 |
+
Results. Table 2 compares the models’ test set BLEU on three machine translation datasets. Overall both Gaussian and arc-cosine variants of RFA achieve similar performance to BASE on all three datasets, significantly outperforming Katharopoulos et al. (2020). Differently from the trends in the language modeling experiments, here the gating mechanism does not lead to substantial gains. Notably, all RFA variants decode more than $1 . 8 \times$ faster than BASE.
|
| 178 |
+
|
| 179 |
+
# 4.3 LONG TEXT CLASSIFICATION
|
| 180 |
+
|
| 181 |
+
We further evaluate RFA’s accuracy and efficiency when used as text encoders on three NLP tasks from the recently proposed Long Range Arena benchmark (Tay et al., 2021), designed to evaluate efficient Transformer variants on tasks that require processing long sequences.14
|
| 182 |
+
|
| 183 |
+
Experimental setting and datasets. We compare RFA against baselines on the following datasets:
|
| 184 |
+
|
| 185 |
+
• ListOps (LO; Nangia & Bowman, 2018) aims to diagnose the capability of modelling hierarchically structured data. Given a sequence of operations on single-digit integers, the model predicts the solution, also a single-digit integer. It is formulated as a 10-way classification. We follow Tay et al. (2021) and consider sequences with 500–2,000 symbols. Character-level text classification with the IMDb movie review dataset (Maas et al., 2011). This is a binary sentiment classification task. Character-level document retrieval with the ACL Anthology Network (AAN; Radev et al., 2009) dataset. The model classifies whether there is a citation between a pair of papers.
|
| 186 |
+
|
| 187 |
+
To ensure fair comparisons, we implement RFA on top of the transformer baseline by Tay et al. (2021), and closely follow their preprocessing, data split, model size, and training procedure. Speed and memory are evaluated on the IMDb dataset. For our RFA model, we use $D = 6 4$ for the IMDb dataset, and $D = 1 2 8$ for others. We refer the readers to Tay et al. (2021) for further details.
|
| 188 |
+
|
| 189 |
+
Results. From Table 3 we can see that RFA outperforms the transformer baseline on two out of the three datasets, achieving the best performance on IMDb with $66 \%$ accuracy. Averaging across three datasets, RFA outperforms the transformer by $0 . 3 \%$ accuracy, second only to Zaheer et al. (2020) with a $0 . 1 \%$ accuracy gap. In terms of time and memory efficiency, RFA is among the strongest. RFA speeds up over the transformer by $1 . 1 \mathrm { - } 5 . 3 \times$ , varying by sequence length. Importantly, compared to the only two baselines that perform comparably to the baseline transformer model (Tay et al., 2020a; Zaheer et al., 2020), RFA has a clear advantage in both speed and memory efficiency, and is the only model that is competitive in both accuracy and efficiency.
|
| 190 |
+
|
| 191 |
+
<table><tr><td></td><td colspan="4"> Accuracy</td><td colspan="4">Speed</td><td colspan="4">Memory</td></tr><tr><td>Model</td><td>LO</td><td>IMDb</td><td>AAN</td><td>Avg.</td><td>1K</td><td>2K</td><td>3K</td><td>4K</td><td>1K</td><td>2K</td><td>3K</td><td>4K</td></tr><tr><td>Transformer</td><td>36.4</td><td>64.3</td><td>57.5</td><td>52.7</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.00</td><td>1.00</td><td>1.00</td><td>1.00</td></tr><tr><td>Wang et al. (2020)</td><td>35.7</td><td>53.9</td><td>52.3</td><td>47.3</td><td>1.2</td><td>1.9</td><td>3.7</td><td>5.5</td><td>0.44</td><td>0.21</td><td>0.18</td><td>0.10</td></tr><tr><td>Kitaev et al. (2020)</td><td>37.3</td><td>56.1</td><td>53.4</td><td>48.9</td><td>0.5</td><td>0.4</td><td>0.7</td><td>0.8</td><td>0.56</td><td>0.37</td><td>0.28</td><td>0.24</td></tr><tr><td>Tay et al. (2020b)</td><td>17.1</td><td>63.6</td><td>59.6</td><td>46.8</td><td>1.1</td><td>1.6</td><td>2.9</td><td>3.8</td><td>0.55</td><td>0.31</td><td>0.20</td><td>0.16</td></tr><tr><td>Tay et al. (2020a)</td><td>37.0</td><td>61.7</td><td>54.7</td><td>51.1</td><td>1.1</td><td>1.2</td><td>2.9</td><td>1.4</td><td>0.76</td><td>0.75</td><td>0.74</td><td>0.74</td></tr><tr><td>Zaheer et al. (2020)</td><td>36.0</td><td>64.0</td><td>59.3</td><td>53.1</td><td>0.9</td><td>0.8</td><td>1.2</td><td>1.1</td><td>0.90</td><td>0.56</td><td>0.40</td><td>0.30</td></tr><tr><td>Katharopoulos et al. (2020)</td><td>16.1</td><td>65.9</td><td>53.1</td><td>45.0</td><td>1.1</td><td>1.9</td><td>3.7</td><td>5.6</td><td>0.44</td><td>0.22</td><td>0.14</td><td>0.11</td></tr><tr><td>Choromanski et al. (2021)</td><td>18.0</td><td>65.4</td><td>53.8</td><td>45.7</td><td>1.2</td><td>1.9</td><td>3.8</td><td>5.7</td><td>0.44</td><td>0.22</td><td>0.15</td><td>0.11</td></tr><tr><td>RFA-Gaussian (This work)</td><td>36.8</td><td>66.0</td><td>56.1</td><td>53.0</td><td>1.1</td><td>1.7</td><td>3.4</td><td>5.3</td><td>0.53</td><td>0.30</td><td>0.21</td><td>0.16</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Table 3: Accuracy (higher is better) of different models on LO, IMDb, and AAN, along with their speed (higher is better) and peak memory consumption (lower is better) varying sequence lengths (1–4K). Speed and memory are evaluated on the IMDb dataset and relative to the transformer’s. Bold font indicates the best performance in each column, and underlined numbers outperform the transformer in accuracy. Transformer’s and previous works’ numbers are due to Tay et al. (2021).
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
Figure 2: Conditional decoding speed (left) and memory overhead (right) varying the output lengths. All models are tested on a single TPU v2 accelerator, with greedy decoding and batch size 16.
|
| 197 |
+
|
| 198 |
+
# 5 ANALYSIS
|
| 199 |
+
|
| 200 |
+
Decoding time and memory varying by sequence length. $\ S 3 . 4$ shows that RFA can potentially achieve more significant speedup and memory saving for longer sequences, which we now explore.
|
| 201 |
+
|
| 202 |
+
We use a simulation conditional generation experiment on to compare RFA’s sequence-to-sequence decoding speed and memory overhead against the baseline’s. Here we assume the input and output sequences are of the same length. The compared models are of the same size as those described in $\ S 4 . 2$ , with 6-layer encoders and decoders. Other hyperparameters are summarized in Appendix B.2. All models are tested using greedy decoding with the same batch size of 16, on a TPU v2 accelerator.
|
| 203 |
+
|
| 204 |
+
From Figures 2 (a) and (b) we observe clear trends. Varying the lengths, both RFA variants achieve consistent decoding speed with nearly-constant memory overhead. In contrast, the baseline decodes slower for longer sequences, taking an increasing amount of memory. Notably, for 2,048-length sequences, RFA decodes around $1 2 \times$ faster than the baseline while using less than $10 \%$ of the memory. RFA-arccos slightly outperforms RFA-Gaussian in terms of speed and memory efficiency. This is because when using the same $D$ (as we do here), the $\phi _ { \mathrm { a r c c o s } }$ is half the size of $\phi _ { \mathrm { G a u s s i a n } }$ . These results suggest that RFA can be particularly useful in sequence-to-sequence tasks with longer sequences, e.g., document-level machine translation (Miculicich et al., 2018).
|
| 205 |
+
|
| 206 |
+
Figure 3 in Appendix C.1 compares the speed and memory consumption in unconditional decoding (e.g., sampling from a language model). The overall trends are similar to those in Figure 2.
|
| 207 |
+
|
| 208 |
+
Notes on decoding speed. With a lower memory overhead, RFA can use a larger batch size than the baseline. As noted by Katharopoulos et al. (2020) and Kasai et al. (2021), if we had used minibatches as large as the hardware allows, RFA could have achieved a more significant speed gain. Nonetheless, we control for batch size even though it is not the most favorable setting for RFA, since the conclusion translates better to common applications where one generates a single sequence at a time (e.g., instantaneous machine translation). For the softmax attention baseline, we follow Ott et al. (2018) and cache previously computed query/key/value representations, which significantly improves its decoding speed (over not caching).
|
| 209 |
+
|
| 210 |
+
Further analysis results. RFA achieves comparable performance to softmax attention. Appendix C.3 empirically shows that this cannot be attributed to RFA learning a good approximation to softmax: when we train with one attention but evaluate with the other, the performance is hardly better than randomly-initialized untrained models. Yet, an RFA model initialized from a pretrained softmax transformer achieves decent training loss after a moderate amount of finetuning steps (Appendix C.4). This suggests some potential applications, e.g., transferring knowledge from a pretrained transformer (e.g., GPT-3; Brown et al., 2020) to an RFA model that is more efficient to sample from.
|
| 211 |
+
|
| 212 |
+
# 6 RELATED WORK
|
| 213 |
+
|
| 214 |
+
One common motivation across the following studies, that is shared by this work and the research we have already discussed, is to scale transformers to long sequences. Note that there are plenty orthogonal choices for improving efficiency such as weight sharing (Dehghani et al., 2019), quantization (Shen et al., 2020), knowledge distillation (Sanh et al., 2020), and adapters (Houlsby et al., 2019). For a detailed overview we refer the reader to Tay et al. (2020c).
|
| 215 |
+
|
| 216 |
+
Sparse attention patterns. The idea behind these methods is to limit the reception field of attention computation. It motivates earlier attempts in improving attention’s efficiency, and still receives lots of interest. The sparse patterns can be set a priori (Liu et al., 2018; Qiu et al., 2020; Ho et al., 2020; You et al., 2020, inter alia) or learned from data (Sukhbaatar et al., 2019; Roy et al., 2020, inter alia). For most of these approaches, it is yet to be empirically verified that they are suitable for large-scale sequence-to-sequence learning; few of them have recorded decoding speed benefits.
|
| 217 |
+
|
| 218 |
+
Compressed context. Wang et al. (2020) compress the context along the timesteps so that the effective sequence length for attention computation is reduced. Another line of work aims to store past context into a memory module with limited size (Lee et al., 2019; Ainslie et al., 2020; Rae et al., 2020, inter alia), so that accessing longer history only moderately increases the overhead. Reminiscent of RNN language models, RFA attends beyond a fixed context window through a stateful computation, without increasing time or memory overhead.
|
| 219 |
+
|
| 220 |
+
# 7 CONCLUSION
|
| 221 |
+
|
| 222 |
+
We presented random feature attention (RFA). It views the softmax attention through the lens of kernel methods, and approximates it with random feature methods. With an optional gating mechanism, RFA provides a straightforward way of learning with recency bias. RFA’s time and space complexity is linear in the sequence length. We use RFA as a drop-in substitute for softmax attention in transformer models. On language modeling, machine translation, and long text classification benchmarks, RFA achieves comparable or better performance than strong baselines. In the machine translation experiment, RFA decodes twice as fast. Further time and memory efficiency improvements can be achieved for longer sequences.
|
| 223 |
+
|
| 224 |
+
# ACKNOWLEDGMENTS
|
| 225 |
+
|
| 226 |
+
We would like to thank Phil Blunsom, Chris Dyer, Nando de Freitas, Jungo Kasai, Adhiguna Kuncoro, Dianqi Li, Ofir Press, Lianhui Qin, Swabha Swayamdipta, Sam Thomson, the language team at DeepMind and the ARK group at the University of Washington for their helpful feedback. We also thank Tay Yi for helping run the Long Range Arena experiments, Richard Tanburn for the advice on implementations, and the anonymous reviewers for their thoughtful comments. This work was supported in part by NSF grant 1562364 and a Google Fellowship. Nikolaos Pappas was supported by the Swiss National Science Foundation under grant number P400P2 183911 “UNISON.”
|
| 227 |
+
|
| 228 |
+
# REFERENCES
|
| 229 |
+
|
| 230 |
+
Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. ETC: Encoding long and structured inputs in transformers. In Proc. of EMNLP, 2020.
|
| 231 |
+
|
| 232 |
+
Maximilian Alber, Pieter-Jan Kindermans, Kristof Schutt, Klaus-Robert M ¨ uller, and Fei Sha. An ¨ empirical study on the properties of random bases for kernel methods. In Proc. of NeurIPS, 2017.
|
| 233 |
+
|
| 234 |
+
Haim Avron, Vikas Sindhwani, Jiyan Yang, and Michael W. Mahoney. Quasi-Monte Carlo feature maps for shift-invariant kernels. Journal of Machine Learning Research, 17(120):1–38, 2016.
|
| 235 |
+
|
| 236 |
+
Haim Avron, L. Kenneth Clarkson, and P. David and Woodruff. Faster kernel ridge regression using sketching and preconditioning. SIAM J. Matrix Analysis Applications, 2017.
|
| 237 |
+
|
| 238 |
+
Jimmy Ba, Geoffrey E Hinton, Volodymyr Mnih, Joel Z Leibo, and Catalin Ionescu. Using fast weights to attend to the recent past. In Proc. of NeurIPS, 2016.
|
| 239 |
+
|
| 240 |
+
Alexei Baevski and Michael Auli. Adaptive input representations for neural language modeling. In Proc. of ICLR, 2019.
|
| 241 |
+
|
| 242 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In Proc. of ICLR, 2015.
|
| 243 |
+
|
| 244 |
+
Iz Beltagy, Matthew E. Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv: 2004.05150, 2020.
|
| 245 |
+
|
| 246 |
+
S. Bochner. Harmonic Analysis and the Theory of Probability. University of California Press, 1955.
|
| 247 |
+
|
| 248 |
+
Ondˇrej Bojar, Christian Buck, Christian Federmann, Barry Haddow, Philipp Koehn, Johannes Leveling, Christof Monz, Pavel Pecina, Matt Post, Herve Saint-Amand, Radu Soricut, Lucia Specia, and Ales Tamchyna. Findings of the 2014 workshop on statistical machine translation. In ˇ Proc. of WMT, 2014.
|
| 249 |
+
|
| 250 |
+
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. arXiv: 2005.14165, 2020.
|
| 251 |
+
|
| 252 |
+
Mauro Cettolo, Jan Niehues, Sebastian Stuker, Luisa Bentivogli, and Marcello Federico. Report on ¨ the 11th IWSLT evaluation campaign. In Proc. of IWSLT, 2014.
|
| 253 |
+
|
| 254 |
+
Kehai Chen, Rui Wang, Masao Utiyama, and Eiichiro Sumita. Recurrent positional embedding for neural machine translation. In Proc. of EMNLP, 2019.
|
| 255 |
+
|
| 256 |
+
Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv: 1904.10509, 2019.
|
| 257 |
+
|
| 258 |
+
Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proc. of EMNLP, 2014.
|
| 259 |
+
|
| 260 |
+
Youngmin Cho and Lawrence K. Saul. Kernel methods for deep learning. In Proc. of NeurIPS, 2009.
|
| 261 |
+
|
| 262 |
+
Krzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Quincy Davis, Afroz Mohiuddin, Lukasz Kaiser, David Benjamin Belanger, Lucy J Colwell, and Adrian Weller. Rethinking attention with performers. In Proc. of ICLR, 2021.
|
| 263 |
+
|
| 264 |
+
Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network´ learning by exponential linear units (ELUs). In Proc. of ICLR, 2016.
|
| 265 |
+
|
| 266 |
+
Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-XL: Attentive language models beyond a fixed-length context. In Proc. of ACL, 2019.
|
| 267 |
+
|
| 268 |
+
Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In Proc. of ICLR, 2019.
|
| 269 |
+
|
| 270 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proc. of NAACL, 2019.
|
| 271 |
+
|
| 272 |
+
Sergey Edunov, Myle Ott, Michael Auli, David Grangier, and Marc’Aurelio Ranzato. Classical structured prediction losses for sequence to sequence learning. In Proc. of NAACL, 2018.
|
| 273 |
+
|
| 274 |
+
Yingbo Gao, Christian Herold, Weiyue Wang, and Hermann Ney. Exploring kernel functions in the softmax layer for contextual word classification. In International Workshop on Spoken Language Translation, 2019.
|
| 275 |
+
|
| 276 |
+
Jie Hao, Xing Wang, Baosong Yang, Longyue Wang, Jinfeng Zhang, and Zhaopeng Tu. Modeling recurrence for transformer. In Proc. of NAACL, 2019.
|
| 277 |
+
|
| 278 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NeurIPs Deep Learning and Representation Learning Workshop, 2015.
|
| 279 |
+
|
| 280 |
+
Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv: 1912.12180, 2020.
|
| 281 |
+
|
| 282 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 9(8): 1735–1780, 1997.
|
| 283 |
+
|
| 284 |
+
Thomas Hofmann, Bernhard Scholkopf, and Alexander J. Smola. Kernel methods in machine learn- ¨ ing. Annals of Statistics, 36(3):1171–1220, 2008.
|
| 285 |
+
|
| 286 |
+
Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for NLP. In Proc. of ICML, 2019.
|
| 287 |
+
|
| 288 |
+
Jungo Kasai, Nikolaos Pappas, Hao Peng, James Cross, and Noah A. Smith. Deep encoder, shallow decoder: Reevaluating the speed-quality tradeoff in machine translation. In Proc. of ICLR, 2021.
|
| 289 |
+
|
| 290 |
+
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and Francois Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In Proc. of ICML, 2020.
|
| 291 |
+
|
| 292 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proc. of ICLR, 2015.
|
| 293 |
+
|
| 294 |
+
Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Proc. of ICLR, 2014.
|
| 295 |
+
|
| 296 |
+
Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In Proc. of ICLR, 2020.
|
| 297 |
+
|
| 298 |
+
Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In Proc. of ICML, 2019.
|
| 299 |
+
|
| 300 |
+
Shiyang Li, Xiaoyong Jin, Yao Xuan, Xiyou Zhou, Wenhu Chen, Yu-Xiang Wang, and Xifeng Yan. Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. In Proc. of NeurIPS, 2019.
|
| 301 |
+
|
| 302 |
+
Peter J. Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. Generating wikipedia by summarizing long sequences. In Proc. of ICLR, 2018.
|
| 303 |
+
|
| 304 |
+
Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proc. of ACL, 2011.
|
| 305 |
+
|
| 306 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In Proc. of ICLR, 2017.
|
| 307 |
+
|
| 308 |
+
Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and Optimizing LSTM Language Models. In Proc. of ICLR, 2018.
|
| 309 |
+
|
| 310 |
+
Thomas Miconi, Kenneth Stanley, and Jeff Clune. Differentiable plasticity: training plastic neural networks with backpropagation. In Proc. of ICML, 2018.
|
| 311 |
+
|
| 312 |
+
Lesly Miculicich, Dhananjay Ram, Nikolaos Pappas, and James Henderson. Document-level neural machine translation with hierarchical attention networks. In Proc. of EMNLP, 2018.
|
| 313 |
+
|
| 314 |
+
Abdelrahman Mohamed, Dmytro Okhonko, and Luke Zettlemoyer. Transformers with convolutional context for ASR. arXiv: 1904.11660, 2019.
|
| 315 |
+
|
| 316 |
+
Nikita Nangia and Samuel Bowman. ListOps: A diagnostic dataset for latent tree learning. In Proc. of NAACL Student Research Workshop, 2018.
|
| 317 |
+
|
| 318 |
+
Junier Oliva, William Neiswanger, Barnabas Poczos, Eric Xing, Hy Trac, Shirley Ho, and Jeff Schneider. Fast function to function regression. In Proc. of AISTATS, 2015.
|
| 319 |
+
|
| 320 |
+
Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In Proc. of WMT, 2018.
|
| 321 |
+
|
| 322 |
+
Emilio Parisotto, H. Francis Song, Jack W. Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant M. Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb Noury, Matthew M. Botvinick, Nicolas Heess, and Raia Hadsell. Stabilizing transformers for reinforcement learning. In Proc. of ICML, 2020.
|
| 323 |
+
|
| 324 |
+
Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander $\mathrm { K u }$ , and Dustin Tran. Image transformer. In Proc. of ICML, 2018.
|
| 325 |
+
|
| 326 |
+
Hao Peng, Roy Schwartz, Sam Thomson, and Noah A. Smith. Rational recurrences. In Proc. of EMNLP, 2018.
|
| 327 |
+
|
| 328 |
+
Hao Peng, Roy Schwartz, Dianqi Li, and Noah A. Smith. A mixture of $h - 1$ heads is better than $h$ heads. In Proc. of ACL, 2020.
|
| 329 |
+
|
| 330 |
+
Matt Post. A call for clarity in reporting BLEU scores. In Proc. of WMT, 2018.
|
| 331 |
+
|
| 332 |
+
Jiezhong Qiu, Hao Ma, Omer Levy, Wen-tau Yih, Sinong Wang, and Jie Tang. Blockwise selfattention for long document understanding. In Findings of EMNLP, 2020.
|
| 333 |
+
|
| 334 |
+
Dragomir R. Radev, Pradeep Muthukrishnan, and Vahed Qazvinian. The ACL Anthology network. In Proc. of the Workshop on Text and Citation Analysis for Scholarly Digital Libraries, 2009.
|
| 335 |
+
|
| 336 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners, 2018.
|
| 337 |
+
|
| 338 |
+
Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, and Timothy P. Lillicrap. Compressive transformers for long-range sequence modelling. In Proc. of ICLR, 2020.
|
| 339 |
+
|
| 340 |
+
Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In Proc. of NeurIPS, 2007.
|
| 341 |
+
|
| 342 |
+
Ankit Singh Rawat, Jiecao Chen, Felix Xinnan X Yu, Ananda Theertha Suresh, and Sanjiv Kumar. Sampled softmax with random Fourier features. In Proc. of NeurIPS, 2019.
|
| 343 |
+
|
| 344 |
+
Aurko Roy, Mohammad Taghi Saffar, David Grangier, and Ashish Vaswani. Efficient content-based sparse attention with routing transformers. arXiv: 2003.05997, 2020.
|
| 345 |
+
|
| 346 |
+
Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv: 1910.01108, 2020.
|
| 347 |
+
|
| 348 |
+
J. Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. Neural Computation, 4(1):131–139, 1992.
|
| 349 |
+
J. Schmidhuber. Reducing the ratio between learning complexity and number of time varying variables in fully recurrent nets. In Proc. of ICANN, 1993.
|
| 350 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proc. of ACL, 2016.
|
| 351 |
+
Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. Q-BERT: Hessian based ultra low precision quantization of BERT. In Proc. of AAAI, 2020.
|
| 352 |
+
Sainbayar Sukhbaatar, Edouard Grave, Piotr Bojanowski, and Armand Joulin. Adaptive attention span in transformers. In Proc. of ACL, 2019.
|
| 353 |
+
Yitong Sun. Random Features Methods in Supervised Learning. PhD thesis, The University of Michigan, 2019.
|
| 354 |
+
Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking self-attention in transformer models. arXiv: 2005.00743, 2020a.
|
| 355 |
+
Yi Tay, Dara Bahri, Liu Yang, Don Metzler, and Da-Cheng Juan. Sparse sinkhorn attention. In Proc. of ICML, 2020b.
|
| 356 |
+
Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey. arXiv: 2009.06732, 2020c.
|
| 357 |
+
Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. In Proc. of ICLR, 2021.
|
| 358 |
+
Yao-Hung Hubert Tsai, Shaojie Bai, Makoto Yamada, Louis-Philippe Morency, and Ruslan Salakhutdinov. Transformer dissection: An unified understanding for transformer’s attention via the lens of kernel. In Proc. of EMNLP, 2019.
|
| 359 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proc. of NeurIPS, 2017.
|
| 360 |
+
Sinong Wang, Belinda Z. Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv: 2006.04768, 2020.
|
| 361 |
+
Ronald J. Williams and David Zipser. A learning algorithm for continually running fully recurrent neural networks. Neural Computation, 1:270–280, 1989.
|
| 362 |
+
Felix Wu, Angela Fan, Alexei Baevski, Yann Dauphin, and Michael Auli. Pay less attention with lightweight and dynamic convolutions. In Proc. of ICLR, 2019.
|
| 363 |
+
Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, and Song Han. Lite transformer with long-short range attention. In Proc. of ICLR, 2020.
|
| 364 |
+
Weiqiu You, Simeng Sun, and Mohit Iyyer. Hard-coded Gaussian attention for neural machine translation. In Proc. of ACL, 2020.
|
| 365 |
+
Felix Xinnan X Yu, Ananda Theertha Suresh, Krzysztof M Choromanski, Daniel N Holtmann-Rice, and Sanjiv Kumar. Orthogonal random features. In Proc. of NeurIPS, 2016.
|
| 366 |
+
Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed. Big bird: Transformers for longer sequences. arXiv: 2007.14062, 2020.
|
| 367 |
+
|
| 368 |
+
# Appendices
|
| 369 |
+
|
| 370 |
+
A RANDOM FEATURE ATTENTION IN MORE DETAIL
|
| 371 |
+
|
| 372 |
+
A.1 DETAILED COMPUTATION PROCEDURE
|
| 373 |
+
|
| 374 |
+
Algorithms 1 and 2 describe causal and cross random feature attention’s computation procedures.
|
| 375 |
+
|
| 376 |
+
# Algorithm 1 Causal random feature attention.
|
| 377 |
+
|
| 378 |
+
1: procedure RFA-CAUSAL( $\{ \mathbf { q } _ { i } \} _ { i = 1 } ^ { N }$ , {ki}Ni=1, {vi}Ni=1)
|
| 379 |
+
2: $\vartriangleright \mathbf { S }$ is a $D \times d$ matrix
|
| 380 |
+
3: $\vartriangleright$ is a $D$ -dimensional vector
|
| 381 |
+
4: S, $\mathbf { z } \gets \mathbf { 0 }$ , 0
|
| 382 |
+
5: for $i = 1$ to $N$ do
|
| 383 |
+
6: $\widetilde { \mathbf { q } } _ { i }$ , $\bar { \mathbf { k } } _ { i } \phi ( \mathbf { q } _ { i } )$ , $\phi ( \mathbf { k } _ { i } )$ . Random feature maps
|
| 384 |
+
7: S ← S + ki ⊗ vi
|
| 385 |
+
8: z z + ki
|
| 386 |
+
9: h>i ← q>i S/(qi · z)
|
| 387 |
+
10: 11: end foreturn $\{ { \bf h } _ { i } \} _ { i = 1 } ^ { N }$
|
| 388 |
+
12: end procedure
|
| 389 |
+
|
| 390 |
+
# Algorithm 2 Cross random feature attention.
|
| 391 |
+
|
| 392 |
+
1: procedure RFA-CROSS( $\{ \mathbf { q } _ { i } \} _ { i = 1 } ^ { N }$ , {ki}Mi=1, {vi}Mi=1)
|
| 393 |
+
2: $\vartriangleright \mathbf { S }$ is a $D \times d$ matrix
|
| 394 |
+
3: $\vartriangleright$ is a $D$ -dimensional vector
|
| 395 |
+
4: S, $\mathbf z \gets \mathbf 0$ , 0
|
| 396 |
+
5: for $i = 1$ to $M$ do
|
| 397 |
+
6: $\begin{array} { r l } & { \widetilde { \mathbf { k } } _ { i } \gets \phi ( \mathbf { k } _ { i } ) \quad \mathrm { ~ \ u ~ { ~ p ~ R ~ } ~ } } \\ & { \mathbf { S } \gets \mathbf { S } + \widetilde { \mathbf { k } } _ { i } \otimes \mathbf { v } _ { i } ^ { \top } } \\ & { \mathbf { z } \gets \mathbf { z } + \widetilde { \mathbf { k } } _ { i } } \end{array}$ andom feature map
|
| 398 |
+
7:
|
| 399 |
+
8:
|
| 400 |
+
9: end for
|
| 401 |
+
10: for $i = 1$ to $N$ do
|
| 402 |
+
11: qi ← φ(qi) . Random feature map
|
| 403 |
+
12: $\mathbf { h } _ { i } ^ { \top } \widetilde { \mathbf { q } } _ { i } ^ { \top } \mathbf { S } / ( \widetilde { \mathbf { q } } _ { i } \cdot \mathbf { z } )$
|
| 404 |
+
13: 14: return end for $\{ { \bf h } _ { i } \} _ { i = 1 } ^ { N }$
|
| 405 |
+
15: end procedure
|
| 406 |
+
|
| 407 |
+
# A.2 VARIANCE OF RANDOM FOURIER FEATURES
|
| 408 |
+
|
| 409 |
+
The following result is due to $\mathrm { Y u }$ et al. (2016). Using the same notation as in $\ S 2 . 2$
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
\mathrm { V a r } ( \phi \left( \mathbf { x } \right) \cdot \phi \left( \mathbf { y } \right) ) = \frac { 1 } { 2 D } \left( 1 - e ^ { - z ^ { 2 } } \right) ^ { 2 } ,
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
where $z = \| \mathbf x - \mathbf y \| / \sigma$ .
|
| 416 |
+
|
| 417 |
+
# A.3 DERIVATION OF CAUSAL RFA
|
| 418 |
+
|
| 419 |
+
This section presents a detailed derivation of causal RFA as in $\ S 3 . 1$ . Following Eq. 5 but changing the attended keys and values to the prefix:
|
| 420 |
+
|
| 421 |
+
$$
|
| 422 |
+
\operatorname { R F A } ( \mathbf { q } _ { t } , \{ \mathbf { k } _ { i } \} _ { i \leq t } , \{ \mathbf { v } _ { i } \} _ { i \leq t } ) = \frac { \phi \left( \mathbf { q } _ { t } \right) ^ { \top } \sum _ { i \leq t } \phi \left( \mathbf { k } _ { i } \right) \otimes \mathbf { v } _ { i } } { \phi \left( \mathbf { q } _ { t } \right) \cdot \sum _ { j \leq t } \phi \left( \mathbf { k } _ { j } \right) }
|
| 423 |
+
$$
|
| 424 |
+
|
| 425 |
+
Let $\begin{array} { r } { \mathbf { S } _ { t } \triangleq \sum _ { i \leq t } \phi ( \mathbf { k } _ { i } ) \otimes \mathbf { v } _ { i } } \end{array}$ , and $\begin{array} { r } { \mathbf { z } _ { t } \triangleq \sum _ { i \leq t } \phi ( \mathbf { k } _ { i } ) } \end{array}$ ; both can be calculated recurrently. Assuming $\mathbf { S } _ { 0 } = \mathbf { 0 }$ and ${ \bf z } _ { 0 } = { \bf 0 }$ :
|
| 426 |
+
|
| 427 |
+
$$
|
| 428 |
+
\mathbf { S } _ { t } = \mathbf { S } _ { t - 1 } + \phi \left( \mathbf { k } _ { t } \right) \otimes \mathbf { v } _ { t } , \quad \mathbf { z } _ { t } = \mathbf { z } _ { t - 1 } + \phi \left( \mathbf { k } _ { t } \right) , \quad t \geq 1 .
|
| 429 |
+
$$
|
| 430 |
+
|
| 431 |
+
This completes the derivation of causal RFA as in $\ S 3 . 1$ .
|
| 432 |
+
|
| 433 |
+
# A.4 RFA WITHOUT NORM-1 CONSTRAINTS
|
| 434 |
+
|
| 435 |
+
$\ S 3 . 1$ assumes that the queries and keys are unit vectors. This norm-1 constraint is not a must. Here we present a RFA without imposing this constraint. Let $C ( \mathbf { x } ) = \exp ( \left\| \mathbf { x } \right\| ^ { 2 } / 2 \sigma ^ { 2 } )$ . From Eq. 4 we have attn $\left( \mathbf { q } _ { t } , \{ \mathbf { k } _ { i } \} , \{ \mathbf { v } _ { i } \} \right) =$
|
| 436 |
+
|
| 437 |
+
$$
|
| 438 |
+
\begin{array} { r l r } & { } & { \sum _ { i } \frac { \exp \big ( \mathbf { q } _ { t } \cdot \mathbf { k } _ { i } / \sigma ^ { 2 } \big ) } { \sum _ { j } \exp \big ( \mathbf { q } _ { t } \cdot \mathbf { k } _ { j } / \sigma ^ { 2 } \big ) } \mathbf { v } _ { i } ^ { \top } \approx \displaystyle \sum _ { i } \frac { C \left( \mathbf { q } _ { t } \right) C \left( \mathbf { k } _ { i } \right) \phi \left( \mathbf { q } _ { t } \right) ^ { \top } \phi \left( \mathbf { k } _ { i } \right) \mathbf { v } _ { i } ^ { \top } } { \sum _ { j } C \left( \mathbf { q } _ { t } \right) C \left( \mathbf { k } _ { j } \right) \phi \left( \mathbf { q } _ { t } \right) \cdot \phi \left( \mathbf { k } _ { j } \right) } } \\ & { } & { \qquad = \frac { \phi \left( \mathbf { q } _ { t } \right) ^ { \top } \sum _ { i } C \left( \mathbf { k } _ { i } \right) \phi \left( \mathbf { k } _ { i } \right) \otimes \mathbf { v } _ { i } } { \phi \left( \mathbf { q } _ { t } \right) \cdot \sum _ { j } C \left( \mathbf { k } _ { j } \right) \phi \left( \mathbf { k } _ { j } \right) } . } \end{array}
|
| 439 |
+
$$
|
| 440 |
+
|
| 441 |
+
The specific attention computation is similar to those in $\ S 3 . 1$ . In sum, lifting the norm-1 constraint brings an additional scalar term $C ( \cdot )$ .
|
| 442 |
+
|
| 443 |
+
# A.5 RELATING RFA-GATE TO SOFTMAX ATTENTION
|
| 444 |
+
|
| 445 |
+
Drawing inspiration from gated RNNs, $\ S 3 . 2$ introduces a gated variant of RFA. Now we study its “softmax counterpart.”
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
\begin{array} { l } { { \displaystyle { \widetilde { \bf { k } } } _ { i } = { \bf { k } } _ { i } { \bf { \Gamma } } ( 1 - g _ { i } ) \prod _ { j = i + 1 } ^ { t } g _ { j } , \quad { \widetilde { \bf { v } } } _ { i } = { \bf { v } } _ { i } { \bf { \Gamma } } ( 1 - g _ { i } ) \prod _ { j = i + 1 } ^ { t } g _ { j } , \quad i = 1 , \dots , t } } \\ { { \displaystyle { \bf { h } } _ { t } = \mathrm { a t t n } ( { \bf { q } } _ { t } , \{ { \widetilde { \bf { k } } } _ { i } \} _ { i \le t } , \{ { \widetilde { \bf { v } } } _ { i } \} _ { i \le t } ) } . } \end{array}
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+
$\mathbf { h } _ { t }$ is the output at timestep $t$ and is used for onward computation.
|
| 452 |
+
|
| 453 |
+
At each step, all prefix keys and values are decayed by a gate value before calculating the attention. This implies that the attention computation for $\mathbf { q } _ { t + 1 }$ cannot start until that of $\mathbf { q } _ { t }$ is finished. Combined with the linear complexity of softmax normalization, this amounts to quadratic time in sequence length, even for language modeling training.
|
| 454 |
+
|
| 455 |
+
The above model is less intuitive and more expensive in practice, without the RFA perspective. This shows that RFA brings some benefits in developing new attention models.
|
| 456 |
+
|
| 457 |
+
# A.6 DETAILED COMPLEXITY ANALYSIS
|
| 458 |
+
|
| 459 |
+
Table 4 considers a sequence-to-sequence model, and breaks down the comparisons to training (with teacher forcing; Williams & Zipser, 1989) and autoregressive decoding. Here we assume enough threads to fully parallelize softmax attention across timesteps when the inputs are revealed to the model in full. RFA has a lower space complexity, since it never explicitly populates the attention matrices. As for time, RFA trains in linear time, and so does the softmax attention: in teacher-forcing training a standard transformer decoder parallelizes the attention computation across time steps. The trend of the time comparison differs during decoding: when only one output token is produced at a time, RFA decodes linearly in the output length, while softmax attention decodes quadratically.
|
| 460 |
+
|
| 461 |
+
<table><tr><td></td><td></td><td colspan="3">Time Complexity</td><td colspan="3"> Space Complexity</td></tr><tr><td>Setting</td><td>Model</td><td>Encoder</td><td>Cross</td><td>Causal</td><td>Encoder</td><td>Cross</td><td>Causal</td></tr><tr><td>Training w/</td><td>softmax</td><td>O(M)</td><td>O(M)</td><td>O(N)</td><td>O(M2)</td><td>O(MN)</td><td>O(N2)</td></tr><tr><td>teacher forcing</td><td>RFA</td><td>(M)</td><td>O(M)</td><td>O(N)</td><td>O(M)</td><td>O(M + N)</td><td>O(N)</td></tr><tr><td>Decoding</td><td>softmax RFA</td><td>O(M) O(M)</td><td>O(MN) O(M + N)</td><td>O(N2) O(N)</td><td>O(M2) O(M)</td><td>O(MN) O(M + N)</td><td>O(N2) O(N)</td></tr></table>
|
| 462 |
+
|
| 463 |
+
Table 4: Time and space complexity comparisons between RFA and its softmax counterpart in a sequence-to-sequence attentive model, assuming an infinite amount of available threads. $M$ and $N$ denote the lengths of the source and target sequences respectively. Teacher forcing training (Williams & Zipser, 1989) and autoregressive decoding are assumed. Blue color indicates the cases where RFA asymptotically outperforms softmax attention.
|
| 464 |
+
|
| 465 |
+
<table><tr><td>Data</td><td>Train</td><td>Dev.</td><td>Test</td><td>Vocab.</td></tr><tr><td>WikiText-103</td><td>103M</td><td>218K</td><td>246K</td><td>268K</td></tr><tr><td>WMT14 EN-DE</td><td>4.5M</td><td>3K</td><td>3K</td><td>32K</td></tr><tr><td>WMT14EN-FR</td><td>4.5M</td><td>3K</td><td>3K</td><td>32K</td></tr><tr><td>IWSLT14 DE-EN</td><td>160K</td><td>7K</td><td>7K</td><td>9K/7K</td></tr></table>
|
| 466 |
+
|
| 467 |
+
Table 5: Some statistics for the datasets. WikiText-103 split sizes are in number of tokens, while others are in number of instances.
|
| 468 |
+
|
| 469 |
+
# B EXPERIMENTAL DETAILS
|
| 470 |
+
|
| 471 |
+
Table 5 summarizes some statistics of the datasets used in our experiments. Our implementation is based on JAX.15
|
| 472 |
+
Table 6: WMT14 EN-DE development set performance varying the number of random matrices to sample from during training. No beam search or checkpoint averaging is used.
|
| 473 |
+
|
| 474 |
+
<table><tr><td># Random Matrices</td><td>1</td><td>50</td><td>100</td><td>200</td></tr><tr><td>BLEU</td><td>24.0</td><td>25.7</td><td>25.8</td><td>25.8</td></tr></table>
|
| 475 |
+
|
| 476 |
+
During training, we sample a different random projection matrix for each attention head. Preliminary experiments suggest this performs better than using the same random projection throughout training (Table 6). Our conjecture is that this helps keep the attention heads from “over committing” to any particular random projection (Peng et al., 2020). To avoid the overhead of sampling from Gaussian during training, we do this in an offline manner. I.e., before training we construct a pool of random matrices (typically 200), at each training step we draw from the pool. At test time each attention head uses the same random projection, since no accuracy benefit is observed by using different ones for different test instances.
|
| 477 |
+
|
| 478 |
+
# B.1 LANGUAGE MODELING
|
| 479 |
+
|
| 480 |
+
We compare the models using two model size settings, summarized in Table 7. We use the fixed sinusoidal position embeddings by Vaswani et al. (2017). All models are trained for up to 150K gradient steps using the Adam optimizer (Kingma & Ba, 2015). No $\ell _ { 2 }$ -regularization is used. We apply early stopping based on development set perplexity. All models are trained using 16 TPU v3 accelerators, and tested using a single TPU v2 accelerator.
|
| 481 |
+
|
| 482 |
+
Table 7: Hyperparameters used in the language modeling experiments.
|
| 483 |
+
|
| 484 |
+
<table><tr><td>Hyperprams.</td><td>Small</td><td>Big</td></tr><tr><td>#Layers</td><td>6</td><td>16</td></tr><tr><td>#Heads</td><td>8</td><td>16</td></tr><tr><td>Embedding Size</td><td>512</td><td>1024</td></tr><tr><td>Head Size</td><td>64</td><td>64</td></tr><tr><td>FFN Size</td><td>2048</td><td>4096</td></tr><tr><td>Batch Size</td><td>64</td><td>64</td></tr><tr><td>Learning Rate</td><td>[1 × 10-4,2.5 × 10-4,5 × 10-4]</td><td></td></tr><tr><td>Warmup Steps</td><td>6000</td><td>6000</td></tr><tr><td>Gradient Clipping Norm</td><td>0.25</td><td>0.25</td></tr><tr><td>Dropout</td><td>[0.05, 0.1]</td><td>[0.2, 0.25, 0.3]</td></tr><tr><td>Random Feature Map Size</td><td>64</td><td>64</td></tr></table>
|
| 485 |
+
|
| 486 |
+
# B.2 MACHINE TRANSLATION
|
| 487 |
+
|
| 488 |
+
WMT14. We use the fixed sinusoidal position embeddings by Vaswani et al. (2017). For both EN-DE and EN-FR experiments, we train the models using the Adam (with $\beta _ { 1 } = 0 . 1$ , $\beta _ { 2 } = 0 . 9 8$ , and $\epsilon = 1 0 ^ { - 9 }$ ) optimizer for up to 350K gradient steps. We use a batch size of 1,024 instances for EN-DE, while 4,096 for the much larger EN-FR dataset. The learning rate follows that by Vaswani et al. (2017). Early stopping is applied based on development set BLEU. No $\ell _ { 2 }$ regularization or gradient clipping is used. All models are trained using 16 TPU v3 accelerators, and tested using a single TPU v2 accelerator. Following standard practice, we average 10 most recent checkpoints at test time. We evaluate the models using SacreBLEU (Post, 2018).16 A beam search with beam size 4 and length penalty 0.6 is used. Other hyperparameters are summarized in Table 8.
|
| 489 |
+
|
| 490 |
+
Table 8: Hyperparameters used in the machine translation experiments.
|
| 491 |
+
|
| 492 |
+
<table><tr><td>Hyperprams.</td><td>WMT14</td><td>IWSLT14</td></tr><tr><td>#Layers</td><td>6</td><td>6</td></tr><tr><td>#Heads</td><td>8</td><td>8</td></tr><tr><td>Embedding Size</td><td>512</td><td>512</td></tr><tr><td>Head Size</td><td>64</td><td>64</td></tr><tr><td>FFN Size</td><td>2048</td><td>2048</td></tr><tr><td>Warmup Steps</td><td>6000</td><td>4000</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.3</td></tr><tr><td>Cross Attention Feature Map</td><td>128</td><td>128</td></tr><tr><td>Causal Attention Feature Map</td><td>64</td><td>64</td></tr></table>
|
| 493 |
+
|
| 494 |
+
# C MORE ANALYSIS RESULTS
|
| 495 |
+
|
| 496 |
+
C.1 MORE RESULTS ON DECODING SPEED AND MEMORY OVERHEAD
|
| 497 |
+
|
| 498 |
+
Figure 3 compares the RFA’s unconditional decoding speed and memory against the softmax attention. The setting is the same as that in $\ S 5$ except that here the models do not have an encoder. This experiment aims to simulate the applications such as sampling from a language model.
|
| 499 |
+
|
| 500 |
+
# C.2 EFFECT OF RANDOM FEATURE SIZE
|
| 501 |
+
|
| 502 |
+
This section studies how the size of $\phi ( \cdot )$ affects the performance. Table 9 summarize RFAGaussian’s performance on WMT14 EN-DE development set. The model and training are the same as that used in $\ S 4 . 2$ except random feature size. Recall from $\ S 2 . 2$ that the size of $\bar { \phi } ( \cdot )$ is $2 D$ for
|
| 503 |
+
|
| 504 |
+

|
| 505 |
+
Figure 3: Unconditional decoding speed (left) and memory overhead (right) varying the output lengths. All models are tested on a single TPU v2 accelerator, with greedy decoding and batch size 16.
|
| 506 |
+
|
| 507 |
+
RFA-Gaussian. When the size of $\phi ( \cdot )$ is too small (32 or 64 for cross attention, 32 for causal attention), training does not converge. We observe accuracy improvements by using random features sufficiently large (256 for cross attention and 128 for causal attention); going beyond that, the benefit is marginal.
|
| 508 |
+
|
| 509 |
+
<table><tr><td>Size</td><td>32</td><td>64</td><td>128</td><td>256</td><td>512</td></tr><tr><td>BLEU</td><td>N/A</td><td>N/A</td><td>24.9</td><td>25.8</td><td>26.0</td></tr></table>
|
| 510 |
+
|
| 511 |
+
<table><tr><td> Size</td><td>32</td><td>64</td><td>128</td><td>256</td><td>512</td></tr><tr><td>BLEU</td><td>N/A</td><td>25.3</td><td>25.8</td><td>25.8</td><td>25.6</td></tr></table>
|
| 512 |
+
|
| 513 |
+
(a) Varying cross attention $\phi$ sizes while fixing that of causal attention to be 128.
|
| 514 |
+
|
| 515 |
+
(b) Varying causal attention $\phi$ sizes while fixing that of cross attention to be 256.
|
| 516 |
+
|
| 517 |
+
Table 9: WMT14 EN-DE development set performance of RFA-Gaussian (the size of $\phi$ is $2 D$ ; $\ S 2 . 2 )$ varying the random feature sizes. N/A indicates training does not converge. No beam search or checkpoint averaging is used.
|
| 518 |
+
|
| 519 |
+
# C.3 TRAIN AND EVALUATE WITH DIFFERENT ATTENTION FUNCTIONS
|
| 520 |
+
|
| 521 |
+
RFA achieves comparable performance to its softmax counterpart. Does this imply that it learns a good approximation to the softmax attention? To answer this question, we consider:
|
| 522 |
+
|
| 523 |
+
(i) an RFA-Gaussian model initialized from a pretrained softmax-transformer;
|
| 524 |
+
(ii) a softmax-transformer initialized from a pretrained an RFA-Gaussian model.
|
| 525 |
+
|
| 526 |
+
If RFA’s good performance can be attributed to learning a good approximation to softmax, both, without finetunining, should perform similarly to the pretrained models. However, this is not the case on IWSLT14 DE-EN. Both pretrained models achieve more than 35.2 development set BLEU. In contrast, (i) and (ii) respectively get 2.3 and 1.1 BLEU without finetuning, hardly beating a randomly-initialized untrained model. This result aligns with the observation by Choromanski et al. (2021), and suggests that it is not the case that RFA performs well because it learns to imitate softmax attention’s outputs.
|
| 527 |
+
|
| 528 |
+
# C.4 KNOWLEDGE TRANSFER FROM SOFTMAX ATTENTION TO RFA
|
| 529 |
+
|
| 530 |
+
We first supplement the observation in Appendix C.3 by finetuning (i) on the same pretraining data. Figure 4 plots the learning curves. It takes RFA roughly 1,500 steps to reach similar training loss to the pretrained model. As a baseline, “RFA Reset” resets the multihead attention parameters (i.e., those for query, key, value, and output projections) to randomly initialized ones. Its learning curve is similar to that of (i), suggesting that the pretrained multihead attention parameters are no more useful to RFA than randomly initialized ones. To further confirm this observation, “softmax Reset”
|
| 531 |
+
|
| 532 |
+

|
| 533 |
+
Figure 4: Finetuning an RFA-Gaussian model with its parameters initialized from a pretrained softmax-transformer. “Reset” indicates resetting the multihead attention parameters to randomlyinitialized ones. The dashed line indicates the training loss of the pretrained model.
|
| 534 |
+
|
| 535 |
+
resets the multihead attention parameters without changing the attention functions. It converges to the pretraining loss in less than 200 steps.
|
| 536 |
+
|
| 537 |
+
Takeaway. From the above results on IWSLT14, pretrained knowledge in a softmax transformer cannot be directly transferred to an RFA model. However, from Figure 4 and a much larger-scale experiment by Choromanski et al. (2021), we do observe that RFA can recover the pretraining loss, and the computation cost of finetuning is much less than training a model from scratch. This suggests some potential applications. For example, one might be able to initialize an RFA language model from a softmax transformer pretrained on large-scale data (e.g., GPT-3; Brown et al., 2020), and finetune it at a low cost. The outcome would be an RFA model retaining most of the pretraining knowledge, but is much faster and more memory-friendly to sample from. We leave such exploration to future work.
|
parse/train/QtTKTdVrFBB/QtTKTdVrFBB_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/QtTKTdVrFBB/QtTKTdVrFBB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/QtTKTdVrFBB/QtTKTdVrFBB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/RovX-uQ1Hua/RovX-uQ1Hua.md
ADDED
|
@@ -0,0 +1,453 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TEXT GENERATION BY LEARNING FROM DEMONSTRATIONS
|
| 2 |
+
|
| 3 |
+
Richard Yuanzhe Pang 1
|
| 4 |
+
|
| 5 |
+
yzpang@nyu.edu
|
| 6 |
+
|
| 7 |
+
He He 1,2 hehe@cs.nyu.edu
|
| 8 |
+
|
| 9 |
+
1 Courant Institute of Mathematical Sciences, New York University, New York, NY 10011, USA
|
| 10 |
+
2 Center for Data Science, New York University, New York, NY 10011, USA
|
| 11 |
+
|
| 12 |
+
# ABSTRACT
|
| 13 |
+
|
| 14 |
+
Current approaches to text generation largely rely on autoregressive models and maximum likelihood estimation. This paradigm leads to (i) diverse but low-quality samples due to mismatched learning objective and evaluation metric (likelihood vs. quality) and (ii) exposure bias due to mismatched history distributions (gold vs. model-generated). To alleviate these problems, we frame text generation as an offline reinforcement learning (RL) problem with expert demonstrations (i.e., the reference), where the goal is to maximize quality given model-generated histories. We propose GOLD (generation by off-policy learning from demonstrations): an easy-to-optimize algorithm that learns from the demonstrations by importance weighting. Intuitively, GOLD upweights confident tokens and downweights unconfident ones in the reference during training, avoiding optimization issues faced by prior RL approaches that rely on online data collection. According to both automatic and human evaluation, models trained by GOLD outperform those trained by MLE and policy gradient on summarization, question generation, and machine translation. Further, our models are less sensitive to decoding algorithms and alleviate exposure bias.
|
| 15 |
+
|
| 16 |
+
# 1 INTRODUCTION
|
| 17 |
+
|
| 18 |
+
A dominant approach to text generation is to use autoregressive models learned by maximum likelihood estimation (MLE) on supervised data. However, this approach introduces two well-known discrepancies between training and evaluation objectives that lead to undesired generations. First, the training loss is negative log-likelihood, whereas the evaluation is based on human judgment of the output quality. Under model misspecification, MLE tends to over-generalize, assigning large probability mass to both high-quality and low-quality sequences (Huszar, 2015; Simon et al., 2019). ´ Therefore, in practice, we must carefully select the decoding algorithms to produce high-quality outputs.
|
| 19 |
+
|
| 20 |
+
Second, during training, the autoregressive model conditions on the gold history/prefix; however, at inference time it conditions on model-generated history. This is known as the exposure bias problem (Ranzato et al., 2016; Bengio et al., 2015). In the worst case, one incorrect prediction can produce a low-probability prefix under the gold data distribution, and errors compound in each of the following steps (Ross et al., 2011). In practice, prior work has observed problems such as repetition and hallucination partly due to exposure bias (Holtzman et al., 2020; Wang & Sennrich, 2020).
|
| 21 |
+
|
| 22 |
+
We aim to bridge the gap between training and evaluation in this paper. To match training and evaluation objectives, ideally we should maximize output quality given model-generated histories. This corresponds to the reinforcement learning (RL) objective: maximizing the expected reward (quality) over trajectories (sequences) induced by the policy (model). However, optimizing this objective is notoriously difficult. Prior RL approaches mainly focus on fine-tuning a learned model to optimize sequence-level metrics such as BLEU (Papineni et al., 2002), but empirically it remains unclear if RL is beneficial to text generation (Wu et al., 2018; Choshen et al., 2020). Note that many challenges in RL arise from exploring an exponentially large space of sequences, with sparse rewards only on those close to the reference. We thus propose to learn from only the reference sequences without interaction (i.e., the offline setting). Specifically, we use off-policy policy gradient with importance weighting (Hastings, 1970; Hachiya et al., 2009; Parshakova et al., 2019), where training examples with higher probability under the model are weighted higher. Further, our reward functions approximate human judgment of the output quality by estimating how likely a human would have generated a sequence. We call our algorithm GOLD (Generation by Off-policy Learning from Demonstrations).
|
| 23 |
+
|
| 24 |
+
Results on news summarization, question generation, and machine translation show that GOLD leads to better model performance than MLE and RL fine-tuning by both task metrics and human-rated quality. Further, our analysis shows that GOLD learns high-precision models that are less sensitive to decoding algorithms. In addition, it alleviates exposure bias: the output quality does not degrade much as generation length increases.
|
| 25 |
+
|
| 26 |
+
# 2 FROM MLE TO RL FRAMEWORK
|
| 27 |
+
|
| 28 |
+
MLE training. Given a context $_ { \textbf { \em x } }$ such as a document, we want to generate a sequence of tokens $\pmb { y } = ( y _ { 0 } , \dots , y _ { T } )$ , where $y _ { i }$ comes from a vocabulary $\nu$ . The generator is modeled by a conditional probability distribution parametrized by $\theta$ : $\begin{array} { r } { p _ { \theta } ( \pmb { y } \mid x ) = \prod _ { t = 0 } ^ { T } p _ { \theta } ( y _ { t } \mid \pmb { y } _ { 0 : t - 1 } , \pmb { x } ) } \end{array}$ , where ${ \bf { \sigma } } _ { { \bf { y } } _ { 0 : } { t - 1 } }$ denotes the prefix $y _ { 0 } , \ldots , y _ { t - 1 }$ . Let $p _ { \mathrm { h u m a n } } ( \pmb { y } \mid \pmb { x } )$ denote the data-generating distribution. Using MLE, the loss function is
|
| 29 |
+
|
| 30 |
+
$$
|
| 31 |
+
\mathcal { L } ( \theta ) = - \mathbb { E } _ { y \sim p _ { \mathrm { h u m a n } } } \left[ \sum _ { t = 0 } ^ { T } \log p _ { \theta } ( y _ { t } \mid y _ { 0 : t - 1 } , \boldsymbol { x } ) \right] .
|
| 32 |
+
$$
|
| 33 |
+
|
| 34 |
+
At inference time, we generate tokens sequentially according to $p _ { \theta }$
|
| 35 |
+
|
| 36 |
+
Evaluation. In practice, the quality of an output often relies on task-specific metrics such as fluency, correctness, and interestingness. Here for generality we consider perceptual quality (Huszar, 2015; ´ Hashimoto et al., 2019) which measures how likely a human would have generated the output given the context, i.e., $p _ { \mathrm { h u m a n } } ( \pmb { y } \mid \pmb { x } )$ . Thus the evaluation metric is
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\mathbb { E } _ { { \pmb y } \sim p _ { \theta } } \left[ \sum _ { t = 0 } ^ { T } \log p _ { \mathrm { h u m a n } } ( y _ { t } \mid \pmb y _ { 0 : t - 1 } , \pmb x ) \right] .
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
Comparing (1) and (2), we see that the training objective encourages high recall: the model must put probability mass on all human-generated sequences. In contrast, the evaluation metric encourages high precision: all outputs from the model must be of high quality. Unfortunately, directly optimizing the evaluation metric is impossible because $p _ { \mathrm { h u m a n } }$ is unknown and the expectation is difficult to estimate. We therefore develop a training objective that closely approximates (2) in the RL framework.
|
| 43 |
+
|
| 44 |
+
RL formulation. Let’s consider generation as a sequential decision-making process. At each time step $t$ , the policy $\pi _ { \theta }$ takes an action $a _ { t } \in \mathcal V$ , transits to the next state $s _ { t + 1 } = ( \pmb { y } _ { 0 : t } , \pmb { x } )$ , and receives a reward $r _ { t }$ . The policy corresponds to the generation model: $\pi _ { \boldsymbol { \theta } } ( a _ { t } \mid s _ { t } ) = p _ { \boldsymbol { \theta } } ( a _ { t } \mid \pmb { y } _ { 0 : t - 1 } , \pmb { x } )$ . We can thus represent a sequence as a trajectory $\tau = ( s _ { 0 } , a _ { 0 } , r _ { 0 } , \ldots , s _ { T } , a _ { T } , r _ { T } )$ . The set of trajectories derived from the training data is called demonstrations which show the desired behavior of a policy. The RL objective is to maximize J(θ) = Eτ∼πθ $J ( \theta ) = \mathbb { E } _ { \tau \sim \pi _ { \theta } } \left[ \sum _ { t = 0 } ^ { T } \gamma ^ { t } r _ { t } \right]$ , where $\gamma \in ( 0 , 1 ]$ is the discount factor, and $\pi _ { \boldsymbol { \theta } } ( \tau )$ denotes the distribution of $\tau$ induced by $\pi _ { \theta }$ . If we knew oracle rewards $r _ { t } = p _ { \mathrm { h u m a n } } ( a _ { t } \mid s _ { t } )$ , then this objective would be exactly the evaluation metric we want to optimize. Next, we describe how to optimize $J ( \theta )$ with reward functions that approximate $p _ { \mathrm { h u m a n } }$ .
|
| 45 |
+
|
| 46 |
+
# 3 APPROACH
|
| 47 |
+
|
| 48 |
+
# 3.1 OFF-POLICY POLICY GRADIENT
|
| 49 |
+
|
| 50 |
+
Policy gradient. A straightforward way to optimize $J ( \theta )$ is policy gradient (PG) (Williams, 1992; Sutton et al., 2000). The gradient is given by
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\nabla _ { \theta } J ( \theta ) = \mathbb { E } _ { \tau \sim \pi _ { \theta } } \left[ \sum _ { t } \nabla _ { \theta } \log \pi _ { \theta } ( a _ { t } \mid s _ { t } ) \hat { Q } ( s _ { t } , a _ { t } ) \right] ,
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where Qˆ(st, at) = PTt0=t γ is the estimated return from state $s _ { t }$ . The expectation is estimated by Monte Carlo samples from $\pi _ { \theta }$ . In text generation, the return $\hat { Q } ( s _ { t } , a _ { t } )$ is often a sequence-level reward such as BLEU. In practice, the policy is likely to get stuck in a region of zero reward during training, generating gibberish without receiving any learning signal (Li et al., 2018; Keneshloo et al., 2019). A common remedy is to initialize the policy with the MLE solution and/or interleave with MLE gradient update during PG. However, this would bias the parameters towards the MLE solution, thus often leads to marginal gains in practice (Wu et al., 2018; Choshen et al., 2020).
|
| 57 |
+
|
| 58 |
+
Offline learning. To avoid zero-reward regions, we would like to reduce interaction with the environment and stay close to the demonstrated trajectories. In the extreme case, the policy is learned solely from the static demonstrations without additional interaction with the environment, which is referred to as the offline setting. While it is in general a more challenging problem, we argue that the offline setting is appropriate for text generation (Serban et al., 2017; Jaques et al., 2019). First, the environment dynamics is known: once a token is generated, we deterministically transition to the next state with the additional token appended to the prefix; no interaction is needed to learn the environment. Second, while exploration may lead to high-quality sequences different from the reference, we lack a good reward function to identify them (Novikova et al., 2017; Aharoni & Goldberg, 2018; Clark et al., 2019). Therefore, the benefit of exploration in text generation is limited.
|
| 59 |
+
|
| 60 |
+
In the offline setting, we cannot estimate the expected return of $\pi _ { \theta }$ by sampling trajectories from it, and must use trajectories from a different behavioral policy $\pi _ { b }$ , known as off-policy learning in RL. A common technique to estimate expectations under one distribution $\pi _ { \theta }$ given samples from a different distribution $\pi _ { b }$ is importance sampling, which leads to the following unbiased estimator of the gradient (Precup et al., 2000):
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\mathbb { E } _ { \tau \sim \pi _ { b } } \left[ \sum _ { t } w _ { t } \nabla _ { \theta } \log \pi _ { \theta } ( a _ { t } \mid s _ { t } ) \hat { Q } ( s _ { t } , a _ { t } ) \right] ,
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
with importance weights wt = Qtt0=0 πθ(at0 |st0 )πb(at0 |st0 ) .
|
| 67 |
+
|
| 68 |
+
Approximations. Computing the importance weights above requires multiplying per-action importance weight over multiple time steps. In practice, we have found that it is sensitive to optimization hyperparameters and takes longer to converge. Therefore, we use the per-action approximation: $\begin{array} { r } { w _ { t } \approx \frac { \pi _ { \theta } ( a _ { t } | s _ { t } ) } { \pi _ { b } ( a _ { t } | s _ { t } ) } } \end{array}$ . This corresponds to optimizing the expected return under the off-policy state distribution induced by $\pi _ { b }$ and the on-policy action distribution of $\pi _ { \theta }$ . Although this estimator is biased, empirically it has been shown to reduce variance and work reasonably well if $\pi _ { b }$ and $\pi _ { \theta }$ are close (Serban et al., 2017; Levine et al., 2020). Another obstacle is that we do not know $\pi _ { b }$ which produced the demonstrations $\mathcal { D } = \{ ( \boldsymbol { { \mathbf { x } } ^ { ( i ) } } , \boldsymbol { { \mathbf { y } } ^ { ( i ) } } ) \} _ { i = 1 } ^ { N }$ . One option is to estimate $\pi _ { b }$ on $\mathcal { D }$ . Here we take a simpler approach that uses the empirical distribution: $\pi _ { b } ( \tau ) \approx 1 / N$ for $\tau \in \mathcal { D }$ and 0 otherwise. As a result, the denominator in $w _ { t }$ is a constant and can be ignored in optimization. Our final approximated gradient has the form:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\nabla _ { \theta } J ( \theta ) \approx \sum _ { i = 1 } ^ { N } \sum _ { t = 0 } ^ { T } \pi _ { \theta } ( a _ { t } ^ { i } \mid s _ { t } ^ { i } ) \nabla _ { \theta } \log \pi _ { \theta } ( a _ { t } ^ { i } \mid s _ { t } ^ { i } ) \hat { Q } ( s _ { t } ^ { i } , a _ { t } ^ { i } ) ,
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where the superscript $i$ represents the $i$ th trajectory. Compared with the MLE gradient: $\begin{array} { r } { \sum _ { i = 1 } ^ { N } \sum _ { t = 0 } ^ { T } \bar { \nabla _ { \theta } } \log \bar { \pi _ { \theta } } ( a _ { t } ^ { i } \mathbf { \pi } | \mathbf { \pi } \bar { s } _ { t } ^ { i } ) } \end{array}$ , our gradient (4) upweights actions with high return and actions preferred by the current policy $\pi _ { \theta }$ . Intuitively, it encourages the learning algorithm to focus on “easy” examples (high likelihood under the model) which improves precision.
|
| 75 |
+
|
| 76 |
+
# 3.2 REWARD
|
| 77 |
+
|
| 78 |
+
Let $R$ be the reward function such that $r _ { t } = R ( s _ { t } , a _ { t } )$ . To optimize the perceptual quality of a sequence (see (2)), we want $R ( s , a )$ to approximate $p _ { \mathrm { h u m a n } } ( a \mid s )$ , i.e., how likely humans would have generated $a$ given $s$ . In general, it is hard to develop a reliable reward function for text generation tasks because it must work well for a large set of possible generations. In the offline setting, however, we can restrict the domain of $R$ to state-action pairs on the demonstrations. Next, we propose three reward functions.
|
| 79 |
+
|
| 80 |
+
$\delta$ -reward. An obvious choice is a sequence-level reward, which considers all demonstrations to be equally good and assigns zero reward to any other outputs. Formally,
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
R _ { \delta } { \left( s _ { t } , a _ { t } \right) } \stackrel { \mathrm { d e f } } { = } \left\{ \begin{array} { l l } { 1 , } & { \mathrm { i f } t = T \mathrm { a n d } \left( s _ { 0 : T } , a _ { 0 : T } \right) \in \mathcal { D } } \\ { 0 , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where a reward of one is received in the terminal state for any trajectory in the demonstrations.
|
| 87 |
+
|
| 88 |
+
Estimated $p _ { \mathbf { h u m a n } }$ . In text generation tasks, an input often has many correct outputs and the reference may be an uncommon output that contains rare words or has complex syntax. To account for different likelihood of the references, we estimate the probability of each reference by minimizing ${ \mathrm { K L } } \left( p _ { \mathrm { h u m a n } } \| q \right)$ , where $q ( a \mid s )$ approximates $p _ { \mathrm { h u m a n } } ( a \mid s )$ . This is equivalent to finding the MLE solution (denoted by $p _ { \mathrm { M L E } }$ ).1 Importantly, $p _ { \mathrm { M L E } }$ is a reasonable approximation to $p _ { \mathrm { h u m a n } }$ when restricted to the demonstrations. It is not a good reward function in general, however; it can assign large probability mass to low-quality outputs. Given the estimated perceptual quality $p _ { \mathrm { M L E } } ( a \mid s )$ , we define two reward functions. Our first reward function corresponds to a product of probabilities when summed over the trajectory:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
R _ { p } ( s , a ) \ { \stackrel { \mathrm { d e f } } { = } } \ \log p _ { \mathrm { M L E } } ( a \mid s ) .
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
Assuming $\gamma = 1$ , the return at time step $t$ is $\begin{array} { r } { \hat { Q } _ { t } ( s _ { t } , a _ { t } ) = \sum _ { t ^ { \prime } = t } ^ { T } \log p _ { \mathrm { M L E } } ( a _ { t } \mid s _ { t } ) } \end{array}$ . Thus a sequence has high reward only if every word has high likelihood under $p _ { \mathrm { M L E } }$ . To allow for partial credits even if bad actions are taken at certain steps, we define another reward function corresponding to the sum of probabilities:
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
R _ { s } ( s , a ) \stackrel { \mathrm { d e f } } { = } p _ { \mathrm { M L E } } ( a \mid s ) .
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
The return subsequent $\begin{array} { r } { \hat { Q } ( s _ { t } , a _ { t } ) = \sum _ { t ^ { \prime } = t } ^ { T } p _ { \mathrm { M L E } } ( a _ { t } \mid s _ { t } ) } \end{array}$ , thus the policy can recover from bad decisions if the
|
| 101 |
+
|
| 102 |
+
# 3.3 THE GOLD ALGORITHM
|
| 103 |
+
|
| 104 |
+
Our full algorithm based on off-policy PG is shown in Algorithm 1. For importance weights $\pi _ { \theta } ( a \mid s )$ 1 , to avoid drastic changes, we initialize $\pi _ { \theta }$ 2 with the MLE solution. In addition, we 3 compute the importance weights by a weighting policy $\tilde { \pi } _ { \boldsymbol { \theta } }$ that synchronizes with $\pi _ { \theta }$ 4 periodically 5 so that the weights do not change frequently between updates. We also lower-bound the importance weight by a small number $u$ .
|
| 105 |
+
|
| 106 |
+
# Algorithm 1: GOLD
|
| 107 |
+
|
| 108 |
+
$\pi _ { \theta } p _ { \mathrm { M L E } }$ , $\tilde { \pi } _ { \boldsymbol { \theta } } \gets p _ { \mathrm { M L E } }$
|
| 109 |
+
for $s t e p = 1 , 2 , \ldots , M \mathbf { d }$ o Sample a minibatch $B = \{ ( \pmb { x } ^ { i } , \pmb { y } ^ { i } ) \} _ { i = 1 } ^ { | B | }$ foreach $( s _ { t } ^ { i } , a _ { t } ^ { i } )$ do Compute importance weights $\operatorname* { m a x } ( u , \tilde { \pi } _ { \theta } )$ , and compute returns $\hat { Q } ( s _ { t } ^ { i } , a _ { t } ^ { i } ) - b$ Update $\theta$ by (4) using gradient descent if step $\% k = 0$ then $\tilde { \pi } _ { \boldsymbol { \theta } } \gets \pi _ { \boldsymbol { \theta } }$
|
| 110 |
+
|
| 111 |
+
6 Another source of variance comes from policy 7 gradients. Since our return is computed from a 8 sum or product of probabilities ((6) and (7)), we truncate the future trajectory after five steps. We
|
| 112 |
+
|
| 113 |
+
Return: $\pi _ { \theta }$
|
| 114 |
+
|
| 115 |
+
follow the common practice to subtract a baseline $b$ from the return to reduce variance; moreover, to avoid negative reward on the demonstrations (after subtracting baseline), we lower-bound $p _ { \mathrm { M L E } }$ in (6) and (7) by a small number $c$ . In practice, GOLD is easy to implement; further, given an existing $p _ { \mathrm { M L E } }$ , the GOLD-training stage usually takes less time than MLE. The code is available.2.
|
| 116 |
+
|
| 117 |
+
# 4 EXPERIMENTS
|
| 118 |
+
|
| 119 |
+
# 4.1 SETUP
|
| 120 |
+
|
| 121 |
+
We chose four text generation tasks: (1) question generation (NQG; Zhou et al., 2017): given a passage and a short span of the passage, the goal is to generate a question that can be answered by the span; (2) summarization (CNN/DM; Hermann et al., 2015); (3) extreme summarization (XSum; Narayan et al., 2018): the references are more abstractive than CNN/DM summaries; (4) machine translation (IWSLT14 De-En; Cettolo et al., 2014). See Appendix A.1 for the size and the source of the datasets. We evaluate NQG and summarization by both automatic metrics, i.e., corpus-level BLEU-4 (Papineni et al., 2002) and ROUGE-1/2/L (Lin, 2004) respectively, as well as human ratings.
|
| 122 |
+
|
| 123 |
+
We experiment with three variants of GOLD: GOLD- $\delta$ , GOLD- $p _ { \cdot }$ , GOLD- $s$ , which uses the $\delta$ -reward and the two estimated rewards $R _ { p }$ and $R _ { s }$ ), respectively. Our baseline learning algorithm is standard MLE, and we compare with on-policy RL training using policy gradient in Section 4.3. We describe models for each task at the beginning of Section 4.2.
|
| 124 |
+
|
| 125 |
+
For GOLD training, we use the baseline $b = - 6 0$ for GOLD- $p$ and $b = 0$ for GOLD- $s$ . To lower bound the return such that it is non-negative on demonstrated trajectories, we tune the lower bound $c$ of $p _ { \mathrm { M L E } }$ in $\{ 0 , 0 . 0 1 , 0 . 0 5 , 0 . 1 \}$ in (6) and (7). Furthermore, to reduce variance for importance weights, we lower bound them by $u \in \{ 0 , 0 . 1 , 0 . 1 5 , 0 . 2 \}$ . All hyperparameters are tuned on the dev set. See Appendix A.3 for more reproduciblility details.
|
| 126 |
+
|
| 127 |
+
# 4.2 RESULTS AND ANALYSIS
|
| 128 |
+
|
| 129 |
+
Table 1: BLEU/ROUGE $( \uparrow )$ and perplexity (↓) using standard models on test sets. GOLD achieves better metric scores despite high heldout perplexity. Experiments are run using a fixed random seed (12); attempted three random seeds (1, 12, 123) and all BLEU/R-2 scores are within 0.1 points of the reported. Refer to Table 3 for transformer results.
|
| 130 |
+
|
| 131 |
+
<table><tr><td rowspan="3">MLE</td><td>NQG (NQG++ net)</td><td></td><td>CNN/DM (pointer generator network)</td></tr><tr><td>BLEU↑</td><td>ppl↓</td><td>R-1↑R-2↑R-L↑ ppl↓</td></tr><tr><td>14.23 14.96</td><td>29.25</td><td>39.00 17.10 36.07 20.11</td></tr><tr><td>GOLD-δ GOLD-p</td><td>15.93</td><td>110.58 148.84</td><td>39.02 217.16 35.98 133.10</td></tr><tr><td>GOLD-s</td><td>16.10</td><td>158.45</td><td>39.20 17.31 36.23 143.58 39.95 17.81 36.81 29.80</td></tr></table>
|
| 132 |
+
|
| 133 |
+
Table 2: Dev set results of standard models using different decoding algorithms. $b$ : beam size. We report the average of 3 runs for top- $k$ sampling. Models trained by GOLD are less sensitive to decoding algorithms.
|
| 134 |
+
|
| 135 |
+
<table><tr><td>MLE</td><td>NQG (BLEU)</td><td>CNN/DM (ROUGE-2)</td></tr><tr><td></td><td>GOLD-s MLE</td><td>GOLD-s</td></tr><tr><td>greedy</td><td>14.13 16.06</td><td>17.40 18.51</td></tr><tr><td>beam search (b = 3) beam search (b = 5)</td><td>14.19 15.84</td><td>17.65 18.44</td></tr><tr><td>top-k samp. (k = 5) 11.27</td><td>14.07 15.74 15.41</td><td>17.63 18.25</td></tr><tr><td>top-k samp.(k = 20) 10.08</td><td>15.38</td><td>13.06 17.02</td></tr><tr><td></td><td></td><td>11.23 16.57</td></tr></table>
|
| 136 |
+
|
| 137 |
+
GOLD improves both standard and transformer models. Recall that one of our main motivations is that MLE tends to over-generalize under model misspecification, i.e., high recall but low precision. One may wonder whether this problem can be fixed by better modeling. Therefore, we evaluated GOLD with both standard high-performing models and state-of-the-art pretrained model. For standard models, we chose two representative seq2seq-based models, $\mathrm { N Q G + + }$ (Zhou et al., 2017) and the pointer-generator model (See et al., 2017) for NQG and CNN/DM respectively.3 Table 1 shows that GOLD is better than MLE in terms of BLEU and ROUGE. In particular, we find that using estimated rewards is superior to the $\delta$ -reward, showing the benefits of accounting for varying quality of the references. We thus consider only GOLD- $p$ and GOLD- $s$ in the rest of the experiments. For transformer models (Vaswani et al., 2017), we used the pretrained BART (Lewis et al., 2020) for NQG, CNN/DM, and XSum; we used standard transformer for IWSLT14 De-En. Table 3 shows that GOLD achieves better scores than MLE across all tasks, including near-SOTA on CNN/DM (R-2 $9 5 \%$ confidence interval: 21.84-22.33) and good performance on XSum (R-2 $9 5 \%$ CI: 22.25-22.92).
|
| 138 |
+
|
| 139 |
+
We further crowdsourced human evaluation by pairwise comparison4 between MLE-trained and GOLD- $s$ -trained model outputs. Each pair of comparison is repeated three times (by three different workers) and we take the majority answer. For each dataset, the evaluations are done by at least 15 different workers. For NQG, we showed workers the entire input and the questions generated by two models, and we ask workers to select the better one (with a third “tie” option). For summarization, we ask workers to select the generation closer in meaning to the reference without showing the article. More details are in Appendix C. Table 5 shows that workers prefer outputs from models trained by GOLD more often than those trained by MLE.
|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 1: Histograms of token-level NLL loss using standard models on NQG and CNN/DM dev sets. MLE learns high-recall models whose loss distribution is spread out; GOLD learns high-precision models whose loss distribution is concentrated on near-zero losses.
|
| 143 |
+
|
| 144 |
+
Table 3: Results using transformer models on test sets. The advantage of GOLD is maintained on advanced models based on transformers and pretraining.
|
| 145 |
+
Table 4: BLEU/ROUGE $( \uparrow )$ on test sets, using standard models finetuned with on-policy objectives. On-policy objectives marginally improve upon both MLE and GOLD baselines. Starred (\*) models have MLE baselines ${ > } 0 . 1$ difference to our MLE R-2. δR-2: R-2 for the model minus R-2 for the corresponding MLE. PG: standard policy gradient; PPO: proximal policy optimization.
|
| 146 |
+
|
| 147 |
+
<table><tr><td rowspan="2">reward</td><td rowspan="2"></td><td>NQG</td><td colspan="2">CNN/DM</td></tr><tr><td>BLEU</td><td>R-2</td><td>8R-2</td></tr><tr><td colspan="2">Off-policy (this paper)</td><td></td><td></td><td></td></tr><tr><td>MLE</td><td></td><td>14.23</td><td>17.10</td><td></td></tr><tr><td>GOLD-s</td><td>Rs (Section 3.2); the only task-independent reward in this table</td><td>16.10</td><td>17.81</td><td>0.71</td></tr><tr><td>On-policy</td><td></td><td></td><td></td><td></td></tr><tr><td>MLE+PG</td><td>BLEU or R-2</td><td>14.55</td><td>17.35</td><td>0.25</td></tr><tr><td>MLE+PPO</td><td>human preferences (Ziegler et al., 2019)</td><td>1</td><td>17.61</td><td>0.62</td></tr><tr><td>MLE+PG(*)</td><td>R-L + saliency + summary-entailment (Pasunuru & Bansal, 2018)</td><td></td><td>18.00</td><td>0.67</td></tr><tr><td>MLE+PG(*)</td><td>question-answering score (Scialom et al., 2019)</td><td></td><td></td><td>17.66 -0.12</td></tr><tr><td>GOLD+PG</td><td>BLEU or R-2</td><td>16.38</td><td>18.14</td><td>1.04</td></tr></table>
|
| 148 |
+
|
| 149 |
+
GOLD encourages high-precision models. One interesting observation from Table 1 and Table 3 is that compared to MLE, GOLD leads to much higher held-out perplexities, while achieving better metric scores. Since both are evaluated against the reference, one would expect high perplexity to correlate with low metric scores. To better understand the behavior of GOLD, we examine the distributions of token-level negative log-likelihood (NLL) loss (a monotonic transformation of perplexity) in Figure 1. We see that the loss distribution of GOLD (compared to MLE) concentrates on near-zero losses (Figures 1a and 1c) with a long tail of large losses (Figures 1b and 1d), hence high perplexity. In contrast, MLE has much fewer near-zero losses and fewer large losses, suggesting it tries to generate all tokens; i.e., MLE encourages recall, as discussed in Section 2. We conclude that GOLD achieves better metric scores by focusing on easy-to-learn tokens at the expense of lower recall with respect to the reference.
|
| 150 |
+
|
| 151 |
+
Table 5: Human comparisons on 200 randomly selected test examples for each task. Win: $\%$ generations from GOLD-trained BART that are better than from MLE-trained BART, given the same source.
|
| 152 |
+
|
| 153 |
+
<table><tr><td>NQG (BART)</td><td>CNN/DM (BART)</td><td>XSum (BART)</td></tr><tr><td>win lose tied</td><td>win lose tied</td><td>win lose tied</td></tr><tr><td>38.0 28.5 33.5</td><td>37.5 24.5 38.0</td><td>35.0 21.5 43.5</td></tr></table>
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
Figure 2: Left: Avg human ratings vs. generation length, on $7 3 6 ~ \mathrm { N Q G }$ samples. (Colored regions: $9 5 \%$ confidence interval.) Each data point has $\geq 3 0$ annotations. The quality of long generations from MLE-trained model drops heavily, but stays stable across lengths for GOLD- $s$ generations. Right: Avg NLL loss of tth token given the gold prefix tokens vs. time-step $t$ , on NQG dev set. Without exposure bias, NLL loss stays stable across lengths.
|
| 157 |
+
|
| 158 |
+
Another advantage of high-precision models is that they do not rely much on decoding algorithms to sample high-quality outputs from the learned distribution. From a RL perspective, the policy already considers future rewards when making local decisions, thus beam search is not necessary. As a result, we see in Table 2 that GOLD achieves similar performance with both argmax decoding and top- $k$ sampling. In contrast, MLE suffers significantly from sampling, which suggests that it learns a high-recall but low-precision model.
|
| 159 |
+
|
| 160 |
+
GOLD alleviates exposure bias. GOLD suffers less from exposure bias because it trains on the state/history distribution induced by the model instead of the reference data. Here, we empirically quantify the exposure bias problem in learned models. If there is exposure bias, then the output quality is expected to degrade as output length increases, as the history is more likely to deviate from the reference distribution with accumulated generation steps. To evaluate quality, we sampled 736 generations of different lengths from standard models trained by both MLE and GOLD on NQG. Given the paragraph, words to query on, and the generated questions, we then asked workers to rate the generations from 1 (worst) to 4 (best). Figure 2 (left) shows that the output quality of the MLE-trained model degrades when the sequence length is over 14 words, whereas the quality of the GOLD-s-trained model stays relatively stable across all lengths.5 Qualitatively, we observe frequent degenerations (Holtzman et al., 2020; Welleck et al., 2020a) including repetitions and hallucinations within a sentence generated by MLE-trained model, as shown in Table 6. In contrast, Figure 2 (right) shows the NLL loss conditioned on gold histories on NQG dev set.6 We can see that without exposure bias, NLL loss does not vary much as the length increases. Therefore, we conclude that the big performance drop for long generations using MLE is mainly due to exposure bias and GOLD does not suffer from the problem.
|
| 161 |
+
|
| 162 |
+
Table 6: NQG generations using standard models. Words to query on are bolded. Long generations from MLE-trained model often result in repetition or hallucination. More examples in appendix.
|
| 163 |
+
|
| 164 |
+
<table><tr><td>Input MLE</td><td>that projectwasentitledthefactoryprojecttoreferenceandywarholandtocreateafactorytocompletelydigitiethecolection. what was the name of the project that was not digitize to digitize ?</td></tr><tr><td>Input</td><td>GOLD what was the name of the project that was to reference andy warhol ? braddock(withgeorge washingtonasoneof hisaides)ledabout1,50amytroopsand provincial militiaonanexpeditioninjune</td></tr><tr><td>MLE</td><td>1755 to take fort duquesne . what was the name of the aid of george washington university ?</td></tr><tr><td></td><td>GOLD who led about 1,5oO army troops and provincial militia on an expedition ?</td></tr></table>
|
| 165 |
+
|
| 166 |
+
# 4.3 COMPARISON WITH ON-POLICY TRAINING
|
| 167 |
+
|
| 168 |
+
While offline RL is generally more challenging due to lack of interaction with the environment, we argue that the benefit from interaction is limited in text generation (Section 3.1) and overweighed by the optimization challenges. In this section, we investigate the effect of on-policy training using task metrics as rewards. Specifically, we pre-train the model using MLE and then fine-tune it using PG. To avoid degenerate solutions, we interleave MLE and PG updates evenly during fine-tuning. Similarly, we fine-tune GOLD-initialized models using PG. For on-policy fine-tuning, we use BLEU and ROUGE-2 as rewards for NQG and CNN/DM respectively.7 Table 4 shows that additional on-policy training improves both MLE and GOLD marginally. However, MLE with PG is still worse than GOLD. Further, one of the best-performing on-policy methods using a similarly competitive pretrained transformer model (Ziegler et al., 2019) also shows limited improvements over supervised baseline on CNN/DM, despite having better reward functions (domain-specific human preference annotations). Overall, the benefit from on-policy training is unclear in our experiments.8 Please refer to the appendix for more details.
|
| 169 |
+
|
| 170 |
+
# 4.4 DISCUSSION ON GENERATION DIVERSITY
|
| 171 |
+
|
| 172 |
+
The objective of GOLD is to produce high-precision text at the cost of recall: There are references that the model cannot generate with high probability, which is reflected by the high held-out perplexity in Table 1 and Table 3. One may wonder what the impact of GOLD on text “diversity” is. This issue warrants more discussion, but for text generation, “diversity” may stand for the following.
|
| 173 |
+
|
| 174 |
+
(1) Diversity as in the ability to generate a number of different correct generations given one context. This is often discussed in the context of mode collapse, which is an important problem for image generation and unconditional text generation (e.g., continuation from a prompt). However, for many conditional NLG tasks, while there are multiple correct outputs, producing one good generation is often sufficient in practice, e.g., question generation, summarization, machine translation, image captioning, text style transfer, and even chit-chat dialogues (unless users expect the bots to say different things in the same context every time). One exception is creative writing tasks where we would like to have multiple novel generations given the same context, e.g., generating from a language model (Caccia et al., 2020). In these cases, GOLD may not be able to provide a variety of high-quality generations given one context, although it would still produce different outputs given different contexts. Another potential failure mode is that in open-ended dialogues, if one common response has large probability under true data distribution, then GOLD may lead to a distribution concentrated on this mode. In this case, additional inductive bias is needed to separate good modes from bad ones, e.g., additional reward on specificity of the response. On the other hand, while MLE-trained models have good recall and we can potentially sample many different outputs with a high temperature, or large $k$ in top- $k$ sampling, or large $p$ in top- $p$ sampling,9 there are only a few high-quality ones. Our conjecture is that there may not be enough data to cover all modes, and in fact high-likelihood outputs from MLE-trained models are often degenerate (Stahlberg & Byrne, 2019; Cohen & Beck, 2019; Holtzman et al., 2020).
|
| 175 |
+
|
| 176 |
+
In sum, given the trade-off between diversity and quality, we argue that generating a single highquality output is a reasonable goal for most conditional text generation tasks, and we leave the question of generating both diverse and high-quality outputs to future work.
|
| 177 |
+
|
| 178 |
+
(2) Diversity as in the linguistic complexity of the output, given the input. First, we compare GOLD and MLE by measuring the complexity of the output using the number of unique n-grams and did not find significant difference. For example, GOLD’s number of unique 1/2/3/4/5-grams for XSum (using BART) is 18846/18835/18103/17639/17258, MLE’s is 19071/19053/18349/17875/17531, and gold-standard target numbers are 23674/23661/22869/22280/21822. In addition, for question generation and summarization, we measure the complexity of the output by abstractivness, i.e., the proportion of n-gram overlaps between the input and the generation. For XSum (using BART), the proportion of 1/2/3/4/5-gram overlap for MLE is $0 . 7 5 / 0 . 2 7 / 0 . 1 0 / 0 . 0 5 3 / 0 . 0 3 1$ and for GOLD: 0.73/0.24/0.087/0.039/0.021; the trend mostly holds for NQG and CNN/DM as well. In sum, we conclude that GOLD and MLE are comparable in producing complex or novel outputs.
|
| 179 |
+
|
| 180 |
+
(3) Diversity as in the coverage of the true data distribution. This definition is related to (1). This diversity is the “recall” intuitively, and can be measured by NLL loss or perplexity, which will be sacrificed. In our case, the consequence is that the model tends to ignore difficult gold examples (Figure 1), which in text generation, may sometimes be noise or outliers. Empirically for a large number of text generation tasks, paying less attention to such examples did not cause mode collapse in our case.
|
| 181 |
+
|
| 182 |
+
# 5 RELATED WORK
|
| 183 |
+
|
| 184 |
+
Exposure bias. In structured prediction, there is a flurry of works addressing exposure bias since Bengio et al. (2015). Most works focus on learning global sequence scores instead of locally normalized scores using either variants of beam search (Wiseman & Rush, 2016; Andor et al., 2016; Goyal et al., 2018) or energy networks (Belanger & McCallum, 2016; Tu et al., 2020). These training algorithms are often complex and costly. Exposure bias is well studied in imitation learning (Daume´ et al., 2009; Ross et al., 2011) and learning-to-search has been applied to RNNs to incorporate losses of sequences deviating from references (Leblond et al., 2018), but they require annotations or cost functions on non-reference sequences which may not be available for text generation.
|
| 185 |
+
|
| 186 |
+
Objectives beyond MLE. Policy gradient-based algorithms and their variants have been used extensively in text generation to optimize sequence-level metrics (Ranzato et al., 2016; Shen et al., 2016; Norouzi et al., 2016; Pasunuru & Bansal, 2018). In addition, off-policy RL is commonly used in dialogue where online interaction with users is expensive (Serban et al., 2017; Jaques et al., 2019). The main difference is that we take advantage of the demonstrations and design generic reward functions for generation tasks. There is another line of work using policy gradient to optimize reward from a discriminator that differentiates good vs. bad generations (Yu et al., 2017; Li et al., 2017; Lu et al., 2019). However, these approaches often underperform MLE in practice (Tevet et al., 2019) due to optimization challenges. Recently, a concurrent work, Kang & Hashimoto (2020), proposed truncated log-loss which both optimizes distinguishability and enjoys efficient optimization.
|
| 187 |
+
|
| 188 |
+
High-precision text generation. It is noticed early in neural text generation that MLE tends to produce high-recall models that over-generalize. Previously, high-quality outputs are selected mainly through decoding (e.g., beam search, low-temperature sampling, truncated sampling). Recently, there is an increasing amount of work on discouraging implausible samples during training, e.g., using negative sampling (Welleck et al., 2020b), self-training on high-quality samples (Kedzie & McKeown, 2019), and confidence-oriented decoding with calibration (Tian et al., 2020). In contrast, we tackle the fundamental problem of mismatched objectives and propose a general learning framework.
|
| 189 |
+
|
| 190 |
+
# 6 CONCLUSION
|
| 191 |
+
|
| 192 |
+
We provide an efficient algorithm that addresses the two train/test discrepancies in MLE training for text generation: likelihood as learning objective vs. quality as evaluation metric; gold history in training vs. model-generated history in inference. We have demonstrated that off-policy RL is a promising framework for text generation, with matched train/test objectives and optimization advantages like MLE. We believe more advanced off-policy learning techniques (e.g., proximity constraints) can be easily integrated into text generation and further improve performance.
|
| 193 |
+
|
| 194 |
+
# ACKNOWLEDGEMENTS
|
| 195 |
+
|
| 196 |
+
The authors thank Kyunghyun Cho, Tatsunori Hashimoto, Graham Neubig, Ethan Perez, Karl Stratos, Clara Vania, and Alex Warstadt (alphabetical order) for helpful discussions, and the anonymous reviewers for helpful feedback. This work was supported by Samsung Advanced Institute of Technology (Next Generation Deep Learning: From Pattern Recognition to AI) and Samsung Research (Improving Deep Learning Using Latent Structure).
|
| 197 |
+
|
| 198 |
+
# REFERENCES
|
| 199 |
+
|
| 200 |
+
Roee Aharoni and Yoav Goldberg. Split and rephrase: Better evaluation and stronger baselines. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 719–724, Melbourne, Australia, July 2018. Association for Computational Linguistics. doi: 10.18653/v1/P18-2114. URL https://www.aclweb.org/anthology/ P18-2114.
|
| 201 |
+
|
| 202 |
+
Daniel Andor, Chris Alberti, David Weiss, Aliaksei Severyn, Alessandro Presta, Kuzman Ganchev, Slav Petrov, and Michael Collins. Globally normalized transition-based neural networks. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2442–2452, Berlin, Germany, August 2016. Association for Computational Linguistics. doi: 10.18653/v1/P16-1231. URL https://www.aclweb.org/anthology/ P16-1231.
|
| 203 |
+
|
| 204 |
+
David Belanger and Andrew McCallum. Structured prediction energy networks. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 983–992, New York, New York, USA, 20–22 Jun 2016. PMLR. URL http://proceedings.mlr.press/ v48/belanger16.html.
|
| 205 |
+
|
| 206 |
+
Samy Bengio, Oriol Vinyals, Navdeep Jaitly, and Noam Shazeer. Scheduled sampling for sequence prediction with recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 1171–1179, 2015.
|
| 207 |
+
|
| 208 |
+
Massimo Caccia, Lucas Caccia, William Fedus, Hugo Larochelle, Joelle Pineau, and Laurent Charlin. Language gans falling short. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ BJgza6VtPB.
|
| 209 |
+
|
| 210 |
+
Mauro Cettolo, Jan Niehues, Sebastian Stuker, Luisa Bentivogli, and Marcello Federico. Report on ¨ the 11th IWSLT evaluation campaign. In Proceedings of the International Workshop on Spoken Language Translation, volume 57, Hanoi, Vietnam, 2014.
|
| 211 |
+
|
| 212 |
+
Jaemin Cho, Minjoon Seo, and Hannaneh Hajishirzi. Mixture content selection for diverse sequence generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), pp. 3121–3131, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1308. URL https://www.aclweb.org/anthology/ D19-1308.
|
| 213 |
+
|
| 214 |
+
Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, Doha, Qatar, October 2014. Association for Computational Linguistics. doi: 10.3115/v1/D14-1179. URL https://www.aclweb. org/anthology/D14-1179.
|
| 215 |
+
|
| 216 |
+
Leshem Choshen, Lior Fox, Zohar Aizenbud, and Omri Abend. On the weaknesses of reinforcement learning for neural machine translation. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id ${ . } = { }$ H1eCw3EKvH.
|
| 217 |
+
|
| 218 |
+
Elizabeth Clark, Asli Celikyilmaz, and Noah A. Smith. Sentence mover’s similarity: Automatic evaluation for multi-sentence texts. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2748–2760, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1264. URL https://www.aclweb.org/ anthology/P19-1264.
|
| 219 |
+
|
| 220 |
+
Eldan Cohen and Christopher Beck. Empirical analysis of beam search performance degradation in neural sequence models. volume 97 of Proceedings of Machine Learning Research, pp. 1290–1299, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr. press/v97/cohen19a.html.
|
| 221 |
+
|
| 222 |
+
Hal Daume, John Langford, and Daniel Marcu. Search-based structured prediction. ´ Machine learning, 75(3):297–325, 2009.
|
| 223 |
+
|
| 224 |
+
Kartik Goyal, Graham Neubig, Chris Dyer, and Taylor Berg-Kirkpatrick. A continuous relaxation of beam search for end-to-end training of neural sequence models. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 225 |
+
|
| 226 |
+
Hirotaka Hachiya, Takayuki Akiyama, Masashi Sugiayma, and Jan Peters. Adaptive importance sampling for value function approximation in off-policy reinforcement learning. Neural Networks, 22(10):1399–1410, 2009.
|
| 227 |
+
|
| 228 |
+
Tatsunori Hashimoto, Hugh Zhang, and Percy Liang. Unifying human and statistical evaluation for natural language generation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 1689–1701, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1169. URL https://www.aclweb.org/ anthology/N19-1169.
|
| 229 |
+
|
| 230 |
+
W. K. Hastings. Monte carlo sampling methods using markov chains and their applications. Biometrika, 57(1):97–109, 1970. ISSN 00063444. URL http://www.jstor.org/stable/ 2334940.
|
| 231 |
+
|
| 232 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems, pp. 1693–1701, 2015.
|
| 233 |
+
|
| 234 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Comput., 9(8): 1735–1780, November 1997. ISSN 0899-7667. doi: 10.1162/neco.1997.9.8.1735. URL https://doi.org/10.1162/neco.1997.9.8.1735.
|
| 235 |
+
|
| 236 |
+
Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. In International Conference on Learning Representations, 2020.
|
| 237 |
+
|
| 238 |
+
Ferenc Huszar. How (not) to train your generative model: Scheduled sampling, likelihood, adversary? ´ arXiv preprint arXiv:1511.05101, 2015.
|
| 239 |
+
|
| 240 |
+
Natasha Jaques, Asma Ghandeharioun, Judy Hanwen Shen, Craig Ferguson, Agata Lapedriza, Noah Jones, Shixiang Gu, and Rosalind Picard. Way off-policy batch deep reinforcement learning of implicit human preferences in dialog. arXiv preprint arXiv:1907.00456, 2019.
|
| 241 |
+
|
| 242 |
+
Daniel Kang and Tatsunori Hashimoto. Improved natural language generation via loss truncation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 718–731, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020. acl-main.66. URL https://www.aclweb.org/anthology/2020.acl-main.66.
|
| 243 |
+
|
| 244 |
+
Chris Kedzie and Kathleen McKeown. A good sample is hard to find: Noise injection sampling and self-training for neural language generation models. In Proceedings of the 12th International Conference on Natural Language Generation, pp. 584–593, 2019.
|
| 245 |
+
|
| 246 |
+
Yaser Keneshloo, Tian Shi, Naren Ramakrishnan, and Chandan K Reddy. Deep reinforcement learning for sequence-to-sequence models. IEEE Transactions on Neural Networks and Learning Systems, 2019.
|
| 247 |
+
|
| 248 |
+
Remi Leblond, Jean-Baptiste Alayrac, Anton Osokin, and Simon Lacoste-Julien. SEARNN: Training ´ RNNs with global-local losses. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ HkUR_y-RZ.
|
| 249 |
+
|
| 250 |
+
Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
|
| 251 |
+
|
| 252 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Seattle, USA, July 2020. Association for Computational Linguistics.
|
| 253 |
+
|
| 254 |
+
Jiwei Li, Will Monroe, Tianlin Shi, Sebastien Jean, Alan Ritter, and Dan Jurafsky. Adversarial ´ learning for neural dialogue generation. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 2157–2169, Copenhagen, Denmark, September 2017. Association for Computational Linguistics. doi: 10.18653/v1/D17-1230. URL https: //www.aclweb.org/anthology/D17-1230.
|
| 255 |
+
|
| 256 |
+
Zichao Li, Xin Jiang, Lifeng Shang, and Hang Li. Paraphrase generation with deep reinforcement learning. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 3865–3878, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1421. URL https://www.aclweb.org/ anthology/D18-1421.
|
| 257 |
+
|
| 258 |
+
Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pp. 74–81, Barcelona, Spain, July 2004. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/W04-1013.
|
| 259 |
+
|
| 260 |
+
Sidi Lu, Lantao Yu, Siyuan Feng, Yaoming Zhu, and Weinan Zhang. CoT: Cooperative training for generative modeling of discrete data. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 4164–4172, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/lu19d.html.
|
| 261 |
+
|
| 262 |
+
Kenton Murray and David Chiang. Correcting length bias in neural machine translation. In Proceedings of the Third Conference on Machine Translation: Research Papers, pp. 212–223, Belgium, Brussels, October 2018. Association for Computational Linguistics. doi: 10.18653/v1/W18-6322. URL https://www.aclweb.org/anthology/W18-6322.
|
| 263 |
+
|
| 264 |
+
Shashi Narayan, Shay B. Cohen, and Mirella Lapata. Don’t give me the details, just the summary! topic-aware convolutional neural networks for extreme summarization. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 1797–1807, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/ D18-1206. URL https://www.aclweb.org/anthology/D18-1206.
|
| 265 |
+
|
| 266 |
+
Mohammad Norouzi, Samy Bengio, zhifeng Chen, Navdeep Jaitly, Mike Schuster, Yonghui Wu, and Dale Schuurmans. Reward augmented maximum likelihood for neural structured prediction. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 29, pp. 1723–1731. Curran Associates, Inc., 2016. URL https://proceedings.neurips.cc/paper/2016/file/ 2f885d0fbe2e131bfc9d98363e55d1d4-Paper.pdf.
|
| 267 |
+
|
| 268 |
+
Jekaterina Novikova, Ondˇrej Dusek, Amanda Cercas Curry, and Verena Rieser. Why we need ˇ new evaluation metrics for NLG. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 2241–2252, Copenhagen, Denmark, September 2017. Association for Computational Linguistics. doi: 10.18653/v1/D17-1238. URL https://www.aclweb.org/anthology/D17-1238.
|
| 269 |
+
|
| 270 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pp. 311–318, Philadelphia, Pennsylvania, USA, July 2002. Association for Computational Linguistics. doi: 10.3115/1073083.1073135. URL https://www.aclweb. org/anthology/P02-1040.
|
| 271 |
+
|
| 272 |
+
Tetiana Parshakova, Jean-Marc Andreoli, and Marc Dymetman. Distributional reinforcement learning for energy-based sequential models. arXiv preprint arXiv:1912.08517, 2019.
|
| 273 |
+
|
| 274 |
+
Ramakanth Pasunuru and Mohit Bansal. Multi-reward reinforced summarization with saliency and entailment. 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. 646–653, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. doi: 10.18653/v1/N18-2102. URL https://www.aclweb.org/anthology/N18-2102.
|
| 275 |
+
|
| 276 |
+
Doina Precup, Richard S. Sutton, and Satinder Singh. Eligibility traces for off-policy policy evaluation. Computer Science Department Faculty Publication Series, UMass Amherst, 2000.
|
| 277 |
+
|
| 278 |
+
Weizhen Qi, Yu Yan, Yeyun Gong, Dayiheng Liu, Nan Duan, Jiusheng Chen, Ruofei Zhang, and Ming Zhou. ProphetNet: Predicting future n-gram for sequence-to-SequencePre-training. In Findings of the Association for Computational Linguistics: EMNLP 2020, pp. 2401–2410, Online, November 2020. Association for Computational Linguistics. URL https://www.aclweb. org/anthology/2020.findings-emnlp.217.
|
| 279 |
+
|
| 280 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020.
|
| 281 |
+
|
| 282 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2383–2392, Austin, Texas, November 2016. Association for Computational Linguistics. doi: 10.18653/v1/D16-1264. URL https://www.aclweb.org/ anthology/D16-1264.
|
| 283 |
+
|
| 284 |
+
Marc’Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. Sequence level training with recurrent neural networks. In International Conference on Learning Representations, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016.
|
| 285 |
+
|
| 286 |
+
Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured ´ prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 627–635, 2011.
|
| 287 |
+
|
| 288 |
+
Thomas Scialom, Sylvain Lamprier, Benjamin Piwowarski, and Jacopo Staiano. Answers unite! unsupervised metrics for reinforced summarization models. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 3246–3256, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1320. URL https://www.aclweb.org/anthology/D19-1320.
|
| 289 |
+
|
| 290 |
+
Abigail See, Peter J. Liu, and Christopher D. Manning. Get to the point: Summarization with pointer-generator networks. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1073–1083, Vancouver, Canada, July 2017. Association for Computational Linguistics. doi: 10.18653/v1/P17-1099. URL https: //www.aclweb.org/anthology/P17-1099.
|
| 291 |
+
|
| 292 |
+
Iulian V Serban, Chinnadhurai Sankar, Mathieu Germain, Saizheng Zhang, Zhouhan Lin, Sandeep Subramanian, Taesup Kim, Michael Pieper, Sarath Chandar, Nan Rosemary Ke, et al. A deep reinforcement learning chatbot. arXiv preprint arXiv:1709.02349, 2017.
|
| 293 |
+
|
| 294 |
+
Shiqi Shen, Yong Cheng, Zhongjun He, Wei He, Hua Wu, Maosong Sun, and Yang Liu. Minimum risk training for neural machine translation. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1683–1692, Berlin, Germany, August 2016. Association for Computational Linguistics. doi: 10.18653/v1/P16-1159. URL https://www.aclweb.org/anthology/P16-1159.
|
| 295 |
+
|
| 296 |
+
Loic Simon, Ryan Webster, and Julien Rabin. Revisiting precision recall definition for generative modeling. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5799–5808, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http: //proceedings.mlr.press/v97/simon19a.html.
|
| 297 |
+
|
| 298 |
+
Felix Stahlberg and Bill Byrne. On NMT search errors and model errors: Cat got your tongue? In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 3356–3362, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1331. URL https://www.aclweb.org/anthology/D19-1331.
|
| 299 |
+
|
| 300 |
+
Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pp. 1057–1063, 2000.
|
| 301 |
+
|
| 302 |
+
Guy Tevet, Gavriel Habib, Vered Shwartz, and Jonathan Berant. Evaluating text GANs as language models. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 2241–2247, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1233. URL https://www.aclweb.org/anthology/N19-1233.
|
| 303 |
+
|
| 304 |
+
Ran Tian, Shashi Narayan, Thibault Sellam, and Ankur P. Parikh. Sticking to the facts: Confident decoding for faithful data-to-text generation, 2020. URL https://openreview.net/forum? id $=$ HkxU2pNYPH.
|
| 305 |
+
|
| 306 |
+
Lifu Tu, Richard Yuanzhe Pang, and Kevin Gimpel. Improving joint training of inference networks and structured prediction energy networks. In Proceedings of the Fourth Workshop on Structured Prediction for NLP, pp. 62–73, Online, November 2020. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/2020.spnlp-1.8.
|
| 307 |
+
|
| 308 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017.
|
| 309 |
+
|
| 310 |
+
Chaojun Wang and Rico Sennrich. On exposure bias, hallucination and domain shift in neural machine translation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 3544–3552, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.326. URL https://www.aclweb.org/anthology/2020. acl-main.326.
|
| 311 |
+
|
| 312 |
+
Sean Welleck, Ilia Kulikov, Jaedeok Kim, Richard Yuanzhe Pang, and Kyunghyun Cho. Consistency of a recurrent language model with respect to incomplete decoding. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 5553–5568, Online, November 2020a. Association for Computational Linguistics. URL https://www. aclweb.org/anthology/2020.emnlp-main.448.
|
| 313 |
+
|
| 314 |
+
Sean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan, Kyunghyun Cho, and Jason Weston. Neural text generation with unlikelihood training. In International Conference on Learning Representations, 2020b. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ SJeYe0NtvH.
|
| 315 |
+
|
| 316 |
+
Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
|
| 317 |
+
|
| 318 |
+
Sam Wiseman and Alexander M. Rush. Sequence-to-sequence learning as beam-search optimization. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1296–1306, Austin, Texas, November 2016. Association for Computational Linguistics. doi: 10.18653/v1/D16-1137. URL https://www.aclweb.org/anthology/D16-1137.
|
| 319 |
+
|
| 320 |
+
Lijun Wu, Fei Tian, Tao Qin, Jianhuang Lai, and Tie-Yan Liu. A study of reinforcement learning for neural machine translation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 3612–3621, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1397. URL https://www. aclweb.org/anthology/D18-1397.
|
| 321 |
+
|
| 322 |
+
Lantao Yu, Weinan Zhang, Jun Wang, and Yong Yu. Seqgan: Sequence generative adversarial nets with policy gradient. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
|
| 323 |
+
|
| 324 |
+
Jingqing Zhang, Yao Zhao, Mohammad Saleh, and Peter J. Liu. Pegasus: Pre-training with extracted gap-sentences for abstractive summarization. In Proceedings of the 37th International Conference on Machine Learning, Proceedings of Machine Learning Research. PMLR, 2020.
|
| 325 |
+
|
| 326 |
+
Qingyu Zhou, Nan Yang, Furu Wei, Chuanqi Tan, Hangbo Bao, and Ming Zhou. Neural question generation from text: A preliminary study. In National CCF Conference on Natural Language Processing and Chinese Computing, pp. 662–671. Springer, 2017.
|
| 327 |
+
|
| 328 |
+
Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.
|
| 329 |
+
|
| 330 |
+
# A PRACTICAL SETUP AND IMPLEMENTATION
|
| 331 |
+
|
| 332 |
+
# A.1 TASKS AND DATASETS
|
| 333 |
+
|
| 334 |
+
(1) Natural question generation (NQG; Zhou et al., 2017) based on the SQuAD QA dataset (Rajpurkar et al., 2016): Given a text passage and a short span of the passage, the goal is to generate a question that can be answered by the span. (2) CNN/DailyMail summarization (CNN/DM): Given a piece of news, generate a few sentences of summary. We use the entity-non-anonymized version of CNN/DM dataset, following See et al. (2017). The target summaries tend to be extractive, meaning there tends to be heavy text-span overlaps between the source article and the target summary. (3) Extreme summarization (XSum; Narayan et al., 2018) is based on BBC news. The target summaries are highly abstractive. Past extractive strategies that work well for CNN/DM may not work well for XSum. (4) IWSLT14 German to English machine translation (IWSLT14 De-En; Cettolo et al., 2014) is a popular machine translation benchmark. Machine translation is different from the above three tasks, given that intuitively, the space of high-quality generation is smaller.
|
| 335 |
+
|
| 336 |
+
More details on datasets. We first provide the number of examples in each dataset. The train/dev/test split for NQG is 86229/8913/8919; the split for CNN/DM is 287227/13368/11490; the split for XSum is 204045/11332/11334; the split for IWSLT14 De-En is 160239/7283/6750.
|
| 337 |
+
|
| 338 |
+
To download and preprocess the NQG data, we follow the following instructions: https:// github.com/clovaai/FocusSeq2Seq; to download and preprocess the summarization data, we follow the following instructions: https://github.com/pytorch/fairseq/blob/ master/examples/bart/README.summarization.md; to download and preprocess the IWSLT14 De-En data, we follow the following instructions: https://github.com/pytorch/ fairseq/tree/master/examples/translation. More information can be found in our codebase.
|
| 339 |
+
|
| 340 |
+
# A.2 MODEL ARCHITECTURES
|
| 341 |
+
|
| 342 |
+
We use two sets of architectures for our experiments.
|
| 343 |
+
|
| 344 |
+
Standard architectures. For NQG, we use the model $\mathrm { N Q G + + }$ (Zhou et al., 2017), a seq2seqwith-attention model based on GRU (Cho et al., 2014), and for summarization we use pointer generator network (See et al., 2017), a seq2seq-with-attention model based on LSTM (Hochreiter & Schmidhuber, 1997). Specifically, we use 2 layers for both the encoder and the decoder, for both tasks. Other hyperparameters are based on the following implementation: https://github. com/clovaai/FocusSeq2Seq.
|
| 345 |
+
|
| 346 |
+
Transformer architectures. For NQG, CNN/DM, and XSum, we also experiment with one of the top-performing models, BART (Lewis et al., 2020). Our experiments are based on the pretrained BART model provided by original authors10: it has 12 encoder layers and 12 decoder layers, and it is pretrained on around 3.3 billion words of Wikipedia articles and books. We use the model to investigate if our methods work with models with stronger capabilities. For IWSLT14 De-En, we use a moderate-size standard transformer architecture (encoder/decoder embedding dimension 512, 4 encoder attention heads, 6 encoder layers, 4 decoder attention heads, 6 decoder layers), a top-performing architecture in machine translation.
|
| 347 |
+
|
| 348 |
+
# A.3 MORE ON REPRODUCIBILITY
|
| 349 |
+
|
| 350 |
+
The codebase is released. The link to the code is posted on the following website: yzpang.me.
|
| 351 |
+
|
| 352 |
+
Hyperparameters and training details on standard architectures. This paragraph corresponds to results in Table 1. We use a learning rate of 5e-4. For NQG, we use a batch size of 32; for CNN/DM we use a batch size of 16. We train using a single Nvidia GTX 1080 Ti (memory: 12 GB) GPU.
|
| 353 |
+
|
| 354 |
+
As discussed in Section 3.3 and Section 4.1, we tune the lower bound of $p _ { \mathrm { M L E } }$ in $\{ 0 , 0 . 0 1 , 0 . 0 5 , 0 . 1 \}$ For NQG models, the lower bound of 0.1 produces best performance. For CNN/DM using GOLD- $p$ the lower bound is 0.01; for CNN/DM using GOLD- $s$ , the lower bound is 0.
|
| 355 |
+
|
| 356 |
+
Recall that as discussed in Section 3.3, the weighting policy $\tilde { \pi } _ { \boldsymbol { \theta } }$ synchronizes with actual policy $\pi _ { \theta }$ once every $k$ steps so as to stabilize training. We tune $k \in \{ 1 5 0 0 , 2 6 9 1 \}$ (where 2691 steps corresponds to 1 epoch) for NQG and found that $k = 1 5 0 0$ works better for all NQG models. We tune $\bar { k ^ { \prime } } \in \{ 1 5 0 0 , 3 \bar { 0 } 0 0 , 5 0 0 0 \}$ for CNN/DM; we found that $k = 1 5 0 0$ works best for GOLD- $\delta$ and GOLD- $p$ , and $k = 5 0 0 0$ works best for GOLD- $s$ . Note that in practice, we do not observe big gaps when using other $k$ ’s in the set. For standard models, implementation is based on Cho et al. (2019). In all experiments, we evaluate once every epoch, and we do validation on the entire dev set, using task-specific metrics (BLEU/ROUGE-2), following Cho et al. (2019) and standard practice in machine translation.
|
| 357 |
+
|
| 358 |
+
Hyperparameters and training details on transformer models. This paragraph corresponds to results in Table 3. For transformer models, we use Nvidia P40 GPUs (memory: 24 GB each). For NQG, CNN/DM, and XSum based on BART, we use 4 GPUs to train. For IWSLT14 De-En, we use 1 GPU. Note that fairseq defines batch size in terms of number of tokens instead of number of sequences. For NQG, we use 512 tokens as batch size (for each of the four GPUs); for CNN/DM and XSum, we use 1024 tokens as batch size (for each of the four GPUs); for IWSLT14 De-En, we use 4096 tokens as batch size.
|
| 359 |
+
|
| 360 |
+
We use a learning rate of 2e-5 for NQG, CNN/DM, and XSum; 3e-4 for IWSLT14 De-En.
|
| 361 |
+
|
| 362 |
+
Recall that as discussed in Section 3.3, the weighting policy $\tilde { \pi } _ { \boldsymbol { \theta } }$ synchronizes with actual policy $\pi _ { \theta }$ once every $k$ steps so as to stabilize training. Here, $k = 1 0 0 0$ for NQG; $k = 5 0 0 0$ for CNN/DM, XSum, IWSLT14 De-En. As discussed in Section 3.3 and Section 4.1, the lower bound of $p _ { \mathrm { M L E } }$ is set to be 0.01 for GOLD- $p$ and 0.1 for GOLD- $s$ . For all other parameters that are not specific to GOLD, we use the default fairseq summarization parameters (which can be found through footnote 10).
|
| 363 |
+
|
| 364 |
+
For hyperparameter $u$ as discussed in Section 4.1, for NQG and CNN/DM, $u = 0 . 1$ ; for XSum, $u = 0 . 1 5$ ; for IWSLT14 De-EN, $u = 0 . 2$ .
|
| 365 |
+
|
| 366 |
+
As indicated, the hyperparameters were only tuned in a small set of possible values. More careful tuning may result in slightly better performances.
|
| 367 |
+
|
| 368 |
+
Number of parameters in each model. For standard models, we use $\mathrm { N Q G + + }$ for NQG, and it has 10372565 parameters. We use pointer generator for CNN/DM, and it has 19965705 parameters. For transformer models, the BART model for NQG, CNN/DM, and XSum all have 406290432 parameters; the transformer model used for IWSLT14 De-En has 39469056 parameters.
|
| 369 |
+
|
| 370 |
+
Average runtime. For standard models, based on the above models and the computing infrastructures, each epoch of NQG takes around 10 minutes to train and achieves best performance within 20 epochs. Each epoch of CNN/DM takes about 2 hours to train and achieves best performance within 15 epochs. For transformer models, each epoch of NQG takes around 5 minutes to train and achieves best dev performance within 5 epochs; each epoch of CNN/DM takes around 11 hours to train and achieves best dev performances within 5 epochs; each epoch of XSum takes around 8 hours to train; each epoch of IWSLT14 De-En takes around 3 minutes to train and achieves best performances within 100 epochs (as expected, given the large batch size11). Note that our transformer models are trained on P40s given hardware constraints; if the transformer models are trained on V100 GPUs, for example, the training time per epoch will likely be much shorter.
|
| 371 |
+
|
| 372 |
+
# A.4 MORE DISCUSSION ON APPROXIMATIONS
|
| 373 |
+
|
| 374 |
+
Recall that we truncated the future trajectory after five steps. In other words, the number of current+future steps is upper-bounded at six. Effectively, we are using a discount factor of 0.83.12
|
| 375 |
+
|
| 376 |
+
Given that the $Q$ -value corresponds to future return, we attempted using different strategies. (1) Using the entire future trajectory, and (2) using a fixed number of future steps. We attempted (1) on NQG using the standard models (tuned discount factor in $\{ 1 , 0 . 9 , 0 . 8 , 0 . 7 , \bar { 0 . 5 } \} )$ and found that $\{ 0 . 8 , 0 . 7 \}$ usually performs best, resulting in similar performance but longer training time, compared to the current 5-future-step approach. We attempted (2) using the number of future steps in $\{ 1 , 2 , 3 , 5 , 7 , 1 0 \}$ and found that using $\{ \bar { 5 } , 7 , 1 0 \}$ leads to similar results, which are slightly better compared to $\{ 1 , 2 , 3 \}$ . One benefit is that given a fixed number of future steps, we found that using easy-to-tune constant baselines work well, and training time is also much shorter.
|
| 377 |
+
|
| 378 |
+
# A.5 DETAILS ON ON-POLICY EXPERIMENTS
|
| 379 |
+
|
| 380 |
+
For the $\mathsf { M L E { + } P G }$ baseline, we used the REINFORCE algorithm with sequence-level rewards (BLEU for NQG and ROUGE-2 for summarization). We attempted two versions of the baselines: (i) constant baselines searched in $\{ 0 , 0 . 0 1 , 0 . 0 5 , 0 . 1 , 0 . 1 5 \}$ for BLEU (NQG) and ROUGE-2 (CNN/DM), as well as (ii) baselines computed by the average BLEU/ROUGE-2 over the last 100 steps, minus $\{ 0 , 0 . 0 5 \}$
|
| 381 |
+
|
| 382 |
+
In terms of training warmup choices, We tried two versions of the training algorithm. (a) We initialized with MLE and trained with PG losses interpolated with MLE losses, given we found that the training process would become very unstable without interpolation. (b) We also attempted the following: we intialized the model at random and used MIXER (Ranzato et al., 2016). However, we failed to find improvements compared to (a), under our architecture. A relevant work Choshen et al. (2020) showed that properly tuned on-policy RL may not work for text generation in some cases.
|
| 383 |
+
|
| 384 |
+
We also tried MIXER with the learned baseline for NQG, which is estimated by a simple linear regressor that takes RNN hidden states as inputs, according to Ranzato et al. (2016). After some tuning, we achieved only slight improvements in NQG (BLEU 14.71). One advantage of GOLD is that our algorithm does not rely on learning baselines which could have a big impact on performance of on-policy algorithms; in fact, all baselines are constants in this paper.
|
| 385 |
+
|
| 386 |
+
Note that for $\mathrm { G O L D + P G }$ models, we only attempted constant baselines; better tuning of baselines could potentially lead to stronger performance.
|
| 387 |
+
|
| 388 |
+
# B MORE ON RESULTS
|
| 389 |
+
|
| 390 |
+
# B.1 LEAD-3 BASELINES FOR SUMMARIZATION
|
| 391 |
+
|
| 392 |
+
The lead-3 baseline (using first 3 sentences as summaries) is a popular strong baseline in summarization literature. The ROUGE-1/2/L scores of the lead-3 baselines are as follows: 40.42/17.62/36.67 for CNN/DM; 16.30/1.60/11.95 for XSum. Our performance using transformer models beat these baselines by a large margin.
|
| 393 |
+
|
| 394 |
+
# B.2 PERFORMANCE WITH TRANSFORMER ARCHITECTURES
|
| 395 |
+
|
| 396 |
+
We experiment using transformer architectures, as shown in Table 3; we also experiment on two more tasks (compared to using standard architectures): XSum and IWSLT14 De-En. We achieve SOTA/near-SOTA result (according to automatic metrics which have inherent limitations) on CNN/DM: at the time of writing, our results (45.40/22.01/42.25 using GOLD- $p$ or 44.82/22.09/41.81 using GOLD- $s$ ) are higher than 44.17/21.47/41.11 (PEGASUS; Zhang et al., 2020) and 44.20/21.17/41.30 (ProphetNet; Qi et al., 2020), both slightly higher than BART. Note the PEGASUS CNN/DM result is pretrained on 1.5B news articles (around 3.8 terabyte), whereas BART is pretrained on 3.3B words (around 0.16 tetrabyte). Our XSum results are also higher than PEGASUS (45.20/22.06/36.99) trained on Colossal Clean Crawled Corpus (C4; Raffel et al., 2020), but lower than the PEGASUS result using the publicly-unavailable 1.5B-article 3.8 terabyte HugeNews (Zhang et al., 2020) as pretrained corpus. We hypothesize that if our models are applied onto their architectures instead of pointer generator networks or BART, we would similarly get non-trivial improvements.
|
| 397 |
+
|
| 398 |
+
We also achieve 0.81 point of BLEU improvement on IWSLT14 De-En; GOLD- $s$ performs better than the existing approaches that do not use knowledge distillation or data augmentation, as far as the authors are aware.
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
Figure 3: Exposure bias related figures on NQG dev set. Vertical axis: avg unsmoothed sentence-level BLEU. Horizontal axis: sentence length. The colored regions represent $9 5 \%$ confidence interval obtained using standard bootstrapping. Subfigures (a) and (c) show BLEU on randomly shuffled targets (from dev set); BLEU does not appear to punish long sentences. Note the scale of the vertial axes. Subfigures (b) and (d) show BLEU vs. generation length; BLEU on generations from MLEtrained model decreases by length, but BLEU on generations from GOLD-trained model appears to stay relatively stable.
|
| 402 |
+
|
| 403 |
+
# B.3 MORE ON EXPOSURE BIAS
|
| 404 |
+
|
| 405 |
+
With exposure bias. Recall that in Section 4.2, we used human evaluation (a score of 1 or 2 or 3 or 4) to approximate the output quality, and we found that the MLE-trained model degrades significantly when the generation length is long, whereas the quality of the GOLD- $s$ -trained model stays relatively stable across lengths.
|
| 406 |
+
|
| 407 |
+
Here, we use BLEU to approximate the quality of NQG generations, and we show that BLEU does not bias toward long sentences. Figure 3 shows the average sentence-level BLEU by sequence length.13
|
| 408 |
+
|
| 409 |
+
Specifically, Figures 3a and 3c show the BLEU on randomly shuffled targets (from dev set), which show that longer sentences do not appear to punish BLEU scores. Figures 3b and 3d show the BLEU by sentence length, on model generations. We see that MLE’s BLEU decreases by length but GOLD- $s$ ’s BLEU appears to stay relatively stable. We thus see some evidence that MLE is generating worse sentences as sentence gets longer.
|
| 410 |
+
|
| 411 |
+
If there is no exposure bias. In the main text, we used the NLL loss vs. length plot to demonstrate that without exposure bias, the loss does not vary much across length, so the MLE performance drop in Figure 2 (left) is mainly due to exposure bias. Here, we provide another way to analyze the case without exposure bias.
|
| 412 |
+
|
| 413 |
+
Figure 4 shows the token prediction accuracy conditioned on gold histories on NQG dev set. Note that for each example, we let $t _ { x } = L _ { x } - 5$ , where $L _ { x }$ is the length of reference sentence $_ { \textbf { \em x } }$ . We can see that without exposure bias, prediction accuracy does not vary much as the length increases. Therefore, we conclude that the big performance drop for long generations using MLE is mainly due to exposure bias and GOLD suffers less from the problem.
|
| 414 |
+
|
| 415 |
+
# B.4 EXAMPLES
|
| 416 |
+
|
| 417 |
+
Table 7 and Table 8 show the example generations based on the transformer models.
|
| 418 |
+
|
| 419 |
+

|
| 420 |
+
Figure 4: Accuracy of correct predictions of tth token given all prefix reference tokens on NQG dev set. Colored regions represents $9 5 \%$ confidence interval obtained using standard bootstrapping. Without exposure bias, token prediction accuracy stays relatively stable across lengths.
|
| 421 |
+
|
| 422 |
+
Table 7: NQG and CNN/DM examples based on transformer models. For NQG, words to query on are bolded.
|
| 423 |
+
|
| 424 |
+
<table><tr><td>task</td><td>objective example</td><td></td></tr><tr><td>NQG</td><td>input MLE</td><td>Some members of this community emigrated to the United States in the 1890s . when did some members of the portuguese-american community emigrate to the us ? GOLD-s when did some members of the community emigrate to the us ? reference in what era did some members of this community emigrate to the us ?</td></tr><tr><td>NQG</td><td>input MLE</td><td>Competition amongst workers tends to drive down wages due to the expendable nature of the worker in relation to his or her particular job . what is one of the reasons that causes wages to be lower ?</td></tr><tr><td>NQG</td><td>GOLD-s reference input</td><td>why do wages go down when there is competition amongst workers ? why does competition among workers drive down wages ? During the mid-eocene,it is believed that the drainage basin of the Amazon was split along the middle of the continent by the Purus Arch .</td></tr><tr><td></td><td>MLE GOLD-s</td><td>when was the purus arch formed ? when was the drainage basin of the amazon split ? reference in which point did the drainage basin of the amazon split ?</td></tr><tr><td>CNN/DM input</td><td></td><td>[omitted due to length and copyright issues,but the original news article can be retrieved by searching the reference online]</td></tr><tr><td></td><td>MLE</td><td>There are nearly 5,Ooo“gems”scattered across the country,ranging from museums to</td></tr><tr><td></td><td></td><td>archaeological areas and monuments. Italy boasts the highest number of UNESCO World</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>Heritage sites in the world. Several of which risk crumbling to the ground due to neglect</td></tr><tr><td></td><td>GOLD-s</td><td>and lack of public resources. Italy boasts the highest number of UNESCO World Heritage sites in the world.The</td></tr><tr><td></td><td></td><td>Basilica of Assisi,where St. Frances’tomb lies,is badly in need of a restyle.Italy</td></tr><tr><td></td><td></td><td>doesn't know how to exploit this treasure,says Francesco Toti reference Italy boasts the highest number of UNESCO World Heritage sites in the world .Italy</td></tr><tr><td></td><td></td><td>doesn't know how to exploit treasures,and appears not to care about them, writes Silvia Marchetti .</td></tr><tr><td></td><td>CNN/DM input</td><td>[omitted due to length and copyright issues,but the original news article can be retrieved</td></tr><tr><td></td><td></td><td>by searching the reference online] President Obama has argued with progressive potentate Elizabeth Warren, calling her</td></tr><tr><td></td><td>MLE</td><td></td></tr><tr><td></td><td></td><td>"wrong"on trade policy.What everyone does next will be critical for the 2Ol6 elections</td></tr><tr><td></td><td></td><td>and the future of Democratic politics.Warren has publicly criticized "fast track"trade</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>authority that would allow the White House to negotiate massive,multination trade deals.</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>GOLD-s President Obama has argued with the progressive potentate Elizabeth Warren,calling her</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>"wrong”on trade policy. Julian Zelizer: If Hillary Clinton wants to prove she'sa real</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>populist, now is her chance to be even more clear about her position on the TPP deal .</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>Sen.Elizabeth Warren has publicly criticized so-called "fast track” trade authority</td></tr><tr><td></td><td>reference</td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td>Sally Kohn:Why does President Obama call her wrong,and why is Hillary Clinton</td></tr></table>
|
| 425 |
+
|
| 426 |
+
Table 8: XSum and IWSLT14 De-En examples based on transformer models.
|
| 427 |
+
|
| 428 |
+
<table><tr><td>task</td><td colspan="2">objective example</td></tr><tr><td>XSum</td><td>input</td><td>[omitted due to length and copyright issues,but the original news article can be retrieved by searching the reference online]</td></tr><tr><td></td><td>MLE</td><td>The Isle of Wight father's decision not to pay a fine for taking his seven-year-old daughter on holiday during term time caused“a huge amount of confusion”,a senior MP has said.</td></tr><tr><td></td><td></td><td>GOLD-s The High Court ruling that a father could not be prosecuted for taking his seven- year-old daughter on a term-time holiday to Disney World caused“a huge amount</td></tr><tr><td></td><td></td><td>of confusion",MPs have said. reference A High Court ruling backing a parent who refused to pay a fine for taking his child on holiday in term time will cause“huge confusion",an MP has said.</td></tr><tr><td>XSum</td><td>input</td><td>[omited due to length and copyright issues,but the original news article can be retrieved by searching the reference online]</td></tr><tr><td></td><td>MLE</td><td>Flood defences at a Denbighshire beach could be strengthened to reduce the risk of them being breached.</td></tr><tr><td></td><td>GOLD-s</td><td>A new dune system could be built to protect a Denbighshire beach from flooding. eNew sand dunes may be created to reduce the risk of flooding on a beach on the</td></tr><tr><td></td><td>reference</td><td>Denbighshire and Flintshire border.</td></tr><tr><td>XSum</td><td>input</td><td>[omitted due to length and copyright issues,but the original news article can be retrieved by searching the reference online]</td></tr><tr><td></td><td>MLE</td><td>Fleetwood's League One play-off hopes suffered a blow as they were held to a goalless draw by League One strugglers Doncaster.</td></tr><tr><td></td><td>GOLD-s</td><td>Fleetwood and Blackburn played out a goalless draw in League One.</td></tr><tr><td></td><td>reference</td><td>Fleetwood Town dropped into the League One relegation places as they had to settle for a point after a stalemate with Doncaster.</td></tr><tr><td>IWSLT14 De-En input</td><td></td><td>ich hab da so ne kognitive rückkopplung,du hast was projiziert,was du sehen mochtest.</td></tr><tr><td></td><td>MLE</td><td>i've been doing this with cognitive feedback,you've been prospecting what you want to see.</td></tr><tr><td></td><td>GOLD-S</td><td>i've got cognitive feedback, you've proved what you want to see.</td></tr><tr><td></td><td>reference</td><td>eihave this cognitive feedback,you projected something you want to see.</td></tr><tr><td>IWSLT14 De-En input</td><td></td><td>es sind also alle werkzeuge vorhanden,und die einzige sache,die uns limitiert, ist unsere vorstellungskraft.</td></tr><tr><td></td><td>MLE</td><td>so there are all the tools available,and the only thing that's licensed to us is our imagination</td></tr><tr><td></td><td>GOLD-sS</td><td>so there are all the tools there,and the only thing that limited us is our imagination.</td></tr><tr><td>IWSLT14 De-En input</td><td></td><td>reference so all the tools are out there,and the only thing that limits us is our imagination. unser organismus hat eine groBartige methode erfunden, um solche unangenehmen</td></tr><tr><td></td><td></td><td>gefuhle wie neid einfach zum verschwinden zu bringen.</td></tr><tr><td></td><td>MLE</td><td>our organism has invented a great way to get such uncomfortable emotions as neither of us to disappear.</td></tr><tr><td></td><td>GOLD-s (</td><td>our organism invented a great way to make such uncomfortable emotions like</td></tr><tr><td></td><td></td><td>envy easy to disappear. reference our organism has come up with an excellent method to make unpleasant feelings</td></tr></table>
|
| 429 |
+
|
| 430 |
+
# C HUMAN EVALUATIONS
|
| 431 |
+
|
| 432 |
+
# C.1 PAIRWISE COMPARISON
|
| 433 |
+
|
| 434 |
+
Our goal is to enable high-quality generations that do not necessarily result in gold references. Given that corpus-level BLEU/ROUGE score is only a popular approximation of generation quality, we first conduct human ratings to confirm the hypothesis that our approaches are generating better sequences. For NQG, for each unit of human evaluation, we present the source paragraph, the words to ask the question on, the question generated by MLE-trained model, as well as the question generated by GOLD- $s$ -trained model. We ask the human evaluators the general question: which generated question is better? Figure 5 shows one example interface of pairwise comparisons.
|
| 435 |
+
|
| 436 |
+
Using NQG dev set, on standard models, of the 183 pairs of comparison we conducted human evaluations on, 42 $( 2 3 . 0 \% )$ MLE-questions are better, 81 $( 4 4 . 3 \% )$ GOLD- $s$ -questions are better, and 60 $( 3 2 . 8 \% )$ are tied. We also evaluate on models based on BART, shown in Table 5 in the main text.
|
| 437 |
+
|
| 438 |
+
For summarization tasks, given that it is infeasible to get high-quality annotations if we let workers read the entire news article14, we only did the following: given the reference summary, a summary generated from MLE model, and a summary generated from our model, we asked workers to compare which generated summary is closer in meaning to the reference summary. Figure 6 shows one example interface of the mentioned pairwise comparison for summarization. See Table 5 for results.
|
| 439 |
+
|
| 440 |
+

|
| 441 |
+
Figure 5: Interface for NQG pairwise comparisons, using Amazon Mechanical Turk.
|
| 442 |
+
|
| 443 |
+

|
| 444 |
+
Figure 6: Interface for summarization pairwise comparisons, using Amazon Mechanical Turk.
|
| 445 |
+
|
| 446 |
+
# C.2 NQG RATING
|
| 447 |
+
|
| 448 |
+
NQG rating was conducted to examine if longer sentences (generated by MLE-trained model) will result in worse human ratings, and if GOLD alleviates the problem. In Figure 2 (left), to reduce variance, we group length by buckets of two (e.g., [7, 8], [9, 10], [11, 12], etc.). Furthermore, we sampled 736 annotations such that each bucket would contain at least 30 sentences (for human evaluation) for each of MLE and GOLD-s. We also shown the $9 5 \%$ confidence interval using standard bootstrapping, in Figure 2 (left).
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
Figure 7: Interface for NQG human ratings, using Amazon Mechanical Turk.
|
| 452 |
+
|
| 453 |
+
Given the paragraph, words to query on, and the generations, we ask workers to rate the generations. Figure 7 shows an example interface of NQG human ratings. We ask workers to consider both the correctness of the generation (i.e., if the question is asking about the specified words using facts) and the quality of the generation (i.e., if the generation is fluent and coherent). We ask workers to rate from 1 to 4, where 1 means very bad, 2 means slightly below average, 3 means slightly above average, and 4 means very good.
|
parse/train/RovX-uQ1Hua/RovX-uQ1Hua_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/RovX-uQ1Hua/RovX-uQ1Hua_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/RovX-uQ1Hua/RovX-uQ1Hua_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SUyxNGzUsH/SUyxNGzUsH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkeXehR9t7/SkeXehR9t7_content_list.json
ADDED
|
@@ -0,0 +1,1865 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "GRAPH2SEQ: GRAPH TO SEQUENCE LEARNING WITH ATTENTION-BASED NEURAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
748,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "The celebrated Sequence to Sequence learning (Seq2Seq) technique and its numerous variants achieve excellent performance on many tasks. However, many machine learning tasks have inputs naturally represented as graphs; existing Seq2Seq models face a significant challenge in achieving accurate conversion from graph form to the appropriate sequence. To address this challenge, we introduce a general end-to-end graph-to-sequence neural encoder-decoder architecture that maps an input graph to a sequence of vectors and uses an attention-based LSTM method to decode the target sequence from these vectors. Our method first generates the node and graph embeddings using an improved graph-based neural network with a novel aggregation strategy to incorporate edge direction information in the node embeddings. We further introduce an attention mechanism that aligns node embeddings and the decoding sequence to better cope with large graphs. Experimental results on bAbI, Shortest Path, and Natural Language Generation tasks demonstrate that our model achieves state-of-the-art performance and significantly outperforms existing graph neural networks, Seq2Seq, and Tree2Seq models; using the proposed bi-directional node embedding aggregation strategy, the model can converge rapidly to the optimal performance. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
266,
|
| 43 |
+
764,
|
| 44 |
+
502
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
530,
|
| 55 |
+
334,
|
| 56 |
+
546
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The celebrated Sequence to Sequence learning (Seq2Seq) technique and its numerous variants achieve excellent performance on many tasks such as Neural Machine Translation (Bahdanau et al., 2014; Gehring et al., 2017), Natural Language Generation (NLG) (Song et al., 2017) and Speech Recognition(Zhang et al., 2017). Most of the proposed Seq2Seq models can be viewed as a family of encoder-decoders (Sutskever et al., 2014; Cho et al., 2014; Bahdanau et al., 2014), where an encoder reads and encodes a source input in the form of sequences into a continuous vector representation of fixed dimension, and a decoder takes the encoded vectors and outputs a target sequence. Many other enhancements including Bidirectional Recurrent Neural Networks (Bi-RNN) (Schuster & Paliwal, 1997) or Bidirectional Long Short-Term Memory Networks (Bi-LSTM) (Graves & Schmidhuber, 2005) as encoder, and attention mechanism (Bahdanau et al., 2014; Luong et al., 2015), have been proposed to further improve its practical performance for general or domain-specific applications. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
563,
|
| 66 |
+
825,
|
| 67 |
+
714
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Despite their flexibility and expressive power, a significant limitation with the Seq2Seq models is that they can only be applied to problems whose inputs are represented as sequences. However, the sequences are probably the simplest structured data, and many important problems are best expressed with a more complex structure such as graphs that have more capacity to encode complicated pair-wise relationships in the data. For example, one task in NLG applications is to translate a graph-structured semantic representation such as Abstract Meaning Representation to a text expressing its meaning (Banarescu et al., 2013). In addition, path planning for a mobile robot (Hu & Yang, 2004) and path finding for question answering in bAbI task (Li et al., 2015) can also be cast as graph-to-sequence problems. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
722,
|
| 77 |
+
825,
|
| 78 |
+
847
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "On the other hand, even if the raw inputs are originally expressed in a sequence form, it can still benefit from the enhanced inputs with additional information (to formulate graph inputs). For example, for semantic parsing tasks (text-to-AMR or text-to-SQL), they have been shown better performance by augmenting the original sentence sequences with other structural information such as dependency parsing trees (Pust et al., 2015). Intuitively, the ideal solution for graph-to-sequence tasks is to build a more powerful encoder which is able to learn the input representation regardless of its inherent structure. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
854,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "To cope with graph-to-sequence problems, a simple and straightforward approach is to directly convert more complex structured graph data into sequences (Iyer et al., 2016; Gomez-Bombarelli´ et al., 2016; Liu et al., 2017), and apply sequence models to the resulting sequences. However, the Seq2Seq model often fails to perform as well as hoped on these problems, in part because it inevitably suffers significant information loss due to the conversion of complex structured data into a sequence, especially when the input data is naturally represented as graphs. Recently, a line of research efforts have been devoted to incorporate additional information by extracting syntactic information such as the phrase structure of a source sentence (Tree2seq) (Eriguchi et al., 2016), by utilizing attention mechanisms for input sets (Set2seq)(Vinyals et al., 2015a), and by encoding sentences recursively as trees (Socher et al., 2010; Tai et al., 2015). Although these methods achieve promising results on certain classes of problems, most of the presented techniques largely depend on the underlying application and may not be able to generalize to a broad class of problems in a general way. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
140,
|
| 110 |
+
825,
|
| 111 |
+
319
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "To address this issue, we propose Graph2Seq, a novel attention-based neural network architecture for graph-to-sequence learning. The Graph2Seq model follows the conventional encoder-decoder approach with two main components, a graph encoder and a sequence decoder. The proposed graph encoder aims to learn expressive node embeddings and then to reassemble them into the corresponding graph embeddings. To this end, inspired by a recent graph representation learning method (Hamilton et al., 2017a), we propose an inductive graph-based neural network to learn node embeddings from node attributes through aggregation of neighborhood information for directed and undirected graphs, which explores two distinct aggregators on each node to yield two representations that are concatenated to form the final node embedding. In addition, we further design an attention-based RNN sequence decoder that takes the graph embedding as its initial hidden state and outputs a target prediction by learning to align and translate jointly based on the context vectors associated with the corresponding nodes and all previous predictions. Our code and data are available at https://github.com/anonymous/Graph2Seq. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
327,
|
| 121 |
+
825,
|
| 122 |
+
507
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Graph2Seq is simple yet general and is highly extensible where its two building blocks, graph encoder and sequence decoder, can be replaced by other models such as Graph Convolutional (Attention) Networks (Kipf & Welling, 2016; Velickovic et al., 2017) or their extensions (Schlichtkrull et al., 2017), and LSTM (Hochreiter & Schmidhuber, 1997). We highlight three main contributions of this paper as follows: ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
176,
|
| 131 |
+
513,
|
| 132 |
+
825,
|
| 133 |
+
583
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "• We propose a new attention-based neural networks paradigm to elegantly address graphto-sequence learning problems that learns a mapping between graph-structured inputs to sequence outputs, which current Seq2Seq and Tree2Seq may be inadequate to handle. We propose a novel graph encoder to learn a bi-directional node embeddings for directed and undirected graphs with node attributes by employing various aggregation strategies, and to learn graph-level embedding by exploiting two different graph embedding techniques. Equally importantly, we present an attention mechanism to learn the alignments between nodes and sequence elements to better cope with large graphs. Experimental results show that our model achieves state-of-the-art performance on three recently introduced graph-to-sequence tasks and significantly outperforms existing graph neural networks, Seq2Seq, and Tree2Seq models. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
215,
|
| 142 |
+
597,
|
| 143 |
+
825,
|
| 144 |
+
763
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 RELATED WORK ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
785,
|
| 155 |
+
344,
|
| 156 |
+
803
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Our model draws inspiration from the research fields of graph representation learning, neural networks on graphs, and neural encoder-decoder models. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
819,
|
| 166 |
+
823,
|
| 167 |
+
847
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Graph Representation Learning. Graph representation learning has been proven extremely useful for a broad range of the graph-based analysis and prediction tasks (Hamilton et al., 2017b; Goyal & Ferrara, 2017). The main goal for graph representation learning is to learn a mapping that embeds nodes as points in a low-dimensional vector space. These representation learning approaches can be roughly categorized into two classes including matrix factorization-based algorithms and random-walk based methods. A line of research learn the embeddings of graph nodes through matrix factorization (Roweis & Saul, 2000; Belkin & Niyogi, 2002; Ahmed et al., 2013; Cao et al., 2015; Ou et al., 2016). These methods directly train embeddings for individual nodes of training and testing data jointly and thus inherently transductive. Another family of work is the use of random walk-based methods to learn low-dimensional embeddings of nodes by exploring neighborhood information for a single large-scale graph (Duran & Niepert, 2017; Hamilton et al., 2017a; Tang et al., 2015; Grover & Leskovec, 2016; Perozzi et al., 2014; Velickovic et al., 2017). ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
854,
|
| 177 |
+
823,
|
| 178 |
+
924
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
103,
|
| 188 |
+
823,
|
| 189 |
+
200
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 2
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "GraphSAGE (Hamilton et al., 2017a) is such a technique that learns node embeddings through aggregation from a node local neighborhood using node attributes or degrees for inductive learning, which has better capability to generate node embeddings for previously unseen data. Our graph encoder is an extension to GraphSAGE with two major distinctions. First, we non-trivially generalize it to cope with both directed and undirected graphs by splitting original node into forward nodes (a node directs to) and backward nodes (direct to a node) according to edge direction and applying two distinct aggregation functions to these types of nodes. Second, we exploit two different schemes (pooling-based and supernode-based) to reassemble the learned node embeddings to generate graph embedding, which is not studied in GraphSAGE. We show the advantages of our graph encoder over GraphSAGE in our experiments. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
208,
|
| 199 |
+
825,
|
| 200 |
+
347
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 2
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "Neural Networks on Graphs. Over the past few years, there has been a surge of approaches that seek to learn the representations of graph nodes, or entire (sub)graphs, based on Graph Neural Networks (GNN) that extend well-known network architectures including RNN and CNN to graph data (Gori et al., 2005; Scarselli et al., 2009; Li et al., 2015; Bruna et al., 2013; Duvenaud et al., 2015; Niepert et al., 2016; Defferrard et al., 2016; Yang et al., 2016; Kipf & Welling, 2016; Chen et al., 2018). A line of research is the neural networks that operate on graphs as a form of RNN (Gori et al., 2005; Scarselli et al., 2009), and recently extended by Li et al. (Li et al., 2015) by introducing modern practices of RNN (using of GRU updates) in the original GNN framework. Another important stream of work that has recently drawn fast increasing interest is graph convolutional networks (GCN) built on spectral graph theory, introduced by Bruna et al. (2013) and then extended by Defferrard et al. (2016) with fast localized convolution. Most of these approaches cannot scale to large graphs, which is improved by using a localized first-order approximation of spectral graph convolution (Kipf & Welling, 2016) and further equipping with important sampling for deriving a fast GCN (Chen et al., 2018). ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
354,
|
| 210 |
+
825,
|
| 211 |
+
549
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "The closely relevant work to our graph encoder is GCN (Kipf & Welling, 2016), which is designed for semi-supervised learning in transductive setting that requires full graph Laplacian to be given during training and is typically applicable to a single large undirected graph. An extension of GCN can be shown to be mathematically related to one variant of our graph encoder on undirected graphs. We compare the difference between our graph encoder and GCN in our experiments. Another relevant work is gated graph sequence neural networks (GGS-NNs) (Li et al., 2015). Although it is also designed for outputting a sequence, it is essentially a prediction model that learns to predict a sequence embedded in graph while our approach is a generative model that learns a mapping between graph inputs and sequence outputs. A good analogy that can be drawn between our proposed Graph2Seq and GGS-NNs is the relationship between convolutional Seq2Seq and RNN. ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
174,
|
| 220 |
+
555,
|
| 221 |
+
825,
|
| 222 |
+
694
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "Neural Encoder-Decoder Models. One of the most successful encoder-decoder architectures is the sequence to sequence learning (Sutskever et al., 2014; Cho et al., 2014; Bahdanau et al., 2014; Luong et al., 2015; Gehring et al., 2017), which are originally proposed for machine translation. Recently, the classical Seq2Seq model and its variants have been applied to several applications in which these models can perform mappings from objects to sequences, including mapping from an image to a sentence (Vinyals et al., 2015c), models for computation map from problem statements of a python program to their solutions (the answers to the program) (Zaremba & Sutskever, 2014), the traveling salesman problem for the set of points (Vinyals et al., 2015b) and deep generative model for molecules generation from existing known molecules in drug discovery. It is easy to see that the objects that are mapped to sequences in the listed examples are often naturally represented in graphs rather than sequences. ",
|
| 229 |
+
"bbox": [
|
| 230 |
+
174,
|
| 231 |
+
700,
|
| 232 |
+
825,
|
| 233 |
+
853
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 2
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "text",
|
| 239 |
+
"text": "Recently, many research efforts and the key contributions have been made to address the limitations of Seq2Seq when dealing with more complex data, that leverage external information using specialized neural models attached to underlying targeted applications, including Tree2Seq (Eriguchi et al., 2016), Set2Seq (Vinyals et al., 2015a), Recursive Neural Networks (Socher et al., 2010), and Tree",
|
| 240 |
+
"bbox": [
|
| 241 |
+
174,
|
| 242 |
+
861,
|
| 243 |
+
825,
|
| 244 |
+
916
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 2
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "image",
|
| 250 |
+
"img_path": "images/ebaaeb200039f192b3d48bb9edba8682351d9f9f7c8d4576d5af3eab617c0a45.jpg",
|
| 251 |
+
"image_caption": [
|
| 252 |
+
"Figure 1: The framework of Graph2Seq model. "
|
| 253 |
+
],
|
| 254 |
+
"image_footnote": [],
|
| 255 |
+
"bbox": [
|
| 256 |
+
202,
|
| 257 |
+
103,
|
| 258 |
+
787,
|
| 259 |
+
275
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 3
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "Structured LSTM (Tai et al., 2015). Due to more recent advances in graph representations and graph convolutional networks, a number of research has investigated to utilize various GNN to improve the performance over the Seq2Seq models in the domains of machine translation and graph generation (Bastings et al., 2017; Simonovsky & Komodakis, 2018; Li et al., 2018). There are several distinctions between these work and ours. First, our model is the first general-purpose encoderdecoder architecture for graph-to-sequence learning that is applicable to different applications while the aforementioned research has to utilize domain-specific information. Second, we design our own graph embedding techniques for our graph decoder while most of other work directly apply existing GNN to their problems. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
309,
|
| 269 |
+
825,
|
| 270 |
+
434
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 3
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "3 GRAPH-TO-SEQUENCE MODEL ",
|
| 277 |
+
"text_level": 1,
|
| 278 |
+
"bbox": [
|
| 279 |
+
176,
|
| 280 |
+
455,
|
| 281 |
+
462,
|
| 282 |
+
470
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 3
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "As shown in Figure 1, our graph-to-sequence model includes a graph encoder, a sequence decoder, and a node attention mechanism. Following the conventional encoder-decoder architecture, the graph encoder first generates node embeddings, and then constructs graph embeddings based on the learned node embeddings. Finally, the sequence decoder takes both the graph embeddings and node embeddings as input and employs attention over the node embeddings whilst generating sequences. In this section, we first introduce the node-embedding generation algorithm which derives the bi-directional node embeddings by aggregating information from both forward and backward neighborhoods of a node in a graph. Upon these node embeddings, we propose two methods for generating graph embeddings capturing the whole-graph information. ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
487,
|
| 292 |
+
825,
|
| 293 |
+
613
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 3
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "3.1 NODE EMBEDDING GENERATION ",
|
| 300 |
+
"text_level": 1,
|
| 301 |
+
"bbox": [
|
| 302 |
+
176,
|
| 303 |
+
630,
|
| 304 |
+
444,
|
| 305 |
+
645
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Inspired by Hamilton et al. (2017a), we design a new inductive node embedding algorithm that generates bi-directional node embeddings by aggregating information from a node local forward and backward neighborhood within $K$ hops for both directed and undirected graphs. In order to make it more clear, we take the embedding generation process for node $v \\in \\mathcal V$ as an example to explain our node embedding generation algorithm:1 ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
173,
|
| 314 |
+
656,
|
| 315 |
+
825,
|
| 316 |
+
727
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "1) We first transform node $v$ ’s text attribute to a feature vector, $\\mathbf { a } _ { v }$ , by looking up the embedding matrix $\\mathbf { W } _ { e }$ . Note that for some tasks where $v$ ’s text attribute may be a word sequence, one neural network layer, such as an LSTM layer, could be additionally used to generate $\\mathbf { a } _ { v }$ . \n2) We categorize the neighbors of $v$ into forward neighbors, $\\mathcal { N } _ { \\vdash } ( v )$ , and backward neighbors, $\\mathcal { N } _ { - 1 } ( v )$ , according to the edge direction. In particular, $\\mathcal { N } _ { \\vdash } ( v )$ returns the nodes that $v$ directs to and $\\mathcal { N } _ { \\mathbb { - } } ( v )$ returns the nodes that direct to $v$ ; \n3) We aggregate the forward representations of $v$ ’s forward neighbors $\\{ \\mathbf { h } _ { u \\vdash } ^ { k - 1 } , \\forall u \\in \\mathcal { N } _ { \\vdash } ( v ) \\}$ into a single vector, $\\mathbf { h } _ { \\mathcal { N } _ { \\mathrm { i } } ( v ) } ^ { k }$ , where $k { \\in } \\{ 1 , . . . , K \\}$ is the iteration index. In our experiments, we find that the aggregator choice, AGGREGAT $\\mathbb { E } _ { k } ^ { \\vdash }$ , may heavily affect the overall performance and we will discuss it later. Notice that at iteration $k$ , this aggregator only uses the representations generated ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
173,
|
| 325 |
+
739,
|
| 326 |
+
826,
|
| 327 |
+
900
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "at $k - 1$ . The initial forward representation of each node is its feature vector calculated in step (1); ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
183,
|
| 336 |
+
103,
|
| 337 |
+
823,
|
| 338 |
+
132
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 4
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "4) We concatenate $v$ ’s current forward representation, hk−1v\\` , with the newly generated neighborhood vector, $\\mathbf { h } _ { \\mathcal { N } _ { \\mathrm { i } } ( v ) } ^ { k }$ . This concatenated vector is fed into a fully connected layer with nonlinear activation function $\\sigma$ , which updates the forward representation of $v$ , $\\mathbf { h } _ { v \\vdash } ^ { k }$ , to be used at the next iteration; \n5) We update the backward representation of $v$ , $\\mathbf { h } _ { v - 1 } ^ { k }$ , using the similar procedure as introduced in step (3) and (4) except that operating on the backward representations instead of the forward representations; \n6) We repeat steps $( 3 ) { \\sim } ( 5 )$ $K$ times, and the concatenation of the final forward and backward representation is used as the final bi-directional representation of $v$ . Since the neighbor information from different hops may have different impact on the node embedding, we learn a distinct aggregator at each iteration. ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
173,
|
| 347 |
+
136,
|
| 348 |
+
826,
|
| 349 |
+
306
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 4
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "Aggregator Architectures. Since a node neighbors have no natural ordering, the aggregator function should be invariant to permutations of its inputs, ensuring that our neural network model can be trained and applied to arbitrarily ordered node-neighborhood feature sets. In practice, we examined the following three aggregator functions: ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
173,
|
| 358 |
+
319,
|
| 359 |
+
825,
|
| 360 |
+
376
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 4
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "Mean aggregator: This aggregator function takes the element-wise mean of the vectors in $\\{ \\mathbf { h } _ { u \\vdash } ^ { k - 1 }$ $\\forall u \\in \\mathcal { N } _ { \\vdash } ( v ) \\}$ and $\\{ \\mathbf h _ { u \\dash } ^ { k - 1 } , \\forall u \\in \\mathcal { N } _ { \\sf \\tilde { \\sf { M } } } ( v ) \\}$ . ",
|
| 367 |
+
"bbox": [
|
| 368 |
+
171,
|
| 369 |
+
376,
|
| 370 |
+
823,
|
| 371 |
+
407
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 4
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "LSTM aggregator: Similar to (Hamilton et al., 2017a), we also examined a more complex aggregator based on an Long Short Term Memory (LSTM) architecture. Note that LSTMs are not inherently symmetric since they process their inputs sequentially. We use LSTMs to operate on unordered sets by simply applying them to a single random permutation of the node neighbors. ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
173,
|
| 380 |
+
407,
|
| 381 |
+
825,
|
| 382 |
+
463
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 4
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "Pooling aggregator: In this aggregator, each neighbor’s vector is fed through a fully-connected neural network, and an element-wise max-pooling operation is applied: ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
171,
|
| 391 |
+
463,
|
| 392 |
+
823,
|
| 393 |
+
491
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 4
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "equation",
|
| 399 |
+
"img_path": "images/67f64ec968ebbec5779c62d4a1e981550e2bafacaae98bd35813e68bf26d4f0b.jpg",
|
| 400 |
+
"text": "$$\n\\mathtt { A G G R E G A T E } _ { k } ^ { \\vdash } = \\operatorname* { m a x } ( \\{ \\sigma ( \\mathbf { W } _ { p o o l } \\mathbf { h } _ { u \\vdash } ^ { k } + \\mathbf { b } ) , u \\in \\mathcal { N } _ { \\vdash } ( v ) \\} )\n$$",
|
| 401 |
+
"text_format": "latex",
|
| 402 |
+
"bbox": [
|
| 403 |
+
308,
|
| 404 |
+
501,
|
| 405 |
+
687,
|
| 406 |
+
518
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 4
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "equation",
|
| 412 |
+
"img_path": "images/79431e3ca25fe2f23c507fb9795426831e0f7ac004197f165acbe568523ca2f1.jpg",
|
| 413 |
+
"text": "$$\n\\mathtt { A G G R E G A T E } _ { k } ^ { - 1 } = \\operatorname* { m a x } ( \\{ \\sigma ( \\mathbf { W } _ { p o o l } \\mathbf { h } _ { u } ^ { k } + \\mathbf { b } ) , u \\in \\mathcal { N } _ { + } ( v ) \\} )\n$$",
|
| 414 |
+
"text_format": "latex",
|
| 415 |
+
"bbox": [
|
| 416 |
+
308,
|
| 417 |
+
522,
|
| 418 |
+
689,
|
| 419 |
+
540
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 4
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "where max denotes the element-wise max operator, and $\\sigma$ is a nonlinear activation function. By applying max-pooling, the model can capture different information across the neighborhood set. ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
173,
|
| 428 |
+
544,
|
| 429 |
+
823,
|
| 430 |
+
571
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 4
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "3.2 GRAPH EMBEDDING GENERATION ",
|
| 437 |
+
"text_level": 1,
|
| 438 |
+
"bbox": [
|
| 439 |
+
176,
|
| 440 |
+
589,
|
| 441 |
+
452,
|
| 442 |
+
603
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 4
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Most existing works of graph convolution neural networks focus more on node embeddings rather than graph embeddings since their focus is on the node-wise classification task. However, graph embeddings that convey the entire graph information are essential to the downstream decoder. In this work, we introduce two approaches (i.e., Pooling-based and Node-based) to generate these graph embeddings from the node embeddings. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
616,
|
| 452 |
+
825,
|
| 453 |
+
685
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "Pooling-based Graph Embedding. In this approach, we investigated three pooling techniques: max-pooling, min-pooling and average-pooling. In our experiments, we fed the node embeddings to a fully-connected neural network and applied each pooling method element-wise. We found no significant performance difference across the three different pooling approaches; we thus adopt the max-pooling method as our default pooling approach. ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
174,
|
| 462 |
+
685,
|
| 463 |
+
825,
|
| 464 |
+
755
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "Node-based Graph Embedding. In this approach, we add one super node, $v _ { s }$ , into the input graph, and all other nodes in the graph direct to $v _ { s }$ . We use the aforementioned node embedding generation algorithm to generate the embedding of $v _ { s }$ by aggregating the embeddings of the neighbor nodes. The embedding of $v _ { s }$ that captures the information of all nodes is regarded as the graph embedding. ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
174,
|
| 473 |
+
756,
|
| 474 |
+
825,
|
| 475 |
+
810
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "3.3 ATTENTION BASED DECODER ",
|
| 482 |
+
"text_level": 1,
|
| 483 |
+
"bbox": [
|
| 484 |
+
176,
|
| 485 |
+
828,
|
| 486 |
+
421,
|
| 487 |
+
842
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "The sequence decoder is a Recurrent Neural Network (RNN) that predicts the next token $y _ { i }$ , given all the previous words $y _ { < i } = y _ { 1 } , . . . , y _ { i - 1 }$ , the RNN hidden state $s _ { i }$ for time $i$ , and a context vector $c _ { i }$ that directs attention to the encoder side. In particular, the context vector $c _ { i }$ depends on a set of node representations $( \\mathbf { z } _ { 1 } , . . . , \\mathbf { z } _ { \\mathcal { V } } )$ which the graph encoder maps the input graph to. Each node representation $\\mathbf { z } _ { i }$ contains information about the whole graph with a strong focus on the parts surrounding the $i$ -th node of the input graph. The context vector $c _ { i }$ is computed as a weighted sum of these node representations and the weight $\\alpha _ { i j }$ of each node representation is computed by: ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
853,
|
| 497 |
+
823,
|
| 498 |
+
924
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 4
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "",
|
| 505 |
+
"bbox": [
|
| 506 |
+
171,
|
| 507 |
+
103,
|
| 508 |
+
823,
|
| 509 |
+
132
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 5
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "equation",
|
| 515 |
+
"img_path": "images/d5b0d12ab268330b0a68d47365ed0a7cf6063f54d1eca3a9b44925860a196638.jpg",
|
| 516 |
+
"text": "$$\nc _ { i } = \\sum _ { j = 1 } ^ { \\nu } \\alpha _ { i j } h _ { j } , w h e r e \\alpha _ { i j } = \\frac { \\exp ( e _ { i j } ) } { \\sum _ { k = 1 } ^ { \\nu } \\exp ( e _ { i k } ) } , e _ { i j } = a ( s _ { i - 1 } , h _ { j } )\n$$",
|
| 517 |
+
"text_format": "latex",
|
| 518 |
+
"bbox": [
|
| 519 |
+
281,
|
| 520 |
+
148,
|
| 521 |
+
717,
|
| 522 |
+
195
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 5
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "where $a$ is an alignment model which scores how well the input node around position $j$ and the output at position $i$ match. The score is based on the RNN hidden state $s _ { i - 1 }$ and the $j$ -th node representation of the input graph. We parameterize the alignment model $a$ as a feed-forward neural network which is jointly trained with other components of the proposed system. Our model is jointly trained to maximize the conditional log-probability of the correct description given a source graph. In the inference phase, we use the beam search to generate a sequence with the beam size $= 5$ . ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
205,
|
| 532 |
+
825,
|
| 533 |
+
290
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 5
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "4 EXPERIMENTS ",
|
| 540 |
+
"text_level": 1,
|
| 541 |
+
"bbox": [
|
| 542 |
+
176,
|
| 543 |
+
310,
|
| 544 |
+
326,
|
| 545 |
+
327
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 5
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "We conduct experiments to demonstrate the effectiveness and efficiency of the proposed method. Following the experimental settings in (Li et al., 2015), we firstly compare its performance with classical LSTM, GGS-NN, and GCN based methods on two selected tasks including bAbI Task 19 and the Shortest Path Task. We then compare Graph2Seq against other Seq2Seq based methods on a real-world application - Natural Language Generation Task. Note that the parameters of all baselines are set based on performance on the development set. ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
343,
|
| 555 |
+
825,
|
| 556 |
+
428
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 5
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "Experimental Settings. Our proposed model is trained using the Adam optimizer (Kingma & Ba, 2014), with mini-batch size 30. The learning rate is set to 0.001. We apply the dropout strategy (Srivastava et al., 2014) with a ratio of 0.5 at the decoder layer to avoid overfitting. Gradients are clipped when their norm is bigger than 20. For the graph encoder, the default hop size $K$ is set to 6, the size of node initial feature vector is set to 40, the non-linearity function $\\sigma$ is ReLU (Glorot et al., 2011), the parameters of aggregators are randomly initialized. The decoder has 1 layer and hidden state size is 80. Since Graph2Seq with mean aggregator and pooling-based graph embeddings generally performs better than other configurations (we defer this discussion to Sec. 4.4), we use this setting as our default model in the following sections. ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
174,
|
| 565 |
+
434,
|
| 566 |
+
825,
|
| 567 |
+
559
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 5
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "4.1 BABI TASK 19 ",
|
| 574 |
+
"text_level": 1,
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
577,
|
| 578 |
+
316,
|
| 579 |
+
592
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 5
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "Setup. The bAbI artificial intelligence (AI) tasks (Weston et al., 2015) are designed to test reasoning capabilities that an AI system possesses. Among these tasks, Task 19 (Path Finding) is arguably the most challenging task (see, e.g., (Sukhbaatar et al., 2015) which reports an accuracy of less than $20 \\%$ for all methods that do not use strong supervision). We apply the transformation procedure introduced in (Li et al., 2015) to transform the description as a graph as shown in Figure 2. The left part shows an instance of bAbI task 19: given a set of sentences describing the relative geographical positions for a pair of objects $o _ { 1 }$ and $O _ { 2 }$ , we aim to find the geographical path between $o _ { 1 }$ and $O _ { 2 }$ . The question is then treated as finding the shortest path between two nodes, $N _ { o _ { 1 } }$ and $N _ { o _ { 2 } }$ , which represent $o _ { 1 }$ and $o _ { 2 }$ in the graph. To tackle this problem with Graph2Seq, we annotate $N _ { o 1 }$ with text attribute START and $N _ { o _ { 2 } }$ with text attribute END. For other nodes, we assign their IDs in the graph as their text attributes. It is worth noting that, in our model, the START and END tokens are node features whose vector representations are first randomly initialized and then learned by the model later. In contrast, in GGS-NN, the vector representations of staring and end nodes are set as one-hot vectors, which is specially designed for the shortest path task. ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
174,
|
| 588 |
+
603,
|
| 589 |
+
825,
|
| 590 |
+
799
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 5
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "To aggregate the edge information into the node embedding, for each edge, we additionally add a node representing this edge into the graph and assign the edge’s text as its text attribute. We generate 1000 training examples, 1000 development examples and 1000 test examples where each example is a graph-path pair. We use a standard LSTM model (Hochreiter & Schmidhuber, 1997) and GGSNN (Li et al., 2015) as our baselines. Since GCN (Kipf & Welling, 2016) itself cannot output a sequence, we also create a baseline that combines GCN with our sequence decoder. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
174,
|
| 599 |
+
805,
|
| 600 |
+
825,
|
| 601 |
+
888
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 5
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "Results. From Table 1, we can see that the LSTM model fails on this task while our model makes perfect predictions, which underlines the importance of the use of graph encoder to directly encode a graph instead of using sequence model on the converted inputs from a graph. Comparing to GGSNN that uses carefully designed initial embeddings for different types of nodes such as START and END, our model uses a purely end-to-end approach which generates the initial node feature vectors based on random initialization of the embeddings for words in text attributes. However, we still significantly outperform GGS-NN, demonstrating the expressive power of our graph encoder that considers information flows in both forward and backward directions. We observe similar results when comparing our whole Graph2Seq model to GCN with our decoder, which mainly because the current form of GCN (Kipf & Welling, 2016) is designed for undirected graph and thus may have information loss when converting directed graph to undirected one as suggested in (Kipf & Welling, 2016). ",
|
| 608 |
+
"bbox": [
|
| 609 |
+
174,
|
| 610 |
+
895,
|
| 611 |
+
821,
|
| 612 |
+
924
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "image",
|
| 618 |
+
"img_path": "images/1370f2f841b9d50938c5699f1849be49ed5aeed0b7aad098d1e077d942319ec7.jpg",
|
| 619 |
+
"image_caption": [
|
| 620 |
+
"Figure 2: Path Finding Example. "
|
| 621 |
+
],
|
| 622 |
+
"image_footnote": [],
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
101,
|
| 626 |
+
486,
|
| 627 |
+
217
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 6
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "table",
|
| 633 |
+
"img_path": "images/4035ecfbfdd961d1de6f8dd3010e16fd526b22fadcc02cbb9b9b5b46b36566aa.jpg",
|
| 634 |
+
"table_caption": [
|
| 635 |
+
"Table 1: Results of our model and baselines on bAbI and Shortest Directed Path tasks. "
|
| 636 |
+
],
|
| 637 |
+
"table_footnote": [],
|
| 638 |
+
"table_body": "<table><tr><td colspan=\"2\">bAbIT19</td><td>SP-S</td><td>SP-L</td></tr><tr><td>LSTM</td><td>25.2%</td><td>8.1%</td><td>2.2%</td></tr><tr><td>GGS-NN</td><td>98.1%</td><td>100.0%</td><td>95.2%</td></tr><tr><td>GCN</td><td>97.4%</td><td>100.0%</td><td>96.5%</td></tr><tr><td>Graph2Seq</td><td>99.9%</td><td>100.0%</td><td>99.3%</td></tr></table>",
|
| 639 |
+
"bbox": [
|
| 640 |
+
506,
|
| 641 |
+
99,
|
| 642 |
+
797,
|
| 643 |
+
167
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 6
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "",
|
| 650 |
+
"bbox": [
|
| 651 |
+
174,
|
| 652 |
+
252,
|
| 653 |
+
825,
|
| 654 |
+
391
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 6
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "4.2 SHORTEST PATH TASK ",
|
| 661 |
+
"text_level": 1,
|
| 662 |
+
"bbox": [
|
| 663 |
+
176,
|
| 664 |
+
409,
|
| 665 |
+
370,
|
| 666 |
+
424
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 6
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "Setup. We further evaluate our model on the Shortest Path (SP) Task whose goal is to find the shortest directed path between two nodes in a graph, introduced in (Li et al., 2015). For this task, we created datasets by generating random graphs, and choosing pairs random nodes A and B which are connected by a unique shortest directed path. Since we can control the size of generated graphs, we can easily test the performance changes of each model when increasing the size of graphs as well. Two such datasets, SP-S and SP-L, were created, containing Small (node size ${ : = } 5$ ) and Large graphs (node size $= 1 0 0$ ), respectively. We restricted the length of the generated shortest paths for SP-S to be at least 2 and at least 4 for SP-L. For each dataset, we used 1000 training examples and 1000 development examples for parameter tuning, and evaluated on 1000 test examples. We choose the same baselines as introduced in the previous section. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
173,
|
| 675 |
+
435,
|
| 676 |
+
825,
|
| 677 |
+
574
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 6
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Results. Table 1 shows that the LSTM model still fails on both of these two datasets. Our Graph2Seq model achieves comparable performance with GGS-NN that both models could achieve $100 \\%$ accuracy on the SP-S dataset while achieves much better on larger graphs on the SP-L dataset. This is because our graph encoder is more expressive in learning the graph structural information with our dual-direction aggregators, which is the key to maintaining good performance when the graph size grows larger, while the performance of GGS-NN significantly degrades due to hardness of capturing the long-range dependence in a graph with large size. Compared to GCN, it achieves better performance than GGS-NN but still much lower than our Graph2Seq, in part because of both the poor effectiveness of graph encoder and incapability of handling with directed graph. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
582,
|
| 687 |
+
825,
|
| 688 |
+
707
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "4.3 NATURAL LANGUAGE GENERATION TASK ",
|
| 695 |
+
"text_level": 1,
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
724,
|
| 699 |
+
504,
|
| 700 |
+
739
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 6
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "Setup. We finally evaluate our model on a real-world application - Natural Language Generation (NLG) task where we translate a structured semantic representation—in this case a structured query language (SQL) query—to a natural language description expressing its meaning. As indicated in (Spiliopoulou & Hatzopoulos, 1992), the structure of SQL query is essentially a graph. Thus we naturally cast this task as an application of the graph-to-sequence model which takes a graph representing the semantic structure as input and outputs a sequence. Figure 3 illustrates the process of translation of an SQL query to a corresponding natural language description via our Graph2Seq model.2 ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
173,
|
| 709 |
+
751,
|
| 710 |
+
825,
|
| 711 |
+
862
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 6
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "We use the BLEU-4 score to evaluate our model on the WikiSQL dataset (Zhong et al., 2017), a corpus of 87,726 hand-annotated instances of natural language questions, SQL queries, and SQL tables. WikiSQL was created as the benchmark dataset for the table-based question answering task (for which the state-of-the-art performance is $8 2 . 6 \\%$ execution accuracy (Yu et al., 2018)); here we reverse the use of the dataset, treating the SQL query as the input and having the goal of generating the correct English question. These WikiSQL SQL queries are split into training, development and test sets, which contain 61297 queries, 9145 queries and 17284 queries, respectively. ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
176,
|
| 720 |
+
869,
|
| 721 |
+
823,
|
| 722 |
+
898
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 6
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "image",
|
| 728 |
+
"img_path": "images/e1b982306e2189b2ef8604f085cdfdf87df55cd954e87b67cf907e7e1ad3180b.jpg",
|
| 729 |
+
"image_caption": [
|
| 730 |
+
"Figure 3: A running example of the NLG task. "
|
| 731 |
+
],
|
| 732 |
+
"image_footnote": [],
|
| 733 |
+
"bbox": [
|
| 734 |
+
174,
|
| 735 |
+
103,
|
| 736 |
+
519,
|
| 737 |
+
213
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 7
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "table",
|
| 743 |
+
"img_path": "images/3ca66afa930026cd9ade9e72c0ba291d62613d374fd71c44b6456668c039f3f3.jpg",
|
| 744 |
+
"table_caption": [
|
| 745 |
+
"Table 2: Results on WikiSQL. "
|
| 746 |
+
],
|
| 747 |
+
"table_footnote": [],
|
| 748 |
+
"table_body": "<table><tr><td></td><td>BLEU-4</td></tr><tr><td>Seq2Seq</td><td>20.91</td></tr><tr><td>Seq2Seq + Copy</td><td>24.12</td></tr><tr><td>Tree2Seq</td><td>26.67</td></tr><tr><td>Graph2Seq-NGE</td><td>34.28</td></tr><tr><td>Graph2Seq-PGE</td><td>38.97</td></tr></table>",
|
| 749 |
+
"bbox": [
|
| 750 |
+
553,
|
| 751 |
+
126,
|
| 752 |
+
748,
|
| 753 |
+
205
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 7
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
242,
|
| 763 |
+
825,
|
| 764 |
+
311
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 7
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Since the SQL-to-Text task can be cast as ”machine translation” type of problems, we implemented several baselines to address this task. The first one is an attention-based sequence-to-sequence (Seq2Seq) model proposed by (Bahdanau et al., 2014); the second one additionally introduces the copy mechanism in the decoder side (Gu et al., 2016); the third one is a tree-to-sequence (Tree2Seq) model proposed by (Eriguchi et al., 2016) as our baseline. To apply these baselines, we convert an SQL query to a sequence or a tree using some templates which we discuss in detail in the Appendix. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
318,
|
| 774 |
+
825,
|
| 775 |
+
401
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 7
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Results. From Table 2, we can see that our Graph2Seq model performs significantly better than the Seq2Seq and Tree2Seq baselines. This result is expected since the structure of SQL query is essentially a graph despite its expressions in sequence and a graph encoder is able to capture much more information directly in graph. Tree2Seq achieves better performance compared to Seq2Seq since its tree-based encoder explicitly takes the syntactic structure of a SQL query into consideration. Two variants of the Graph2Seq models can substantially outperform Tree2Seq, which demonstrates that a general graph to sequence model that is independent of different structural information in complex data is very useful. Interestingly, we also observe that Graph2Seq-PGE (pooling-based graph embedding) performs better than Graph2Seq-NGE (node-based graph embedding). One potential reason is that the node-based graph embedding method artificially added a super node in graph which changes the original graph topology and brings unnecessary noise into the graph. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
409,
|
| 785 |
+
825,
|
| 786 |
+
561
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 7
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "4.4 IMPACTS OF AGGREGATOR, HOP SIZE AND ATTENTION MECHANISM ON GARPH2SEQ MODEL ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
173,
|
| 795 |
+
580,
|
| 796 |
+
808,
|
| 797 |
+
607
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 7
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Setup. We now investigate the impact of the aggregator and the hop size on the Graph2Seq model. Following the previous SP task, we further create three synthetic dataset $\\mathbf { \\eta } ^ { 3 } : \\mathbf { i } )$ $\\mathbf { S D P } _ { D A G }$ whose graphs are directed acyclic graphs (DAGs); ii) $\\mathbf { S D P } _ { D C G }$ whose graphs are directed cyclic graphs (DCGs) that always contain cycles; iii) $\\mathbf { S D P } _ { S E Q }$ whose graphs are essentially sequential lines. For each dataset, we randomly generated 10000 graphs with the graph size 100 and split them as 8000/1000/1000 for the training/development/test set. For each graph, we generated an SDP query by choosing two random nodes with the constraints that there should be a unique shortest path connecting these two nodes, and that its length should be at least 4. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
621,
|
| 807 |
+
825,
|
| 808 |
+
731
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "We create six variants of the Graph2Seq model coupling with different aggregation strategies in the node embedding generation. The first three (Graph2Seq-MA, -LA, -PA) use the Mean Aggregator, LSTM Aggregator and Pooling Aggregator to aggregate node neighbor information, respectively. Unlike these three models that aggregate the information of both forward and backward nodes, the other two models (Graph2Seq-MA-F, -MA-B) only consider one-way information aggregating the information from the forward nodes or the information from the backward nodes with the mean aggregator, respectively. We use the path accuracy to evaluate these models. The hop size is set to 10. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
173,
|
| 817 |
+
738,
|
| 818 |
+
825,
|
| 819 |
+
849
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 7
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Impacts of the Aggregator. Table 3 shows that on the $\\mathrm { S D P } _ { S E Q }$ dataset, both Graph2Seq-MA and Graph2Seq-PA achieve the best performance. On more complicated structured data, such as $\\mathrm { S D P } _ { D A G }$ and $\\operatorname { S D P } _ { D C G }$ , Graph2Seq-MA (our default model) also performs better than other variants. We can also see that Graph2Seq-MA performs better than Graph2Seq-MA-F and Graph2SeqMA-B on $\\mathrm { S D P } _ { D A G }$ and $\\mathrm { S D P } _ { S E Q }$ since it captures more information from both directions to learn better node embeddings. However, Graph2Seq-MA-F and Graph2Seq-MA-B achieve comparable performance to Graph2Seq-MA on $\\operatorname { S D P } _ { D C G }$ . This is because in almost $9 5 \\%$ of the graphs, $90 \\%$ of the nodes could reach each other by traversing the graph for a given hop size, which dramatically restores its information loss. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
857,
|
| 829 |
+
823,
|
| 830 |
+
885
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/a34585bc59e0ec1e8cd5c4d49637f24695627d44e1d9c2ab908c00b6c5bcd410.jpg",
|
| 837 |
+
"table_caption": [
|
| 838 |
+
"Table 3: Shortest path accuracy on three synthetic SDP datasets. "
|
| 839 |
+
],
|
| 840 |
+
"table_footnote": [],
|
| 841 |
+
"table_body": "<table><tr><td>Method</td><td>SDPDAG</td><td>SDPDCG</td><td>SDPsEQ</td></tr><tr><td>G2S-MA</td><td>99.8%</td><td>99.2%</td><td>100%</td></tr><tr><td>G2S-LA</td><td>91.7%</td><td>90.9%</td><td>99.9%</td></tr><tr><td>G2S-PA</td><td>96.7%</td><td>98.4%</td><td>100%</td></tr><tr><td>G2S-MA-F</td><td>78.8%</td><td>98.7%</td><td>70.2%</td></tr><tr><td>G2S-MA-B</td><td>80.1%</td><td>99.1%</td><td>68.6%</td></tr></table>",
|
| 842 |
+
"bbox": [
|
| 843 |
+
178,
|
| 844 |
+
150,
|
| 845 |
+
496,
|
| 846 |
+
231
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 8
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "image",
|
| 852 |
+
"img_path": "images/1817fe4bc4b840990b8107e2387bb08026cbe14dc5508663d86d7a3ee41be37e.jpg",
|
| 853 |
+
"image_caption": [
|
| 854 |
+
"Figure 4: Test Results on $\\mathrm { S D P _ { 1 0 0 0 } }$ "
|
| 855 |
+
],
|
| 856 |
+
"image_footnote": [],
|
| 857 |
+
"bbox": [
|
| 858 |
+
534,
|
| 859 |
+
99,
|
| 860 |
+
790,
|
| 861 |
+
256
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 8
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "",
|
| 868 |
+
"bbox": [
|
| 869 |
+
173,
|
| 870 |
+
281,
|
| 871 |
+
825,
|
| 872 |
+
378
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 8
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "Impact of Hop Size. To study the impact of the hop size, we create a $\\operatorname { S D P } _ { D C G }$ dataset, $\\mathrm { S D P _ { 1 0 0 0 } }$ and results are shown in Figure 4. We see that the performance of all variants of Graph2Seq converges to its optimal performance when increasing the number of hop size. Specifically, Graph2Seq-MA achieves significantly better performance than its counterparts considering only one direction propagation, especially when the hop size is small. As the hop size increases, the performance differences diminish. This is the desired property since Graph2Seq-MA can use much smaller hop size (about the half) to achieve the same performance of Graph2Seq-MA-F or Graph2Seq-MA-B with a larger size. This is particularly useful for large graphs where increasing hop size may need considerable computing resources and long run-time. We also compare Graph2Seq with GCN, where the hop size means the number of layers in the settings of GCN. Surprisingly, even Graph2Seq-MA-F or Graph2Seq-MA-B can significantly outperform GCN with the same hope size despite its rough equivalence between these two architectures. It again illustrates the importance of the methods that could take into account both directed and undirected graphs. For additional experimental results on the impact of hop size for graphs of different sizes, please refer to the Table 4 in Appendix C. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
173,
|
| 881 |
+
386,
|
| 882 |
+
825,
|
| 883 |
+
580
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 8
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "Impact of Attention Mechanism. To investigate the impact of attention mechanism to the Graph2Seq model, we still evaluate our model on $\\mathrm { S D P } _ { D A G }$ , $\\operatorname { S D P } _ { D C G }$ and $\\mathrm { S D P } _ { S E Q }$ datasets but without considering the attention strategy. As shown in Table 4, we find that the attention strategy significantly improves the performance of all variants of Graph2Seq by at least $1 4 . 9 \\%$ . This result is expected since for larger graphs it is more difficult for the encoder to compress all necessary information into a fixed-length vector; as intended, applying the attention mechanism in decoding enabled our proposed Graph2Seq model to successfully handle large graphs. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
174,
|
| 892 |
+
587,
|
| 893 |
+
825,
|
| 894 |
+
684
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 8
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "5 CONCLUSION ",
|
| 901 |
+
"text_level": 1,
|
| 902 |
+
"bbox": [
|
| 903 |
+
176,
|
| 904 |
+
702,
|
| 905 |
+
318,
|
| 906 |
+
717
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "In this paper, we study the graph-to-sequence problem, introducing a new general and flexible Graph2Seq model that follows the encoder-decoder architecture. We showed that, using our proposed bi-directional node embedding aggregation strategy, the graph encoder could successfully learn representations for three representative classes of directed graph, i.e., directed acyclic graphs, directed cyclic graphs and sequence-styled graphs. Experimental results on three tasks demonstrate that our model significantly outperforms existing graph neural networks, Seq2Seq, and Tree2Seq baselines on both synthetic and real application datasets. We also showed that introducing an attention mechanism over node representation into the decoding substantially enhances the ability of our model to produce correct target sequences from large graphs. Since much symbolic data is represented as graphs and many tasks express their desired outputs as sequences, we expect Graph2Seq to be broadly applicable to unify symbolic AI and beyond. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
733,
|
| 916 |
+
825,
|
| 917 |
+
886
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "REFERENCES ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
103,
|
| 928 |
+
285,
|
| 929 |
+
117
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 9
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Amr Ahmed, Nino Shervashidze, Shravan Narayanamurthy, Vanja Josifovski, and Alexander J Smola. Distributed large-scale natural graph factorization. In Proceedings of the 22nd international conference on World Wide Web, pp. 37–48. ACM, 2013. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
176,
|
| 938 |
+
126,
|
| 939 |
+
823,
|
| 940 |
+
169
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 9
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
169,
|
| 949 |
+
176,
|
| 950 |
+
823,
|
| 951 |
+
207
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 9
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "Laura Banarescu, Claire Bonial, Shu Cai, Madalina Georgescu, Kira Griffitt, Ulf Hermjakob, Kevin Knight, Philipp Koehn, Martha Palmer, and Nathan Schneider. Abstract meaning representation for sembanking. In Proceedings of the 7th Linguistic Annotation Workshop and Interoperability with Discourse, pp. 178–186, 2013. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
173,
|
| 960 |
+
214,
|
| 961 |
+
825,
|
| 962 |
+
271
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 9
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Joost Bastings, Ivan Titov, Wilker Aziz, Diego Marcheggiani, and Khalil Sima’an. Graph convolutional encoders for syntax-aware neural machine translation. arXiv preprint arXiv:1704.04675, 2017. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
173,
|
| 971 |
+
280,
|
| 972 |
+
823,
|
| 973 |
+
321
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 9
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. In Advances in neural information processing systems, pp. 585–591, 2002. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
173,
|
| 982 |
+
332,
|
| 983 |
+
823,
|
| 984 |
+
361
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 9
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
173,
|
| 993 |
+
369,
|
| 994 |
+
823,
|
| 995 |
+
398
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 9
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Shaosheng Cao, Wei Lu, and Qiongkai Xu. Grarep: Learning graph representations with global structural information. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, pp. 891–900. ACM, 2015. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
406,
|
| 1005 |
+
823,
|
| 1006 |
+
450
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 9
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Jie Chen, Tengfei Ma, and Cao Xiao. Fastgcn: Fast learning with graph convolutional networks via importance sampling. arXiv preprint arXiv:1801.10247, 2018. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
173,
|
| 1015 |
+
458,
|
| 1016 |
+
821,
|
| 1017 |
+
488
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
496,
|
| 1027 |
+
825,
|
| 1028 |
+
539
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3844–3852, 2016. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
547,
|
| 1038 |
+
825,
|
| 1039 |
+
590
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Alberto G Duran and Mathias Niepert. Learning graph representations with embedding propagation. arXiv preprint arXiv:1710.03059, 2017. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
599,
|
| 1049 |
+
823,
|
| 1050 |
+
628
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
637,
|
| 1060 |
+
823,
|
| 1061 |
+
680
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Akiko Eriguchi, Kazuma Hashimoto, and Yoshimasa Tsuruoka. Tree-to-sequence attentional neural machine translation. arXiv preprint arXiv:1603.06075, 2016. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
171,
|
| 1070 |
+
689,
|
| 1071 |
+
823,
|
| 1072 |
+
718
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122, 2017. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
171,
|
| 1081 |
+
726,
|
| 1082 |
+
823,
|
| 1083 |
+
756
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2011, Fort Lauderdale, USA, April 11-13, 2011, pp. 315–323, 2011. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
174,
|
| 1092 |
+
763,
|
| 1093 |
+
823,
|
| 1094 |
+
808
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Rafael Gomez-Bombarelli, Jennifer N Wei, David Duvenaud, Jos ´ e Miguel Hern ´ andez-Lobato, ´ Benjam´ın Sanchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D Hirzel, ´ Ryan P Adams, and Alan Aspuru-Guzik. Automatic chemical design using a data-driven contin- ´ uous representation of molecules. ACS Central Science, 2016. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
174,
|
| 1103 |
+
815,
|
| 1104 |
+
825,
|
| 1105 |
+
872
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 9
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Neural Networks, 2005. IJCNN’05. Proceedings. 2005 IEEE International Joint Conference on, volume 2, pp. 729–734. IEEE, 2005. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
174,
|
| 1114 |
+
882,
|
| 1115 |
+
823,
|
| 1116 |
+
924
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 9
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Palash Goyal and Emilio Ferrara. Graph embedding techniques, applications, and performance: A survey. arXiv preprint arXiv:1705.02801, 2017. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
171,
|
| 1125 |
+
103,
|
| 1126 |
+
825,
|
| 1127 |
+
132
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 10
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Alex Graves and Jurgen Schmidhuber. Framewise phoneme classification with bidirectional lstm ¨ and other neural network architectures. Neural Networks, 18(5-6):602–610, 2005. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
171,
|
| 1136 |
+
142,
|
| 1137 |
+
823,
|
| 1138 |
+
171
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 10
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 855–864. ACM, 2016. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
176,
|
| 1147 |
+
180,
|
| 1148 |
+
823,
|
| 1149 |
+
223
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Jiatao Gu, Zhengdong Lu, Hang Li, and Victor OK Li. Incorporating copying mechanism in sequence-to-sequence learning. arXiv preprint arXiv:1603.06393, 2016. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
174,
|
| 1158 |
+
232,
|
| 1159 |
+
823,
|
| 1160 |
+
262
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 10
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017a. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
173,
|
| 1169 |
+
271,
|
| 1170 |
+
823,
|
| 1171 |
+
301
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 10
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "William L Hamilton, Rex Ying, and Jure Leskovec. Representation learning on graphs: Methods and applications. arXiv preprint arXiv:1709.05584, 2017b. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
174,
|
| 1180 |
+
309,
|
| 1181 |
+
825,
|
| 1182 |
+
339
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
173,
|
| 1191 |
+
348,
|
| 1192 |
+
823,
|
| 1193 |
+
377
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Yanrong Hu and Simon X Yang. A knowledge based genetic algorithm for path planning of a mobile robot. In Robotics and Automation, 2004. Proceedings. ICRA’04. 2004 IEEE International Conference on, volume 5, pp. 4350–4355. IEEE, 2004. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
173,
|
| 1202 |
+
387,
|
| 1203 |
+
825,
|
| 1204 |
+
431
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 10
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, and Luke Zettlemoyer. 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), volume 1, pp. 2073–2083, 2016. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
176,
|
| 1213 |
+
439,
|
| 1214 |
+
823,
|
| 1215 |
+
483
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 10
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
173,
|
| 1224 |
+
492,
|
| 1225 |
+
823,
|
| 1226 |
+
521
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
171,
|
| 1235 |
+
531,
|
| 1236 |
+
823,
|
| 1237 |
+
560
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 10
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493, 2015. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
569,
|
| 1247 |
+
823,
|
| 1248 |
+
598
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 10
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Yujia Li, Oriol Vinyals, Chris Dyer, Razvan Pascanu, and Peter Battaglia. Learning deep generative models of graphs. arXiv preprint arXiv:1803.03324, 2018. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
173,
|
| 1257 |
+
608,
|
| 1258 |
+
823,
|
| 1259 |
+
637
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 10
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "Bowen Liu, Bharath Ramsundar, Prasad Kawthekar, Jade Shi, Joseph Gomes, Quang Luu Nguyen, Stephen Ho, Jack Sloane, Paul Wender, and Vijay Pande. Retrosynthetic reaction prediction using neural sequence-to-sequence models. ACS central science, 3(10):1103–1113, 2017. ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
174,
|
| 1268 |
+
646,
|
| 1269 |
+
825,
|
| 1270 |
+
689
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 10
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attentionbased neural machine translation. arXiv preprint arXiv:1508.04025, 2015. ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
174,
|
| 1279 |
+
699,
|
| 1280 |
+
823,
|
| 1281 |
+
728
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 10
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In International Conference on Machine Learning, pp. 2014–2023, 2016. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
173,
|
| 1290 |
+
737,
|
| 1291 |
+
823,
|
| 1292 |
+
767
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 10
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "Mingdong Ou, Peng Cui, Jian Pei, Ziwei Zhang, and Wenwu Zhu. Asymmetric transitivity preserving graph embedding. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 1105–1114. ACM, 2016. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
174,
|
| 1301 |
+
776,
|
| 1302 |
+
823,
|
| 1303 |
+
820
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 10
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
176,
|
| 1312 |
+
828,
|
| 1313 |
+
823,
|
| 1314 |
+
872
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 10
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "Michael Pust, Ulf Hermjakob, Kevin Knight, Daniel Marcu, and Jonathan May. Parsing english into abstract meaning representation using syntax-based machine translation. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pp. 1143–1154, 2015. ",
|
| 1321 |
+
"bbox": [
|
| 1322 |
+
174,
|
| 1323 |
+
881,
|
| 1324 |
+
825,
|
| 1325 |
+
924
|
| 1326 |
+
],
|
| 1327 |
+
"page_idx": 10
|
| 1328 |
+
},
|
| 1329 |
+
{
|
| 1330 |
+
"type": "text",
|
| 1331 |
+
"text": "Sam T Roweis and Lawrence K Saul. Nonlinear dimensionality reduction by locally linear embedding. science, 290(5500):2323–2326, 2000. ",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
171,
|
| 1334 |
+
103,
|
| 1335 |
+
823,
|
| 1336 |
+
132
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 11
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009. ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
171,
|
| 1345 |
+
140,
|
| 1346 |
+
820,
|
| 1347 |
+
170
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 11
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks. arXiv preprint arXiv:1703.06103, 2017. ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
174,
|
| 1356 |
+
178,
|
| 1357 |
+
823,
|
| 1358 |
+
220
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 11
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "Mike Schuster and Kuldip K Paliwal. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11):2673–2681, 1997. ",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
168,
|
| 1367 |
+
228,
|
| 1368 |
+
826,
|
| 1369 |
+
258
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 11
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Martin Simonovsky and Nikos Komodakis. Graphvae: Towards generation of small graphs using variational autoencoders. arXiv preprint arXiv:1802.03480, 2018. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
169,
|
| 1378 |
+
266,
|
| 1379 |
+
825,
|
| 1380 |
+
296
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 11
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "Richard Socher, Christopher D Manning, and Andrew Y Ng. Learning continuous phrase representations and syntactic parsing with recursive neural networks. In Proceedings of the NIPS-2010 Deep Learning and Unsupervised Feature Learning Workshop, volume 2010, pp. 1–9, 2010. ",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
176,
|
| 1389 |
+
304,
|
| 1390 |
+
825,
|
| 1391 |
+
348
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 11
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Linfeng Song, Xiaochang Peng, Yue Zhang, Zhiguo Wang, and Daniel Gildea. Amr-to-text generation with synchronous node replacement grammar. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, ACL 2017, Vancouver, Canada, July 30 - August 4, Volume 2: Short Papers, pp. 7–13, 2017. ",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
173,
|
| 1400 |
+
354,
|
| 1401 |
+
826,
|
| 1402 |
+
412
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 11
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Myra Spiliopoulou and Michael Hatzopoulos. Translation of SQL queries into a graph structure: query transformations and pre-optimization issues in a pipeline multiprocessor environment. Inf. Syst., 17(2):161–170, 1992. doi: 10.1016/0306-4379(92)90010-K. URL https://doi.org/ 10.1016/0306-4379(92)90010-K. ",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
173,
|
| 1411 |
+
420,
|
| 1412 |
+
825,
|
| 1413 |
+
477
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 11
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014. ",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
173,
|
| 1422 |
+
486,
|
| 1423 |
+
825,
|
| 1424 |
+
529
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 11
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pp. 2440–2448, 2015. ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
173,
|
| 1433 |
+
536,
|
| 1434 |
+
825,
|
| 1435 |
+
593
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 11
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pp. 3104–3112, 2014. ",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
173,
|
| 1444 |
+
601,
|
| 1445 |
+
825,
|
| 1446 |
+
659
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 11
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075, 2015. ",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
169,
|
| 1455 |
+
666,
|
| 1456 |
+
823,
|
| 1457 |
+
696
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 11
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Largescale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, pp. 1067–1077. International World Wide Web Conferences Steering Committee, 2015. ",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
173,
|
| 1466 |
+
704,
|
| 1467 |
+
825,
|
| 1468 |
+
761
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 11
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "text",
|
| 1474 |
+
"text": "Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 1(2), 2017. ",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
171,
|
| 1477 |
+
768,
|
| 1478 |
+
821,
|
| 1479 |
+
797
|
| 1480 |
+
],
|
| 1481 |
+
"page_idx": 11
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"type": "text",
|
| 1485 |
+
"text": "Oriol Vinyals, Samy Bengio, and Manjunath Kudlur. Order matters: Sequence to sequence for sets. arXiv preprint arXiv:1511.06391, 2015a. ",
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
171,
|
| 1488 |
+
806,
|
| 1489 |
+
821,
|
| 1490 |
+
835
|
| 1491 |
+
],
|
| 1492 |
+
"page_idx": 11
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"type": "text",
|
| 1496 |
+
"text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015b. ",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
173,
|
| 1499 |
+
843,
|
| 1500 |
+
823,
|
| 1501 |
+
873
|
| 1502 |
+
],
|
| 1503 |
+
"page_idx": 11
|
| 1504 |
+
},
|
| 1505 |
+
{
|
| 1506 |
+
"type": "text",
|
| 1507 |
+
"text": "Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Computer Vision and Pattern Recognition (CVPR), 2015 IEEE Conference on, pp. 3156–3164. IEEE, 2015c. ",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
174,
|
| 1510 |
+
882,
|
| 1511 |
+
825,
|
| 1512 |
+
924
|
| 1513 |
+
],
|
| 1514 |
+
"page_idx": 11
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "text",
|
| 1518 |
+
"text": "Jason Weston, Antoine Bordes, Sumit Chopra, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. CoRR, abs/1502.05698, 2015. URL http: //arxiv.org/abs/1502.05698. ",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
174,
|
| 1521 |
+
103,
|
| 1522 |
+
820,
|
| 1523 |
+
146
|
| 1524 |
+
],
|
| 1525 |
+
"page_idx": 12
|
| 1526 |
+
},
|
| 1527 |
+
{
|
| 1528 |
+
"type": "text",
|
| 1529 |
+
"text": "Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. arXiv preprint arXiv:1603.08861, 2016. ",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
171,
|
| 1532 |
+
155,
|
| 1533 |
+
823,
|
| 1534 |
+
184
|
| 1535 |
+
],
|
| 1536 |
+
"page_idx": 12
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"type": "text",
|
| 1540 |
+
"text": "Tao Yu, Zifan Li, Zilin Zhang, Rui Zhang, and Dragomir Radev. Typesql: Knowledge-based typeaware neural text-to-sql generation. arXiv preprint arXiv:1804.09769, 2018. ",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
171,
|
| 1543 |
+
193,
|
| 1544 |
+
823,
|
| 1545 |
+
222
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 12
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "Wojciech Zaremba and Ilya Sutskever. Learning to execute. arXiv preprint arXiv:1410.4615, 2014. ",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
173,
|
| 1554 |
+
231,
|
| 1555 |
+
821,
|
| 1556 |
+
246
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 12
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "text",
|
| 1562 |
+
"text": "Yu Zhang, William Chan, and Navdeep Jaitly. Very deep convolutional networks for end-to-end speech recognition. In Acoustics, Speech and Signal Processing (ICASSP), 2017 IEEE International Conference on, pp. 4845–4849. IEEE, 2017. ",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
176,
|
| 1565 |
+
253,
|
| 1566 |
+
823,
|
| 1567 |
+
297
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 12
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "text",
|
| 1573 |
+
"text": "Victor Zhong, Caiming Xiong, and Richard Socher. Seq2sql: Generating structured queries from natural language using reinforcement learning. CoRR, abs/1709.00103, 2017. ",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
171,
|
| 1576 |
+
306,
|
| 1577 |
+
823,
|
| 1578 |
+
334
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 12
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "A PSEUDO-CODE OF THE GRAPH-TO-SEQUENCE ALGORITHM ",
|
| 1585 |
+
"text_level": 1,
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
174,
|
| 1588 |
+
103,
|
| 1589 |
+
700,
|
| 1590 |
+
118
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 13
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "Algorithm 1 Node embedding generation algorithm ",
|
| 1597 |
+
"text_level": 1,
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
174,
|
| 1600 |
+
138,
|
| 1601 |
+
491,
|
| 1602 |
+
154
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 13
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "Input: Graph $\\mathcal G ( \\nu , \\mathcal { E } )$ ; node initial feature vector $\\mathbf { a } _ { v }$ , $\\forall v \\in \\mathcal { V }$ ; hops $K$ ; weight matrices $\\mathbf { W } ^ { k }$ , $\\forall k \\in$ $\\{ 1 , . . . , K \\}$ ; non-linearity $\\sigma$ ; aggregator functions AGGREGAT $\\boldsymbol { \\mathrm { E } } _ { k } ^ { \\vdash }$ , AGGREGATE $\\mathbf { \\Pi } _ { k } ^ { - 1 }$ , $\\forall k \\in \\{ 1 , . . . , K \\}$ ; neighborhood functions $\\mathcal { N } _ { \\vdash }$ , $\\mathcal { N } _ { + }$ Output: Vector representations $\\mathbf { Z } _ { v }$ for all $v \\in \\mathcal V$ 1: $\\mathbf { h } _ { v \\vdash } ^ { 0 } \\mathbf { a } _ { v }$ , $\\forall v \\in \\mathcal { V }$ 2: $\\mathbf { h } _ { v - 1 } ^ { 0 } \\mathbf { a } _ { v }$ , $\\forall v \\in \\mathcal { V }$ 3: for all $k = 1 . . . K$ do 4: for all $v \\in \\mathcal V$ do 5: $\\mathbf { h } _ { \\mathcal { N } _ { \\mathrm { i } } ( v ) } ^ { k } \\mathrm { A G G R E G A T E } _ { k } ^ { } ( \\{ \\mathbf { h } _ { u } ^ { k - 1 } , \\forall u \\in \\mathcal { N } _ { \\mathrm { i } } ( v ) \\} )$ 6: hkv $\\mathbf { \\Sigma } _ { \\vdash } \\sigma ( \\mathbf { W } ^ { k } \\cdot \\mathsf { C O N C A T } ( \\mathbf { h } _ { v \\vdash } ^ { k - 1 } , \\mathbf { h } _ { \\mathcal { N } _ { \\vdash } ( v ) } ^ { k } ) )$ 7: $\\begin{array} { r } { \\mathbf { h } _ { \\mathcal { N } _ { \\mathrm { - } } ( v ) } ^ { k } \\mathtt { A G G R E G A T E } _ { k } ^ { \\mathtt { - } } ( \\{ \\mathbf { h } _ { u \\mathrm { - } } ^ { k - 1 } , \\forall u \\in \\mathcal { N } _ { \\mathrm { + } } ( v ) \\} ) } \\end{array}$ 8: $\\mathbf { h } _ { v - 1 } ^ { k } \\sigma$ ( Wk· CONCAT(hk−1va , hkNa(v))) 9: end for 10: end for 11: $\\mathbf { z } _ { v } \\gets \\mathrm { C O N C A T } ( \\mathbf { h } _ { v \\mid - } ^ { K } , \\mathbf { h } _ { v } ^ { K } ) , \\forall v \\in \\mathcal { V }$ ",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
179,
|
| 1611 |
+
159,
|
| 1612 |
+
825,
|
| 1613 |
+
366
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 13
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "text",
|
| 1619 |
+
"text": "Algorithm 1 describes the embedding generation process where the entire graph $\\mathcal { G } = ( \\nu , \\mathcal { E } )$ and initial feature vectors for all nodes $\\mathbf { a } _ { v }$ , $\\forall v \\in \\mathcal { V }$ , are provided as input. Here $k$ denotes the current hop in the outer loop. The $\\mathbf { h } _ { v \\vdash } ^ { k }$ denotes node $v$ ’s forward representation which aggregates the information of nodes in $\\mathcal { N } _ { \\vdash } ( v )$ . Similarly, the $\\mathbf { h } _ { v - 1 } ^ { k }$ denotes node $v$ ’s backward representation which is generated by aggregating the information of nodes in $\\mathcal { N } _ { + } ( v )$ . Each step in the outer loop of Algorithm 1 proceeds as follows. First, each node $v \\in \\mathcal V$ in a graph aggregates the forward representations of the nodes in its immediate neighborhood, $\\{ \\mathbf { h } _ { u \\vdash } ^ { k - 1 } , \\forall u \\in \\mathcal { N } _ { \\vdash } ( v ) \\}$ , into a single vector, $\\mathbf { h } _ { \\mathcal { N } _ { \\mathrm { i } } ( v ) } ^ { k }$ (line 5). Note that this aggregation step depends on the representations generated at the previous iteration of the outer loop, $k - 1$ , and the $k = 0$ forward representations are defined as the input node feature vector. After arepresentation, $\\mathbf { h } _ { v \\vdash } ^ { k - 1 }$ ting the neighboring feature vectors, we con, with the aggregated neighborhood vector, $\\mathbf { h } _ { \\mathcal { N } _ { \\mathrm { i } } ( v ) } ^ { k }$ e the node current forward. Then this concatenated vector is fed through a fully connected layer with nonlinear activation function $\\sigma$ , which updates the forward representation of the current node to be used at the next step of the algorithm (line 6). We apply similar process to generate the backward representations of the nodes (line 7, 8). Finally, the representation of each node $\\mathbf { z } _ { v }$ is the concatenation of the forward representation (i.e., $\\mathbf { h } _ { v \\vdash } ^ { K }$ ) and the backward representation (i.e., $\\mathbf { h } _ { v - 1 } ^ { K } )$ ) at the last iteration $K$ . ",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
173,
|
| 1622 |
+
381,
|
| 1623 |
+
825,
|
| 1624 |
+
613
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 13
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "B STRUCTURED REPRESENTATION OF THE SQL QUERY ",
|
| 1631 |
+
"text_level": 1,
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
176,
|
| 1634 |
+
632,
|
| 1635 |
+
651,
|
| 1636 |
+
648
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 13
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "text",
|
| 1642 |
+
"text": "To apply Graph2Seq, Seq2Seq and Tree2Seq models on the natural language generation task, we need to convert the SQL query to a graph, sequence and tree, respectively. In this section, we describe these representations of the SQL query. ",
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
174,
|
| 1645 |
+
662,
|
| 1646 |
+
825,
|
| 1647 |
+
705
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 13
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "B.1 SEQUENCE REPRESENTATION ",
|
| 1654 |
+
"text_level": 1,
|
| 1655 |
+
"bbox": [
|
| 1656 |
+
176,
|
| 1657 |
+
722,
|
| 1658 |
+
421,
|
| 1659 |
+
736
|
| 1660 |
+
],
|
| 1661 |
+
"page_idx": 13
|
| 1662 |
+
},
|
| 1663 |
+
{
|
| 1664 |
+
"type": "text",
|
| 1665 |
+
"text": "We apply a simple template to construct the SQL query sequence: “SELECT $^ +$ <aggregation function $> + <$ Split Symbol> $^ +$ <selected column $> +$ WHERE $^ +$ <condition0> + <Split Symbol> $+ < c o n d i t i o n _ { 1 } > + \\ldots ^ { , }$ . ",
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
174,
|
| 1668 |
+
747,
|
| 1669 |
+
823,
|
| 1670 |
+
790
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 13
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "text",
|
| 1676 |
+
"text": "B.2 TREE REPRESENTATION ",
|
| 1677 |
+
"text_level": 1,
|
| 1678 |
+
"bbox": [
|
| 1679 |
+
176,
|
| 1680 |
+
805,
|
| 1681 |
+
383,
|
| 1682 |
+
820
|
| 1683 |
+
],
|
| 1684 |
+
"page_idx": 13
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"type": "text",
|
| 1688 |
+
"text": "We apply the SQL Parser tool4 to convert an SQL query to a tree which is illustrated in Figure 5. Specifically, the root of this tree has two child nodes, namely SELECT LIST and WHERE CLAUSE. The child nodes of SELECT LIST node are the selected columns in the SQL query. The WHERE CLAUSE node has all occurred logical operators in the SQL query as its children. The children of a logical operator node are the columns on which this operator works. ",
|
| 1689 |
+
"bbox": [
|
| 1690 |
+
174,
|
| 1691 |
+
832,
|
| 1692 |
+
825,
|
| 1693 |
+
901
|
| 1694 |
+
],
|
| 1695 |
+
"page_idx": 13
|
| 1696 |
+
},
|
| 1697 |
+
{
|
| 1698 |
+
"type": "image",
|
| 1699 |
+
"img_path": "images/eb8d2b13f2328e3820937294be1002f5a4119c02166be8b388932b414836e1da.jpg",
|
| 1700 |
+
"image_caption": [],
|
| 1701 |
+
"image_footnote": [],
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
236,
|
| 1704 |
+
99,
|
| 1705 |
+
761,
|
| 1706 |
+
309
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 14
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "image",
|
| 1712 |
+
"img_path": "images/0029468fc6ebd6581a56a75657d1bd9af1818c0efd325d0be6abc310b7c0e97f.jpg",
|
| 1713 |
+
"image_caption": [
|
| 1714 |
+
"Figure 5: Tree representation of the SQL query. SQL query ",
|
| 1715 |
+
"Figure 6: Graph representation of the SQL query. "
|
| 1716 |
+
],
|
| 1717 |
+
"image_footnote": [],
|
| 1718 |
+
"bbox": [
|
| 1719 |
+
334,
|
| 1720 |
+
347,
|
| 1721 |
+
663,
|
| 1722 |
+
588
|
| 1723 |
+
],
|
| 1724 |
+
"page_idx": 14
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "text",
|
| 1728 |
+
"text": "B.3 GRAPH REPRESENTATION ",
|
| 1729 |
+
"text_level": 1,
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
176,
|
| 1732 |
+
622,
|
| 1733 |
+
397,
|
| 1734 |
+
636
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 14
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "text",
|
| 1740 |
+
"text": "We use the following method to transform the SQL query to a graph: ",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
174,
|
| 1743 |
+
647,
|
| 1744 |
+
624,
|
| 1745 |
+
662
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 14
|
| 1748 |
+
},
|
| 1749 |
+
{
|
| 1750 |
+
"type": "text",
|
| 1751 |
+
"text": "SELECT Clause. For the SELECT clause such as “SELECT company”, we first create a node assigned with text attribute select. This SELECT node connects with column nodes whose text attributes are the selected column names such as company. For the SQL queries that contain aggregation functions such as count or max, we add one aggregation node which is connected with the column node—their text attributes are the aggregation function names. ",
|
| 1752 |
+
"bbox": [
|
| 1753 |
+
174,
|
| 1754 |
+
670,
|
| 1755 |
+
825,
|
| 1756 |
+
739
|
| 1757 |
+
],
|
| 1758 |
+
"page_idx": 14
|
| 1759 |
+
},
|
| 1760 |
+
{
|
| 1761 |
+
"type": "text",
|
| 1762 |
+
"text": "WHERE Clause. The WHERE clause usually contains more than one condition. For each condition, we use the same process as for the SELECT clause to create nodes. For example, in Figure 6, we create node assets and ${ > } v a l _ { 0 }$ for the first condition, the node sales and ${ > } v a l _ { 0 }$ for the second condition. We then integrate the constraint nodes that have the same text attribute (e.g., ${ > } v a l _ { 0 }$ in Figure 6). For a logical operator such as AND, OR and NOT, we create a node that connects with all column nodes that the operator works on (e.g., AND in Figure 6). These logical operator nodes then connect with SELECT node. ",
|
| 1763 |
+
"bbox": [
|
| 1764 |
+
174,
|
| 1765 |
+
746,
|
| 1766 |
+
825,
|
| 1767 |
+
843
|
| 1768 |
+
],
|
| 1769 |
+
"page_idx": 14
|
| 1770 |
+
},
|
| 1771 |
+
{
|
| 1772 |
+
"type": "text",
|
| 1773 |
+
"text": "C MORE RESULTS ON THE IMPACT OF HOP SIZE ",
|
| 1774 |
+
"text_level": 1,
|
| 1775 |
+
"bbox": [
|
| 1776 |
+
174,
|
| 1777 |
+
863,
|
| 1778 |
+
591,
|
| 1779 |
+
880
|
| 1780 |
+
],
|
| 1781 |
+
"page_idx": 14
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"type": "text",
|
| 1785 |
+
"text": "In Algorithm 1, we can see that there are three key factors in the node embedding generation. The first factor is the aggregator choice which determines how information from neighborhood nodes is combined. The other two are the hop size $( K )$ and the neighborhood function $( \\mathcal { N } _ { \\vdash } ( v ) , \\mathcal { N } _ { \\dashv } ( v ) )$ , which together determine which neighbor nodes should be aggregated to generate each node embedding. To study the impact of the hop size in our model, we create two $\\operatorname { S D P } _ { D C G }$ datasets, $\\mathrm { S D P _ { 1 0 0 } }$ and $\\mathrm { S D P _ { 1 0 0 0 } }$ , where each graph has 100 nodes or 1000 nodes, respectively. Both of these two datasets contain 8000 training examples, 1000 dev examples and 1000 test examples. We evaluated three models, Graph2Seq-MA-F, Graph2Seq-MA-B and Graph2Seq-MA, on these two datasets; results are listed in Table 4. ",
|
| 1786 |
+
"bbox": [
|
| 1787 |
+
174,
|
| 1788 |
+
895,
|
| 1789 |
+
823,
|
| 1790 |
+
924
|
| 1791 |
+
],
|
| 1792 |
+
"page_idx": 14
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"type": "table",
|
| 1796 |
+
"img_path": "images/6fb5e75400e6e37000e2383c6ded53d9d96fc7540f7e31606b77fd48b35ec600.jpg",
|
| 1797 |
+
"table_caption": [
|
| 1798 |
+
"Table 4: Test Results on $\\mathrm { { S D P } _ { 1 0 0 } }$ and $\\mathrm { S D P _ { 1 0 0 0 } }$ "
|
| 1799 |
+
],
|
| 1800 |
+
"table_footnote": [],
|
| 1801 |
+
"table_body": "<table><tr><td colspan=\"5\">SDP100</td></tr><tr><td>Hop Size</td><td>Graph2Seq-MA-F</td><td>Graph2Seq-MA-B</td><td>Graph2Seq-MA</td><td>GCN(Kipf &Welling,2016)+ our decoder</td></tr><tr><td>1</td><td>50.1%</td><td>52.0%</td><td>76.3%</td><td>70.2%</td></tr><tr><td>3</td><td>73.2%</td><td>76.7%</td><td>95.4%</td><td>90.1%</td></tr><tr><td>4</td><td>84.7%</td><td>85.2%</td><td>99.2%</td><td>94.7%</td></tr><tr><td>5</td><td>93.2%</td><td>94.5%</td><td>99.4%</td><td>94.9%</td></tr><tr><td>7</td><td>98.9%</td><td>99.1%</td><td>99.4%</td><td>94.3%</td></tr><tr><td>10</td><td>98.9%</td><td>99.1%</td><td>99.4%</td><td>94.3%</td></tr><tr><td rowspan=\"3\">10</td><td>w/o attention</td><td>w/o attention</td><td>w/oattention</td><td>w/o attention</td></tr><tr><td>85.8%</td><td>86.3%</td><td>89.6%</td><td>83.1%</td></tr><tr><td></td><td></td><td>SDP1000</td><td></td></tr><tr><td>Hop Size</td><td>Graph2Seq-MA-F</td><td>Graph2Seq-MA-B</td><td>Graph2Seq-MA</td><td>GCN(Kipf&Welling,2016)+our decoder</td></tr><tr><td>10</td><td>34.7%</td><td>33.2%</td><td>50.4%</td><td>45.7%</td></tr><tr><td>35</td><td>68.2%</td><td>70.6%</td><td>82.5%</td><td>66.3%</td></tr><tr><td>45</td><td>79.0%</td><td>82.1%</td><td>96.5%</td><td>89.0%</td></tr><tr><td>75</td><td>88.3%</td><td>89.9%</td><td>96.4%</td><td>89.2%</td></tr><tr><td>85</td><td>95.9%</td><td>96.0%</td><td>96.5%</td><td>88.8%</td></tr><tr><td>100</td><td>95.8%</td><td>96.0%</td><td>96.5%</td><td>88.6%</td></tr><tr><td>100</td><td>w/o attention 78.3%</td><td>w/o attention 78.2%</td><td>w/o attention 81.6%</td><td>w/o attention 72.4%</td></tr></table>",
|
| 1802 |
+
"bbox": [
|
| 1803 |
+
173,
|
| 1804 |
+
101,
|
| 1805 |
+
895,
|
| 1806 |
+
358
|
| 1807 |
+
],
|
| 1808 |
+
"page_idx": 15
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"type": "text",
|
| 1812 |
+
"text": "",
|
| 1813 |
+
"bbox": [
|
| 1814 |
+
173,
|
| 1815 |
+
401,
|
| 1816 |
+
825,
|
| 1817 |
+
500
|
| 1818 |
+
],
|
| 1819 |
+
"page_idx": 15
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"type": "text",
|
| 1823 |
+
"text": "We see that Graph2Seq-MA-F and Graph2Seq-MA-B could show significant performance improvements with increasing the hop size. Specifically, on the $\\mathrm { S D P _ { 1 0 0 } }$ dataset, Graph2Seq-MA-F and Graph2Seq-MA-B achieve their best performance when the hop size reaches 7; further increases do not improve the overall performance. A similar situation is also observed on the $\\mathrm { S D P _ { 1 0 0 0 } }$ dataset; performance converges at the hop size of 85. Interestingly, the average diameters of the graphs in the two datasets are 6.8 and 80.2, respectively, suggesting that the ideal hop size for best Graph2SeqMA-F performance should be the graph diameter. This should not be surprising; if the hop size equals the graph diameter, each node is guaranteed to aggregate the information of all reachable nodes on the graph within its embedding. Note that in the experiments on $\\mathrm { S D P _ { 1 0 0 0 } }$ , in the $X$ $( X \\ ; 1 0 )$ hop, we always use the aggregator in the $I O$ -th hop, because introducing too many aggregators (i.e., parameters) may make the model over-fitting. ",
|
| 1824 |
+
"bbox": [
|
| 1825 |
+
174,
|
| 1826 |
+
507,
|
| 1827 |
+
825,
|
| 1828 |
+
660
|
| 1829 |
+
],
|
| 1830 |
+
"page_idx": 15
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "text",
|
| 1834 |
+
"text": "Like Graph2Seq-MA-F, Graph2Seq-MA also benefited from increasing the hop size. However, on both datasets, Graph2Seq-MA could reach peak performance at a smaller hop size than Graph2SeqMA-F. For example, on the $\\mathrm { S D P _ { 1 0 0 } }$ dataset, Graph2Seq-MA achieves $9 9 . 2 \\%$ accuracy once the hop size is greater than 4 while Graph2Seq-MA-F requires a hop size greater than 7 to achieve comparable accuracy; similar observations hold for the $\\mathrm { S D P _ { 1 0 0 0 } }$ dataset. Moreover, we can see that the minimum required hop size that Graph2Seq-MA could achieve its best performance is approximately the average radii (c.f. diameter) of the graphs, which are 3.4 and 40.1, respectively. Recall that the main difference between Graph2Seq-MA and Graph2Seq-MA-F (or Graph2Seq-MA-B) lies in whether the system aggregates information propagated from backward nodes; the performance difference indicates that by incorporating forward and backward nodes’ information, it is possible for the model to achieve the best performance by traversing less of the graph. This is useful in practice, especially for large graphs where increasing hop size may consume considerable computing resources and run-time. ",
|
| 1835 |
+
"bbox": [
|
| 1836 |
+
174,
|
| 1837 |
+
666,
|
| 1838 |
+
825,
|
| 1839 |
+
847
|
| 1840 |
+
],
|
| 1841 |
+
"page_idx": 15
|
| 1842 |
+
},
|
| 1843 |
+
{
|
| 1844 |
+
"type": "text",
|
| 1845 |
+
"text": "Table 4 also makes clear the utility of the attention strategy; the performance of both Graph2SeqMA-F and Graph2Seq-MA decreases by at least $9 . 8 \\%$ on $\\mathrm { S D P _ { 1 0 0 } }$ and $1 4 . 9 \\%$ on $\\mathrm { S D P _ { 1 0 0 0 } }$ . This result is expected, since for larger graphs it is more difficult for the encoder to compress all necessary information into a fixed-length vector; as intended, applying the attention mechanism in decoding enabled our proposed Graph2Seq model to handle large graphs successfully. ",
|
| 1846 |
+
"bbox": [
|
| 1847 |
+
174,
|
| 1848 |
+
854,
|
| 1849 |
+
823,
|
| 1850 |
+
924
|
| 1851 |
+
],
|
| 1852 |
+
"page_idx": 15
|
| 1853 |
+
},
|
| 1854 |
+
{
|
| 1855 |
+
"type": "text",
|
| 1856 |
+
"text": "As shown in Algorithm 1, the neighborhood function takes a given node as input and returns its directly connected neighbor nodes, which are then fed to the node embedding generator. Intuitively, to obtain a better representation of a node, this function should return all its neighbor nodes in the graph. However, this may result in high training times on large graphs. To address this, (Hamilton et al., 2017a) proposes a sampling method which randomly selects a fixed number of neighbor nodes from which to aggregate information at each hop. We use this sampling method to manage the neighbor node size at each aggregation step. ",
|
| 1857 |
+
"bbox": [
|
| 1858 |
+
174,
|
| 1859 |
+
103,
|
| 1860 |
+
825,
|
| 1861 |
+
202
|
| 1862 |
+
],
|
| 1863 |
+
"page_idx": 16
|
| 1864 |
+
}
|
| 1865 |
+
]
|
parse/train/SkeXehR9t7/SkeXehR9t7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/cu7IUiOhujH/cu7IUiOhujH.md
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SUPERVISED CONTRASTIVE LEARNING FOR PRE-TRAINED LANGUAGE MODEL FINE-TUNING
|
| 2 |
+
|
| 3 |
+
Beliz Gunel†∗, Jingfei $\mathbf { D } \mathbf { u } ^ { \ddag }$ , Alexis Conneau‡, Ves Stoyanov‡ †Stanford University, $^ \ddag$ Facebook AI
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
State-of-the-art natural language understanding classification models follow twostages: pre-training a large language model on an auxiliary task, and then finetuning the model on a task-specific labeled dataset using cross-entropy loss. However, the cross-entropy loss has several shortcomings that can lead to sub-optimal generalization and instability. Driven by the intuition that good generalization requires capturing the similarity between examples in one class and contrasting them with examples in other classes, we propose a supervised contrastive learning (SCL) objective for the fine-tuning stage. Combined with cross-entropy, our proposed SCL loss obtains significant improvements over a strong RoBERTa-Large baseline on multiple datasets of the GLUE benchmark in few-shot learning settings, without requiring specialized architecture, data augmentations, memory banks, or additional unsupervised data. Our proposed fine-tuning objective leads to models that are more robust to different levels of noise in the fine-tuning training data, and can generalize better to related tasks with limited labeled data.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
State-of-the-art for most existing natural language processing (NLP) classification tasks is achieved by models that are first pre-trained on auxiliary language modeling tasks and then fine-tuned on the task of interest with cross-entropy loss (Radford et al., 2019; Howard & Ruder, 2018; Liu et al., 2019; Devlin et al., 2019). Although ubiquitous, the cross-entropy loss – the KL-divergence between one-hot vectors of labels and the distribution of model’s output logits – has several shortcomings. Cross entropy loss leads to poor generalization performance (Liu et al., 2016; Cao et al., 2019), and it lacks robustness to noisy labels (Zhang & Sabuncu, 2018; Sukhbaatar et al., 2015) or adversarial examples (Elsayed et al., 2018; Nar et al., 2019). Effective alternatives have been proposed to modify the reference label distributions through label smoothing (Szegedy et al., 2016; Muller et al., 2019), ¨ Mixup (Zhang et al., 2018), CutMix (Yun et al., 2019), knowledge distillation (Hinton et al., 2015) or self-training (Yalniz et al., 2019; Xie et al., 2020).
|
| 12 |
+
|
| 13 |
+
Fine-tuning using cross entropy loss in NLP also tends to be unstable across different runs (Zhang et al., 2020; Dodge et al., 2020), especially when supervised data is limited, a scenario in which pre-training is particularly helpful. To tackle the issue of unstable fine-tuning and poor generalization, recent works propose local smoothness-inducing regularizers (Jiang et al., 2020) and regularization methods inspired by the trust region theory (Aghajanyan et al., 2020) to prevent representation collapse. Empirical evidence suggests that fine-tuning for more iterations, reinitializing top few layers (Zhang et al., 2020), and using debiased Adam optimizer during fine-tuning (Mosbach et al., 2020) can make the fine-tuning stage more stable.
|
| 14 |
+
|
| 15 |
+
Inspired by the learning strategy that humans utilize when given a few examples, we seek to find the commonalities between the examples of each class and contrast them with examples from other classes. We hypothesize that a similarity-based loss will be able to hone in on the important dimensions of the multidimensional hidden representations hence lead to better few-shot learning results and be more stable while fine-tuning pre-trained language models. We propose a novel objective for fine-tuning that includes a supervised contrastive learning (SCL) term that pushes the examples from the same class close and the examples from different classes further apart. The SCL term is similar to the contrastive objectives used in self-supervised representation learning across image, speech, and video domains. (Sohn, 2016; Oord et al., 2018; Wu et al., 2018; Bachman et al., 2019; Henaff et al., 2019; Baevski et al., 2020; Conneau et al., 2020; Tian et al., 2020; Hjelm et al., ´ 2019; Han et al., 2019; He et al., 2020; Misra & Maaten, 2020; Chen et al., 2020a;b). Unlike these methods, however, we use a contrastive objective for supervised learning of the final task, instead of contrasting different augmented views of examples.
|
| 16 |
+
|
| 17 |
+
In few-shot learning settings (20, 100, 1000 labeled examples), the addition of the SCL term to the finetuning objective significantly improves the performance on several natural language understanding classification tasks from the popular GLUE benchmark (Wang et al., 2019) over the very strong baseline of fine-tuning RoBERTa-Large with cross-entropy loss only. Furthermore, pre-trained language models fine-tuned with our proposed objective are not only robust to noise in the fine-tuning training data, but can also exhibit improved generalization to related tasks with limited labeled task data. Our approach does not require any specialized network architectures (Bachman et al., 2019; Henaff et al., 2019), memory banks (Wu et al., 2018; Tian et al., 2020; Misra & Maaten, 2020), data ´ augmentation of any kind, or additional unsupervised data. To the best of our knowledge, our work is the first to successfully integrate a supervised contrastive learning objective for fine-tuning pre-trained language models. We empirically demonstrate that the new objective has desirable properties across several different settings. Our contributions in this work are listed in the following:
|
| 18 |
+
|
| 19 |
+
• We propose a novel objective for fine-tuning pre-trained language models that includes a supervised contrastive learning term, as described in Section 2.
|
| 20 |
+
|
| 21 |
+
• We obtain strong improvements in the few-shot learning settings (20, 100, 1000 labeled examples) as shown in Table 2, leading up to 10.7 points improvement on a subset of GLUE benchmark tasks (SST-2, QNLI, MNLI) for the 20 labeled example few-shot setting, over a very strong baseline – RoBERTa-Large fine-tuned with cross-entropy loss.
|
| 22 |
+
|
| 23 |
+
• We demonstrate that our proposed fine-tuning objective is more robust, in comparison to RoBERTa-Large fine-tuned with cross-entropy loss, across augmented noisy training datasets (used to fine-tune the models for the task of interest) with varying noise levels as shown in Table 3 – leading up to 7 points improvement on a subset of GLUE benchmark tasks (SST-2, QNLI, MNLI) across augmented noisy training datasets. We use a backtranslation model to construct the augmented noisy training datasets of varying noise levels (controlled by the temperature parameter), as described in detail in Section 4.2.
|
| 24 |
+
|
| 25 |
+
• We show that the task-models fine-tuned with our proposed objective have improved generalizability to related tasks despite having limited availability of labeled task data (Table 7). This led to a 2.9 point improvement on Amazon-2 over the task model fine-tuned with cross-entropy loss only. Moreover, it considerably reduced the variance across few-shot training samples, when transferred from the source SST-2 sentiment analysis task model.
|
| 26 |
+
|
| 27 |
+
# 2 APPROACH
|
| 28 |
+
|
| 29 |
+
We propose a novel objective that includes a supervised contrastive learning term for fine-tuning pre-trained language models. The loss is meant to capture the similarities between examples of the same class and contrast them with the examples from other classes.
|
| 30 |
+
|
| 31 |
+
For a multi-class classification problem with C classes, we work with a batch of training examples of size N, $\{ x _ { i } , y _ { i } \} _ { i = 1 , \dots N }$ . $\Phi ( \cdot ) \in \mathbf { R } ^ { d }$ denotes an encoder that outputs the $l _ { 2 }$ normalized final encoder hidden layer before the softmax projection; $N _ { y _ { i } }$ is the total number of examples in the batch that have the same label as $y _ { i }$ ; $\tau > 0$ is an adjustable scalar temperature parameter that controls the separation of classes; $y _ { i , c }$ denotes the label and $\hat { y } _ { i , c }$ denotes the model output for the probability of the ith example belonging to the class $\mathrm { c }$ ; $\lambda$ is a scalar weighting hyperparameter that we tune for each downstream task and setting. The overall loss is then given in the following:
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
\begin{array} { l } { { \displaystyle { \mathcal { L } } = ( 1 - \lambda ) { \mathcal { L } } _ { C E } + \lambda { \mathcal { L } } _ { S C L } } } \\ { { \displaystyle { \mathcal { L } } _ { C E } = - \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \sum _ { c = 1 } ^ { C } y _ { i , c } \cdot l o g \hat { y } _ { i , c } } } \\ { { \displaystyle { \mathcal { L } } _ { S C L } = \sum _ { i = 1 } ^ { N } - \frac { 1 } { N _ { y _ { i } } - 1 } \sum _ { j = 1 } ^ { N } \mathbf { 1 } _ { i \neq j } \mathbf { 1 } _ { y _ { i } = y _ { j } } \log \frac { \exp { \left( \Phi ( x _ { i } ) \cdot \Phi ( x _ { j } ) / \tau \right) } } { \sum _ { k = 1 } ^ { N } \mathbf { 1 } _ { i \neq k } \exp { \left( \Phi ( x _ { i } ) \cdot \Phi ( x _ { k } ) / \tau \right) } } } } \end{array}
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
The overall loss is a weighted average of CE and the proposed SCL loss, as given in the equation (1). The canonical definition of the multi-class CE loss that we use is given in equation (2). The novel SCL loss is given in the equation (3).
|
| 38 |
+
|
| 39 |
+
This loss can be applied using a variety of encoders $\Phi ( \cdot ) \in \mathbf { R } ^ { d }$ – for example a ResNet for a computer vision application or a pre-trained language model such as BERT for an NLP application. In this work, we focus on fine-tuning pre-trained language models for single sentence and sentence-pair classification settings. For single sentence classification, each example $x _ { i }$ consists of sequence of tokens prepended with the special $[ C L S ]$ token $\boldsymbol { x } _ { i } = [ [ C L S ] , t _ { 1 } , t _ { 2 } , \ldots , t _ { L } , [ E O S ] ]$ . The length of sequence $\mathrm { L }$ is constrained such that $L < L _ { \operatorname* { m a x } }$ . Similarly, for sentence-pair classification tasks, each example $x _ { i }$ is a concatenation of two sequences of tokens $[ t _ { 1 } , t _ { 2 } , \dots t _ { L } ]$ and $[ s _ { 1 } , s _ { 2 } , \ldots , s _ { M } ]$ corresponding to the sentences with special tokens delimiting them: $x _ { i } =$ $[ [ C L S ] , t _ { 1 } , t _ { 2 } , \ldots , { \dot { t } } _ { L } , [ S E P ] , s _ { 1 } , s _ { 2 } , \ldots , s _ { M } , [ E O S ] ]$ . The length of concatenated sequences is constrained such that $L + M < L _ { \mathrm { m a x } }$ . In both cases, $\Phi ( x _ { i } ) \in \mathbf { R } ^ { d }$ uses the embedding of $[ C L S ]$ token as the representation for example $x _ { i }$ . These choices follow standard practices for fine-tuning pre-trained language models for classification (Devlin et al., 2019; Liu et al., 2019).
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
Figure 1: Our proposed objective includes a cross-entropy term (CE) and a supervised contrastive learning (SCL) term, and it is formulated to push examples from the same class close and examples from different classes further apart. We show examples from the SST-2 sentiment analysis dataset from the GLUE benchmark, where class A (shown in red) is negative movie reviews and class B (shown in blue) is positive movie reviews. Although we show a binary classification case for simplicity, the loss is generally applicable to any multi-class classification setting.
|
| 43 |
+
|
| 44 |
+
Empirical observations show that both $l _ { 2 }$ normalization of the encoded embedding representations and an adjustable scalar temperature parameter $\tau$ improve performance. Lower temperature increases the influence of examples that are harder to separate, effectively creating harder negatives. Using hard negatives has been previously shown to improve performance in the context of margin-based loss formulations such as triplet loss (Schroff et al., 2015). The empirical behavior of the adjustable temperature parameter is consistent with the observations of previous work related to supervised contrastive learning. (Chen et al., 2020a; Khosla et al., 2020).
|
| 45 |
+
|
| 46 |
+
Relationship to Self-Supervised Contrastive Learning Self-supervised contrastive learning has shown success in learning powerful representations, particularly in the computer vision domain. (Chen et al., 2020a; He et al., 2020; Tian et al., 2020; Mnih & Kavukcuoglu, 2013; Gutmann & Hyvarinen, ¨ 2012; Kolesnikov et al., 2019) Self-supervised learning methods do not require any labeled data; instead they sample a mini batch from unsupervised data and create positive and negative examples from these samples using strong data augmentation techniques such as AutoAugment (Cubuk et al., 2019) or RandAugment (Cubuk et al., 2020) for computer vision. Positive examples are constructed by applying data augmentation to the same example (cropping, flipping, etc. for an image), and negative examples are simply all the other examples in the sampled mini batch. Intuitively, selfsupervised contrastive objectives are learning representations that are invariant to different views of positive pairs; while maximizing the distance between negative pairs. The distance metric used is often the inner product or the Euclidean distance between vector representations of the examples.
|
| 47 |
+
|
| 48 |
+
For a batch of size N, self-supervised contrastive loss is defined as:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\mathcal { L } _ { s e l f } = \sum _ { i = 1 } ^ { 2 N } - \log \frac { \exp { ( \Phi ( x _ { 2 i - 1 } ^ { \prime } ) \cdot \Phi ( x _ { 2 i } ^ { \prime } ) / \tau ) } } { \sum _ { k = 1 } ^ { 2 N } \mathbf { 1 } _ { i \neq k } \exp { ( \Phi ( x _ { i } ^ { \prime } ) \cdot \Phi ( x _ { k } ^ { \prime } ) / \tau ) } }
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where $\Phi ( \cdot ) \in \mathbf { R } ^ { d }$ denotes an encoder that outputs the $l _ { 2 }$ normalized final encoder hidden layer before the softmax projection; $\tau > 0$ is a scalar temperature parameter. $\mathbf { A }$ is defined as a data augmentation block that generates two randomly generated augmented examples, $x _ { 2 i } ^ { \prime }$ and $x _ { 2 i - 1 } ^ { \prime }$ from the original example $x _ { i }$ : $\mathbf { A } ( \{ x _ { i } , y _ { i } \} _ { i = 1 , \dots N } ) \doteq \bar { \{ x _ { i } ^ { \prime } , y _ { i } ^ { \prime } \} } _ { i = 1 , \dots 2 N }$ . As an example, A can be RandAugment for a computer vision application; or it could be a back-translation model for an NLP application.
|
| 55 |
+
|
| 56 |
+
# 3 RELATED WORK
|
| 57 |
+
|
| 58 |
+
Traditional Machine Learning and Theoretical Understanding Several works have analyzed the shortcomings of the widely adopted cross-entropy loss, demonstrating that it leads to poor generalization performance due to poor margins (Liu et al., 2016; Cao et al., 2019), and lack of robustness to noisy labels (Zhang & Sabuncu, 2018; Sukhbaatar et al., 2015) or adversarial examples (Elsayed et al., 2018; Nar et al., 2019). On the other hand, there has been a body of work that has explored the performance difference for classifiers trained with discriminative (i.e., optimizing for $p ( y | x )$ , where y is the label and $\mathbf { X }$ is the input) losses such as cross-entropy loss and generative losses (i.e. optimizing for $p ( x | y ) \big )$ ). $\mathrm { N g }$ & Jordan (2001) show that classifiers trained with generative losses can outperform their counterparts trained with discriminative losses in the context of Logistic Regression and Naive Bayes. Raina et al. (2003) show that a hybrid discriminative and generative objective outperforms both solely discriminative and generative approaches. In the context of contrastive learning, Saunshi et al. (2019) propose a theoretical framework for analyzing contrastive learning algorithms through hypothesizing that semantically similar points are sampled from the same latent class, which allows showing formal guarantees on the quality of learned representations.
|
| 59 |
+
|
| 60 |
+
Contrastive Learning There has been several recent investigations for the use of contrastive objectives for self-supervised, semi-supervised, and supervised learning methods, primarily in the computer vision domain. Chen et al. (2020a) propose a framework for contrastive learning of visual representations without specialized architectures or a memory bank, and show state-of-the-art results on ImageNet ILSVRC-2012 (Russakovsky et al., 2015) – outperforming previous methods for self-supervised, semi-supervised and transfer learning. Similarly, Khosla et al. (2020) propose a supervised contrastive loss that outperforms cross entropy loss and gets state-of-the-art results on ImageNet on both ResNet-50 and ResNet-200 (He et al., 2016) with AutoAugment (Cubuk et al., 2019) data augmentation. They also show increased robustness on the ImageNet-C dataset (Hendrycks & Dietterich, 2019), and demonstrate that supervised contrastive loss is less sensitive to different hyperparameter settings for optimizers or data augmentations compared to the cross-entropy loss. Liu & Abbeel (2020) propose a hybrid discriminative-generative training of energy-based models where they approximate the generative term with a contrastive loss using large batch sizes and show improved classification accuracy of WideResNet-28-10 (Zagoruyko & Komodakis, 2016) on CIFAR-10 and CIFAR-100 (Krizhevsky, 2009) datasets, outperforming state-of-the-art discriminative and generative classifiers. They also demonstrate improved performance for WideResNet-28-10 on robustness, out-of-distribution detection, and calibration, compared to other state-of-the-art generative and hybrid models. Finally, Fang & Xie (2020) propose pre-training language models using a self-supervised contrastive learning objective at the sentence level using back-translation as the augmentation method, followed by fine-tuning by predicting whether two augmented sentences originate from the same sentence – demonstrating improvements over fine-tuning BERT on a subset of GLUE benchmark tasks.
|
| 61 |
+
|
| 62 |
+
Stability and Robustness of Fine-tuning Pre-trained Language Models There has been recent works on analyzing the stability and robustness of fine-tuning pre-trained language models, since they have been shown to overfit to the labeled task data while fine-tuning and hence fail to generalize to unseen data when there is limited labeled data for the task (Aghajanyan et al., 2020). To improve the generalization performance, Jiang et al. (2020) propose a local smoothness-inducing regularizer to manage the complexity of the model and a Bregman proximal point optimization method, an instance of trust-region methods, to prevent aggressive updating of the model during fine-tuning. They show state-of-the-art performance on GLUE, SNLI (Bowman et al., 2015), SciTail (Khot et al., 2018), and ANLI (Nie et al., 2020) natural language understanding benchmarks. Similarly, Aghajanyan et al. (2020) propose a regularized fine-tuning procedure inspired by trust-region theory that replaces adversarial objectives with parametric noise sampled from normal or uniform distribution in order to prevent representation collapse during fine-tuning for better generalization performance, without hurting the performance. They show improved performance on a range of natural language understanding and generation tasks including DailyMail/CNN (Hermann et al., 2015), Gigaword (Napoles et al., 2012), Reddit TIFU (Kim et al., 2019), and the GLUE benchmark. There has also been some empirical analysis that suggests fine-tuning for more epochs, reinitializing top few layers (Zhang et al., 2020) instead of only the classification head, and using debiased Adam optimizer instead of BERTAdam (Devlin et al., 2019) during fine-tuning (Mosbach et al., 2020) can make the fine-tuning procedure more stable across different runs.
|
| 63 |
+
|
| 64 |
+
# 4 EXPERIMENTAL SETUP
|
| 65 |
+
|
| 66 |
+
# 4.1 DATASETS AND TRAINING DETAILS
|
| 67 |
+
|
| 68 |
+
We use datasets from the GLUE natural language understanding benchmark (Wang et al., 2019) for evaluation. We include both single sentence classification tasks and sentence-pair classification tasks to test whether our hypothesis is generally applicable across tasks. We summarize each dataset based on their main task, domain, number of training examples, and number of classes in Table 1.
|
| 69 |
+
|
| 70 |
+
In our few-shot learning experiments, we sample half of the original validation set of the GLUE benchmark and use it as our test set, and sample ${ \sim } 5 0 0$ examples for our validation set from the original GLUE validation set, both taking the label distribution of the original validation set into account. For each task, we want the validation set to be small enough to avoid easy overfitting on the validation set, and big enough to avoid high-variance when early-stopping at various epochs for the few-shot learning experiments. For full dataset experiments, such as the ones shown in Table 5, Table 6, Table 8, and Table 9, we sample a validation set from the original training set of the GLUE benchmark based on the size of the original validation set of GLUE, and report our test results on the original validation set of GLUE.
|
| 71 |
+
|
| 72 |
+
We run each experiment with 10 different seeds, and report the average test accuracy, standard deviation, along with p-values with respect to the baseline. We pick the best hyperparameter combination based on the average validation accuracy across 10 seeds. For few-shot learning experiments, such as the ones shown in Table 2, Table 3, and Table 10, we sample 10 different training set samples based on the total number of examples $N$ specified from the original training set of the GLUE benchmark, taking the label distribution of the original training set into account. We report the average and the standard deviation of the test accuracies of the top 3 models based on their validation accuracies out of 10 random training set samples. Best hyperparameter combination is picked based on the average validation accuracy of the top 3 models. The reason why we focus on the top 3 models for this setting is that we would like to reduce the variance across training set samples.
|
| 73 |
+
|
| 74 |
+
We use fairseq Ott et al. (2019) library and the open-source RoBERTa-Large model for all of our experiments. During all the fine-tuning runs, we use Adam optimizer with a learning rate of 1e-5, batch size of 16 (unless specified otherwise), and dropout rate of 0.1. For each experiment that includes the SCL term, we conduct a grid-based hyperparameter sweep for $\lambda \in \{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 , 1 . 0 \}$ and $\tau \in \{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 \}$ . We observe that models with best test accuracies across all experimental settings overwhelmingly use the hyperparameter combination $\tau = 0 . 3$ and $\lambda = 0 . 9$ .
|
| 75 |
+
|
| 76 |
+
Table 1: GLUE Benchmark datasets used for evaluation.
|
| 77 |
+
|
| 78 |
+
<table><tr><td>Dataset</td><td>Task</td><td>Domain</td><td>#Train</td><td>#Classes</td></tr><tr><td>SST-2</td><td>sentiment analysis</td><td>movie reviews</td><td>67k</td><td>22222</td></tr><tr><td>CoLA</td><td> grammatical correctness</td><td>linguistic publications</td><td>8.5k</td><td></td></tr><tr><td>MRPC</td><td>paraphrase</td><td>news</td><td>3.7k</td><td></td></tr><tr><td>RTE</td><td>textual entailment</td><td>news/Wikipedia</td><td>2.5k</td><td></td></tr><tr><td>QNLI</td><td>question answering/textual entailment</td><td>Wikipedia</td><td>105k</td><td></td></tr><tr><td>MNLI</td><td>textual entailment</td><td>multi-domain</td><td>393k</td><td>3</td></tr></table>
|
| 79 |
+
|
| 80 |
+
# 4.2 CONSTRUCTING AUGMENTED NOISY TRAINING DATASETS
|
| 81 |
+
|
| 82 |
+
Machine learning researchers or practitioners often do not know how noisy their datasets are, as input examples might be corrupted or ground truth labeling might not be perfect. Therefore, it is preferable to use robust training objectives that can get more information out of datasets of different noise levels, even where there is limited amount of labeled data. We construct augmented noisy training datasets (used to fine-tune the pre-trained language models for the task of interest) of different noise levels using a back-translation model (Edunov et al., 2018), where we increase the temperature parameter to create more noisy examples. Back-translation refers to the procedure of translating an example in language A into language B and then translating it back to language A, and it is a commonly used data augmentation procedure for NLP applications, as the new examples obtained through back-translation provide targeted inductive bias to the model while preserving the meaning of the original example. Specifically, we use WMT’18 English-German and German-English translation models, use random sampling to get more diverse examples, and employ and augmentation ratio of 1:3 for supervised examples:augmented examples. We observe that employing random sampling with a tunable temperature parameter is critical to get diverse paraphrases for the supervised examples, consistent with the previous work (Edunov et al., 2018; Xie et al., 2019), since commonly used beam search results in very regular sentences that do not provide diversity to the existing data distribution. We keep the validation and test sets same with the experiments shown in Table 2.
|
| 83 |
+
|
| 84 |
+
# 5 ANALYSIS AND RESULTS
|
| 85 |
+
|
| 86 |
+
# 5.1 GLUE BENCHMARK FEW-SHOT LEARNING RESULTS
|
| 87 |
+
|
| 88 |
+
We proposed adding the SCL term inspired by the learning strategy of humans when they are given few examples. In Table 2, we report our few-shot learning results on SST-2, QNLI, and MNLI from the GLUE benchmark with 20, 100, 1000 labeled training examples. Details of the experimental setup are explained in Section 4. We use a very strong baseline of fine-tuning RoBERTa-Large with cross-entropy loss. We observe that the SCL term improves performance over the baseline significantly across all datasets and data regimes, leading to 10.7 points improvement on QNLI, 3.4 points improvement on MNLI, and 2.2 points improvement on SST-2, where we have 20 labeled examples for fine-tuning. This shows that our proposed objective is effective both for binary single sentence classification such as sentiment analysis; and sentence pair classification tasks such as textual entailment and paraphrasing – when we are given only few labeled examples for the task. We see that as we increase the number of labeled examples, performance improvement over the baseline decreases, leading to 1.9 points improvement on MNLI for 100 examples and 0.6 points improvement on QNLI for 1000 examples. We also would like to acknowledge that improvements over the baseline when $_ { \mathrm { N = 1 0 0 0 } }$ on both SST-2 and MNLI are not statistically significant. In addition, we conduct an ablation study where we investigate the importance of $l _ { 2 }$ normalization and temperature scaling where we replace SCL loss with CE loss but keep the $l _ { 2 }$ normalization and temperature scaling, as shown in Table 10 in the Appendix under the method name $\mathrm { C E + C E }$ .
|
| 89 |
+
|
| 90 |
+
In Figure 2, we show tSNE plots of the learned representations of the CLS embeddings on SST-2 test set when RoBERTa-Large is fine-tuned with 20 labeled examples, comparing CE with and without the SCL term. We can clearly see that the SCL term enforces more compact clustering of examples with the same label; while the distribution of the embeddings learned with CE is close to random. We include a more detailed comparison for CE and CE+SCL showing learned representations of examples as tSNE plots, where we have 20, 100 labeled examples and full dataset respectively for fine-tuning in Figure 3 in the Appendix.
|
| 91 |
+
|
| 92 |
+
<table><tr><td>Model</td><td>Loss</td><td>N</td><td>SST-2</td><td>QNLI</td><td>MNLI</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>20</td><td>85.9±2.1</td><td>65.0±2.0</td><td>39.3±2.5</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>20</td><td>88.1±3.3</td><td>75.7±4.8</td><td>42.7±4.6</td></tr><tr><td></td><td>p-value</td><td></td><td>5e-10</td><td>1e-46</td><td>1e-8</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>100</td><td>91.1±1.3</td><td>81.9±0.4</td><td>59.2±2.1</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>100</td><td>92.8±1.3</td><td>82.5±0.4</td><td>61.1±3.0</td></tr><tr><td></td><td>p-value</td><td></td><td>3e-17</td><td>1e-20</td><td>2e-4</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>1000</td><td>94.0±0.6</td><td>89.2±0.6</td><td>81.4±0.2</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>1000</td><td>94.1±0.5</td><td>89.8±0.4</td><td>81.5±0.2</td></tr><tr><td></td><td>p-value</td><td></td><td>0.6</td><td>1e-12</td><td>0.5</td></tr></table>
|
| 93 |
+
|
| 94 |
+
Table 2: Few-shot learning test results on the GLUE benchmark where we have N=20,100,1000 labeled examples for training. Reported results are the mean and the standard deviation of the test accuracies of the top 3 models based on validation accuracy out of 10 random training set samples, along with p-values for each experiment.
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 2: tSNE plots of the learned CLS embeddings on the SST-2 test set in the few-shot learning setting of having 20 labeled examples to fine-tune on – comparing RoBERTa-Large fine-tuned with CE only (left) and with our proposed objective $\mathrm { C E } { + } \mathrm { S C L }$ (right) for the SST-2 sentiment analysis task. Blue: positive examples; red: negative examples.
|
| 98 |
+
|
| 99 |
+
# 5.2 ROBUSTNESS ACROSS AUGMENTED NOISY TRAINING DATASETS
|
| 100 |
+
|
| 101 |
+
In Table 3, we report our results on augmented noisy training sets with varying levels of noise. We have 100 labeled examples for fine-tuning for each task, and we augment their training sets with noisy examples using a back-translation model, as described in detail in Section 4.2. Note that we use the back-translation model to simulate training datasets of varying noise levels and not as a method to boost model performance. Experimental setup follows what is described in Section 4 for few-shot learning experiments. T is the temperature for the back-translation model used to augment the training sets, and higher temperature corresponds to more noise in the augmented training set.
|
| 102 |
+
|
| 103 |
+
We observe consistent improvements over the RoBERTa-Large baseline with our proposed objective across all datasets across all noise levels, with 0.4 points improvement on SST-2, 2.5 points improvement on QNLI, and 7 points improvement on MNLI on average across augmented training sets. The improvement is particularly significant for inference tasks (QNLI, MNLI) when the noise levels are higher (higher temperature), leading to 7.7 points improvement on MNLI when $\mathrm { T } { = } 0 . 7$ , and 4.2 points improvement on QNLI when $\mathrm { T } { = } 0 . 9$ . We show some samples of the augmented examples used in this robustness experiment in Table 4. For $\mathrm { T } { = } 0 . 3$ , examples mostly stay the same with minor changes in their phrasing, while for $\mathrm { T } { = } 0 . 9$ , some grammatical mistakes and factual errors are introduced.
|
| 104 |
+
|
| 105 |
+
Table 3: Results on the GLUE benchmark for robustness across noisy augmented training sets. Average shows the average performance across augmented training sets.
|
| 106 |
+
|
| 107 |
+
<table><tr><td>Dataset</td><td>Loss</td><td>Original</td><td>T=0.3</td><td>T=0.5</td><td>T=0.7</td><td>T=0.9</td><td>Average</td></tr><tr><td>SST-2</td><td>CE</td><td>91.1±1.3</td><td>92.0±1.3</td><td>91.4±1.0</td><td>91.7±1.3</td><td>90.0±0.5</td><td>91.3±1.2</td></tr><tr><td>SST-2</td><td>CE + SCL</td><td>92.8±1.3</td><td>92.6±0.9</td><td>91.5±1.0</td><td>91.2±0.6</td><td>91.5±1.0</td><td>91.7±1.0</td></tr><tr><td>QNLI</td><td>CE</td><td>81.9±0.4</td><td>81.1±2.3</td><td>80.0±2.9</td><td>78.9±3.7</td><td>75.9±4.0</td><td>79.0±3.5</td></tr><tr><td>QNLI</td><td>CE + SCL</td><td>82.5±0.4</td><td>82.7±1.9</td><td>81.9±2.5</td><td>81.3±0.6</td><td>80.1±2.5</td><td>81.5±2.0</td></tr><tr><td>MNLI</td><td>CE</td><td>59.2±2.1</td><td>54.0±1.1</td><td>55.3±2.4</td><td>54.6±2.2</td><td>47.0±1.8</td><td>52.7±3.9</td></tr><tr><td>MNLI</td><td>CE + SCL</td><td>61.1±3.0</td><td>61.2±2.3</td><td>62.1±0.9</td><td>62.3±1.1</td><td>53.0±2.1</td><td>59.7±4.3</td></tr></table>
|
| 108 |
+
|
| 109 |
+
Table 4: Sample of augmented examples with different noise levels for the robustness experiment shown in Table 3. Higher temperature (T) corresponds to more noise in the augmented training set.
|
| 110 |
+
|
| 111 |
+
<table><tr><td>Dataset</td><td>Type</td><td>Sentence</td></tr><tr><td>SST-2 SST-2</td><td>Original Augmented (T=0.3)</td><td>As possibly the best actor working in movies today. As perhaps the best actor who now stars in films.</td></tr><tr><td>SST-2 SST-2</td><td>Original Augmented (T=0.9)</td><td>The young stars are too cute; the story and ensuing complications are too manipulative. The babies are too cute,the image and complications that follow too manipulative.</td></tr><tr><td>QNLI QNLI</td><td>Original Augmented (T=0.3)</td><td>Brain tissue is naturally soft, but can be stiffened with what liquid? Brain tissue is omitted naturally, but with what fluid it can be stiffened?</td></tr><tr><td>QNLI QNLI</td><td>Original Augmented (T=0.9)</td><td>In March 1968,CBS and Sony formed CBS/Sony Records,a Japanese business joint venture. CBS was founded by CBS and Sony Records in March 1962,a Japanese company.</td></tr><tr><td>MNLI MNLI</td><td>Original Augmented (T=0.3)</td><td>However,the link did not transfer the user to a comment box particular to the rule at issue.</td></tr><tr><td>MNLI MNLI</td><td>Original Augmented (T=0.9)</td><td>However,the link did not send the user to a comment field specifically for the rule. Tenants could not enter the apartment complex due to a dangerous chemical spill. Tenants were banned from entering the medical property because of a blood positive substance.</td></tr></table>
|
| 112 |
+
|
| 113 |
+
# 5.3 GLUE BENCHMARK FULL DATASET RESULTS
|
| 114 |
+
|
| 115 |
+
In Table 5, we report results using our proposed objective on six downstream tasks from the GLUE benchmark. We use a very strong baseline of fine-tuning RoBERTa-Large with cross-entropy loss, which is currently the standard practice for the state-of-the-art NLP classification models. Details of the experimental setup are explained in Section 4.
|
| 116 |
+
|
| 117 |
+
We observe that adding the SCL term to the objective improves the performance over the RoBERTaLarge baseline that lead to 3.1 points improvement on MRPC, 3.5 points improvement on QNLI, and an average improvement of 1.2 points across all 6 datasets. We conduct these experiments to investigate the effect of the SCL term in high-data regimes, as we observe that it’s effective in few-shot learning settings. We acknowledge that only MRPC and QNLI results are statistically significant, and we report the results on the other datasets as a finding for the sake of completeness.
|
| 118 |
+
|
| 119 |
+
We hypothesize larger batch sizes lead to better performance, but we leave that for future work as that requires additional engineering effort. We show evidence for this hypothesis in our ablation studies that we show in Table 6, where we conduct the full dataset experiments for $\mathrm { C E } { + } \mathrm { S C L }$ with the same experimental setup described here for Table 5 on SST-2, CoLA, QNLI, and MNLI for batch sizes 16, 64, and 256 using RoBERTa-Base. We observe that as we increase the batch size, performance improves significantly across all datasets. Specifically, we observe 0.3 points improvement on SST-2, 0.8 points improvement on CoLA, 0.4 points improvement on QNLI, and 1.3 points improvement on MNLI, when we increase the batch size from 16 to 256 for $\mathrm { C E } { + } \mathrm { S C L }$ . We also investigate the effect of SCL term in the overall training speed, and we measure that with average updates per second metric, shown in Table 6. For batch size 16, the batch size we use throughout the paper across all experimental settings, effect of SCL is negligible – decreasing average updates per second from 15.9 to 15.08. As we increase the batch size, effect of SCL to training speed becomes more significant – decreasing average updates per second from 2.46 to 1.54 for batch size 256. In addition, we conduct an ablation study where we investigate the importance of $l _ { 2 }$ normalization and temperature scaling where we replace SCL loss with CE loss but keep the normalization and scaling (denoted as $\mathrm { C E + C E }$ ) both for full dataset results in Table 8, and for batch size ablation in Table 9 in the Appendix.
|
| 120 |
+
|
| 121 |
+
Table 5: Test results on the validation set of GLUE benchmark. We compare fine-tuning RoBERTaLarge with CE with and without SCL. Best hyperparameter configuration picked based on average validation accuracy. We report average accuracy across 10 seeds for the model with best hyperparameter configuration, its standard deviation, and p-values.
|
| 122 |
+
|
| 123 |
+
<table><tr><td>Model</td><td>Loss</td><td>SST-2</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>QNLI</td><td>MNLI</td><td>Avg</td></tr><tr><td>RoBERTaLarge</td><td>CE CE + SCL</td><td>96.0±0.4 96.3±0.4</td><td>86.0±0.5 86.1±0.8</td><td>86.4±2.4 89.5±0.9</td><td>85.5±1.8 85.7±0.5</td><td>90.4±0.8</td><td>88.4±1</td><td>88.8</td></tr><tr><td>RoBERTaLarge</td><td></td><td></td><td></td><td></td><td></td><td>93.9±0.7</td><td>88.6±0.7</td><td>90</td></tr><tr><td></td><td></td><td>0.07</td><td>0.63</td><td>0.01</td><td>0.06</td><td>0.01</td><td>0.16</td><td></td></tr><tr><td></td><td>p-value</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 124 |
+
|
| 125 |
+
Table 6: Ablation study on performance and training speed shown as average updates per second (Avg ups/sec) for fine-tuning RoBERTa-Base with respect to the batch size (Bsz).
|
| 126 |
+
|
| 127 |
+
<table><tr><td>Model</td><td>Loss</td><td>Bsz</td><td>SST-2</td><td>CoLA</td><td>QNLI</td><td>MNLI</td><td> Avg ups/sec</td></tr><tr><td rowspan="2">RoBERTaBase RoBERTaBase</td><td>CE</td><td>16</td><td>94.1±0.5</td><td>83.3±0.7</td><td>88.2±0.8</td><td>84±0.6</td><td>15.9</td></tr><tr><td>CE + SCL</td><td>16</td><td>94.9±0.6</td><td>83.7±0.9</td><td>92.5±0.4</td><td>85.3±0.5</td><td>15.08</td></tr><tr><td rowspan="2">RoBERTaBase RoBERTaBase</td><td>CE</td><td>64</td><td>94.2±0.4</td><td>83.3±0.5</td><td>89.2±0.5</td><td>84±0.4</td><td>8.43</td></tr><tr><td>CE + SCL</td><td>64</td><td>94.7±0.2</td><td>83.8±0.6</td><td>92.6±0.5</td><td>85.7±0.7</td><td>7.44</td></tr><tr><td rowspan="2">RoBERTaBase RoBERTaBase</td><td>CE</td><td>256</td><td>94.1±0.4</td><td>84±0.5</td><td>90±0.7</td><td>84.4±0.6</td><td>2.46</td></tr><tr><td>CE + SCL</td><td>256</td><td>95.2±0.3</td><td>84.5±0.5</td><td>92.9±0.3</td><td>86.6±0.6</td><td>1.54</td></tr></table>
|
| 128 |
+
|
| 129 |
+
# 5.4 GENERALIZATION ABILITY OF TASK MODELS
|
| 130 |
+
|
| 131 |
+
In this experiment, we first fine-tune RoBERTa-Large on SST-2 using its full training set and get a task model with and without SCL term. Then, we transfer this task model to two related single sentence sentiment analysis binary classification tasks for the movie reviews domain – Amazon-2 and Yelp-2 (Zhang et al., 2015). For both, we sample 20 labeled examples for each class, and follow the few-shot learning experimental setup described in Section 4. In Table 7, we demonstrate that using the SCL term for both source (SST-2) and target domains (Amazon-2, Yelp-2) lead to better generalization ability, with 2.9 points improvement on Amazon-2 and 0.4 points improvement on Yelp-2 along with significant reduction in variance across training set samples.
|
| 132 |
+
|
| 133 |
+
<table><tr><td>Model</td><td>Loss</td><td>N</td><td>Amazon-2</td><td>Yelp-2</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>40</td><td>87.4±6.4</td><td>90.8±2.2</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>40</td><td>90.3±0.6</td><td>91.2±0.4</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Table 7: Generalization of the SST-2 task model (fine-tuned using the full training set) to related tasks (Amazon-2, Yelp-2) where there are 20 labeled examples for each class.
|
| 136 |
+
|
| 137 |
+
# 6 CONCLUSION
|
| 138 |
+
|
| 139 |
+
We propose a supervised contrastive learning objective for fine-tuning pre-trained language models and demonstrate significant improvements over a strong RoBERTa-Large baseline on multiple datasets of the GLUE benchmark in the few-shot learning settings. We also show that our proposed objective leads to models that are more robust to different levels of noise in the training data and can generalize better to related tasks with limited labeled task data. Currently, data augmentation methods in NLP and their effects on the downstream tasks are neither as effective nor as well understood as their counterparts in the computer vision domain. In future work, we plan to study principled and automated data augmentation techniques for NLP that would allow extending our supervised contrastive learning objective to both semi-supervised and self-supervised learning settings.
|
| 140 |
+
|
| 141 |
+
# REFERENCES
|
| 142 |
+
|
| 143 |
+
Armen Aghajanyan, Akshat Shrivastava, Anchit Gupta, Naman Goyal, Luke Zettlemoyer, and Sonal Gupta. Better fine-tuning by reducing representational collapse. ArXiv, abs/2008.03156, 2020.
|
| 144 |
+
|
| 145 |
+
Philip Bachman, R. Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In NeurIPS, 2019.
|
| 146 |
+
|
| 147 |
+
Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, and Michael Auli. wav2vec 2.0: A framework for self-supervised learning of speech representations. In NeurIPS, 2020.
|
| 148 |
+
|
| 149 |
+
Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference. In EMNLP, 2015.
|
| 150 |
+
|
| 151 |
+
Kaidi Cao, Colin Wei, Adrien Gaidon, N. Arechiga, and Tengyu Ma. Learning imbalanced datasets ´ with label-distribution-aware margin loss. In NeurIPS, 2019.
|
| 152 |
+
|
| 153 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020a.
|
| 154 |
+
|
| 155 |
+
Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey E. Hinton. Big self-supervised models are strong semi-supervised learners. In NeurIPS, 2020b.
|
| 156 |
+
|
| 157 |
+
Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, and Michael Auli. Unsupervised cross-lingual representation learning for speech recognition. arXiv preprint arXiv:2006.13979, 2020.
|
| 158 |
+
|
| 159 |
+
E. Cubuk, Barret Zoph, Dandelion Mane, V. Vasudevan, and Quoc V. Le. Autoaugment: Learning ´ augmentation strategies from data. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 113–123, 2019.
|
| 160 |
+
|
| 161 |
+
E. D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. Randaugment: Practical automated data augmentation with a reduced search space. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 3008–3017, 2020.
|
| 162 |
+
|
| 163 |
+
J. Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019.
|
| 164 |
+
|
| 165 |
+
Jesse Dodge, Gabriel Ilharco, Roy Schwartz, Ali Farhadi, Hannaneh Hajishirzi, and Noah A. Smith. Fine-tuning pretrained language models: Weight initializations, data orders, and early stopping. ArXiv, abs/2002.06305, 2020.
|
| 166 |
+
|
| 167 |
+
Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. In EMNLP, 2018.
|
| 168 |
+
|
| 169 |
+
Gamaleldin F. Elsayed, Dilip Krishnan, Hossein Mobahi, Kevin Regan, and Samy Bengio. Large margin deep networks for classification. In NeurIPS, 2018.
|
| 170 |
+
|
| 171 |
+
Hongchao Fang and Pengtao Xie. Cert: Contrastive self-supervised learning for language understanding. ArXiv, abs/2005.12766, 2020.
|
| 172 |
+
|
| 173 |
+
M. Gutmann and A. Hyvarinen. Noise-contrastive estimation of unnormalized statistical models, ¨ with applications to natural image statistics. J. Mach. Learn. Res., 13:307–361, 2012.
|
| 174 |
+
|
| 175 |
+
Tengda Han, Weidi Xie, and Andrew Zisserman. Video representation learning by dense predictive coding. 2019 IEEE/CVF International Conference on Computer Vision Workshop (ICCVW), pp. 1483–1492, 2019.
|
| 176 |
+
|
| 177 |
+
Kaiming He, X. Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016.
|
| 178 |
+
|
| 179 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. Momentum contrast for unsupervised visual representation learning. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9726–9735, 2020.
|
| 180 |
+
|
| 181 |
+
Olivier J. Henaff, A. Srinivas, J. Fauw, Ali Razavi, C. Doersch, S. Eslami, and A. Oord. Data-efficient ´ image recognition with contrastive predictive coding. ArXiv, abs/1905.09272, 2019.
|
| 182 |
+
|
| 183 |
+
Dan Hendrycks and Thomas G. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019.
|
| 184 |
+
|
| 185 |
+
K. Hermann, Tomas Kocisk ´ y, Edward Grefenstette, Lasse Espeholt, W. Kay, Mustafa Suleyman, and ´ P. Blunsom. Teaching machines to read and comprehend. In NeurIPS, 2015.
|
| 186 |
+
|
| 187 |
+
Geoffrey E. Hinton, Oriol Vinyals, and J. Dean. Distilling the knowledge in a neural network. In NeurIPS Deep Learning and Representation Learning Workshop, 2015.
|
| 188 |
+
|
| 189 |
+
R. Devon Hjelm, A. Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In ICLR, 2019.
|
| 190 |
+
|
| 191 |
+
Jeremy Howard and Sebastian Ruder. Universal language model fine-tuning for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 328–339, 2018.
|
| 192 |
+
|
| 193 |
+
Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Tuo Zhao. Smart: Robust and efficient fine-tuning for pre-trained natural language models through principled regularized optimization. In ACL, 2020.
|
| 194 |
+
|
| 195 |
+
Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. In NeurIPS, 2020.
|
| 196 |
+
|
| 197 |
+
Tushar Khot, A. Sabharwal, and Peter Clark. Scitail: A textual entailment dataset from science question answering. In AAAI, 2018.
|
| 198 |
+
|
| 199 |
+
Byeongchang Kim, Hyunwoo Kim, and Gunhee Kim. Abstractive summarization of reddit posts with multi-level memory networks. In NAACL-HLT, 2019.
|
| 200 |
+
|
| 201 |
+
A. Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1920–1929, 2019.
|
| 202 |
+
|
| 203 |
+
A. Krizhevsky. Learning multiple layers of features from tiny images. 2009.
|
| 204 |
+
|
| 205 |
+
Hao Liu and P. Abbeel. Hybrid discriminative-generative training via contrastive learning. ArXiv, abs/2007.09070, 2020.
|
| 206 |
+
|
| 207 |
+
Weiyang Liu, Yandong Wen, Zhiding Yu, and Meng Yang. Large-margin softmax loss for convolutional neural networks. In ICML, 2016.
|
| 208 |
+
|
| 209 |
+
Y. Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, M. Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692, 2019.
|
| 210 |
+
|
| 211 |
+
I. Misra and L. V. D. Maaten. Self-supervised learning of pretext-invariant representations. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6706–6716, 2020.
|
| 212 |
+
|
| 213 |
+
A. Mnih and K. Kavukcuoglu. Learning word embeddings efficiently with noise-contrastive estimation. In NeurIPS, 2013.
|
| 214 |
+
|
| 215 |
+
Marius Mosbach, Maksym Andriushchenko, and Dietrich Klakow. On the stability of fine-tuning bert: Misconceptions, explanations, and strong baselines. ArXiv, abs/2006.04884, 2020.
|
| 216 |
+
|
| 217 |
+
R. Muller, Simon Kornblith, and Geoffrey E. Hinton. When does label smoothing help? In ¨ NeurIPS, 2019.
|
| 218 |
+
|
| 219 |
+
Courtney Napoles, Matthew R. Gormley, and Benjamin Van Durme. Annotated gigaword. In AKBC-WEKEX@NAACL-HLT, 2012.
|
| 220 |
+
|
| 221 |
+
K. Nar, O. Ocal, S. Sastry, and K. Ramchandran. Cross-entropy loss and low-rank features have responsibility for adversarial examples. ArXiv, abs/1901.08360, 2019.
|
| 222 |
+
|
| 223 |
+
Andrew Y. $\mathrm { N g }$ and Michael I. Jordan. On discriminative vs. generative classifiers: A comparison of logistic regression and naive bayes. In NeurIPS, 2001.
|
| 224 |
+
|
| 225 |
+
Yixin Nie, Adina Williams, Emily Dinan, Mohit Bansal, J. Weston, and Douwe Kiela. Adversarial nli: A new benchmark for natural language understanding. 2020.
|
| 226 |
+
|
| 227 |
+
A. Oord, Y. Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. ArXiv, abs/1807.03748, 2018.
|
| 228 |
+
|
| 229 |
+
Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of NAACL-HLT 2019: Demonstrations, 2019.
|
| 230 |
+
|
| 231 |
+
A. Radford, Jeffrey Wu, R. Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2019.
|
| 232 |
+
|
| 233 |
+
Rajat Raina, Yirong Shen, Andrew Y. Ng, and Andrew McCallum. Classification with hybrid generative/discriminative models. In NeurIPS, 2003.
|
| 234 |
+
|
| 235 |
+
Olga Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Zhiheng Huang, A. Karpathy, A. Khosla, M. Bernstein, A. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115:211–252, 2015.
|
| 236 |
+
|
| 237 |
+
Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. A theoretical analysis of contrastive unsupervised representation learning. volume 97 of Proceedings of Machine Learning Research, pp. 5628–5637, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/saunshi19a.html.
|
| 238 |
+
|
| 239 |
+
Florian Schroff, D. Kalenichenko, and J. Philbin. Facenet: A unified embedding for face recognition and clustering. 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 815–823, 2015.
|
| 240 |
+
|
| 241 |
+
Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. In NeurIPS, 2016.
|
| 242 |
+
|
| 243 |
+
Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir D. Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. In ICLR, 2015.
|
| 244 |
+
|
| 245 |
+
Christian Szegedy, V. Vanhoucke, S. Ioffe, Jon Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
|
| 246 |
+
|
| 247 |
+
Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. In ECCV, 2020.
|
| 248 |
+
|
| 249 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In ICLR, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rJ4km2R5t7.
|
| 250 |
+
|
| 251 |
+
Zhirong Wu, Yuanjun Xiong, S. Yu, and D. Lin. Unsupervised feature learning via non-parametric instance discrimination. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018.
|
| 252 |
+
|
| 253 |
+
Qizhe Xie, Zihang Dai, Eduard H. Hovy, Minh-Thang Luong, and Quoc V. Le. Unsupervised data augmentation for consistency training. arXiv: Learning, 2019.
|
| 254 |
+
|
| 255 |
+
Qizhe Xie, Minh-Thang Luong, Eduard Hovy, and Quoc V Le. Self-training with noisy student improves imagenet classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10687–10698, 2020.
|
| 256 |
+
|
| 257 |
+
I Zeki Yalniz, Herve J´ egou, Kan Chen, Manohar Paluri, and Dhruv Mahajan. Billion-scale semi-´ supervised learning for image classification. arXiv preprint arXiv:1905.00546, 2019.
|
| 258 |
+
|
| 259 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6022–6031, 2019.
|
| 260 |
+
|
| 261 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. ArXiv, abs/1605.07146, 2016.
|
| 262 |
+
|
| 263 |
+
Hongyi Zhang, M. Cisse, Yann Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk ´ minimization. In ICLR, 2018.
|
| 264 |
+
Tianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q. Weinberger, and Yoav Artzi. Revisiting few-sample bert fine-tuning. ArXiv, abs/2006.05987, 2020.
|
| 265 |
+
X. Zhang, J. Zhao, and Y. LeCun. Character-level convolutional networks for text classification. In NeurIPS, 2015.
|
| 266 |
+
Zhilu Zhang and Mert R. Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, 2018.
|
| 267 |
+
|
| 268 |
+
# A APPENDIX
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure 3: tSNE plots of learned CLS embedding on SST-2 test set where we have 20, 100 labeled examples, and full dataset respectively, comparing CE with and without SCL term. Blue: positive examples; red: negative examples.
|
| 272 |
+
|
| 273 |
+
<table><tr><td>Model</td><td>Loss</td><td>SST-2</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>QNLI</td><td>MNLI</td><td>Avg</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>96.0±0.4</td><td>86.0±0.5</td><td>86.4±2.4</td><td>85.5±1.8</td><td>90.4±0.8</td><td>88.4±1</td><td>88.8</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>96.3±0.4 0.07</td><td>86.1±0.8 0.63</td><td>89.5±0.9 0.01</td><td>85.7±0.5 0.06</td><td>93.9±0.7 0.01</td><td>88.6±0.7 0.16</td><td>90</td></tr><tr><td>RoBERTaLarge</td><td>CE +CE p-value</td><td>96±0.4 0.39</td><td>86.3±0.4 0.13</td><td>89±1 0.01</td><td>84.9±1 0.1</td><td>93.9±0.8 0.01</td><td>89±1 0.12</td><td>89.9</td></tr><tr><td>RoBERTaLarge</td><td>Khosla et al. (2020) p-value</td><td>96±0.3 0.4</td><td>86.7±1 0.42</td><td>89.3±1.2 0.01</td><td>85.2±1 0.22</td><td>92.4±0.7 0.01</td><td>88.8±0.9 0.13</td><td>89.7</td></tr></table>
|
| 274 |
+
|
| 275 |
+
Table 8: Test results on the validation set of GLUE benchmark. We compare fine-tuning RoBERTaLarge with CE with and without SCL, $\mathrm { C E + C E }$ and the two-stage method of Khosla et al. (2020). Best hyperparameter configuration is picked based on the average validation accuracy. We report average accuracy across 10 seeds for the model with the best hyperparameter configuration, its standard deviation, and p-values. $\mathrm { C E + C E }$ refers to the case where we replace SCL loss with the CE loss but keep l2 normalization and temperature scaling.
|
| 276 |
+
|
| 277 |
+
Table 9: Ablation on performance and fine-tuning speed shown as average updates per second (Avg ups/sec) for fine-tuning RoBERTa-Base with respect to the batch size (Bsz). $\mathrm { C E + C E }$ refers to the case where we replace SCL loss with the CE loss but keep l2 normalization and temperature scaling.
|
| 278 |
+
|
| 279 |
+
<table><tr><td>Model</td><td>Loss</td><td>Bsz</td><td>SST-2</td><td>CoLA</td><td>QNLI</td><td>MNLI</td><td>Avg ups/sec</td></tr><tr><td>RoBERTaBase</td><td>CE</td><td>16</td><td>94.1±0.5</td><td>83.3±0.7</td><td>88.2±0.8</td><td>84±0.6</td><td>15.9</td></tr><tr><td>RoBERTaBase</td><td>CE + SCL</td><td>16</td><td>94.9±0.6</td><td>83.7±0.9</td><td>92.5±0.4</td><td>85.3±0.5</td><td>15.08</td></tr><tr><td>RoBERTaBase</td><td>CE+CE</td><td>16</td><td>94.8±0.7</td><td>83.6±0.4</td><td>91.6±0.5</td><td>85±0.3</td><td>15.25</td></tr><tr><td>RoBERTaBase</td><td>CE</td><td>64</td><td>94.2±0.4</td><td>83.3±0.5</td><td>89.2±0.5</td><td>84±0.4</td><td>8.43</td></tr><tr><td>RoBERTaBase</td><td>CE + SCL</td><td>64</td><td>94.7±0.2</td><td>83.8±0.6</td><td>92.6±0.5</td><td>85.7±0.7</td><td>7.44</td></tr><tr><td>RoBERTaBase</td><td>CE+CE</td><td>64</td><td>94.6±0.7</td><td>83.5±0.6</td><td>92.1±0.8</td><td>85±0.8</td><td>7.64</td></tr><tr><td>RoBERTaBase</td><td>CE</td><td>256</td><td>94.1±0.4</td><td>84±0.5</td><td>90±0.7</td><td>84.4±0.6</td><td>2.46</td></tr><tr><td>RoBERTaBase</td><td>CE + SCL</td><td>256</td><td>95.2±0.3</td><td>84.5±0.5</td><td>92.9±0.3</td><td>86.6±0.6</td><td>1.54</td></tr><tr><td>RoBERTaBase</td><td>CE+CE</td><td>256</td><td>94.3±0.5</td><td>83.5±0.3</td><td>91.9±0.4</td><td>84.6±0.8</td><td>1.77</td></tr></table>
|
| 280 |
+
|
| 281 |
+
<table><tr><td>Model</td><td>Loss</td><td>N</td><td>SST-2</td><td>QNLI</td><td>MNLI</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>20</td><td>85.9±2.1</td><td>65.0±2.0</td><td>39.3±2.5</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>20</td><td>88.1±3.3 5e-10</td><td>75.7±4.8 1e-46</td><td>42.7±4.6 1e-8</td></tr><tr><td>RoBERTaLarge</td><td>CE + CE p-value</td><td>20</td><td>86.5±2.2 0.03</td><td>75.1±3.5 4e-68</td><td>40.8±3.7 3e-4</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>100</td><td>91.1±1.3</td><td>81.9±0.4</td><td>59.2±2.1</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>100</td><td>92.8±1.3 3e-17</td><td>82.5±0.4 1e-20</td><td>61.1±3.0 2e-4</td></tr><tr><td>RoBERTaLarge</td><td>CE+CE p-value</td><td>100</td><td>91.7±0.5 1e-4</td><td>81.7±0.5 3e-4</td><td>56±4.0 2e-8</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>1000</td><td>94.0±0.6</td><td>89.2±0.6</td><td>81.4±0.2</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>1000</td><td>94.1±0.5 0.6</td><td>89.8±0.4 1e-12</td><td>81.5±0.2 0.5</td></tr><tr><td>RoBERTaLarge</td><td>CE + CE p-value</td><td>1000</td><td>94±0.7 0.78</td><td>89.3±1 0.06</td><td>81.2±0.2 0.12</td></tr></table>
|
| 282 |
+
|
| 283 |
+
Table 10: Few-shot learning test results on the GLUE benchmark where we have N=20,100,1000 labeled examples for fine-tuning. Reported results are the mean and the standard deviation of the test accuracies of the top 3 models based on the validation accuracy out of 10 random training set samples, along with $\mathsf { p } \cdot$ -values for each experiment. $\mathrm { C E + C E }$ refers to the case where we replace SCL loss with the CE loss but keep l2 normalization and temperature scaling.
|
parse/train/cu7IUiOhujH/cu7IUiOhujH_content_list.json
ADDED
|
@@ -0,0 +1,1550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SUPERVISED CONTRASTIVE LEARNING FOR PRE-TRAINED LANGUAGE MODEL FINE-TUNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
758,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Beliz Gunel†∗, Jingfei $\\mathbf { D } \\mathbf { u } ^ { \\ddag }$ , Alexis Conneau‡, Ves Stoyanov‡ †Stanford University, $^ \\ddag$ Facebook AI ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
593,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "State-of-the-art natural language understanding classification models follow twostages: pre-training a large language model on an auxiliary task, and then finetuning the model on a task-specific labeled dataset using cross-entropy loss. However, the cross-entropy loss has several shortcomings that can lead to sub-optimal generalization and instability. Driven by the intuition that good generalization requires capturing the similarity between examples in one class and contrasting them with examples in other classes, we propose a supervised contrastive learning (SCL) objective for the fine-tuning stage. Combined with cross-entropy, our proposed SCL loss obtains significant improvements over a strong RoBERTa-Large baseline on multiple datasets of the GLUE benchmark in few-shot learning settings, without requiring specialized architecture, data augmentations, memory banks, or additional unsupervised data. Our proposed fine-tuning objective leads to models that are more robust to different levels of noise in the fine-tuning training data, and can generalize better to related tasks with limited labeled data. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
268,
|
| 43 |
+
766,
|
| 44 |
+
462
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
491,
|
| 55 |
+
334,
|
| 56 |
+
507
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "State-of-the-art for most existing natural language processing (NLP) classification tasks is achieved by models that are first pre-trained on auxiliary language modeling tasks and then fine-tuned on the task of interest with cross-entropy loss (Radford et al., 2019; Howard & Ruder, 2018; Liu et al., 2019; Devlin et al., 2019). Although ubiquitous, the cross-entropy loss – the KL-divergence between one-hot vectors of labels and the distribution of model’s output logits – has several shortcomings. Cross entropy loss leads to poor generalization performance (Liu et al., 2016; Cao et al., 2019), and it lacks robustness to noisy labels (Zhang & Sabuncu, 2018; Sukhbaatar et al., 2015) or adversarial examples (Elsayed et al., 2018; Nar et al., 2019). Effective alternatives have been proposed to modify the reference label distributions through label smoothing (Szegedy et al., 2016; Muller et al., 2019), ¨ Mixup (Zhang et al., 2018), CutMix (Yun et al., 2019), knowledge distillation (Hinton et al., 2015) or self-training (Yalniz et al., 2019; Xie et al., 2020). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
523,
|
| 66 |
+
825,
|
| 67 |
+
676
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Fine-tuning using cross entropy loss in NLP also tends to be unstable across different runs (Zhang et al., 2020; Dodge et al., 2020), especially when supervised data is limited, a scenario in which pre-training is particularly helpful. To tackle the issue of unstable fine-tuning and poor generalization, recent works propose local smoothness-inducing regularizers (Jiang et al., 2020) and regularization methods inspired by the trust region theory (Aghajanyan et al., 2020) to prevent representation collapse. Empirical evidence suggests that fine-tuning for more iterations, reinitializing top few layers (Zhang et al., 2020), and using debiased Adam optimizer during fine-tuning (Mosbach et al., 2020) can make the fine-tuning stage more stable. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
684,
|
| 77 |
+
825,
|
| 78 |
+
795
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Inspired by the learning strategy that humans utilize when given a few examples, we seek to find the commonalities between the examples of each class and contrast them with examples from other classes. We hypothesize that a similarity-based loss will be able to hone in on the important dimensions of the multidimensional hidden representations hence lead to better few-shot learning results and be more stable while fine-tuning pre-trained language models. We propose a novel objective for fine-tuning that includes a supervised contrastive learning (SCL) term that pushes the examples from the same class close and the examples from different classes further apart. The SCL term is similar to the contrastive objectives used in self-supervised representation learning across image, speech, and video domains. (Sohn, 2016; Oord et al., 2018; Wu et al., 2018; Bachman et al., 2019; Henaff et al., 2019; Baevski et al., 2020; Conneau et al., 2020; Tian et al., 2020; Hjelm et al., ´ 2019; Han et al., 2019; He et al., 2020; Misra & Maaten, 2020; Chen et al., 2020a;b). Unlike these methods, however, we use a contrastive objective for supervised learning of the final task, instead of contrasting different augmented views of examples. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
801,
|
| 88 |
+
825,
|
| 89 |
+
898
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
188
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In few-shot learning settings (20, 100, 1000 labeled examples), the addition of the SCL term to the finetuning objective significantly improves the performance on several natural language understanding classification tasks from the popular GLUE benchmark (Wang et al., 2019) over the very strong baseline of fine-tuning RoBERTa-Large with cross-entropy loss only. Furthermore, pre-trained language models fine-tuned with our proposed objective are not only robust to noise in the fine-tuning training data, but can also exhibit improved generalization to related tasks with limited labeled task data. Our approach does not require any specialized network architectures (Bachman et al., 2019; Henaff et al., 2019), memory banks (Wu et al., 2018; Tian et al., 2020; Misra & Maaten, 2020), data ´ augmentation of any kind, or additional unsupervised data. To the best of our knowledge, our work is the first to successfully integrate a supervised contrastive learning objective for fine-tuning pre-trained language models. We empirically demonstrate that the new objective has desirable properties across several different settings. Our contributions in this work are listed in the following: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
194,
|
| 110 |
+
825,
|
| 111 |
+
361
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "• We propose a novel objective for fine-tuning pre-trained language models that includes a supervised contrastive learning term, as described in Section 2. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
215,
|
| 120 |
+
386,
|
| 121 |
+
823,
|
| 122 |
+
414
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We obtain strong improvements in the few-shot learning settings (20, 100, 1000 labeled examples) as shown in Table 2, leading up to 10.7 points improvement on a subset of GLUE benchmark tasks (SST-2, QNLI, MNLI) for the 20 labeled example few-shot setting, over a very strong baseline – RoBERTa-Large fine-tuned with cross-entropy loss. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
217,
|
| 131 |
+
433,
|
| 132 |
+
823,
|
| 133 |
+
489
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "• We demonstrate that our proposed fine-tuning objective is more robust, in comparison to RoBERTa-Large fine-tuned with cross-entropy loss, across augmented noisy training datasets (used to fine-tune the models for the task of interest) with varying noise levels as shown in Table 3 – leading up to 7 points improvement on a subset of GLUE benchmark tasks (SST-2, QNLI, MNLI) across augmented noisy training datasets. We use a backtranslation model to construct the augmented noisy training datasets of varying noise levels (controlled by the temperature parameter), as described in detail in Section 4.2. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
217,
|
| 142 |
+
510,
|
| 143 |
+
823,
|
| 144 |
+
608
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "• We show that the task-models fine-tuned with our proposed objective have improved generalizability to related tasks despite having limited availability of labeled task data (Table 7). This led to a 2.9 point improvement on Amazon-2 over the task model fine-tuned with cross-entropy loss only. Moreover, it considerably reduced the variance across few-shot training samples, when transferred from the source SST-2 sentiment analysis task model. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
217,
|
| 153 |
+
627,
|
| 154 |
+
825,
|
| 155 |
+
696
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 APPROACH",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
734,
|
| 166 |
+
299,
|
| 167 |
+
751
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "We propose a novel objective that includes a supervised contrastive learning term for fine-tuning pre-trained language models. The loss is meant to capture the similarities between examples of the same class and contrast them with the examples from other classes. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
176,
|
| 176 |
+
776,
|
| 177 |
+
821,
|
| 178 |
+
819
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "For a multi-class classification problem with C classes, we work with a batch of training examples of size N, $\\{ x _ { i } , y _ { i } \\} _ { i = 1 , \\dots N }$ . $\\Phi ( \\cdot ) \\in \\mathbf { R } ^ { d }$ denotes an encoder that outputs the $l _ { 2 }$ normalized final encoder hidden layer before the softmax projection; $N _ { y _ { i } }$ is the total number of examples in the batch that have the same label as $y _ { i }$ ; $\\tau > 0$ is an adjustable scalar temperature parameter that controls the separation of classes; $y _ { i , c }$ denotes the label and $\\hat { y } _ { i , c }$ denotes the model output for the probability of the ith example belonging to the class $\\mathrm { c }$ ; $\\lambda$ is a scalar weighting hyperparameter that we tune for each downstream task and setting. The overall loss is then given in the following: ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
825,
|
| 188 |
+
825,
|
| 189 |
+
924
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "equation",
|
| 195 |
+
"img_path": "images/247d1f1038c7ba1b520b3689ac28206cf16d4fc60fb10b70dc17a68b09bc882a.jpg",
|
| 196 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle { \\mathcal { L } } = ( 1 - \\lambda ) { \\mathcal { L } } _ { C E } + \\lambda { \\mathcal { L } } _ { S C L } } } \\\\ { { \\displaystyle { \\mathcal { L } } _ { C E } = - \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\sum _ { c = 1 } ^ { C } y _ { i , c } \\cdot l o g \\hat { y } _ { i , c } } } \\\\ { { \\displaystyle { \\mathcal { L } } _ { S C L } = \\sum _ { i = 1 } ^ { N } - \\frac { 1 } { N _ { y _ { i } } - 1 } \\sum _ { j = 1 } ^ { N } \\mathbf { 1 } _ { i \\neq j } \\mathbf { 1 } _ { y _ { i } = y _ { j } } \\log \\frac { \\exp { \\left( \\Phi ( x _ { i } ) \\cdot \\Phi ( x _ { j } ) / \\tau \\right) } } { \\sum _ { k = 1 } ^ { N } \\mathbf { 1 } _ { i \\neq k } \\exp { \\left( \\Phi ( x _ { i } ) \\cdot \\Phi ( x _ { k } ) / \\tau \\right) } } } } \\end{array}\n$$",
|
| 197 |
+
"text_format": "latex",
|
| 198 |
+
"bbox": [
|
| 199 |
+
235,
|
| 200 |
+
121,
|
| 201 |
+
763,
|
| 202 |
+
234
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 2
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "The overall loss is a weighted average of CE and the proposed SCL loss, as given in the equation (1). The canonical definition of the multi-class CE loss that we use is given in equation (2). The novel SCL loss is given in the equation (3). ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
176,
|
| 211 |
+
244,
|
| 212 |
+
823,
|
| 213 |
+
287
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "This loss can be applied using a variety of encoders $\\Phi ( \\cdot ) \\in \\mathbf { R } ^ { d }$ – for example a ResNet for a computer vision application or a pre-trained language model such as BERT for an NLP application. In this work, we focus on fine-tuning pre-trained language models for single sentence and sentence-pair classification settings. For single sentence classification, each example $x _ { i }$ consists of sequence of tokens prepended with the special $[ C L S ]$ token $\\boldsymbol { x } _ { i } = [ [ C L S ] , t _ { 1 } , t _ { 2 } , \\ldots , t _ { L } , [ E O S ] ]$ . The length of sequence $\\mathrm { L }$ is constrained such that $L < L _ { \\operatorname* { m a x } }$ . Similarly, for sentence-pair classification tasks, each example $x _ { i }$ is a concatenation of two sequences of tokens $[ t _ { 1 } , t _ { 2 } , \\dots t _ { L } ]$ and $[ s _ { 1 } , s _ { 2 } , \\ldots , s _ { M } ]$ corresponding to the sentences with special tokens delimiting them: $x _ { i } =$ $[ [ C L S ] , t _ { 1 } , t _ { 2 } , \\ldots , { \\dot { t } } _ { L } , [ S E P ] , s _ { 1 } , s _ { 2 } , \\ldots , s _ { M } , [ E O S ] ]$ . The length of concatenated sequences is constrained such that $L + M < L _ { \\mathrm { m a x } }$ . In both cases, $\\Phi ( x _ { i } ) \\in \\mathbf { R } ^ { d }$ uses the embedding of $[ C L S ]$ token as the representation for example $x _ { i }$ . These choices follow standard practices for fine-tuning pre-trained language models for classification (Devlin et al., 2019; Liu et al., 2019). ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
173,
|
| 222 |
+
292,
|
| 223 |
+
826,
|
| 224 |
+
460
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "image",
|
| 230 |
+
"img_path": "images/c9a8a1dce5fa66838468183bbcb2d27b4d98f5b31ccbe51fd45a5a661dda426f.jpg",
|
| 231 |
+
"image_caption": [
|
| 232 |
+
"Figure 1: Our proposed objective includes a cross-entropy term (CE) and a supervised contrastive learning (SCL) term, and it is formulated to push examples from the same class close and examples from different classes further apart. We show examples from the SST-2 sentiment analysis dataset from the GLUE benchmark, where class A (shown in red) is negative movie reviews and class B (shown in blue) is positive movie reviews. Although we show a binary classification case for simplicity, the loss is generally applicable to any multi-class classification setting. "
|
| 233 |
+
],
|
| 234 |
+
"image_footnote": [],
|
| 235 |
+
"bbox": [
|
| 236 |
+
176,
|
| 237 |
+
478,
|
| 238 |
+
820,
|
| 239 |
+
635
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Empirical observations show that both $l _ { 2 }$ normalization of the encoded embedding representations and an adjustable scalar temperature parameter $\\tau$ improve performance. Lower temperature increases the influence of examples that are harder to separate, effectively creating harder negatives. Using hard negatives has been previously shown to improve performance in the context of margin-based loss formulations such as triplet loss (Schroff et al., 2015). The empirical behavior of the adjustable temperature parameter is consistent with the observations of previous work related to supervised contrastive learning. (Chen et al., 2020a; Khosla et al., 2020). ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
750,
|
| 249 |
+
825,
|
| 250 |
+
848
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "Relationship to Self-Supervised Contrastive Learning Self-supervised contrastive learning has shown success in learning powerful representations, particularly in the computer vision domain. (Chen et al., 2020a; He et al., 2020; Tian et al., 2020; Mnih & Kavukcuoglu, 2013; Gutmann & Hyvarinen, ¨ 2012; Kolesnikov et al., 2019) Self-supervised learning methods do not require any labeled data; instead they sample a mini batch from unsupervised data and create positive and negative examples from these samples using strong data augmentation techniques such as AutoAugment (Cubuk et al., 2019) or RandAugment (Cubuk et al., 2020) for computer vision. Positive examples are constructed by applying data augmentation to the same example (cropping, flipping, etc. for an image), and negative examples are simply all the other examples in the sampled mini batch. Intuitively, selfsupervised contrastive objectives are learning representations that are invariant to different views of positive pairs; while maximizing the distance between negative pairs. The distance metric used is often the inner product or the Euclidean distance between vector representations of the examples. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
854,
|
| 260 |
+
825,
|
| 261 |
+
924
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "",
|
| 268 |
+
"bbox": [
|
| 269 |
+
173,
|
| 270 |
+
103,
|
| 271 |
+
826,
|
| 272 |
+
202
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 3
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "For a batch of size N, self-supervised contrastive loss is defined as: ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
208,
|
| 282 |
+
612,
|
| 283 |
+
223
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 3
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "equation",
|
| 289 |
+
"img_path": "images/8ce3b4db96844a2cf28082466b20e7196e3ee0ea1963044d06c748e25c6dbbaa.jpg",
|
| 290 |
+
"text": "$$\n\\mathcal { L } _ { s e l f } = \\sum _ { i = 1 } ^ { 2 N } - \\log \\frac { \\exp { ( \\Phi ( x _ { 2 i - 1 } ^ { \\prime } ) \\cdot \\Phi ( x _ { 2 i } ^ { \\prime } ) / \\tau ) } } { \\sum _ { k = 1 } ^ { 2 N } \\mathbf { 1 } _ { i \\neq k } \\exp { ( \\Phi ( x _ { i } ^ { \\prime } ) \\cdot \\Phi ( x _ { k } ^ { \\prime } ) / \\tau ) } }\n$$",
|
| 291 |
+
"text_format": "latex",
|
| 292 |
+
"bbox": [
|
| 293 |
+
318,
|
| 294 |
+
231,
|
| 295 |
+
679,
|
| 296 |
+
275
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 3
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "where $\\Phi ( \\cdot ) \\in \\mathbf { R } ^ { d }$ denotes an encoder that outputs the $l _ { 2 }$ normalized final encoder hidden layer before the softmax projection; $\\tau > 0$ is a scalar temperature parameter. $\\mathbf { A }$ is defined as a data augmentation block that generates two randomly generated augmented examples, $x _ { 2 i } ^ { \\prime }$ and $x _ { 2 i - 1 } ^ { \\prime }$ from the original example $x _ { i }$ : $\\mathbf { A } ( \\{ x _ { i } , y _ { i } \\} _ { i = 1 , \\dots N } ) \\doteq \\bar { \\{ x _ { i } ^ { \\prime } , y _ { i } ^ { \\prime } \\} } _ { i = 1 , \\dots 2 N }$ . As an example, A can be RandAugment for a computer vision application; or it could be a back-translation model for an NLP application. ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
291,
|
| 306 |
+
825,
|
| 307 |
+
363
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 3
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "3 RELATED WORK ",
|
| 314 |
+
"text_level": 1,
|
| 315 |
+
"bbox": [
|
| 316 |
+
176,
|
| 317 |
+
383,
|
| 318 |
+
344,
|
| 319 |
+
401
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "Traditional Machine Learning and Theoretical Understanding Several works have analyzed the shortcomings of the widely adopted cross-entropy loss, demonstrating that it leads to poor generalization performance due to poor margins (Liu et al., 2016; Cao et al., 2019), and lack of robustness to noisy labels (Zhang & Sabuncu, 2018; Sukhbaatar et al., 2015) or adversarial examples (Elsayed et al., 2018; Nar et al., 2019). On the other hand, there has been a body of work that has explored the performance difference for classifiers trained with discriminative (i.e., optimizing for $p ( y | x )$ , where y is the label and $\\mathbf { X }$ is the input) losses such as cross-entropy loss and generative losses (i.e. optimizing for $p ( x | y ) \\big )$ ). $\\mathrm { N g }$ & Jordan (2001) show that classifiers trained with generative losses can outperform their counterparts trained with discriminative losses in the context of Logistic Regression and Naive Bayes. Raina et al. (2003) show that a hybrid discriminative and generative objective outperforms both solely discriminative and generative approaches. In the context of contrastive learning, Saunshi et al. (2019) propose a theoretical framework for analyzing contrastive learning algorithms through hypothesizing that semantically similar points are sampled from the same latent class, which allows showing formal guarantees on the quality of learned representations. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
173,
|
| 328 |
+
416,
|
| 329 |
+
825,
|
| 330 |
+
612
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Contrastive Learning There has been several recent investigations for the use of contrastive objectives for self-supervised, semi-supervised, and supervised learning methods, primarily in the computer vision domain. Chen et al. (2020a) propose a framework for contrastive learning of visual representations without specialized architectures or a memory bank, and show state-of-the-art results on ImageNet ILSVRC-2012 (Russakovsky et al., 2015) – outperforming previous methods for self-supervised, semi-supervised and transfer learning. Similarly, Khosla et al. (2020) propose a supervised contrastive loss that outperforms cross entropy loss and gets state-of-the-art results on ImageNet on both ResNet-50 and ResNet-200 (He et al., 2016) with AutoAugment (Cubuk et al., 2019) data augmentation. They also show increased robustness on the ImageNet-C dataset (Hendrycks & Dietterich, 2019), and demonstrate that supervised contrastive loss is less sensitive to different hyperparameter settings for optimizers or data augmentations compared to the cross-entropy loss. Liu & Abbeel (2020) propose a hybrid discriminative-generative training of energy-based models where they approximate the generative term with a contrastive loss using large batch sizes and show improved classification accuracy of WideResNet-28-10 (Zagoruyko & Komodakis, 2016) on CIFAR-10 and CIFAR-100 (Krizhevsky, 2009) datasets, outperforming state-of-the-art discriminative and generative classifiers. They also demonstrate improved performance for WideResNet-28-10 on robustness, out-of-distribution detection, and calibration, compared to other state-of-the-art generative and hybrid models. Finally, Fang & Xie (2020) propose pre-training language models using a self-supervised contrastive learning objective at the sentence level using back-translation as the augmentation method, followed by fine-tuning by predicting whether two augmented sentences originate from the same sentence – demonstrating improvements over fine-tuning BERT on a subset of GLUE benchmark tasks. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
617,
|
| 340 |
+
825,
|
| 341 |
+
922
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "Stability and Robustness of Fine-tuning Pre-trained Language Models There has been recent works on analyzing the stability and robustness of fine-tuning pre-trained language models, since they have been shown to overfit to the labeled task data while fine-tuning and hence fail to generalize to unseen data when there is limited labeled data for the task (Aghajanyan et al., 2020). To improve the generalization performance, Jiang et al. (2020) propose a local smoothness-inducing regularizer to manage the complexity of the model and a Bregman proximal point optimization method, an instance of trust-region methods, to prevent aggressive updating of the model during fine-tuning. They show state-of-the-art performance on GLUE, SNLI (Bowman et al., 2015), SciTail (Khot et al., 2018), and ANLI (Nie et al., 2020) natural language understanding benchmarks. Similarly, Aghajanyan et al. (2020) propose a regularized fine-tuning procedure inspired by trust-region theory that replaces adversarial objectives with parametric noise sampled from normal or uniform distribution in order to prevent representation collapse during fine-tuning for better generalization performance, without hurting the performance. They show improved performance on a range of natural language understanding and generation tasks including DailyMail/CNN (Hermann et al., 2015), Gigaword (Napoles et al., 2012), Reddit TIFU (Kim et al., 2019), and the GLUE benchmark. There has also been some empirical analysis that suggests fine-tuning for more epochs, reinitializing top few layers (Zhang et al., 2020) instead of only the classification head, and using debiased Adam optimizer instead of BERTAdam (Devlin et al., 2019) during fine-tuning (Mosbach et al., 2020) can make the fine-tuning procedure more stable across different runs. ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
104,
|
| 351 |
+
825,
|
| 352 |
+
367
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 4
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "4 EXPERIMENTAL SETUP ",
|
| 359 |
+
"text_level": 1,
|
| 360 |
+
"bbox": [
|
| 361 |
+
176,
|
| 362 |
+
415,
|
| 363 |
+
398,
|
| 364 |
+
431
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 4
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "4.1 DATASETS AND TRAINING DETAILS ",
|
| 371 |
+
"text_level": 1,
|
| 372 |
+
"bbox": [
|
| 373 |
+
176,
|
| 374 |
+
462,
|
| 375 |
+
460,
|
| 376 |
+
477
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 4
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "We use datasets from the GLUE natural language understanding benchmark (Wang et al., 2019) for evaluation. We include both single sentence classification tasks and sentence-pair classification tasks to test whether our hypothesis is generally applicable across tasks. We summarize each dataset based on their main task, domain, number of training examples, and number of classes in Table 1. ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
174,
|
| 385 |
+
500,
|
| 386 |
+
825,
|
| 387 |
+
555
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 4
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "In our few-shot learning experiments, we sample half of the original validation set of the GLUE benchmark and use it as our test set, and sample ${ \\sim } 5 0 0$ examples for our validation set from the original GLUE validation set, both taking the label distribution of the original validation set into account. For each task, we want the validation set to be small enough to avoid easy overfitting on the validation set, and big enough to avoid high-variance when early-stopping at various epochs for the few-shot learning experiments. For full dataset experiments, such as the ones shown in Table 5, Table 6, Table 8, and Table 9, we sample a validation set from the original training set of the GLUE benchmark based on the size of the original validation set of GLUE, and report our test results on the original validation set of GLUE. ",
|
| 394 |
+
"bbox": [
|
| 395 |
+
174,
|
| 396 |
+
561,
|
| 397 |
+
825,
|
| 398 |
+
686
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "We run each experiment with 10 different seeds, and report the average test accuracy, standard deviation, along with p-values with respect to the baseline. We pick the best hyperparameter combination based on the average validation accuracy across 10 seeds. For few-shot learning experiments, such as the ones shown in Table 2, Table 3, and Table 10, we sample 10 different training set samples based on the total number of examples $N$ specified from the original training set of the GLUE benchmark, taking the label distribution of the original training set into account. We report the average and the standard deviation of the test accuracies of the top 3 models based on their validation accuracies out of 10 random training set samples. Best hyperparameter combination is picked based on the average validation accuracy of the top 3 models. The reason why we focus on the top 3 models for this setting is that we would like to reduce the variance across training set samples. ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
174,
|
| 407 |
+
694,
|
| 408 |
+
825,
|
| 409 |
+
833
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 4
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "We use fairseq Ott et al. (2019) library and the open-source RoBERTa-Large model for all of our experiments. During all the fine-tuning runs, we use Adam optimizer with a learning rate of 1e-5, batch size of 16 (unless specified otherwise), and dropout rate of 0.1. For each experiment that includes the SCL term, we conduct a grid-based hyperparameter sweep for $\\lambda \\in \\{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 , 1 . 0 \\}$ and $\\tau \\in \\{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 \\}$ . We observe that models with best test accuracies across all experimental settings overwhelmingly use the hyperparameter combination $\\tau = 0 . 3$ and $\\lambda = 0 . 9$ . ",
|
| 416 |
+
"bbox": [
|
| 417 |
+
174,
|
| 418 |
+
840,
|
| 419 |
+
825,
|
| 420 |
+
924
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 4
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "table",
|
| 426 |
+
"img_path": "images/709aa6fbcb58f219c176e860df182a0a8381a08f5226c2b828bfe069d2b3430f.jpg",
|
| 427 |
+
"table_caption": [
|
| 428 |
+
"Table 1: GLUE Benchmark datasets used for evaluation. "
|
| 429 |
+
],
|
| 430 |
+
"table_footnote": [],
|
| 431 |
+
"table_body": "<table><tr><td>Dataset</td><td>Task</td><td>Domain</td><td>#Train</td><td>#Classes</td></tr><tr><td>SST-2</td><td>sentiment analysis</td><td>movie reviews</td><td>67k</td><td>22222</td></tr><tr><td>CoLA</td><td> grammatical correctness</td><td>linguistic publications</td><td>8.5k</td><td></td></tr><tr><td>MRPC</td><td>paraphrase</td><td>news</td><td>3.7k</td><td></td></tr><tr><td>RTE</td><td>textual entailment</td><td>news/Wikipedia</td><td>2.5k</td><td></td></tr><tr><td>QNLI</td><td>question answering/textual entailment</td><td>Wikipedia</td><td>105k</td><td></td></tr><tr><td>MNLI</td><td>textual entailment</td><td>multi-domain</td><td>393k</td><td>3</td></tr></table>",
|
| 432 |
+
"bbox": [
|
| 433 |
+
176,
|
| 434 |
+
102,
|
| 435 |
+
820,
|
| 436 |
+
214
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 5
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "4.2 CONSTRUCTING AUGMENTED NOISY TRAINING DATASETS",
|
| 443 |
+
"text_level": 1,
|
| 444 |
+
"bbox": [
|
| 445 |
+
176,
|
| 446 |
+
261,
|
| 447 |
+
624,
|
| 448 |
+
276
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 5
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "Machine learning researchers or practitioners often do not know how noisy their datasets are, as input examples might be corrupted or ground truth labeling might not be perfect. Therefore, it is preferable to use robust training objectives that can get more information out of datasets of different noise levels, even where there is limited amount of labeled data. We construct augmented noisy training datasets (used to fine-tune the pre-trained language models for the task of interest) of different noise levels using a back-translation model (Edunov et al., 2018), where we increase the temperature parameter to create more noisy examples. Back-translation refers to the procedure of translating an example in language A into language B and then translating it back to language A, and it is a commonly used data augmentation procedure for NLP applications, as the new examples obtained through back-translation provide targeted inductive bias to the model while preserving the meaning of the original example. Specifically, we use WMT’18 English-German and German-English translation models, use random sampling to get more diverse examples, and employ and augmentation ratio of 1:3 for supervised examples:augmented examples. We observe that employing random sampling with a tunable temperature parameter is critical to get diverse paraphrases for the supervised examples, consistent with the previous work (Edunov et al., 2018; Xie et al., 2019), since commonly used beam search results in very regular sentences that do not provide diversity to the existing data distribution. We keep the validation and test sets same with the experiments shown in Table 2. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
174,
|
| 457 |
+
289,
|
| 458 |
+
825,
|
| 459 |
+
525
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 5
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "5 ANALYSIS AND RESULTS ",
|
| 466 |
+
"text_level": 1,
|
| 467 |
+
"bbox": [
|
| 468 |
+
176,
|
| 469 |
+
550,
|
| 470 |
+
411,
|
| 471 |
+
565
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 5
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "5.1 GLUE BENCHMARK FEW-SHOT LEARNING RESULTS ",
|
| 478 |
+
"text_level": 1,
|
| 479 |
+
"bbox": [
|
| 480 |
+
174,
|
| 481 |
+
583,
|
| 482 |
+
581,
|
| 483 |
+
598
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 5
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "We proposed adding the SCL term inspired by the learning strategy of humans when they are given few examples. In Table 2, we report our few-shot learning results on SST-2, QNLI, and MNLI from the GLUE benchmark with 20, 100, 1000 labeled training examples. Details of the experimental setup are explained in Section 4. We use a very strong baseline of fine-tuning RoBERTa-Large with cross-entropy loss. We observe that the SCL term improves performance over the baseline significantly across all datasets and data regimes, leading to 10.7 points improvement on QNLI, 3.4 points improvement on MNLI, and 2.2 points improvement on SST-2, where we have 20 labeled examples for fine-tuning. This shows that our proposed objective is effective both for binary single sentence classification such as sentiment analysis; and sentence pair classification tasks such as textual entailment and paraphrasing – when we are given only few labeled examples for the task. We see that as we increase the number of labeled examples, performance improvement over the baseline decreases, leading to 1.9 points improvement on MNLI for 100 examples and 0.6 points improvement on QNLI for 1000 examples. We also would like to acknowledge that improvements over the baseline when $_ { \\mathrm { N = 1 0 0 0 } }$ on both SST-2 and MNLI are not statistically significant. In addition, we conduct an ablation study where we investigate the importance of $l _ { 2 }$ normalization and temperature scaling where we replace SCL loss with CE loss but keep the $l _ { 2 }$ normalization and temperature scaling, as shown in Table 10 in the Appendix under the method name $\\mathrm { C E + C E }$ . ",
|
| 490 |
+
"bbox": [
|
| 491 |
+
174,
|
| 492 |
+
611,
|
| 493 |
+
825,
|
| 494 |
+
847
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 5
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "In Figure 2, we show tSNE plots of the learned representations of the CLS embeddings on SST-2 test set when RoBERTa-Large is fine-tuned with 20 labeled examples, comparing CE with and without the SCL term. We can clearly see that the SCL term enforces more compact clustering of examples with the same label; while the distribution of the embeddings learned with CE is close to random. We include a more detailed comparison for CE and CE+SCL showing learned representations of examples as tSNE plots, where we have 20, 100 labeled examples and full dataset respectively for fine-tuning in Figure 3 in the Appendix. ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
854,
|
| 504 |
+
823,
|
| 505 |
+
924
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 5
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "",
|
| 512 |
+
"bbox": [
|
| 513 |
+
173,
|
| 514 |
+
103,
|
| 515 |
+
825,
|
| 516 |
+
133
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 6
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "table",
|
| 522 |
+
"img_path": "images/2424a7d9f3d759dd26dacc0507c91da8b76abd0774ecb2f71454c0261eb73ead.jpg",
|
| 523 |
+
"table_caption": [],
|
| 524 |
+
"table_footnote": [],
|
| 525 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>N</td><td>SST-2</td><td>QNLI</td><td>MNLI</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>20</td><td>85.9±2.1</td><td>65.0±2.0</td><td>39.3±2.5</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>20</td><td>88.1±3.3</td><td>75.7±4.8</td><td>42.7±4.6</td></tr><tr><td></td><td>p-value</td><td></td><td>5e-10</td><td>1e-46</td><td>1e-8</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>100</td><td>91.1±1.3</td><td>81.9±0.4</td><td>59.2±2.1</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>100</td><td>92.8±1.3</td><td>82.5±0.4</td><td>61.1±3.0</td></tr><tr><td></td><td>p-value</td><td></td><td>3e-17</td><td>1e-20</td><td>2e-4</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>1000</td><td>94.0±0.6</td><td>89.2±0.6</td><td>81.4±0.2</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>1000</td><td>94.1±0.5</td><td>89.8±0.4</td><td>81.5±0.2</td></tr><tr><td></td><td>p-value</td><td></td><td>0.6</td><td>1e-12</td><td>0.5</td></tr></table>",
|
| 526 |
+
"bbox": [
|
| 527 |
+
256,
|
| 528 |
+
148,
|
| 529 |
+
740,
|
| 530 |
+
328
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 6
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "Table 2: Few-shot learning test results on the GLUE benchmark where we have N=20,100,1000 labeled examples for training. Reported results are the mean and the standard deviation of the test accuracies of the top 3 models based on validation accuracy out of 10 random training set samples, along with p-values for each experiment. ",
|
| 537 |
+
"bbox": [
|
| 538 |
+
173,
|
| 539 |
+
342,
|
| 540 |
+
826,
|
| 541 |
+
400
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 6
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "image",
|
| 547 |
+
"img_path": "images/f3661127f4770d2fbd5ad633fd0de29cb54a2e99d93a2834788a814b1cc3c7e2.jpg",
|
| 548 |
+
"image_caption": [
|
| 549 |
+
"Figure 2: tSNE plots of the learned CLS embeddings on the SST-2 test set in the few-shot learning setting of having 20 labeled examples to fine-tune on – comparing RoBERTa-Large fine-tuned with CE only (left) and with our proposed objective $\\mathrm { C E } { + } \\mathrm { S C L }$ (right) for the SST-2 sentiment analysis task. Blue: positive examples; red: negative examples. "
|
| 550 |
+
],
|
| 551 |
+
"image_footnote": [],
|
| 552 |
+
"bbox": [
|
| 553 |
+
209,
|
| 554 |
+
430,
|
| 555 |
+
785,
|
| 556 |
+
566
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 6
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "5.2 ROBUSTNESS ACROSS AUGMENTED NOISY TRAINING DATASETS ",
|
| 563 |
+
"text_level": 1,
|
| 564 |
+
"bbox": [
|
| 565 |
+
176,
|
| 566 |
+
680,
|
| 567 |
+
665,
|
| 568 |
+
695
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 6
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "In Table 3, we report our results on augmented noisy training sets with varying levels of noise. We have 100 labeled examples for fine-tuning for each task, and we augment their training sets with noisy examples using a back-translation model, as described in detail in Section 4.2. Note that we use the back-translation model to simulate training datasets of varying noise levels and not as a method to boost model performance. Experimental setup follows what is described in Section 4 for few-shot learning experiments. T is the temperature for the back-translation model used to augment the training sets, and higher temperature corresponds to more noise in the augmented training set. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
708,
|
| 578 |
+
825,
|
| 579 |
+
805
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 6
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "We observe consistent improvements over the RoBERTa-Large baseline with our proposed objective across all datasets across all noise levels, with 0.4 points improvement on SST-2, 2.5 points improvement on QNLI, and 7 points improvement on MNLI on average across augmented training sets. The improvement is particularly significant for inference tasks (QNLI, MNLI) when the noise levels are higher (higher temperature), leading to 7.7 points improvement on MNLI when $\\mathrm { T } { = } 0 . 7$ , and 4.2 points improvement on QNLI when $\\mathrm { T } { = } 0 . 9$ . We show some samples of the augmented examples used in this robustness experiment in Table 4. For $\\mathrm { T } { = } 0 . 3$ , examples mostly stay the same with minor changes in their phrasing, while for $\\mathrm { T } { = } 0 . 9$ , some grammatical mistakes and factual errors are introduced. ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
174,
|
| 588 |
+
811,
|
| 589 |
+
825,
|
| 590 |
+
924
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 6
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "table",
|
| 596 |
+
"img_path": "images/20547aa9b04b6f9c4d478f8f86e5ef450c931d6d1611406c9446de3851ae7a9f.jpg",
|
| 597 |
+
"table_caption": [
|
| 598 |
+
"Table 3: Results on the GLUE benchmark for robustness across noisy augmented training sets. Average shows the average performance across augmented training sets. "
|
| 599 |
+
],
|
| 600 |
+
"table_footnote": [],
|
| 601 |
+
"table_body": "<table><tr><td>Dataset</td><td>Loss</td><td>Original</td><td>T=0.3</td><td>T=0.5</td><td>T=0.7</td><td>T=0.9</td><td>Average</td></tr><tr><td>SST-2</td><td>CE</td><td>91.1±1.3</td><td>92.0±1.3</td><td>91.4±1.0</td><td>91.7±1.3</td><td>90.0±0.5</td><td>91.3±1.2</td></tr><tr><td>SST-2</td><td>CE + SCL</td><td>92.8±1.3</td><td>92.6±0.9</td><td>91.5±1.0</td><td>91.2±0.6</td><td>91.5±1.0</td><td>91.7±1.0</td></tr><tr><td>QNLI</td><td>CE</td><td>81.9±0.4</td><td>81.1±2.3</td><td>80.0±2.9</td><td>78.9±3.7</td><td>75.9±4.0</td><td>79.0±3.5</td></tr><tr><td>QNLI</td><td>CE + SCL</td><td>82.5±0.4</td><td>82.7±1.9</td><td>81.9±2.5</td><td>81.3±0.6</td><td>80.1±2.5</td><td>81.5±2.0</td></tr><tr><td>MNLI</td><td>CE</td><td>59.2±2.1</td><td>54.0±1.1</td><td>55.3±2.4</td><td>54.6±2.2</td><td>47.0±1.8</td><td>52.7±3.9</td></tr><tr><td>MNLI</td><td>CE + SCL</td><td>61.1±3.0</td><td>61.2±2.3</td><td>62.1±0.9</td><td>62.3±1.1</td><td>53.0±2.1</td><td>59.7±4.3</td></tr></table>",
|
| 602 |
+
"bbox": [
|
| 603 |
+
209,
|
| 604 |
+
101,
|
| 605 |
+
789,
|
| 606 |
+
214
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 7
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "table",
|
| 612 |
+
"img_path": "images/4487814ff918c9d9f1c0ea1f668dd86bc2bc57228bfff4197470f50617dc48ff.jpg",
|
| 613 |
+
"table_caption": [
|
| 614 |
+
"Table 4: Sample of augmented examples with different noise levels for the robustness experiment shown in Table 3. Higher temperature (T) corresponds to more noise in the augmented training set. "
|
| 615 |
+
],
|
| 616 |
+
"table_footnote": [],
|
| 617 |
+
"table_body": "<table><tr><td>Dataset</td><td>Type</td><td>Sentence</td></tr><tr><td>SST-2 SST-2</td><td>Original Augmented (T=0.3)</td><td>As possibly the best actor working in movies today. As perhaps the best actor who now stars in films.</td></tr><tr><td>SST-2 SST-2</td><td>Original Augmented (T=0.9)</td><td>The young stars are too cute; the story and ensuing complications are too manipulative. The babies are too cute,the image and complications that follow too manipulative.</td></tr><tr><td>QNLI QNLI</td><td>Original Augmented (T=0.3)</td><td>Brain tissue is naturally soft, but can be stiffened with what liquid? Brain tissue is omitted naturally, but with what fluid it can be stiffened?</td></tr><tr><td>QNLI QNLI</td><td>Original Augmented (T=0.9)</td><td>In March 1968,CBS and Sony formed CBS/Sony Records,a Japanese business joint venture. CBS was founded by CBS and Sony Records in March 1962,a Japanese company.</td></tr><tr><td>MNLI MNLI</td><td>Original Augmented (T=0.3)</td><td>However,the link did not transfer the user to a comment box particular to the rule at issue.</td></tr><tr><td>MNLI MNLI</td><td>Original Augmented (T=0.9)</td><td>However,the link did not send the user to a comment field specifically for the rule. Tenants could not enter the apartment complex due to a dangerous chemical spill. Tenants were banned from entering the medical property because of a blood positive substance.</td></tr></table>",
|
| 618 |
+
"bbox": [
|
| 619 |
+
174,
|
| 620 |
+
272,
|
| 621 |
+
823,
|
| 622 |
+
446
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 7
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "5.3 GLUE BENCHMARK FULL DATASET RESULTS ",
|
| 629 |
+
"text_level": 1,
|
| 630 |
+
"bbox": [
|
| 631 |
+
173,
|
| 632 |
+
517,
|
| 633 |
+
535,
|
| 634 |
+
532
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 7
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "In Table 5, we report results using our proposed objective on six downstream tasks from the GLUE benchmark. We use a very strong baseline of fine-tuning RoBERTa-Large with cross-entropy loss, which is currently the standard practice for the state-of-the-art NLP classification models. Details of the experimental setup are explained in Section 4. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
173,
|
| 643 |
+
547,
|
| 644 |
+
825,
|
| 645 |
+
603
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 7
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "We observe that adding the SCL term to the objective improves the performance over the RoBERTaLarge baseline that lead to 3.1 points improvement on MRPC, 3.5 points improvement on QNLI, and an average improvement of 1.2 points across all 6 datasets. We conduct these experiments to investigate the effect of the SCL term in high-data regimes, as we observe that it’s effective in few-shot learning settings. We acknowledge that only MRPC and QNLI results are statistically significant, and we report the results on the other datasets as a finding for the sake of completeness. ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
174,
|
| 654 |
+
611,
|
| 655 |
+
825,
|
| 656 |
+
695
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 7
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "We hypothesize larger batch sizes lead to better performance, but we leave that for future work as that requires additional engineering effort. We show evidence for this hypothesis in our ablation studies that we show in Table 6, where we conduct the full dataset experiments for $\\mathrm { C E } { + } \\mathrm { S C L }$ with the same experimental setup described here for Table 5 on SST-2, CoLA, QNLI, and MNLI for batch sizes 16, 64, and 256 using RoBERTa-Base. We observe that as we increase the batch size, performance improves significantly across all datasets. Specifically, we observe 0.3 points improvement on SST-2, 0.8 points improvement on CoLA, 0.4 points improvement on QNLI, and 1.3 points improvement on MNLI, when we increase the batch size from 16 to 256 for $\\mathrm { C E } { + } \\mathrm { S C L }$ . We also investigate the effect of SCL term in the overall training speed, and we measure that with average updates per second metric, shown in Table 6. For batch size 16, the batch size we use throughout the paper across all experimental settings, effect of SCL is negligible – decreasing average updates per second from 15.9 to 15.08. As we increase the batch size, effect of SCL to training speed becomes more significant – decreasing average updates per second from 2.46 to 1.54 for batch size 256. In addition, we conduct an ablation study where we investigate the importance of $l _ { 2 }$ normalization and temperature scaling where we replace SCL loss with CE loss but keep the normalization and scaling (denoted as $\\mathrm { C E + C E }$ ) both for full dataset results in Table 8, and for batch size ablation in Table 9 in the Appendix. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
173,
|
| 665 |
+
702,
|
| 666 |
+
825,
|
| 667 |
+
922
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 7
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "table",
|
| 673 |
+
"img_path": "images/a9398ac9da6ab2b1acd37312587eca0c20c24c056c7126204d716af74c19862e.jpg",
|
| 674 |
+
"table_caption": [
|
| 675 |
+
"Table 5: Test results on the validation set of GLUE benchmark. We compare fine-tuning RoBERTaLarge with CE with and without SCL. Best hyperparameter configuration picked based on average validation accuracy. We report average accuracy across 10 seeds for the model with best hyperparameter configuration, its standard deviation, and p-values. "
|
| 676 |
+
],
|
| 677 |
+
"table_footnote": [],
|
| 678 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>SST-2</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>QNLI</td><td>MNLI</td><td>Avg</td></tr><tr><td>RoBERTaLarge</td><td>CE CE + SCL</td><td>96.0±0.4 96.3±0.4</td><td>86.0±0.5 86.1±0.8</td><td>86.4±2.4 89.5±0.9</td><td>85.5±1.8 85.7±0.5</td><td>90.4±0.8</td><td>88.4±1</td><td>88.8</td></tr><tr><td>RoBERTaLarge</td><td></td><td></td><td></td><td></td><td></td><td>93.9±0.7</td><td>88.6±0.7</td><td>90</td></tr><tr><td></td><td></td><td>0.07</td><td>0.63</td><td>0.01</td><td>0.06</td><td>0.01</td><td>0.16</td><td></td></tr><tr><td></td><td>p-value</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 679 |
+
"bbox": [
|
| 680 |
+
176,
|
| 681 |
+
102,
|
| 682 |
+
820,
|
| 683 |
+
170
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 8
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "table",
|
| 689 |
+
"img_path": "images/58838ff8248c16387a08d558edbe9623d58c83045dc1b9f2ef463d4a88700aef.jpg",
|
| 690 |
+
"table_caption": [
|
| 691 |
+
"Table 6: Ablation study on performance and training speed shown as average updates per second (Avg ups/sec) for fine-tuning RoBERTa-Base with respect to the batch size (Bsz). "
|
| 692 |
+
],
|
| 693 |
+
"table_footnote": [],
|
| 694 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>Bsz</td><td>SST-2</td><td>CoLA</td><td>QNLI</td><td>MNLI</td><td> Avg ups/sec</td></tr><tr><td rowspan=\"2\">RoBERTaBase RoBERTaBase</td><td>CE</td><td>16</td><td>94.1±0.5</td><td>83.3±0.7</td><td>88.2±0.8</td><td>84±0.6</td><td>15.9</td></tr><tr><td>CE + SCL</td><td>16</td><td>94.9±0.6</td><td>83.7±0.9</td><td>92.5±0.4</td><td>85.3±0.5</td><td>15.08</td></tr><tr><td rowspan=\"2\">RoBERTaBase RoBERTaBase</td><td>CE</td><td>64</td><td>94.2±0.4</td><td>83.3±0.5</td><td>89.2±0.5</td><td>84±0.4</td><td>8.43</td></tr><tr><td>CE + SCL</td><td>64</td><td>94.7±0.2</td><td>83.8±0.6</td><td>92.6±0.5</td><td>85.7±0.7</td><td>7.44</td></tr><tr><td rowspan=\"2\">RoBERTaBase RoBERTaBase</td><td>CE</td><td>256</td><td>94.1±0.4</td><td>84±0.5</td><td>90±0.7</td><td>84.4±0.6</td><td>2.46</td></tr><tr><td>CE + SCL</td><td>256</td><td>95.2±0.3</td><td>84.5±0.5</td><td>92.9±0.3</td><td>86.6±0.6</td><td>1.54</td></tr></table>",
|
| 695 |
+
"bbox": [
|
| 696 |
+
191,
|
| 697 |
+
246,
|
| 698 |
+
805,
|
| 699 |
+
362
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 8
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "5.4 GENERALIZATION ABILITY OF TASK MODELS ",
|
| 706 |
+
"text_level": 1,
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
422,
|
| 710 |
+
534,
|
| 711 |
+
438
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 8
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "In this experiment, we first fine-tune RoBERTa-Large on SST-2 using its full training set and get a task model with and without SCL term. Then, we transfer this task model to two related single sentence sentiment analysis binary classification tasks for the movie reviews domain – Amazon-2 and Yelp-2 (Zhang et al., 2015). For both, we sample 20 labeled examples for each class, and follow the few-shot learning experimental setup described in Section 4. In Table 7, we demonstrate that using the SCL term for both source (SST-2) and target domains (Amazon-2, Yelp-2) lead to better generalization ability, with 2.9 points improvement on Amazon-2 and 0.4 points improvement on Yelp-2 along with significant reduction in variance across training set samples. ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
173,
|
| 720 |
+
448,
|
| 721 |
+
825,
|
| 722 |
+
560
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 8
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "table",
|
| 728 |
+
"img_path": "images/4c37f17d96b7defce34aa192c2cc8f1b8508f06ff85feef8c8714d240ea20914.jpg",
|
| 729 |
+
"table_caption": [],
|
| 730 |
+
"table_footnote": [],
|
| 731 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>N</td><td>Amazon-2</td><td>Yelp-2</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>40</td><td>87.4±6.4</td><td>90.8±2.2</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL</td><td>40</td><td>90.3±0.6</td><td>91.2±0.4</td></tr></table>",
|
| 732 |
+
"bbox": [
|
| 733 |
+
305,
|
| 734 |
+
574,
|
| 735 |
+
691,
|
| 736 |
+
628
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 8
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "Table 7: Generalization of the SST-2 task model (fine-tuned using the full training set) to related tasks (Amazon-2, Yelp-2) where there are 20 labeled examples for each class. ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
168,
|
| 745 |
+
642,
|
| 746 |
+
825,
|
| 747 |
+
671
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 8
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "6 CONCLUSION ",
|
| 754 |
+
"text_level": 1,
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
693,
|
| 758 |
+
318,
|
| 759 |
+
708
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 8
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "We propose a supervised contrastive learning objective for fine-tuning pre-trained language models and demonstrate significant improvements over a strong RoBERTa-Large baseline on multiple datasets of the GLUE benchmark in the few-shot learning settings. We also show that our proposed objective leads to models that are more robust to different levels of noise in the training data and can generalize better to related tasks with limited labeled task data. Currently, data augmentation methods in NLP and their effects on the downstream tasks are neither as effective nor as well understood as their counterparts in the computer vision domain. In future work, we plan to study principled and automated data augmentation techniques for NLP that would allow extending our supervised contrastive learning objective to both semi-supervised and self-supervised learning settings. ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
174,
|
| 768 |
+
724,
|
| 769 |
+
825,
|
| 770 |
+
849
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 8
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "REFERENCES ",
|
| 777 |
+
"text_level": 1,
|
| 778 |
+
"bbox": [
|
| 779 |
+
176,
|
| 780 |
+
872,
|
| 781 |
+
285,
|
| 782 |
+
887
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 8
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Armen Aghajanyan, Akshat Shrivastava, Anchit Gupta, Naman Goyal, Luke Zettlemoyer, and Sonal Gupta. Better fine-tuning by reducing representational collapse. ArXiv, abs/2008.03156, 2020. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
178,
|
| 791 |
+
895,
|
| 792 |
+
823,
|
| 793 |
+
924
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 8
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Philip Bachman, R. Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In NeurIPS, 2019. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
171,
|
| 802 |
+
103,
|
| 803 |
+
825,
|
| 804 |
+
132
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 9
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, and Michael Auli. wav2vec 2.0: A framework for self-supervised learning of speech representations. In NeurIPS, 2020. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
173,
|
| 813 |
+
140,
|
| 814 |
+
823,
|
| 815 |
+
170
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 9
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference. In EMNLP, 2015. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
173,
|
| 824 |
+
178,
|
| 825 |
+
823,
|
| 826 |
+
208
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 9
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Kaidi Cao, Colin Wei, Adrien Gaidon, N. Arechiga, and Tengyu Ma. Learning imbalanced datasets ´ with label-distribution-aware margin loss. In NeurIPS, 2019. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
214,
|
| 836 |
+
823,
|
| 837 |
+
244
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 9
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020a. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
173,
|
| 846 |
+
252,
|
| 847 |
+
823,
|
| 848 |
+
282
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 9
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey E. Hinton. Big self-supervised models are strong semi-supervised learners. In NeurIPS, 2020b. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
171,
|
| 857 |
+
289,
|
| 858 |
+
823,
|
| 859 |
+
319
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 9
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, and Michael Auli. Unsupervised cross-lingual representation learning for speech recognition. arXiv preprint arXiv:2006.13979, 2020. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
327,
|
| 869 |
+
825,
|
| 870 |
+
369
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 9
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "E. Cubuk, Barret Zoph, Dandelion Mane, V. Vasudevan, and Quoc V. Le. Autoaugment: Learning ´ augmentation strategies from data. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 113–123, 2019. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
176,
|
| 879 |
+
377,
|
| 880 |
+
823,
|
| 881 |
+
421
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 9
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "E. D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. Randaugment: Practical automated data augmentation with a reduced search space. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 3008–3017, 2020. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
178,
|
| 890 |
+
429,
|
| 891 |
+
823,
|
| 892 |
+
473
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 9
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "J. Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
171,
|
| 901 |
+
479,
|
| 902 |
+
823,
|
| 903 |
+
510
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 9
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Jesse Dodge, Gabriel Ilharco, Roy Schwartz, Ali Farhadi, Hannaneh Hajishirzi, and Noah A. Smith. Fine-tuning pretrained language models: Weight initializations, data orders, and early stopping. ArXiv, abs/2002.06305, 2020. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
174,
|
| 912 |
+
517,
|
| 913 |
+
823,
|
| 914 |
+
560
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 9
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. In EMNLP, 2018. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
173,
|
| 923 |
+
569,
|
| 924 |
+
823,
|
| 925 |
+
598
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 9
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Gamaleldin F. Elsayed, Dilip Krishnan, Hossein Mobahi, Kevin Regan, and Samy Bengio. Large margin deep networks for classification. In NeurIPS, 2018. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
174,
|
| 934 |
+
606,
|
| 935 |
+
823,
|
| 936 |
+
636
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 9
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Hongchao Fang and Pengtao Xie. Cert: Contrastive self-supervised learning for language understanding. ArXiv, abs/2005.12766, 2020. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
171,
|
| 945 |
+
643,
|
| 946 |
+
825,
|
| 947 |
+
672
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 9
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "M. Gutmann and A. Hyvarinen. Noise-contrastive estimation of unnormalized statistical models, ¨ with applications to natural image statistics. J. Mach. Learn. Res., 13:307–361, 2012. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
171,
|
| 956 |
+
680,
|
| 957 |
+
825,
|
| 958 |
+
710
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 9
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Tengda Han, Weidi Xie, and Andrew Zisserman. Video representation learning by dense predictive coding. 2019 IEEE/CVF International Conference on Computer Vision Workshop (ICCVW), pp. 1483–1492, 2019. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
174,
|
| 967 |
+
718,
|
| 968 |
+
825,
|
| 969 |
+
761
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 9
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "Kaiming He, X. Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
173,
|
| 978 |
+
768,
|
| 979 |
+
825,
|
| 980 |
+
799
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 9
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. Momentum contrast for unsupervised visual representation learning. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9726–9735, 2020. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
176,
|
| 989 |
+
806,
|
| 990 |
+
825,
|
| 991 |
+
849
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 9
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "Olivier J. Henaff, A. Srinivas, J. Fauw, Ali Razavi, C. Doersch, S. Eslami, and A. Oord. Data-efficient ´ image recognition with contrastive predictive coding. ArXiv, abs/1905.09272, 2019. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
858,
|
| 1001 |
+
821,
|
| 1002 |
+
887
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 9
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Dan Hendrycks and Thomas G. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
174,
|
| 1011 |
+
895,
|
| 1012 |
+
821,
|
| 1013 |
+
924
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 9
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "K. Hermann, Tomas Kocisk ´ y, Edward Grefenstette, Lasse Espeholt, W. Kay, Mustafa Suleyman, and ´ P. Blunsom. Teaching machines to read and comprehend. In NeurIPS, 2015. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
171,
|
| 1022 |
+
103,
|
| 1023 |
+
825,
|
| 1024 |
+
133
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 10
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Geoffrey E. Hinton, Oriol Vinyals, and J. Dean. Distilling the knowledge in a neural network. In NeurIPS Deep Learning and Representation Learning Workshop, 2015. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
141,
|
| 1034 |
+
823,
|
| 1035 |
+
171
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 10
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "R. Devon Hjelm, A. Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In ICLR, 2019. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
179,
|
| 1045 |
+
823,
|
| 1046 |
+
222
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 10
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Jeremy Howard and Sebastian Ruder. Universal language model fine-tuning for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 328–339, 2018. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
231,
|
| 1056 |
+
825,
|
| 1057 |
+
275
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 10
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Tuo Zhao. Smart: Robust and efficient fine-tuning for pre-trained natural language models through principled regularized optimization. In ACL, 2020. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
173,
|
| 1066 |
+
282,
|
| 1067 |
+
825,
|
| 1068 |
+
327
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 10
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. In NeurIPS, 2020. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
173,
|
| 1077 |
+
334,
|
| 1078 |
+
823,
|
| 1079 |
+
364
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 10
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Tushar Khot, A. Sabharwal, and Peter Clark. Scitail: A textual entailment dataset from science question answering. In AAAI, 2018. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
174,
|
| 1088 |
+
372,
|
| 1089 |
+
823,
|
| 1090 |
+
402
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 10
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Byeongchang Kim, Hyunwoo Kim, and Gunhee Kim. Abstractive summarization of reddit posts with multi-level memory networks. In NAACL-HLT, 2019. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
173,
|
| 1099 |
+
410,
|
| 1100 |
+
825,
|
| 1101 |
+
440
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 10
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "A. Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1920–1929, 2019. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
173,
|
| 1110 |
+
449,
|
| 1111 |
+
825,
|
| 1112 |
+
492
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 10
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "A. Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
173,
|
| 1121 |
+
501,
|
| 1122 |
+
676,
|
| 1123 |
+
517
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 10
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "Hao Liu and P. Abbeel. Hybrid discriminative-generative training via contrastive learning. ArXiv, abs/2007.09070, 2020. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
173,
|
| 1132 |
+
525,
|
| 1133 |
+
826,
|
| 1134 |
+
554
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 10
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "Weiyang Liu, Yandong Wen, Zhiding Yu, and Meng Yang. Large-margin softmax loss for convolutional neural networks. In ICML, 2016. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
173,
|
| 1143 |
+
563,
|
| 1144 |
+
825,
|
| 1145 |
+
592
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 10
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "Y. Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, M. Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692, 2019. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
174,
|
| 1154 |
+
601,
|
| 1155 |
+
825,
|
| 1156 |
+
643
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 10
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "I. Misra and L. V. D. Maaten. Self-supervised learning of pretext-invariant representations. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6706–6716, 2020. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
173,
|
| 1165 |
+
652,
|
| 1166 |
+
825,
|
| 1167 |
+
695
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 10
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "A. Mnih and K. Kavukcuoglu. Learning word embeddings efficiently with noise-contrastive estimation. In NeurIPS, 2013. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
169,
|
| 1176 |
+
704,
|
| 1177 |
+
825,
|
| 1178 |
+
734
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 10
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Marius Mosbach, Maksym Andriushchenko, and Dietrich Klakow. On the stability of fine-tuning bert: Misconceptions, explanations, and strong baselines. ArXiv, abs/2006.04884, 2020. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
169,
|
| 1187 |
+
742,
|
| 1188 |
+
825,
|
| 1189 |
+
772
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 10
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "R. Muller, Simon Kornblith, and Geoffrey E. Hinton. When does label smoothing help? In ¨ NeurIPS, 2019. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
173,
|
| 1198 |
+
780,
|
| 1199 |
+
823,
|
| 1200 |
+
810
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 10
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "Courtney Napoles, Matthew R. Gormley, and Benjamin Van Durme. Annotated gigaword. In AKBC-WEKEX@NAACL-HLT, 2012. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
173,
|
| 1209 |
+
819,
|
| 1210 |
+
823,
|
| 1211 |
+
848
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 10
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "K. Nar, O. Ocal, S. Sastry, and K. Ramchandran. Cross-entropy loss and low-rank features have responsibility for adversarial examples. ArXiv, abs/1901.08360, 2019. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
173,
|
| 1220 |
+
857,
|
| 1221 |
+
821,
|
| 1222 |
+
886
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 10
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "Andrew Y. $\\mathrm { N g }$ and Michael I. Jordan. On discriminative vs. generative classifiers: A comparison of logistic regression and naive bayes. In NeurIPS, 2001. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
173,
|
| 1231 |
+
895,
|
| 1232 |
+
821,
|
| 1233 |
+
924
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "Yixin Nie, Adina Williams, Emily Dinan, Mohit Bansal, J. Weston, and Douwe Kiela. Adversarial nli: A new benchmark for natural language understanding. 2020. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
173,
|
| 1242 |
+
103,
|
| 1243 |
+
823,
|
| 1244 |
+
132
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 11
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "A. Oord, Y. Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. ArXiv, abs/1807.03748, 2018. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
171,
|
| 1253 |
+
141,
|
| 1254 |
+
825,
|
| 1255 |
+
170
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 11
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of NAACL-HLT 2019: Demonstrations, 2019. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
176,
|
| 1264 |
+
179,
|
| 1265 |
+
823,
|
| 1266 |
+
222
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 11
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "A. Radford, Jeffrey Wu, R. Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2019. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
169,
|
| 1275 |
+
229,
|
| 1276 |
+
825,
|
| 1277 |
+
260
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 11
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Rajat Raina, Yirong Shen, Andrew Y. Ng, and Andrew McCallum. Classification with hybrid generative/discriminative models. In NeurIPS, 2003. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
171,
|
| 1286 |
+
267,
|
| 1287 |
+
825,
|
| 1288 |
+
297
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 11
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Olga Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Zhiheng Huang, A. Karpathy, A. Khosla, M. Bernstein, A. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115:211–252, 2015. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
179,
|
| 1297 |
+
306,
|
| 1298 |
+
823,
|
| 1299 |
+
349
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 11
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. A theoretical analysis of contrastive unsupervised representation learning. volume 97 of Proceedings of Machine Learning Research, pp. 5628–5637, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/saunshi19a.html. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
173,
|
| 1308 |
+
357,
|
| 1309 |
+
826,
|
| 1310 |
+
415
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 11
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "Florian Schroff, D. Kalenichenko, and J. Philbin. Facenet: A unified embedding for face recognition and clustering. 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 815–823, 2015. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
173,
|
| 1319 |
+
422,
|
| 1320 |
+
825,
|
| 1321 |
+
465
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 11
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. In NeurIPS, 2016. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
173,
|
| 1330 |
+
474,
|
| 1331 |
+
823,
|
| 1332 |
+
505
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 11
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir D. Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. In ICLR, 2015. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
174,
|
| 1341 |
+
512,
|
| 1342 |
+
825,
|
| 1343 |
+
542
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 11
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "Christian Szegedy, V. Vanhoucke, S. Ioffe, Jon Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
176,
|
| 1352 |
+
550,
|
| 1353 |
+
823,
|
| 1354 |
+
593
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 11
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. In ECCV, 2020. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
173,
|
| 1363 |
+
602,
|
| 1364 |
+
810,
|
| 1365 |
+
618
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 11
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In ICLR, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ rJ4km2R5t7. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
176,
|
| 1374 |
+
626,
|
| 1375 |
+
823,
|
| 1376 |
+
670
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 11
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "Zhirong Wu, Yuanjun Xiong, S. Yu, and D. Lin. Unsupervised feature learning via non-parametric instance discrimination. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
173,
|
| 1385 |
+
678,
|
| 1386 |
+
823,
|
| 1387 |
+
722
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 11
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "Qizhe Xie, Zihang Dai, Eduard H. Hovy, Minh-Thang Luong, and Quoc V. Le. Unsupervised data augmentation for consistency training. arXiv: Learning, 2019. ",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
169,
|
| 1396 |
+
729,
|
| 1397 |
+
823,
|
| 1398 |
+
760
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 11
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "Qizhe Xie, Minh-Thang Luong, Eduard Hovy, and Quoc V Le. Self-training with noisy student improves imagenet classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10687–10698, 2020. ",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
174,
|
| 1407 |
+
767,
|
| 1408 |
+
825,
|
| 1409 |
+
810
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 11
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "I Zeki Yalniz, Herve J´ egou, Kan Chen, Manohar Paluri, and Dhruv Mahajan. Billion-scale semi-´ supervised learning for image classification. arXiv preprint arXiv:1905.00546, 2019. ",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
171,
|
| 1418 |
+
819,
|
| 1419 |
+
823,
|
| 1420 |
+
849
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 11
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6022–6031, 2019. ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
174,
|
| 1429 |
+
857,
|
| 1430 |
+
821,
|
| 1431 |
+
900
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 11
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. ArXiv, abs/1605.07146, 2016. ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
171,
|
| 1440 |
+
909,
|
| 1441 |
+
813,
|
| 1442 |
+
924
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 11
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "Hongyi Zhang, M. Cisse, Yann Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk ´ minimization. In ICLR, 2018. \nTianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q. Weinberger, and Yoav Artzi. Revisiting few-sample bert fine-tuning. ArXiv, abs/2006.05987, 2020. \nX. Zhang, J. Zhao, and Y. LeCun. Character-level convolutional networks for text classification. In NeurIPS, 2015. \nZhilu Zhang and Mert R. Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, 2018. ",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
169,
|
| 1451 |
+
101,
|
| 1452 |
+
826,
|
| 1453 |
+
246
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 12
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "A APPENDIX ",
|
| 1460 |
+
"text_level": 1,
|
| 1461 |
+
"bbox": [
|
| 1462 |
+
176,
|
| 1463 |
+
103,
|
| 1464 |
+
297,
|
| 1465 |
+
117
|
| 1466 |
+
],
|
| 1467 |
+
"page_idx": 13
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"type": "image",
|
| 1471 |
+
"img_path": "images/6e75b94ec232e0ffa95cbebbe421d190008d9112a54af371c50af8c773e93650.jpg",
|
| 1472 |
+
"image_caption": [
|
| 1473 |
+
"Figure 3: tSNE plots of learned CLS embedding on SST-2 test set where we have 20, 100 labeled examples, and full dataset respectively, comparing CE with and without SCL term. Blue: positive examples; red: negative examples. "
|
| 1474 |
+
],
|
| 1475 |
+
"image_footnote": [],
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
187,
|
| 1478 |
+
145,
|
| 1479 |
+
812,
|
| 1480 |
+
534
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 13
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "table",
|
| 1486 |
+
"img_path": "images/4904cca03713656109d692e90a7475ba0f2ac84d967b1adf8c5eefe58bfcc46c.jpg",
|
| 1487 |
+
"table_caption": [],
|
| 1488 |
+
"table_footnote": [],
|
| 1489 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>SST-2</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>QNLI</td><td>MNLI</td><td>Avg</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>96.0±0.4</td><td>86.0±0.5</td><td>86.4±2.4</td><td>85.5±1.8</td><td>90.4±0.8</td><td>88.4±1</td><td>88.8</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>96.3±0.4 0.07</td><td>86.1±0.8 0.63</td><td>89.5±0.9 0.01</td><td>85.7±0.5 0.06</td><td>93.9±0.7 0.01</td><td>88.6±0.7 0.16</td><td>90</td></tr><tr><td>RoBERTaLarge</td><td>CE +CE p-value</td><td>96±0.4 0.39</td><td>86.3±0.4 0.13</td><td>89±1 0.01</td><td>84.9±1 0.1</td><td>93.9±0.8 0.01</td><td>89±1 0.12</td><td>89.9</td></tr><tr><td>RoBERTaLarge</td><td>Khosla et al. (2020) p-value</td><td>96±0.3 0.4</td><td>86.7±1 0.42</td><td>89.3±1.2 0.01</td><td>85.2±1 0.22</td><td>92.4±0.7 0.01</td><td>88.8±0.9 0.13</td><td>89.7</td></tr></table>",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
176,
|
| 1492 |
+
617,
|
| 1493 |
+
821,
|
| 1494 |
+
737
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 13
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "text",
|
| 1500 |
+
"text": "Table 8: Test results on the validation set of GLUE benchmark. We compare fine-tuning RoBERTaLarge with CE with and without SCL, $\\mathrm { C E + C E }$ and the two-stage method of Khosla et al. (2020). Best hyperparameter configuration is picked based on the average validation accuracy. We report average accuracy across 10 seeds for the model with the best hyperparameter configuration, its standard deviation, and p-values. $\\mathrm { C E + C E }$ refers to the case where we replace SCL loss with the CE loss but keep l2 normalization and temperature scaling. ",
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
173,
|
| 1503 |
+
750,
|
| 1504 |
+
826,
|
| 1505 |
+
835
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 13
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "table",
|
| 1511 |
+
"img_path": "images/58d6379408525d71e7993c02fc4734890abcb7404e7e5a40318c64ab62652c7b.jpg",
|
| 1512 |
+
"table_caption": [
|
| 1513 |
+
"Table 9: Ablation on performance and fine-tuning speed shown as average updates per second (Avg ups/sec) for fine-tuning RoBERTa-Base with respect to the batch size (Bsz). $\\mathrm { C E + C E }$ refers to the case where we replace SCL loss with the CE loss but keep l2 normalization and temperature scaling. "
|
| 1514 |
+
],
|
| 1515 |
+
"table_footnote": [],
|
| 1516 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>Bsz</td><td>SST-2</td><td>CoLA</td><td>QNLI</td><td>MNLI</td><td>Avg ups/sec</td></tr><tr><td>RoBERTaBase</td><td>CE</td><td>16</td><td>94.1±0.5</td><td>83.3±0.7</td><td>88.2±0.8</td><td>84±0.6</td><td>15.9</td></tr><tr><td>RoBERTaBase</td><td>CE + SCL</td><td>16</td><td>94.9±0.6</td><td>83.7±0.9</td><td>92.5±0.4</td><td>85.3±0.5</td><td>15.08</td></tr><tr><td>RoBERTaBase</td><td>CE+CE</td><td>16</td><td>94.8±0.7</td><td>83.6±0.4</td><td>91.6±0.5</td><td>85±0.3</td><td>15.25</td></tr><tr><td>RoBERTaBase</td><td>CE</td><td>64</td><td>94.2±0.4</td><td>83.3±0.5</td><td>89.2±0.5</td><td>84±0.4</td><td>8.43</td></tr><tr><td>RoBERTaBase</td><td>CE + SCL</td><td>64</td><td>94.7±0.2</td><td>83.8±0.6</td><td>92.6±0.5</td><td>85.7±0.7</td><td>7.44</td></tr><tr><td>RoBERTaBase</td><td>CE+CE</td><td>64</td><td>94.6±0.7</td><td>83.5±0.6</td><td>92.1±0.8</td><td>85±0.8</td><td>7.64</td></tr><tr><td>RoBERTaBase</td><td>CE</td><td>256</td><td>94.1±0.4</td><td>84±0.5</td><td>90±0.7</td><td>84.4±0.6</td><td>2.46</td></tr><tr><td>RoBERTaBase</td><td>CE + SCL</td><td>256</td><td>95.2±0.3</td><td>84.5±0.5</td><td>92.9±0.3</td><td>86.6±0.6</td><td>1.54</td></tr><tr><td>RoBERTaBase</td><td>CE+CE</td><td>256</td><td>94.3±0.5</td><td>83.5±0.3</td><td>91.9±0.4</td><td>84.6±0.8</td><td>1.77</td></tr></table>",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
176,
|
| 1519 |
+
165,
|
| 1520 |
+
821,
|
| 1521 |
+
327
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 14
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "table",
|
| 1527 |
+
"img_path": "images/3acc82feca15644b688b634e5ee3cd4ad33af0ee6ce4265d3ba41a47793cd82d.jpg",
|
| 1528 |
+
"table_caption": [],
|
| 1529 |
+
"table_footnote": [],
|
| 1530 |
+
"table_body": "<table><tr><td>Model</td><td>Loss</td><td>N</td><td>SST-2</td><td>QNLI</td><td>MNLI</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>20</td><td>85.9±2.1</td><td>65.0±2.0</td><td>39.3±2.5</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>20</td><td>88.1±3.3 5e-10</td><td>75.7±4.8 1e-46</td><td>42.7±4.6 1e-8</td></tr><tr><td>RoBERTaLarge</td><td>CE + CE p-value</td><td>20</td><td>86.5±2.2 0.03</td><td>75.1±3.5 4e-68</td><td>40.8±3.7 3e-4</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>100</td><td>91.1±1.3</td><td>81.9±0.4</td><td>59.2±2.1</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>100</td><td>92.8±1.3 3e-17</td><td>82.5±0.4 1e-20</td><td>61.1±3.0 2e-4</td></tr><tr><td>RoBERTaLarge</td><td>CE+CE p-value</td><td>100</td><td>91.7±0.5 1e-4</td><td>81.7±0.5 3e-4</td><td>56±4.0 2e-8</td></tr><tr><td>RoBERTaLarge</td><td>CE</td><td>1000</td><td>94.0±0.6</td><td>89.2±0.6</td><td>81.4±0.2</td></tr><tr><td>RoBERTaLarge</td><td>CE + SCL p-value</td><td>1000</td><td>94.1±0.5 0.6</td><td>89.8±0.4 1e-12</td><td>81.5±0.2 0.5</td></tr><tr><td>RoBERTaLarge</td><td>CE + CE p-value</td><td>1000</td><td>94±0.7 0.78</td><td>89.3±1 0.06</td><td>81.2±0.2 0.12</td></tr></table>",
|
| 1531 |
+
"bbox": [
|
| 1532 |
+
256,
|
| 1533 |
+
507,
|
| 1534 |
+
740,
|
| 1535 |
+
782
|
| 1536 |
+
],
|
| 1537 |
+
"page_idx": 14
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "text",
|
| 1541 |
+
"text": "Table 10: Few-shot learning test results on the GLUE benchmark where we have N=20,100,1000 labeled examples for fine-tuning. Reported results are the mean and the standard deviation of the test accuracies of the top 3 models based on the validation accuracy out of 10 random training set samples, along with $\\mathsf { p } \\cdot$ -values for each experiment. $\\mathrm { C E + C E }$ refers to the case where we replace SCL loss with the CE loss but keep l2 normalization and temperature scaling. ",
|
| 1542 |
+
"bbox": [
|
| 1543 |
+
173,
|
| 1544 |
+
796,
|
| 1545 |
+
826,
|
| 1546 |
+
867
|
| 1547 |
+
],
|
| 1548 |
+
"page_idx": 14
|
| 1549 |
+
}
|
| 1550 |
+
]
|
parse/train/cu7IUiOhujH/cu7IUiOhujH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/cu7IUiOhujH/cu7IUiOhujH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ryH20GbRW/ryH20GbRW.md
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RELATIONAL NEURAL EXPECTATION MAXIMIZATION: UNSUPERVISED DISCOVERY OF OBJECTS AND THEIR INTERACTIONS
|
| 2 |
+
|
| 3 |
+
Sjoerd van Steenkiste Swiss AI Lab IDSIA, SUPSI, USI Lugano, Switzerland sjoerd@idsia.ch
|
| 4 |
+
|
| 5 |
+
Michael Chang
|
| 6 |
+
UC Berkeley
|
| 7 |
+
Berkeley, United States
|
| 8 |
+
mbchang@berkeley.edu
|
| 9 |
+
Klaus Greff
|
| 10 |
+
Swiss AI Lab IDSIA, SUPSI, USI
|
| 11 |
+
Lugano, Switzerland
|
| 12 |
+
klaus@idsia.ch
|
| 13 |
+
|
| 14 |
+
Jürgen Schmidhuber Swiss AI Lab IDSIA, SUPSI, USI Lugano, Switzerland juergen@idsia.ch
|
| 15 |
+
|
| 16 |
+
# ABSTRACT
|
| 17 |
+
|
| 18 |
+
Common-sense physical reasoning is an essential ingredient for any intelligent agent operating in the real-world. For example, it can be used to simulate the environment, or to infer the state of parts of the world that are currently unobserved. In order to match real-world conditions this causal knowledge must be learned without access to supervised data. To address this problem we present a novel method that learns to discover objects and model their physical interactions from raw visual images in a purely unsupervised fashion. It incorporates prior knowledge about the compositional nature of human perception to factor interactions between object-pairs and learn efficiently. On videos of bouncing balls we show the superior modelling capabilities of our method compared to other unsupervised neural approaches that do not incorporate such prior knowledge. We demonstrate its ability to handle occlusion and show that it can extrapolate learned knowledge to scenes with different numbers of objects.
|
| 19 |
+
|
| 20 |
+
# 1 INTRODUCTION
|
| 21 |
+
|
| 22 |
+
Humans rely on common-sense physical reasoning to solve many everyday physics-related tasks (Lake et al., 2016). For example, it enables them to foresee the consequences of their actions (simulation), or to infer the state of parts of the world that are currently unobserved. This causal understanding is an essential ingredient for any intelligent agent that is to operate within the world.
|
| 23 |
+
|
| 24 |
+
Common-sense physical reasoning is facilitated by the discovery and representation of objects (a core domain of human cognition (Spelke & Kinzler, 2007)) that serve as primitives of a compositional system. They allow humans to decompose a complex visual scene into distinct parts, describe relations between them and reason about their dynamics as well as the consequences of their interactions (Battaglia et al., 2013; Lake et al., 2016; Ullman et al., 2017).
|
| 25 |
+
|
| 26 |
+
The most successful machine learning approaches to common-sense physical reasoning incorporate such prior knowledge in their design. They maintain explicit object representations, which allow for general physical dynamics to be learned between object pairs in a compositional manner (Battaglia et al., 2016; Chang et al., 2016; Watters et al., 2017). However, in these approaches learning is supervised, as it relies on object-representations from external sources (e.g. a physics simulator) that are typically unavailable in real-world scenarios.
|
| 27 |
+
|
| 28 |
+
Neural approaches that learn to directly model motion or physical interactions in pixel space offer an alternative solution (Srivastava et al., 2015; Sutskever et al., 2009). However, while unsupervised, these methods suffer from a lack compositionality at the representational level of objects. This prevents such end-to-end neural approaches from efficiently learning functions that operate on multiple entities and generalize in a human-like way (c.f. Battaglia et al. (2013); Lake et al. (2016); Santoro et al. (2017), but see Perez et al. (2017)).
|
| 29 |
+
|
| 30 |
+
In this work we propose Relational N-EM (R-NEM), a novel approach to common-sense physical reasoning that learns physical interactions between objects from raw visual images in a purely unsupervised fashion. At its core is Neural Expectation Maximization (N-EM; Greff et al., 2017), a method that allows for the discovery of compositional object-representations, yet is unable to model interactions between objects. Therefore, we endow N-EM with a relational mechanism inspired by previous work (Battaglia et al., 2016; Chang et al., 2016; Santoro et al., 2017), enabling it to factor interactions between object-pairs, learn efficiently, and generalize to visual scenes with a varying number of objects without re-training.
|
| 31 |
+
|
| 32 |
+
# 2 METHOD
|
| 33 |
+
|
| 34 |
+
Our goal is to learn common-sense physical reasoning in a purely unsupervised fashion directly from visual observations. We have argued that in order to solve this problem we need to exploit the compositional structure of a visual scene. Conventional unsupervised representation learning approaches (eg. VAEs Kingma & Welling (2013); GANs Goodfellow et al. (2014)) learn a single distributed representation that superimposes information about the input, without imposing any structure regarding objects or other low-level primitives. These monolithic representations can not factorize physical interactions between pairs of objects and therefore lack an essential inductive bias to learn these efficiently. Hence, we require an alternative approach that can discover objects representations as primitives of a visual scene in an unsupervised fashion.
|
| 35 |
+
|
| 36 |
+
One such approach is Neural Expectation Maximization (N-EM; Greff et al. (2017)), which learns a separate distributed representation for each object described in terms of the same features through an iterative process of perceptual grouping and representation learning. The compositional nature of these representations enable us to formulate Relational N-EM (R-NEM): a novel unsupervised approach to common-sense physical reasoning that combines N-EM (Section 2.1) with an interaction function that models relations between objects efficiently (Section 2.2).
|
| 37 |
+
|
| 38 |
+
# 2.1 NEURAL EXPECTATION MAXIMIZATION
|
| 39 |
+
|
| 40 |
+
Neural Expectation Maximization (N-EM; Greff et al. (2017)) is a differentiable clustering method that learns a representation of a visual scene composed of primitive object representations. These representations adhere to many useful properties of a symbolic representation of objects, and can therefore be used as primitives of a compositional system (Hummel et al., 2004). They are described in the same format and each contain only information about the object in the visual scene that they correspond to. Together, they form a representation of a visual scene composed of objects that is learned in an unsupervised way, which therefore serves as a starting point for our approach.
|
| 41 |
+
|
| 42 |
+
The goal of N-EM is to group pixels in the input that belong to the same object (perceptual grouping) and capture this information efficiently in a distributed representation $\pmb { \theta } _ { k }$ for each object. At a high-level, the idea is that if we were to have access to the family of distributions $\bar { P } ( \boldsymbol { x } | \boldsymbol { \theta } _ { k } )$ (a statistical model of images given object representations $\theta _ { k }$ ) then we can formalize our objective as inference in a mixture of these distributions. By using Expectation Maximization (EM; Dempster et al., 1977) to compute a Maximum Likelihood Estimate (MLE) of the parameters of this mixture $( \pmb \theta _ { 1 } , \dots , \pmb \theta _ { K } )$ , we obtain a grouping (clustering) of the pixels to each object (component) and their corresponding representation. In reality we do not have access to $P ( \pmb { x } | \pmb { \theta } _ { k } )$ , which N-EM learns instead by parameterizing the mixture with a neural network and back-propagating through the iterations of the unrolled generalized EM procedure.
|
| 43 |
+
|
| 44 |
+
Following Greff et al. (2017), we model each image $\pmb { x } \in \mathbb { R } ^ { D }$ as a spatial mixture of $K$ components parameterized by vectors $\pmb { \theta } _ { 1 } , \dots , \pmb { \theta } _ { K } \in \mathbb { R } ^ { M }$ . A neural network $f _ { \phi }$ is used to transform these representations $\pmb { \theta } _ { k }$ into parameters $\psi _ { i , k } = f _ { \phi } ( \pmb { \theta } _ { k } ) _ { i }$ for separate pixel-wise distributions. A set of binary latent variables $\mathcal { Z } \in [ 0 , 1 ] ^ { D \times K }$ encodes the unknown true pixel assignments, such that $z _ { i , k } = 1$ iff pixel $i$ was generated by component $k$ . The full likelihood for $_ { \textbf { \em x } }$ given $\pmb \theta = ( \pmb \theta _ { 1 } , \dots , \pmb \theta _ { K } )$
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 1: Illustration of the different computational aspects of R-NEM when applied to a sequence of images of bouncing balls. Note that $\gamma , \psi$ at the Representations level correspond to the $\gamma$ ( $E$ -step), $\psi$ (Group Reconstructions) from the previous time-step. Different colors correspond to different cluster components (object representations).The right side shows a computational overview of $\mathrm { \Upsilon ^ { \mathrm { R - N E M } } }$ , a function that computes the pair-wise interactions between the object representations.
|
| 48 |
+
|
| 49 |
+
is given by:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
P ( \mathbf { x } | \theta ) = \prod _ { i = 1 } ^ { D } \sum _ { z _ { i } } P ( x _ { i } , z _ { i } | \psi _ { i } ) = \prod _ { i = 1 } ^ { D } \sum _ { k = 1 } ^ { K } P ( z _ { i , k } = 1 ) P ( x _ { i } | \psi _ { i , k } , z _ { i , k } = 1 ) .
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
If $f _ { \phi }$ has learned a statistical model of images given object representations $\pmb { \theta } _ { k }$ , then we can compute the object representations for a given image $_ { \textbf { \em x } }$ by maximizing $P ( { \pmb x } | \pmb \theta )$ . Marginalization over $_ { z }$ complicates this process, thus we use generalized EM to maximize the following lowerbound instead:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\mathcal { Q } ( \pmb { \theta } , \pmb { \theta } ^ { \mathrm { o l d } } ) = \sum _ { \mathbf { z } } P ( \mathbf { z } | \pmb { x } , \psi ^ { \mathrm { o l d } } ) \log P ( \pmb { x } , \mathbf { z } | \psi ) .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Each iteration of generalized EM consists of two steps: the $E$ -step computes a new estimate of the posterior probability distribution over the latent variables $\gamma _ { i , k } : = P ( z _ { i , k } = 1 | x _ { i } , \psi _ { i } ^ { \mathrm { o l d } } )$ given $\pmb { \theta } ^ { \mathrm { o l d } }$ from the previous iteration. It yields a new soft-assignment of the pixels to the components (clusters), based on how accurately they model $_ { \textbf { \em x } }$ . The generalized $M .$ -step updates $\pmb { \theta } ^ { \mathrm { o l d } }$ by taking a gradient ascent step on (2), using the previously computed soft-assignments: $\pmb { \theta } _ { k } ^ { \mathrm { n e w } } = \pmb { \theta } _ { k } ^ { \mathrm { o l d } } + \eta \cdot \bar { \partial \mathcal { Q } } / \bar { \partial } \pmb { \theta } _ { k }$ .1
|
| 62 |
+
|
| 63 |
+
The unrolled computational graph of the generalized EM steps is differentiable, which provides a means to train $f _ { \phi }$ to implement a statistical model of images given object representations. Using back-propagation through time (eg. Werbos (1988); Williams (1989)) we train $f _ { \phi }$ to minimize the following loss:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
L ( \pmb { x } ) = - \sum _ { i = 1 } ^ { D } \sum _ { k = 1 } ^ { K } \underbrace { \gamma _ { i , k } \log P ( x _ { i } , z _ { i , k } | \psi _ { i , k } ) } _ { \mathrm { i n t r a - l u s t e r ~ l o s s } } - \underbrace { ( 1 - \gamma _ { i , k } ) D _ { K L } [ P ( x _ { i } ) | | P ( x _ { i } | \psi _ { i , k } , z _ { i , k } ) ] } _ { \mathrm { i n t e r - c l u s t e r ~ l o s s } } .
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
The intra-cluster term is identical to (2), which credits each component for accurately representing pixels that have been assigned to it. The inter-cluster term ensures that each representation only captures the information about the pixels that have been assigned to it.
|
| 70 |
+
|
| 71 |
+
A more powerful variant of N-EM can be obtained (RNN-EM) by substituting the generalized M-step with a recurrent neural network having hidden state $\pmb { \theta } _ { k }$ . In this case, the entirety of $f _ { \phi }$ consists of a recurrent encoder-decoder architecture that receives $\gamma _ { k } ( \pmb { x } - \pmb { \psi } _ { k } )$ as input at each step.
|
| 72 |
+
|
| 73 |
+
The learning objective in (3) is prone to trivial solutions in case of overcapacity, which could prevent the network from modelling the statistical regularities in the data that correspond to objects. By adding noise to the input image or reducing $\pmb \theta$ in dimensionality we can guide learning to avert this. Moreover, in the case of RNN-EM one can evaluate (3) at the following time-step (predictive coding) to encourage learning of object representations and their corresponding dynamics. One intuitive interpretation of using denoising or next-step prediction as part of the training objective is to guide the network to learn about essential properties of objects, in this case those that correspond to the Gestalt Principles of prägnanz and common fate (Hatfield & Epstein, 1985).
|
| 74 |
+
|
| 75 |
+
# 2.2 RELATIONAL NEURAL EXPECTATION MAXIMIZATION
|
| 76 |
+
|
| 77 |
+
RNN-EM (unlike N-EM) is able to capture the dynamics of individual objects through a parametrized recurrent connection that operates on the object representation $\theta _ { k }$ across consecutive time-steps. However, the relations and interactions that take place between objects can not be captured in this way. In order to overcome this shortcoming we propose Relational $N .$ -EM (R-NEM), which adds relational structure to the recurrence to model interactions between objects without violating key properties of the learned object representations.
|
| 78 |
+
|
| 79 |
+
Consider a generalized form of the standard RNN-EM dynamics equation, which computes the object representation $\pmb { \theta } _ { k }$ at time $t$ as a function of all object representations $\pmb \theta : = [ \pmb \theta _ { 1 } , \dots , \pmb \theta _ { K } ]$ at the previous time-step through an interaction function $\Upsilon$ :
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\pmb { \theta } _ { k } ^ { ( t ) } = \mathrm { R N N } ( \tilde { \pmb { x } } ^ { ( t ) } , \Upsilon _ { k } ( \pmb { \theta } ^ { ( t - 1 ) } ) ) : = \sigma ( \pmb { W } \cdot \tilde { \pmb { x } } ^ { ( t ) } + \pmb { R } \cdot \Upsilon _ { k } ( \pmb { \theta } ^ { ( t - 1 ) } ) ) .
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
Here $W , R$ are weight matrices, $\sigma$ is the sigmoid activation function, and $\tilde { \mathbf { \mathbf { x } } } ^ { ( t ) }$ is the input to the recurrent model at time $t$ (possibly transformed by an encoder). When $\Upsilon _ { k } ^ { \mathrm { R N N - E M } } ( \pmb { \theta } ) : = \pmb { \theta } _ { k }$ , this dynamics model coincides with a standard RNN update rule, thereby recovering the original RNN-EM formulation.
|
| 86 |
+
|
| 87 |
+
The inductive bias incorporated in $\Upsilon$ reflects the modeling assumptions about the interactions between objects in the environment, and therefore the nature of $\pmb { \theta } _ { k }$ ’s interdependence. If $\Upsilon$ incorporates the assumption that no interaction takes place between objects, then the $\pmb { \theta } _ { k }$ ’s are fully independent and we recover $\Upsilon ^ { \mathrm { R N N - E M } }$ . On the other hand, if we do assume that interactions among objects take place, but assume very little about the structure of the interdependence between the $\pmb { \theta } _ { k }$ ’s, then we forfeit useful properties of $\pmb { \theta } _ { k }$ such as compositionality. For example, if $\Upsilon : = \mathrm { M L P } ( \theta )$ we can no longer extrapolate learned knowledge to environments with more or fewer than $K$ objects and lose overall data efficiency (Santoro et al., 2017). Instead, we can make efficient use of compositionality among the learned object representations $\theta _ { k }$ to incorporate general but guiding constraints on how these may influence one another (Battaglia et al., 2016; Chang et al., 2016). In doing so we constrain $\Upsilon$ to capture interdependence between $\pmb { \theta } _ { k }$ ’s in a compositional manner that enables physical dynamics to be learned efficiently, and allow for learned dynamics to be extrapolated to a variable number of objects.
|
| 88 |
+
|
| 89 |
+
We propose a parametrized interaction function $\mathrm { \Upsilon ^ { \mathrm { R - N E M } } }$ that incorporates these modeling assumptions and updates $\pmb { \theta } _ { k }$ based on the pairwise effects of the objects $i \neq k$ on $k$ :
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\begin{array} { l } { { \Upsilon _ { k } ^ { \mathrm { R - N E M } } ( \theta ) = [ \hat { \theta } _ { k } ; E _ { k } ] \mathrm { w i t h } \hat { \theta } _ { k } = \mathrm { M L P } ^ { e n c } ( \theta _ { k } ) , E _ { k } = \displaystyle \sum _ { i \neq k } \alpha _ { k , i } \cdot e _ { k , i } } } \\ { { \alpha _ { k , i } = \mathrm { M L P } ^ { a t t } ( \xi _ { k , i } ) , e _ { k , i } = \mathrm { M L P } ^ { e f f } ( \xi _ { k , i } ) , \xi _ { k , i } = \mathrm { M L P } ^ { e m b } ( [ \hat { \theta } _ { k } ; \hat { \theta } _ { i } ] ) } } \end{array}
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
where $[ \cdot ; \cdot ]$ is the concatenation operator and $\mathbf { M L P ^ { ( \cdot ) } }$ corresponds to a multi-layer perceptron. First, each $\theta _ { i }$ is transformed using ${ \bf M L P } ^ { e n c }$ to obtain $\hat { \theta } _ { i }$ , which enables information that is relevant for the object dynamics to be made more explicit in the representation. Next, each pair $( \hat { \theta } _ { k } , \hat { \theta } _ { i } )$ is concatenated and processed by ${ \bf M L P } ^ { e m b }$ , which computes a shared embedding $\xi _ { k , i }$ that encodes the interaction between object $k$ and object $i$ . Notice that we opt for a clear separation between the focus object $k$ and the context object $i$ as in previous work (Chang et al., 2016). From $\xi _ { k , i }$ we compute ${ e } _ { k , i }$ : the effect of object $i$ on object $k$ ; and an attention coefficient $\alpha _ { k , i }$ that encodes whether interaction between object $i$ and object $k$ takes place. These attention coefficients (Bahdanau et al., 2014; Xu et al., 2015) help to select relevant context objects, and can be seen as a more flexible unsupervised replacement of the distance based heuristic that was used in previous work (Chang et al., 2016). Finally, we compute the total effect of $\theta _ { i \neq k }$ on $\pmb { \theta } _ { k }$ as a weighted sum of the effects multiplied by their attention coefficient. A visual overview of $\mathrm { \Upsilon ^ { \mathrm { R - N E M } } }$ can be seen on the right side of Figure 1.
|
| 96 |
+
|
| 97 |
+
# 3 RELATED WORK
|
| 98 |
+
|
| 99 |
+
Machine learning approaches to common-sense physical reasoning can roughly be divided in two groups: symbolic approaches and approaches that perform state-to-state prediction. The former group performs inference over the parameters of a symbolic physics engine (Battaglia et al., 2013; Ullman et al., 2017; Wu et al., 2015), which restricts them to synthetic environments. The latter group employs machine learning methods to make state-to-state predictions, often describing the state of a system as a set of compact object-descriptions that are either used as an input to the system (Battaglia et al., 2016; Chang et al., 2016; Fragkiadaki et al., 2015; Grzeszczuk et al., 1998) or for training purposes (Watters et al., 2017). By incorporating information (eg. position, velocity) about objects these methods have achieved excellent generalization and simulation capabilities. Purely unsupervised approaches for state-to-state prediction (Agrawal et al., 2016; Lerer et al., 2016; Michalski et al., 2014; Sutskever et al., 2009) that use raw visual inputs as state-descriptions have yet to rival these capabilities. Our method is a purely unsupervised state-to-state prediction method that operates in pixel space, taking a first step towards unsupervised learning of common-sense reasoning in real-world environments.
|
| 100 |
+
|
| 101 |
+
The proposed interaction function $\mathrm { \Upsilon ^ { \mathrm { { K } - N E M } } }$ can be seen as a type of Message Passing Neural Network (MPNN; Gilmer et al. (2017)) that incorporates a variant of neighborhood attention (Duan et al., 2017). In light of other recent work (Zaheer et al., 2017) it can be seen as a permutation equivariant set function.
|
| 102 |
+
|
| 103 |
+
R-NEM relies on N-EM (Greff et al., 2017) to discover a compositional object representation from raw visual inputs. A closely related approach to N-EM is the TAG framework (Greff et al., 2016), which utilizes a similar mechanism to perform inference over group representations, but in addition performs inference over the group assignments. In recent work TAG was combined with a recurrent ladder network (Ilin et al., 2017) to obtain a powerful model (RTagger) that can be applied to sequential data. However, the lack of a single compact representation that captures all information about a group (object) makes a compositional treatment of physical interactions more difficult. Other unsupervised approaches rely on attention to group together parts of the visual scene corresponding to objects (Eslami et al., 2016; Gregor et al., 2015). These approaches suffer from a similar problem in that their sequential nature prevents a coherent object representation to take shape.
|
| 104 |
+
|
| 105 |
+
Other related work have also taken steps towards combining the learnability of neural networks with the compositionality of symbolic programs in modeling physics (Battaglia et al., 2016; Chang et al., 2016), playing games (Denil et al., 2017; Kansky et al., 2017), learning algorithms (Bošnjak et al., 2017; Cai et al., 2017; Li et al., 2016; Reed & De Freitas, 2015), visual understanding (Ellis et al., 2017; Johnson et al., 2017), and natural language processing (Andreas et al., 2016; Hu et al., 2017).
|
| 106 |
+
|
| 107 |
+
# 4 EXPERIMENTS
|
| 108 |
+
|
| 109 |
+
In this section we evaluate R-NEM on three different physical reasoning tasks that each vary in their dynamical and visual complexity: bouncing balls with variable mass, bouncing balls with an invisible curtain and the Arcade Learning Environment (Bellemare et al., 2013). We compare R-NEM to other unsupervised neural methods that do not incorporate any inductive biases reflecting real-world dynamics and show that these are indeed beneficial.2
|
| 110 |
+
|
| 111 |
+
All experiments use ADAM (Kingma & Ba, 2014) with default parameters, on 50K train $+ ~ 1 0 \mathrm { K }$ validation $+ \ 1 0 \mathrm { K }$ test sequences and early stopping with a patience of 10 epochs. For each of $\mathbf { M L P } ^ { e n c , e m b , e f f }$ we used a unique single layer neural network with 250 rectified linear units. For $\mathbf { M L P } ^ { a t t }$ we used a two-layer neural network: 100 tanh units followed by a single sigmoid unit. A detailed overview of the experimental setup can be found in Appendix A.
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
Figure 2: R-NEM applied to a sequence of 4 bouncing balls. Each column corresponds to a time-step, which coincides with an EM step. At each time-step, R-NEM computes $K = 5$ new representations $\pmb { \theta } _ { k }$ according to (4) (see also Representations in Figure 1) from the input $_ { \textbf { \em x } }$ with added noise (bottom row). From each new $\pmb { \theta } _ { k }$ a group reconstruction $\psi _ { k }$ is produced (rows 2-6 from bottom) that predicts the state of the environment at the next time-step. Attention coefficients are visualized by overlaying a colored reconstruction of a context object on the white reconstruction of the focus object (see Attention in Section 4). Based on the prediction accuracy of $\psi$ , the $E$ -step (see Figure 1) computes new soft-assignments $\gamma$ (row 7 from bottom), visualized by coloring each pixel $i$ according to their distribution over components $\gamma _ { i }$ . Row 8 visualizes the total prediction by the network $( \sum _ { k } \psi _ { k } \cdot \gamma _ { k } )$ and row 9 the ground-truth sequence at the next time-step.
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 3: Performance of each method on the bouncing balls task. Each method was trained on a dataset with 4 balls, evaluated on a test set with 4 balls (left), and on a test-set with 6-8 balls (middle). The losses are reported relative to the loss of a baseline for each dataset that always predicts the current frame. The ARI score (right) is used to evaluate the degree of compositionality that is achieved.
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 4: Left: Three sequences of 15 time-steps ground-truth (top), R-NEM (middle), RNN (bottom). The last ten time-steps of the sequences produced by R-NEM and RNN are simulated. Right: The BCE loss on the entire test-set for these same time-steps.
|
| 121 |
+
|
| 122 |
+
Bouncing Balls We study the physical reasoning capabilities of R-NEM on the bouncing balls task, a standard environment to evaluate physical reasoning capabilities that exhibits low visual complexity and complex non-linear physical dynamics.3 We train R-NEM on sequences of $6 4 \times 6 4$ binary images over 30 time-steps that contain four bouncing balls with different masses corresponding to their radii. The balls are initialized with random initial positions, masses and velocities. Balls bounce elastically against each other and the image window.
|
| 123 |
+
|
| 124 |
+
Qualitative Evaluation Figure 1 presents a qualitative evaluation of R-NEM on the bouncing balls task. After 10 time-steps it can be observed that the pixels that belong to each of the balls are grouped together and assigned to a unique component (with a saturated color); and that the background (colored grey) has been divided among all components (resulting in a grey coloring). This indicates that the representation $\pmb { \theta } _ { k }$ from which each component produces the group reconstruction $\psi _ { k }$ does indeed only contain information about a unique object, such that together the $\pmb { \theta } _ { k }$ ’s yield a compositional object representation of the scene. The total reconstruction (that combines the group reconstructions and the soft-assignments) displays an accurate reconstruction of the input sequence at the next time-step, indicating that R-NEM has learned to model the dynamics of bouncing balls.
|
| 125 |
+
|
| 126 |
+
Comparison We compare the modelling capabilities of R-NEM to an RNN, LSTM (Gers et al., 1999; Hochreiter & Schmidhuber, 1997) and RNN-EM in terms of the Binomial Cross-Entropy (BCE) loss between the predicted image and the ground-truth image of the last frame,4 as well as the relational BCE that only takes into account objects that currently take part in collision. Unless specified we use $K = 5$ .
|
| 127 |
+
|
| 128 |
+
On a test-set with sequences containing four balls we observe that R-NEM produces markedly lower losses when compared to all other methods (left plot in Figure 3). Moreover, in order to validate that each component captures only a single ball (and thus compositionality is achieved), we report the Adjusted Rand Index (ARI; Hubert $\&$ Arabie (1985)) score between the soft-assignments $\gamma$ and the ground-truth assignment of pixels to objects. In the left column of the ARI plot (right side in Figure 3) we find that R-NEM achieves an ARI score of 0.8, meaning that in roughly $8 0 \%$ of the cases each ball is modeled by a single component. This suggests that a compositional object representation is achieved for most of the sequences. Together these observations are in line with our qualitative evaluation and validate that incorporating real world priors is greatly beneficial (comparing to RNN, LSTM) and that $\mathrm { \Upsilon ^ { \mathrm { { K - N E M } } } }$ enables interactions to be modelled more accurately compared to RNN-EM in terms of the relational BCE.
|
| 129 |
+
|
| 130 |
+
Similar to Greff et al. (2017) we find that further increasing the number of components during training (leaving additional groups empty) increases the quality of the grouping, see R-NEM $K = 8$ in Figure 3. In addition we observe that the loss (in particular the relational BCE) is reduced further, which matches our hypothesis that compositional object representations are greatly beneficial for modelling physical interactions.
|
| 131 |
+
|
| 132 |
+
Extrapolating learned knowledge We use a test-set with sequences containing 6-8 balls to evaluate the ability of each method to extrapolate their learned knowledge about physical interactions between four balls to environments with more balls. We use $K = 8$ when evaluating R-NEM and
|
| 133 |
+
|
| 134 |
+
RNN-EM on this test-set in order to accommodate the increased number of objects. As can be seen from the middle plot in Figure 3, R-NEM again greatly outperforms all other methods. Notice that, since we report the loss relative to a baseline, we roughly factor out the increased complexity of the task. Perfect extrapolation of the learned knowledge would therefore amount to no change in relative performance. In contrast, we observe far worse performance for the LSTM (relative to the baseline) when evaluated on this dataset with extra balls. It suggests that the gating mechanism of the LSTM has allowed it to learn a sophisticated and overly specialized solution for sequences with four balls that does not generalize to a dataset with 6-8 balls.
|
| 135 |
+
|
| 136 |
+
R-NEM and RNN-EM scale markedly better to this dataset than LSTM. Although the RNN similarly suffers to a lesser extend from this type of “overfitting”, this is most likely due its inability to learn a reasonable solution on sequences of four balls to begin with. Hence, we conclude that the superior extrapolation capabilities of RNN-EM and R-NEM are inherent to their ability to factor a scene in terms of permutation invariant object representations (see right side of the right plot in Figure 3).
|
| 137 |
+
|
| 138 |
+
Attention Further insight in the role of the attention mechanism can be gained by visualizing the attention coefficients, as is done in Figure 2. For each component $k$ we draw $\alpha _ { k , i } * \psi _ { i }$ on top of the reconstruction $\psi _ { k }$ , colored according to the color of component $i$ . These correspond to the colored balls (that are for example seen in time-steps 13, 14), which indicate whether component $k$ took information about component $i$ into account when computing the new state (recall (5)). It can be observed that the attention coefficient $\alpha _ { k , i }$ becomes non-zero whenever collision takes place, such that a colored ball lights up in the following time-steps. The attention mechanism learned by R-NEM thus assumes the role of the distance-based heuristic in previous work (Chang et al., 2016), matching our own intuitions of how this mechanism would best be utilized.
|
| 139 |
+
|
| 140 |
+
A quantitative evaluation of the attention mechanism is obtained by comparing R-NEM to a variant of itself that does not incorporate attention ( $R$ -NEM no att). Figure 3 shows that both methods perform equally well on the regular test set (4 balls), but that $R$ -NEM no att performs worse at extrapolating from its learned knowledge (6-8 balls). A likely reason for this behavior is that the range of the sum in (5) changes with $K$ . Thus, when extrapolating to an environment with more balls the total sum may exceed previous boundaries and impede learned dynamics.
|
| 141 |
+
|
| 142 |
+
Simulation Once a scene has been accurately modelled, R-NEM can approximately simulate its dynamics through recursive application of (4) for each $\pmb { \theta } _ { k }$ .5 In Figure 4 we compare the simulation capabilities of R-NEM to RNN-EM and an RNN on the bouncing balls environment.3 On the left it shows for R-NEM and an RNN a sequence with five normal steps followed by 10 simulation steps, as well as the ground-truth sequence. From the last frame in the sequence it can clearly be observed that R-NEM has managed to accurately simulate the environment. Each ball is approximately in the correct place, and the shape of each ball is preserved. The balls simulated by the RNN, on the other hand, deviate substantially from their ground-truth position and their size has increased. In general we find that R-NEM produces mostly very accurate simulations, whereas the RNN consistently fails. Interestingly we found that the cases in which R-NEM frequently fails are those for which a single component models more than one ball. The right side of Figure 4 summarizes the BCE loss for these same time-steps across the entire test-set. Although this is a crude measure of simulation performance (since it does not take into account the identity of the balls), we still observe that R-NEM consistently outperforms RNN-EM and an RNN.
|
| 143 |
+
|
| 144 |
+
Hidden Factors Occlusion is abundant in the real world, and the ability to handle hidden factors is crucial for any physical reasoning system. We therefore evaluate the capability of R-NEM to handle occlusion using a variant of bouncing balls that contain an invisible “curtain.” Figure 5 shows that R-NEM accurately models the sequence and can maintain object states, even when confronted with occlusion.3 For example, note that in step 36 the “blue” ball, is completely occluded and is about to collide with the “orange” ball. In step 38 the ball is accurately predicted to re-appear at the bottom of the curtain (since collision took place) as opposed to the left side of the curtain. This demonstrates that R-NEM has a notion of object permanence and implies that it understands a scene on a level beyond pixels: it assigns persistence and identity to the objects.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 5: R-NEM applied to a sequence of bouncing balls with an invisible curtain. The ground truth sequence is displayed in the top row, followed by the prediction of R-NEM (middle) and the soft-assignments of pixels to components (bottom). R-NEM models objects, as well as its interactions, even when the object is completely occluded (step 36). Only a subset of the steps is shown.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 6: R-NEM accurately models a sequence of frames obtained by an agent playing Space Invaders. A group no longer corresponds to an object, but instead assumes the role of high-level entities that engage in similar movement patterns.
|
| 151 |
+
|
| 152 |
+
In terms of test-set performance we find that R-NEM (BCE: 46.22, relational BCE: 2.33) outperforms an RNN (BCE: 94.64, relational BCE: 4.14) and an LSTM (BCE: 59.32, relational BCE: 2.72).
|
| 153 |
+
|
| 154 |
+
Space Invaders To test the performance of R-NEM in a visually more challenging environment, we train it on sequences of $8 4 \times 8 4$ binarized images over 25 time-steps of game-play on Space Invaders from the Arcade Learning Environment (Bellemare et al., 2013).6 We use $K = 4$ and also feed the action of the agent to the interaction function. Figure 6 confirms that R-NEM is able to accurately model the environment, even though the visual complexity has increased. Notice that these visual scenes comprise a large numbers of (small) primitive objects that behave similarly. Since we trained R-NEM with four components it is unable to group pixels according to individual objects and is forced to consider a different grouping. We find that R-NEM assigns different groups to every other column of aliens together with the spaceship, and to the three large “shields.” These groupings seem to be based on movement, which to some degree coincides with their semantic roles of the environment. In other examples (not shown) we also found that R-NEM frequently assigns different groups to every other column of the aliens, and to the three large “shields.” Individual bullets and the space ship are less frequently grouped separately, which may have to do with the action-noise of the environment (that controls the movement of the space-ship) and the small size of the bullets at the current resolution that makes them less predictable.
|
| 155 |
+
|
| 156 |
+
# 5 DISCUSSION AND CONCLUSION
|
| 157 |
+
|
| 158 |
+
We have argued that the ability to discover and describe a scene in terms of objects provides an essential ingredient for common-sense physical reasoning. This is supported by converging evidence from cognitive science and developmental psychology that intuitive physics and reasoning capabilities are built upon the ability to perceive objects and their interactions (Spelke, 1988; Ullman et al., 2017). The fact that young infants already exhibit this ability, may even suggest an innate bias towards compositionality (Lake et al., 2016; Munakata et al., 1997; Spelke & Kinzler, 2007). Inspired by these observations we have proposed R-NEM, a method that incorporates inductive biases about the existence of objects and interactions, implemented by its clustering objective and interaction function respectively. The specific nature of the objects, and their dynamics and interactions can then be learned efficiently purely from visual observations.
|
| 159 |
+
|
| 160 |
+
In our experiments we find that R-NEM indeed captures the (physical) dynamics of various environments more accurately than other methods, and that it exhibits improved generalization to environments with different numbers of objects. It can be used as an approximate simulator of the environment, and to predict movement and collisions of objects, even when they are completely occluded. This demonstrates a notion of object permanence and aligns with evidence that young infants seem to infer that occluded objects move in connected paths and continue to maintain objectspecific properties (Spelke, 1990). Moreover, young infants also appear to expect that objects only interact when they come into contact (Spelke, 1990), which is analogous to the behaviour of R-NEM to only attend to other objects when a collision is imminent. In summary, we believe that our method presents an important step towards learning a more human-like model of the world in a completely unsupervised fashion.
|
| 161 |
+
|
| 162 |
+
Current limitations of our approach revolve around grouping and prediction. What aspects of a scene humans group together typically varies as a function of the task in mind. One may perceive a stack of chairs as a whole if the goal is to move them to another room, or as individual chairs if the goal is to count the number of chairs in the stack. In order to facilitate this dynamic grouping one would need to incorporate top-down feedback from an agent into the grouping procedure to deviate from the built-in inductive biases. Another limitation of our approach is the need to incentivize R-NEM to produce useful groupings by injecting noise, or reducing capacity. The former may prevent very small regularities in the input from being detected. Finally the interaction in the E-step among the groups makes it difficult to increase the number of components above ten without causing harmful training instabilities. Due to the multitude of interactions and objectives in R-NEM (and RNN-EM) we find that they are sometimes challenging to train.
|
| 163 |
+
|
| 164 |
+
In terms of prediction we have implicitly assumed that objects in the environment behave according to rules that can be inferred. This poses a challenge when objects deform in a manner that is difficult to predict (as is the case for objects in Space Invaders due to downsampling). However in practice we find that (once pixels have been grouped together) the masking of the input helps each component in quickly adapting its representation to any unforeseen behaviour across consecutive time steps. Perhaps a more severe limitation of R-NEM (and of RNN-EM in general) is that the second loss term of the outer training objective hinders in modelling more complex varying backgrounds, as the background group would have to predict the “pixel prior” for every other group.
|
| 165 |
+
|
| 166 |
+
We argue that the ability to engage in common-sense physical reasoning benefits any intelligent agent that needs to operate in a physical environment, which provides exciting future research opportunities. In future work we intend to investigate how top-down feedback from an agent could be incorporated in R-NEM to facilitate dynamic groupings, but also how the compositional representations produced by R-NEM can benefit a reinforcement learner, for example to learn a modular policy that easily generalizes to novel combinations of known objects. Other interactions between a controller C and a model of the world M (implemented by R-NEM) as posed in Schmidhuber (2015) constitute further research directions.
|
| 167 |
+
|
| 168 |
+
# ACKNOWLEDGEMENTS
|
| 169 |
+
|
| 170 |
+
The authors wish to thank Tom Griffiths and the anonymous reviewers for helpful comments and constructive feedback. This research was supported by the Swiss National Science Foundation grant 200021_165675/1, the EU project “INPUT” (H2020-ICT-2015 grant no. 687795), and the Zeno Karl Schindler Foundation Summerschool Grant. Chang would like to thank Christiane Born, Sarah Craver, Cinzia Daldini, and the MIT MISTI Program for supporting his stay in Switzerland. We are grateful to NVIDIA Corporation for donating us a DGX-1 as part of the Pioneers of AI Research award, and to IBM for donating a “Minsky” machine.
|
| 171 |
+
|
| 172 |
+
# REFERENCES
|
| 173 |
+
|
| 174 |
+
Pulkit Agrawal, Ashvin V Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. In Advances in Neural Information Processing Systems, pp. 5074–5082, 2016.
|
| 175 |
+
|
| 176 |
+
Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 39–48, 2016.
|
| 177 |
+
|
| 178 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
|
| 179 |
+
|
| 180 |
+
Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, and others. Interaction networks for learning about objects, relations and physics. In Advances in Neural Information Processing Systems, pp. 4502–4510, 2016.
|
| 181 |
+
|
| 182 |
+
Peter W Battaglia, Jessica B Hamrick, and Joshua B Tenenbaum. Simulation as an engine of physical scene understanding. Proceedings of the National Academy of Sciences, 110(45):18327–18332, 2013.
|
| 183 |
+
|
| 184 |
+
Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res.(JAIR), 47:253–279, 2013.
|
| 185 |
+
|
| 186 |
+
Matko Bošnjak, Tim Rocktäschel, Jason Naradowsky, and Sebastian Riedel. Programming with a differentiable forth interpreter. In Proceedings of the 34th International Conference on Machine Learning, pp. 547–556, 2017.
|
| 187 |
+
|
| 188 |
+
Jonathon Cai, Richard Shin, and Dawn Song. Making neural programming architectures generalize via recursion. arXiv preprint arXiv:1704.06611, 2017.
|
| 189 |
+
|
| 190 |
+
Michael B. Chang, Tomer Ullman, Antonio Torralba, and Joshua B. Tenenbaum. A compositional object-based approach to learning physical dynamics. arXiv preprint arXiv:1612.00341, 2016.
|
| 191 |
+
|
| 192 |
+
A. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm. Journal of the royal statistical society., pp. 1–38, 1977.
|
| 193 |
+
|
| 194 |
+
Misha Denil, Sergio Gómez Colmenarejo, Serkan Cabi, David Saxton, and Nando de Freitas. Programmable agents. arXiv preprint arXiv:1706.06383, 2017.
|
| 195 |
+
|
| 196 |
+
Yan Duan, Marcin Andrychowicz, Bradly Stadie, Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in Neural Information Processing Systems, pp. 1087–1098, 2017.
|
| 197 |
+
|
| 198 |
+
Kevin Ellis, Daniel Ritchie, Armando Solar-Lezama, and Joshua B. Tenenbaum. Learning to infer graphics programs from hand-drawn images. CoRR, abs/1707.09627, 2017.
|
| 199 |
+
|
| 200 |
+
SM Ali Eslami, Nicolas Heess, Theophane Weber, Yuval Tassa, David Szepesvari, Geoffrey E Hinton, et al. Attend, infer, repeat: Fast scene understanding with generative models. In Advances in Neural Information Processing Systems, pp. 3225–3233, 2016.
|
| 201 |
+
|
| 202 |
+
Katerina Fragkiadaki, Pulkit Agrawal, Sergey Levine, and Jitendra Malik. Learning visual predictive models of physics for playing billiards. arXiv preprint arXiv:1511.07404, 2015.
|
| 203 |
+
|
| 204 |
+
Felix A Gers, Jürgen Schmidhuber, and Fred Cummins. Learning to forget: Continual prediction with LSTM. In Artificial Neural Networks, 1999. ICANN 99. Ninth International Conference on (Conf. Publ. No. 470), volume 2, pp. 850–855, 1999.
|
| 205 |
+
|
| 206 |
+
Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017.
|
| 207 |
+
|
| 208 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 209 |
+
|
| 210 |
+
Klaus Greff, Antti Rasmus, Mathias Berglund, Tele Hao, Harri Valpola, and Juergen Schmidhuber. Tagger: Deep unsupervised perceptual grouping. In Advances in Neural Information Processing Systems, pp. 4484–4492, 2016.
|
| 211 |
+
|
| 212 |
+
Klaus Greff, Sjoerd van Steenkiste, and Jürgen Schmidhuber. Neural expectation maximization. In Advances in Neural Information Processing Systems, pp. 6694–6704, 2017.
|
| 213 |
+
|
| 214 |
+
Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015.
|
| 215 |
+
|
| 216 |
+
Radek Grzeszczuk, Demetri Terzopoulos, and Geoffrey Hinton. Neuroanimator: Fast neural network emulation and control of physics-based models. In Proceedings of the 25th annual conference on Computer graphics and interactive techniques, pp. 9–20. ACM, 1998.
|
| 217 |
+
|
| 218 |
+
Gary Hatfield and William Epstein. The status of the minimum principle in the theoretical analysis of visual perception. Psychological Bulletin, 97(2):155, 1985.
|
| 219 |
+
|
| 220 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
|
| 221 |
+
|
| 222 |
+
Ronghang Hu, Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Kate Saenko. Learning to reason: End-to-end module networks for visual question answering. arXiv preprint arXiv:1704.05526, 2017.
|
| 223 |
+
|
| 224 |
+
Lawrence Hubert and Phipps Arabie. Comparing partitions. Journal of classification, 2(1):193–218, 1985.
|
| 225 |
+
|
| 226 |
+
John E. Hummel, Keith J. Holyoak, Collin Green, Leonidas AA Doumas, Derek Devnich, Aniket Kittur, and Donald J. Kalar. A solution to the binding problem for compositional connectionism. In Compositional Connectionism in Cognitive Science: Papers from the AAAI Fall Symposium, Ed. SD Levy & R. Gayler, pp. 31–34, 2004.
|
| 227 |
+
|
| 228 |
+
Alexander Ilin, Isabeau Prémont-Schwarz, Tele Hotloo Hao, Antti Rasmus, Rinu Boney, and Harri Valpola. Recurrent Ladder Networks. arXiv:1707.09219 [cs, stat], July 2017.
|
| 229 |
+
|
| 230 |
+
Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Judy Hoffman, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Inferring and executing programs for visual reasoning. arXiv preprint arXiv:1705.03633, 2017.
|
| 231 |
+
|
| 232 |
+
Ken Kansky, Tom Silver, David A Mély, Mohamed Eldawy, Miguel Lázaro-Gredilla, Xinghua Lou, Nimrod Dorfman, Szymon Sidor, Scott Phoenix, and Dileep George. Schema networks: Zero-shot transfer with a generative causal model of intuitive physics. arXiv preprint arXiv:1706.04317, 2017.
|
| 233 |
+
|
| 234 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 235 |
+
|
| 236 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 237 |
+
|
| 238 |
+
Brenden M. Lake, Tomer D. Ullman, Joshua B. Tenenbaum, and Samuel J. Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, pp. 1–101, 2016.
|
| 239 |
+
|
| 240 |
+
Adam Lerer, Sam Gross, and Rob Fergus. Learning physical intuition of block towers by example. arXiv preprint arXiv:1603.01312, 2016.
|
| 241 |
+
|
| 242 |
+
Chengtao Li, Daniel Tarlow, Alexander L Gaunt, Marc Brockschmidt, and Nate Kushman. Neural program lattices. 2016.
|
| 243 |
+
|
| 244 |
+
Vincent Michalski, Roland Memisevic, and Kishore Konda. Modeling deep temporal dependencies with recurrent grammar cells"". In Advances in neural information processing systems, pp. 1925–1933, 2014.
|
| 245 |
+
|
| 246 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.
|
| 247 |
+
|
| 248 |
+
Yuko Munakata, James L McClelland, Mark H Johnson, and Robert S Siegler. Rethinking infant knowledge: toward an adaptive process account of successes and failures in object permanence tasks. Psychological review, 104(4):686, 1997.
|
| 249 |
+
|
| 250 |
+
Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and Checkerboard Artifacts. Distill, 2016. doi: 10.23915/distill.00003.
|
| 251 |
+
|
| 252 |
+
Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual Reasoning with a General Conditioning Layer. arXiv:1709.07871 [cs, stat], September 2017.
|
| 253 |
+
|
| 254 |
+
Scott Reed and Nando De Freitas. Neural programmer-interpreters. arXiv preprint arXiv:1511.06279, 2015.
|
| 255 |
+
|
| 256 |
+
Adam Santoro, David Raposo, David GT Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. arXiv preprint arXiv:1706.01427, 2017.
|
| 257 |
+
|
| 258 |
+
Jürgen Schmidhuber. On learning to think: Algorithmic information theory for novel combinations of reinforcement learning controllers and recurrent neural world models. arXiv preprint arXiv:1511.09249, 2015.
|
| 259 |
+
|
| 260 |
+
Elizabeth S Spelke. Where perceiving ends and thinking begins: The apprehension of objects in infancy. 1988.
|
| 261 |
+
|
| 262 |
+
Elizabeth S Spelke. Principles of object perception. Cognitive science, 14(1):29–56, 1990.
|
| 263 |
+
|
| 264 |
+
Elizabeth S. Spelke and Katherine D. Kinzler. Core knowledge. Developmental science, 10(1):89–96, 2007.
|
| 265 |
+
|
| 266 |
+
Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In International Conference on Machine Learning, pp. 843–852, 2015.
|
| 267 |
+
|
| 268 |
+
Ilya Sutskever, Geoffrey E. Hinton, and Graham W. Taylor. The recurrent temporal restricted boltzmann machine. In Advances in Neural Information Processing Systems, pp. 1601–1608, 2009.
|
| 269 |
+
|
| 270 |
+
Tomer D Ullman, Elizabeth Spelke, Peter Battaglia, and Joshua B Tenenbaum. Mind games: Game engines as an architecture for intuitive physics. Trends in Cognitive Sciences, 21(9):649–665, 2017.
|
| 271 |
+
|
| 272 |
+
Nicholas Watters, Andrea Tacchetti, Theophane Weber, Razvan Pascanu, Peter Battaglia, and Daniel Zoran. Visual Interaction Networks. arXiv:1706.01433 [cs], June 2017.
|
| 273 |
+
|
| 274 |
+
Paul J Werbos. Generalization of backpropagation with application to a recurrent gas market model. Neural networks, 1(4):339–356, 1988.
|
| 275 |
+
|
| 276 |
+
Ronald J Williams. Complexity of exact gradient computation algorithms for recurrent neural networks. Technical report, Technical Report Technical Report NU-CCS-89-27, Boston: Northeastern University, College of Computer Science, 1989.
|
| 277 |
+
|
| 278 |
+
Jiajun Wu, Ilker Yildirim, Joseph J Lim, Bill Freeman, and Josh Tenenbaum. Galileo: Perceiving physical object properties by integrating a physics engine with deep learning. In Advances in neural information processing systems, pp. 127–135, 2015.
|
| 279 |
+
|
| 280 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015.
|
| 281 |
+
|
| 282 |
+
Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in Neural Information Processing Systems, pp. 3394–3404, 2017.
|
| 283 |
+
|
| 284 |
+
# A EXPERIMENT DETAILS
|
| 285 |
+
|
| 286 |
+
In all experiments we train the networks using ADAM (Kingma & Ba, 2014) with default parameters, a batch size of 64 and $5 0 0 0 0 \mathrm { t r a i n } + 1 0 0 0 0$ validation $+ 1 0 0 0 0$ test inputs. The quality of the learned groupings is evaluated by computing the Adjusted Rand Index (ARI; Hubert & Arabie (1985)) with respect to the ground truth, while ignoring the background and overlap regions (as is consistent with earlier work (Greff et al., 2017)). We use early stopping when the validation loss has not improved for 10 epochs.
|
| 287 |
+
|
| 288 |
+
# A.1 BOUNCING BALLS
|
| 289 |
+
|
| 290 |
+
The bouncing balls data is similar to previous work (Sutskever et al., 2009) with a few modifications. The data consists of sequences of $6 4 \times 6 4$ binary images over 30 time-steps and balls are randomly sampled from two types: one ball is six times heavier and 1.25 times larger in radius than the other. The balls are initialized with random initial positions and velocities. Balls bounce elastically against each other and the image window.
|
| 291 |
+
|
| 292 |
+
As in previous work (Greff et al., 2017) we use a convolutional encoder-decoder architecture with a recurrent neural network as bottleneck, that is updated according to (4):
|
| 293 |
+
|
| 294 |
+
1. $4 \times 4$ conv. 16 ELU. stride 2. layer norm
|
| 295 |
+
2. $4 \times 4$ conv. 32 ELU. stride 2. layer norm
|
| 296 |
+
3. $4 \times 4$ conv. 64 ELU. stride 2. layer norm
|
| 297 |
+
4. fully connected. 512 ELU. layer norm
|
| 298 |
+
5. recurrent. 250 Sigmoid. layer norm on the output
|
| 299 |
+
6. fully connected. 512 RELU. layer norm
|
| 300 |
+
7. fully connected. $8 \times 8 \times 6 4$ RELU. layer norm
|
| 301 |
+
8. $4 \times 4$ reshape 2 nearest-neighbour, conv. 32 RELU. layer norm
|
| 302 |
+
9. $4 \times 4$ reshape 2 nearest-neighbour, conv. 16 RELU. layer norm
|
| 303 |
+
10. $4 \times 4$ reshape 2 nearest-neighbour, conv. 1 Sigmoid
|
| 304 |
+
|
| 305 |
+
Instead of using transposed convolutions (to implement the "de-convolution") we first reshape the image using the default nearest-neighbour interpolation followed by a normal convolution in order to avoid frequency artifacts (Odena et al., 2016). Note that we do not add layer norm on the recurrent connection.
|
| 306 |
+
|
| 307 |
+
At each timestep added bitflip nois $t$ $\gamma _ { : , k } ( \boldsymbol { \psi } _ { : , k } ^ { ( t - 1 ) } - \hat { { \mathbf x } } ^ { ( t ) } )$ as input to the network, where rlier work (Greff et al., 2017) R- $\tilde { \pmb x }$ is the input withM is trained with $\gamma = 0 . 2 )$
|
| 308 |
+
a next-step prediction objective, the prior for each pixel in the data is set to a Bernoulli distribution
|
| 309 |
+
with $p = 0$ , and we prevent conflicting gradient updates by not back-propagating any gradients
|
| 310 |
+
through $\gamma$ .
|
| 311 |
+
|
| 312 |
+
The Interaction Function $\mathbf { \hat { T } } ^ { \mathrm { R - N E M } }$ network is structured as follows:
|
| 313 |
+
|
| 314 |
+
• ${ \bf M L P } ^ { e n c }$ : fully connected. 250 RELU. layer norm
|
| 315 |
+
• ${ \bf M L P } ^ { e m b }$ : fully connected. 250 RELU. layer norm
|
| 316 |
+
• ${ \bf M L P } ^ { e f f }$ : fully connected. 250 RELU. layer norm
|
| 317 |
+
• ${ \bf M L P } ^ { a t t }$ : fully connected. 100 Tanh. layer norm - fully connected. 1 Sigmoid.
|
| 318 |
+
|
| 319 |
+
We experimented with deeper architectures, but were unable to observe significant improvement.
|
| 320 |
+
|
| 321 |
+
Comparison and Extrapolation In the comparison experiment both R-NEM and RNN-EM are trained with $K = 5$ (unless otherwise mentioned), following insights from Greff et al. (2017). On the extrapolation task we adjusted the number of components at test time to $K = 8$ .
|
| 322 |
+
|
| 323 |
+
When comparing to RNN-EM we used $\mathbf { Y } = \mathbf { Y } ^ { \mathrm { R N N - E M } }$ . For comparing to RNN we set $K = 1$ and used $\dot { \mathbf { Y } } = \bar { \mathbf { Y } } ^ { \mathrm { R N N - E M } }$ , yielding a standard recurrent autoencoder that receives at each time-step the difference between the prediction and the noisy ground-truth as input. In case of LSTM, we additionally replace the recurrent layer with an LSTM update. The R-NEM no att model is the same as R-NEM, without $\mathbf { M L P } ^ { a t t }$ , such that $\alpha _ { : , : } = 1$
|
| 324 |
+
|
| 325 |
+
Simulation Since the $\mathrm { E }$ -step relies on the ground-truth, which was not available for simulation, we used a thresholded version of $\operatorname* { m a x } _ { k } \psi$ at 0.1 (such that everything below becomes 0 and everything above becomes 1) as a replacement in stead.
|
| 326 |
+
|
| 327 |
+
Occlusion On the occlusion dataset we used three balls with equal mass. The curtain was spawned at a random location for each sequence. We trained R-NEM with $K = 5$ .
|
| 328 |
+
|
| 329 |
+
# A.2 SPACE INVADERS
|
| 330 |
+
|
| 331 |
+
We used a pre-trained DQN to produce a dataset with sequences of 25 time-steps. The DQN receives a stack of four frames as input and we recorded every first frame of this stack. These frames were first pre-processed as in Mnih et al. (2013) and then thresholded at 0.0001 to obtain binary images.
|
| 332 |
+
|
| 333 |
+
Since the images are $8 4 \times 8 4$ we used a different encoder and decoder, given by:
|
| 334 |
+
|
| 335 |
+
1. $4 \times 4$ conv. 16 ELU. stride 2. layer norm
|
| 336 |
+
2. $4 \times 4$ conv. 32 ELU. stride 2. layer norm
|
| 337 |
+
3. $4 \times 4$ conv. 32 ELU. stride 2. layer norm
|
| 338 |
+
4. $4 \times 4$ conv. 32 ELU. stride 2. layer norm
|
| 339 |
+
5. fully connected. 512 ELU. layer norm
|
| 340 |
+
6. recurrent. 250 Sigmoid. layer norm on the output
|
| 341 |
+
7. fully connected. 512 RELU. layer norm
|
| 342 |
+
8. fully connected. $8 \times 8 \times 6 4$ RELU. layer norm
|
| 343 |
+
9. $4 \times 4$ reshape 2 nearest-neighbour, conv. 32 RELU. layer norm
|
| 344 |
+
10. $4 \times 4$ reshape 2 nearest-neighbour, conv. 32 RELU. layer norm
|
| 345 |
+
11. $4 \times 4$ reshape 2 nearest-neighbour, conv. 16 RELU. layer norm
|
| 346 |
+
12. $4 \times 4$ reshape 2 nearest-neighbour, conv. 1 Sigmoid
|
| 347 |
+
|
| 348 |
+
We used the same architecture for $\Upsilon ^ { \mathrm { R - N E M } }$ , with the only difference that at each time-step we concatenated an embedding of the action produced by the agent to the hidden state. Here we used a single layer MLP with 10 units and a $R e L U$ activation function to compute this embedding.
|
| 349 |
+
|
| 350 |
+
In the Atari experiment we trained with $K = 4$ and reduced the input noise to 0.02, in order to preserve tiny elements such as bullets (that only occupy 1-2 pixels).
|
parse/train/ryH20GbRW/ryH20GbRW_content_list.json
ADDED
|
@@ -0,0 +1,1755 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "RELATIONAL NEURAL EXPECTATION MAXIMIZATION: UNSUPERVISED DISCOVERY OF OBJECTS AND THEIR INTERACTIONS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
826,
|
| 10 |
+
170
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Sjoerd van Steenkiste Swiss AI Lab IDSIA, SUPSI, USI Lugano, Switzerland sjoerd@idsia.ch ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
195,
|
| 20 |
+
410,
|
| 21 |
+
251
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Michael Chang \nUC Berkeley \nBerkeley, United States \nmbchang@berkeley.edu \nKlaus Greff \nSwiss AI Lab IDSIA, SUPSI, USI \nLugano, Switzerland \nklaus@idsia.ch ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
596,
|
| 30 |
+
195,
|
| 31 |
+
794,
|
| 32 |
+
251
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
272,
|
| 42 |
+
408,
|
| 43 |
+
327
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Jürgen Schmidhuber Swiss AI Lab IDSIA, SUPSI, USI Lugano, Switzerland juergen@idsia.ch ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
598,
|
| 52 |
+
272,
|
| 53 |
+
823,
|
| 54 |
+
328
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
364,
|
| 65 |
+
544,
|
| 66 |
+
380
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Common-sense physical reasoning is an essential ingredient for any intelligent agent operating in the real-world. For example, it can be used to simulate the environment, or to infer the state of parts of the world that are currently unobserved. In order to match real-world conditions this causal knowledge must be learned without access to supervised data. To address this problem we present a novel method that learns to discover objects and model their physical interactions from raw visual images in a purely unsupervised fashion. It incorporates prior knowledge about the compositional nature of human perception to factor interactions between object-pairs and learn efficiently. On videos of bouncing balls we show the superior modelling capabilities of our method compared to other unsupervised neural approaches that do not incorporate such prior knowledge. We demonstrate its ability to handle occlusion and show that it can extrapolate learned knowledge to scenes with different numbers of objects. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
397,
|
| 76 |
+
766,
|
| 77 |
+
577
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
178,
|
| 87 |
+
607,
|
| 88 |
+
336,
|
| 89 |
+
623
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Humans rely on common-sense physical reasoning to solve many everyday physics-related tasks (Lake et al., 2016). For example, it enables them to foresee the consequences of their actions (simulation), or to infer the state of parts of the world that are currently unobserved. This causal understanding is an essential ingredient for any intelligent agent that is to operate within the world. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
640,
|
| 99 |
+
825,
|
| 100 |
+
695
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Common-sense physical reasoning is facilitated by the discovery and representation of objects (a core domain of human cognition (Spelke & Kinzler, 2007)) that serve as primitives of a compositional system. They allow humans to decompose a complex visual scene into distinct parts, describe relations between them and reason about their dynamics as well as the consequences of their interactions (Battaglia et al., 2013; Lake et al., 2016; Ullman et al., 2017). ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
702,
|
| 110 |
+
825,
|
| 111 |
+
772
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The most successful machine learning approaches to common-sense physical reasoning incorporate such prior knowledge in their design. They maintain explicit object representations, which allow for general physical dynamics to be learned between object pairs in a compositional manner (Battaglia et al., 2016; Chang et al., 2016; Watters et al., 2017). However, in these approaches learning is supervised, as it relies on object-representations from external sources (e.g. a physics simulator) that are typically unavailable in real-world scenarios. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
780,
|
| 121 |
+
825,
|
| 122 |
+
863
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Neural approaches that learn to directly model motion or physical interactions in pixel space offer an alternative solution (Srivastava et al., 2015; Sutskever et al., 2009). However, while unsupervised, these methods suffer from a lack compositionality at the representational level of objects. This prevents such end-to-end neural approaches from efficiently learning functions that operate on multiple entities and generalize in a human-like way (c.f. Battaglia et al. (2013); Lake et al. (2016); Santoro et al. (2017), but see Perez et al. (2017)). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
178,
|
| 131 |
+
869,
|
| 132 |
+
823,
|
| 133 |
+
898
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
103,
|
| 143 |
+
825,
|
| 144 |
+
159
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In this work we propose Relational N-EM (R-NEM), a novel approach to common-sense physical reasoning that learns physical interactions between objects from raw visual images in a purely unsupervised fashion. At its core is Neural Expectation Maximization (N-EM; Greff et al., 2017), a method that allows for the discovery of compositional object-representations, yet is unable to model interactions between objects. Therefore, we endow N-EM with a relational mechanism inspired by previous work (Battaglia et al., 2016; Chang et al., 2016; Santoro et al., 2017), enabling it to factor interactions between object-pairs, learn efficiently, and generalize to visual scenes with a varying number of objects without re-training. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
166,
|
| 154 |
+
825,
|
| 155 |
+
279
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 METHOD ",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
176,
|
| 165 |
+
303,
|
| 166 |
+
281,
|
| 167 |
+
319
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Our goal is to learn common-sense physical reasoning in a purely unsupervised fashion directly from visual observations. We have argued that in order to solve this problem we need to exploit the compositional structure of a visual scene. Conventional unsupervised representation learning approaches (eg. VAEs Kingma & Welling (2013); GANs Goodfellow et al. (2014)) learn a single distributed representation that superimposes information about the input, without imposing any structure regarding objects or other low-level primitives. These monolithic representations can not factorize physical interactions between pairs of objects and therefore lack an essential inductive bias to learn these efficiently. Hence, we require an alternative approach that can discover objects representations as primitives of a visual scene in an unsupervised fashion. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
337,
|
| 177 |
+
825,
|
| 178 |
+
462
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "One such approach is Neural Expectation Maximization (N-EM; Greff et al. (2017)), which learns a separate distributed representation for each object described in terms of the same features through an iterative process of perceptual grouping and representation learning. The compositional nature of these representations enable us to formulate Relational N-EM (R-NEM): a novel unsupervised approach to common-sense physical reasoning that combines N-EM (Section 2.1) with an interaction function that models relations between objects efficiently (Section 2.2). ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
469,
|
| 188 |
+
825,
|
| 189 |
+
553
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "2.1 NEURAL EXPECTATION MAXIMIZATION ",
|
| 196 |
+
"text_level": 1,
|
| 197 |
+
"bbox": [
|
| 198 |
+
176,
|
| 199 |
+
574,
|
| 200 |
+
490,
|
| 201 |
+
588
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "Neural Expectation Maximization (N-EM; Greff et al. (2017)) is a differentiable clustering method that learns a representation of a visual scene composed of primitive object representations. These representations adhere to many useful properties of a symbolic representation of objects, and can therefore be used as primitives of a compositional system (Hummel et al., 2004). They are described in the same format and each contain only information about the object in the visual scene that they correspond to. Together, they form a representation of a visual scene composed of objects that is learned in an unsupervised way, which therefore serves as a starting point for our approach. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
602,
|
| 211 |
+
825,
|
| 212 |
+
699
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "The goal of N-EM is to group pixels in the input that belong to the same object (perceptual grouping) and capture this information efficiently in a distributed representation $\\pmb { \\theta } _ { k }$ for each object. At a high-level, the idea is that if we were to have access to the family of distributions $\\bar { P } ( \\boldsymbol { x } | \\boldsymbol { \\theta } _ { k } )$ (a statistical model of images given object representations $\\theta _ { k }$ ) then we can formalize our objective as inference in a mixture of these distributions. By using Expectation Maximization (EM; Dempster et al., 1977) to compute a Maximum Likelihood Estimate (MLE) of the parameters of this mixture $( \\pmb \\theta _ { 1 } , \\dots , \\pmb \\theta _ { K } )$ , we obtain a grouping (clustering) of the pixels to each object (component) and their corresponding representation. In reality we do not have access to $P ( \\pmb { x } | \\pmb { \\theta } _ { k } )$ , which N-EM learns instead by parameterizing the mixture with a neural network and back-propagating through the iterations of the unrolled generalized EM procedure. ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
707,
|
| 222 |
+
825,
|
| 223 |
+
845
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "Following Greff et al. (2017), we model each image $\\pmb { x } \\in \\mathbb { R } ^ { D }$ as a spatial mixture of $K$ components parameterized by vectors $\\pmb { \\theta } _ { 1 } , \\dots , \\pmb { \\theta } _ { K } \\in \\mathbb { R } ^ { M }$ . A neural network $f _ { \\phi }$ is used to transform these representations $\\pmb { \\theta } _ { k }$ into parameters $\\psi _ { i , k } = f _ { \\phi } ( \\pmb { \\theta } _ { k } ) _ { i }$ for separate pixel-wise distributions. A set of binary latent variables $\\mathcal { Z } \\in [ 0 , 1 ] ^ { D \\times K }$ encodes the unknown true pixel assignments, such that $z _ { i , k } = 1$ iff pixel $i$ was generated by component $k$ . The full likelihood for $_ { \\textbf { \\em x } }$ given $\\pmb \\theta = ( \\pmb \\theta _ { 1 } , \\dots , \\pmb \\theta _ { K } )$ ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
852,
|
| 233 |
+
823,
|
| 234 |
+
924
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 1
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "image",
|
| 240 |
+
"img_path": "images/9a3fcaea80c1a330b3ce6569723944bda2b34e3ea7c2c9ae8bec8cbb1fe41915.jpg",
|
| 241 |
+
"image_caption": [
|
| 242 |
+
"Figure 1: Illustration of the different computational aspects of R-NEM when applied to a sequence of images of bouncing balls. Note that $\\gamma , \\psi$ at the Representations level correspond to the $\\gamma$ ( $E$ -step), $\\psi$ (Group Reconstructions) from the previous time-step. Different colors correspond to different cluster components (object representations).The right side shows a computational overview of $\\mathrm { \\Upsilon ^ { \\mathrm { R - N E M } } }$ , a function that computes the pair-wise interactions between the object representations. "
|
| 243 |
+
],
|
| 244 |
+
"image_footnote": [],
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
97,
|
| 248 |
+
825,
|
| 249 |
+
340
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "is given by: ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
173,
|
| 258 |
+
450,
|
| 259 |
+
251,
|
| 260 |
+
464
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/4612c75a8099d23806ff2f132b9ece615931cdc4f1511ec2c1a14b4c9b8e3d4c.jpg",
|
| 267 |
+
"text": "$$\nP ( \\mathbf { x } | \\theta ) = \\prod _ { i = 1 } ^ { D } \\sum _ { z _ { i } } P ( x _ { i } , z _ { i } | \\psi _ { i } ) = \\prod _ { i = 1 } ^ { D } \\sum _ { k = 1 } ^ { K } P ( z _ { i , k } = 1 ) P ( x _ { i } | \\psi _ { i , k } , z _ { i , k } = 1 ) .\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
248,
|
| 271 |
+
473,
|
| 272 |
+
746,
|
| 273 |
+
517
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "If $f _ { \\phi }$ has learned a statistical model of images given object representations $\\pmb { \\theta } _ { k }$ , then we can compute the object representations for a given image $_ { \\textbf { \\em x } }$ by maximizing $P ( { \\pmb x } | \\pmb \\theta )$ . Marginalization over $_ { z }$ complicates this process, thus we use generalized EM to maximize the following lowerbound instead: ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
532,
|
| 283 |
+
823,
|
| 284 |
+
575
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"img_path": "images/4132fb384b71deed171af074d01af2740fc406f251a5224b7c1977331b44680f.jpg",
|
| 291 |
+
"text": "$$\n\\mathcal { Q } ( \\pmb { \\theta } , \\pmb { \\theta } ^ { \\mathrm { o l d } } ) = \\sum _ { \\mathbf { z } } P ( \\mathbf { z } | \\pmb { x } , \\psi ^ { \\mathrm { o l d } } ) \\log P ( \\pmb { x } , \\mathbf { z } | \\psi ) .\n$$",
|
| 292 |
+
"text_format": "latex",
|
| 293 |
+
"bbox": [
|
| 294 |
+
346,
|
| 295 |
+
593,
|
| 296 |
+
651,
|
| 297 |
+
627
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Each iteration of generalized EM consists of two steps: the $E$ -step computes a new estimate of the posterior probability distribution over the latent variables $\\gamma _ { i , k } : = P ( z _ { i , k } = 1 | x _ { i } , \\psi _ { i } ^ { \\mathrm { o l d } } )$ given $\\pmb { \\theta } ^ { \\mathrm { o l d } }$ from the previous iteration. It yields a new soft-assignment of the pixels to the components (clusters), based on how accurately they model $_ { \\textbf { \\em x } }$ . The generalized $M .$ -step updates $\\pmb { \\theta } ^ { \\mathrm { o l d } }$ by taking a gradient ascent step on (2), using the previously computed soft-assignments: $\\pmb { \\theta } _ { k } ^ { \\mathrm { n e w } } = \\pmb { \\theta } _ { k } ^ { \\mathrm { o l d } } + \\eta \\cdot \\bar { \\partial \\mathcal { Q } } / \\bar { \\partial } \\pmb { \\theta } _ { k }$ .1 ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
173,
|
| 306 |
+
638,
|
| 307 |
+
825,
|
| 308 |
+
710
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "The unrolled computational graph of the generalized EM steps is differentiable, which provides a means to train $f _ { \\phi }$ to implement a statistical model of images given object representations. Using back-propagation through time (eg. Werbos (1988); Williams (1989)) we train $f _ { \\phi }$ to minimize the following loss: ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
174,
|
| 317 |
+
715,
|
| 318 |
+
825,
|
| 319 |
+
773
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "equation",
|
| 325 |
+
"img_path": "images/f090150f75446eb9ff7424a80ea59d95fdf625a9943175938ea3e5f44c1ae04b.jpg",
|
| 326 |
+
"text": "$$\nL ( \\pmb { x } ) = - \\sum _ { i = 1 } ^ { D } \\sum _ { k = 1 } ^ { K } \\underbrace { \\gamma _ { i , k } \\log P ( x _ { i } , z _ { i , k } | \\psi _ { i , k } ) } _ { \\mathrm { i n t r a - l u s t e r ~ l o s s } } - \\underbrace { ( 1 - \\gamma _ { i , k } ) D _ { K L } [ P ( x _ { i } ) | | P ( x _ { i } | \\psi _ { i , k } , z _ { i , k } ) ] } _ { \\mathrm { i n t e r - c l u s t e r ~ l o s s } } .\n$$",
|
| 327 |
+
"text_format": "latex",
|
| 328 |
+
"bbox": [
|
| 329 |
+
214,
|
| 330 |
+
791,
|
| 331 |
+
784,
|
| 332 |
+
842
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "The intra-cluster term is identical to (2), which credits each component for accurately representing pixels that have been assigned to it. The inter-cluster term ensures that each representation only captures the information about the pixels that have been assigned to it. ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
174,
|
| 341 |
+
853,
|
| 342 |
+
826,
|
| 343 |
+
897
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "A more powerful variant of N-EM can be obtained (RNN-EM) by substituting the generalized M-step with a recurrent neural network having hidden state $\\pmb { \\theta } _ { k }$ . In this case, the entirety of $f _ { \\phi }$ consists of a recurrent encoder-decoder architecture that receives $\\gamma _ { k } ( \\pmb { x } - \\pmb { \\psi } _ { k } )$ as input at each step. ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
174,
|
| 352 |
+
103,
|
| 353 |
+
823,
|
| 354 |
+
146
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "The learning objective in (3) is prone to trivial solutions in case of overcapacity, which could prevent the network from modelling the statistical regularities in the data that correspond to objects. By adding noise to the input image or reducing $\\pmb \\theta$ in dimensionality we can guide learning to avert this. Moreover, in the case of RNN-EM one can evaluate (3) at the following time-step (predictive coding) to encourage learning of object representations and their corresponding dynamics. One intuitive interpretation of using denoising or next-step prediction as part of the training objective is to guide the network to learn about essential properties of objects, in this case those that correspond to the Gestalt Principles of prägnanz and common fate (Hatfield & Epstein, 1985). ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
174,
|
| 363 |
+
152,
|
| 364 |
+
825,
|
| 365 |
+
263
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "2.2 RELATIONAL NEURAL EXPECTATION MAXIMIZATION ",
|
| 372 |
+
"text_level": 1,
|
| 373 |
+
"bbox": [
|
| 374 |
+
174,
|
| 375 |
+
280,
|
| 376 |
+
584,
|
| 377 |
+
295
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "RNN-EM (unlike N-EM) is able to capture the dynamics of individual objects through a parametrized recurrent connection that operates on the object representation $\\theta _ { k }$ across consecutive time-steps. However, the relations and interactions that take place between objects can not be captured in this way. In order to overcome this shortcoming we propose Relational $N .$ -EM (R-NEM), which adds relational structure to the recurrence to model interactions between objects without violating key properties of the learned object representations. ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
174,
|
| 386 |
+
305,
|
| 387 |
+
825,
|
| 388 |
+
391
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Consider a generalized form of the standard RNN-EM dynamics equation, which computes the object representation $\\pmb { \\theta } _ { k }$ at time $t$ as a function of all object representations $\\pmb \\theta : = [ \\pmb \\theta _ { 1 } , \\dots , \\pmb \\theta _ { K } ]$ at the previous time-step through an interaction function $\\Upsilon$ : ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
397,
|
| 398 |
+
825,
|
| 399 |
+
439
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "equation",
|
| 405 |
+
"img_path": "images/59abc3fccdbf64944e661c0fea4f6ac538e131ba4720893996dd7ae1ed052121.jpg",
|
| 406 |
+
"text": "$$\n\\pmb { \\theta } _ { k } ^ { ( t ) } = \\mathrm { R N N } ( \\tilde { \\pmb { x } } ^ { ( t ) } , \\Upsilon _ { k } ( \\pmb { \\theta } ^ { ( t - 1 ) } ) ) : = \\sigma ( \\pmb { W } \\cdot \\tilde { \\pmb { x } } ^ { ( t ) } + \\pmb { R } \\cdot \\Upsilon _ { k } ( \\pmb { \\theta } ^ { ( t - 1 ) } ) ) .\n$$",
|
| 407 |
+
"text_format": "latex",
|
| 408 |
+
"bbox": [
|
| 409 |
+
279,
|
| 410 |
+
445,
|
| 411 |
+
720,
|
| 412 |
+
465
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "Here $W , R$ are weight matrices, $\\sigma$ is the sigmoid activation function, and $\\tilde { \\mathbf { \\mathbf { x } } } ^ { ( t ) }$ is the input to the recurrent model at time $t$ (possibly transformed by an encoder). When $\\Upsilon _ { k } ^ { \\mathrm { R N N - E M } } ( \\pmb { \\theta } ) : = \\pmb { \\theta } _ { k }$ , this dynamics model coincides with a standard RNN update rule, thereby recovering the original RNN-EM formulation. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
173,
|
| 421 |
+
472,
|
| 422 |
+
825,
|
| 423 |
+
529
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "The inductive bias incorporated in $\\Upsilon$ reflects the modeling assumptions about the interactions between objects in the environment, and therefore the nature of $\\pmb { \\theta } _ { k }$ ’s interdependence. If $\\Upsilon$ incorporates the assumption that no interaction takes place between objects, then the $\\pmb { \\theta } _ { k }$ ’s are fully independent and we recover $\\Upsilon ^ { \\mathrm { R N N - E M } }$ . On the other hand, if we do assume that interactions among objects take place, but assume very little about the structure of the interdependence between the $\\pmb { \\theta } _ { k }$ ’s, then we forfeit useful properties of $\\pmb { \\theta } _ { k }$ such as compositionality. For example, if $\\Upsilon : = \\mathrm { M L P } ( \\theta )$ we can no longer extrapolate learned knowledge to environments with more or fewer than $K$ objects and lose overall data efficiency (Santoro et al., 2017). Instead, we can make efficient use of compositionality among the learned object representations $\\theta _ { k }$ to incorporate general but guiding constraints on how these may influence one another (Battaglia et al., 2016; Chang et al., 2016). In doing so we constrain $\\Upsilon$ to capture interdependence between $\\pmb { \\theta } _ { k }$ ’s in a compositional manner that enables physical dynamics to be learned efficiently, and allow for learned dynamics to be extrapolated to a variable number of objects. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
535,
|
| 433 |
+
825,
|
| 434 |
+
717
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "We propose a parametrized interaction function $\\mathrm { \\Upsilon ^ { \\mathrm { R - N E M } } }$ that incorporates these modeling assumptions and updates $\\pmb { \\theta } _ { k }$ based on the pairwise effects of the objects $i \\neq k$ on $k$ : ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
722,
|
| 444 |
+
823,
|
| 445 |
+
751
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "equation",
|
| 451 |
+
"img_path": "images/c3d2354893570040fcca526fd3c753492bcb8504a86453faee5426b9654c8e86.jpg",
|
| 452 |
+
"text": "$$\n\\begin{array} { l } { { \\Upsilon _ { k } ^ { \\mathrm { R - N E M } } ( \\theta ) = [ \\hat { \\theta } _ { k } ; E _ { k } ] \\mathrm { w i t h } \\hat { \\theta } _ { k } = \\mathrm { M L P } ^ { e n c } ( \\theta _ { k } ) , E _ { k } = \\displaystyle \\sum _ { i \\neq k } \\alpha _ { k , i } \\cdot e _ { k , i } } } \\\\ { { \\alpha _ { k , i } = \\mathrm { M L P } ^ { a t t } ( \\xi _ { k , i } ) , e _ { k , i } = \\mathrm { M L P } ^ { e f f } ( \\xi _ { k , i } ) , \\xi _ { k , i } = \\mathrm { M L P } ^ { e m b } ( [ \\hat { \\theta } _ { k } ; \\hat { \\theta } _ { i } ] ) } } \\end{array}\n$$",
|
| 453 |
+
"text_format": "latex",
|
| 454 |
+
"bbox": [
|
| 455 |
+
258,
|
| 456 |
+
756,
|
| 457 |
+
740,
|
| 458 |
+
814
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "where $[ \\cdot ; \\cdot ]$ is the concatenation operator and $\\mathbf { M L P ^ { ( \\cdot ) } }$ corresponds to a multi-layer perceptron. First, each $\\theta _ { i }$ is transformed using ${ \\bf M L P } ^ { e n c }$ to obtain $\\hat { \\theta } _ { i }$ , which enables information that is relevant for the object dynamics to be made more explicit in the representation. Next, each pair $( \\hat { \\theta } _ { k } , \\hat { \\theta } _ { i } )$ is concatenated and processed by ${ \\bf M L P } ^ { e m b }$ , which computes a shared embedding $\\xi _ { k , i }$ that encodes the interaction between object $k$ and object $i$ . Notice that we opt for a clear separation between the focus object $k$ and the context object $i$ as in previous work (Chang et al., 2016). From $\\xi _ { k , i }$ we compute ${ e } _ { k , i }$ : the effect of object $i$ on object $k$ ; and an attention coefficient $\\alpha _ { k , i }$ that encodes whether interaction between object $i$ and object $k$ takes place. These attention coefficients (Bahdanau et al., 2014; Xu et al., 2015) help to select relevant context objects, and can be seen as a more flexible unsupervised replacement of the distance based heuristic that was used in previous work (Chang et al., 2016). Finally, we compute the total effect of $\\theta _ { i \\neq k }$ on $\\pmb { \\theta } _ { k }$ as a weighted sum of the effects multiplied by their attention coefficient. A visual overview of $\\mathrm { \\Upsilon ^ { \\mathrm { R - N E M } } }$ can be seen on the right side of Figure 1. ",
|
| 465 |
+
"bbox": [
|
| 466 |
+
173,
|
| 467 |
+
818,
|
| 468 |
+
825,
|
| 469 |
+
924
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 3
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "",
|
| 476 |
+
"bbox": [
|
| 477 |
+
174,
|
| 478 |
+
103,
|
| 479 |
+
825,
|
| 480 |
+
174
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 4
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "3 RELATED WORK ",
|
| 487 |
+
"text_level": 1,
|
| 488 |
+
"bbox": [
|
| 489 |
+
176,
|
| 490 |
+
194,
|
| 491 |
+
344,
|
| 492 |
+
210
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "Machine learning approaches to common-sense physical reasoning can roughly be divided in two groups: symbolic approaches and approaches that perform state-to-state prediction. The former group performs inference over the parameters of a symbolic physics engine (Battaglia et al., 2013; Ullman et al., 2017; Wu et al., 2015), which restricts them to synthetic environments. The latter group employs machine learning methods to make state-to-state predictions, often describing the state of a system as a set of compact object-descriptions that are either used as an input to the system (Battaglia et al., 2016; Chang et al., 2016; Fragkiadaki et al., 2015; Grzeszczuk et al., 1998) or for training purposes (Watters et al., 2017). By incorporating information (eg. position, velocity) about objects these methods have achieved excellent generalization and simulation capabilities. Purely unsupervised approaches for state-to-state prediction (Agrawal et al., 2016; Lerer et al., 2016; Michalski et al., 2014; Sutskever et al., 2009) that use raw visual inputs as state-descriptions have yet to rival these capabilities. Our method is a purely unsupervised state-to-state prediction method that operates in pixel space, taking a first step towards unsupervised learning of common-sense reasoning in real-world environments. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
224,
|
| 502 |
+
825,
|
| 503 |
+
419
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "The proposed interaction function $\\mathrm { \\Upsilon ^ { \\mathrm { { K } - N E M } } }$ can be seen as a type of Message Passing Neural Network (MPNN; Gilmer et al. (2017)) that incorporates a variant of neighborhood attention (Duan et al., 2017). In light of other recent work (Zaheer et al., 2017) it can be seen as a permutation equivariant set function. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
425,
|
| 513 |
+
825,
|
| 514 |
+
482
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "R-NEM relies on N-EM (Greff et al., 2017) to discover a compositional object representation from raw visual inputs. A closely related approach to N-EM is the TAG framework (Greff et al., 2016), which utilizes a similar mechanism to perform inference over group representations, but in addition performs inference over the group assignments. In recent work TAG was combined with a recurrent ladder network (Ilin et al., 2017) to obtain a powerful model (RTagger) that can be applied to sequential data. However, the lack of a single compact representation that captures all information about a group (object) makes a compositional treatment of physical interactions more difficult. Other unsupervised approaches rely on attention to group together parts of the visual scene corresponding to objects (Eslami et al., 2016; Gregor et al., 2015). These approaches suffer from a similar problem in that their sequential nature prevents a coherent object representation to take shape. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
174,
|
| 523 |
+
488,
|
| 524 |
+
825,
|
| 525 |
+
627
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "Other related work have also taken steps towards combining the learnability of neural networks with the compositionality of symbolic programs in modeling physics (Battaglia et al., 2016; Chang et al., 2016), playing games (Denil et al., 2017; Kansky et al., 2017), learning algorithms (Bošnjak et al., 2017; Cai et al., 2017; Li et al., 2016; Reed & De Freitas, 2015), visual understanding (Ellis et al., 2017; Johnson et al., 2017), and natural language processing (Andreas et al., 2016; Hu et al., 2017). ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
174,
|
| 534 |
+
635,
|
| 535 |
+
825,
|
| 536 |
+
705
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "4 EXPERIMENTS ",
|
| 543 |
+
"text_level": 1,
|
| 544 |
+
"bbox": [
|
| 545 |
+
176,
|
| 546 |
+
724,
|
| 547 |
+
326,
|
| 548 |
+
739
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "In this section we evaluate R-NEM on three different physical reasoning tasks that each vary in their dynamical and visual complexity: bouncing balls with variable mass, bouncing balls with an invisible curtain and the Arcade Learning Environment (Bellemare et al., 2013). We compare R-NEM to other unsupervised neural methods that do not incorporate any inductive biases reflecting real-world dynamics and show that these are indeed beneficial.2 ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
755,
|
| 558 |
+
823,
|
| 559 |
+
824
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "All experiments use ADAM (Kingma & Ba, 2014) with default parameters, on 50K train $+ ~ 1 0 \\mathrm { K }$ validation $+ \\ 1 0 \\mathrm { K }$ test sequences and early stopping with a patience of 10 epochs. For each of $\\mathbf { M L P } ^ { e n c , e m b , e f f }$ we used a unique single layer neural network with 250 rectified linear units. For $\\mathbf { M L P } ^ { a t t }$ we used a two-layer neural network: 100 tanh units followed by a single sigmoid unit. A detailed overview of the experimental setup can be found in Appendix A. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
832,
|
| 569 |
+
825,
|
| 570 |
+
901
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "image",
|
| 576 |
+
"img_path": "images/790e190a35d62c142591a94364df4d41d39508cc80bed1b751ad53ab47f400fe.jpg",
|
| 577 |
+
"image_caption": [
|
| 578 |
+
"Figure 2: R-NEM applied to a sequence of 4 bouncing balls. Each column corresponds to a time-step, which coincides with an EM step. At each time-step, R-NEM computes $K = 5$ new representations $\\pmb { \\theta } _ { k }$ according to (4) (see also Representations in Figure 1) from the input $_ { \\textbf { \\em x } }$ with added noise (bottom row). From each new $\\pmb { \\theta } _ { k }$ a group reconstruction $\\psi _ { k }$ is produced (rows 2-6 from bottom) that predicts the state of the environment at the next time-step. Attention coefficients are visualized by overlaying a colored reconstruction of a context object on the white reconstruction of the focus object (see Attention in Section 4). Based on the prediction accuracy of $\\psi$ , the $E$ -step (see Figure 1) computes new soft-assignments $\\gamma$ (row 7 from bottom), visualized by coloring each pixel $i$ according to their distribution over components $\\gamma _ { i }$ . Row 8 visualizes the total prediction by the network $( \\sum _ { k } \\psi _ { k } \\cdot \\gamma _ { k } )$ and row 9 the ground-truth sequence at the next time-step. "
|
| 579 |
+
],
|
| 580 |
+
"image_footnote": [],
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
136,
|
| 584 |
+
825,
|
| 585 |
+
372
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "image",
|
| 591 |
+
"img_path": "images/51bd1e1f7d4957ff347c412912a15d7ed7a93efb783a5724268519fa28884670.jpg",
|
| 592 |
+
"image_caption": [
|
| 593 |
+
"Figure 3: Performance of each method on the bouncing balls task. Each method was trained on a dataset with 4 balls, evaluated on a test set with 4 balls (left), and on a test-set with 6-8 balls (middle). The losses are reported relative to the loss of a baseline for each dataset that always predicts the current frame. The ARI score (right) is used to evaluate the degree of compositionality that is achieved. "
|
| 594 |
+
],
|
| 595 |
+
"image_footnote": [],
|
| 596 |
+
"bbox": [
|
| 597 |
+
169,
|
| 598 |
+
599,
|
| 599 |
+
825,
|
| 600 |
+
805
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "image",
|
| 606 |
+
"img_path": "images/84bf21a3293f377f67146f99a183d3557e40b26add2a536ea4a5b989040ef458.jpg",
|
| 607 |
+
"image_caption": [
|
| 608 |
+
"Figure 4: Left: Three sequences of 15 time-steps ground-truth (top), R-NEM (middle), RNN (bottom). The last ten time-steps of the sequences produced by R-NEM and RNN are simulated. Right: The BCE loss on the entire test-set for these same time-steps. "
|
| 609 |
+
],
|
| 610 |
+
"image_footnote": [],
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
102,
|
| 614 |
+
821,
|
| 615 |
+
185
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 6
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Bouncing Balls We study the physical reasoning capabilities of R-NEM on the bouncing balls task, a standard environment to evaluate physical reasoning capabilities that exhibits low visual complexity and complex non-linear physical dynamics.3 We train R-NEM on sequences of $6 4 \\times 6 4$ binary images over 30 time-steps that contain four bouncing balls with different masses corresponding to their radii. The balls are initialized with random initial positions, masses and velocities. Balls bounce elastically against each other and the image window. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
173,
|
| 624 |
+
266,
|
| 625 |
+
825,
|
| 626 |
+
349
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 6
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Qualitative Evaluation Figure 1 presents a qualitative evaluation of R-NEM on the bouncing balls task. After 10 time-steps it can be observed that the pixels that belong to each of the balls are grouped together and assigned to a unique component (with a saturated color); and that the background (colored grey) has been divided among all components (resulting in a grey coloring). This indicates that the representation $\\pmb { \\theta } _ { k }$ from which each component produces the group reconstruction $\\psi _ { k }$ does indeed only contain information about a unique object, such that together the $\\pmb { \\theta } _ { k }$ ’s yield a compositional object representation of the scene. The total reconstruction (that combines the group reconstructions and the soft-assignments) displays an accurate reconstruction of the input sequence at the next time-step, indicating that R-NEM has learned to model the dynamics of bouncing balls. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
174,
|
| 635 |
+
366,
|
| 636 |
+
825,
|
| 637 |
+
491
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 6
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "Comparison We compare the modelling capabilities of R-NEM to an RNN, LSTM (Gers et al., 1999; Hochreiter & Schmidhuber, 1997) and RNN-EM in terms of the Binomial Cross-Entropy (BCE) loss between the predicted image and the ground-truth image of the last frame,4 as well as the relational BCE that only takes into account objects that currently take part in collision. Unless specified we use $K = 5$ . ",
|
| 644 |
+
"bbox": [
|
| 645 |
+
174,
|
| 646 |
+
507,
|
| 647 |
+
825,
|
| 648 |
+
577
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 6
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "On a test-set with sequences containing four balls we observe that R-NEM produces markedly lower losses when compared to all other methods (left plot in Figure 3). Moreover, in order to validate that each component captures only a single ball (and thus compositionality is achieved), we report the Adjusted Rand Index (ARI; Hubert $\\&$ Arabie (1985)) score between the soft-assignments $\\gamma$ and the ground-truth assignment of pixels to objects. In the left column of the ARI plot (right side in Figure 3) we find that R-NEM achieves an ARI score of 0.8, meaning that in roughly $8 0 \\%$ of the cases each ball is modeled by a single component. This suggests that a compositional object representation is achieved for most of the sequences. Together these observations are in line with our qualitative evaluation and validate that incorporating real world priors is greatly beneficial (comparing to RNN, LSTM) and that $\\mathrm { \\Upsilon ^ { \\mathrm { { K - N E M } } } }$ enables interactions to be modelled more accurately compared to RNN-EM in terms of the relational BCE. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
584,
|
| 658 |
+
825,
|
| 659 |
+
737
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 6
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "Similar to Greff et al. (2017) we find that further increasing the number of components during training (leaving additional groups empty) increases the quality of the grouping, see R-NEM $K = 8$ in Figure 3. In addition we observe that the loss (in particular the relational BCE) is reduced further, which matches our hypothesis that compositional object representations are greatly beneficial for modelling physical interactions. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
744,
|
| 669 |
+
825,
|
| 670 |
+
814
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 6
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "Extrapolating learned knowledge We use a test-set with sequences containing 6-8 balls to evaluate the ability of each method to extrapolate their learned knowledge about physical interactions between four balls to environments with more balls. We use $K = 8$ when evaluating R-NEM and ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
176,
|
| 679 |
+
830,
|
| 680 |
+
823,
|
| 681 |
+
872
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "RNN-EM on this test-set in order to accommodate the increased number of objects. As can be seen from the middle plot in Figure 3, R-NEM again greatly outperforms all other methods. Notice that, since we report the loss relative to a baseline, we roughly factor out the increased complexity of the task. Perfect extrapolation of the learned knowledge would therefore amount to no change in relative performance. In contrast, we observe far worse performance for the LSTM (relative to the baseline) when evaluated on this dataset with extra balls. It suggests that the gating mechanism of the LSTM has allowed it to learn a sophisticated and overly specialized solution for sequences with four balls that does not generalize to a dataset with 6-8 balls. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
103,
|
| 691 |
+
825,
|
| 692 |
+
214
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 7
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "R-NEM and RNN-EM scale markedly better to this dataset than LSTM. Although the RNN similarly suffers to a lesser extend from this type of “overfitting”, this is most likely due its inability to learn a reasonable solution on sequences of four balls to begin with. Hence, we conclude that the superior extrapolation capabilities of RNN-EM and R-NEM are inherent to their ability to factor a scene in terms of permutation invariant object representations (see right side of the right plot in Figure 3). ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
174,
|
| 701 |
+
222,
|
| 702 |
+
825,
|
| 703 |
+
291
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 7
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Attention Further insight in the role of the attention mechanism can be gained by visualizing the attention coefficients, as is done in Figure 2. For each component $k$ we draw $\\alpha _ { k , i } * \\psi _ { i }$ on top of the reconstruction $\\psi _ { k }$ , colored according to the color of component $i$ . These correspond to the colored balls (that are for example seen in time-steps 13, 14), which indicate whether component $k$ took information about component $i$ into account when computing the new state (recall (5)). It can be observed that the attention coefficient $\\alpha _ { k , i }$ becomes non-zero whenever collision takes place, such that a colored ball lights up in the following time-steps. The attention mechanism learned by R-NEM thus assumes the role of the distance-based heuristic in previous work (Chang et al., 2016), matching our own intuitions of how this mechanism would best be utilized. ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
309,
|
| 713 |
+
825,
|
| 714 |
+
434
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 7
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "A quantitative evaluation of the attention mechanism is obtained by comparing R-NEM to a variant of itself that does not incorporate attention ( $R$ -NEM no att). Figure 3 shows that both methods perform equally well on the regular test set (4 balls), but that $R$ -NEM no att performs worse at extrapolating from its learned knowledge (6-8 balls). A likely reason for this behavior is that the range of the sum in (5) changes with $K$ . Thus, when extrapolating to an environment with more balls the total sum may exceed previous boundaries and impede learned dynamics. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
174,
|
| 723 |
+
441,
|
| 724 |
+
825,
|
| 725 |
+
525
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 7
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "Simulation Once a scene has been accurately modelled, R-NEM can approximately simulate its dynamics through recursive application of (4) for each $\\pmb { \\theta } _ { k }$ .5 In Figure 4 we compare the simulation capabilities of R-NEM to RNN-EM and an RNN on the bouncing balls environment.3 On the left it shows for R-NEM and an RNN a sequence with five normal steps followed by 10 simulation steps, as well as the ground-truth sequence. From the last frame in the sequence it can clearly be observed that R-NEM has managed to accurately simulate the environment. Each ball is approximately in the correct place, and the shape of each ball is preserved. The balls simulated by the RNN, on the other hand, deviate substantially from their ground-truth position and their size has increased. In general we find that R-NEM produces mostly very accurate simulations, whereas the RNN consistently fails. Interestingly we found that the cases in which R-NEM frequently fails are those for which a single component models more than one ball. The right side of Figure 4 summarizes the BCE loss for these same time-steps across the entire test-set. Although this is a crude measure of simulation performance (since it does not take into account the identity of the balls), we still observe that R-NEM consistently outperforms RNN-EM and an RNN. ",
|
| 732 |
+
"bbox": [
|
| 733 |
+
174,
|
| 734 |
+
542,
|
| 735 |
+
825,
|
| 736 |
+
737
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 7
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "Hidden Factors Occlusion is abundant in the real world, and the ability to handle hidden factors is crucial for any physical reasoning system. We therefore evaluate the capability of R-NEM to handle occlusion using a variant of bouncing balls that contain an invisible “curtain.” Figure 5 shows that R-NEM accurately models the sequence and can maintain object states, even when confronted with occlusion.3 For example, note that in step 36 the “blue” ball, is completely occluded and is about to collide with the “orange” ball. In step 38 the ball is accurately predicted to re-appear at the bottom of the curtain (since collision took place) as opposed to the left side of the curtain. This demonstrates that R-NEM has a notion of object permanence and implies that it understands a scene on a level beyond pixels: it assigns persistence and identity to the objects. ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
174,
|
| 745 |
+
753,
|
| 746 |
+
825,
|
| 747 |
+
881
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 7
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "image",
|
| 753 |
+
"img_path": "images/4a0ca27f7f4ee785aa414368ee5c57cef896ec32263293612cff7ea6d214e3d6.jpg",
|
| 754 |
+
"image_caption": [
|
| 755 |
+
"Figure 5: R-NEM applied to a sequence of bouncing balls with an invisible curtain. The ground truth sequence is displayed in the top row, followed by the prediction of R-NEM (middle) and the soft-assignments of pixels to components (bottom). R-NEM models objects, as well as its interactions, even when the object is completely occluded (step 36). Only a subset of the steps is shown. "
|
| 756 |
+
],
|
| 757 |
+
"image_footnote": [],
|
| 758 |
+
"bbox": [
|
| 759 |
+
176,
|
| 760 |
+
99,
|
| 761 |
+
825,
|
| 762 |
+
180
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 8
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "image",
|
| 768 |
+
"img_path": "images/8e57130e03f513949366dd6810296e3f195a4acc246cffd118529e7c6335c9ae.jpg",
|
| 769 |
+
"image_caption": [
|
| 770 |
+
"Figure 6: R-NEM accurately models a sequence of frames obtained by an agent playing Space Invaders. A group no longer corresponds to an object, but instead assumes the role of high-level entities that engage in similar movement patterns. "
|
| 771 |
+
],
|
| 772 |
+
"image_footnote": [],
|
| 773 |
+
"bbox": [
|
| 774 |
+
176,
|
| 775 |
+
263,
|
| 776 |
+
825,
|
| 777 |
+
353
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 8
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "In terms of test-set performance we find that R-NEM (BCE: 46.22, relational BCE: 2.33) outperforms an RNN (BCE: 94.64, relational BCE: 4.14) and an LSTM (BCE: 59.32, relational BCE: 2.72). ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
436,
|
| 787 |
+
823,
|
| 788 |
+
464
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 8
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "Space Invaders To test the performance of R-NEM in a visually more challenging environment, we train it on sequences of $8 4 \\times 8 4$ binarized images over 25 time-steps of game-play on Space Invaders from the Arcade Learning Environment (Bellemare et al., 2013).6 We use $K = 4$ and also feed the action of the agent to the interaction function. Figure 6 confirms that R-NEM is able to accurately model the environment, even though the visual complexity has increased. Notice that these visual scenes comprise a large numbers of (small) primitive objects that behave similarly. Since we trained R-NEM with four components it is unable to group pixels according to individual objects and is forced to consider a different grouping. We find that R-NEM assigns different groups to every other column of aliens together with the spaceship, and to the three large “shields.” These groupings seem to be based on movement, which to some degree coincides with their semantic roles of the environment. In other examples (not shown) we also found that R-NEM frequently assigns different groups to every other column of the aliens, and to the three large “shields.” Individual bullets and the space ship are less frequently grouped separately, which may have to do with the action-noise of the environment (that controls the movement of the space-ship) and the small size of the bullets at the current resolution that makes them less predictable. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
174,
|
| 797 |
+
484,
|
| 798 |
+
825,
|
| 799 |
+
693
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 8
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "5 DISCUSSION AND CONCLUSION ",
|
| 806 |
+
"text_level": 1,
|
| 807 |
+
"bbox": [
|
| 808 |
+
176,
|
| 809 |
+
718,
|
| 810 |
+
467,
|
| 811 |
+
733
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 8
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "We have argued that the ability to discover and describe a scene in terms of objects provides an essential ingredient for common-sense physical reasoning. This is supported by converging evidence from cognitive science and developmental psychology that intuitive physics and reasoning capabilities are built upon the ability to perceive objects and their interactions (Spelke, 1988; Ullman et al., 2017). The fact that young infants already exhibit this ability, may even suggest an innate bias towards compositionality (Lake et al., 2016; Munakata et al., 1997; Spelke & Kinzler, 2007). Inspired by these observations we have proposed R-NEM, a method that incorporates inductive biases about the existence of objects and interactions, implemented by its clustering objective and interaction function respectively. The specific nature of the objects, and their dynamics and interactions can then be learned efficiently purely from visual observations. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
174,
|
| 820 |
+
752,
|
| 821 |
+
825,
|
| 822 |
+
891
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 8
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "In our experiments we find that R-NEM indeed captures the (physical) dynamics of various environments more accurately than other methods, and that it exhibits improved generalization to environments with different numbers of objects. It can be used as an approximate simulator of the environment, and to predict movement and collisions of objects, even when they are completely occluded. This demonstrates a notion of object permanence and aligns with evidence that young infants seem to infer that occluded objects move in connected paths and continue to maintain objectspecific properties (Spelke, 1990). Moreover, young infants also appear to expect that objects only interact when they come into contact (Spelke, 1990), which is analogous to the behaviour of R-NEM to only attend to other objects when a collision is imminent. In summary, we believe that our method presents an important step towards learning a more human-like model of the world in a completely unsupervised fashion. ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
103,
|
| 832 |
+
825,
|
| 833 |
+
256
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 9
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "Current limitations of our approach revolve around grouping and prediction. What aspects of a scene humans group together typically varies as a function of the task in mind. One may perceive a stack of chairs as a whole if the goal is to move them to another room, or as individual chairs if the goal is to count the number of chairs in the stack. In order to facilitate this dynamic grouping one would need to incorporate top-down feedback from an agent into the grouping procedure to deviate from the built-in inductive biases. Another limitation of our approach is the need to incentivize R-NEM to produce useful groupings by injecting noise, or reducing capacity. The former may prevent very small regularities in the input from being detected. Finally the interaction in the E-step among the groups makes it difficult to increase the number of components above ten without causing harmful training instabilities. Due to the multitude of interactions and objectives in R-NEM (and RNN-EM) we find that they are sometimes challenging to train. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
263,
|
| 843 |
+
825,
|
| 844 |
+
416
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 9
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "In terms of prediction we have implicitly assumed that objects in the environment behave according to rules that can be inferred. This poses a challenge when objects deform in a manner that is difficult to predict (as is the case for objects in Space Invaders due to downsampling). However in practice we find that (once pixels have been grouped together) the masking of the input helps each component in quickly adapting its representation to any unforeseen behaviour across consecutive time steps. Perhaps a more severe limitation of R-NEM (and of RNN-EM in general) is that the second loss term of the outer training objective hinders in modelling more complex varying backgrounds, as the background group would have to predict the “pixel prior” for every other group. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
422,
|
| 854 |
+
825,
|
| 855 |
+
535
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "We argue that the ability to engage in common-sense physical reasoning benefits any intelligent agent that needs to operate in a physical environment, which provides exciting future research opportunities. In future work we intend to investigate how top-down feedback from an agent could be incorporated in R-NEM to facilitate dynamic groupings, but also how the compositional representations produced by R-NEM can benefit a reinforcement learner, for example to learn a modular policy that easily generalizes to novel combinations of known objects. Other interactions between a controller C and a model of the world M (implemented by R-NEM) as posed in Schmidhuber (2015) constitute further research directions. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
541,
|
| 865 |
+
825,
|
| 866 |
+
652
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 9
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 873 |
+
"text_level": 1,
|
| 874 |
+
"bbox": [
|
| 875 |
+
176,
|
| 876 |
+
675,
|
| 877 |
+
366,
|
| 878 |
+
690
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 9
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "The authors wish to thank Tom Griffiths and the anonymous reviewers for helpful comments and constructive feedback. This research was supported by the Swiss National Science Foundation grant 200021_165675/1, the EU project “INPUT” (H2020-ICT-2015 grant no. 687795), and the Zeno Karl Schindler Foundation Summerschool Grant. Chang would like to thank Christiane Born, Sarah Craver, Cinzia Daldini, and the MIT MISTI Program for supporting his stay in Switzerland. We are grateful to NVIDIA Corporation for donating us a DGX-1 as part of the Pioneers of AI Research award, and to IBM for donating a “Minsky” machine. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
174,
|
| 887 |
+
707,
|
| 888 |
+
825,
|
| 889 |
+
804
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 9
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "REFERENCES ",
|
| 896 |
+
"text_level": 1,
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
825,
|
| 900 |
+
285,
|
| 901 |
+
840
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 9
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Pulkit Agrawal, Ashvin V Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. In Advances in Neural Information Processing Systems, pp. 5074–5082, 2016. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
173,
|
| 910 |
+
848,
|
| 911 |
+
823,
|
| 912 |
+
886
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 39–48, 2016. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
171,
|
| 921 |
+
897,
|
| 922 |
+
825,
|
| 923 |
+
922
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
171,
|
| 932 |
+
104,
|
| 933 |
+
823,
|
| 934 |
+
131
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 10
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, and others. Interaction networks for learning about objects, relations and physics. In Advances in Neural Information Processing Systems, pp. 4502–4510, 2016. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
138,
|
| 944 |
+
823,
|
| 945 |
+
178
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 10
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Peter W Battaglia, Jessica B Hamrick, and Joshua B Tenenbaum. Simulation as an engine of physical scene understanding. Proceedings of the National Academy of Sciences, 110(45):18327–18332, 2013. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
185,
|
| 955 |
+
821,
|
| 956 |
+
213
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 10
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res.(JAIR), 47:253–279, 2013. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
171,
|
| 965 |
+
219,
|
| 966 |
+
823,
|
| 967 |
+
247
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 10
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Matko Bošnjak, Tim Rocktäschel, Jason Naradowsky, and Sebastian Riedel. Programming with a differentiable forth interpreter. In Proceedings of the 34th International Conference on Machine Learning, pp. 547–556, 2017. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
255,
|
| 977 |
+
823,
|
| 978 |
+
294
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 10
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Jonathon Cai, Richard Shin, and Dawn Song. Making neural programming architectures generalize via recursion. arXiv preprint arXiv:1704.06611, 2017. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
171,
|
| 987 |
+
303,
|
| 988 |
+
825,
|
| 989 |
+
329
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 10
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Michael B. Chang, Tomer Ullman, Antonio Torralba, and Joshua B. Tenenbaum. A compositional object-based approach to learning physical dynamics. arXiv preprint arXiv:1612.00341, 2016. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
337,
|
| 999 |
+
825,
|
| 1000 |
+
364
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 10
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "A. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm. Journal of the royal statistical society., pp. 1–38, 1977. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
371,
|
| 1010 |
+
821,
|
| 1011 |
+
398
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 10
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Misha Denil, Sergio Gómez Colmenarejo, Serkan Cabi, David Saxton, and Nando de Freitas. Programmable agents. arXiv preprint arXiv:1706.06383, 2017. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
173,
|
| 1020 |
+
406,
|
| 1021 |
+
823,
|
| 1022 |
+
433
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 10
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Yan Duan, Marcin Andrychowicz, Bradly Stadie, Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in Neural Information Processing Systems, pp. 1087–1098, 2017. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
440,
|
| 1032 |
+
825,
|
| 1033 |
+
479
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 10
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Kevin Ellis, Daniel Ritchie, Armando Solar-Lezama, and Joshua B. Tenenbaum. Learning to infer graphics programs from hand-drawn images. CoRR, abs/1707.09627, 2017. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
173,
|
| 1042 |
+
488,
|
| 1043 |
+
823,
|
| 1044 |
+
515
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 10
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "SM Ali Eslami, Nicolas Heess, Theophane Weber, Yuval Tassa, David Szepesvari, Geoffrey E Hinton, et al. Attend, infer, repeat: Fast scene understanding with generative models. In Advances in Neural Information Processing Systems, pp. 3225–3233, 2016. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
173,
|
| 1053 |
+
522,
|
| 1054 |
+
823,
|
| 1055 |
+
563
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 10
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Katerina Fragkiadaki, Pulkit Agrawal, Sergey Levine, and Jitendra Malik. Learning visual predictive models of physics for playing billiards. arXiv preprint arXiv:1511.07404, 2015. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
171,
|
| 1064 |
+
570,
|
| 1065 |
+
823,
|
| 1066 |
+
597
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 10
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Felix A Gers, Jürgen Schmidhuber, and Fred Cummins. Learning to forget: Continual prediction with LSTM. In Artificial Neural Networks, 1999. ICANN 99. Ninth International Conference on (Conf. Publ. No. 470), volume 2, pp. 850–855, 1999. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
176,
|
| 1075 |
+
604,
|
| 1076 |
+
823,
|
| 1077 |
+
643
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 10
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
169,
|
| 1086 |
+
651,
|
| 1087 |
+
825,
|
| 1088 |
+
679
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 10
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
685,
|
| 1098 |
+
823,
|
| 1099 |
+
726
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 10
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Klaus Greff, Antti Rasmus, Mathias Berglund, Tele Hao, Harri Valpola, and Juergen Schmidhuber. Tagger: Deep unsupervised perceptual grouping. In Advances in Neural Information Processing Systems, pp. 4484–4492, 2016. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
173,
|
| 1108 |
+
733,
|
| 1109 |
+
825,
|
| 1110 |
+
772
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 10
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Klaus Greff, Sjoerd van Steenkiste, and Jürgen Schmidhuber. Neural expectation maximization. In Advances in Neural Information Processing Systems, pp. 6694–6704, 2017. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
171,
|
| 1119 |
+
781,
|
| 1120 |
+
823,
|
| 1121 |
+
808
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 10
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
173,
|
| 1130 |
+
815,
|
| 1131 |
+
823,
|
| 1132 |
+
842
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 10
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Radek Grzeszczuk, Demetri Terzopoulos, and Geoffrey Hinton. Neuroanimator: Fast neural network emulation and control of physics-based models. In Proceedings of the 25th annual conference on Computer graphics and interactive techniques, pp. 9–20. ACM, 1998. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
174,
|
| 1141 |
+
849,
|
| 1142 |
+
823,
|
| 1143 |
+
888
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 10
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Gary Hatfield and William Epstein. The status of the minimum principle in the theoretical analysis of visual perception. Psychological Bulletin, 97(2):155, 1985. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
171,
|
| 1152 |
+
897,
|
| 1153 |
+
825,
|
| 1154 |
+
924
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 10
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
173,
|
| 1163 |
+
104,
|
| 1164 |
+
825,
|
| 1165 |
+
131
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 11
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Ronghang Hu, Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Kate Saenko. Learning to reason: End-to-end module networks for visual question answering. arXiv preprint arXiv:1704.05526, 2017. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
174,
|
| 1174 |
+
140,
|
| 1175 |
+
825,
|
| 1176 |
+
166
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 11
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Lawrence Hubert and Phipps Arabie. Comparing partitions. Journal of classification, 2(1):193–218, 1985. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
173,
|
| 1185 |
+
174,
|
| 1186 |
+
803,
|
| 1187 |
+
189
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 11
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "John E. Hummel, Keith J. Holyoak, Collin Green, Leonidas AA Doumas, Derek Devnich, Aniket Kittur, and Donald J. Kalar. A solution to the binding problem for compositional connectionism. In Compositional Connectionism in Cognitive Science: Papers from the AAAI Fall Symposium, Ed. SD Levy & R. Gayler, pp. 31–34, 2004. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
173,
|
| 1196 |
+
198,
|
| 1197 |
+
826,
|
| 1198 |
+
250
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 11
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Alexander Ilin, Isabeau Prémont-Schwarz, Tele Hotloo Hao, Antti Rasmus, Rinu Boney, and Harri Valpola. Recurrent Ladder Networks. arXiv:1707.09219 [cs, stat], July 2017. ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
174,
|
| 1207 |
+
258,
|
| 1208 |
+
823,
|
| 1209 |
+
286
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 11
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Judy Hoffman, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Inferring and executing programs for visual reasoning. arXiv preprint arXiv:1705.03633, 2017. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
294,
|
| 1219 |
+
823,
|
| 1220 |
+
333
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 11
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Ken Kansky, Tom Silver, David A Mély, Mohamed Eldawy, Miguel Lázaro-Gredilla, Xinghua Lou, Nimrod Dorfman, Szymon Sidor, Scott Phoenix, and Dileep George. Schema networks: Zero-shot transfer with a generative causal model of intuitive physics. arXiv preprint arXiv:1706.04317, 2017. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
176,
|
| 1229 |
+
342,
|
| 1230 |
+
823,
|
| 1231 |
+
382
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 11
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
173,
|
| 1240 |
+
390,
|
| 1241 |
+
825,
|
| 1242 |
+
417
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 11
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
176,
|
| 1251 |
+
425,
|
| 1252 |
+
823,
|
| 1253 |
+
440
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 11
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Brenden M. Lake, Tomer D. Ullman, Joshua B. Tenenbaum, and Samuel J. Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, pp. 1–101, 2016. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
174,
|
| 1262 |
+
448,
|
| 1263 |
+
825,
|
| 1264 |
+
476
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 11
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Adam Lerer, Sam Gross, and Rob Fergus. Learning physical intuition of block towers by example. arXiv preprint arXiv:1603.01312, 2016. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
174,
|
| 1273 |
+
484,
|
| 1274 |
+
823,
|
| 1275 |
+
511
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 11
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Chengtao Li, Daniel Tarlow, Alexander L Gaunt, Marc Brockschmidt, and Nate Kushman. Neural program lattices. 2016. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
173,
|
| 1284 |
+
518,
|
| 1285 |
+
823,
|
| 1286 |
+
546
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 11
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Vincent Michalski, Roland Memisevic, and Kishore Konda. Modeling deep temporal dependencies with recurrent grammar cells\"\". In Advances in neural information processing systems, pp. 1925–1933, 2014. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
173,
|
| 1295 |
+
554,
|
| 1296 |
+
823,
|
| 1297 |
+
583
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 11
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
590,
|
| 1307 |
+
823,
|
| 1308 |
+
617
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 11
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Yuko Munakata, James L McClelland, Mark H Johnson, and Robert S Siegler. Rethinking infant knowledge: toward an adaptive process account of successes and failures in object permanence tasks. Psychological review, 104(4):686, 1997. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
174,
|
| 1317 |
+
626,
|
| 1318 |
+
825,
|
| 1319 |
+
665
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 11
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and Checkerboard Artifacts. Distill, 2016. doi: 10.23915/distill.00003. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
173,
|
| 1328 |
+
674,
|
| 1329 |
+
825,
|
| 1330 |
+
700
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 11
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual Reasoning with a General Conditioning Layer. arXiv:1709.07871 [cs, stat], September 2017. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
174,
|
| 1339 |
+
709,
|
| 1340 |
+
821,
|
| 1341 |
+
736
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 11
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Scott Reed and Nando De Freitas. Neural programmer-interpreters. arXiv preprint arXiv:1511.06279, 2015. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
174,
|
| 1350 |
+
744,
|
| 1351 |
+
810,
|
| 1352 |
+
760
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 11
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Adam Santoro, David Raposo, David GT Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. arXiv preprint arXiv:1706.01427, 2017. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
173,
|
| 1361 |
+
767,
|
| 1362 |
+
823,
|
| 1363 |
+
808
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 11
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Jürgen Schmidhuber. On learning to think: Algorithmic information theory for novel combinations of reinforcement learning controllers and recurrent neural world models. arXiv preprint arXiv:1511.09249, 2015. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
174,
|
| 1372 |
+
815,
|
| 1373 |
+
823,
|
| 1374 |
+
854
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 11
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Elizabeth S Spelke. Where perceiving ends and thinking begins: The apprehension of objects in infancy. 1988. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
173,
|
| 1383 |
+
863,
|
| 1384 |
+
825,
|
| 1385 |
+
878
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 11
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Elizabeth S Spelke. Principles of object perception. Cognitive science, 14(1):29–56, 1990. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
178,
|
| 1394 |
+
887,
|
| 1395 |
+
715,
|
| 1396 |
+
901
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 11
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "Elizabeth S. Spelke and Katherine D. Kinzler. Core knowledge. Developmental science, 10(1):89–96, 2007. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
171,
|
| 1405 |
+
910,
|
| 1406 |
+
808,
|
| 1407 |
+
924
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 11
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In International Conference on Machine Learning, pp. 843–852, 2015. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
171,
|
| 1416 |
+
103,
|
| 1417 |
+
823,
|
| 1418 |
+
132
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 12
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Ilya Sutskever, Geoffrey E. Hinton, and Graham W. Taylor. The recurrent temporal restricted boltzmann machine. In Advances in Neural Information Processing Systems, pp. 1601–1608, 2009. ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
173,
|
| 1427 |
+
140,
|
| 1428 |
+
823,
|
| 1429 |
+
166
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 12
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Tomer D Ullman, Elizabeth Spelke, Peter Battaglia, and Joshua B Tenenbaum. Mind games: Game engines as an architecture for intuitive physics. Trends in Cognitive Sciences, 21(9):649–665, 2017. ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
174,
|
| 1438 |
+
174,
|
| 1439 |
+
821,
|
| 1440 |
+
202
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 12
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Nicholas Watters, Andrea Tacchetti, Theophane Weber, Razvan Pascanu, Peter Battaglia, and Daniel Zoran. Visual Interaction Networks. arXiv:1706.01433 [cs], June 2017. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
174,
|
| 1449 |
+
210,
|
| 1450 |
+
821,
|
| 1451 |
+
237
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 12
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "Paul J Werbos. Generalization of backpropagation with application to a recurrent gas market model. Neural networks, 1(4):339–356, 1988. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
173,
|
| 1460 |
+
244,
|
| 1461 |
+
823,
|
| 1462 |
+
272
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 12
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Ronald J Williams. Complexity of exact gradient computation algorithms for recurrent neural networks. Technical report, Technical Report Technical Report NU-CCS-89-27, Boston: Northeastern University, College of Computer Science, 1989. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
174,
|
| 1471 |
+
280,
|
| 1472 |
+
823,
|
| 1473 |
+
319
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 12
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "Jiajun Wu, Ilker Yildirim, Joseph J Lim, Bill Freeman, and Josh Tenenbaum. Galileo: Perceiving physical object properties by integrating a physics engine with deep learning. In Advances in neural information processing systems, pp. 127–135, 2015. ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
173,
|
| 1482 |
+
328,
|
| 1483 |
+
823,
|
| 1484 |
+
367
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 12
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015. ",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
173,
|
| 1493 |
+
376,
|
| 1494 |
+
823,
|
| 1495 |
+
415
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 12
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"text": "Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in Neural Information Processing Systems, pp. 3394–3404, 2017. ",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
174,
|
| 1504 |
+
424,
|
| 1505 |
+
823,
|
| 1506 |
+
450
|
| 1507 |
+
],
|
| 1508 |
+
"page_idx": 12
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"type": "text",
|
| 1512 |
+
"text": "A EXPERIMENT DETAILS ",
|
| 1513 |
+
"text_level": 1,
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
176,
|
| 1516 |
+
102,
|
| 1517 |
+
400,
|
| 1518 |
+
118
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 13
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "In all experiments we train the networks using ADAM (Kingma & Ba, 2014) with default parameters, a batch size of 64 and $5 0 0 0 0 \\mathrm { t r a i n } + 1 0 0 0 0$ validation $+ 1 0 0 0 0$ test inputs. The quality of the learned groupings is evaluated by computing the Adjusted Rand Index (ARI; Hubert & Arabie (1985)) with respect to the ground truth, while ignoring the background and overlap regions (as is consistent with earlier work (Greff et al., 2017)). We use early stopping when the validation loss has not improved for 10 epochs. ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
174,
|
| 1527 |
+
132,
|
| 1528 |
+
825,
|
| 1529 |
+
217
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 13
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "A.1 BOUNCING BALLS ",
|
| 1536 |
+
"text_level": 1,
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
176,
|
| 1539 |
+
233,
|
| 1540 |
+
348,
|
| 1541 |
+
248
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 13
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "The bouncing balls data is similar to previous work (Sutskever et al., 2009) with a few modifications. The data consists of sequences of $6 4 \\times 6 4$ binary images over 30 time-steps and balls are randomly sampled from two types: one ball is six times heavier and 1.25 times larger in radius than the other. The balls are initialized with random initial positions and velocities. Balls bounce elastically against each other and the image window. ",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
173,
|
| 1550 |
+
258,
|
| 1551 |
+
826,
|
| 1552 |
+
329
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 13
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "As in previous work (Greff et al., 2017) we use a convolutional encoder-decoder architecture with a recurrent neural network as bottleneck, that is updated according to (4): ",
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
174,
|
| 1561 |
+
335,
|
| 1562 |
+
825,
|
| 1563 |
+
364
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 13
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "1. $4 \\times 4$ conv. 16 ELU. stride 2. layer norm \n2. $4 \\times 4$ conv. 32 ELU. stride 2. layer norm \n3. $4 \\times 4$ conv. 64 ELU. stride 2. layer norm \n4. fully connected. 512 ELU. layer norm \n5. recurrent. 250 Sigmoid. layer norm on the output \n6. fully connected. 512 RELU. layer norm \n7. fully connected. $8 \\times 8 \\times 6 4$ RELU. layer norm \n8. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 32 RELU. layer norm \n9. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 16 RELU. layer norm \n10. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 1 Sigmoid ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
210,
|
| 1572 |
+
375,
|
| 1573 |
+
648,
|
| 1574 |
+
556
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 13
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "text",
|
| 1580 |
+
"text": "Instead of using transposed convolutions (to implement the \"de-convolution\") we first reshape the image using the default nearest-neighbour interpolation followed by a normal convolution in order to avoid frequency artifacts (Odena et al., 2016). Note that we do not add layer norm on the recurrent connection. ",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
173,
|
| 1583 |
+
566,
|
| 1584 |
+
825,
|
| 1585 |
+
623
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 13
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "At each timestep added bitflip nois $t$ $\\gamma _ { : , k } ( \\boldsymbol { \\psi } _ { : , k } ^ { ( t - 1 ) } - \\hat { { \\mathbf x } } ^ { ( t ) } )$ as input to the network, where rlier work (Greff et al., 2017) R- $\\tilde { \\pmb x }$ is the input withM is trained with $\\gamma = 0 . 2 )$ \na next-step prediction objective, the prior for each pixel in the data is set to a Bernoulli distribution \nwith $p = 0$ , and we prevent conflicting gradient updates by not back-propagating any gradients \nthrough $\\gamma$ . ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
174,
|
| 1594 |
+
627,
|
| 1595 |
+
825,
|
| 1596 |
+
702
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 13
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "text",
|
| 1602 |
+
"text": "The Interaction Function $\\mathbf { \\hat { T } } ^ { \\mathrm { R - N E M } }$ network is structured as follows: ",
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
174,
|
| 1605 |
+
707,
|
| 1606 |
+
606,
|
| 1607 |
+
723
|
| 1608 |
+
],
|
| 1609 |
+
"page_idx": 13
|
| 1610 |
+
},
|
| 1611 |
+
{
|
| 1612 |
+
"type": "text",
|
| 1613 |
+
"text": "• ${ \\bf M L P } ^ { e n c }$ : fully connected. 250 RELU. layer norm \n• ${ \\bf M L P } ^ { e m b }$ : fully connected. 250 RELU. layer norm \n• ${ \\bf M L P } ^ { e f f }$ : fully connected. 250 RELU. layer norm \n• ${ \\bf M L P } ^ { a t t }$ : fully connected. 100 Tanh. layer norm - fully connected. 1 Sigmoid. ",
|
| 1614 |
+
"bbox": [
|
| 1615 |
+
215,
|
| 1616 |
+
733,
|
| 1617 |
+
738,
|
| 1618 |
+
806
|
| 1619 |
+
],
|
| 1620 |
+
"page_idx": 13
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"type": "text",
|
| 1624 |
+
"text": "We experimented with deeper architectures, but were unable to observe significant improvement. ",
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
171,
|
| 1627 |
+
816,
|
| 1628 |
+
807,
|
| 1629 |
+
832
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 13
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "text",
|
| 1635 |
+
"text": "Comparison and Extrapolation In the comparison experiment both R-NEM and RNN-EM are trained with $K = 5$ (unless otherwise mentioned), following insights from Greff et al. (2017). On the extrapolation task we adjusted the number of components at test time to $K = 8$ . ",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
176,
|
| 1638 |
+
847,
|
| 1639 |
+
823,
|
| 1640 |
+
888
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 13
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "text",
|
| 1646 |
+
"text": "When comparing to RNN-EM we used $\\mathbf { Y } = \\mathbf { Y } ^ { \\mathrm { R N N - E M } }$ . For comparing to RNN we set $K = 1$ and used $\\dot { \\mathbf { Y } } = \\bar { \\mathbf { Y } } ^ { \\mathrm { R N N - E M } }$ , yielding a standard recurrent autoencoder that receives at each time-step the difference between the prediction and the noisy ground-truth as input. In case of LSTM, we additionally replace the recurrent layer with an LSTM update. The R-NEM no att model is the same as R-NEM, without $\\mathbf { M L P } ^ { a t t }$ , such that $\\alpha _ { : , : } = 1$ ",
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
174,
|
| 1649 |
+
893,
|
| 1650 |
+
823,
|
| 1651 |
+
924
|
| 1652 |
+
],
|
| 1653 |
+
"page_idx": 13
|
| 1654 |
+
},
|
| 1655 |
+
{
|
| 1656 |
+
"type": "text",
|
| 1657 |
+
"text": "",
|
| 1658 |
+
"bbox": [
|
| 1659 |
+
173,
|
| 1660 |
+
103,
|
| 1661 |
+
823,
|
| 1662 |
+
146
|
| 1663 |
+
],
|
| 1664 |
+
"page_idx": 14
|
| 1665 |
+
},
|
| 1666 |
+
{
|
| 1667 |
+
"type": "text",
|
| 1668 |
+
"text": "Simulation Since the $\\mathrm { E }$ -step relies on the ground-truth, which was not available for simulation, we used a thresholded version of $\\operatorname* { m a x } _ { k } \\psi$ at 0.1 (such that everything below becomes 0 and everything above becomes 1) as a replacement in stead. ",
|
| 1669 |
+
"bbox": [
|
| 1670 |
+
174,
|
| 1671 |
+
161,
|
| 1672 |
+
825,
|
| 1673 |
+
204
|
| 1674 |
+
],
|
| 1675 |
+
"page_idx": 14
|
| 1676 |
+
},
|
| 1677 |
+
{
|
| 1678 |
+
"type": "text",
|
| 1679 |
+
"text": "Occlusion On the occlusion dataset we used three balls with equal mass. The curtain was spawned at a random location for each sequence. We trained R-NEM with $K = 5$ . ",
|
| 1680 |
+
"bbox": [
|
| 1681 |
+
173,
|
| 1682 |
+
218,
|
| 1683 |
+
823,
|
| 1684 |
+
247
|
| 1685 |
+
],
|
| 1686 |
+
"page_idx": 14
|
| 1687 |
+
},
|
| 1688 |
+
{
|
| 1689 |
+
"type": "text",
|
| 1690 |
+
"text": "A.2 SPACE INVADERS ",
|
| 1691 |
+
"text_level": 1,
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
176,
|
| 1694 |
+
263,
|
| 1695 |
+
339,
|
| 1696 |
+
279
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 14
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "text",
|
| 1702 |
+
"text": "We used a pre-trained DQN to produce a dataset with sequences of 25 time-steps. The DQN receives a stack of four frames as input and we recorded every first frame of this stack. These frames were first pre-processed as in Mnih et al. (2013) and then thresholded at 0.0001 to obtain binary images. ",
|
| 1703 |
+
"bbox": [
|
| 1704 |
+
178,
|
| 1705 |
+
290,
|
| 1706 |
+
826,
|
| 1707 |
+
332
|
| 1708 |
+
],
|
| 1709 |
+
"page_idx": 14
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "text",
|
| 1713 |
+
"text": "Since the images are $8 4 \\times 8 4$ we used a different encoder and decoder, given by: ",
|
| 1714 |
+
"bbox": [
|
| 1715 |
+
173,
|
| 1716 |
+
338,
|
| 1717 |
+
702,
|
| 1718 |
+
353
|
| 1719 |
+
],
|
| 1720 |
+
"page_idx": 14
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "text",
|
| 1724 |
+
"text": "1. $4 \\times 4$ conv. 16 ELU. stride 2. layer norm \n2. $4 \\times 4$ conv. 32 ELU. stride 2. layer norm \n3. $4 \\times 4$ conv. 32 ELU. stride 2. layer norm \n4. $4 \\times 4$ conv. 32 ELU. stride 2. layer norm \n5. fully connected. 512 ELU. layer norm \n6. recurrent. 250 Sigmoid. layer norm on the output \n7. fully connected. 512 RELU. layer norm \n8. fully connected. $8 \\times 8 \\times 6 4$ RELU. layer norm \n9. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 32 RELU. layer norm \n10. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 32 RELU. layer norm \n11. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 16 RELU. layer norm \n12. $4 \\times 4$ reshape 2 nearest-neighbour, conv. 1 Sigmoid ",
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
209,
|
| 1727 |
+
366,
|
| 1728 |
+
650,
|
| 1729 |
+
589
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 14
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "We used the same architecture for $\\Upsilon ^ { \\mathrm { R - N E M } }$ , with the only difference that at each time-step we concatenated an embedding of the action produced by the agent to the hidden state. Here we used a single layer MLP with 10 units and a $R e L U$ activation function to compute this embedding. ",
|
| 1736 |
+
"bbox": [
|
| 1737 |
+
176,
|
| 1738 |
+
601,
|
| 1739 |
+
825,
|
| 1740 |
+
643
|
| 1741 |
+
],
|
| 1742 |
+
"page_idx": 14
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "text",
|
| 1746 |
+
"text": "In the Atari experiment we trained with $K = 4$ and reduced the input noise to 0.02, in order to preserve tiny elements such as bullets (that only occupy 1-2 pixels). ",
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
171,
|
| 1749 |
+
650,
|
| 1750 |
+
823,
|
| 1751 |
+
680
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 14
|
| 1754 |
+
}
|
| 1755 |
+
]
|