Add Batch 83dd53b2-57a0-4ee6-8f6e-b9b881631735
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2002.06xxx/2002.06755/d54db34f-95c2-4379-a9af-7790d9ca3e0f_content_list.json +0 -0
- 2002.06xxx/2002.06755/d54db34f-95c2-4379-a9af-7790d9ca3e0f_model.json +0 -0
- 2002.06xxx/2002.06755/d54db34f-95c2-4379-a9af-7790d9ca3e0f_origin.pdf +3 -0
- 2002.06xxx/2002.06755/full.md +603 -0
- 2002.06xxx/2002.06755/images.zip +3 -0
- 2002.06xxx/2002.06755/layout.json +0 -0
- 2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_content_list.json +0 -0
- 2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_model.json +0 -0
- 2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_origin.pdf +3 -0
- 2002.06xxx/2002.06757/full.md +599 -0
- 2002.06xxx/2002.06757/images.zip +3 -0
- 2002.06xxx/2002.06757/layout.json +0 -0
- 2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_content_list.json +1714 -0
- 2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_model.json +0 -0
- 2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_origin.pdf +3 -0
- 2002.06xxx/2002.06789/full.md +365 -0
- 2002.06xxx/2002.06789/images.zip +3 -0
- 2002.06xxx/2002.06789/layout.json +0 -0
- 2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_content_list.json +0 -0
- 2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_model.json +0 -0
- 2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_origin.pdf +3 -0
- 2002.06xxx/2002.06805/full.md +678 -0
- 2002.06xxx/2002.06805/images.zip +3 -0
- 2002.06xxx/2002.06805/layout.json +0 -0
- 2002.06xxx/2002.06820/b62d4baf-aeea-4bff-82d1-b6e4044e1482_content_list.json +1975 -0
- 2002.06xxx/2002.06820/b62d4baf-aeea-4bff-82d1-b6e4044e1482_model.json +0 -0
- 2002.06xxx/2002.06820/b62d4baf-aeea-4bff-82d1-b6e4044e1482_origin.pdf +3 -0
- 2002.06xxx/2002.06820/full.md +409 -0
- 2002.06xxx/2002.06820/images.zip +3 -0
- 2002.06xxx/2002.06820/layout.json +0 -0
- 2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_content_list.json +0 -0
- 2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_model.json +0 -0
- 2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_origin.pdf +3 -0
- 2002.06xxx/2002.06823/full.md +435 -0
- 2002.06xxx/2002.06823/images.zip +3 -0
- 2002.06xxx/2002.06823/layout.json +0 -0
- 2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_content_list.json +1590 -0
- 2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_model.json +1921 -0
- 2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_origin.pdf +3 -0
- 2002.06xxx/2002.06838/full.md +326 -0
- 2002.06xxx/2002.06838/images.zip +3 -0
- 2002.06xxx/2002.06838/layout.json +0 -0
- 2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_content_list.json +0 -0
- 2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_model.json +0 -0
- 2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_origin.pdf +3 -0
- 2002.06xxx/2002.06910/full.md +0 -0
- 2002.06xxx/2002.06910/images.zip +3 -0
- 2002.06xxx/2002.06910/layout.json +0 -0
- 2002.06xxx/2002.06961/6711267c-9526-4dc2-801e-2a2790de8e93_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -7983,3 +7983,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 7983 |
2002.09xxx/2002.09277/14e5ca3a-86de-4f52-bec0-96a32d06bc13_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7984 |
2002.09xxx/2002.09283/46414b69-89d5-4a99-b553-a19b8546a31d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7985 |
2002.11xxx/2002.11770/cc1dc24f-cb28-4ab2-a86d-aff2d87643ab_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7983 |
2002.09xxx/2002.09277/14e5ca3a-86de-4f52-bec0-96a32d06bc13_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7984 |
2002.09xxx/2002.09283/46414b69-89d5-4a99-b553-a19b8546a31d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7985 |
2002.11xxx/2002.11770/cc1dc24f-cb28-4ab2-a86d-aff2d87643ab_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7986 |
+
2002.06xxx/2002.06755/d54db34f-95c2-4379-a9af-7790d9ca3e0f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7987 |
+
2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7988 |
+
2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7989 |
+
2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7990 |
+
2002.06xxx/2002.06820/b62d4baf-aeea-4bff-82d1-b6e4044e1482_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7991 |
+
2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7992 |
+
2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7993 |
+
2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7994 |
+
2002.06xxx/2002.06961/6711267c-9526-4dc2-801e-2a2790de8e93_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7995 |
+
2002.07xxx/2002.07007/3abab6be-8659-4b7d-911f-b513175456fb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7996 |
+
2002.07xxx/2002.07017/230038cb-d536-4720-b77e-69ae0422827a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7997 |
+
2002.07xxx/2002.07028/97bba3ad-0144-4e16-aa17-68e508def7d8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7998 |
+
2002.07xxx/2002.07063/14a7834e-f2c0-4c68-964d-2aed85a9a2a8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 7999 |
+
2002.07xxx/2002.07066/033b75dc-e4e4-4d70-b1d2-08ef37b54649_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8000 |
+
2002.07xxx/2002.07080/ef65fdce-ac8d-40db-bfb9-3f6c500e3a94_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8001 |
+
2002.07xxx/2002.07101/79dc6428-cecf-447c-ad8c-9102dc7e1949_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8002 |
+
2002.07xxx/2002.07264/31a0fa44-0c35-4a84-aa4f-30b1f666f4bf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8003 |
+
2002.07xxx/2002.07366/973f5def-f5a2-4080-b422-95f9948315fb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8004 |
+
2002.07xxx/2002.07367/a037b3ca-35a9-4af0-bacf-7ea1d03d2125_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8005 |
+
2002.07xxx/2002.07376/5ccbbaae-a5be-4b2d-a3b6-2ae5035a1fef_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8006 |
+
2002.07xxx/2002.07394/223cfdf4-7b09-42f6-969e-66de21cc6c5c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8007 |
+
2002.07xxx/2002.07400/f480530a-a868-45e5-b657-065bd4e17911_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8008 |
+
2002.07xxx/2002.07420/51788a23-8489-411c-9010-dbbe0734af9e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8009 |
+
2002.07xxx/2002.07442/a031468a-5b2d-4a65-ae0a-627584231319_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8010 |
+
2002.07xxx/2002.07510/0288afb0-ee51-47c3-8808-5fbebd8064bb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8011 |
+
2002.07xxx/2002.07514/e76b13c2-31d1-437c-a527-d8de5dcb6511_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8012 |
+
2002.07xxx/2002.07526/9119f6c3-a847-45ad-ad90-ef7d55549ef5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8013 |
+
2002.07xxx/2002.07530/f09c8b08-6304-4014-a761-4c4f91a5537f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8014 |
+
2002.07xxx/2002.07656/8ba0d926-d839-444f-b339-9b314e762e4e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8015 |
+
2002.07xxx/2002.07686/1646a2ff-97d2-4bdb-837e-a39b93942218_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8016 |
+
2002.07xxx/2002.07687/d892f5da-8732-4bdc-813f-2ec3d127e7f9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8017 |
+
2002.07xxx/2002.07717/6971a97d-e404-42a3-bca7-5e910fb86442_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8018 |
+
2002.07xxx/2002.07764/5a850326-8b3a-4d72-befd-f6b9948a15af_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8019 |
+
2002.07xxx/2002.07772/c4c51162-ec04-410d-9b6b-ca963be3088a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8020 |
+
2002.07xxx/2002.07793/fc4f8681-bd24-40b7-8c66-8b3a4760fac4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8021 |
+
2002.07xxx/2002.07839/4d9c4dd4-5987-48c2-b39a-045e2a555118_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8022 |
+
2002.07xxx/2002.07842/24ace877-ccd2-4b21-a7b5-845c185b2619_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8023 |
+
2002.07xxx/2002.07867/c35f2498-8495-470b-911b-81a36efc0249_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8024 |
+
2002.07xxx/2002.07948/a6220a41-93bf-4589-9302-8c832de15e41_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8025 |
+
2002.07xxx/2002.07953/adb03530-b47f-4866-a126-98605a820182_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8026 |
+
2002.07xxx/2002.07962/164f7909-ef8a-4e49-b41e-081369e413f3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8027 |
+
2002.07xxx/2002.07971/b99e13f0-4dbb-4b4d-bcdd-c12a836639ce_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8028 |
+
2002.07xxx/2002.07993/0dabdd04-242f-4c7a-bfb2-c2d0626627ee_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8029 |
+
2002.07xxx/2002.07995/d9ac4aae-f82c-40d1-bc7b-8bd1271fde1c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8030 |
+
2002.08xxx/2002.08025/62e36cad-4bd9-4152-b987-caee7b69ad0c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8031 |
+
2002.08xxx/2002.08035/1086d534-e1d1-4de7-aef8-745fa3391581_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8032 |
+
2002.08xxx/2002.08046/28a8bb75-4692-461e-979a-8d3059c89317_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8033 |
+
2002.08xxx/2002.08053/3c057ed5-9045-402e-af96-125b30e9ad74_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8034 |
+
2002.08xxx/2002.08071/81d5353e-8861-4a4b-9a9d-af41e9f19f9c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8035 |
+
2002.08xxx/2002.08087/c4561c1f-eed0-4dc3-9b23-e20c6d750fc3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8036 |
+
2002.08xxx/2002.08098/c5b95f40-f4d8-4d0b-bb45-5d74f93ba243_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8037 |
+
2002.08xxx/2002.08111/a94c9f32-6747-4161-98aa-409afa57a13c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8038 |
+
2002.08xxx/2002.08118/e57a5fc2-cacf-4f78-8860-e7360b504701_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8039 |
+
2002.08xxx/2002.08119/eb12bf9f-82c5-42ec-810b-3ad5ac212165_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8040 |
+
2002.08xxx/2002.08129/256baaa8-da97-40e7-ae85-45ec954cc4a3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8041 |
+
2002.08xxx/2002.08136/b71f7d8a-ff8e-4bb3-bffd-0666b7ead69f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8042 |
+
2002.08xxx/2002.08768/1a4f3959-72a4-450a-be2a-88c22fa2c760_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8043 |
+
2002.08xxx/2002.08953/a0e3775a-d20b-48cf-bb29-1feb854b03ab_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8044 |
+
2002.10xxx/2002.10253/a5ca0c52-17db-46fc-a6fc-cbdeefc740ab_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8045 |
+
2002.11xxx/2002.11635/bf09b06b-c84c-4cd2-b1b9-127baf66b403_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8046 |
+
2002.11xxx/2002.11808/21e4e4bc-7b52-48b1-b0e7-5a2379614694_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8047 |
+
2003.00xxx/2003.00819/b39bbd4e-7317-40d8-8735-52b4b4398563_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8048 |
+
2003.02xxx/2003.02944/f014b1d2-4b4b-42b7-9ac1-536850ec0d4b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 8049 |
+
2003.11xxx/2003.11632/0b731065-e248-486e-a6c5-d0c1ccd92810_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2002.06xxx/2002.06755/d54db34f-95c2-4379-a9af-7790d9ca3e0f_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06755/d54db34f-95c2-4379-a9af-7790d9ca3e0f_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06755/d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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Unifying Graph Convolutional Neural Networks and Label Propagation
|
| 2 |
+
|
| 3 |
+
Hongwei Wang<sup>1</sup> Jure Leskovec<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Label Propagation (LPA) and Graph Convolutional Neural Networks (GCN) are both message passing algorithms on graphs. Both solve the task of node classification but LPA propagates node label information across the edges of the graph, while GCN propagates and transforms node feature information. However, while conceptually similar, theoretical relation between LPA and GCN has not yet been investigated. Here we study the relationship between LPA and GCN in terms of two aspects: (1) feature/label smoothing where we analyze how the feature/label of one node is spread over its neighbors; And, (2) feature/label influence of how much the initial feature/label of one node influences the final feature/label of another node. Based on our theoretical analysis, we propose an end-to-end model that unifies GCN and LPA for node classification. In our unified model, edge weights are learnable, and the LPA serves as regularization to assist the GCN in learning proper edge weights that lead to improved classification performance. Our model can also be seen as learning attention weights based on node labels, which is more task-oriented than existing feature-based attention models. In a number of experiments on real-world graphs, our model shows superiority over state-of-the-art GCN-based methods in terms of node classification accuracy.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Consider the problem of node classification in a graph, where the goal is to learn a mapping $\mathcal{M}:\mathcal{V}\to \mathcal{L}$ from node set $\mathcal{V}$ to label set $\mathcal{L}$ . Solution to this problem is widely applicable to various scenarios, e.g., inferring income of users in a social network or classifying scientific articles in a citation network. Different from a generic machine
|
| 12 |
+
|
| 13 |
+
<sup>1</sup>Computer Science Department, Stanford University, Stanford, CA 94305, United States. Correspondence to: Hongwei Wang <hongweiw@cs.stanford.edu>.
|
| 14 |
+
|
| 15 |
+
learning problem where samples are independent from each other, nodes are connected by edges in the graph, which provide additional information and require more delicate modeling. To capture the graph information, researchers have mainly designed models on the assumption that labels and features vary smoothly over the edges of the graph. In particular, on the label side $\mathcal{L}$ , node labels are propagated and aggregated along edges in the graph, which is known as Label Propagation Algorithm (LPA) (Zhu et al., 2005; Zhou et al., 2004; Zhang & Lee, 2007; Wang & Zhang, 2008; Karasuyama & Mamitsuka, 2013; Gong et al., 2017; Liu et al., 2019a); On the node side $\mathcal{V}$ , node features are propagated along edges and transformed through neural network layers, which is known as Graph Convolutional Neural Networks (GCN) (Kipf & Welling, 2017; Hamilton et al., 2017; Li et al., 2018; Xu et al., 2018; Liao et al., 2019; Xu et al., 2019; Qu et al., 2019).
|
| 16 |
+
|
| 17 |
+
GCN and LPA are related in that they propagate features and labels on the two sides of the mapping $\mathcal{M}$ , respectively. However, the relationship between GCN and LPA has not yet been investigated. Specifically, what is the theoretical relationship between GCN and LPA, and how can they be combined to develop a more accurate model for node classification in graphs?
|
| 18 |
+
|
| 19 |
+
Here we study the theoretical relationship between GCN and LPA from two viewpoints: (1) Feature/label smoothing, where we show that the intuition behind GCN/LPA is smoothing features/labels of nodes across the edges of the graph, i.e., one node's feature/label equals the weighted average of features/labels of its neighbors. We prove that if the weights of edges in a graph smooth the node features with high precision, they also smooth the node labels with guaranteed upper bound on the smoothing error. And, (2) feature/label influence, where we quantify how much the initial feature/label of node $v_{b}$ influences the output feature/label of node $v_{a}$ in GCN/LPA by studying the Jacobian/gradients of node $v_{b}$ with respect to node $v_{a}$ . We also prove the quantitative relationship between feature influence and label influence.
|
| 20 |
+
|
| 21 |
+
Based on the above theoretical analysis, we propose a unified model GCN-LPA for node classification. We show that the key to improving the performance of GCN is to enable nodes within the same class/label to connect more strongly
|
| 22 |
+
|
| 23 |
+
with each other by making edge weights/strengths trainable. Then we prove that increasing the strength of edges between the nodes of the same class is equivalent to increasing the accuracy of LPA's predictions. Therefore, we can first learn the optimal edge weights by minimizing the loss of predictions in LPA, then plug the optimal edge weights into a GCN to learn node representations and do final classification. In GCN-LPA, we further combine the two steps together and train the whole model in an end-to-end fashion, where the LPA part serves as regularization to assist the GCN part in learning proper edge weights that benefit the separation of different node classes. It is worth noticing that GCN-LPA can also be seen as learning attention weights for edges based on node label information, which requires less handcrafting and is more task-oriented than existing work that learns attention weights based on node feature similarity (Velicković et al., 2018; Thekumparampil et al., 2018; Zhang et al., 2018; Liu et al., 2019b).
|
| 24 |
+
|
| 25 |
+
We conduct extensive experiments on five datasets, and the results indicate that our model outperforms state-of-the-art methods in terms of classification accuracy. The experimental results also show that combining GCN and LPA together is able to learn more informative edge weights thereby leading to better performance.
|
| 26 |
+
|
| 27 |
+
# 2. Unifying GCN and LPA
|
| 28 |
+
|
| 29 |
+
In this section, we first formulate the node classification problem and briefly introduce LPA and GCN. We then prove their relationship from the viewpoints of smoothing and influence. Based on the theoretical findings, we propose a unified model GCN-LPA, and analyze why our model is theoretically superior to vanilla GCN.
|
| 30 |
+
|
| 31 |
+
# 2.1. Problem Formulation and Preliminaries
|
| 32 |
+
|
| 33 |
+
We begin by describing the problem of node classification on graphs and introducing notation. Consider a graph $\mathcal{G} = (\mathcal{V}, A, X, Y)$ , where $\mathcal{V} = \{v_1, \dots, v_n\}$ is the set of nodes, $A \in \mathbb{R}^{n \times n}$ is the adjacency matrix (self-loops are included), $X$ is the feature matrix of nodes and $Y$ is labels of nodes. $a_{ij}$ (the $ij$ -th entry of $A$ ) is the weight of the edge connecting $v_i$ and $v_j$ . $\mathcal{N}(v)$ denotes the set of immediate neighbors of node $v$ in graph $\mathcal{G}$ . Each node $v_i$ has a feature vector $\mathbf{x}_i$ which is the $i$ -th row of $X$ , while only the first $m$ nodes have labels $y_1, \dots, y_m$ from a label set $\mathcal{L} = \{1, \dots, c\}$ . The goal is to learn a mapping $\mathcal{M}: \mathcal{V} \to \mathcal{L}$ and predict labels of unlabeled nodes.
|
| 34 |
+
|
| 35 |
+
Label Propagation Algorithm. LPA assumes that two connected nodes are likely to have the same label, and thus it propagates labels iteratively along the edges. Let $Y^{(k)} = [y_1^{(k)}, \dots, y_n^{(k)}]^{\top} \in \mathbb{R}^{n \times c}$ be the soft label matrix in iteration $k > 0$ , in which the $i$ -th row $y_i^{(k)\top}$ denotes the
|
| 36 |
+
|
| 37 |
+
predicted label distribution for node $v_{i}$ in iteration $k$ . When $k = 0$ , the initial label matrix $Y^{(0)} = [y_1^{(0)},\dots ,y_n^{(0)}]^{\top}$ consists of one-hot label indicator vectors $y_{i}^{(0)}$ for $i = 1,\dots ,m$ (i.e., labeled nodes) or zero vectors otherwise (i.e., unlabeled nodes). Let $D$ be the diagonal degree matrix for $A$ with entries $d_{ii} = \sum_j a_{ij}$ . Then LPA (Zhu et al., 2005) in iteration $k$ is formulated as the following two steps:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
Y ^ {(k + 1)} = D ^ {- 1} A Y ^ {(k)}, \tag {1}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
y _ {i} ^ {(k + 1)} = y _ {i} ^ {(0)}, \forall i \leq m. \tag {2}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
In Eq. (1), all nodes propagate labels to their neighbors according to normalized edge weights. Then in Eq. (2), labels of all labeled nodes are reset to their initial values, because LPA wants to persist labels of nodes which are labeled so that unlabeled nodes do not overpower the labeled ones as the initial labels would otherwise fade away.
|
| 48 |
+
|
| 49 |
+
Graph Convolutional Neural Network. GCN is a multi-layer feedforward neural network that propagates and transforms node features across the graph. The layer-wise propagation rule of GCN is $X^{(k + 1)} = \sigma (D^{-\frac{1}{2}}AD^{-\frac{1}{2}}X^{(k)}W^{(k)})$ , where $W^{(k)}$ is trainable weight matrix in the $k$ -th layer, $\sigma (\cdot)$ is an activation function such as ReLU, and $X^{(k)} = [\mathbf{x}_1^{(k)},\dots ,\mathbf{x}_n^{(k)}]^\top$ are the $k$ -th layer node representations with $X^{(0)} = X$ . To align with the above LPA, we use $D^{-1}A$ as the normalized adjacency matrix instead of the symmetric one $D^{-\frac{1}{2}}AD^{-\frac{1}{2}}$ proposed by (Kipf & Welling, 2017). Therefore, the feature propagation scheme of GCN in layer $k$ is:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
X ^ {(k + 1)} = \sigma \left(D ^ {- 1} A X ^ {(k)} W ^ {(k)}\right). \tag {3}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
Notice similarity between Eqs. (1) and (3). Next we shall study and uncover the relationship between the two equations.
|
| 56 |
+
|
| 57 |
+
# 2.2. Feature Smoothing and Label Smoothing
|
| 58 |
+
|
| 59 |
+
The intuition behind both LPA and GCN is smoothing (Zhu et al., 2003; Li et al., 2018): In LPA, the final label of a node is the weighted average of labels of its neighbors:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
y _ {i} ^ {(\infty)} = \frac {1}{d _ {i i}} \sum_ {j \in \mathcal {N} (i)} a _ {i j} y _ {j} ^ {(\infty)}. \tag {4}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
In GCN, the final node representation is also the weighted average of representations of its neighbors if we assume $\sigma$ is identity function and $W^{(\cdot)}$ are identity matrices:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\mathbf {x} _ {i} ^ {(\infty)} = \frac {1}{d _ {i i}} \sum_ {j \in \mathcal {N} (i)} a _ {i j} \mathbf {x} _ {j} ^ {(\infty)}. \tag {5}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
Next we show the relationship between feature smoothing and label smoothing:
|
| 72 |
+
|
| 73 |
+
Theorem 1 (Relationship between feature smoothing and label smoothing) Suppose that the latent ground-truth mapping $\mathcal{M}:\mathbf{x}\rightarrow y$ from node features to node labels is differentiable and satisfies $L$ -Lipschitz constraint, i.e., $|\mathcal{M}(\mathbf{x}_1) - \mathcal{M}(\mathbf{x}_2)|\leq L\| \mathbf{x}_1 - \mathbf{x}_2\| _2$ for any $\mathbf{x}_1$ and $\mathbf{x}_2$ ( $L$ is a constant). If the edge weights $\{a_{ij}\}$ approximately smooth $\mathbf{x}_i$ over its immediate neighbors with error $\epsilon_{i}$ , i.e.,
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathbf {x} _ {i} = \frac {1}{d _ {i i}} \sum_ {j \in \mathcal {N} (i)} a _ {i j} \mathbf {x} _ {j} + \epsilon_ {i}, \tag {6}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
then the edge weights $\{a_{ij}\}$ also approximately smooth $y_{i}$ over its immediate neighbors with the following approximation error:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\left| y _ {i} - \frac {1}{d _ {i i}} \sum_ {j \in \mathcal {N} (i)} a _ {i j} y _ {j} \right| \leq L \| \epsilon_ {i} \| _ {2} + o \left(\max _ {j \in \mathcal {N} (i)} \left(\left\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \right\| _ {2}\right)\right), \tag {7}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $o(\alpha)$ denotes a higher order infinitesimal than $\alpha$ .
|
| 86 |
+
|
| 87 |
+
Proof of Theorem 1 is in Appendix A. Theorem 1 indicates that label smoothing is theoretically guaranteed by feature smoothing. Note that if we treat edge weights $\{a_{ij}\}$ learnable, then feature smoothing (i.e., $\epsilon_i\rightarrow 0$ ) can be directly achieved by keeping node features $\mathbf{x}_i$ fixed while setting $\{a_{ij}\}$ appropriately, without resorting to feature propagation in a multi-layer GCN. Therefore, a simple approach to exploit this theorem would be to learn $\{a_{ij}\}$ by reconstructing node feature $\mathbf{x}_i$ from its neighbors, then use the learned $\{a_{ij}\}$ to reconstruct node labels $y_{i}$ (Karasuyama & Mamitsuka, 2013).
|
| 88 |
+
|
| 89 |
+
As shown in Theorem 1, the approximation error of labels is dominated by $L\| \epsilon_i\| _2$ . However, this error could be fairly large in practice because: (1) The number of immediate neighbors for a given node may be too small to reconstruct its features perfectly, especially in the case where node features are high-dimensional and sparse. For example, in a citation network where node features are one-hot bag-of-words vectors, the feature of one article can never be precisely reconstructed if none of its neighboring articles contains the specific word that appears in this article. As a result, $\| \epsilon_i\| _2$ will be non-negligible. This explains why it is beneficial to apply LPA and GCN for multiple iterations/layers in order to include information from farther away neighbors. (2) The ground-truth mapping $\mathcal{M}$ may not be sufficiently smooth due to the complex structure of latent manifold and possible noise, which fails to satisfy $L$ -Lipschitz constraint. In other words, the constant $L$ will be extremely large.
|
| 90 |
+
|
| 91 |
+
# 2.3. Feature Influence and Label Influence
|
| 92 |
+
|
| 93 |
+
To address the above concerns and extend our analysis, we next consider GCN and LPA with multiple layers/iterations,
|
| 94 |
+
|
| 95 |
+
and do not impose any constraint on the ground-truth mapping $\mathcal{M}$ .
|
| 96 |
+
|
| 97 |
+
Consider two nodes $v_{a}$ and $v_{b}$ in a graph. Inspired by (Koh & Liang, 2017) and (Xu et al., 2018), we study the relationship between GCN and LPA in terms of influence, i.e., how the output feature/label of $v_{a}$ will change if the initial feature/label of $v_{b}$ is varied slightly. Technically, the feature/label influence is measured by the Jacobian/gradients of the output feature/label of $v_{a}$ with respect to the initial feature/label of $v_{b}$ . Denote $\mathbf{x}_{a}^{(k)}$ as the $k$ -th layer representation vector of $v_{a}$ in GCN, and $\mathbf{x}_{b}$ as the initial feature vector of $v_{b}$ . We quantify the feature influence of $v_{b}$ on $v_{a}$ as follows:
|
| 98 |
+
|
| 99 |
+
Definition 1 (Feature influence) The feature influence of node $v_{b}$ on node $v_{a}$ after $k$ layers of GCN is the L1-norm of the expected Jacobian matrix $\partial \mathbf{x}_a^{(k)} / \partial \mathbf{x}_b$ :
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
I _ {f} \left(v _ {a}, v _ {b}; k\right) = \left\| \mathbb {E} \left[ \partial \mathbf {x} _ {a} ^ {(k)} / \partial \mathbf {x} _ {b} \right] \right\| _ {1}. \tag {8}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
The normalized feature influence is then defined as
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\tilde {I} _ {f} \left(v _ {a}, v _ {b}; k\right) = \frac {I _ {f} \left(v _ {a} , v _ {b} ; k\right)}{\sum_ {v _ {i} \in \mathcal {V}} I _ {f} \left(v _ {a} , v _ {i} ; k\right)}. \tag {9}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
We also consider the label influence of node $v_{b}$ on node $v_{a}$ in LPA (this implies that $v_{a}$ is unlabeled and $v_{b}$ is labeled). Since different label dimensions of $y_{i}^{(\cdot)}$ do not interact with each other in LPA, we assume that all $y_{i}$ and $y_{i}^{(\cdot)}$ are scalars within [0, 1] (i.e., a binary classification) for simplicity. Label influence is defined as follows:
|
| 112 |
+
|
| 113 |
+
Definition 2 (Label influence) The label influence of labeled node $v_{b}$ on unlabeled node $v_{a}$ after $k$ iterations of LPA is the gradient of $y_{a}^{(k)}$ with respect to $y_{b}$ :
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
I _ {l} \left(v _ {a}, v _ {b}; k\right) = \partial y _ {a} ^ {(k)} / \partial y _ {b}. \tag {10}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
The following theorem shows the relationship between feature influence and label influence:
|
| 120 |
+
|
| 121 |
+
Theorem 2 (Relationship between feature influence and label influence) Assume the activation function used in GCN is ReLU. Denote $v_{a}$ as an unlabeled node, $v_{b}$ as a labeled node, and $\beta$ as the fraction of unlabeled nodes. Then the label influence of $v_{b}$ on $v_{a}$ after $k$ iterations of LPA equals, in expectation, to the cumulative normalized feature influence of $v_{b}$ on $v_{a}$ after $k$ layers of GCN:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\mathbb {E} \left[ I _ {l} \left(v _ {a}, v _ {b}; k\right) \right] = \sum_ {j = 1} ^ {k} \beta^ {j} \tilde {I} _ {f} \left(v _ {a}, v _ {b}; j\right). \tag {11}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
Proof of Theorem 2 is in Appendix B. Intuitively, Theorem 2 shows that if $v_{b}$ has high label influence on $v_{a}$ , then the initial feature vector of $v_{b}$ will also affect the output feature vector of $v_{a}$ to a large extent. Theorem 2 provides the theoretical guideline for designing our unified model in the next subsection.
|
| 128 |
+
|
| 129 |
+
# 2.4. The Unified Model
|
| 130 |
+
|
| 131 |
+
Before introducing the proposed model, we first rethink the GCN method and see what an ideal node representation should be like. Since we aim to classify nodes, the perfect node representation would be such that nodes with the same label are embedded close together, which would give a large separation between different classes. Intuitively, the key to achieve this goal is to enable nodes within the same class to connect more strongly with each other, so that they are pushed together by the GCN. We can therefore make edge strengths/weights trainable, then learn to increase the intraclass feature influence for each class $i$ :
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\sum_ {v _ {a}, v _ {b}: y _ {a} = i, y _ {b} = i} \tilde {I} _ {f} \left(v _ {a}, v _ {b}\right) \tag {12}
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
by adjusting edge weights. However, this requires operating on Jacobian matrices with the size of $d^{(0)} \times d^{(K)}$ ( $d^{(0)}$ and $d^{(K)}$ are the dimensions of initial and output features, respectively), which is impractical if initial node features are high-dimensional. Fortunately, we can turn to optimizing the intra-class label influence instead of Eq. (12), i.e.,
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\sum_ {v _ {a}, v _ {b}: y _ {a} = i, y _ {b} = i} I _ {l} \left(v _ {a}, v _ {b}\right), \tag {13}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
according to Theorem 2. We further show that, by the following theorem, the total intra-class label influence on a given node $v_{a}$ is proportional to the probability that $v_{a}$ is classified correctly by LPA:
|
| 144 |
+
|
| 145 |
+
Theorem 3 (Relationship between label influence and LPA's prediction) Consider a given node $v_{a}$ and its label $y_{a}$ . If we treat node $v_{a}$ as unlabeled, then the total label influence of nodes with label $y_{a}$ on node $v_{a}$ is proportional to the probability that node $v_{a}$ is classified as $y_{a}$ by LPA:
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\sum_ {v _ {b}: y _ {b} = y _ {a}} I _ {l} \left(v _ {a}, v _ {b}; k\right) \propto \Pr \left(\hat {y} _ {a} ^ {l p a} = y _ {a}\right), \tag {14}
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
where $\hat{y}_a^{lpa}$ is the predicted label of $v_{a}$ using a $k$ -iteration LPA.
|
| 152 |
+
|
| 153 |
+
Proof of Theorem 3 is in Appendix C. Theorem 3 indicates that, if edge weights $\{a_{ij}\}$ maximize the probability that $v_{a}$ is correctly classified by LPA, then they also maximize the intra-class label influence on node $v_{a}$ . We can therefore first learn the optimal edge weights $A^{*}$ by minimizing the loss of predicted labels by LPA:
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\begin{array}{l} A ^ {*} = \underset {A} {\arg \min } L _ {l p a} (A) \\ = \arg \min _ {A} \frac {1}{m} \sum_ {v _ {a}: a \leq m} J \left(\hat {y} _ {a} ^ {l p a}, y _ {a}\right), \tag {15} \\ \end{array}
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
(a) A graph with two classes of nodes (red vs. blue)
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
(b) Potential intra-class edges (bold links)
|
| 164 |
+
|
| 165 |
+
Figure 1: A graph with two classes of nodes, while white nodes are unlabeled (Figure 1a). To ease the separation of the two classes, our model will increase the connecting strength among nodes within the same class (i.e., within one dotted circle), thereby increasing their feature/label influence on each other. In this way, our model is able to identify potential intra-class edges (bold links in Figure 1b) and strengthen their weights.
|
| 166 |
+
|
| 167 |
+
where $J$ is the cross-entropy loss, $\hat{y}_a^{lpa}$ and $y_{a}$ are the predicted label distribution of $v_{a}$ using LPA and the true one-hot label of $v_{a}$ , respectively. $a \leq m$ means $v_{a}$ is labeled. The optimal $A^{*}$ maximize the probability that each node is correctly labeled by LPA, thus also increasing the intra-class label influence (by Theorem 3) and intra-class feature influence (by Theorem 2). Then we can apply $A^{*}$ and the corresponding $D^{*}$ to a GCN to predict labels:
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
X ^ {(k + 1)} = \sigma \left(D ^ {* - 1} A ^ {*} X ^ {(k)} W ^ {(k)}\right), k = 0, 1, \dots , K - 1. \tag {16}
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
We use $\hat{y}_a^{gcn}$ , the $a$ -th row of $X^{(K)}$ , to denote the predicted label distribution of $v_a$ using the GCN specified in Eq. (16). The optimal transformation matrices in the GCN can be learned by minimizing the loss of predicted labels by GCN:
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
\begin{array}{l} W ^ {*} = \underset {W} {\arg \min } L _ {g c n} (W, A ^ {*}) \\ = \arg \min _ {W} \frac {1}{m} \sum_ {v _ {a}: a \leq m} J \left(\hat {y} _ {a} ^ {g c n}, y _ {a}\right), \tag {17} \\ \end{array}
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
In practice, it is generally better to combine the above two steps together and train the whole model in an end-to-end fashion:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
W ^ {*}, A ^ {*} = \underset {W, A} {\arg \min } L _ {g c n} (W, A) + \lambda L _ {l p a} (A), \tag {18}
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
where $\lambda$ is the balancing hyper-parameter. In this way, $L_{lpa}(A)$ serves as a regularization term that assists the learning of edge weights $A$ , since it is hard for the GCN to learn
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
(a) Karate club network with noisy edges
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
(b) GCN on the original network
|
| 192 |
+
Figure 2: Node embeddings of Zachary's karate club network trained on a node classification task (red vs. blue). Figure 2a visualizes the graph. Node coordinates in Figure 2b-2e are the embedding coordinates. Notice that GCN does not produce linearly separable embeddings (Figure 2b vs. Figure 2c), while GCN-LPA performs much better even in the presence of noisy edges (Figure 2d vs. Figure 2e). Additional visualizations are included in Appendix E.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
(c) GCN-LPA on the original network
|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
(d) GCN on the noisy network
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
(e) GCN-LPA on the noisy network
|
| 202 |
+
|
| 203 |
+
both $W$ and $A$ simultaneously due to overfitting. The proposed GCN-LPA approach can also be seen as learning the importance of edges that can be used to reconstruct node labels accurately by LPA, then transferring this knowledge from label space to feature space for the GCN. From this perspective, GCN-LPA also connects to Theorem 1 except that the knowledge transfer is in the other direction.
|
| 204 |
+
|
| 205 |
+
It is also worth noticing how the optimal $A^{*}$ is configured. The principle here is that we do not modify the basic structure of the original graph (i.e., not adding or removing edges) but only adjusting weights of existing edges. This is equivalent to learning a positive mask matrix $M$ for the adjacency matrix $A$ and taking the Hadamard product $M \circ A = A^{*}$ . Each element $M_{ij}$ can be set as either a free variable or a function of the nodes at edge endpoints, for example, $M_{ij} = \log \left(\exp (\mathbf{x}_i^\top \mathbf{H}\mathbf{x}_j) + 1\right)$ where $\mathbf{H}$ is a learnable kernel matrix for measuring feature similarity.
|
| 206 |
+
|
| 207 |
+
# 2.5. Analysis of GCN-LPA Model Behavior
|
| 208 |
+
|
| 209 |
+
In this subsection, we show benefits of our unified model compared with GCN by analyzing properties of embeddings produced by the two models. We first analyze the update rule of GCN for node $v_{i}$ :
|
| 210 |
+
|
| 211 |
+
$$
|
| 212 |
+
\mathbf {x} _ {i} ^ {(k + 1)} = \sigma \left(\sum_ {v _ {j} \in \mathcal {N} (v _ {i})} \tilde {a} _ {i j} \mathbf {x} _ {j} ^ {(k)} W ^ {(k)}\right), \tag {19}
|
| 213 |
+
$$
|
| 214 |
+
|
| 215 |
+
where $\tilde{a}_{ij} = a_{ij} / d_{ii}$ is the normalized weight of edge $(j,i)$ . This formula can be decomposed into the following two steps:
|
| 216 |
+
|
| 217 |
+
(1) In aggregation step, we calculate the aggregated representation $\mathbf{h}_i^{(k)}$ of all neighborhoods $\mathcal{N}(v_i)$ :
|
| 218 |
+
|
| 219 |
+
$$
|
| 220 |
+
\mathbf {h} _ {i} ^ {(k)} = \sum_ {v _ {j} \in \mathcal {N} (v _ {i})} \tilde {a} _ {i j} \mathbf {x} _ {j} ^ {(k)}. \tag {20}
|
| 221 |
+
$$
|
| 222 |
+
|
| 223 |
+
(2) In transformation step, the aggregated representation $\mathbf{h}_i^{(k)}$ is mapped to a new space by a transformation matrix
|
| 224 |
+
|
| 225 |
+
and nonlinear function:
|
| 226 |
+
|
| 227 |
+
$$
|
| 228 |
+
\mathbf {x} _ {i} ^ {(k + 1)} = \sigma \left(\mathbf {h} _ {i} ^ {(k)} W ^ {(k)}\right). \tag {21}
|
| 229 |
+
$$
|
| 230 |
+
|
| 231 |
+
We show by the following theorem that the aggregation step reduces the overall distance in the embedding space between the nodes that are connected in the graph:
|
| 232 |
+
|
| 233 |
+
Theorem 4 (Shrinking property in GCN) Let $D(\mathbf{x}) = \frac{1}{2}\sum_{v_i,v_j}\tilde{a}_{ij}\| \mathbf{x}_i - \mathbf{x}_j\| _2^2$ be a distance metric over node embeddings $\mathbf{x}$ . Then we have
|
| 234 |
+
|
| 235 |
+
$$
|
| 236 |
+
D (\mathbf {h} ^ {(k)}) \leq D (\mathbf {x} ^ {(k)}).
|
| 237 |
+
$$
|
| 238 |
+
|
| 239 |
+
Proof of Theorem 4 is in Appendix D. Theorem 4 indicates that the overall distance among connected nodes is reduced after taking one aggregation step, which implies that connected components in the graph "shrink" and nodes within each connected component get closer to each other in the embedding space. In an ideal case where edges only connect nodes with the same label, the aggregation step will push nodes within the same class together, which greatly benefits the transformation step that acts like a hyperplane $W^{(k)}$ for classification. However, two connected nodes may have different labels. These "noisy" edges will impede the formation of clusters and make the inter-class boundary less clear.
|
| 240 |
+
|
| 241 |
+
Fortunately, in GCN-LPA, edge weights are learned by minimizing the difference between ground-truth labels and labels reconstructed from multi-hop neighbors. This will force the model to increase weight/bandwidth of possible paths that connect nodes with the same label, so that labels can "flow" easily along these paths for the purpose of label reconstruction. In this way, GCN-LPA is able to identify potential intra-class edges and increase their weights to assist learning clustering structures. Figure 1 gives a toy example illustrating how our model works intuitively.
|
| 242 |
+
|
| 243 |
+
To empirically justify our claim, we apply a two-layer untrained GCN with randomly initialized transformation matrices to the well-known Zachary's karate club network
|
| 244 |
+
|
| 245 |
+
<table><tr><td></td><td>Cora</td><td>Citeseer</td><td>Pubmed</td><td>Coauthor-CS</td><td>Coauthor-Phy</td></tr><tr><td># nodes</td><td>2,708</td><td>3,327</td><td>19,717</td><td>18,333</td><td>34,493</td></tr><tr><td># edges</td><td>5,278</td><td>4,552</td><td>44,324</td><td>81,894</td><td>247,962</td></tr><tr><td># features</td><td>1,433</td><td>3,703</td><td>500</td><td>6,805</td><td>8,415</td></tr><tr><td># classes</td><td>7</td><td>6</td><td>3</td><td>15</td><td>5</td></tr><tr><td>Intra-class edge rate</td><td>81.0%</td><td>73.6%</td><td>80.2%</td><td>80.8%</td><td>93.1%</td></tr></table>
|
| 246 |
+
|
| 247 |
+
Table 1: Dataset statistics after removing self-loops and duplicate edges.
|
| 248 |
+
|
| 249 |
+
(Zachary, 1977) as shown in Figure 2a, which contains 34 nodes of 2 classes and 78 unweighted edges (grey solid lines). We then increase the weights of intra-class edges by ten times to simulate GCN-LPA. We find that GCN works well on this network (Figure 2b), but GCN-LPA performs even better than GCN because the node embeddings are completely linearly separable as shown in Figure 2c. To further justify our claim, we randomly add 20 "noisy" inter-class edges (grey dotted lines) to the original network, from which we observe that GCN is misled by noise and mixes nodes of two classes together (Figure 2d), but GCN-LPA still distinguishes the two clusters (Figure 2e) because it is better at "denoising" undesirable edges based on the supervised signal of labels.
|
| 250 |
+
|
| 251 |
+
# 3. Connection to Existing Work
|
| 252 |
+
|
| 253 |
+
Edge weights play a key role in graph-based node classification as well as representation learning. In this section, we discuss three lines of related work that learn edge weights adaptively.
|
| 254 |
+
|
| 255 |
+
# 3.1. Locally Linear Embedding
|
| 256 |
+
|
| 257 |
+
Locally linear embedding (LLE) (Roweis & Saul, 2000) and its variants (Zhang & Wang, 2007; Kong et al., 2012) learn edge weights by constructing a linear dependency between a node and its neighbors, then use the learned edge weights to embed high-dimensional nodes into a low-dimensional space. Our work is similar to LLE in the aspect of transferring the knowledge of edge importance from one space to another, but the difference is that LLE is an unsupervised dimension reduction method that learns the graph structure based on local proximity only, while our work is semi-supervised and explores high-order relationship among nodes.
|
| 258 |
+
|
| 259 |
+
# 3.2. Label Propagation Algorithm
|
| 260 |
+
|
| 261 |
+
Classical LPA (Zhu et al., 2005; Zhou et al., 2004) can only make use of node labels rather than node features. In contrast, adaptive LPA considers node features by making edge weights learnable. Typical techniques of learning edge weights include adopting kernel functions (Zhu et al., 2003; Liu et al., 2019a) (e.g., $a_{ij} = \exp(-\sum_d (x_{id} - x_{jd})^2 / \sigma_d^2)$ )
|
| 262 |
+
|
| 263 |
+
where $d$ is dimensionality of features), minimizing neighborhood reconstruction error (Wang & Zhang, 2008; Karasuyama & Mamitsuka, 2013), using leave-one-out loss (Zhang & Lee, 2007), or imposing sparseness on edge weights (Hong et al., 2009). However, in these LPA variants, node features are only used to assist learning the graph structure rather than explicitly mapped to node labels, which limits their capability in node classification. Another notable difference is that adaptive LPA learns edge weights by introducing the regularizations above, while our work takes LPA itself as regularization to learn edge weights.
|
| 264 |
+
|
| 265 |
+
# 3.3. Attention Mechanism on Graphs
|
| 266 |
+
|
| 267 |
+
Our method is also conceptually connected to attention mechanism on graphs (Veličković et al., 2018; Thekumparampil et al., 2018; Zhang et al., 2018; Liu et al., 2019b), in which an attention weight $\alpha_{ij}$ is learned between node $v_i$ and $v_j$ . For example, $\alpha_{ij} = \text{LeakyReLU}(\boldsymbol{a}^\top[W\mathbf{x}_i||W\mathbf{x}_j])$ in GAT (Veličković et al., 2018), $\alpha_{ij} = a \cdot \cos(W\mathbf{x}_i, W\mathbf{x}_j)$ in AGNN (Thekumparampil et al., 2018), $\alpha_{ij} = (W_1\mathbf{x}_i)^\top W_2\mathbf{x}_j$ in GaAN (Zhang et al., 2018), and $\alpha_{ij} = \boldsymbol{a}^\top \tanh(W_1\mathbf{x}_i + W_2\mathbf{x}_j)$ in GeniePath (Liu et al., 2019b), where $a$ and $W$ are trainable variables. A significant difference between these attention mechanisms and our work is that attention weights are learned based merely on feature similarity, while we propose that edge weights should be consistent with the distribution of labels on the graph, which requires less handcrafting of the attention function and is more task-oriented. Nevertheless, all the above formulas for calculating attentions can also be used in our model as the implementation of edge weights.
|
| 268 |
+
|
| 269 |
+
# 4. Experiments
|
| 270 |
+
|
| 271 |
+
We evaluate our model and present its performance on five datasets including citation networks and coauthor networks. We also study the hyper-parameter sensitivity and provide training time analysis.
|
| 272 |
+
|
| 273 |
+
# 4.1. Datasets
|
| 274 |
+
|
| 275 |
+
We use the following five datasets in our experiments:
|
| 276 |
+
|
| 277 |
+
Citation networks: We consider three citation network
|
| 278 |
+
|
| 279 |
+
<table><tr><td>Method</td><td>Cora</td><td>Citeseer</td><td>Pubmed</td><td>Coauthor-CS</td><td>Coauthor-Phy</td></tr><tr><td>MLP</td><td>64.6 ± 1.7</td><td>62.0 ± 1.8</td><td>85.9 ± 0.3</td><td>91.7 ± 1.4</td><td>94.1 ± 1.2</td></tr><tr><td>LR</td><td>77.3 ± 1.8</td><td>71.2 ± 1.8</td><td>86.0 ± 0.6</td><td>91.1 ± 0.6</td><td>93.8 ± 1.1</td></tr><tr><td>LPA</td><td>85.3 ± 0.9</td><td>70.0 ± 1.7</td><td>82.6 ± 0.6</td><td>91.3 ± 0.2</td><td>94.9 ± 0.4</td></tr><tr><td>GCN</td><td>88.2 ± 0.8</td><td>77.3 ± 1.5</td><td>87.2 ± 0.4</td><td>93.6 ± 1.5</td><td>96.2 ± 0.2</td></tr><tr><td>GAT</td><td>87.7 ± 0.3</td><td>76.2 ± 0.9</td><td>86.9 ± 0.5</td><td>93.8 ± 0.4</td><td>96.3 ± 0.7</td></tr><tr><td>JK-Net</td><td>89.1 ± 1.2</td><td>78.3 ± 0.9</td><td>85.8 ± 1.1</td><td>92.4 ± 0.4</td><td>94.8 ± 0.4</td></tr><tr><td>GraphSAGE</td><td>86.8 ± 1.9</td><td>75.2 ± 1.1</td><td>84.7 ± 1.6</td><td>92.6 ± 1.6</td><td>94.5 ± 1.1</td></tr><tr><td>GCN-LPA</td><td>88.5 ± 1.5</td><td>78.7 ± 0.6</td><td>87.8 ± 0.6</td><td>94.8 ± 0.4</td><td>96.9 ± 0.2</td></tr></table>
|
| 280 |
+
|
| 281 |
+
Table 2: Mean and the ${95}\%$ confidence intervals of test set accuracy for all methods and datasets.
|
| 282 |
+
|
| 283 |
+
datasets (Sen et al., 2008): Cora, Citeseer, and Pubmed. In these datasets, nodes correspond to documents, edges correspond to citation links, and each node has a sparse bag-of-words feature vector as well as a class label.
|
| 284 |
+
|
| 285 |
+
Coauthor networks: We also use two co-authorship networks (Shchur et al., 2018), Coauthor-CS and Coauthor-Phy, based on Microsoft Academic Graph from the KDD Cup 2016 challenge. Here nodes are authors and an edge indicates that two authors co-authored a paper. Node features represent paper keywords for each author's papers, and class labels indicate most active fields of study for each author.
|
| 286 |
+
|
| 287 |
+
Statistics of the five datasets are shown in Table 1. We also calculate the intra-class edge rate (the fraction of edges that connect two nodes within the same class), which is significantly higher than inter-class edge rate in all networks. The finding supports our claim in Section 2.5 that node classification benefits from intra-class edges in a graph.
|
| 288 |
+
|
| 289 |
+
# 4.2. Baselines
|
| 290 |
+
|
| 291 |
+
We compare against the following baselines in our experiments. The first two baselines only utilize node features, the third baseline only utilizes graph structure, while the rest of baselines are GNN-based methods utilizing both node features and graph structure as input. Hyper-parameters of baselines are set as default in Python packages or their open-source codes unless otherwise stated.
|
| 292 |
+
|
| 293 |
+
- Multi-layer Perceptron (MLP) and Logistic Regression (LR) are feature-based methods that do not consider the graph structure. We set solver='lbfgs' for LR and hidden_layer_sizes=50 for MLP using Python sklearnnn package.
|
| 294 |
+
- Label Propagation (LPA) (Zhu et al., 2005), on the other hand, only consider the graph structure and ignore node features. We set the iteration of LPA as 20 in our implementation.
|
| 295 |
+
- Graph Convolutional Network (GCN) (Kipf & Welling, 2017) proposes a first-order approximation to spectral graph convolutions.
|
| 296 |
+
|
| 297 |
+
- Graph Attention Network (GAT) (Veličković et al., 2018) propose an attention mechanism to treat neighbors differently in the aggregation step.
|
| 298 |
+
- Jumping Knowledge Networks (JK-Net) (Xu et al., 2018) leverages different neighborhood ranges for each node to enable structure-aware representation. We use concat as the aggregator for JK-Net.
|
| 299 |
+
- Graph Sampling and Aggregation (GraphSAGE) (Hamilton et al., 2017) is a mini-batch implementation of GCN that uses neighborhood sampling strategy and different aggregation schemes. We use mean as the aggregator for GraphSAGE.
|
| 300 |
+
|
| 301 |
+
# 4.3. Experimental Setup
|
| 302 |
+
|
| 303 |
+
Our experiments focus on the transductive setting where we only know labels of part of nodes but have access to the entire graph as well as features of all nodes. The ratio of training, validation, and test set are set as $6:2:2$ . The weight of each edge is treated as a free variable during training. We train our model for 200 epochs using Adam (Kingma & Ba, 2015) and report the test set accuracy when validation set accuracy is maximized. Each experiment is repeated three times and we report the mean and the $95\%$ confidence interval. We initialize weights according to (Glorot & Bengio, 2010) and row-normalize input features. During training, we apply L2 regularization to the transformation matrices and use the dropout technique (Srivastava et al., 2014). The settings of all other hyper-parameters can be found in Appendix F.
|
| 304 |
+
|
| 305 |
+
# 4.4. Results
|
| 306 |
+
|
| 307 |
+
The results of node classification are summarized in Table 2. Table 2 indicates that only using node features (MLP, LR) or graph structure (LPA) will lead to information loss and can
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
Figure 3: Sensitivity to # LPA iterations on Citeseer dataset.
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 4: Sensitivity to $\lambda$ on Citeseer dataset.
|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
Figure 5: Training time per epoch on random graphs.
|
| 317 |
+
|
| 318 |
+
<table><tr><td>Ratio of labeled nodes</td><td>0%</td><td>20%</td><td>40%</td><td>60%</td><td>80%</td><td>100%</td></tr><tr><td>Accuracy</td><td>75.8 ± 1.0</td><td>76.3 ± 1.1</td><td>76.7 ± 0.8</td><td>77.3 ± 0.7</td><td>78.1 ± 0.6</td><td>78.7 ± 0.6</td></tr></table>
|
| 319 |
+
|
| 320 |
+
Table 3: Result of GCN-LPA on Citeseer dataset with differet ratio of labeled nodes in LPA.
|
| 321 |
+
|
| 322 |
+
not fully exploit datasets in general. The results demonstrate that our proposed GCN-LPA model surpasses state-of-the-art GCN/GNN baselines. We note that JK-Net is a strong baseline on Cora, but it does not perform consistently well on other datasets.
|
| 323 |
+
|
| 324 |
+
We investigate the influence of the number of LPA iterations and the training weight of LPA loss term $\lambda$ on the performance of classification. The results on Citeseer dataset are plotted in Figures 3 and 4, respectively, where each line corresponds to a given number of GCN layers in GCN-LPA. From Figure 3 we observe that the performance is boosted at first when the number of LPA iterations increases, then the accuracy stops increasing and decreases since a large number of LPA iterations will include more noisy nodes. Figure 4 shows that training without the LPA loss term (i.e., $\lambda = 0$ ) is more difficult than the case where $\lambda = 1 \sim 5$ , which justifies our aforementioned claim that it is hard for the GCN part to learn both transformation matrices $W$ and edge weights $A$ simultaneously without the assistance of LPA regularization.
|
| 325 |
+
|
| 326 |
+
To further show how much the LPA impacts the performance, we vary the ratio of labeled nodes in LPA from $100\%$ to $0\%$ during training, and report the result of accuracy on Citeseer dataset in Table 3. From Table 3 we observe that the performance of GCN-LPA gets worse when the ratio of labeled nodes in LPA decreases. In addition, using more labeled nodes in LPA also helps improve the model stability. Note that a ratio of $0\%$ does not mean that GCN-LPA is equivalent to GCN (Kipf & Welling, 2017) because the edge weights in GCN-LPA is still trainable, which increases the risk of overfitting the training data.
|
| 327 |
+
|
| 328 |
+
We study the training time of GCN-LPA on random graphs. We use the one-hot identity vector as feature and 0 as label for each node. The size of training set and validation set
|
| 329 |
+
|
| 330 |
+
is 100 and 200, respectively, while the rest is test set. The average number of neighbors for each node is set as 5, and the number of nodes is varied from one thousand to one million. We run GCN-LPA and GCN for 100 epochs on a Microsoft Azure virtual machine with 1 NVIDIA Tesla M60 GPU, 12 Intel Xeon CPUs (E5-2690 v3 @2.60GHz), and 128GB of RAM, using the same hyper-parameter setting as in Cora. The training time per epoch of GCN-LPA and GCN is presented in Figure 5. Our result shows that GCN-LPA requires only $9.2\%$ extra training time on average compared to GCN.
|
| 331 |
+
|
| 332 |
+
# 5. Conclusion and Future Work
|
| 333 |
+
|
| 334 |
+
We studied the theoretical relationship between two types of well-known graph-based models for node classification, Label Propagation Algorithm and Graph Convolutional Neural Networks, from the perspectives of feature/label smoothing and feature/label influence. We then propose a unified model GCN-LPA, which learns transformation matrices and edge weights simultaneously in GCN with the assistance of LPA regularizer. We also analyze why our unified model performs better than traditional GCN in node classification. Experiments on five datasets demonstrate that our model outperforms state-of-the-art baselines, and it is also highly time-efficient with respect to the size of a graph.
|
| 335 |
+
|
| 336 |
+
We point out two avenues of possible directions for future work. First, our proposed model focuses on transductive setting where all node features and the entire graph structure are given. An interesting problem is how the model performs in inductive setting where we have no access to test nodes during training. Second, the question of how to generalize the idea of our model to GNNs with different aggregation functions (e.g., concatenation or max-pooling) is also a promising direction.
|
| 337 |
+
|
| 338 |
+
# References
|
| 339 |
+
|
| 340 |
+
Glorot, X. and Bengio, Y. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, 2010.
|
| 341 |
+
Gong, C., Tao, D., Liu, W., Liu, L., and Yang, J. Label propagation via teaching-to-learn and learning-to-teach. IEEE Transactions on Neural Networks and Learning Lystems, 28(6), 2017.
|
| 342 |
+
Hamilton, W., Ying, Z., and Leskovec, J. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, 2017.
|
| 343 |
+
Hong, C., Liu, Z., and Yang, J. Sparsity induced similarity measure for label propagation. In Proceedings of the 12th IEEE International Conference on Computer Vision. IEEE, 2009.
|
| 344 |
+
Karasuyama, M. and Mamitsuka, H. Manifold-based similarity adaptation for label propagation. In Advances in Neural Information Processing Systems, 2013.
|
| 345 |
+
Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations, 2015.
|
| 346 |
+
Kipf, T. N. and Welling, M. Semi-supervised classification with graph convolutional networks. In Proceedings of the 5th International Conference on Learning Representations, 2017.
|
| 347 |
+
Koh, P. W. and Liang, P. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning, 2017.
|
| 348 |
+
Kong, D., Ding, C., Huang, H., and Nie, F. An iterative locally linear embedding algorithm. In Proceedings of the 29th International Coherence on International Conference on Machine Learning. Omnipress, 2012.
|
| 349 |
+
Li, Q., Han, Z., and Wu, X.-M. Deeper insights into graph convolutional networks for semi-supervised learning. In The 32nd AAAI Conference on Artificial Intelligence, 2018.
|
| 350 |
+
Liao, R., Zhao, Z., Urtasun, R., and Zemel, R. S. Lanczosnet: Multi-scale deep graph convolutional networks. In Proceedings of the 7th International Conference on Learning Representations, 2019.
|
| 351 |
+
Liu, Y., Lee, J., Park, M., Kim, S., Yang, E., Hwang, S. J., and Yang, Y. Learning to propagate labels: Transductive propagation network for few-shot learning. In Proceedings of the 7th International Conference on Learning Representations, 2019a.
|
| 352 |
+
|
| 353 |
+
Liu, Z., Chen, C., Li, L., Zhou, J., Li, X., Song, L., and Qi, Y. Geniepath: Graph neural networks with adaptive receptive paths. In The 33rd AAAI Conference on Artificial Intelligence, 2019b.
|
| 354 |
+
Qu, M., Bengio, Y., and Tang, J. Gmnn: Graph markov neural networks. In Proceedings of the 36th International Conference on Machine Learning, 2019.
|
| 355 |
+
Roweis, S. T. and Saul, L. K. Nonlinear dimensionality reduction by locally linear embedding. science, 290(5500), 2000.
|
| 356 |
+
Sen, P., Namata, G., Bilgic, M., Getoor, L., Galligher, B., and Eliassi-Rad, T. Collective classification in network data. AI magazine, 29(3), 2008.
|
| 357 |
+
Shchur, O., Mumme, M., Bojchevski, A., and Gunnemann, S. Pitfalls of graph neural network evaluation. In Neural Information Processing Systems Workshop on Relational Representation Learning, 2018.
|
| 358 |
+
Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1), 2014.
|
| 359 |
+
Thekumparamil, K. K., Wang, C., Oh, S., and Li, L.-J. Attention-based graph neural network for semi-supervised learning. arXiv preprint arXiv:1803.03735, 2018.
|
| 360 |
+
Veličković, P., Cucurull, G., Casanova, A., Romero, A., Lio, P., and Bengio, Y. Graph attention networks. In Proceedings of the 6th International Conference on Learning Representations, 2018.
|
| 361 |
+
Wang, F. and Zhang, C. Label propagation through linear neighborhoods. IEEE Transactions on Knowledge and Data Engineering, 20(1), 2008.
|
| 362 |
+
Xu, K., Li, C., Tian, Y., Sonobe, T., Kawarabayashi, K.-i., and Jegelka, S. Representation learning on graphs with jumping knowledge networks. In Proceedings of the 35th International Conference on Machine Learning, 2018.
|
| 363 |
+
Xu, K., Hu, W., Leskovec, J., and Jegelka, S. How powerful are graph neural networks? In Proceedings of the 7th International Conference on Learning Representations, 2019.
|
| 364 |
+
Zachary, W. W. An information flow model for conflict and fission in small groups. Journal of anthropological research, 33(4), 1977.
|
| 365 |
+
Zhang, J., Shi, X., Xie, J., Ma, H., King, I., and Yeung, D.-Y. Gaan: Gated attention networks for learning on large and spatiotemporal graphs. arXiv preprint arXiv:1803.07294, 2018.
|
| 366 |
+
|
| 367 |
+
Zhang, X. and Lee, W. S. Hyperparameter learning for graph based semi-supervised learning algorithms. In Advances in Neural Information Processing Systems, 2007.
|
| 368 |
+
Zhang, Z. and Wang, J. Mlle: Modified locally linear embedding using multiple weights. In Advances in Neural Information Processing Systems, 2007.
|
| 369 |
+
Zhou, D., Bousquet, O., Lal, T. N., Weston, J., and Scholkopf, B. Learning with local and global consistency. In Advances in Neural Information Processing Systems, 2004.
|
| 370 |
+
Zhu, X., Ghahramani, Z., and Lafferty, J. D. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the 20th International Conference on Machine Learning, 2003.
|
| 371 |
+
Zhu, X., Lafferty, J., and Rosenfeld, R. Semi-supervised learning with graphs. PhD thesis, Carnegie Mellon University, school of language technologies institute, 2005.
|
| 372 |
+
|
| 373 |
+
# Appendix
|
| 374 |
+
|
| 375 |
+
# A. Proof of Theorem 1
|
| 376 |
+
|
| 377 |
+
Proof. Denote $\tilde{a}_{ij} = a_{ij} / d_{ii}$ as the normalized weight of edge $(j,i)$ . It is clear that $\sum_{j\in \mathcal{N}(i)}\tilde{a}_{ij} = 1$ . Given that $\mathcal{M}$ is differentiable, we perform a first-order Taylor expansion with Peano's form of remainder at $\mathbf{x}_i$ for $\sum_{j\in \mathcal{N}(i)}\tilde{a}_{ij}y_j$ :
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
\begin{array}{l} \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} y _ {j} = \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} \mathcal {M} (\mathbf {x} _ {j}) \\ = \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} \left(\mathcal {M} (\mathbf {x} _ {i}) + \frac {\partial \mathcal {M} (\mathbf {x} _ {i})}{\partial \mathbf {x} ^ {\top}} (\mathbf {x} _ {j} - \mathbf {x} _ {i}) + o \left(\left\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \right\| _ {2}\right)\right) \\ = \mathcal {M} \left(\mathbf {x} _ {i}\right) + \frac {\partial \mathcal {M} \left(\mathbf {x} _ {i}\right)}{\partial \mathbf {x} ^ {\top}} \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} \left(\mathbf {x} _ {j} - \mathbf {x} _ {i}\right) + \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} o \left(\left\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \right\| _ {2}\right) \tag {22} \\ = y _ {i} - \frac {\partial \mathcal {M} (\mathbf {x} _ {i})}{\partial \mathbf {x} ^ {\top}} \epsilon_ {i} + \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} o \left(\left\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \right\| _ {2}\right). \\ \end{array}
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
According to Cauchy-Schwarz inequality and $L$ -Lipschitz property, we have
|
| 384 |
+
|
| 385 |
+
$$
|
| 386 |
+
\left| \frac {\partial \mathcal {M} \left(\mathbf {x} _ {i}\right)}{\partial \mathbf {x} ^ {\top}} \epsilon_ {i} \right| \leq \left\| \frac {\partial \mathcal {M} \left(\mathbf {x} _ {i}\right)}{\partial \mathbf {x} ^ {\top}} \right\| _ {2} \| \epsilon_ {i} \| _ {2} \leq L \| \epsilon_ {i} \| _ {2}. \tag {23}
|
| 387 |
+
$$
|
| 388 |
+
|
| 389 |
+
Therefore, the approximation of $y_{i}$ is bounded by
|
| 390 |
+
|
| 391 |
+
$$
|
| 392 |
+
\begin{array}{l} \left| y _ {i} - \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} y _ {j} \right| \\ = \left| \frac {\partial \mathcal {M} \left(\mathbf {x} _ {i}\right)}{\partial \mathbf {x} ^ {\top}} \epsilon_ {i} - \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} o \left(\left\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \right\| _ {2}\right) \right| \tag {24} \\ \leq \left| \frac {\partial \mathcal {M} (\mathbf {x} _ {i})}{\partial \mathbf {x} ^ {\top}} \epsilon_ {i} \right| + \left| \sum_ {j \in \mathcal {N} (i)} \tilde {a} _ {i j} o \left(\left\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \right\| _ {2}\right) \right| \\ \leq L \| \epsilon_ {i} \| _ {2} + o \big (\max _ {j \in \mathcal {N} (i)} \big (\| \mathbf {x} _ {j} - \mathbf {x} _ {i} \| _ {2} \big) \big). \\ \end{array}
|
| 393 |
+
$$
|
| 394 |
+
|
| 395 |
+
# B. Proof of Theorem 2
|
| 396 |
+
|
| 397 |
+
Before proving Theorem 2, we first give two lemmas that demonstrate the exact form of feature influence and label influence defined in this paper. The relationship between feature influence and label influence can then be deduced from their exact forms.
|
| 398 |
+
|
| 399 |
+
Lemma 1 Assume that the nonlinear activation function in GCN is ReLU. Let $\mathcal{P}_k^{a\to b}$ be a path $[v^{(k)},v^{(k - 1)},\dots ,v^{(0)}]$ of length $k$ from node $v_{a}$ to node $v_{b}$ , where $v^{(k)} = v_{a},v^{(0)} = v_{b}$ , and $v^{(i - 1)}\in \mathcal{N}(v^{(i)})$ for $i = k,\dots ,1$ . Then we have
|
| 400 |
+
|
| 401 |
+
$$
|
| 402 |
+
\tilde {I} _ {f} \left(v _ {a}, v _ {b}; k\right) = \sum_ {\mathcal {P} _ {k} ^ {a \rightarrow b}} \prod_ {i = k} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}}, \tag {25}
|
| 403 |
+
$$
|
| 404 |
+
|
| 405 |
+
where $\tilde{a}_{v^{(i - 1)},v^{(i)}}$ is the normalized weight of edge $(v^{(i)},v^{(i - 1)})$ .
|
| 406 |
+
|
| 407 |
+
Proof. See (Xu et al., 2018) for the detailed proof.
|
| 408 |
+
|
| 409 |
+
The product term in Eq. (25) is the probability of a given path $\mathcal{P}_k^{a\to b}$ . Therefore, the right hand side in Eq. (25) is the sum over probabilities of all possible paths of length $k$ from $v_{a}$ to $v_{b}$ , which is the probability that a random walk starting at $v_{a}$ ends at $v_{b}$ after taking $k$ steps.
|
| 410 |
+
|
| 411 |
+

|
| 412 |
+
|
| 413 |
+

|
| 414 |
+
(a) Iteration 1
|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
(b) Iteration 2
|
| 418 |
+
Figure 6: An illustrating example of label propagation in LPA. Suppose labels are propagated for three iterations, and no self-loop exists. Blue nodes are labeled while white nodes are unlabeled. (a) $v_{a}$ 's label propagates to $v_{1}$ (yellow arrows). Note that the propagation of $v_{a}$ 's label to $v_{3}$ is cut off since $v_{3}$ is labeled thus absorbing $v_{a}$ 's label. (b) $v_{a}$ 's label that propagated to $v_{1}$ further propagates to $v_{2}$ and $v_{b}$ (yellow arrows). Meanwhile, $v_{a}$ 's label is reset to its initial value then propagates from $v_{a}$ again (green arrows). (c) Label propagation in iteration 3. Purple arrows denote the propagation of $v_{a}$ 's label starting from $v_{a}$ for the third time. (d) All possible paths of length no more than three from $v_{a}$ to $v_{b}$ containing unlabeled nodes only. Note that there is no path of length one from $v_{a}$ to $v_{b}$ .
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
(c) Iteration 3
|
| 422 |
+
|
| 423 |
+

|
| 424 |
+
(d) Paths from $v_{a}$ to $v_{b}$
|
| 425 |
+
|
| 426 |
+
Lemma 2 Let $\mathcal{U}_j^{a\to b}$ be a path $[v^{(j)},v^{(j - 1)},\dots ,v^{(0)}]$ of length $j$ from node $v_{a}$ to node $v_{b}$ , where $v^{(j)} = v_{a}$ , $v^{(0)} = v_{b}$ , $v^{(i - 1)}\in \mathcal{N}(v^{(i)})$ for $i = j,\dots ,1$ , and all nodes along the path are unlabeled except $v^{(0)}$ . Then we have
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
I _ {l} \left(v _ {a}, v _ {b}; k\right) = \sum_ {j = 1} ^ {k} \sum_ {\mathcal {U} _ {j} ^ {a \rightarrow b}} \prod_ {i = j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}}, \tag {26}
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
where $\tilde{a}_{v(i - 1),v(i)}$ is the normalized weight of edge $(v^{(i)},v^{(i - 1)})$ .
|
| 433 |
+
|
| 434 |
+
To intuitively understand this lemma, note that there are two differences between Lemma 1 and Lemma 2: (1) In Lemma 1, $\tilde{I}_f(v_a,v_b;k)$ sums over all paths from $v_{a}$ to $v_{b}$ of length $k$ , but in Lemma 2, $I_l(v_a,v_b;k)$ sums over all paths from $v_{a}$ to $v_{b}$ of length no more than $k$ . The is because in LPA, $v_{b}$ 's label is reset to its initial value after each iteration, which means that the label of $v_{b}$ serves as a constant signal that begins propagating in the graph again and again after each iteration. (2) In Lemma 1 we consider all possible paths from $v_{a}$ to $v_{b}$ , but in Lemma 2, the paths are restricted to contain unlabeled nodes only. The reason here is the same as above: Since the labels of labeled nodes are reset to their initial values after each iteration in LPA, the influence of $v_{b}$ 's label will be absorbed in labeled nodes, and the propagation of $v_{b}$ 's label will be cut off at these nodes. Therefore, $v_{b}$ 's label can only flow to $v_{a}$ along the paths with unlabeled nodes only. See Figure 6 for an illustrating example showing the label propagation in LPA.
|
| 435 |
+
|
| 436 |
+
Proof. As mentioned above, a significant difference between LPA and GCN is that all labeled nodes are reset to its original labels after each iteration in LPA. This implies that the initial label $y_{b}$ of node $v_{b}$ appears not only as $y_{b}^{(0)}$ , but also as every $y_{b}^{(j)}$ for $j = 1, \dots, k - 1$ . Therefore, the influence of $y_{b}$ on $y_{a}^{(k)}$ is the cumulative influence of $y_{b}^{(j)}$ on $y_{a}^{(k)}$ for $j = 0, 1, \dots, k - 1$ :
|
| 437 |
+
|
| 438 |
+
$$
|
| 439 |
+
I _ {l} \left(v _ {a}, v _ {b}; k\right) = \frac {\partial y _ {a} ^ {(k)}}{\partial y _ {b}} = \sum_ {j = 0} ^ {k - 1} \frac {\partial y _ {a} ^ {(k)}}{\partial y _ {b} ^ {(j)}}. \tag {27}
|
| 440 |
+
$$
|
| 441 |
+
|
| 442 |
+
According to the updating rule of LPA, we have
|
| 443 |
+
|
| 444 |
+
$$
|
| 445 |
+
\frac {\partial y _ {a} ^ {(k)}}{\partial y _ {b} ^ {(j)}} = \frac {\partial \sum_ {v _ {z} \in \mathcal {N} (v _ {a})} \tilde {a} _ {a z} y _ {z} ^ {(k - 1)}}{\partial y _ {b} ^ {(j)}} = \sum_ {v _ {z} \in \mathcal {N} (v _ {a})} \tilde {a} _ {a z} \frac {\partial y _ {z} ^ {(k - 1)}}{\partial y _ {b} ^ {(j)}}. \tag {28}
|
| 446 |
+
$$
|
| 447 |
+
|
| 448 |
+
In the above equation, the derivative $\frac{\partial y_a^{(k)}}{\partial y_b^{(j)}}$ is decomposed into the weighted average of $\frac{\partial y_z^{(k - 1)}}{\partial y_b^{(j)}}$ , where $v_{z}$ traverses all neighbors of $v_{a}$ . For those $v_{z}$ 's that are initially labeled, $y_{z}^{(k - 1)}$ is reset to their initial labels in each iteration. Therefore, they are always constant and independent of $y_{b}^{(j)}$ , meaning that their derivatives w.r.t. $y_{b}^{(j)}$ are zero. So we only need to
|
| 449 |
+
|
| 450 |
+
consider the terms where $v_{z}$ is an unlabeled node:
|
| 451 |
+
|
| 452 |
+
$$
|
| 453 |
+
\frac {\partial y _ {a} ^ {(k)}}{\partial y _ {b} ^ {(j)}} = \sum_ {v _ {z} \in \mathcal {N} (v _ {a}), z > m} \tilde {a} _ {a z} \frac {\partial y _ {z} ^ {(k - 1)}}{\partial y _ {b} ^ {(j)}}, \tag {29}
|
| 454 |
+
$$
|
| 455 |
+
|
| 456 |
+
where $z > m$ means $v_{z}$ is unlabeled. To intuitively understand Eq. (29), one can imagine that we perform a random walk starting from node $v_{a}$ for one step, where the "transition probability" is the edge weights $\tilde{a}$ , and all nodes in this random walk are restricted to unlabeled nodes only. Note that we can further decompose every $y_{z}^{(k-1)}$ in Eq. (29) in the way similar to what we do for $y_{a}^{(k)}$ in Eq. (28). So the expansion in Eq. (29) can be performed iteratively until the index $k$ decreases to $j$ . This is equivalent to performing all possible random walks for $k - j$ steps starting from $v_{a}$ , where all nodes but the last in the random walk are restricted to be unlabeled nodes:
|
| 457 |
+
|
| 458 |
+
$$
|
| 459 |
+
\frac {\partial y _ {a} ^ {(k)}}{\partial y _ {b} ^ {(j)}} = \sum_ {v _ {z} \in \mathcal {V}} \sum_ {\mathcal {U} _ {k - j} ^ {a \rightarrow z}} \left(\prod_ {i = k - j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}}\right) \frac {\partial y _ {z} ^ {(j)}}{\partial y _ {b} ^ {(j)}}, \tag {30}
|
| 460 |
+
$$
|
| 461 |
+
|
| 462 |
+
where $v_{z}$ in the first summation term is the end node of a random walk, $\mathcal{U}_{k - j}^{a\to z}$ in the second summation term is an unlabeled-nodes-only path from $v_{a}$ to $v_{z}$ of length $k - j$ , and the product term is the probability of a given path $\mathcal{U}_{k - j}^{a\to z}$ . Consider the last term $\frac{\partial y_z^{(j)}}{\partial y_b^{(j)}}$ in Eq. (30). We know that $\frac{\partial y_z^{(j)}}{\partial y_b^{(j)}} = 0$ for all $z\neq b$ and $\frac{\partial y_z^{(j)}}{\partial y_b^{(j)}} = 1$ for $z = b$ , which means that only those random-walk paths that end exactly at $v_{b}$ (i.e., the end node $v_{z}$ is exactly $v_{b}$ ) count for the computation in Eq. (30). Therefore, we have
|
| 463 |
+
|
| 464 |
+
$$
|
| 465 |
+
\frac {\partial y _ {a} ^ {(k)}}{\partial y _ {b} ^ {(j)}} = \sum_ {\mathcal {U} _ {k - j} ^ {a \rightarrow b}} \prod_ {i = k - j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}}, \tag {31}
|
| 466 |
+
$$
|
| 467 |
+
|
| 468 |
+
where $\mathcal{U}_{k - j}^{a\rightarrow b}$ is a path from $v_{a}$ to $v_{b}$ of length $k - j$ containing only unlabeled nodes except $v_{b}$ . Substituting the right hand term of Eq. (27) with Eq. (31), we obtain that
|
| 469 |
+
|
| 470 |
+
$$
|
| 471 |
+
I _ {l} \left(v _ {a}, v _ {b}; k\right) = \sum_ {j = 0} ^ {k - 1} \sum_ {\mathcal {U} _ {k - j} ^ {a \rightarrow b}} \prod_ {i = k - j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}} = \sum_ {j = 1} ^ {k} \sum_ {\mathcal {U} _ {j} ^ {a \rightarrow b}} \prod_ {i = j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}}. \tag {32}
|
| 472 |
+
$$
|
| 473 |
+
|
| 474 |
+
Now Theorem 2 can be proved by combining Lemma 1 and Lemma 2:
|
| 475 |
+
|
| 476 |
+
Proof. Suppose that whether a node is labeled or not is independent of each other for the given graph. Then we have
|
| 477 |
+
|
| 478 |
+
$$
|
| 479 |
+
\begin{array}{l} \mathbb {E} \left[ I _ {l} (v _ {a}, v _ {b}; k) \right] = \mathbb {E} \left[ \sum_ {j = 1} ^ {k} \sum_ {\mathcal {U} _ {j} ^ {a \to b}} \prod_ {i = j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}} \right] = \sum_ {j = 1} ^ {k} \mathbb {E} \left[ \sum_ {\mathcal {U} _ {j} ^ {a \to b}} \prod_ {i = j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}} \right] \\ = \sum_ {j = 1} ^ {k} \sum_ {\mathcal {P} _ {j} ^ {a \rightarrow b}} \Pr \left(\mathcal {P} _ {j} ^ {a \rightarrow b} \text {i s a n u n l a b e l e d - n o d e s - o n l y p a t h}\right) \prod_ {i = j} ^ {1} \tilde {a} _ {v ^ {(i - 1)}, v ^ {(i)}} \tag {33} \\ = \sum_ {j = 1} ^ {k} \sum_ {\mathcal {P} _ {j} ^ {a \rightarrow b}} \beta^ {j} \prod_ {i = j} ^ {1} \tilde {a} _ {v (i - 1), v (i)} \\ = \sum_ {j = 1} ^ {k} \beta^ {j} \tilde {I} _ {f} (v _ {a}, v _ {b}; j). \\ \end{array}
|
| 480 |
+
$$
|
| 481 |
+
|
| 482 |
+
# C. Proof of Theorem 3
|
| 483 |
+
|
| 484 |
+
Proof. Denote the set of labels as $\mathcal{L}$ . Since different label dimensions in $y_{a}^{(\cdot)}$ do not interact with each other when running LPA, the value of the $y_{a}$ -th dimension in $y_{a}^{(\cdot)}$ (denoted by $y_{a}^{(\cdot)}[y_{a}]$ ) comes only from the nodes with initial label $y_{a}$ . It is
|
| 485 |
+
|
| 486 |
+
clear that
|
| 487 |
+
|
| 488 |
+
$$
|
| 489 |
+
y _ {a} ^ {(k)} [ y _ {a} ] = \sum_ {v _ {b}: y _ {b} = y _ {a}} \sum_ {j = 1} ^ {k} \sum_ {\mathcal {U} _ {j} ^ {a \rightarrow b}} \prod_ {i = j} ^ {1} \tilde {a} _ {v (i - 1), v ^ {(i)}}, \tag {34}
|
| 490 |
+
$$
|
| 491 |
+
|
| 492 |
+
which equals $\sum_{v_b:y_b = y_a}I_l(v_a,v_b;k)$ according to Lemma 2. Therefore, we have
|
| 493 |
+
|
| 494 |
+
$$
|
| 495 |
+
\Pr \left(\hat {y} _ {a} = y _ {a}\right) = \frac {y _ {a} ^ {(k)} \left[ y _ {a} \right]}{\sum_ {i \in \mathcal {L}} y _ {\hat {a}} ^ {(k)} [ i ]} \propto y _ {a} ^ {(k)} [ y _ {a} ] = \sum_ {v _ {b}: y _ {b} = y _ {a}} I _ {l} \left(v _ {a}, v _ {b}; k\right) \tag {35}
|
| 496 |
+
$$
|
| 497 |
+
|
| 498 |
+
# D. Proof of Theorem 4
|
| 499 |
+
|
| 500 |
+
In this proof we assume that the dimension of node representations is one, but note that the conclusion can be easily generalized to the case of multi-dimensional representations since the function $D(\mathbf{x})$ can be decomposed into the sum of one-dimensional cases. In the following of this proof, we still use bold notations $\mathbf{x}_i^{(k)}$ and $\mathbf{h}_i^{(k)}$ to denote node representations, but keep in mind that they are scalars rather than vectors.
|
| 501 |
+
|
| 502 |
+
We give two lemmas before proving Theorem 4. The first one is about the gradient of $D(\mathbf{x})$ :
|
| 503 |
+
|
| 504 |
+
Lemma 3 $\mathbf{h}_i^{(k)} = \mathbf{x}_i^{(k)} - \frac{\partial D(\mathbf{x}^{(k)})}{\partial\mathbf{x}_i^{(k)}}.$
|
| 505 |
+
|
| 506 |
+
Proof. $\mathbf{x}_i^{(k)} - \frac{\partial D(\mathbf{x}^{(k)})}{\partial \mathbf{x}_i^{(k)}} = \mathbf{x}_i^{(k)} - \sum_{v_j \in \mathcal{N}(v_i)} \tilde{a}_{ij} (\mathbf{x}_i^{(k)} - \mathbf{x}_j^{(k)}) = \sum_{v_j \in \mathcal{N}(v_i)} \tilde{a}_{ij} \mathbf{x}_j^{(k)} = \mathbf{h}_i^{(k)}.$
|
| 507 |
+
|
| 508 |
+
It is interesting to see from Lemma 3 that the aggregation step in GCN is equivalent to running gradient descent for one step with a step size of one. However, this is not able to guarantee that $D(\mathbf{h}^{(k)}) \leq D(\mathbf{x}^{(k)})$ because the step size may be too large to reduce the value of $D$ .
|
| 509 |
+
|
| 510 |
+
The second lemma is about the Hessian of $D(\mathbf{x})$ :
|
| 511 |
+
|
| 512 |
+
Lemma 4 $\nabla^2 D(\mathbf{x})\preceq 2I$ or equivalently, $2I - \nabla^{2}D(\mathbf{x})$ is a positive semidefinite matrix.
|
| 513 |
+
|
| 514 |
+
Proof. We first calculate the Hessian of $D(\mathbf{x}) = \frac{1}{2}\sum_{v_i,v_j}\tilde{a}_{ij}\| \mathbf{x}_i - \mathbf{x}_j\| _2^2$ :
|
| 515 |
+
|
| 516 |
+
$$
|
| 517 |
+
\nabla^ {2} D (\mathbf {x}) = \left[ \begin{array}{c c c c} 1 - \tilde {a} _ {1 1} & - \tilde {a} _ {1 2} & \dots & - \tilde {a} _ {1 n} \\ - \tilde {a} _ {2 1} & 1 - \tilde {a} _ {2 2} & \dots & - \tilde {a} _ {2 n} \\ \vdots & \vdots & \ddots & \vdots \\ - \tilde {a} _ {n 1} & - \tilde {a} _ {n 2} & \dots & 1 - \tilde {a} _ {n n} \end{array} \right] = I - D ^ {- 1} A. \tag {36}
|
| 518 |
+
$$
|
| 519 |
+
|
| 520 |
+
Therefore, $2I - \nabla^{2}D(\mathbf{x}) = I + D^{-1}A$ . Since $D^{-1}A$ is Markov matrix (i.e., each entry is non-negative and the sum of each row is one), its eigenvalues are within the range [-1, 1], so the eigenvalues of $I + D^{-1}A$ are within the range [0, 2]. Therefore, $I + D^{-1}A$ is a positive semidefinite matrix, and we have $\nabla^2 D(\mathbf{x}) \preceq 2I$ .
|
| 521 |
+
|
| 522 |
+
We can now prove Theorem 4:
|
| 523 |
+
|
| 524 |
+
Proof. Since $D$ is a quadratic function, we perform a second-order Taylor expansion of $D$ around $\mathbf{x}^{(k)}$ and obtain the following inequality:
|
| 525 |
+
|
| 526 |
+
$$
|
| 527 |
+
\begin{array}{l} D (\mathbf {h} ^ {(k)}) = D (\mathbf {x} ^ {(k)}) + \nabla D (\mathbf {x} ^ {(k)}) ^ {\top} (\mathbf {h} ^ {(k)} - \mathbf {x} ^ {(k)}) + \frac {1}{2} (\mathbf {h} ^ {(k)} - \mathbf {x} ^ {(k)}) ^ {\top} \nabla^ {2} D (\mathbf {x}) (\mathbf {h} ^ {(k)} - \mathbf {x} ^ {(k)}) \\ = D \left(\mathbf {x} ^ {(k)}\right) - \nabla D \left(\mathbf {x} ^ {(k)}\right) ^ {\top} \nabla D \left(\mathbf {x} ^ {(k)}\right) + \frac {1}{2} \nabla D \left(\mathbf {x} ^ {(k)}\right) ^ {\top} \nabla^ {2} D (\mathbf {x}) \nabla D \left(\mathbf {x} ^ {(k)}\right) \tag {37} \\ \leq D (\mathbf {x} ^ {(k)}) - \nabla D (\mathbf {x} ^ {(k)}) ^ {\top} \nabla D (\mathbf {x} ^ {(k)}) + \nabla D (\mathbf {x} ^ {(k)}) ^ {\top} \nabla D (\mathbf {x} ^ {(k)}) = D (\mathbf {x} ^ {(k)}). \\ \end{array}
|
| 528 |
+
$$
|
| 529 |
+
|
| 530 |
+

|
| 531 |
+
|
| 532 |
+
# E. More Visualization Results on Karate Club Network
|
| 533 |
+
|
| 534 |
+
Figure 7 illustrates more visualization of GCN and GCN-LPA on karate club network. In each subfigure, we vary the number of layers from 1 to 4 to examine how the learned representations evolve. The initial node features are one-hot identity vectors, and the dimension of hidden layers and output layer is 2. The transformation matrices are uniformly initialized within range [-1, 1]. We use sigmoid function as the nonlinear activation function. Comparing the four figures in each row, we conclude that the aggregation step and transformation step in GCN and GCN-LPA do benefit the separation of different classes. Comparing Figure 7a and 7c (or Figure 7b and 7d), we conclude that more inter-class edges will make the separation harder for GCN (or GCN-LPA). Comparing Figure 7a and 7b (or Figure 7c and 7d), we conclude that GCN-LPA is more noise-resistant than GCN, therefore, GCN-LPA can better differentiate classes and identify clustering substructures.
|
| 535 |
+
|
| 536 |
+
# F. Hyper-parameter Settings
|
| 537 |
+
|
| 538 |
+
The detailed hyper-parameter settings for all datasets are listed in Table 4. In GCN-LPA, we use the same dimension for all hidden layers. Note that the number of GCN layers and the number of LPA iterations can actually be different since GCN and LPA are implemented as two independent modules. We use grid search to determine hyper-parameters on Cora, and perform fine-tuning on other datasets, i.e., varying one hyper-parameter per time to see if the performance can be further improved. The search spaces for hyper-parameters are as follows:
|
| 539 |
+
|
| 540 |
+
- Dimension of hidden layers: $\{8, 16, 32\}$ ;
|
| 541 |
+
- # GCN layers: $\{1,2,3,4,5,6\}$ ;
|
| 542 |
+
- # LPA iterations: $\{1,2,3,4,5,6,7,8,9\}$ ;
|
| 543 |
+
- L2 weight: $\{10^{-7}, 2 \times 10^{-7}, 5 \times 10^{-7}, 10^{-6}, 2 \times 10^{-6}, 5 \times 10^{-6}, 10^{-5}, 2 \times 10^{-5}, 5 \times 10^{-5}, 10^{-4}, 2 \times 10^{-4}, 5 \times 10^{-4}, 10^{-3}\}$ ;
|
| 544 |
+
- LPA weight $(\lambda)$ : $\{0,1,2,5,10,15,20\}$ ;
|
| 545 |
+
- Dropout rate: $\{0, 0.1, 0.2, 0.3, 0.4, 0.5\}$ ;
|
| 546 |
+
- Learning rate: $\{0.01, 0.02, 0.05, 0.1, 0.2, 0.5\}$ ;
|
| 547 |
+
|
| 548 |
+
<table><tr><td></td><td>Cora</td><td>Citeseer</td><td>Pubmed</td><td>Coauthor-CS</td><td>Coauthor-Phy</td></tr><tr><td>Dimension of hidden layers</td><td>32</td><td>16</td><td>32</td><td>32</td><td>32</td></tr><tr><td># GCN layers</td><td>5</td><td>2</td><td>2</td><td>2</td><td>2</td></tr><tr><td># LPA iterations</td><td>5</td><td>5</td><td>1</td><td>2</td><td>3</td></tr><tr><td>L2 weight</td><td>\( 1 \times 10^{-4} \)</td><td>\( 5 \times 10^{-4} \)</td><td>\( 2 \times 10^{-4} \)</td><td>\( 1 \times 10^{-4} \)</td><td>\( 1 \times 10^{-4} \)</td></tr><tr><td>LPA weight (λ)</td><td>10</td><td>1</td><td>1</td><td>2</td><td>1</td></tr><tr><td>Dropout rate</td><td>0.2</td><td>0</td><td>0</td><td>0.2</td><td>0.2</td></tr><tr><td>Learning rate</td><td>0.05</td><td>0.2</td><td>0.1</td><td>0.1</td><td>0.05</td></tr></table>
|
| 549 |
+
|
| 550 |
+
Table 4: Hyper-parameter settings for all datasets.
|
| 551 |
+
|
| 552 |
+

|
| 553 |
+
1-layer
|
| 554 |
+
|
| 555 |
+

|
| 556 |
+
2-layer
|
| 557 |
+
(a) GCN on the original network
|
| 558 |
+
|
| 559 |
+

|
| 560 |
+
3-layer
|
| 561 |
+
|
| 562 |
+

|
| 563 |
+
4-layer
|
| 564 |
+
|
| 565 |
+

|
| 566 |
+
1-layer
|
| 567 |
+
|
| 568 |
+

|
| 569 |
+
2-layer
|
| 570 |
+
(b) GCN-LPA on the original network
|
| 571 |
+
|
| 572 |
+

|
| 573 |
+
3-layer
|
| 574 |
+
|
| 575 |
+

|
| 576 |
+
4-layer
|
| 577 |
+
|
| 578 |
+

|
| 579 |
+
1-layer
|
| 580 |
+
|
| 581 |
+

|
| 582 |
+
2-layer
|
| 583 |
+
(c) GCN on the noisy network
|
| 584 |
+
|
| 585 |
+

|
| 586 |
+
3-layer
|
| 587 |
+
|
| 588 |
+

|
| 589 |
+
4-layer
|
| 590 |
+
|
| 591 |
+

|
| 592 |
+
1-layer
|
| 593 |
+
Figure 7: Visualization of GCN and GCN-LPA with $1\sim 4$ layers on karate club network.
|
| 594 |
+
|
| 595 |
+

|
| 596 |
+
2-layer
|
| 597 |
+
(d) GCN-LPA on the noisy network
|
| 598 |
+
|
| 599 |
+

|
| 600 |
+
3-layer
|
| 601 |
+
|
| 602 |
+

|
| 603 |
+
4-layer
|
2002.06xxx/2002.06755/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e4135d95f5593627202300d2d5b72e450b2bf5d9a75aaa362a032f3f823ceb9
|
| 3 |
+
size 735083
|
2002.06xxx/2002.06755/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06757/f0a0cfca-5ae2-4300-ba52-9cc444c0761b_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Relational Message Passing for Knowledge Graph Completion
|
| 2 |
+
|
| 3 |
+
Hongwei Wang
|
| 4 |
+
|
| 5 |
+
Stanford University
|
| 6 |
+
|
| 7 |
+
Stanford, California, United States
|
| 8 |
+
|
| 9 |
+
hongweiw@cs.stanford.edu
|
| 10 |
+
|
| 11 |
+
Hongyu Ren
|
| 12 |
+
|
| 13 |
+
Stanford University
|
| 14 |
+
|
| 15 |
+
Stanford, California, United States
|
| 16 |
+
|
| 17 |
+
hyren@cs.stanford.edu
|
| 18 |
+
|
| 19 |
+
Jure Leskovec
|
| 20 |
+
|
| 21 |
+
Stanford University
|
| 22 |
+
|
| 23 |
+
Stanford, California, United States
|
| 24 |
+
|
| 25 |
+
jure@cs.stanford.edu
|
| 26 |
+
|
| 27 |
+
# ABSTRACT
|
| 28 |
+
|
| 29 |
+
Knowledge graph completion aims to predict missing relations between entities in a knowledge graph. In this work, we propose a relational message passing method for knowledge graph completion. Different from existing embedding-based methods, relational message passing only considers edge features (i.e., relation types) without entity IDs in the knowledge graph, and passes relational messages among edges iteratively to aggregate neighborhood information. Specifically, two kinds of neighborhood topology are modeled for a given entity pair under the relational message passing framework: (1) Relational context, which captures the relation types of edges adjacent to the given entity pair; (2) Relational paths, which characterize the relative position between the given two entities in the knowledge graph. The two message passing modules are combined together for relation prediction. Experimental results on knowledge graph benchmarks as well as our newly proposed dataset show that, our method PATHCon outperforms state-of-the-art knowledge graph completion methods by a large margin. PATHCon is also shown applicable to inductive settings where entities are not seen in training stage, and it is able to provide interpretable explanations for the predicted results. The code and all datasets are available at https://github.com/hwang55/PathCon.
|
| 30 |
+
|
| 31 |
+
# CCS CONCEPTS
|
| 32 |
+
|
| 33 |
+
- Computing methodologies $\rightarrow$ Semantic networks; Statistical relational learning; - Mathematics of computing $\rightarrow$ Graph algorithms.
|
| 34 |
+
|
| 35 |
+
# KEYWORDS
|
| 36 |
+
|
| 37 |
+
Knowledge graph completion; message passing; graph neural networks
|
| 38 |
+
|
| 39 |
+
# ACM Reference Format:
|
| 40 |
+
|
| 41 |
+
Hongwei Wang, Hongyu Ren, and Jure Leskovec. 2021. Relational Message Passing for Knowledge Graph Completion. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD '21), August 14-18, 2021, Virtual Event, Singapore. ACM, New York, NY, USA, 11 pages. https://doi.org/10.1145/3447548.3467247
|
| 42 |
+
|
| 43 |
+
# 1 INTRODUCTION
|
| 44 |
+
|
| 45 |
+
Knowledge graphs (KGs) store structured information of real-world entities and facts. A KG usually consists of a collection of triplets. Each triplet $(h,r,t)$ indicates that head entity $h$ is related to tail entity $t$ through relationship type $r$ . Nonetheless, KGs are often
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
|
| 49 |
+
(a) Consider we aim to predict whether Ron Weasley or Hedwig is a Pet of Harry Potter. Both entities have the same relational path (Lives with) to Harry Potter but they have distinct relational context: Ron Weasley has {Brother of, Lives with}, while Hedwig has {Bought, Lives with}. Capturing the relational context of entities allows our model to make a distinction between Ron Weasley, who is a person, and Hedwig, which is an owl.
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
Figure 1: (a) Relational context of an entity and (b) relational paths between entities. Our model is able to capture both.
|
| 53 |
+
|
| 54 |
+
(b) Two head entities Hermione Granger and Draco Malfoy have the same relational context $\{\text{Occupation}, \text{House}\}$ , but different relational paths to the tail entity Harry Potter $\{(\text{House}, \text{House}), (\text{Occupation}, \text{Occupation})\}$ vs. $\{(\text{Occupation}, \text{Occupation})\}$ , which allows our model to predict friendship between Harry Potter and Hermione Granger vs. Draco Malfoy.
|
| 55 |
+
|
| 56 |
+
incomplete and noisy. To address this issue, researchers have proposed a number of KG completion methods to predict missing links/relations in KGs [3, 9, 12, 13, 19, 22, 24, 35, 36, 39, 40].
|
| 57 |
+
|
| 58 |
+
In general, relation types are not uniformly distributed over a KG but spatially correlated with each other. For example, the neighboring relations of "graduated from" in the KG are more likely to be "person.birthplace" and "university.location" rather than "movie.language". Therefore, for a given entity pair $(h,t)$ , characterizing the relation types of neighboring links of $h$ and $t$ will provide valuable information when inferring the relation type between $h$ and $t$ . Inspired by recent success of graph neural networks [11, 15, 34], we propose using message passing to capture the neighborhood structure for a given entity pair. However, traditional message passing methods usually assume that messages
|
| 59 |
+
|
| 60 |
+
are associated with nodes and messages are passed from nodes to nodes iteratively, which are not suitable for KGs where edge features (relation types) are more important.
|
| 61 |
+
|
| 62 |
+
Relational message passing. To address the above limitation, we propose relational message passing for KG completion. Unlike traditional node-based message passing, relational message passing only considers edge features (relation types), and passes messages of an edge directly to its neighboring edges. Note that since relational message passing only models relations rather than entities, it brings three additional benefits compared with existing knowledge graph embedding methods [3, 13, 22, 24, 35, 39]: (1) it is inductive, since it can handle entities that do not appear in the training data during inference stage; (2) it is storage-efficient, since it does not calculate embeddings of entities; and (3) it is explainable, since it is able to provide explainability for predicted results by modeling the correlation strength among relation types. However, a potential issue of relational message passing is that its computational complexity is significantly higher than node-based message passing (Theorem 2). To solve this issue, we propose alternate relational message passing that passes relational messages between nodes and edges alternately over the KG. We prove that alternate message passing scheme greatly improves time efficiency and achieves the same order of computational complexity as traditional node-based message passing (Theorem 1 and 3).
|
| 63 |
+
|
| 64 |
+
Relational context and relational paths. Under the alternate relational message passing framework, we explore two kinds of local subgraph topology for a given entity pair $(h,t)$ (see Figure 1 for an illustrating example): (1) Relational context. It is important to capture the neighboring relations of a given entity in the KG, because neighboring relations provide us with valuable information about what is the nature or the "type" of the given entity (Figure 1a). Many entities in KGs are not typed or are very loosely typed, so being able to learn about the entity and its context in the KG is valuable. We design a multi-layer relational message passing scheme to aggregate information from multi-hop neighboring edges of $(h,t)$ . (2) Relational paths. Note that modeling only relational context is not able to identify the relative position of $(h,t)$ . It is also important to capture the set of relational paths between $(h,t)$ (Figure 1b). Here different paths of connections between the entities reveal the nature of their relationship and help with the prediction. Therefore, we calculate all relational paths connecting $h$ and $t$ in the KG and pass relational messages along these paths. Finally, we use an attention mechanism to selectively aggregate representations of different relational paths, then combine the above two modules together for relation prediction.
|
| 65 |
+
|
| 66 |
+
Experiments. We conduct extensive experiments on five well-known KGs as well as a new KG proposed by us, DDB14 dataset. Experimental results demonstrate that our proposed model PATHCON (short for relational PATHs and CONtext) significantly outperforms state-of-the-art KG completion methods, for example, the absolute Hit@1 gain over the best baseline is $16.7\%$ and $6.3\%$ on WN18RR and NELL995, respectively. Our ablation studies show the effectiveness of our approach and demonstrate the importance of relational context as well as relational paths. Our method is also shown to maintain strong performance in inductive KG completion, and it
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
Figure 2: An example of PATHCon considering both the relational context within 2 hops of the head and the tail entities (denoted by red edges) and relational paths of length up to 3 relations that connect head to tail (denoted by green arrows). Context and paths are captured based on relation types (not entities) they contain. By combining the context and paths PATHCon predicts the probability of relation $r$ .
|
| 70 |
+
|
| 71 |
+
provides high explainability by identifying important relational context and relation paths for a given predicted relation.
|
| 72 |
+
|
| 73 |
+
Contributions. Our key contributions are listed as follows:
|
| 74 |
+
|
| 75 |
+
- We propose alternate relational message passing framework for KG completion, which is inductive, storage-efficient, explainable, and computationally efficient compared with existing embedding-based methods;
|
| 76 |
+
- Under the proposed framework, we explore two kinds of subgraph topology: relational context and relational paths, and show that they are critical to relation prediction;
|
| 77 |
+
- We propose a new KG dataset DDB14 (Disease Database with 14 relation types) that is suitable for KG-related research.
|
| 78 |
+
|
| 79 |
+
# 2 PROBLEM FORMULATION
|
| 80 |
+
|
| 81 |
+
Let $\mathcal{G} = (\mathcal{V},\mathcal{E})$ be an instance of a knowledge graph, where $\mathcal{V}$ is the set of nodes and $\mathcal{E}$ is the set of edges. Each edge $e$ has a relation type $r\in \mathcal{R}$ . Our goal is to predict missing relations in $\mathcal{G}$ , i.e., given an entity pair $(h,t)$ , we aim to predict the relation of the edge between them. Specifically, we aim to model the distribution over relation types given a pair of entities $(h,t)$ : $p(r|h,t)$ . This is equivalent to modeling the following term
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
p (r | h, t) \propto p (h, t | r) \cdot p (r) \tag {1}
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
according to Bayes' theorem. In Eq. (1), $p(r)$ is the prior distribution over relation types and serves as the regularization of the model. Then the first term can be further decomposed to
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
p (h, t | r) = \frac {1}{2} \left(p (h | r) \cdot p (t | h, r) + p (t | r) \cdot p (h | t, r)\right). \tag {2}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Eq. (2) sets up the guideline for designing our model. The term $p(h|r)$ or $p(t|r)$ measures the likelihood of an entity given a particular relation. Since our model does not consider the identity of entities, we use an entity's local relational subgraph instead to represent the entity itself, i.e., $p\big(C(h)|r\big)$ and $p\big(C(t)|r\big)$ where $C(\cdot)$
|
| 94 |
+
|
| 95 |
+
<table><tr><td>Symbol</td><td>Description</td></tr><tr><td>h, t</td><td>Head entity and tail entity</td></tr><tr><td>r</td><td>Relation type</td></tr><tr><td>sei</td><td>Hidden state of edge e at iteration i</td></tr><tr><td>mi</td><td>Message of node v at iteration i</td></tr><tr><td>N(e)</td><td>Endpoint nodes of edge e</td></tr><tr><td>N(v)</td><td>Neighbor edges of node v</td></tr><tr><td>s(h,t)</td><td>Context representation of the entity pair (h,t)</td></tr><tr><td>sh→t</td><td>Path representation of all paths from h to t</td></tr><tr><td>αP</td><td>Attention weight of path P</td></tr><tr><td>Ph→t</td><td>Set of paths from h to t</td></tr></table>
|
| 96 |
+
|
| 97 |
+
Table 1: Notation used in this paper.
|
| 98 |
+
|
| 99 |
+
denotes the local relational subgraph of an entity. This is also known as relational context for $h$ and $t$ . The term $p(t|h,r)$ or $p(h|t,r)$ in Eq. (2) measures the likelihood of how $t$ can be reached from $h$ or the other way around given that there is a relation $r$ between them. This inspires us to model the relational paths between $h$ and $t$ in the KG. In the following we show how to model the two factors in our method and how they contribute to relation prediction.
|
| 100 |
+
|
| 101 |
+
# 3 OUR APPROACH
|
| 102 |
+
|
| 103 |
+
In this section, we first introduce the relational message passing framework, then present two modules of the proposed PATHCON: relational context message passing and relational path message passing. Notations used in this paper are listed in Table 1.
|
| 104 |
+
|
| 105 |
+
# 3.1 Relational Message Passing Framework
|
| 106 |
+
|
| 107 |
+
Traditional node-based message passing. We first briefly review traditional node-based message passing method for general graphs. Assume that each node $v$ is with feature $x_{v}$ . Then the message passing runs for multiple timesteps over the graph, during which the hidden state $s_{v}^{i}$ of each node $v$ in iteration $i$ is updated by
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
m _ {v} ^ {i} = A \left(\left\{s _ {u} ^ {i} \right\} _ {u \in N (v)}\right), \tag {3}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
s _ {v} ^ {i + 1} = U \left(s _ {v} ^ {i}, m _ {v} ^ {i}\right), \tag {4}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where $m_v^i$ is the message received by node $v$ in iteration $i$ , $\mathcal{N}(v)$ denotes the set of neighbor nodes of $v$ in the graph, $A(\cdot)$ is message aggregation function, and $U(\cdot)$ is node update function. The initial hidden state $s_v^0 = x_v$ .
|
| 118 |
+
|
| 119 |
+
The above framework, though popular for general graphs and has derived many variants such as GCN [15], GraphSAGE [11], and GIN [34], faces the following challenges when applied to knowledge graphs: (1) Unlike general graphs, in most KGs, edges have features (relation types) but nodes don't, which makes node-based message passing less natural for KGs. Though node features can be set as their identities (i.e., one-hot vectors), this will lead to another two issues: (2) Modeling identity of nodes cannot manage previously unseen nodes during inference and fails in inductive settings. (3) In real-world KGs, the number of entities are typically much larger than the number of relation types, which requires large memory for storing entity embeddings.
|
| 120 |
+
|
| 121 |
+
Relational message passing. To address the above problems, a natural thought is to perform message passing over edges instead
|
| 122 |
+
|
| 123 |
+
of nodes:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
m _ {e} ^ {i} = A \left(\left\{s _ {e ^ {\prime}} ^ {i} \right\} _ {e ^ {\prime} \in \mathcal {N} (e)}\right), \tag {5}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
s _ {e} ^ {i + 1} = U \left(s _ {e} ^ {i}, m _ {e} ^ {i}\right), \tag {6}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
where $\mathcal{N}(e)$ denotes the set of neighbor edges of $e$ (i.e., edges that share at least one common end-point with $e$ ) in the graph, and $s_e^0 = x_e$ is the initial edge feature of $e$ , i.e., the relation type. Therefore, Eqs. (5) and (6) are called relational message passing.
|
| 134 |
+
|
| 135 |
+
Relational message passing avoids the drawbacks of node-based message passing, however, it brings a new issue of computational efficiency when passing messages. To see this, we analyze the computational complexity of the two message passing schemes (proofs are given in Appendix A and B):
|
| 136 |
+
|
| 137 |
+
THEOREM 1 (COMPLEXITY OF NODE-BASEDMESSAGE PASSING). Consider a graph with $N$ nodes and $M$ edges. The expected cost of node-based message passing (Eqs. (3) and (4)) in each iteration is $2M + 2N$ .
|
| 138 |
+
|
| 139 |
+
THEOREM 2 (COMPLEXITY OF RELATIONALMESSAGE PASSING). Consider a graph with $N$ nodes and $M$ edges. The expected cost of relational message passing (Eqs. (5) and (6)) in each iteration is $N\cdot \operatorname {Var}[d] + \frac{4M^2}{N}$ , where $\operatorname {Var}[d]$ is the variance of node degrees in the graph.
|
| 140 |
+
|
| 141 |
+
Alternate relational message passing. According to the above theorems, the complexity of relational message passing is much higher than node-based message passing, especially in real-world graphs where node distribution follows the power law distribution whose variance $(\mathrm{Var}[d])$ is extremely large due to the long tail. To reduce the redundant computation in relational message passing and improve its computational efficiency, we propose the following message passing scheme for KGs:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
m _ {v} ^ {i} = A _ {1} \left(\left\{s _ {e} ^ {i} \right\} _ {e \in \mathcal {N} (v)}\right), \tag {7}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
m _ {e} ^ {i} = A _ {2} \left(m _ {v} ^ {i}, m _ {u} ^ {i}\right), v, u \in \mathcal {N} (e), \tag {8}
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
s _ {e} ^ {i + 1} = U \left(s _ {e} ^ {i}, m _ {e} ^ {i}\right). \tag {9}
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
We decompose edge aggregation in Eq. (5) into two steps as Eqs. (7) and (8). In Eq. (7), for each node $v$ , we aggregate all the edges that $v$ connects to by an aggregation function $A_{1}(\cdot)$ and get message $m_v^i$ , where $\mathcal{N}(v)$ denotes the set of neighbor edges for node $v$ . Then in Eq. (8), we obtain message $m_e^i$ of edge $e$ by aggregating messages from its two end-points $v$ and $u$ using function $A_{2}(\cdot)$ , where $\mathcal{N}(e)$ denotes the set of neighbor nodes for edge $e$ . The hidden state of edge $e$ is finally updated using the message $m_e^i$ as in Eq. (9).
|
| 156 |
+
|
| 157 |
+
An intuitive understanding of alternate relational message passing is that nodes here serve as "distribution centers" that collect and temporarily store the messages from their neighbor edges, then propagate the aggregated messages back to each of their neighbor edges. Therefore, we call Eqs. (7)-(9) alternate relational message passing, as messages are passed alternately between nodes and edges.
|
| 158 |
+
|
| 159 |
+
The complexity of alternate relational message passing is given as follows (proof is given in Appendix C):
|
| 160 |
+
|
| 161 |
+
THEOREM 3 (COMPLEXITY OF ALTERNATE RELATIONALMESSAGE PASSING). Consider a graph with $N$ nodes and $M$ edges. The expected cost of alternate relational message passing (Eqs. (7)-(9)) in each iteration is $6M$ .
|
| 162 |
+
|
| 163 |
+
From Theorem 3 it is clear to see that alternate relational message passing greatly reduces the time overhead and achieves the same order of complexity as node-based message passing.
|
| 164 |
+
|
| 165 |
+
Remarks. We present the following two remarks to provide more insight on the proposed framework:
|
| 166 |
+
|
| 167 |
+
REMARK 1 (RELATIONSHIP WITH BELIEF PROPAGATION). Alternate relational message passing is conceptually related to belief propagation (BP) [37], which is also a message-passing algorithm that passes messages between nodes and edges. But note that they are significantly different in: (1) application fields. BP is used to calculate the marginal distribution of unobserved variables in a graphical model, while our method aims to predict the edge type in KGs; (2) the purpose of using edge-node alternate message passing. BP uses this because of the special structure of factor graphs, while we use this to reduce the computational overhead.
|
| 168 |
+
|
| 169 |
+
REMARK 2 (UTILIZING NODE FEATURES). Though our proposed framework is claimed to only use edge features, it can be easily extended to the case where node features are present and assumed to be important, by additionally including the feature vector of node $v$ in Eq. (7), i.e., $m_v^i = A_1\left(\{s_e^i\}_{e\in \mathcal{N}(v)},x_v\right)$ , where $x_{v}$ is the feature of node $v$ . As long as node features do not contain node identities, our proposed framework is still inductive. We do not empirically study the performance of our method on node-feature-aware cases, because node features are unavailable for all datasets used in this paper. We leave the exploration of this extension to future work.
|
| 170 |
+
|
| 171 |
+
# 3.2 Relational Context
|
| 172 |
+
|
| 173 |
+
For a KG triplet $(h,r,t)$ , relational context of $h$ and $t$ is usually highly correlated with $r$ . For example, if $r$ is "graduated from", it's reasonable to guess that the surrounding relations of $h$ are "person.birthplace", "person_gender", etc., and the surrounding relations of $t$ are "institution.location", "university.founder", "university.president", etc. Therefore, the context of $h$ and $t$ will provide valuable clues when identifying the relation type of the edge between them, and here we use the proposed message passing method to learn from relational context.
|
| 174 |
+
|
| 175 |
+
Denote $s_e^i$ as the hidden state of edge $e$ in iteration $i$ , and $m_v^i$ as the message stored at node $v$ in iteration $i$ . We instantiate the alternate relational message passing in Eqs. (7)-(9) to learn the representation of each edge:
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
m _ {v} ^ {i} = \sum_ {e \in \mathcal {N} (v)} s _ {e} ^ {i}, \tag {10}
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
s _ {e} ^ {i + 1} = \sigma \left(\left[ m _ {v} ^ {i}, m _ {u} ^ {i}, s _ {e} ^ {i} \right] \cdot W ^ {i} + b ^ {i}\right), v, u \in \mathcal {N} (e), \tag {11}
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
where $[\cdot ]$ is the concatenation function, $W^{i},b^{i}$ , and $\sigma (\cdot)$ are the learnable transformation matrix, bias, and nonlinear activation function, respectively. $s_e^0 = x_e$ is initial feature of edge $e$ , which
|
| 186 |
+
|
| 187 |
+
can be taken as the one-hot identity vector of the relation type that $e$ belongs to.
|
| 188 |
+
|
| 189 |
+
Relational context message passing in Eqs. (10) and (11) are repeated for $K$ times. The final message $m_h^{K-1}$ and $m_t^{K-1}$ are taken as the representation for head $h$ and tail $t$ , respectively. We also give an illustrative example of relational context message passing in Figure 2, where the red/pink edges denote the first-order/second-order contextual relations.
|
| 190 |
+
|
| 191 |
+
# 3.3 Relational Paths
|
| 192 |
+
|
| 193 |
+
We follow the discussion in Section 2 and discuss how to model the term $p(t|h,r)$ or $p(h|t,r)$ . Note that we do not consider node/edge identity in relational context message passing, which leads to a potential issue that our model is not able to identify the relative position between $h$ and $t$ in the KG. For example, suppose for a given entity pair $(h,t)$ , $h$ is surrounded by "person.birthplace", "person.gender", etc., and $t$ is surrounded by "institution.location", "university.founder", "university.president", etc. Then it can be inferred that $h$ is probably a person and $t$ is probably a university, and there should be a relation "graduated_from" between them because such a pattern appears frequently in the training data. However, the person may have no relationship with the university and they are far from each other in the KG. The reason why such false positive case happens is that relational context message passing can only detect the "type" of $h$ and $t$ , but is not aware of their relative position in the KG.
|
| 194 |
+
|
| 195 |
+
To solve this problem, we propose to explore the connectivity pattern between $h$ and $t$ , which are represented by the paths connecting them in the KG. Specifically, a raw path from $h$ to $t$ in a KG is a sequence of entities and edges: $h(v_0) \xrightarrow{e_0} v_1 \xrightarrow{e_1} v_2 \cdots v_{L-1} \xrightarrow{e_{L-1}} t(v_L)$ , in which two entities $v_i$ and $v_{i+1}$ are connected by edge $e_i$ , and each entity in the path is unique. The corresponding relational path $P$ is the sequence of relation types of all edges in the given raw path, i.e., $P = (r_{e_0}, r_{e_1}, \dots, r_{e_{L-1}})$ , where $r_{e_i}$ is the relation type of edge $e_i$ . Note that we do not use the identity of nodes when modeling relational paths, which is the same as for relational context.
|
| 196 |
+
|
| 197 |
+
Denote $\mathcal{P}_{h\to t}$ as the set of all relational paths from $h$ to $t$ in the KG. Our next step is to define and calculate the representation of relational paths. In PATHCON, we assign an independent embedding vector $s_P$ for each relational path $P\in \mathcal{P}_{h\rightarrow t}$ . A potential concern here is that the number of different paths increases exponentially with the path length (there are $|r|^k$ $k$ -hop paths), however, in practice we observe that in real-world KGs most paths actually do not occur (e.g., only $3.2\%$ of all possible paths of length 2 occur in FB15K dataset), and the number of different paths is actually quite manageable for relatively small values of $k$ ( $k\leq 4$ ).
|
| 198 |
+
|
| 199 |
+
An illustrative example of relational paths is shown in Figure 2, where the two green arrows denote the relational paths from head entity $h$ to tail entity $t$ .
|
| 200 |
+
|
| 201 |
+
# 3.4 Combining Relational Context and Paths
|
| 202 |
+
|
| 203 |
+
For relational context, we use massage passing scheme to calculate the final message $m_h^{K-1}$ and $m_t^{K-1}$ for $h$ and $t$ , which summarizes their context information, respectively. $m_h^{K-1}$ and $m_t^{K-1}$ are further combined together for calculating the context of $(h, t)$ pair:
|
| 204 |
+
|
| 205 |
+
$$
|
| 206 |
+
s _ {(h, t)} = \sigma \left(\left[ m _ {h} ^ {K - 1}, m _ {t} ^ {K - 1} \right] \cdot W ^ {K - 1} + b ^ {K - 1}\right), \tag {12}
|
| 207 |
+
$$
|
| 208 |
+
|
| 209 |
+
where $s_{(h,t)}$ denotes the context representation of the entity pair $(h,t)$ . Note here that Eq. (12) should only take messages of $h$ and $t$ as input without their connecting edge $r$ , since the ground truth relation $r$ should be treated unobserved in the training stage.
|
| 210 |
+
|
| 211 |
+
For relational paths, note that there may be a number of relational paths for a given $(h,t)$ pair, but not all paths are logically related to the predicted relation $r$ , and the importance of each path also varies. In PATHCON, since we have already known the context $s_{(h,t)}$ for $(h,t)$ pair and it can be seen as prior information for paths between $h$ and $t$ , we can calculate the importance scores of paths based on $s_{(h,t)}$ . Therefore, we first calculate the attention weight of each path $P$ with respect to the context $s_{(h,t)}$ :
|
| 212 |
+
|
| 213 |
+
$$
|
| 214 |
+
\alpha_ {P} = \frac {\exp \left(s _ {P} ^ {\top} s _ {(h , t)}\right)}{\sum_ {P \in \mathcal {P} _ {h \rightarrow t}} \exp \left(s _ {P} ^ {\top} s _ {(h , t)}\right)}, \tag {13}
|
| 215 |
+
$$
|
| 216 |
+
|
| 217 |
+
where $\mathcal{P}_{h\to t}$ is the set of all paths from $t$ to $t$ . Then the attention weights are used to average representations of all paths:
|
| 218 |
+
|
| 219 |
+
$$
|
| 220 |
+
s _ {h \rightarrow t} = \sum_ {P \in \mathcal {P} _ {h \rightarrow t}} \alpha_ {P} s _ {P}, \tag {14}
|
| 221 |
+
$$
|
| 222 |
+
|
| 223 |
+
where $s_{h\to t}$ is the aggregated representation of relational paths for $(h,t)$ . In this way, the context information $s_{(h,t)}$ is used to assist in identifying the most important relational paths.
|
| 224 |
+
|
| 225 |
+
Given the relational context representation $s_{(h,t)}$ and the relational path representation $s_{h\rightarrow t}$ , we can predict relations by first adding the two representation together and then taking softmax as follows:
|
| 226 |
+
|
| 227 |
+
$$
|
| 228 |
+
p (r \mid h, t) = \operatorname {S o F T M A X} \left(s _ {(h, t)} + s _ {h \rightarrow t}\right). \tag {15}
|
| 229 |
+
$$
|
| 230 |
+
|
| 231 |
+
Our model can be trained by minimizing the loss between predictions and ground truths over the training triplets:
|
| 232 |
+
|
| 233 |
+
$$
|
| 234 |
+
\min \mathcal {L} = \sum_ {(h, r, t) \in \mathcal {D}} J (p (r | h, t), r), \tag {16}
|
| 235 |
+
$$
|
| 236 |
+
|
| 237 |
+
where $\mathcal{D}$ is the training set and $J(\cdot)$ is the cross-entropy loss.
|
| 238 |
+
|
| 239 |
+
It is worth noticing that the context representation $s_{(h,t)}$ plays two roles in the model: It directly contributes to the predicted relation distribution, and it also helps determine the importance of relational paths with respect to the predicted relation.
|
| 240 |
+
|
| 241 |
+
# 3.5 Discussion on Model Explainability
|
| 242 |
+
|
| 243 |
+
Since PATHCon only models relations without entities, it is able to capture pure relationship among different relation types thus can naturally be used to explain for predictions. The explainability of PATHCon is two-fold:
|
| 244 |
+
|
| 245 |
+
On the one hand, modeling relational context captures the correlation between contextual relations and the predicted relation, which can be used to indicate important neighbor edges for the given relation. For example, "institution.location", "university.founder",
|
| 246 |
+
|
| 247 |
+
and "university.president" can be identified as important contextual relations for "graduated from".
|
| 248 |
+
|
| 249 |
+
On the other hand, modeling relational paths captures the correlation between paths and the predicted relation, which can indicate important relational paths for the given relation. For example, ("schoolmate of", "graduated from") can be identified as an important relational path for "graduated from".
|
| 250 |
+
|
| 251 |
+
It is interesting to see that the explainability provided by relational paths is also connected to first-logic logical rules with the following form:
|
| 252 |
+
|
| 253 |
+
$$
|
| 254 |
+
B _ {1} (h, x _ {1}) \wedge B _ {2} (x _ {1}, x _ {2}) \wedge \dots \wedge B _ {L} (x _ {L - 1}, t) \Rightarrow r (h, t),
|
| 255 |
+
$$
|
| 256 |
+
|
| 257 |
+
where $\bigwedge B_{i}$ is the conjunction of relations in a path and $r(h,t)$ is the predicted relation. The above example of relational path can therefore be written as the following rule:
|
| 258 |
+
|
| 259 |
+
$$
|
| 260 |
+
\begin{array}{l} (h, \text {s c h o o l m a t e} f, x) \wedge (x, \text {g r a d u a t e d} f, t) \\ \Rightarrow (h, \text {g r a d u a t e d f r o m}, t). \\ \end{array}
|
| 261 |
+
$$
|
| 262 |
+
|
| 263 |
+
Therefore, PATHCON can also be used to learn logical rules from KGs just as prior work [9, 12, 19, 36, 40].
|
| 264 |
+
|
| 265 |
+
# 3.6 Design Alternatives
|
| 266 |
+
|
| 267 |
+
Next we discuss several design alternatives for PATHCon. In our ablation experiments we will compare PATHCon with the following alternative implementations.
|
| 268 |
+
|
| 269 |
+
When modeling relational context, we propose two alternatives for context aggregator, instead of the Concatenation context aggregator in Eqs. (11) and (12):
|
| 270 |
+
|
| 271 |
+
Mean context aggregator. It takes the element-wise mean of the input vectors, followed by a nonlinear transformation function:
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
s _ {e} ^ {i + 1} = \sigma \left(\frac {1}{3} \left(m _ {v} ^ {i} + m _ {u} ^ {i} + s _ {e} ^ {i}\right) W + b\right), v, u \in \mathcal {N} (e), \tag {17}
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
The output of Mean context aggregator is invariant to the permutation of its two input nodes, indicating that it treats the head and the tail equally in a triplet.
|
| 278 |
+
|
| 279 |
+
Cross context aggregator. It is inspired by combinatorial features in recommender systems [31], which measure the interaction of unit features (e.g., AND(gender=female, language=English)). Note that Mean and Concatenation context aggregator simply transform messages from two input nodes separately and add them up together, without modeling the interaction between them that might be useful for link prediction. In Cross context aggregator, we first calculate all element-level pairwise interactions between messages from the head and the tail:
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
m _ {v} ^ {i} m _ {u} ^ {i} ^ {\top} = \left[ \begin{array}{c c c} m _ {v} ^ {i} ^ {(1)} m _ {u} ^ {i} ^ {(1)} & \dots & m _ {v} ^ {i} ^ {(1)} m _ {u} ^ {i} ^ {(d)} \\ \dots & & \dots \\ m _ {v} ^ {i} ^ {(d)} m _ {u} ^ {i} ^ {(1)} & \dots & m _ {v} ^ {i} ^ {(d)} m _ {u} ^ {i} ^ {(d)} \end{array} \right], \tag {18}
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
where we use superscript with parentheses to indicate the element index and $d$ is the dimension of $m_v^i$ and $m_u^i$ . Then we summarize all interactions together via flattening the interaction matrix to a vector then multiplied by a transformation matrix:
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
s _ {e} ^ {i + 1} = \sigma \left(\text {f l a t t e n} \left(m _ {v} ^ {i} m _ {u} ^ {i} ^ {\top}\right) W _ {1} ^ {i} + s _ {e} ^ {i} W _ {2} ^ {i} + b ^ {i}\right), v, u \in \mathcal {N} (e). \tag {19}
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
It is worth noting that Cross context aggregator preserves the order of input nodes.
|
| 292 |
+
|
| 293 |
+
Learning path representation with RNN. When modeling relational paths, recurrent neural network (RNN) can be used to learn the representation of relational path $P = (r_1, r_2, \ldots)$ :
|
| 294 |
+
|
| 295 |
+
$$
|
| 296 |
+
s _ {P} = \operatorname {R N N} \left(r _ {1}, r _ {2}, \dots\right), \tag {20}
|
| 297 |
+
$$
|
| 298 |
+
|
| 299 |
+
instead of directly assigning an embedding vector to $P$ . The advantage of RNN against path embedding is that its number of parameters is fixed and does not depend on the number of relational paths. Another potential benefit is that RNN can hopefully capture the similarity among different relational paths.
|
| 300 |
+
|
| 301 |
+
Mean path aggregator. When calculating the final representation of relational paths for $(h, t)$ pair, we can also simply average all the representations of paths from $h$ to $t$ instead of the Attention path aggregator in Eqs. (13) and (14):
|
| 302 |
+
|
| 303 |
+
$$
|
| 304 |
+
s _ {h \rightarrow t} = \sum_ {P \in \mathcal {P} _ {h \rightarrow t}} s p. \tag {21}
|
| 305 |
+
$$
|
| 306 |
+
|
| 307 |
+
Mean path aggregator can be used in the case where representation of relational context is unavailable, since it does not require attention weights as input.
|
| 308 |
+
|
| 309 |
+
# 4 EXPERIMENTS
|
| 310 |
+
|
| 311 |
+
In this section, we evaluate the proposed PATHCon model, and present its performance on six KG datasets.
|
| 312 |
+
|
| 313 |
+
# 4.1 Experimental Setup
|
| 314 |
+
|
| 315 |
+
Datasets. We conduct experiments on five standard KG benchmarks: FB15K, FB15K-237, WN18, WN18RR, NELL995, and one KG dataset proposed by us: DDB14.
|
| 316 |
+
|
| 317 |
+
FB15K [4] is from Freebase [2], a large-scale KG of general human knowledge. FB15k-237 [23] is a subset of FB15K where inverse relations are removed. WN18 [4] contains conceptual-semantic and lexical relations among English words from WordNet [18]. WN18RR [6] is a subset of WN18 where inverse relations are removed. NELL995 [33] is extracted from the 995th iteration of the NELL system [5] containing general knowledge.
|
| 318 |
+
|
| 319 |
+
In addition, we present a new dataset DDB14 that is suitable for KG-related tasks. DDB14 is collected from Disease Database<sup>6</sup>, which is a medical database containing terminologies and concepts such as diseases, symptoms, drugs, as well as their relationships. We randomly sample two subsets of 4,000 triplets from the original one as validation set and test set, respectively.
|
| 320 |
+
|
| 321 |
+
The statistics of the six datasets are summarized in Table 2. We also calculate and present the mean and variance of node degree distribution (i.e., $\mathbb{E}[d]$ and $\mathrm{Var}[d]$ ) for each KG. It is clear that $\mathrm{Var}[d]$ is large for all KGs, which empirically demonstrates that the complexity of relational message passing is fairly high, thus alternate relational message passing is necessary for real graphs.
|
| 322 |
+
|
| 323 |
+
Baselines. We compare PATHCON with several state-of-the-art models, including TransE [3], ComplEx [24], DistMult [35], RotatE [22], Simple [13], QuatE [39], and DRUM [19]. The first six
|
| 324 |
+
|
| 325 |
+
<table><tr><td></td><td>FB15K</td><td>FB15K-237</td><td>WN18</td><td>WN18RR</td><td>NELL995</td><td>DDB14</td></tr><tr><td>#nodes</td><td>14,951</td><td>14,541</td><td>40,943</td><td>40,943</td><td>63,917</td><td>9,203</td></tr><tr><td>#relations</td><td>1,345</td><td>237</td><td>18</td><td>11</td><td>198</td><td>14</td></tr><tr><td>#training</td><td>483,142</td><td>272,115</td><td>141,442</td><td>86,835</td><td>137,465</td><td>36,561</td></tr><tr><td>#validation</td><td>50,000</td><td>17,535</td><td>5,000</td><td>3,034</td><td>5,000</td><td>4,000</td></tr><tr><td>#test</td><td>59,071</td><td>20,466</td><td>5,000</td><td>3,134</td><td>5,000</td><td>4,000</td></tr><tr><td>E[d]</td><td>64.6</td><td>37.4</td><td>6.9</td><td>4.2</td><td>4.3</td><td>7.9</td></tr><tr><td>Var[d]</td><td>32,441.8</td><td>12,336.0</td><td>236.4</td><td>64.3</td><td>750.6</td><td>978.8</td></tr></table>
|
| 326 |
+
|
| 327 |
+
models are embedding-based methods, while DRUM only uses relational paths to make prediction. The implementation details of baselines (as well as our method) is provided in Appendix D.
|
| 328 |
+
|
| 329 |
+
We also conduct extensive ablation study and propose two reduced versions of our model, CON and PATH, which only use relational context and relational paths, respectively, to test the performance of the two components separately.
|
| 330 |
+
|
| 331 |
+
The number of parameters of each model on DDB14 are shown in Table 3. The result demonstrates that PATHCON is much more storage-efficient than embedding-based methods, since it does not need to calculate and store entity embeddings.
|
| 332 |
+
|
| 333 |
+
Table 2: Statistics of all datasets. $\mathbb{E}[d]$ and $\operatorname {Var}[d]$ are mean and variance of the node degree distribution, respectively.
|
| 334 |
+
|
| 335 |
+
<table><tr><td>Method</td><td>TransE</td><td>ComplEx</td><td>DisMult</td><td>RotatE</td><td>SimpleE</td><td>QuatE</td><td>PATHCon</td></tr><tr><td>#param.</td><td>3.7M</td><td>7.4M</td><td>3.7M</td><td>7.4M</td><td>7.4M</td><td>14.7M</td><td>0.06M</td></tr></table>
|
| 336 |
+
|
| 337 |
+
Table 3: Number of parameters of all models on DDB14.
|
| 338 |
+
|
| 339 |
+
Evaluation Protocol. We evaluate all methods on relation prediction, i.e., for a given entity pair $(h,t)$ in the test set, we rank the ground-truth relation type $r$ against all other candidate relation types. It is worth noticing that most baselines are originally designed for head/tail prediction, therefore, their negative sampling strategy is to corrupt the head or the tail for a true triple $(h,r,t)$ , i.e., replacing $h$ or $t$ with a randomly sampled entity $h'$ or $t'$ from KGs, and using $(h',r,t)$ or $(h,r,t')$ as the negative sample. In relation prediction, since the task is to predict the missing relation for a given pair $(h,t)$ , we modify the negative sampling strategy accordingly by corrupting the relation $r$ of each true triplet $(h,r,t)$ , and use $(h,r',t)$ as the negative sample where $r'$ is randomly sampled from the set of relation types. This new negative sampling strategy can indeed improve the performance of baselines in relation prediction.
|
| 340 |
+
|
| 341 |
+
We use MRR (mean reciprocal rank) and Hit@1, 3 (hit ratio with cut-off values of 1 and 3) as evaluation metrics.
|
| 342 |
+
|
| 343 |
+
# 4.2 Main Results
|
| 344 |
+
|
| 345 |
+
Comparison with baselines. The results of relation prediction on all datasets are reported in Table 4. In general, our method outperforms all baselines on all datasets. Specifically, the absolute Hit@1 gain of PATHCon against the best baseline in relation prediction task are $0.2\%$ , $0.6\%$ , $0.9\%$ , $16.7\%$ , $6.3\%$ , and $1.8\%$ in the six datasets, respectively. The improvement is rather significant for WN18RR and NELL995, which are exactly the two most sparse KGs according to the average node degree shown in Table 2. This empirically demonstrates that PATHCon maintains great performance for sparse KGs, and this is probably because PATHCon has much fewer parameters
|
| 346 |
+
|
| 347 |
+
<table><tr><td rowspan="2"></td><td colspan="3">FB15K</td><td colspan="3">FB15K-237</td><td colspan="3">WN18</td><td colspan="3">WN18RR</td><td colspan="3">NELL995</td><td colspan="3">DDB14</td></tr><tr><td>MRR</td><td>Hit@1</td><td>Hit@3</td><td>MRR</td><td>Hit@1</td><td>Hit@3</td><td>MRR</td><td>Hit@1</td><td>Hit@3</td><td>MRR</td><td>Hit@1</td><td>Hit@3</td><td>MRR</td><td>Hit@1</td><td>Hit@3</td><td>MRR</td><td>Hit@1</td><td>Hit@3</td></tr><tr><td>TransE</td><td>0.962</td><td>0.940</td><td>0.982</td><td>0.966</td><td>0.946</td><td>0.984</td><td>0.971</td><td>0.955</td><td>0.984</td><td>0.784</td><td>0.669</td><td>0.870</td><td>0.841</td><td>0.781</td><td>0.889</td><td>0.966</td><td>0.948</td><td>0.980</td></tr><tr><td>ComplEx</td><td>0.901</td><td>0.844</td><td>0.952</td><td>0.924</td><td>0.879</td><td>0.970</td><td>0.985</td><td>0.979</td><td>0.991</td><td>0.840</td><td>0.777</td><td>0.880</td><td>0.703</td><td>0.625</td><td>0.765</td><td>0.953</td><td>0.931</td><td>0.968</td></tr><tr><td>DistMult</td><td>0.661</td><td>0.439</td><td>0.868</td><td>0.875</td><td>0.806</td><td>0.936</td><td>0.786</td><td>0.584</td><td>0.987</td><td>0.847</td><td>0.787</td><td>0.891</td><td>0.634</td><td>0.524</td><td>0.720</td><td>0.927</td><td>0.886</td><td>0.961</td></tr><tr><td>RotatE</td><td>0.979</td><td>0.967</td><td>0.986</td><td>0.970</td><td>0.951</td><td>0.980</td><td>0.984</td><td>0.979</td><td>0.986</td><td>0.799</td><td>0.735</td><td>0.823</td><td>0.729</td><td>0.691</td><td>0.756</td><td>0.953</td><td>0.934</td><td>0.964</td></tr><tr><td>Simple</td><td>0.983</td><td>0.972</td><td>0.991</td><td>0.971</td><td>0.955</td><td>0.987</td><td>0.972</td><td>0.964</td><td>0.976</td><td>0.730</td><td>0.659</td><td>0.755</td><td>0.716</td><td>0.671</td><td>0.748</td><td>0.924</td><td>0.892</td><td>0.948</td></tr><tr><td>QuatE</td><td>0.983</td><td>0.972</td><td>0.991</td><td>0.974</td><td>0.958</td><td>0.988</td><td>0.981</td><td>0.975</td><td>0.983</td><td>0.823</td><td>0.767</td><td>0.852</td><td>0.752</td><td>0.706</td><td>0.783</td><td>0.946</td><td>0.922</td><td>0.962</td></tr><tr><td>DRUM</td><td>0.945</td><td>0.945</td><td>0.978</td><td>0.959</td><td>0.905</td><td>0.958</td><td>0.969</td><td>0.956</td><td>0.980</td><td>0.854</td><td>0.778</td><td>0.912</td><td>0.715</td><td>0.640</td><td>0.740</td><td>0.958</td><td>0.930</td><td>0.987</td></tr><tr><td>CON</td><td>0.962± 0.000</td><td>0.934± 0.000</td><td>0.988± 0.000</td><td>0.978± 0.000</td><td>0.961± 0.001</td><td>0.995± 0.000</td><td>0.960± 0.002</td><td>0.927± 0.005</td><td>0.992± 0.001</td><td>0.943± 0.002</td><td>0.894± 0.004</td><td>0.993± 0.003</td><td>0.875± 0.003</td><td>0.815± 0.004</td><td>0.928± 0.003</td><td>0.977± 0.000</td><td>0.961± 0.001</td><td>0.994± 0.001</td></tr><tr><td>PATH</td><td>0.937± 0.001</td><td>0.918± 0.001</td><td>0.951± 0.001</td><td>0.972± 0.001</td><td>0.957± 0.001</td><td>0.986± 0.001</td><td>0.981± 0.000</td><td>0.971± 0.005</td><td>0.989± 0.001</td><td>0.933± 0.000</td><td>0.897± 0.001</td><td>0.961± 0.001</td><td>0.737± 0.001</td><td>0.685± 0.002</td><td>0.764± 0.002</td><td>0.969± 0.000</td><td>0.948± 0.001</td><td>0.991± 0.000</td></tr><tr><td>PATHCON</td><td>0.984± 0.001</td><td>0.974± 0.002</td><td>0.995± 0.001</td><td>0.979± 0.000</td><td>0.964± 0.001</td><td>0.994± 0.001</td><td>0.993± 0.001</td><td>0.988± 0.001</td><td>0.998± 0.000</td><td>0.974± 0.001</td><td>0.954± 0.002</td><td>0.994± 0.000</td><td>0.896± 0.001</td><td>0.844± 0.004</td><td>0.941± 0.001</td><td>0.980± 0.000</td><td>0.966± 0.001</td><td>0.995± 0.000</td></tr></table>
|
| 348 |
+
|
| 349 |
+
Table 4: Results of relation prediction on all datasets. Best results are highlighted in bold, and best results of baselines are highlighted with underlines.
|
| 350 |
+
|
| 351 |
+
than baselines and is less prone to overfitting. In contrast, performance gain of PATHCON on FB15K is less significant, which may be because the density of FB15K is very high so that it is much easier for baselines to handle.
|
| 352 |
+
|
| 353 |
+
In addition, the results also demonstrate the stability of PATHCON as we observe that most of the standard deviations are quite small.
|
| 354 |
+
|
| 355 |
+
Results in Tables 4 also show that, in many cases CON or PATH can already beat most baselines. Combining relational context and relational paths together usually leads to even better performance.
|
| 356 |
+
|
| 357 |
+
Inductive KG completion. We also examine the performance of our method in inductive KG completion. We randomly sample a subset of nodes that appears in the test set, then remove these nodes along with their associated edges from the training set. The remaining training set is used to train the models, and we add back the removed edges during evaluation. The evaluation transforms from fully conductive to fully inductive when the ratio of removed nodes increases from 0 to 1. The results of PATHCon, DistMult, and RotatE on relation prediction task are plotted in Figure 3. We observe that the performance of our method decreases slightly in fully inductive setting (from 0.954 to 0.922), while DistMult and RotatE fall to a "randomly guessing" level. This is because the two baselines are embedding-based models that rely on modeling node identity, while our method does not consider node identity thus being naturally generalizable to inductive KG completion.
|
| 358 |
+
|
| 359 |
+
# 4.3 Model Variants
|
| 360 |
+
|
| 361 |
+
The number of context hops and maximum path length. We investigate the sensitivity of our model to the number of context hops and maximum path length. We vary the two numbers from 0 to 4 (0 means the corresponding module is not used), and report the results of all combinations (without $(0,0)$ ) on WN18RR in Figure 4. It is clear to see that increasing the number of context hops and maximum path length can significantly improve the result when they are small, which demonstrates that including more neighbor edges or counting longer paths does benefit the performance. But the marginal benefit is diminishing with the increase of layer numbers. Similar trend is observed on other datasets too.
|
| 362 |
+
|
| 363 |
+
Context aggregators. We study how different implementations of context aggregator affect the model performance. The results of Mean, Concat, and Cross context aggregator on four datasets are shown in Figure 5 (results on FB15K and WN18 are omitted as they are similar to FB15K-237 and WN18RR, respectively). The results show that Mean performs worst on all datasets, which indicates the importance of node orders when aggregating features from nodes to edges. It is also interesting to notice that the performance comparison between Concat and Cross varies on different datasets: Concat is better than Cross on NELL995 and is worse than Cross on WN18RR, while their performance is on par on FB15K-237 and DDB14. However, note that a significant defect of Cross is that it has much more parameters than Concat, which requires more running time and memory resource.
|
| 364 |
+
|
| 365 |
+
Path representation types and path aggregators. We implement four combinations of path representation types and path aggregators: Embedding+Mean, Embedding+Attention, RNN+Mean, and RNN+Attention, of which the results are presented in Figure 6. Different from context aggregators, results on the six datasets are similar for path representation types and path aggregators, so we only report the results on WN18RR. We find that Embedding is consistently better than RNN, which is probably because the length of relational paths are generally short (no more than 4 in our experiments), so RNN can hardly demonstrate its strength in modeling sequences. The results also show that Attention aggregator performs slightly better than Mean aggregator. This demonstrates that the contextual information of head and tail entities indeed helps identify the importance of relational paths.
|
| 366 |
+
|
| 367 |
+
Initial edge features. Here we examine three types of initial edge features: identity, BOW, and BERT embedding of relation types. We choose to test on NELL995 because its relation names consist of relatively more English words thus are semantically meaningful (e.g., "organization.headquartered.in.state.orprovince"). The results are reported in Figure 7, which shows that BOW features are slightly better than identity, but BERT embeddings perform significantly worse than the other two. We attribute this finding to that BERT embeddings are better at identifying semantic relationship among relation types, but our model aims to learn the mapping from BERT embeddings of context/paths to the identity of predicted relation
|
| 368 |
+
|
| 369 |
+

|
| 370 |
+
Figure 3: Results of inductive KG completion on WN18RR.
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 4: Results of PATHCon with different hops/length on WN18RR.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure 5: Results of Con with different context aggregators.
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
Figure 6: Results of PATHCON with different path representation types and path aggregators on WN18RR.
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
Figure 7: Results of CON, PATH, and PATHCON with different initial features of relations on NELL995.
|
| 383 |
+
|
| 384 |
+
types. In other words, BERT may perform better if the predicted relation types are also represented by BERT embeddings, so that this mapping is learned within the embedding space. We leave the exploration as future work.
|
| 385 |
+
|
| 386 |
+
# 4.4 Case Study on Model Explainability
|
| 387 |
+
|
| 388 |
+
We choose FB15K-237 and DDB14 as the datasets to show the explainability of PATHCon. The number of context hops is set to 1 and the maximum path length is set to 2. When training is completed, we choose three relations from each dataset and list the most important relational context/paths to them based on the transformation matrix of the context/path aggregator. The results are presented in Table 5, from which we find that most of the identified context/paths are logically meaningful. For example, "education campus of" can be inferred by "education institution in", and "is associated with" is found to be a transitive relation. In addition, more visualized results and discussion on DDB14 dataset are included in Appendix E.
|
| 389 |
+
|
| 390 |
+
# 5 RELATED WORK
|
| 391 |
+
|
| 392 |
+
# 5.1 Knowledge Graph Completion
|
| 393 |
+
|
| 394 |
+
KGs provide external information for a variety of downstream tasks such as recommender systems [27-29] and semantic analysis [26]. Most existing methods of KG completion are based on embeddings, which normally assign an embedding vector to each entity and relation in the continuous embedding space and train the embeddings based on the observed facts. One line of KG embedding methods is translation-based, which treat entities as points in a continuous
|
| 395 |
+
|
| 396 |
+
space and each relation translates the entity point. The objective is that the translated head entity should be close to the tail entity in real space [3], complex space [22], or quaternion space [39], which have shown capability to handle multiple relation patterns and achieve state-of-the-art result. Another line of work is multi-linear or bilinear models, where they calculate the semantic similarity by matrix or vector dot product in real [35] or complex space [24]. Besides, several embedding-based methods explore the architecture design that goes beyond point vectors [6, 21]. However, these embedding-based models fail to predict links in inductive setting, neither can they discover any rules that explain the prediction.
|
| 397 |
+
|
| 398 |
+
# 5.2 Graph Neural Networks
|
| 399 |
+
|
| 400 |
+
Existing GNNs generally follow the idea of neural message passing [10] that consists of two procedures: propagation and aggregation. Under this framework, several GNNs are proposed that take inspiration from convolutional neural networks [8, 11, 15, 25], recurrent neural networks [17], and recursive neural networks [1]. However, these methods use node-based message passing, while we propose passing messages based on edges in this work.
|
| 401 |
+
|
| 402 |
+
There are two GNN models conceptually connected to our idea of identifying relative position of nodes in a graph. DEGNN [16] captures the distance between the node set whose representation is to be learned and each node in the graph, which is used as extra node attributes or as controllers of message aggregation in GNNs. SEAL [38] labels nodes with their distance to two nodes $a$ and $b$ when predicting link existence between $(a, b)$ . In contrast, we use relational paths to indicate the relative position of two nodes.
|
| 403 |
+
|
| 404 |
+
Researchers also tried to apply GNNs to knowledge graphs. For example, Schlichtkrull et al. [20] use GNNs to model the entities and relations in KGs, however, they are limited in that they did not consider the relational paths and cannot predict in inductive settings. Wang et al. [30, 32] use GNNs to learn entity embeddings in KGs, but their purpose is to use the learned embeddings to enhance the performance of recommender systems rather than KG completion.
|
| 405 |
+
|
| 406 |
+
# 6 CONCLUSION AND FUTURE WORK
|
| 407 |
+
|
| 408 |
+
We propose PATHCon for KG completion. PATHCon considers two types of subgraph structure in KGs, i.e., contextual relations of the head/tail entity and relational paths between head and tail entity. We show that both relational context and relational paths are critical to relation prediction, and they can be combined further to achieve
|
| 409 |
+
|
| 410 |
+
<table><tr><td></td><td>Predicted relation</td><td>Important relational context</td><td>Important relational paths</td></tr><tr><td>FB15K-237</td><td>award winner
|
| 411 |
+
film written by
|
| 412 |
+
education campus of</td><td>award honored for, award nominee
|
| 413 |
+
film release region
|
| 414 |
+
education major field of study</td><td>(award nominated for), (award winner, award category)
|
| 415 |
+
(film edited by), (film crewmember)
|
| 416 |
+
(education institution in)</td></tr><tr><td>DDB14</td><td>may cause
|
| 417 |
+
is associated with
|
| 418 |
+
may be allelic with</td><td>may cause, belongs to the drug family of
|
| 419 |
+
is associated with, is a risk factor for
|
| 420 |
+
may be allelic with, belong(s) to the category of</td><td>(is a risk factor for), (see also, may cause)
|
| 421 |
+
(is associated with, is associated with)
|
| 422 |
+
(may cause, may cause), (may be allelic with, may be allelic with)</td></tr></table>
|
| 423 |
+
|
| 424 |
+
Table 5: Examples of important context/paths identified by PATHCon on FB15K-237 and DDB14.
|
| 425 |
+
|
| 426 |
+
state-of-the-art performance. Moreover, PATHCon is also shown to be inductive, storage-efficient, and explainable.
|
| 427 |
+
|
| 428 |
+
We point out four directions for future work. First, as we discussed in Remark 2, it is worth studying the empirical performance of PATHCON on node-feature-aware KGs. Second, as we discussed in Section 4.3, designing a model that can better take advantage of pre-trained word embeddings is a promising direction; Third, it is worth investigating why RNN does not perform well, and whether we can model relational paths better; Last, it is interesting to study if the context representation and path representation can be assembled in a more principled way.
|
| 429 |
+
|
| 430 |
+
Acknowledgements. This research has been supported in part by DARPA, ARO, NSF, NIH, Stanford Data Science Initiative, Wu Tsai Neurosciences Institute, Chan Zuckerberg Biohub, Amazon, JPMorgan Chase, Docomo, Hitachi, Intel, JD.com, KDDI, NVIDIA, Dell, Toshiba, Visa, and UnitedHealth Group.
|
| 431 |
+
|
| 432 |
+
# REFERENCES
|
| 433 |
+
|
| 434 |
+
[1] Monica Bianchini, Marco Gori, and Franco Scarselli. 2001. Processing directed acyclic graphs with recursive neural networks. IEEE Transactions on Neural Networks 12, 6 (2001), 1464-1470.
|
| 435 |
+
[2] Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. 2008. Freebase: a collaboratively created graph database for structuring human knowledge. In SIGMOD. 1247-1250.
|
| 436 |
+
[3] Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. In NeurIPS. 2787-2795.
|
| 437 |
+
[4] Antoine Bordes, Jason Weston, Ronan Collobert, and Yoshua Bengio. 2011. Learning structured embeddings of knowledge bases. In AAAI. 301-306.
|
| 438 |
+
[5] Andrew Carlson, Justin Betteridge, Bryan Kisiel, Burr Settles, Estevam R Hruschka, and Tom M Mitchell. 2010. Toward an architecture for never-ending language learning. In AAAI. 1306-1313.
|
| 439 |
+
[6] Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, and Sebastian Riedel. 2018. Convolutional 2d knowledge graph embeddings. In AAAI. 1811-1818.
|
| 440 |
+
[7] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: pre-training of deep bidirectional transformers for language understanding. arXiv preprint (2018).
|
| 441 |
+
[8] David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan Aspuru-Guzik, and Ryan P Adams. 2015. Convolutional networks on graphs for learning molecular fingerprints. In NeurIPS. 2224-2232.
|
| 442 |
+
[9] Luis Galárraga, Christina Teflioudi, Katja Hose, and Fabian M Suchanek. 2015. Fast rule mining in ontological knowledge bases with amie+. The VLDB Journal 24, 6 (2015), 707-730.
|
| 443 |
+
[10] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. 2017. Neural message passing for quantum chemistry. In ICML. 1263-1272.
|
| 444 |
+
[11] Will Hamilton, Zhitao Ying, and Jure Leskovec. 2017. Inductive representation learning on large graphs. In NeurIPS. 1024-1034.
|
| 445 |
+
[12] Vinh Thinh Ho, Daria Stepanova, Mohamed H Gad-Elrab, Evgeny Kharlamov, and Gerhard Weikum. 2018. Rule learning from knowledge graphs guided by embedding models. In International Semantic Web Conference. Springer, 72–90.
|
| 446 |
+
[13] Seyed Mehran Kazemi and David Poole. 2018. Simple embedding for link prediction in knowledge graphs. In NeurIPS. 4284-4295.
|
| 447 |
+
[14] Diederik P Kingma and Jimmy Ba. 2015. Adam: a method for stochastic optimization. In ICLR.
|
| 448 |
+
[15] Thomas N Kipf and Max Welling. 2017. Semi-supervised classification with graph convolutional networks. In ICLR.
|
| 449 |
+
[16] Pan Li, Yanbang Wang, Hongwei Wang, and Jure Leskovec. 2020. Distance Encoding: Design Provably More Powerful Neural Networks for Graph Representation
|
| 450 |
+
|
| 451 |
+
Learning. In NeurIPS.
|
| 452 |
+
[17] Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. 2016. Gated graph sequence neural networks. In ICLR.
|
| 453 |
+
[18] George A Miller. 1995. Wordnet: a lexical database for English. Commun. ACM 38, 11 (1995), 39-41.
|
| 454 |
+
[19] Ali Sadeghian, Mohammadreza Armandpour, Patrick Ding, and Daisy Zhe Wang 2019. Drum: end-to-end differentiable rule mining on knowledge graphs. In NeurIPS, 15321-15331.
|
| 455 |
+
[20] Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne Van Den Berg, Ivan Titov, and Max Welling. 2018. Modeling relational data with graph convolutional networks. In European Semantic Web Conference. Springer, 593-607.
|
| 456 |
+
[21] Richard Socher, Danqi Chen, Christopher D Manning, and Andrew Ng. 2013. Reasoning with neural tensor networks for knowledge base completion. In NeurIPS 926-934.
|
| 457 |
+
[22] Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. 2019. Rotate: knowledge graph embedding by relational rotation in complex space. In ICLR.
|
| 458 |
+
[23] Kristina Toutanova and Danqi Chen. 2015. Observed versus latent features for knowledge base and text inference. In Workshop on Continuous Vector Space Models and their Compositionality. 57-66.
|
| 459 |
+
[24] Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. In ICML.
|
| 460 |
+
[25] Hongwei Wang and Jure Leskovec. 2020. Unifying graph convolutional neural networks and label propagation. arXiv preprint (2020).
|
| 461 |
+
[26] Hongwei Wang, Fuzheng Zhang, Min Hou, Xing Xie, Minyi Guo, and Qi Liu. 2018. Shine: Signed heterogeneous information network embedding for sentiment link prediction. In WSDM, 592-600.
|
| 462 |
+
[27] Hongwei Wang, Fuzheng Zhang, Jialin Wang, Miao Zhao, Wenjie Li, Xing Xie, and Minyi Guo. 2018. Ripplenet: Propagating user preferences on the knowledge graph for recommender systems. In CIKM. 417-426.
|
| 463 |
+
[28] Hongwei Wang, Fuzheng Zhang, Jialin Wang, Miao Zhao, Wenjie Li, Xing Xie and Minyi Guo. 2019. Exploring high-order user preference on the knowledge graph for recommender systems. ACM Transactions on Information Systems 37, 3 (2019), 1-26.
|
| 464 |
+
[29] Hongwei Wang, Fuzheng Zhang, Xing Xie, and Minyi Guo. 2018. DKN: Deep knowledge-aware network for news recommendation. In WWW. 1835-1844.
|
| 465 |
+
[30] Hongwei Wang, Fuzheng Zhang, Mengdi Zhang, Jure Leskovec, Miao Zhao, Wenjie Li, and Zhongyuan Wang. 2019. Knowledge-aware graph neural networks with label smoothness regularization for recommender systems. In KDD. 968-977.
|
| 466 |
+
[31] Hongwei Wang, Fuzheng Zhang, Miao Zhao, Wenjie Li, Xing Xie, and Minyi Guo. 2019. Multi-task feature learning for knowledge graph enhanced recommendation. In WWW. 2000-2010.
|
| 467 |
+
[32] Hongwei Wang, Miao Zhao, Xing Xie, Wenjie Li, and Minyi Guo. 2019. Knowledge graph convolutional networks for recommender systems. In WWW.
|
| 468 |
+
[33] Wenhan Xiong, Thien Hoang, and William Yang Wang. 2017. Deeppath: a reinforcement learning method for knowledge graph reasoning. In EMNLP. 564-573.
|
| 469 |
+
[34] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. 2019. How powerful are graph neural networks?. In ICLR.
|
| 470 |
+
[35] Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. 2015. Embedding entities and relations for learning and inference in knowledge bases. In ICLR.
|
| 471 |
+
[36] Fan Yang, Zhilin Yang, and William W Cohen. 2017. Differentiable learning of logical rules for knowledge base reasoning. In NeurIPS. 2319-2328.
|
| 472 |
+
[37] Jonathan S Yedidia, William T Freeman, and Yair Weiss. 2003. Understanding belief propagation and its generalizations. Exploring artificial intelligence in the new millennium 8 (2003), 236-239.
|
| 473 |
+
[38] Muhan Zhang and Yixin Chen. 2018. Link prediction based on graph neural networks. In NeurIPS. 5165-5175.
|
| 474 |
+
[39] Shuai Zhang, Yi Tay, Lina Yao, and Qi Liu. 2019. Quaternion knowledge graph embeddings. In NeurIPS. 2731-2741.
|
| 475 |
+
[40] Wen Zhang, Bibek Paudel, Liang Wang, Jiaoyan Chen, Hai Zhu, Wei Zhang, Abraham Bernstein, and Huajun Chen. 2019. Iteratively learning embeddings and rules for knowledge graph reasoning. In WWW. 2366-2377.
|
| 476 |
+
|
| 477 |
+
# APPENDIX
|
| 478 |
+
|
| 479 |
+
# A Proof of Theorem 1
|
| 480 |
+
|
| 481 |
+
Proof. In each iteration of node-based message passing:
|
| 482 |
+
|
| 483 |
+
The aggregation (Eq. (3)) is performed for $N$ times, and each aggregation takes $\mathbb{E}[d] = \frac{2M}{N}$ elements as input in expectation, where $\mathbb{E}[d]$ is the expected node degree. Therefore, the expected cost of aggregation in each iteration is $N\cdot \mathbb{E}[d] = 2M$ ;
|
| 484 |
+
|
| 485 |
+
The update (Eq. (4)) is performed for $N$ times, and each update takes 2 elements as input. Therefore, the cost of update in each iteration is $2N$ .
|
| 486 |
+
|
| 487 |
+
In conclusion, the expected cost of node-based message passing in each iteration is $2M + 2N$ .
|
| 488 |
+
|
| 489 |
+
# B Proof of Theorem 2
|
| 490 |
+
|
| 491 |
+
For relational message passing, it actually passes messages on the line graph of the original graph. The line graph of a given graph $\mathcal{G}$ , denoted by $L(\mathcal{G})$ , is a graph such that each node of $L(\mathcal{G})$ represents an edge of $\mathcal{G}$ , and two nodes of $L(\mathcal{G})$ are adjacent if and only if their corresponding edges share a common endpoint in $\mathcal{G}$ . We show by the following lemma that the line graph is much larger and denser than the original graph:
|
| 492 |
+
|
| 493 |
+
LEMMA 1. The number of nodes in line graph $L(\mathcal{G})$ is $M$ , and the expected node degree of $L(\mathcal{G})$ is
|
| 494 |
+
|
| 495 |
+
$$
|
| 496 |
+
\mathbb {E} _ {L (\mathcal {G})} [ d ] = \frac {N \cdot \operatorname {V a r} _ {\mathcal {G}} [ d ]}{M} + \frac {4 M}{N} - 2, \tag {22}
|
| 497 |
+
$$
|
| 498 |
+
|
| 499 |
+
where $\operatorname{Var}_{\mathcal{G}}[d]$ is the variance of node degrees in $\mathcal{G}$ .
|
| 500 |
+
|
| 501 |
+
Proof. It is clear that the number of nodes in line graph $L(\mathcal{G})$ is $M$ because each node in $L(\mathcal{G})$ corresponds to an edge in $\mathcal{G}$ . We now prove that the expected node degree of $L(\mathcal{G})$ is $\mathbb{E}_{L(\mathcal{G})}[d] = \frac{N \cdot \mathrm{Var}_{\mathcal{G}}[d]}{M} + \frac{4M}{N} - 2$ .
|
| 502 |
+
|
| 503 |
+
Let's first count the number of edges in $L(\mathcal{G})$ . According to the definition of line graph, each edge in $L(\mathcal{G})$ corresponds to an unordered pair of edges in $\mathcal{G}$ connecting to a same node; On the other hand, each unordered pair of edges in $\mathcal{G}$ that connect to a same node also determines an edge in $L(\mathcal{G})$ . Therefore, the number of edges in $L(\mathcal{G})$ equals the number of all unordered pairs of edges connecting to a same node:
|
| 504 |
+
|
| 505 |
+
$$
|
| 506 |
+
\# e d g e s i n L (\mathcal {G}) = \sum_ {i} {\binom {d _ {i}} {2}} = \sum_ {i} {\frac {d _ {i} (d _ {i} - 1)}{2}} = \frac {1}{2} \sum_ {i} d _ {i} ^ {2} - M,
|
| 507 |
+
$$
|
| 508 |
+
|
| 509 |
+
where $d_{i}$ is the degree of node $v_{i}$ in $\mathcal{G}$ and $M = 2\sum_{i}d_{i}$ is the number of edges. Then the expected node degree of $L(\mathcal{G})$ is
|
| 510 |
+
|
| 511 |
+
$$
|
| 512 |
+
\begin{array}{l} \mathbb {E} _ {L (\mathcal {G})} [ d ] = 2 \cdot \frac {\# e d g e s i n L (\mathcal {G})}{\# n o d e s i n L (\mathcal {G})} = \frac {\sum_ {i} d _ {i} ^ {2} - 2 M}{M} \\ = \frac {N \cdot \mathbb {E} _ {\mathcal {G}} [ d ^ {2} ]}{M} - 2 = \frac {N \left(\operatorname {V a r} _ {\mathcal {G}} [ d ] + \mathbb {E} _ {\mathcal {G}} ^ {2} [ d ]\right)}{M} - 2 \\ = \frac {N \cdot \operatorname {V a r} _ {\mathcal {G}} [ d ] + N \left(\frac {2 M}{N}\right) ^ {2}}{M} - 2 \\ = \frac {N \cdot \operatorname {V a r} _ {\mathcal {G}} [ d ]}{M} + \frac {4 M}{N} - 2. \\ \end{array}
|
| 513 |
+
$$
|
| 514 |
+
|
| 515 |
+
□
|
| 516 |
+
|
| 517 |
+
From Lemma 1 it is clear to see that $\mathbb{E}_{L(\mathcal{G})}[d]$ is at least twice of $\mathbb{E}_{\mathcal{G}}[d] = \frac{2M}{N}$ , i.e. the expected node degree of the original graph $\mathcal{G}$ , since $\mathrm{Var}_{\mathcal{G}}[d] \geq 0$ ( $-2$ is omitted). Unfortunately, in real-world graphs (including KGs), node degrees vary significantly, and they typically follow the power law distribution whose variance is extremely large due to the long tail (this is empirically justified in Table 2, as we can see that $\mathrm{Var}_{\mathcal{G}}[d]$ is quite large for all KGs). This means that $\mathbb{E}_{L(\mathcal{G})}[d] \gg \mathbb{E}_{\mathcal{G}}[d]$ in practice. On the other hand, the number of nodes in $L(\mathcal{G})$ (which is $M$ ) is also far larger than the number of nodes in $\mathcal{G}$ (which is $N$ ). Therefore, $L(\mathcal{G})$ is generally much larger and denser than its original graph $\mathcal{G}$ . Based on Lemma 1, Theorem 2 is proven as follows:
|
| 518 |
+
|
| 519 |
+
Proof. In each iteration of relational message passing:
|
| 520 |
+
|
| 521 |
+
The aggregation (Eq. (5)) is performed for $M$ times, and each aggregation takes $\mathbb{E}_{L(\mathcal{G})}[d] = \frac{N\cdot\mathrm{Var}_{\mathcal{G}}[d]}{M} +\frac{4M}{N} -2$ elements as input in expectation. So the expected cost of aggregation in each iteration is $M\cdot \mathbb{E}_{L(\mathcal{G})}[d] = N\cdot \mathrm{Var}_{\mathcal{G}}[d] + \frac{4M^2}{N} -2M;$
|
| 522 |
+
|
| 523 |
+
The update ((Eq. (6))) is performed for $M$ times, and each update takes 2 elements as input. Therefore, the cost of update in each iteration is $2M$ .
|
| 524 |
+
|
| 525 |
+
In conclusion, the expected cost of relational message passing in each iteration is $N \cdot \operatorname{Var}_{\mathcal{G}}[d] + \frac{4M^2}{N}$ .
|
| 526 |
+
|
| 527 |
+
# C Proof of Theorem 3
|
| 528 |
+
|
| 529 |
+
Proof. In each iteration of alternate relational message passing:
|
| 530 |
+
|
| 531 |
+
The edge-to-node aggregation operation (Eq. (7)) is performed for $N$ times, and each aggregation takes $\mathbb{E}[d] = \frac{2M}{N}$ elements as input in expectation. Therefore, the expected cost of edge-to-node aggregation in each iteration is $N\cdot \mathbb{E}[d] = 2M$ ;
|
| 532 |
+
|
| 533 |
+
The node-to-edge aggregation (Eq. (8)) is performed for $M$ times, and each aggregation takes 2 elements as input. So the cost of node-to-edge aggregation in each iteration is $2M$ ;
|
| 534 |
+
|
| 535 |
+
The update (Eq. (9)) is performed for $M$ times, and each update takes 2 elements as input. Therefore, the cost of update in each iteration is $2M$ .
|
| 536 |
+
|
| 537 |
+
In conclusion, the expected cost of alternate relational message passing in each iteration is $6M$ .
|
| 538 |
+
|
| 539 |
+
# D Implementation Details
|
| 540 |
+
|
| 541 |
+
Baselines. The implementation code of TransE, DistMult, ComplEx, and RotatE comes from https://github.com/DeepGraphLearning/KnowledgeGraphEmbedding; the implementation code of SimpleE is at https://github.com/baharefatemi/SimpleE; the implementation code of QuatE is at https://github.com/cheungdaven/QuatE, and we use $\mathrm{QuatE}^2$ (QuatE without type constraints) here; the implementation code of DRUM is at https://github.com/alisadeghian/DRUM. For fair comparison, the embedding dimension for all the baselines are set to 400. We train each baseline for 1,000 epochs, and report the test result when the result on validation set is optimal.
|
| 542 |
+
|
| 543 |
+
Our method. Our proposed method is implemented in TensorFlow and trained on single GPU. We use Adam [14] as the optimizer with learning rate of 0.005. L2 regularization is used to prevent overfitting and the weight of L2 loss term is $10^{-7}$ . Batch size is 128, the number of epochs is 20, and the dimension of all hidden
|
| 544 |
+
|
| 545 |
+

|
| 546 |
+
Figure 8: The learned correlation between all relational paths with length $\leq 2$ and the predicted relations on DDB14.
|
| 547 |
+
|
| 548 |
+
<table><tr><td></td><td>FB15K</td><td>FB15K-237</td><td>WN18</td><td>WN18RR</td><td>NELL995</td><td>DDB14</td></tr><tr><td>#context hops</td><td>2</td><td>2</td><td>3</td><td>3</td><td>2</td><td>3</td></tr><tr><td>Max. path len.</td><td>2</td><td>3</td><td>3</td><td>4</td><td>3</td><td>4</td></tr></table>
|
| 549 |
+
|
| 550 |
+
states is 64. Initial relation features are set as their identities, while BOW/BERT features are studied in Section 4.3. The above settings are determined by optimizing the classification accuracy on the validation set of WN18RR, and kept unchanged for all datasets.
|
| 551 |
+
|
| 552 |
+
During experiments we find that performance of different number of context hops and the maximum path length largely depends on datasets, so these hyper-parameters are tuned separately for each dataset. We present their default settings in Table 6, and search spaces of hyper-parameters as follows:
|
| 553 |
+
|
| 554 |
+
- Dimension of hidden states: $\{8, 16, 32, 64\}$ ;
|
| 555 |
+
- Weight of L2 loss term: $\{10^{-8}, 10^{-7}, 10^{-6}, 10^{-5}\}$ ;
|
| 556 |
+
- Learning rate: $\{0.001, 0.005, 0.01, 0.05, 0.1\}$ ;
|
| 557 |
+
- The number of context hops: $\{1,2,3,4\}$ ;
|
| 558 |
+
Maximum path length: $\{1,2,3,4\}$
|
| 559 |
+
|
| 560 |
+
Each experiment of PATHCON is repeated for three times. We report average performance and standard deviation as the results.
|
| 561 |
+
|
| 562 |
+
# E More Results of Explainability on DDB14
|
| 563 |
+
|
| 564 |
+
After training on DDB14, we print out the transformation matrix of the context aggregator and the path aggregator in PATHCON, and the results are shown as heat maps in Figures 9 and 8, respectively. The degree of darkness of an entry in Figure 9 (Figure 8) denotes the strength of correlation between the existence of a contextual relation (a relational path) and a predicted relation. Relation IDs as well as their meanings are listed as follows for readers' reference:
|
| 565 |
+
|
| 566 |
+
Table 6: Dataset-specific hyper-parameter settings: the number of context hops and the maximum path length.
|
| 567 |
+
|
| 568 |
+
<table><tr><td>0: belong(s) to the category of</td><td>7: interacts with</td></tr><tr><td>1: is a category subset of</td><td>8: belongs to the drug family of</td></tr><tr><td>2: may cause</td><td>9: belongs to drug super-family</td></tr><tr><td>3: is a subtype of</td><td>10: is a vector for</td></tr><tr><td>4: is a risk factor for</td><td>11: may be allelic with</td></tr><tr><td>5: is associated with</td><td>12: see also</td></tr><tr><td>6: may contraindicate</td><td>13: is an ingredient of</td></tr></table>
|
| 569 |
+
|
| 570 |
+
Figure 9 shows that most of large values are distributed along the diagonal. This is in accordance with our intuition, for example, if we want to predict the relation for pair $(h, ?, t)$ and we observe
|
| 571 |
+
|
| 572 |
+

|
| 573 |
+
Figure 9: The learned correlation between the contextual relations of head/tail and the predicted relations on DDB14.
|
| 574 |
+
|
| 575 |
+
that $h$ appears in another triplet ( $h$ , is a risk factor for, $t'$ ), then we know that the type of $h$ is risk factor and it is likely to be a risk factor of other entities in the KG. Therefore, “?” are more likely to be “is a risk factor for” than “belongs to the drug family of” since $h$ is not a drug. In addition, we also find some large values that are not in the diagonal, e.g., (belongs to the drug family of, belongs to the drug super-family) and (may contraindicate, interacts with).
|
| 576 |
+
|
| 577 |
+
We also have some interesting findings from Figure 8. First, we find that many rules from Figure 8 is with the form:
|
| 578 |
+
|
| 579 |
+
$$
|
| 580 |
+
(a, \text {s e e} \quad \text {a l s o}, b) \wedge (b, \mathsf {R}, c) \Rightarrow (a, \mathsf {R}, c),
|
| 581 |
+
$$
|
| 582 |
+
|
| 583 |
+
where $\mathsf{R}$ is a relation type in the KG. These rules are indeed meaningful because (a, see also, b) means $a$ and $b$ are equivalent thus can interchange with each other.
|
| 584 |
+
|
| 585 |
+
We also find PATHCon learns rules that show the relation type is transitive, for example:
|
| 586 |
+
|
| 587 |
+
$(a,$ is associated with, $b)\wedge (b,$ is associated with, $c$ $\Rightarrow (a,$ is associated with, $c)$
|
| 588 |
+
|
| 589 |
+
$(a,$ may be allelic with, $b)\wedge (b,$ may be allelic with, $c)$ $\Rightarrow (a,$ may be allelic with, $c)$
|
| 590 |
+
|
| 591 |
+
Other interesting rules learned by PATHCon include:
|
| 592 |
+
|
| 593 |
+
$(a,\mathrm{belong}(s)$ to the category of, $b)\Rightarrow (a$ is a subtype of, $b)$
|
| 594 |
+
|
| 595 |
+
(a, is a risk factor for, $b) \Rightarrow (a, \text{may cause}, b)$ ;
|
| 596 |
+
|
| 597 |
+
$(a,\text{may cause},c)\wedge (b,\text{may cause},c)\Rightarrow (a,\text{may be allelic with},b);$
|
| 598 |
+
|
| 599 |
+
$(a, \text{is a risk factor for}, c) \wedge (b, \text{is a risk factor for}, c) \Rightarrow (a, \text{may be allelic with}, b)$ .
|
2002.06xxx/2002.06757/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26fb61345057cdc0b240a9a45b14c6380951eda5ab625280ad90eab9f6a3f9dd
|
| 3 |
+
size 688078
|
2002.06xxx/2002.06757/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_content_list.json
ADDED
|
@@ -0,0 +1,1714 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
156,
|
| 8 |
+
109,
|
| 9 |
+
815,
|
| 10 |
+
132
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Minhao Cheng<sup>1</sup> Qi Lei<sup>2</sup> Pin-Yu Chen<sup>3</sup> Inderjit Dhillon<sup>2</sup> Cho-Jui Hsieh<sup>1</sup>",
|
| 17 |
+
"bbox": [
|
| 18 |
+
215,
|
| 19 |
+
176,
|
| 20 |
+
751,
|
| 21 |
+
193
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
241,
|
| 31 |
+
220,
|
| 32 |
+
318,
|
| 33 |
+
234
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Adversarial training has become one of the most effective methods for improving robustness of neural networks. However, it often suffers from poor generalization on both clean and perturbed data. In this paper, we propose a new algorithm, named Customized Adversarial Training (CAT), which adaptively customizes the perturbation level and the corresponding label for each training sample in adversarial training. We show that the proposed algorithm achieves better clean and robust accuracy than previous adversarial training methods through extensive experiments.",
|
| 40 |
+
"bbox": [
|
| 41 |
+
117,
|
| 42 |
+
243,
|
| 43 |
+
442,
|
| 44 |
+
422
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1. Introduction",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
86,
|
| 54 |
+
452,
|
| 55 |
+
217,
|
| 56 |
+
468
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks (DNNs) have proved their effectiveness on a variety of domains and tasks. However, it has been found that DNNs are highly vulnerable to adversarial examples (Szegedy et al., 2014). To enhance the robustness of DNNs against adversarial examples, adversarial training (Goodfellow et al., 2015; Madry et al., 2018) has become one of the most effective and widely used methods. Given a pre-defined perturbation tolerance, denoted as $\\epsilon$ , adversarial training aims to minimize the robust loss, defined as the worst-case loss within $\\epsilon$ -ball around each example, leading to a min-max optimization problem. (Madry et al., 2018) show that applying a multi-step projected gradient descent (PGD) attack to approximately solve the inner maximization leads to a robust model, and several recent research has proposed various ways to improve adversarial training (Zhang et al., 2019b; Wang, 2019; Wang et al., 2019; Balaji et al., 2019; Ding et al., 2018).",
|
| 63 |
+
"bbox": [
|
| 64 |
+
84,
|
| 65 |
+
479,
|
| 66 |
+
475,
|
| 67 |
+
734
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "However, the standard adversarial training methods still have a hypothetical and possibly problematic assumption: the perturbation tolerance $\\epsilon$ is a large and fixed constant throughout the training process, which ignores the fact that every data point may have different intrinsic robustness.",
|
| 74 |
+
"bbox": [
|
| 75 |
+
84,
|
| 76 |
+
742,
|
| 77 |
+
475,
|
| 78 |
+
819
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Intuitively, some examples are naturally closer to the decision boundary, and enforcing large margin on those examples will force the classifier to give up on those examples, leading to a distorted decision surface. This intuition may explain the known issue of the undesirable robustness-accuracy tradeoff in adversarial robustness (Su et al., 2018; Tsipras et al., 2019). Furthermore, with a different perturbation tolerance, it is questionable whether we should still force the model to learn to fit the one-hot label as in the original adversarial training formulation. In the extreme case, if an example is perturbed to the decision boundary, a good classifier yielding the binary class prediction probabilities should output $[0.5, 0.5]$ instead of $[1, 0]$ . This point becomes crucial when each example is associated with a different level of perturbation. Although some recent papers have started to address the uniform $\\epsilon$ issue by treating correctly and incorrectly classified examples differently (Ding et al., 2018) or assigning non-uniform perturbation level (Balaji et al., 2019), none of them have tried to incorporate the customized training labels in this process.",
|
| 85 |
+
"bbox": [
|
| 86 |
+
495,
|
| 87 |
+
220,
|
| 88 |
+
887,
|
| 89 |
+
523
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Motivated by these ideas, we propose a novel Customized Adversarial Training (CAT) framework that can substantially improve the performance of adversarial training. Throughout the adversarial training process, our algorithm dynamically finds a non-uniform and effective perturbation level and the corresponding customized target label for each example. This leads to better generalization performance and furthermore, with a careful design on adaptive $\\epsilon$ tuning, our algorithm has only negligible computational overhead and runs as fast as the original adversarial training algorithm. Furthermore, we theoretically explain why the proposed method could lead to improved generalization performance.",
|
| 96 |
+
"bbox": [
|
| 97 |
+
495,
|
| 98 |
+
530,
|
| 99 |
+
888,
|
| 100 |
+
712
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Our method significantly outperforms existing adversarial training methods on the standard CIFAR-10 defense task. With Wide-ResNet structure on CIFAR-10, under $8/255\\ell_{\\infty}$ perturbation, our method achieves $73\\%$ robust accuracy under PGD attack and $71\\%$ robust accuracy under Carlini and Wagner (C&W) attack (Carlini & Wagner, 2017), while the current best model only achieves $58.6\\%$ under PGD attack and $56.8\\%$ under C&W attack. Furthermore, our method only degrades the clean accuracy from $95.93\\%$ (standard test accuracy) to $93.48\\%$ , while other adversarial training methods have clean accuracy below $91.34\\%$ .",
|
| 107 |
+
"bbox": [
|
| 108 |
+
495,
|
| 109 |
+
719,
|
| 110 |
+
887,
|
| 111 |
+
885
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "aside_text",
|
| 117 |
+
"text": "arXiv:2002.06789v1 [cs.LG] 17 Feb 2020",
|
| 118 |
+
"bbox": [
|
| 119 |
+
22,
|
| 120 |
+
263,
|
| 121 |
+
57,
|
| 122 |
+
708
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "page_footnote",
|
| 128 |
+
"text": "$^{1}$ Department of Computer Science, University of California, Los Angeles, USA $^{2}$ Department of Computer Science, University of Texas, Austin, USA $^{3}$ IBM research AI, Yorktown Heights, USA. Correspondence to: Minhao Cheng <mhcheng@ucla.edu>.",
|
| 129 |
+
"bbox": [
|
| 130 |
+
84,
|
| 131 |
+
828,
|
| 132 |
+
475,
|
| 133 |
+
881
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2. Related Work",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
84,
|
| 143 |
+
83,
|
| 144 |
+
227,
|
| 145 |
+
98
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Adversarial attack. Finding adversarial examples, also known as adversarial attacks, can be formulated as an optimization problem — the goal is to find the perturbation $\\delta$ to maximize the (robust) loss, while constraining $\\delta$ to have small norm (e.g., $\\ell_p$ norm). Therefore gradient-based algorithms have been widely used, such as fast gradient sign method (FGSM) (Goodfellow et al., 2015), C&W attack (Carlini & Wagner, 2017) and PGD attack (Madry et al., 2018). In addition to white-box attacks, it has been also found that adversarial attacks can be generated also in the soft-label black box setting (Chen et al., 2017; Ilyas et al., 2018) and hard-label black box setting (Brendel et al., 2017; Cheng et al., 2018; 2020), and with similar quality to white-box attacks. Moreover, physical attacks have been proposed to generate adversarial examples in the real world (Eykholt et al., 2018). Therefore, with the existence of these powerful adversarial attacks, how to enhance the robustness of neural network models has become an important issue in many real world applications.",
|
| 152 |
+
"bbox": [
|
| 153 |
+
84,
|
| 154 |
+
109,
|
| 155 |
+
475,
|
| 156 |
+
396
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Adversarial training. To enhance the adversarial robustness of a neural network model, a natural idea is to iteratively generate adversarial examples, add them back to the training data, and retrain the model. For example, Goodfellow et al. (2015) use adversarial examples generated by FGSM to augment the data, and Kurakin et al. (2017) propose to use a multiple-step FGSM to further improve the performance. Madry et al. (2018) show that adversarial training can be formulated as a min-max optimization problem, and propose to use PGD attack (similar to multi-step FGSM) to find adversarial examples for each batch. The resulting method achieves notable successes and can survive even under strong attacks (Athalye et al., 2018). After that, many defense algorithms are based on a similar min-max framework. Zhang et al. (2019b) propose TRADES, a theoretically-driven upper bound minimization algorithm to achieve the top-1 rank in NeurIPS 2018 defense competition. Recently, Ding et al. (2018) notice the importance of misclassified examples and treat correctly classified and misclassified examples differently. Wang (2020) use label prediction probability as a smooth way to combine correctly and misclassified samples. Other than just adding adversarial examples into the training process, Wang (2019) find that it is also effective to find the \"adversarial label\" along with the \"adversarial perturbation\". The convergence of adversarial training has also been studied (Gao et al., 2019; Wang et al., 2019). Recently, to reduce the computational overhead brought by adversarial training, several works have been proposed (Shafahi et al., 2019; Zhang et al., 2019a; Wong et al., 2020). It is widely recognized that the current defensive models are still not ideal and have considerable room for improvement. Moreover, to make robust models",
|
| 163 |
+
"bbox": [
|
| 164 |
+
84,
|
| 165 |
+
422,
|
| 166 |
+
477,
|
| 167 |
+
906
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "useful in practice, it is crucial that both clean and robust error need to be further enhanced.",
|
| 174 |
+
"bbox": [
|
| 175 |
+
496,
|
| 176 |
+
84,
|
| 177 |
+
885,
|
| 178 |
+
113
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Other adversarial defenses In addition to adversarial training based methods, a wide range of defense methods have been proposed such as Gaussian data augmentation (Zantedeschi et al., 2017), randomized smoothing (Liu et al., 2018; Cohen et al., 2019), Mixup (Zhang et al., 2018) and its variants (Thulasidasan et al., 2019; Verma et al., 2018), and Label smoothing (Shafahi et al., 2018; Goibert & Dohmatob, 2019). Shafahi et al. (2018) find that it could achieve similar robust accuracy with adversarial training when combining Gaussian data augmentation and label-smoothing.",
|
| 185 |
+
"bbox": [
|
| 186 |
+
495,
|
| 187 |
+
143,
|
| 188 |
+
887,
|
| 189 |
+
297
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "However, some of the aforementioned methods have been shown to cause obfuscated gradients instead of enhanced robustness (Athalye et al., 2018), while adversarial training based methods are still shown to be robust under different kinds of adversarial attacks.",
|
| 196 |
+
"bbox": [
|
| 197 |
+
495,
|
| 198 |
+
303,
|
| 199 |
+
885,
|
| 200 |
+
378
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "3. Proposed Method",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
496,
|
| 210 |
+
398,
|
| 211 |
+
671,
|
| 212 |
+
416
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "3.1. Preliminaries",
|
| 219 |
+
"text_level": 1,
|
| 220 |
+
"bbox": [
|
| 221 |
+
496,
|
| 222 |
+
424,
|
| 223 |
+
625,
|
| 224 |
+
439
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 1
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "Adversarial training can be formulated as a min-max optimization problem. For a $K$ -class classification problem, let $\\mathcal{D} = \\{(\\pmb{x}_i,y_i)\\}_{i = 1,\\dots ,n}$ denote the set of training samples in the dataset with $\\pmb {x}_i\\in \\mathbb{R}^d$ $y_{i}\\in \\{1,\\ldots ,K\\} = :[K]$ . Let $f_{\\theta}(\\pmb {x}):\\mathbb{R}^{d}\\to [K]$ denote a classification model parameterized by $\\theta$ . We denote by $h_\\theta (\\pmb {x}):\\mathbb{R}^d\\rightarrow [0,1]^K$ as the prediction output for each class, i.e., $f_{\\theta}(\\pmb {x}) = \\mathrm{argmax}_i[h_\\theta (\\pmb {x})]_i$ . We use standard $O(\\cdot)$ notation to hide universal constant factor, and $a\\lesssim b$ to indicate $a = O(b)$ .",
|
| 231 |
+
"bbox": [
|
| 232 |
+
495,
|
| 233 |
+
448,
|
| 234 |
+
888,
|
| 235 |
+
585
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 1
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "Adversarial training can be formulated as:",
|
| 242 |
+
"bbox": [
|
| 243 |
+
496,
|
| 244 |
+
592,
|
| 245 |
+
777,
|
| 246 |
+
607
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 1
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "equation",
|
| 252 |
+
"text": "\n$$\n\\min _ {\\theta} \\frac {1}{n} \\sum_ {i = 1} ^ {n} \\max _ {\\boldsymbol {x} _ {i} ^ {\\prime} \\in \\mathcal {B} (\\boldsymbol {x} _ {i}, \\epsilon)} \\ell \\left(f _ {\\theta} \\left(\\boldsymbol {x} _ {i} ^ {\\prime}\\right), y _ {i}\\right), \\tag {1}\n$$\n",
|
| 253 |
+
"text_format": "latex",
|
| 254 |
+
"bbox": [
|
| 255 |
+
575,
|
| 256 |
+
631,
|
| 257 |
+
885,
|
| 258 |
+
671
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 1
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "where $\\mathcal{B}(\\pmb{x}_i, \\epsilon)$ denotes the $\\ell_p$ -norm ball centered at $\\pmb{x}_i$ with radius $\\epsilon$ . The inner maximization problem aims to find an adversarial version of a given data point $\\pmb{x}_i$ that achieves a high loss. In general one can define $\\mathcal{B}(\\pmb{x}_i, \\epsilon)$ based on the threat model, but the $\\ell_{\\infty}$ ball is the most popular choice adopted by recent works (Madry et al., 2018; Zhang et al., 2019b; Wang, 2019; Ding et al., 2018; Wang, 2020), which will also be used in this paper. For a deep neural network model, the inner maximization does not have a closed form solution, so adversarial training methods typically use a gradient-based iterative solver to approximately solve the inner problem. The most commonly used choice is the multi-step PGD (Madry et al., 2018) and C&W attack (Carlini & Wagner, 2017).",
|
| 265 |
+
"bbox": [
|
| 266 |
+
495,
|
| 267 |
+
694,
|
| 268 |
+
888,
|
| 269 |
+
905
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 1
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "header",
|
| 275 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 276 |
+
"bbox": [
|
| 277 |
+
279,
|
| 278 |
+
56,
|
| 279 |
+
692,
|
| 280 |
+
70
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 1
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "image",
|
| 286 |
+
"img_path": "images/2cd82c6c381d3c6f90da287502a833cb4c96d5c6194adcc46a2e07e1bbfb85f3.jpg",
|
| 287 |
+
"image_caption": [
|
| 288 |
+
"(a) Standard training"
|
| 289 |
+
],
|
| 290 |
+
"image_footnote": [],
|
| 291 |
+
"bbox": [
|
| 292 |
+
98,
|
| 293 |
+
95,
|
| 294 |
+
285,
|
| 295 |
+
238
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "image",
|
| 301 |
+
"img_path": "images/f8aec5384bd9578539c3c4480f5726e7e985f0d7fee16a562a753639ada78da6.jpg",
|
| 302 |
+
"image_caption": [
|
| 303 |
+
"(b) Adv-train with $\\epsilon = 1$"
|
| 304 |
+
],
|
| 305 |
+
"image_footnote": [],
|
| 306 |
+
"bbox": [
|
| 307 |
+
300,
|
| 308 |
+
95,
|
| 309 |
+
486,
|
| 310 |
+
237
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "image",
|
| 316 |
+
"img_path": "images/21e7760168b3a7b88302180bb40a6c5e5c61b8cf83e84ea55fefb0b38e8f7638.jpg",
|
| 317 |
+
"image_caption": [
|
| 318 |
+
"(c) Adv-train with $\\epsilon = 4$",
|
| 319 |
+
"Figure 1. Different training methods on a linearly separable binary classification dataset with 1.75 margin for both classes. Adversarial training with small $\\epsilon$ works fine, but for a large $\\epsilon$ beyond the true margin, adversarial training would ruin the classifier's classification performance, while our proposed adaptive customized adversarial training method still keeps a good generalization performance."
|
| 320 |
+
],
|
| 321 |
+
"image_footnote": [],
|
| 322 |
+
"bbox": [
|
| 323 |
+
501,
|
| 324 |
+
95,
|
| 325 |
+
687,
|
| 326 |
+
237
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "image",
|
| 332 |
+
"img_path": "images/0951df86790934bc6aae77d8f84521e3e83bdda00a616ad07625ab514c1fd11b.jpg",
|
| 333 |
+
"image_caption": [
|
| 334 |
+
"(d) CAT (ours) with $\\epsilon_{max} = 4$"
|
| 335 |
+
],
|
| 336 |
+
"image_footnote": [],
|
| 337 |
+
"bbox": [
|
| 338 |
+
702,
|
| 339 |
+
95,
|
| 340 |
+
888,
|
| 341 |
+
237
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 2
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "3.2. Motivation",
|
| 348 |
+
"text_level": 1,
|
| 349 |
+
"bbox": [
|
| 350 |
+
84,
|
| 351 |
+
333,
|
| 352 |
+
194,
|
| 353 |
+
345
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "Intuitively, if adversarial training can always find a model with close-to-zero robust error, one should always use a large $\\epsilon$ for training because it will automatically imply robustness to any smaller $\\epsilon$ . Unfortunately, in practice a uniformly large $\\epsilon$ is often harmful. In the following we empirically explain this problem and use it to motivate our proposed algorithm.",
|
| 360 |
+
"bbox": [
|
| 361 |
+
84,
|
| 362 |
+
356,
|
| 363 |
+
475,
|
| 364 |
+
462
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "We use a simple linear classification case to demonstrate why a uniformly large $\\epsilon$ is harmful. In Figure 1a, we generate a synthetic linearly separable dataset with the margin set to be 1.75 for both classes, and the correct linear boundary can be easily obtained by standard training. In Figure 1b, we run adversarial training with $\\epsilon = 1$ , and since this $\\epsilon$ is smaller than the margin, the algorithm can still obtain near-optimal results. However, when we use a large $\\epsilon = 4$ for adversarial training in Figure 1c, the resulting decision boundary becomes significantly worse. It is because adversarial training cannot correctly fit all the samples with a margin up to 4, so it will sacrifice some data samples, leading to distorted and undesirable decision boundary. This motivates the following two problems:",
|
| 371 |
+
"bbox": [
|
| 372 |
+
84,
|
| 373 |
+
469,
|
| 374 |
+
475,
|
| 375 |
+
680
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 2
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "list",
|
| 381 |
+
"sub_type": "text",
|
| 382 |
+
"list_items": [
|
| 383 |
+
"- We shouldn't set the same large $\\epsilon$ uniformly for all samples. Some samples are intrinsically closer to the decision boundary and they should use a smaller $\\epsilon$ . Without doing this, adversarial training will give up on those samples, which leads to worse training and generalization error (see more discussions in Section 3.5 on the generalization bounds).",
|
| 384 |
+
"- The adversarial training loss is trying to force the prediction to match the one-hot label (e.g., [1, 0] in the binary classification case) even after large perturbations. However, if a sample is perturbed, the prediction shouldn't remain one-hot. For instance, if a sample is perturbed to the decision boundary, the prediction of a perfect model should be $[0.5, 0.5]$ instead of $[1, 0]$ ."
|
| 385 |
+
],
|
| 386 |
+
"bbox": [
|
| 387 |
+
101,
|
| 388 |
+
688,
|
| 389 |
+
473,
|
| 390 |
+
901
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 2
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "This also makes adversarial training fail to recover a good decision hyperplane.",
|
| 397 |
+
"bbox": [
|
| 398 |
+
527,
|
| 399 |
+
333,
|
| 400 |
+
885,
|
| 401 |
+
363
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 2
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "Furthermore, we observe that even if adversarial training can obtain close-to-zero training error with large $\\epsilon$ (e.g., (Gao et al., 2019) proves that this will happen for overparameterized network with large-enough margin), a uniformly large $\\epsilon$ will lead to larger generalization gap. This could be partially explained by the theoretical results provided by (Yin et al., 2018), which shows that the adversarial Rademacher complexity has a lower bound with an explicit dependence on the perturbation tolerance. The empirical results in Table 1 also illustrate this problem. When conducting adversarial training with $\\epsilon = 0.3$ on CIFAR10 VGG-16, we found that the model achieves close-to-zero robust training error on all $\\epsilon \\leq 0.3$ , but it suffers larger generalization gap compared to training with smaller $\\epsilon$ . This also demonstrates that a uniformly large $\\epsilon$ is harmful even when it achieves perfect training error.",
|
| 408 |
+
"bbox": [
|
| 409 |
+
496,
|
| 410 |
+
369,
|
| 411 |
+
887,
|
| 412 |
+
612
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 2
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "table",
|
| 418 |
+
"img_path": "images/9c700014c447688f6e9d209c98b5dd5588c3bc910dee2a227a75aa85196e3b15.jpg",
|
| 419 |
+
"table_caption": [
|
| 420 |
+
"Table 1. The influence of different fixed $\\epsilon$ values used in adversarial training on the robust accuracy with $\\epsilon = {0.01}$ ."
|
| 421 |
+
],
|
| 422 |
+
"table_footnote": [],
|
| 423 |
+
"table_body": "<table><tr><td rowspan=\"2\">Testing ε</td><td rowspan=\"2\">Error Type</td><td colspan=\"3\">Training ε</td></tr><tr><td>0.01</td><td>0.02</td><td>0.03</td></tr><tr><td rowspan=\"2\">0.01</td><td>Train</td><td>99.96%</td><td>99.99%</td><td>99.16%</td></tr><tr><td>Test</td><td>69.79%</td><td>69.06%</td><td>66.04%</td></tr></table>",
|
| 424 |
+
"bbox": [
|
| 425 |
+
500,
|
| 426 |
+
669,
|
| 427 |
+
883,
|
| 428 |
+
733
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 2
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "CAT (Customized Adversarial Training) We propose the Customized Adversarial Training (CAT) framework that improves adversarial training by addressing the above-mentioned problems. First, our algorithm has an auto-tuning $\\epsilon$ method to customize the $\\epsilon$ used for each training example. Second, instead of forcing the model to fit the original label, we customize the target label for each example based on its own $\\epsilon$ . In the following we will describe these two components in more detail.",
|
| 435 |
+
"bbox": [
|
| 436 |
+
495,
|
| 437 |
+
768,
|
| 438 |
+
885,
|
| 439 |
+
905
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 2
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "header",
|
| 445 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 446 |
+
"bbox": [
|
| 447 |
+
279,
|
| 448 |
+
56,
|
| 449 |
+
692,
|
| 450 |
+
70
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 2
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "3.3. Auto-tuning $\\epsilon$ for adversarial training",
|
| 457 |
+
"text_level": 1,
|
| 458 |
+
"bbox": [
|
| 459 |
+
84,
|
| 460 |
+
85,
|
| 461 |
+
382,
|
| 462 |
+
99
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 3
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "The first component of our algorithm is an auto-tuning $\\epsilon$ tuning method which adaptively assigns a suitable $\\epsilon$ for each sample during the adversarial training procedure. Let $\\epsilon_{i}$ be the perturbation level assigned to example $i$ . Based on the intuition mentioned in Section 3.2, we do not want to further increase $\\epsilon$ if we find the classifier does not have capacity to robustly classify the example, which means we should set",
|
| 469 |
+
"bbox": [
|
| 470 |
+
84,
|
| 471 |
+
108,
|
| 472 |
+
473,
|
| 473 |
+
213
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 3
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "equation",
|
| 479 |
+
"text": "\n$$\n\\epsilon_ {i} = \\underset {\\epsilon} {\\operatorname {a r g m i n}} \\left\\{\\max _ {\\boldsymbol {x} _ {i} ^ {\\prime} \\in \\mathcal {B} \\left(\\boldsymbol {x} _ {i}, \\epsilon\\right)} f _ {\\theta} \\left(\\boldsymbol {x} _ {i} ^ {\\prime}\\right) \\neq y _ {i} \\right\\} \\tag {2}\n$$\n",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
153,
|
| 483 |
+
223,
|
| 484 |
+
473,
|
| 485 |
+
248
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "and the adversarial training objective becomes",
|
| 492 |
+
"bbox": [
|
| 493 |
+
84,
|
| 494 |
+
257,
|
| 495 |
+
392,
|
| 496 |
+
272
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"text": "\n$$\n\\min _ {\\theta} \\frac {1}{n} \\sum_ {i = 1} ^ {n} \\max _ {\\boldsymbol {x} _ {i} ^ {\\prime} \\in \\mathcal {B} \\left(\\boldsymbol {x} _ {i}, \\epsilon_ {i}\\right)} \\ell \\left(f _ {\\theta} \\left(\\boldsymbol {x} _ {i} ^ {\\prime}\\right), y _ {i}\\right). \\tag {3}\n$$\n",
|
| 503 |
+
"text_format": "latex",
|
| 504 |
+
"bbox": [
|
| 505 |
+
158,
|
| 506 |
+
282,
|
| 507 |
+
473,
|
| 508 |
+
321
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 3
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "Note that $\\epsilon_{i}$ in (2) depends on $\\theta$ while $\\theta$ in (3) also depends on $\\epsilon_{i}$ . We thus propose to conduct alternative updates — conducting one SGD update on $\\theta$ , and then update the $\\epsilon_{i}$ in the current batch. However, finding $\\epsilon_{i}$ exactly requires brute-force search for every possible value, which adds significant computational overhead to adversarial training. Therefore, we only conduct a simplified update rule on $\\epsilon_{i}$ as follows. Starting from an initial perturbation level of zero, at each iteration we conduct adversarial attack (e.g., PGD attack) with perturbation tolerance $\\epsilon_{i} + \\eta$ where $\\eta$ is a constant. If the attack is successful, then we keep the current $\\epsilon_{i}$ , while if the attack is unsuccessful, which means an attacker still cannot find an adversarial example that satisfies $\\max_{\\boldsymbol{x}_i' \\in \\mathcal{B}(\\boldsymbol{x}_i, \\epsilon_i + \\eta)} f_\\theta(\\boldsymbol{x}_i') \\neq y_i$ , then we increase $\\epsilon_{i} = \\epsilon_{i} + \\eta$ . The attack results will also be used to update the model parameter $\\theta$ , so this adaptive scheme does not require any additional cost. In practice, we also have an upper bound on the final perturbation to make sure each individual $\\epsilon_{i}$ will not be too large.",
|
| 515 |
+
"bbox": [
|
| 516 |
+
84,
|
| 517 |
+
329,
|
| 518 |
+
475,
|
| 519 |
+
617
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "3.4. Adaptive label uncertainty for adversarial training",
|
| 526 |
+
"text_level": 1,
|
| 527 |
+
"bbox": [
|
| 528 |
+
84,
|
| 529 |
+
633,
|
| 530 |
+
472,
|
| 531 |
+
648
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "As mentioned in Section 3.2, the standard adversarial training loss is trying to enforce a sample being classified as the original one-hot label after $\\epsilon$ perturbation. However, this may not be ideal. In the extreme case, if a sample is perturbed to the decision boundary, the prediction must be far away from one-hot. This problem is more severe when using non-uniform $\\epsilon_{i}$ , since each different $\\epsilon_{i}$ will introduce a different bias to the loss, and that may be one of the reasons that purely adaptive $\\epsilon$ -scheduling does not work well (see our ablation study in Section 4.4 and also the results reported in (Balaji et al., 2019)).",
|
| 538 |
+
"bbox": [
|
| 539 |
+
84,
|
| 540 |
+
656,
|
| 541 |
+
475,
|
| 542 |
+
823
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 3
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "In the following, we propose an adaptive label smoothing approach to reflect different perturbation tolerance on each example. Szegedy et al. (2016) introduced label smoothing that converts one-hot label vectors into one-warm vectors representing low-confidence classification, in order to",
|
| 549 |
+
"bbox": [
|
| 550 |
+
84,
|
| 551 |
+
829,
|
| 552 |
+
475,
|
| 553 |
+
905
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 3
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "prevent the model from making over-confident predictions. Specifically, with a one-hot encoded label $y$ , the smoothed version is",
|
| 560 |
+
"bbox": [
|
| 561 |
+
496,
|
| 562 |
+
84,
|
| 563 |
+
885,
|
| 564 |
+
128
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 3
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "equation",
|
| 570 |
+
"text": "\n$$\n\\tilde {y} = (1 - \\alpha) y + \\alpha u\n$$\n",
|
| 571 |
+
"text_format": "latex",
|
| 572 |
+
"bbox": [
|
| 573 |
+
622,
|
| 574 |
+
130,
|
| 575 |
+
759,
|
| 576 |
+
146
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 3
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "where $\\alpha \\in [0,1]$ is the hyperparameter to control the smoothing level. In the adaptive setting, we set $\\alpha = c*\\epsilon_{i}$ so that a larger perturbation tolerance would receive a higher label uncertainty and $c$ is a hyperparameter. A common choice of $u$ is the uniform distribution $u = \\frac{1}{K}$ . To further prevent over-fitting and improve the generalization, we use $u = \\operatorname{Dirichlet}(\\mathbf{1})$ where $\\operatorname{Dirichlet}(\\cdot)$ refers to the Dirichlet distribution and $\\mathbf{1} \\in \\mathbb{R}^{K}$ is an all one vector. With different perturbation tolerance, the adaptive version of label smoothing is",
|
| 583 |
+
"bbox": [
|
| 584 |
+
496,
|
| 585 |
+
151,
|
| 586 |
+
885,
|
| 587 |
+
303
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "equation",
|
| 593 |
+
"text": "\n$$\n\\tilde {y} _ {i} = \\left(1 - c \\epsilon_ {i}\\right) y _ {i} + c \\epsilon_ {i} \\text {D i r i c h l e t} (\\mathbf {1}). \\tag {4}\n$$\n",
|
| 594 |
+
"text_format": "latex",
|
| 595 |
+
"bbox": [
|
| 596 |
+
571,
|
| 597 |
+
314,
|
| 598 |
+
885,
|
| 599 |
+
330
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "The final objective function: Combining the two aforementioned two main techniques, our Customized Adversarial Training (CAT) method attempts to minimize the following objective:",
|
| 606 |
+
"bbox": [
|
| 607 |
+
496,
|
| 608 |
+
348,
|
| 609 |
+
887,
|
| 610 |
+
407
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "equation",
|
| 616 |
+
"text": "\n$$\n\\min _ {\\theta} \\frac {1}{n} \\sum_ {i = 1} ^ {n} \\max _ {\\boldsymbol {x} _ {i} ^ {\\prime} \\in \\mathcal {B} \\left(\\boldsymbol {x} _ {i}, \\epsilon_ {i}\\right)} \\ell \\left(f _ {\\theta} \\left(\\boldsymbol {x} _ {i} ^ {\\prime}\\right), \\tilde {\\boldsymbol {y}} _ {i}\\right) \\tag {5}\n$$\n",
|
| 617 |
+
"text_format": "latex",
|
| 618 |
+
"bbox": [
|
| 619 |
+
539,
|
| 620 |
+
419,
|
| 621 |
+
883,
|
| 622 |
+
458
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 3
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "equation",
|
| 628 |
+
"text": "\n$$\n\\mathbf{s.t.} \\epsilon_ {i} = \\underset {\\epsilon} {\\operatorname {a r g m i n}} \\left\\{\\max _ {\\boldsymbol {x} _ {i} ^ {\\prime} \\in \\mathcal {B} (\\boldsymbol {x} _ {i}, \\epsilon)} f _ {\\theta} \\left(\\boldsymbol {x} _ {i} ^ {\\prime}\\right) \\neq y _ {i} \\right\\}\n$$\n",
|
| 629 |
+
"text_format": "latex",
|
| 630 |
+
"bbox": [
|
| 631 |
+
568,
|
| 632 |
+
460,
|
| 633 |
+
841,
|
| 634 |
+
484
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 3
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "where $\\tilde{y}_i$ is defined in (4). As described in Section 3.3, we approximately minimize this objective with an alternative update scheme, which encounters almost no additional cost compared to the original adversarial training algorithm. The detailed algorithm is shown in Algorithm 1.",
|
| 641 |
+
"bbox": [
|
| 642 |
+
496,
|
| 643 |
+
494,
|
| 644 |
+
885,
|
| 645 |
+
571
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 3
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "Choice of loss function. In general, our framework can be used with any loss function $\\ell(\\cdot)$ . In the previous works, cross entropy loss is commonly used for $\\ell$ . However, the model trained by smoothing techniques tends to have better performance against PGD attack than $\\mathrm{C\\&W_{\\infty}}$ attack (see the VGG experiments in Figure 2. So in addition to testing our algorithm under cross entropy loss, we also propose a mixed loss to enhance the defense performance towards $\\mathrm{C\\&W_{\\infty}}$ attack. That is,",
|
| 652 |
+
"bbox": [
|
| 653 |
+
496,
|
| 654 |
+
577,
|
| 655 |
+
885,
|
| 656 |
+
714
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 3
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "equation",
|
| 662 |
+
"text": "\n$$\n\\operatorname {C E} \\left(x _ {i}, \\tilde {y} _ {i}\\right) + \\max \\left\\{\\left[ \\max _ {i \\neq y _ {0}} [ Z (\\boldsymbol {x}) ] _ {i} - [ Z (\\boldsymbol {x}) ] _ {y _ {0}}, - \\kappa \\right\\}, \\right. \\tag {6}\n$$\n",
|
| 663 |
+
"text_format": "latex",
|
| 664 |
+
"bbox": [
|
| 665 |
+
511,
|
| 666 |
+
724,
|
| 667 |
+
883,
|
| 668 |
+
748
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 3
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "where $Z(\\pmb{x}) \\in \\mathbb{R}^{K}$ is the final (logit) layer output, and $[Z(\\pmb{x})]_i$ is the prediction score for the i-th class and $y_{0}$ is the original label. The parameter $\\kappa$ encourages to find an adversary that will not classify as class $y_{0}$ with high confidence.",
|
| 675 |
+
"bbox": [
|
| 676 |
+
496,
|
| 677 |
+
758,
|
| 678 |
+
885,
|
| 679 |
+
834
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 3
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "3.5. Theoretical Analysis",
|
| 686 |
+
"text_level": 1,
|
| 687 |
+
"bbox": [
|
| 688 |
+
496,
|
| 689 |
+
851,
|
| 690 |
+
671,
|
| 691 |
+
866
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 3
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "text",
|
| 697 |
+
"text": "To better understand how our scheme improves generalization, we provide some theoretical analysis. Recall we denote",
|
| 698 |
+
"bbox": [
|
| 699 |
+
496,
|
| 700 |
+
875,
|
| 701 |
+
885,
|
| 702 |
+
905
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 3
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "header",
|
| 708 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 709 |
+
"bbox": [
|
| 710 |
+
279,
|
| 711 |
+
56,
|
| 712 |
+
692,
|
| 713 |
+
70
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 3
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "Algorithm 1 CAT algorithm",
|
| 720 |
+
"text_level": 1,
|
| 721 |
+
"bbox": [
|
| 722 |
+
86,
|
| 723 |
+
84,
|
| 724 |
+
277,
|
| 725 |
+
99
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 4
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "code",
|
| 731 |
+
"sub_type": "algorithm",
|
| 732 |
+
"code_caption": [],
|
| 733 |
+
"code_body": "Input: Training dataset $(X,Y)$ , cross entropy loss or mix loss $\\ell$ , scheduling parameter $\\eta$ , weighting factor $c$ , perturbation upperbound $\\epsilon_{max}$ \nInitial every sample's $\\epsilon_i$ with 0 \nfor epoch=1,...,N do \n for i=1,...,B do \n $\\tilde{y}_i \\gets (1 - c\\epsilon_i)y_i + (1 - c\\epsilon_i)\\text{Dirichlet}(1)$ $\\epsilon_i \\gets \\epsilon_i + \\eta$ $\\delta_i \\gets 0$ \n for $j = 1\\dots m$ do \n $\\delta_i \\gets \\delta_i + \\alpha \\cdot sign(\\nabla_\\delta \\ell(f_\\theta(\\boldsymbol{x}_i + \\delta_i),\\tilde{y}_i))$ $\\delta_i \\gets \\max(\\min(\\delta_i,\\epsilon_i),-\\epsilon_i)$ \n end for \n if $f_\\theta(\\boldsymbol{x}_i + \\delta_i) \\neq y_i$ then \n $\\epsilon_i \\gets \\epsilon_i - \\eta$ \n end if \n $\\epsilon_i \\gets \\min(\\epsilon_{max},\\epsilon_i)$ $\\tilde{y}_i \\gets (1 - c\\epsilon_i)y_i + (1 - c\\epsilon_i)\\text{Dirichlet}(1)$ $\\theta \\gets \\theta - \\gamma_\\theta\\nabla_\\theta\\ell(f_\\theta(\\boldsymbol{x}_i + \\delta_i),\\tilde{y}_i)$ \nend for \nend for \nreturn $\\theta$",
|
| 734 |
+
"bbox": [
|
| 735 |
+
99,
|
| 736 |
+
104,
|
| 737 |
+
475,
|
| 738 |
+
436
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 4
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "by $h_{\\theta}(\\pmb{x}) : \\mathbb{R}^d \\to [0,1]^K$ as the prediction probability for the $K$ classes. We define the bilateral margin that our paper is essentially maximizing over as follows.",
|
| 745 |
+
"bbox": [
|
| 746 |
+
84,
|
| 747 |
+
462,
|
| 748 |
+
473,
|
| 749 |
+
508
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 4
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "Definition 3.1 (Bilateral margin) We define the bilateral perturbed network output by $H_{\\theta}(\\boldsymbol{x}, \\boldsymbol{\\delta}^i, \\boldsymbol{\\delta}^o)$ :",
|
| 756 |
+
"bbox": [
|
| 757 |
+
84,
|
| 758 |
+
518,
|
| 759 |
+
473,
|
| 760 |
+
550
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 4
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "equation",
|
| 766 |
+
"text": "\n$$\nH _ {\\theta} (\\boldsymbol {x}, \\boldsymbol {\\delta} ^ {i}, \\boldsymbol {\\delta} ^ {o}) := h _ {\\theta} \\left(\\boldsymbol {x} + \\boldsymbol {\\delta} ^ {i} \\| \\boldsymbol {x} \\|\\right) + \\boldsymbol {\\delta} ^ {o} \\left\\| \\boldsymbol {x} + \\boldsymbol {\\delta} ^ {i} \\| \\boldsymbol {x} \\| \\right\\|.\n$$\n",
|
| 767 |
+
"text_format": "latex",
|
| 768 |
+
"bbox": [
|
| 769 |
+
98,
|
| 770 |
+
558,
|
| 771 |
+
460,
|
| 772 |
+
578
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 4
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "The bilateral margin is now defined as the minimum norm of $(\\delta^i,\\delta^o)$ required to cause the classifier to make false predictions:",
|
| 779 |
+
"bbox": [
|
| 780 |
+
84,
|
| 781 |
+
585,
|
| 782 |
+
473,
|
| 783 |
+
630
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 4
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "code",
|
| 789 |
+
"sub_type": "algorithm",
|
| 790 |
+
"code_caption": [],
|
| 791 |
+
"code_body": "$m_{F}(\\pmb {x},y)\\coloneqq \\min_{\\pmb{\\delta}^{i},\\pmb{\\delta}^{o}}\\sqrt{\\|\\pmb{\\delta}^{i}\\|^{2} + \\|\\pmb{\\delta}^{o}\\|^{2}}$ subject to $\\max_{y^{\\prime}}H_{\\theta}(\\pmb {x},\\pmb{\\delta}^{i},\\pmb{\\delta}^{o})_{y^{\\prime}}\\neq y.$ (7)",
|
| 792 |
+
"bbox": [
|
| 793 |
+
102,
|
| 794 |
+
638,
|
| 795 |
+
473,
|
| 796 |
+
691
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 4
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "This margin captures both the relative perturbation on the input layer $\\delta^i$ and on the soft-max output $\\delta^o$ .",
|
| 803 |
+
"bbox": [
|
| 804 |
+
84,
|
| 805 |
+
707,
|
| 806 |
+
473,
|
| 807 |
+
737
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 4
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Theorem 3.2 Suppose the parameter space $\\Theta$ we optimize over has covering number that scales as $\\log \\mathcal{N}_{\\| \\cdot \\|_{op}}(\\eta ,\\Theta)\\leq \\lfloor \\mathcal{C}^2 /\\eta^2\\rfloor$ for some complexity $\\mathcal{C}$ . Then with probability $1 - \\delta$ over the draw of the training data, any classifier $f_{\\theta},\\theta \\in \\Theta$ which achieves training error O satisfies:",
|
| 814 |
+
"bbox": [
|
| 815 |
+
84,
|
| 816 |
+
750,
|
| 817 |
+
473,
|
| 818 |
+
824
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 4
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "equation",
|
| 824 |
+
"text": "\n$$\n\\mathbb {E} [ f _ {\\theta} (\\boldsymbol {x}) = y ] \\lesssim \\frac {\\mathcal {C} \\log^ {2} n}{\\sqrt {n}} \\sqrt {\\frac {1}{n} \\sum_ {i = 1} ^ {n} \\frac {1}{m _ {F} (\\boldsymbol {x} _ {i} , y _ {i})}} + \\zeta ,\n$$\n",
|
| 825 |
+
"text_format": "latex",
|
| 826 |
+
"bbox": [
|
| 827 |
+
106,
|
| 828 |
+
833,
|
| 829 |
+
450,
|
| 830 |
+
880
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 4
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "where $\\zeta$ is of small order $O\\left(\\frac{1}{n}\\log (1 / \\delta)\\right)$",
|
| 837 |
+
"bbox": [
|
| 838 |
+
84,
|
| 839 |
+
888,
|
| 840 |
+
362,
|
| 841 |
+
907
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 4
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "We defer the proof to the Appendix, which is adapted from Theorem 2.1 of (Wei & Ma, 2019). We observe the population risk is bounded by two key factors, the average of $\\frac{1}{m_F(\\boldsymbol{x}_i,y_i)}$ and $\\mathcal{C}$ , the covering number of the parameter space. On one side, the average of $\\frac{1}{m_F(\\boldsymbol{x}_i,y_i)}$ is dominated by the samples with the smallest margin. Therefore when we do adversarial training, it is important that we not only achieve higher overall accuracy, but also make sure the samples closer to the decision boundary have large enough margin. This can not be achieved by simply using constant and large $\\epsilon$ that will maintain a large margin for most samples but sacrifice the accuracy of a small portion of data. On the other hand, the covering number of the network's parameter space can be roughly captured by a bound of product of all layers' weight norms. We hypothesize that with more flexibility in choosing $\\epsilon$ , our algorithm will converge faster than using larger constant $\\epsilon$ and will have more implicit regularization effect. To testify this hypothesis, we roughly measure the model complexity $\\mathcal{C}$ by the product of the weight norms of different models. In comparison to our model, when training with constant $\\epsilon = 0.01$ , 0.02 and 0.03, it respectively yields $\\mathcal{C}$ as large as 2.54, 3.53 and 1.39 times of that of our model, which means our model indeed has more implicit regularization effect among others.",
|
| 848 |
+
"bbox": [
|
| 849 |
+
496,
|
| 850 |
+
84,
|
| 851 |
+
887,
|
| 852 |
+
452
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 4
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "3.6. Connections with other training methods",
|
| 859 |
+
"text_level": 1,
|
| 860 |
+
"bbox": [
|
| 861 |
+
496,
|
| 862 |
+
468,
|
| 863 |
+
816,
|
| 864 |
+
484
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 4
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Many recent papers attempt to improve adversarial training. Although they all follow the similar min-max framework, each of them uses slightly different loss functions. We summarize the loss functions used by recent adversarial training methods in Table 2.",
|
| 871 |
+
"bbox": [
|
| 872 |
+
496,
|
| 873 |
+
492,
|
| 874 |
+
885,
|
| 875 |
+
566
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 4
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "We see that except for natural training which directly minimizes the cross entropy loss (denoted as CE), all training techniques involve the use of the min-max framework. TRADES and MMA use the unperturbed data's cross entropy loss as an additional regularization term to achieve a better trade-off between clean and robust error.",
|
| 882 |
+
"bbox": [
|
| 883 |
+
495,
|
| 884 |
+
574,
|
| 885 |
+
887,
|
| 886 |
+
665
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 4
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Similar to our method, both MMA and IAAT have samplewise adaptive $\\epsilon$ during training. They also utilize the adaptive $\\epsilon$ to find the largest possible $\\epsilon_{i}$ for every sample $x_{i}$ . However, they do not consider the adaptive label technique mentioned in Section 3.4. As a result, they can only achieve better clean accuracy while the improvements in robust accuracy is limited. Our CAT-CE algorithm (CAT with CE loss) is more general than IAAT and MMA. CAT-CE reduce to IAAT when we set $c = 0$ in adaptive label smoothing. Moreover, MMA could be treated as a special case of CAT-CE when we use a line search scheme to find the $\\epsilon_{i}$ and $c = 0$ . Also, in Section 4.4, we will show the importance of the adaptive label uncertainty step in CAT.",
|
| 893 |
+
"bbox": [
|
| 894 |
+
495,
|
| 895 |
+
672,
|
| 896 |
+
888,
|
| 897 |
+
869
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 4
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "header",
|
| 903 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 904 |
+
"bbox": [
|
| 905 |
+
279,
|
| 906 |
+
56,
|
| 907 |
+
692,
|
| 908 |
+
70
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 4
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "table",
|
| 914 |
+
"img_path": "images/715842dc50a413e42aa2847cd052e27e8e783fc05702185f3370687bacab0c73.jpg",
|
| 915 |
+
"table_caption": [
|
| 916 |
+
"Table 2. Summary of several robust training methods and their corresponding loss function. Dirichlet(b) indicates the Dirichlet distribution parameterized by b."
|
| 917 |
+
],
|
| 918 |
+
"table_footnote": [],
|
| 919 |
+
"table_body": "<table><tr><td>Methods</td><td>Loss Function</td></tr><tr><td>Natural</td><td>CE(fθ(x),y)</td></tr><tr><td>Adversarial training (Madry et al., 2018)</td><td>maxx'∈B(x,ε) CE(fθ(x'),y)</td></tr><tr><td>TRADES (Zhang et al., 2019b)</td><td>CE(fθ(x),y) + maxx'∈B(x,ε) KL(fθ(x'),fθ(x))</td></tr><tr><td>Bilateral Adv Training (Wang, 2019)</td><td>maxx'∈B(x,ε),y'∈Δ CE(fθ(x'),y')</td></tr><tr><td>MMA (Ding et al., 2018)</td><td>CE(fθ(x))1(fθ(x)≠y) + (maxx'∈B(x,ε) CE(fθ(x'),y))1(fθ(x)=y)</td></tr><tr><td>MART (Wang, 2020)</td><td>maxx'∈B(x,ε) BCE(fθ(x'),y) + KL(fθ(x'),fθ(x))·(1-fθ(x))</td></tr><tr><td>IAAT (Balaji et al., 2019)</td><td>maxx'∈B(xi,εi) CE(fθ(x'),yi)</td></tr><tr><td>CAT-CE (ours)</td><td>maxx'∈B(xi,εi) CE(fθ(x'),(1-cεi)y_i+ cεiDirichlet(1))</td></tr><tr><td>CAT-MIX (ours)</td><td>maxx'∈B(xi,εi) CE(x', (1-cεi)y_i+ cεiDirichlet(1)) + maxj≠y_0[Z(x')j-[Z(x')j]y_0</td></tr></table>",
|
| 920 |
+
"bbox": [
|
| 921 |
+
98,
|
| 922 |
+
126,
|
| 923 |
+
875,
|
| 924 |
+
277
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 5
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"text": "4. Performance Evaluation",
|
| 931 |
+
"text_level": 1,
|
| 932 |
+
"bbox": [
|
| 933 |
+
84,
|
| 934 |
+
306,
|
| 935 |
+
313,
|
| 936 |
+
321
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 5
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "In this section, we conduct extensive experiments to show that CAT achieves a strong result on both clean and robust accuracy. We include the following methods into our comparison:",
|
| 943 |
+
"bbox": [
|
| 944 |
+
84,
|
| 945 |
+
332,
|
| 946 |
+
475,
|
| 947 |
+
391
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 5
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "list",
|
| 953 |
+
"sub_type": "text",
|
| 954 |
+
"list_items": [
|
| 955 |
+
"- Customized Adversarial Training (CAT-CE): Our proposed method with the cross entropy loss.",
|
| 956 |
+
"- Customized Adversarial Training (CAT-MIX): Our proposed method with the mixed cross entropy loss (6).",
|
| 957 |
+
"- Adversarial training: The adversarial training method proposed in (Madry et al., 2018) where they use a K-step PGD attack as adversary.",
|
| 958 |
+
"- TRADES: TRADES (Zhang et al., 2019b) improves adversarial training by an additional loss on the clean examples and achieves the state-of-art performance on robust accuracy.",
|
| 959 |
+
"- Natural: the natural training which only minimizes the cross entropy loss."
|
| 960 |
+
],
|
| 961 |
+
"bbox": [
|
| 962 |
+
101,
|
| 963 |
+
400,
|
| 964 |
+
475,
|
| 965 |
+
595
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 5
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Furthermore, since many recently proposed adversarial training methods have considered CIFAR-10 with Wide-ResNet structure as the standard setting and report their numbers, we also compare our performance with 7 previous methods on this specific setting.",
|
| 972 |
+
"bbox": [
|
| 973 |
+
84,
|
| 974 |
+
604,
|
| 975 |
+
475,
|
| 976 |
+
679
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 5
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "4.1. Experimental Setup",
|
| 983 |
+
"text_level": 1,
|
| 984 |
+
"bbox": [
|
| 985 |
+
84,
|
| 986 |
+
696,
|
| 987 |
+
259,
|
| 988 |
+
710
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 5
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "Dataset and model structure. We use two popular dataset CIFAR-10 (Krizhevsky et al.) and Restricted-ImageNet (Deng et al., 2009) for performance evaluation. For CIFAR-10, we use both standard VGG-16 (Simonyan & Zisserman, 2015) and Wide ResNet that is used in both vanilla adversarial training (Madry et al., 2018) and TRADES (Zhang et al., 2019b). For VGG-16, we implement adversarial training with the standard hyperparameters and train TRADES with the official implementation. For Wide ResNet, since the model has become standard for testing adversarial training methods, we use exactly the same model structure provided by (Madry et al., 2018;",
|
| 995 |
+
"bbox": [
|
| 996 |
+
84,
|
| 997 |
+
720,
|
| 998 |
+
478,
|
| 999 |
+
901
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 5
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Zhang et al., 2019b). And use the models' checkpoint released by adversarial training and TRADES official repository and implement the Madry's adversarial training using the standard hyper-parameters. For Restricted-ImageNet, we use ResNet-50. All our experiments were implemented in Pytorch-1.4 and conducted using dual Intel E5-2640 v4 CPUs (2.40GHz) with 512 GB memory with a GTX 2080 TI GPU.",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
495,
|
| 1008 |
+
306,
|
| 1009 |
+
887,
|
| 1010 |
+
428
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 5
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "Implementation details. We set the number of iterations in adversarial attack to be 10 for all methods. Adversarial training and TRADES are trained on PGD attacks setting $\\epsilon = 8 / 255$ with cross entropy loss (CE). We implement our CAT method both on cross entropy (CE) (Madry et al., 2018) and C&W loss (Carlini & Wagner, 2017), and set $\\epsilon_{\\mathrm{max}} = 8 / 255$ . All the models are trained using SGD with momentum 0.9, weight decay $5 \\times 10^{-4}$ . For VGG-16/Wide ResNet models, we use the initial learning rate of 0.01/0.1, and we decay the learning rate by $90\\%$ at the 80th, 140th, and 180th epoch. For CAT, we set epsilon scheduling parameter $\\eta = 0.005$ , $\\epsilon_{\\mathrm{max}} = 8 / 255$ and weighting parameter $c = 10$ . For CAT-MIX, we set $\\kappa = 10$ .",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
495,
|
| 1019 |
+
436,
|
| 1020 |
+
888,
|
| 1021 |
+
632
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 5
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "4.2. Robustness Evaluation and Analysis",
|
| 1028 |
+
"text_level": 1,
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
496,
|
| 1031 |
+
648,
|
| 1032 |
+
782,
|
| 1033 |
+
664
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 5
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "White-box attacks. For CIFAR10, we evaluate all the models under different tolerance of white-box $\\ell_{\\infty}$ -norm bounded non-targeted PGD and C&W attack. Specifically, we use both $\\mathrm{PGD}^{20}$ (20-step PGD with step size $\\epsilon / 5$ ) and C&W $_{\\infty}$ . All attacks are equipped with random-start. To be noted, when $\\epsilon = 0$ , the robust accuracy is reduced to test accuracy of unperturbed (natural) test samples, i.e clean accuracy.",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
495,
|
| 1042 |
+
672,
|
| 1043 |
+
887,
|
| 1044 |
+
777
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 5
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "The experimental results are shown in Figure 2, where we can easily see that both CAT-CE and CAT-MIX clearly outperform other methods among $\\epsilon$ from 0 to 0.07. So our methods can achieve better robust error at the standard $8/255$ perturbation threshold considered in the literature, and also has better clean accuracy ( $\\epsilon = 0$ ). The accuracy curve becomes quite flat when $\\epsilon$ is increased.",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
495,
|
| 1053 |
+
785,
|
| 1054 |
+
888,
|
| 1055 |
+
891
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 5
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "header",
|
| 1061 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
279,
|
| 1064 |
+
56,
|
| 1065 |
+
692,
|
| 1066 |
+
70
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 5
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "image",
|
| 1072 |
+
"img_path": "images/1c4d2f01ce585720b152e55130eeabcbc941f6aabcacf5684b30a4e5cc60a209.jpg",
|
| 1073 |
+
"image_caption": [],
|
| 1074 |
+
"image_footnote": [],
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
176,
|
| 1077 |
+
99,
|
| 1078 |
+
478,
|
| 1079 |
+
256
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 6
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "image",
|
| 1085 |
+
"img_path": "images/120ac1d509e02b194040be43bb815d8499e10e1f15dd7c6319e424d8a18391d0.jpg",
|
| 1086 |
+
"image_caption": [],
|
| 1087 |
+
"image_footnote": [],
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
496,
|
| 1090 |
+
99,
|
| 1091 |
+
799,
|
| 1092 |
+
256
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 6
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "image",
|
| 1098 |
+
"img_path": "images/0567bfc3c8e95caf1d3a1262baca3f87fd7603a507539ce381c4bef9b80d4bc0.jpg",
|
| 1099 |
+
"image_caption": [
|
| 1100 |
+
"Figure 2. Robust accuracy under different levels of attacks on CIFAR-10 dataset with VGG and Wide-ResNet architectures. CAT-CE and CAT-MIX clearly outperform TREADS and adversarial training."
|
| 1101 |
+
],
|
| 1102 |
+
"image_footnote": [],
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
176,
|
| 1105 |
+
273,
|
| 1106 |
+
478,
|
| 1107 |
+
429
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 6
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "image",
|
| 1113 |
+
"img_path": "images/77c9729b839c41a556dcada1563ceccfcad0531a85f6867763c6fd7d06fcb403.jpg",
|
| 1114 |
+
"image_caption": [],
|
| 1115 |
+
"image_footnote": [],
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
496,
|
| 1118 |
+
273,
|
| 1119 |
+
799,
|
| 1120 |
+
429
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 6
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "table",
|
| 1126 |
+
"img_path": "images/d96b8eca2c54b4f217ef28d5d53d386dc4d2f5811cf235c8ec06b0e01f36a5ec.jpg",
|
| 1127 |
+
"table_caption": [
|
| 1128 |
+
"Table 3. The clean and robust accuracy of Wide Resnet models trained by various defense methods. All robust accuracy results use $\\epsilon = 8 / 255\\ell_{\\infty}$ ball. We reported the best performance listed in the papers. (*) denotes random_restart is applied in the testing attack. (X) denotes it use a $X$ step PGD attack"
|
| 1129 |
+
],
|
| 1130 |
+
"table_footnote": [],
|
| 1131 |
+
"table_body": "<table><tr><td>Methods</td><td>Clean accuracy</td><td>PGD accuracy</td><td>C&W accuracy</td></tr><tr><td>Natural training</td><td>95.93%</td><td>0%</td><td>0%</td></tr><tr><td>Adversarial training (Madry et al., 2018)</td><td>87.30%</td><td>52.68%</td><td>50.73%</td></tr><tr><td>Dynamic adversarial training (Wang et al., 2019)</td><td>84.51%</td><td>55.03%</td><td>51.98%</td></tr><tr><td>TRADES (Zhang et al., 2019b)</td><td>84.22%</td><td>56.40%(20)</td><td>51.98%</td></tr><tr><td>Bilateral Adv Training (Wang, 2019)</td><td>91.00%</td><td>57.5%(*20)</td><td>56.2%(*20)</td></tr><tr><td>MMA (Ding et al., 2018)</td><td>84.36%</td><td>47.18%</td><td>X</td></tr><tr><td>MART (Wang, 2020)</td><td>84.17%</td><td>58.56%(20)</td><td>54.58%</td></tr><tr><td>IAAT (Balaji et al., 2019)</td><td>91.34%</td><td>48.53%(*10)</td><td>56.80%</td></tr><tr><td>CAT-CE (ours)</td><td>93.48%</td><td>73.38%(*20)</td><td>61.88%(*20)</td></tr><tr><td>CAT-MIX (ours)</td><td>89.61%</td><td>73.16%(*20)</td><td>71.67%(*20)</td></tr></table>",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
138,
|
| 1134 |
+
547,
|
| 1135 |
+
836,
|
| 1136 |
+
728
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 6
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "image",
|
| 1142 |
+
"img_path": "images/6dae5cd29db186cd3944814f86963461be571633d9cc85f825e956a47c71e198.jpg",
|
| 1143 |
+
"image_caption": [
|
| 1144 |
+
"(a) Natural"
|
| 1145 |
+
],
|
| 1146 |
+
"image_footnote": [],
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
114,
|
| 1149 |
+
763,
|
| 1150 |
+
277,
|
| 1151 |
+
857
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 6
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "image",
|
| 1157 |
+
"img_path": "images/7c09f87b4d89824a189272feac6e1dbcce79924ea99d8d83fa785df63931331c.jpg",
|
| 1158 |
+
"image_caption": [
|
| 1159 |
+
"(b) Adv train"
|
| 1160 |
+
],
|
| 1161 |
+
"image_footnote": [],
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
312,
|
| 1164 |
+
762,
|
| 1165 |
+
475,
|
| 1166 |
+
857
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 6
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "image",
|
| 1172 |
+
"img_path": "images/b770add6287008acd7914be8488c8cb56bef839320b9bcae3ff4f8ee73118a1f.jpg",
|
| 1173 |
+
"image_caption": [
|
| 1174 |
+
"(c) TRADES",
|
| 1175 |
+
"Figure 3. Loss landscape comparison of different adversarial training methods"
|
| 1176 |
+
],
|
| 1177 |
+
"image_footnote": [],
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
511,
|
| 1180 |
+
768,
|
| 1181 |
+
674,
|
| 1182 |
+
858
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 6
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "image",
|
| 1188 |
+
"img_path": "images/c6f737ba5e111ea2851a2bd6f412075e71461d589e770d1db0ce00ff152b79ce.jpg",
|
| 1189 |
+
"image_caption": [
|
| 1190 |
+
"(d) CAT"
|
| 1191 |
+
],
|
| 1192 |
+
"image_footnote": [],
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
702,
|
| 1195 |
+
768,
|
| 1196 |
+
874,
|
| 1197 |
+
858
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 6
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "header",
|
| 1203 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
279,
|
| 1206 |
+
56,
|
| 1207 |
+
692,
|
| 1208 |
+
70
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 6
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Wide ResNet has become a standard structure for comparing adversarial training methods, and it's standard to train and evaluate with $8/255\\ell_{\\infty}$ norm perturbation. For this setting, we collect the reported accuracy from 7 other adversarial training methods, with several of them published very recently, to have a detailed full comparison. As shown in Table 3, our method achieves state-of-art robust accuracy while maintaining a high clean accuracy. Due to the page limit, we put the Restricted ImageNet result in the appendix.",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
84,
|
| 1217 |
+
84,
|
| 1218 |
+
475,
|
| 1219 |
+
220
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 7
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "Black-box transfer attacks. We follow the criterion of evaluating transfer attacks as suggested by Athalye et al. (2018) to inspect whether the models trained by CAT will cause the issue of obfuscated gradients and give a false sense of model robustness. We generate 10,000 adversarial examples of CIFAR-10 from natural models with $\\epsilon = 0.03$ and evaluate their attack performance on the target model. Table 4 shows that CAT achieves the best accuracy compared with adversarial training and TRADES, suggesting the effectiveness of CAT in defending both white-box and transfer attacks.",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
84,
|
| 1228 |
+
227,
|
| 1229 |
+
477,
|
| 1230 |
+
393
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 7
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "table",
|
| 1236 |
+
"img_path": "images/fb0aef8abb42fcc87878c2bf189afe27a0715ed5dcea35436c9bca55826bd86a.jpg",
|
| 1237 |
+
"table_caption": [
|
| 1238 |
+
"Table 4. Robust accuracy under transfer attack on CIFAR-10"
|
| 1239 |
+
],
|
| 1240 |
+
"table_footnote": [],
|
| 1241 |
+
"table_body": "<table><tr><td>Method</td><td>VGG 16</td><td>Wide ResNet</td></tr><tr><td>Adv train</td><td>79.13%</td><td>85.84%</td></tr><tr><td>TRADES</td><td>83.53%</td><td>83.90%</td></tr><tr><td>CAT</td><td>86.58%</td><td>88.66 %</td></tr></table>",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
143,
|
| 1244 |
+
433,
|
| 1245 |
+
413,
|
| 1246 |
+
502
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 7
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "4.3. Loss Landscape Exploration",
|
| 1253 |
+
"text_level": 1,
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
84,
|
| 1256 |
+
532,
|
| 1257 |
+
318,
|
| 1258 |
+
547
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 7
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "To further verify the superior robustness using CAT, we visualize the loss landscape of different training methods in Figure 3. Following the implementation in (Engstrom et al., 2018), we divide the data input along a linear space grid defined by the sign of the input gradient and a random Rademacher vector, where the x- and y- axes represent the magnitude of the perturbation added in each direction and the z-axis represents the loss.",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
84,
|
| 1267 |
+
555,
|
| 1268 |
+
473,
|
| 1269 |
+
676
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 7
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "As shown in Figure 3, CAT generates a model with a lower and smoother loss landscape. Also, it could be taken as another strong evidence that we have found a robust model through CAT training.",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
84,
|
| 1278 |
+
684,
|
| 1279 |
+
473,
|
| 1280 |
+
744
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 7
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "4.4. Ablation study",
|
| 1287 |
+
"text_level": 1,
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
84,
|
| 1290 |
+
761,
|
| 1291 |
+
222,
|
| 1292 |
+
776
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 7
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "The importance of adaptive label uncertainty. Here we discuss and perform an ablation study using VGG-16 and CIFAR-10 on the importance of adaptive label uncertainty and adaptive instance-wise $\\epsilon$ . In Figure 4b, Adp train denotes the original adversarial training, Adv+LS denotes adversarial training with label smoothing (setting $y$ by Eq (4)), Adp-Adv denotes adversarial training with adaptive instance-wise $\\epsilon$ , and CAT-CE is the proposed method",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
84,
|
| 1301 |
+
784,
|
| 1302 |
+
475,
|
| 1303 |
+
905
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 7
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "image",
|
| 1309 |
+
"img_path": "images/75721312574a0fc7f380d4ee4d9bd1e0d7995038c8bacf9e5af8eaaf08946d14.jpg",
|
| 1310 |
+
"image_caption": [
|
| 1311 |
+
"(a)"
|
| 1312 |
+
],
|
| 1313 |
+
"image_footnote": [],
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
535,
|
| 1316 |
+
97,
|
| 1317 |
+
848,
|
| 1318 |
+
258
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 7
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "image",
|
| 1324 |
+
"img_path": "images/3dc2fb39cd86a67bd3f87e5047a9d95fb5d912effe65d37a7b1ee0a9f1f1d354.jpg",
|
| 1325 |
+
"image_caption": [
|
| 1326 |
+
"(b)",
|
| 1327 |
+
"Figure 4. Analysis of CAT. In (a) we test CAT under different steps of PGD attack, and in (b) we conduct an ablation study on CAT by changing the loss function and removing Label Adaption (LA)."
|
| 1328 |
+
],
|
| 1329 |
+
"image_footnote": [],
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
534,
|
| 1332 |
+
292,
|
| 1333 |
+
848,
|
| 1334 |
+
452
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 7
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "which is a combination of these two tricks. We found that only applying adaptive instance-wise $\\epsilon$ or label smoothing cannot significantly boost the robust accuracy over standard adversarial training, but the proposed method, by nicely combining these two ideas, can significantly improve the performance. This explains why CAT significantly outperforms some instance adaptive $\\epsilon$ methods like IAAT and MMA.",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
495,
|
| 1343 |
+
565,
|
| 1344 |
+
885,
|
| 1345 |
+
685
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 7
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "More iterations of PGD attack. As suggested in Athalye et al. (2018), to verify that the performance gain is not brought by insufficient iterations in PGD attack, in Figure 4a, we show the robust accuracy with the number of iteration varying from 10 to 500 on CIFAR10 VGG16. The results show that although increasing the number of iterations would decrease the performance by around $2\\%$ , CAT always outperforms other methods significantly.",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
495,
|
| 1354 |
+
694,
|
| 1355 |
+
888,
|
| 1356 |
+
815
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 7
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "5. Conclusions",
|
| 1363 |
+
"text_level": 1,
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
496,
|
| 1366 |
+
834,
|
| 1367 |
+
624,
|
| 1368 |
+
849
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 7
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "In this paper, we propose CAT, a customized adversarial training method that is designed to have better generalization for both clean and robust performance. We also provide",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
495,
|
| 1377 |
+
859,
|
| 1378 |
+
887,
|
| 1379 |
+
905
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 7
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "header",
|
| 1385 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
279,
|
| 1388 |
+
56,
|
| 1389 |
+
692,
|
| 1390 |
+
70
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 7
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "a theoretical analysis to motivate our algorithm. Experimental results show that CAT has achieved state-of-art robust accuracy and a high clean accuracy while keeping similar running time as standard adversarial training. The success of CAT indicates that it is crucial to customize the perturbation level on both data sample side and its label in adversarial training.",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
84,
|
| 1399 |
+
84,
|
| 1400 |
+
478,
|
| 1401 |
+
191
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 8
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "References",
|
| 1408 |
+
"text_level": 1,
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
86,
|
| 1411 |
+
210,
|
| 1412 |
+
181,
|
| 1413 |
+
224
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 8
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "list",
|
| 1419 |
+
"sub_type": "ref_text",
|
| 1420 |
+
"list_items": [
|
| 1421 |
+
"Athalye, A., Carlini, N., and Wagner, D. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. International Coherence on International Conference on Machine Learning, 2018.",
|
| 1422 |
+
"Balaji, Y., Goldstein, T., and Hoffman, J. Instance adaptive adversarial training: Improved accuracy tradeoffs in neural nets. arXiv preprint arXiv:1910.08051, 2019.",
|
| 1423 |
+
"Brendel, W., Rauber, J., and Bethge, M. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. arXiv preprint arXiv:1712.04248, 2017.",
|
| 1424 |
+
"Carlini, N. and Wagner, D. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, pp. 39-57, 2017.",
|
| 1425 |
+
"Chen, P.-Y., Zhang, H., Sharma, Y., Yi, J., and Hsieh, C.-J. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15-26, 2017.",
|
| 1426 |
+
"Cheng, M., Le, T., Chen, P.-Y., Yi, J., Zhang, H., and Hsieh, C.-J. Query-efficient hard-label black-box attack: An optimization-based approach. arXiv preprint arXiv:1807.04457, 2018.",
|
| 1427 |
+
"Cheng, M., Singh, S., Chen, P., Chen, P.-Y., Liu, S., and Hsieh, C.-J. Sign-opt: A query-efficient hard-label adversarial attack. In ICLR, 2020.",
|
| 1428 |
+
"Cohen, J. M., Rosenfeld, E., and Kolter, J. Z. Certified adversarial robustness via randomized smoothing. International Conference on Machine Learning, 2019.",
|
| 1429 |
+
"Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 248-255, 2009.",
|
| 1430 |
+
"Ding, G. W., Sharma, Y., Lui, K. Y. C., and Huang, R. Max-margin adversarial (mma) training: Direct input space margin maximization through adversarial training. arXiv preprint arXiv:1812.02637, 2018."
|
| 1431 |
+
],
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
86,
|
| 1434 |
+
233,
|
| 1435 |
+
475,
|
| 1436 |
+
905
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 8
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "list",
|
| 1442 |
+
"sub_type": "ref_text",
|
| 1443 |
+
"list_items": [
|
| 1444 |
+
"Engstrom, L., Ilyas, A., and Athalye, A. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint arXiv:1807.10272, 2018.",
|
| 1445 |
+
"Eykholt, K., Evtimov, I., Fernandes, E., Li, B., Rahmati, A., Xiao, C., Prakash, A., Kohno, T., and Song, D. Robust physical-world attacks on deep learning visual classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1625-1634, 2018.",
|
| 1446 |
+
"Gao, R., Cai, T., Li, H., Hsieh, C.-J., Wang, L., and Lee, J. D. Convergence of adversarial training in overparametrized neural networks. In Advances in Neural Information Processing Systems, pp. 13009-13020, 2019.",
|
| 1447 |
+
"Goibert, M. and Dohmatob, E. Adversarial robustness via adversarial label-smoothing. arXiv preprint arXiv:1906.11567, 2019.",
|
| 1448 |
+
"Goodfellow, I. J., Shlens, J., and Szegedy, C. Explaining and harnessing adversarial examples. International Conference on Learning Representations, 2015.",
|
| 1449 |
+
"Ilyas, A., Engstrom, L., Athalye, A., and Lin, J. Black-box adversarial attacks with limited queries and information. arXiv preprint arXiv:1804.08598, 2018.",
|
| 1450 |
+
"Krizhevsky, A., Nair, V., and Hinton, G. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/~kriz/cifar.html.",
|
| 1451 |
+
"Kurakin, A., Goodfellow, I., and Bengio, S. Adversarial machine learning at scale. International Conference on Learning Representations, 2017.",
|
| 1452 |
+
"Liu, X., Cheng, M., Zhang, H., and Hsieh, C.-J. Towards robust neural networks via random self-ensemble. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 369-385, 2018.",
|
| 1453 |
+
"Madry, A., Makelov, A., Schmidt, L., Tsipras, D., and Vladu, A. Towards deep learning models resistant to adversarial attacks. International Conference on Learning Representations, 2018.",
|
| 1454 |
+
"Shafahi, A., Ghiasi, A., Huang, F., and Goldstein, T. Label smoothing and logit squeezing: A replacement for adversarial training? 2018.",
|
| 1455 |
+
"Shafahi, A., Najibi, M., Ghiasi, A., Xu, Z., Dickerson, J., Studer, C., Davis, L. S., Taylor, G., and Goldstein, T. Adversarial training for free! Neural Information Processing Systems, 2019.",
|
| 1456 |
+
"Simonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, 2015."
|
| 1457 |
+
],
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
500,
|
| 1460 |
+
84,
|
| 1461 |
+
885,
|
| 1462 |
+
905
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 8
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "header",
|
| 1468 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
279,
|
| 1471 |
+
56,
|
| 1472 |
+
692,
|
| 1473 |
+
71
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 8
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "list",
|
| 1479 |
+
"sub_type": "ref_text",
|
| 1480 |
+
"list_items": [
|
| 1481 |
+
"Su, D., Zhang, H., Chen, H., Yi, J., Chen, P.-Y., and Gao, Y. Is robustness the cost of accuracy? a comprehensive study on the robustness of 18 deep image classification models. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 631-648, 2018.",
|
| 1482 |
+
"Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., and Fergus, R. Intriguing properties of neural networks. International Conference on Learning Representations, 2014.",
|
| 1483 |
+
"Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826, 2016.",
|
| 1484 |
+
"Thulasidasan, S., Chennupati, G., Bilmes, J., Bhattacharya, T., and Michalak, S. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. Neural Information Processing Systems, 2019.",
|
| 1485 |
+
"Tsipras, D., Santurkar, S., Engstrom, L., Turner, A., and Madry, A. Robustness may be at odds with accuracy. In International Conference on Learning Representations, 2019.",
|
| 1486 |
+
"Verma, V., Lamb, A., Beckham, C., Najafi, A., Mitliagkas, I., Courville, A., Lopez-Paz, D., and Bengio, Y. Manifold mixup: Better representations by interpolating hidden states. International Conference on Machine Learning, 2018.",
|
| 1487 |
+
"Wang, J. Bilateral adversarial training: Towards fast training of more robust models against adversarial attacks. International Conference on Computer Vision, 2019.",
|
| 1488 |
+
"Wang, Y., Ma, X., Bailey, J., Yi, J., Zhou, B., and Gu, Q. On the convergence and robustness of adversarial training. In International Conference on Machine Learning, pp. 6586-6595, 2019.",
|
| 1489 |
+
"Wang, Zou, Y. B. M. G. Improving adversarial robustness requires revisiting misclassified examples. International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=rk10g6EFwS.",
|
| 1490 |
+
"Wei, C. and Ma, T. Improved sample complexities for deep networks and robust classification via an all-layer margin. arXiv preprint arXiv:1910.04284, 2019.",
|
| 1491 |
+
"Wong, E., Rice, L., and Kolter, J. Z. Fast is better than free: Revisiting adversarial training. arXiv preprint arXiv:2001.03994, 2020.",
|
| 1492 |
+
"Yin, D., Ramchandran, K., and Bartlett, P. Rademacher complexity for adversarially robust generalization. arXiv preprint arXiv:1810.11914, 2018."
|
| 1493 |
+
],
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
86,
|
| 1496 |
+
84,
|
| 1497 |
+
475,
|
| 1498 |
+
905
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 9
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "list",
|
| 1504 |
+
"sub_type": "ref_text",
|
| 1505 |
+
"list_items": [
|
| 1506 |
+
"Zantedeschi, V., Nicolae, M.-I., and Rawat, A. Efficient defenses against adversarial attacks. In ACM Workshop on Artificial Intelligence and Security, pp. 39-49, 2017.",
|
| 1507 |
+
"Zhang, D., Zhang, T., Lu, Y., Zhu, Z., and Dong, B. You only propagate once: Accelerating adversarial training via maximal principle. In Advances in Neural Information Processing Systems, pp. 227-238, 2019a.",
|
| 1508 |
+
"Zhang, H., Cisse, M., Dauphin, Y. N., and Lopez-Paz, D. mixup: Beyond empirical risk minimization. International Conference on Learning Representations, 2018.",
|
| 1509 |
+
"Zhang, H., Yu, Y., Jiao, J., Xing, E. P., Ghaoui, L. E., and Jordan, M. I. Theoretically principled trade-off between robustness and accuracy. International Conference on Machine Learning, 2019b."
|
| 1510 |
+
],
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
498,
|
| 1513 |
+
84,
|
| 1514 |
+
887,
|
| 1515 |
+
325
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 9
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "header",
|
| 1521 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
279,
|
| 1524 |
+
56,
|
| 1525 |
+
692,
|
| 1526 |
+
71
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 9
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "A. Omitted Proofs",
|
| 1533 |
+
"text_level": 1,
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
84,
|
| 1536 |
+
83,
|
| 1537 |
+
243,
|
| 1538 |
+
99
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 10
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "text",
|
| 1544 |
+
"text": "In this section we provide the omitted proof for Theorem 3.2, which is adapted from Theorem 2.1 from (Wei & Ma, 2019). They defined the all layer margin for a $k$ -layer network $h_\\theta(\\boldsymbol{x}) = f_k \\circ f_{k-1} \\circ \\dots \\circ f_1(\\boldsymbol{x})$ and perturbation $\\delta = (\\delta_1, \\delta_2, \\dots, \\delta_k)$ as follows:",
|
| 1545 |
+
"bbox": [
|
| 1546 |
+
84,
|
| 1547 |
+
109,
|
| 1548 |
+
888,
|
| 1549 |
+
154
|
| 1550 |
+
],
|
| 1551 |
+
"page_idx": 10
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"type": "equation",
|
| 1555 |
+
"text": "\n$$\nh _ {1} (\\boldsymbol {x}, \\delta) = f _ {1} (\\boldsymbol {x}) + \\delta_ {1} \\| \\boldsymbol {x} \\| _ {2}\n$$\n",
|
| 1556 |
+
"text_format": "latex",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
333,
|
| 1559 |
+
165,
|
| 1560 |
+
522,
|
| 1561 |
+
183
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 10
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "equation",
|
| 1567 |
+
"text": "\n$$\nh _ {i} (\\boldsymbol {x}, \\delta) = f _ {i} \\left(h _ {i - 1} (\\boldsymbol {x}, \\delta)\\right) + \\delta_ {i} \\| h _ {i - 1} (\\boldsymbol {x}, \\delta) \\| _ {2}\n$$\n",
|
| 1568 |
+
"text_format": "latex",
|
| 1569 |
+
"bbox": [
|
| 1570 |
+
338,
|
| 1571 |
+
185,
|
| 1572 |
+
638,
|
| 1573 |
+
202
|
| 1574 |
+
],
|
| 1575 |
+
"page_idx": 10
|
| 1576 |
+
},
|
| 1577 |
+
{
|
| 1578 |
+
"type": "equation",
|
| 1579 |
+
"text": "\n$$\nH _ {\\theta} (\\boldsymbol {x}, \\delta) = h _ {k} (\\boldsymbol {x}, \\delta).\n$$\n",
|
| 1580 |
+
"text_format": "latex",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
334,
|
| 1583 |
+
204,
|
| 1584 |
+
475,
|
| 1585 |
+
220
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 10
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "They define the all-layer margin as the minimum norm of $\\delta = (\\delta_{i})_{i=1}^{k}$ required that causes the classifier to make a false prediction.",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
84,
|
| 1594 |
+
233,
|
| 1595 |
+
885,
|
| 1596 |
+
263
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 10
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "equation",
|
| 1602 |
+
"text": "\n$$\nm _ {F} (\\boldsymbol {x}, y) := \\min _ {\\boldsymbol {\\delta} ^ {i}, \\boldsymbol {\\delta} ^ {o}} \\sqrt {\\| \\boldsymbol {\\delta} ^ {i} \\| ^ {2} + \\| \\boldsymbol {\\delta} ^ {o} \\| ^ {2}} \\tag {8}\n$$\n",
|
| 1603 |
+
"text_format": "latex",
|
| 1604 |
+
"bbox": [
|
| 1605 |
+
318,
|
| 1606 |
+
263,
|
| 1607 |
+
883,
|
| 1608 |
+
296
|
| 1609 |
+
],
|
| 1610 |
+
"page_idx": 10
|
| 1611 |
+
},
|
| 1612 |
+
{
|
| 1613 |
+
"type": "equation",
|
| 1614 |
+
"text": "\n$$\n\\text {s u b j e c t} \\max _ {y ^ {\\prime}} H _ {\\theta} (\\boldsymbol {x}, \\boldsymbol {\\delta} ^ {i}, \\boldsymbol {\\delta} ^ {o}) _ {y ^ {\\prime}} \\neq y.\n$$\n",
|
| 1615 |
+
"text_format": "latex",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
411,
|
| 1618 |
+
292,
|
| 1619 |
+
653,
|
| 1620 |
+
316
|
| 1621 |
+
],
|
| 1622 |
+
"page_idx": 10
|
| 1623 |
+
},
|
| 1624 |
+
{
|
| 1625 |
+
"type": "text",
|
| 1626 |
+
"text": "They consider the function class $\\mathcal{F} = \\{f_k\\circ f_{k - 1}\\dots \\circ f_1:f_i\\in \\mathcal{F}_i\\}$ be the class of compositions of functions from function classes $\\mathcal{F}_1,\\dots \\mathcal{F}_k$ . They achieve the generalization bound as follows:",
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
84,
|
| 1629 |
+
321,
|
| 1630 |
+
885,
|
| 1631 |
+
354
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 10
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "text",
|
| 1637 |
+
"text": "Theorem A.1 (Theorem 2.1 from (Wei & Ma, 2019)) In the above setting, with probability $1 - \\delta$ over the draw of the data, all classifiers $F \\in \\mathcal{F}$ which achieve training error 0 satisfy",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
84,
|
| 1640 |
+
364,
|
| 1641 |
+
885,
|
| 1642 |
+
397
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 10
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "equation",
|
| 1648 |
+
"text": "\n$$\n\\mathbb {E} [ f _ {\\theta} (\\pmb {x}) = y ] \\lesssim \\frac {\\sum_ {i} \\mathcal {C} _ {i} \\log^ {2} n}{\\sqrt {n}} \\sqrt {\\frac {1}{n} \\sum_ {i = 1} ^ {n} \\frac {1}{m _ {F} (\\pmb {x} _ {i} , y _ {i})}} + \\zeta ,\n$$\n",
|
| 1649 |
+
"text_format": "latex",
|
| 1650 |
+
"bbox": [
|
| 1651 |
+
297,
|
| 1652 |
+
407,
|
| 1653 |
+
674,
|
| 1654 |
+
455
|
| 1655 |
+
],
|
| 1656 |
+
"page_idx": 10
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "text",
|
| 1660 |
+
"text": "where $\\zeta$ is of small order $O\\left(\\frac{1}{n}\\log (1 / \\delta)\\right)$ .",
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
84,
|
| 1663 |
+
465,
|
| 1664 |
+
364,
|
| 1665 |
+
484
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 10
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "text",
|
| 1671 |
+
"text": "For our problem, we define $h_\\theta(\\pmb{x}) \\coloneqq f_2 \\circ f_1(\\pmb{x})$ , where $f_1$ is identity mapping, and $f_2$ is the original function $h_\\theta$ . Therefore the all layer margin is reduced to our bilateral margin:",
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
84,
|
| 1674 |
+
494,
|
| 1675 |
+
888,
|
| 1676 |
+
526
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 10
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "equation",
|
| 1682 |
+
"text": "\n$$\n\\begin{array}{l} h _ {1} (\\boldsymbol {x}, \\boldsymbol {\\delta} ^ {i}) = f _ {1} (\\boldsymbol {x}) + \\boldsymbol {\\delta} ^ {i} \\| \\boldsymbol {x} \\| _ {2} = \\boldsymbol {x} + \\boldsymbol {\\delta} ^ {i} \\| \\boldsymbol {x} \\| \\\\ H _ {\\theta} (\\boldsymbol {x}, \\boldsymbol {\\delta}) = h _ {2} (\\boldsymbol {x}, \\boldsymbol {\\delta} ^ {i}, \\boldsymbol {\\delta} ^ {o}) = f _ {2} \\left(h _ {1} (\\boldsymbol {x}, \\boldsymbol {\\delta} ^ {i})\\right) + \\boldsymbol {\\delta} ^ {o} \\| h _ {1} (\\boldsymbol {x}, \\boldsymbol {\\delta} ^ {i}) \\| \\\\ = h _ {\\theta} \\left(\\boldsymbol {x} + \\delta^ {i} \\| \\boldsymbol {x} \\|\\right) + \\delta^ {o} \\| \\boldsymbol {x} + \\delta^ {i} \\| \\boldsymbol {x} \\| \\|. \\\\ \\end{array}\n$$\n",
|
| 1683 |
+
"text_format": "latex",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
276,
|
| 1686 |
+
535,
|
| 1687 |
+
694,
|
| 1688 |
+
595
|
| 1689 |
+
],
|
| 1690 |
+
"page_idx": 10
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"type": "text",
|
| 1694 |
+
"text": "Next, notice since $f_{1}$ is identity mapping, and composition with $h_{\\theta}$ doesn't affect the overall complexity. We apply Theorem A.1 and get our result.",
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
84,
|
| 1697 |
+
606,
|
| 1698 |
+
885,
|
| 1699 |
+
638
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 10
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "header",
|
| 1705 |
+
"text": "CAT: Customized Adversarial Training for Improved Robustness",
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
279,
|
| 1708 |
+
56,
|
| 1709 |
+
692,
|
| 1710 |
+
70
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 10
|
| 1713 |
+
}
|
| 1714 |
+
]
|
2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06789/742d8561-0e5e-4192-b15b-21fc92c86ee6_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CAT: Customized Adversarial Training for Improved Robustness
|
| 2 |
+
|
| 3 |
+
Minhao Cheng<sup>1</sup> Qi Lei<sup>2</sup> Pin-Yu Chen<sup>3</sup> Inderjit Dhillon<sup>2</sup> Cho-Jui Hsieh<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Adversarial training has become one of the most effective methods for improving robustness of neural networks. However, it often suffers from poor generalization on both clean and perturbed data. In this paper, we propose a new algorithm, named Customized Adversarial Training (CAT), which adaptively customizes the perturbation level and the corresponding label for each training sample in adversarial training. We show that the proposed algorithm achieves better clean and robust accuracy than previous adversarial training methods through extensive experiments.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Deep neural networks (DNNs) have proved their effectiveness on a variety of domains and tasks. However, it has been found that DNNs are highly vulnerable to adversarial examples (Szegedy et al., 2014). To enhance the robustness of DNNs against adversarial examples, adversarial training (Goodfellow et al., 2015; Madry et al., 2018) has become one of the most effective and widely used methods. Given a pre-defined perturbation tolerance, denoted as $\epsilon$ , adversarial training aims to minimize the robust loss, defined as the worst-case loss within $\epsilon$ -ball around each example, leading to a min-max optimization problem. (Madry et al., 2018) show that applying a multi-step projected gradient descent (PGD) attack to approximately solve the inner maximization leads to a robust model, and several recent research has proposed various ways to improve adversarial training (Zhang et al., 2019b; Wang, 2019; Wang et al., 2019; Balaji et al., 2019; Ding et al., 2018).
|
| 12 |
+
|
| 13 |
+
However, the standard adversarial training methods still have a hypothetical and possibly problematic assumption: the perturbation tolerance $\epsilon$ is a large and fixed constant throughout the training process, which ignores the fact that every data point may have different intrinsic robustness.
|
| 14 |
+
|
| 15 |
+
Intuitively, some examples are naturally closer to the decision boundary, and enforcing large margin on those examples will force the classifier to give up on those examples, leading to a distorted decision surface. This intuition may explain the known issue of the undesirable robustness-accuracy tradeoff in adversarial robustness (Su et al., 2018; Tsipras et al., 2019). Furthermore, with a different perturbation tolerance, it is questionable whether we should still force the model to learn to fit the one-hot label as in the original adversarial training formulation. In the extreme case, if an example is perturbed to the decision boundary, a good classifier yielding the binary class prediction probabilities should output $[0.5, 0.5]$ instead of $[1, 0]$ . This point becomes crucial when each example is associated with a different level of perturbation. Although some recent papers have started to address the uniform $\epsilon$ issue by treating correctly and incorrectly classified examples differently (Ding et al., 2018) or assigning non-uniform perturbation level (Balaji et al., 2019), none of them have tried to incorporate the customized training labels in this process.
|
| 16 |
+
|
| 17 |
+
Motivated by these ideas, we propose a novel Customized Adversarial Training (CAT) framework that can substantially improve the performance of adversarial training. Throughout the adversarial training process, our algorithm dynamically finds a non-uniform and effective perturbation level and the corresponding customized target label for each example. This leads to better generalization performance and furthermore, with a careful design on adaptive $\epsilon$ tuning, our algorithm has only negligible computational overhead and runs as fast as the original adversarial training algorithm. Furthermore, we theoretically explain why the proposed method could lead to improved generalization performance.
|
| 18 |
+
|
| 19 |
+
Our method significantly outperforms existing adversarial training methods on the standard CIFAR-10 defense task. With Wide-ResNet structure on CIFAR-10, under $8/255\ell_{\infty}$ perturbation, our method achieves $73\%$ robust accuracy under PGD attack and $71\%$ robust accuracy under Carlini and Wagner (C&W) attack (Carlini & Wagner, 2017), while the current best model only achieves $58.6\%$ under PGD attack and $56.8\%$ under C&W attack. Furthermore, our method only degrades the clean accuracy from $95.93\%$ (standard test accuracy) to $93.48\%$ , while other adversarial training methods have clean accuracy below $91.34\%$ .
|
| 20 |
+
|
| 21 |
+
# 2. Related Work
|
| 22 |
+
|
| 23 |
+
Adversarial attack. Finding adversarial examples, also known as adversarial attacks, can be formulated as an optimization problem — the goal is to find the perturbation $\delta$ to maximize the (robust) loss, while constraining $\delta$ to have small norm (e.g., $\ell_p$ norm). Therefore gradient-based algorithms have been widely used, such as fast gradient sign method (FGSM) (Goodfellow et al., 2015), C&W attack (Carlini & Wagner, 2017) and PGD attack (Madry et al., 2018). In addition to white-box attacks, it has been also found that adversarial attacks can be generated also in the soft-label black box setting (Chen et al., 2017; Ilyas et al., 2018) and hard-label black box setting (Brendel et al., 2017; Cheng et al., 2018; 2020), and with similar quality to white-box attacks. Moreover, physical attacks have been proposed to generate adversarial examples in the real world (Eykholt et al., 2018). Therefore, with the existence of these powerful adversarial attacks, how to enhance the robustness of neural network models has become an important issue in many real world applications.
|
| 24 |
+
|
| 25 |
+
Adversarial training. To enhance the adversarial robustness of a neural network model, a natural idea is to iteratively generate adversarial examples, add them back to the training data, and retrain the model. For example, Goodfellow et al. (2015) use adversarial examples generated by FGSM to augment the data, and Kurakin et al. (2017) propose to use a multiple-step FGSM to further improve the performance. Madry et al. (2018) show that adversarial training can be formulated as a min-max optimization problem, and propose to use PGD attack (similar to multi-step FGSM) to find adversarial examples for each batch. The resulting method achieves notable successes and can survive even under strong attacks (Athalye et al., 2018). After that, many defense algorithms are based on a similar min-max framework. Zhang et al. (2019b) propose TRADES, a theoretically-driven upper bound minimization algorithm to achieve the top-1 rank in NeurIPS 2018 defense competition. Recently, Ding et al. (2018) notice the importance of misclassified examples and treat correctly classified and misclassified examples differently. Wang (2020) use label prediction probability as a smooth way to combine correctly and misclassified samples. Other than just adding adversarial examples into the training process, Wang (2019) find that it is also effective to find the "adversarial label" along with the "adversarial perturbation". The convergence of adversarial training has also been studied (Gao et al., 2019; Wang et al., 2019). Recently, to reduce the computational overhead brought by adversarial training, several works have been proposed (Shafahi et al., 2019; Zhang et al., 2019a; Wong et al., 2020). It is widely recognized that the current defensive models are still not ideal and have considerable room for improvement. Moreover, to make robust models
|
| 26 |
+
|
| 27 |
+
useful in practice, it is crucial that both clean and robust error need to be further enhanced.
|
| 28 |
+
|
| 29 |
+
Other adversarial defenses In addition to adversarial training based methods, a wide range of defense methods have been proposed such as Gaussian data augmentation (Zantedeschi et al., 2017), randomized smoothing (Liu et al., 2018; Cohen et al., 2019), Mixup (Zhang et al., 2018) and its variants (Thulasidasan et al., 2019; Verma et al., 2018), and Label smoothing (Shafahi et al., 2018; Goibert & Dohmatob, 2019). Shafahi et al. (2018) find that it could achieve similar robust accuracy with adversarial training when combining Gaussian data augmentation and label-smoothing.
|
| 30 |
+
|
| 31 |
+
However, some of the aforementioned methods have been shown to cause obfuscated gradients instead of enhanced robustness (Athalye et al., 2018), while adversarial training based methods are still shown to be robust under different kinds of adversarial attacks.
|
| 32 |
+
|
| 33 |
+
# 3. Proposed Method
|
| 34 |
+
|
| 35 |
+
# 3.1. Preliminaries
|
| 36 |
+
|
| 37 |
+
Adversarial training can be formulated as a min-max optimization problem. For a $K$ -class classification problem, let $\mathcal{D} = \{(\pmb{x}_i,y_i)\}_{i = 1,\dots ,n}$ denote the set of training samples in the dataset with $\pmb {x}_i\in \mathbb{R}^d$ $y_{i}\in \{1,\ldots ,K\} = :[K]$ . Let $f_{\theta}(\pmb {x}):\mathbb{R}^{d}\to [K]$ denote a classification model parameterized by $\theta$ . We denote by $h_\theta (\pmb {x}):\mathbb{R}^d\rightarrow [0,1]^K$ as the prediction output for each class, i.e., $f_{\theta}(\pmb {x}) = \mathrm{argmax}_i[h_\theta (\pmb {x})]_i$ . We use standard $O(\cdot)$ notation to hide universal constant factor, and $a\lesssim b$ to indicate $a = O(b)$ .
|
| 38 |
+
|
| 39 |
+
Adversarial training can be formulated as:
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\min _ {\theta} \frac {1}{n} \sum_ {i = 1} ^ {n} \max _ {\boldsymbol {x} _ {i} ^ {\prime} \in \mathcal {B} (\boldsymbol {x} _ {i}, \epsilon)} \ell \left(f _ {\theta} \left(\boldsymbol {x} _ {i} ^ {\prime}\right), y _ {i}\right), \tag {1}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
where $\mathcal{B}(\pmb{x}_i, \epsilon)$ denotes the $\ell_p$ -norm ball centered at $\pmb{x}_i$ with radius $\epsilon$ . The inner maximization problem aims to find an adversarial version of a given data point $\pmb{x}_i$ that achieves a high loss. In general one can define $\mathcal{B}(\pmb{x}_i, \epsilon)$ based on the threat model, but the $\ell_{\infty}$ ball is the most popular choice adopted by recent works (Madry et al., 2018; Zhang et al., 2019b; Wang, 2019; Ding et al., 2018; Wang, 2020), which will also be used in this paper. For a deep neural network model, the inner maximization does not have a closed form solution, so adversarial training methods typically use a gradient-based iterative solver to approximately solve the inner problem. The most commonly used choice is the multi-step PGD (Madry et al., 2018) and C&W attack (Carlini & Wagner, 2017).
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
(a) Standard training
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
(b) Adv-train with $\epsilon = 1$
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
(c) Adv-train with $\epsilon = 4$
|
| 55 |
+
Figure 1. Different training methods on a linearly separable binary classification dataset with 1.75 margin for both classes. Adversarial training with small $\epsilon$ works fine, but for a large $\epsilon$ beyond the true margin, adversarial training would ruin the classifier's classification performance, while our proposed adaptive customized adversarial training method still keeps a good generalization performance.
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
(d) CAT (ours) with $\epsilon_{max} = 4$
|
| 59 |
+
|
| 60 |
+
# 3.2. Motivation
|
| 61 |
+
|
| 62 |
+
Intuitively, if adversarial training can always find a model with close-to-zero robust error, one should always use a large $\epsilon$ for training because it will automatically imply robustness to any smaller $\epsilon$ . Unfortunately, in practice a uniformly large $\epsilon$ is often harmful. In the following we empirically explain this problem and use it to motivate our proposed algorithm.
|
| 63 |
+
|
| 64 |
+
We use a simple linear classification case to demonstrate why a uniformly large $\epsilon$ is harmful. In Figure 1a, we generate a synthetic linearly separable dataset with the margin set to be 1.75 for both classes, and the correct linear boundary can be easily obtained by standard training. In Figure 1b, we run adversarial training with $\epsilon = 1$ , and since this $\epsilon$ is smaller than the margin, the algorithm can still obtain near-optimal results. However, when we use a large $\epsilon = 4$ for adversarial training in Figure 1c, the resulting decision boundary becomes significantly worse. It is because adversarial training cannot correctly fit all the samples with a margin up to 4, so it will sacrifice some data samples, leading to distorted and undesirable decision boundary. This motivates the following two problems:
|
| 65 |
+
|
| 66 |
+
- We shouldn't set the same large $\epsilon$ uniformly for all samples. Some samples are intrinsically closer to the decision boundary and they should use a smaller $\epsilon$ . Without doing this, adversarial training will give up on those samples, which leads to worse training and generalization error (see more discussions in Section 3.5 on the generalization bounds).
|
| 67 |
+
- The adversarial training loss is trying to force the prediction to match the one-hot label (e.g., [1, 0] in the binary classification case) even after large perturbations. However, if a sample is perturbed, the prediction shouldn't remain one-hot. For instance, if a sample is perturbed to the decision boundary, the prediction of a perfect model should be $[0.5, 0.5]$ instead of $[1, 0]$ .
|
| 68 |
+
|
| 69 |
+
This also makes adversarial training fail to recover a good decision hyperplane.
|
| 70 |
+
|
| 71 |
+
Furthermore, we observe that even if adversarial training can obtain close-to-zero training error with large $\epsilon$ (e.g., (Gao et al., 2019) proves that this will happen for overparameterized network with large-enough margin), a uniformly large $\epsilon$ will lead to larger generalization gap. This could be partially explained by the theoretical results provided by (Yin et al., 2018), which shows that the adversarial Rademacher complexity has a lower bound with an explicit dependence on the perturbation tolerance. The empirical results in Table 1 also illustrate this problem. When conducting adversarial training with $\epsilon = 0.3$ on CIFAR10 VGG-16, we found that the model achieves close-to-zero robust training error on all $\epsilon \leq 0.3$ , but it suffers larger generalization gap compared to training with smaller $\epsilon$ . This also demonstrates that a uniformly large $\epsilon$ is harmful even when it achieves perfect training error.
|
| 72 |
+
|
| 73 |
+
Table 1. The influence of different fixed $\epsilon$ values used in adversarial training on the robust accuracy with $\epsilon = {0.01}$ .
|
| 74 |
+
|
| 75 |
+
<table><tr><td rowspan="2">Testing ε</td><td rowspan="2">Error Type</td><td colspan="3">Training ε</td></tr><tr><td>0.01</td><td>0.02</td><td>0.03</td></tr><tr><td rowspan="2">0.01</td><td>Train</td><td>99.96%</td><td>99.99%</td><td>99.16%</td></tr><tr><td>Test</td><td>69.79%</td><td>69.06%</td><td>66.04%</td></tr></table>
|
| 76 |
+
|
| 77 |
+
CAT (Customized Adversarial Training) We propose the Customized Adversarial Training (CAT) framework that improves adversarial training by addressing the above-mentioned problems. First, our algorithm has an auto-tuning $\epsilon$ method to customize the $\epsilon$ used for each training example. Second, instead of forcing the model to fit the original label, we customize the target label for each example based on its own $\epsilon$ . In the following we will describe these two components in more detail.
|
| 78 |
+
|
| 79 |
+
# 3.3. Auto-tuning $\epsilon$ for adversarial training
|
| 80 |
+
|
| 81 |
+
The first component of our algorithm is an auto-tuning $\epsilon$ tuning method which adaptively assigns a suitable $\epsilon$ for each sample during the adversarial training procedure. Let $\epsilon_{i}$ be the perturbation level assigned to example $i$ . Based on the intuition mentioned in Section 3.2, we do not want to further increase $\epsilon$ if we find the classifier does not have capacity to robustly classify the example, which means we should set
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
\epsilon_ {i} = \underset {\epsilon} {\operatorname {a r g m i n}} \left\{\max _ {\boldsymbol {x} _ {i} ^ {\prime} \in \mathcal {B} \left(\boldsymbol {x} _ {i}, \epsilon\right)} f _ {\theta} \left(\boldsymbol {x} _ {i} ^ {\prime}\right) \neq y _ {i} \right\} \tag {2}
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
and the adversarial training objective becomes
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\min _ {\theta} \frac {1}{n} \sum_ {i = 1} ^ {n} \max _ {\boldsymbol {x} _ {i} ^ {\prime} \in \mathcal {B} \left(\boldsymbol {x} _ {i}, \epsilon_ {i}\right)} \ell \left(f _ {\theta} \left(\boldsymbol {x} _ {i} ^ {\prime}\right), y _ {i}\right). \tag {3}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Note that $\epsilon_{i}$ in (2) depends on $\theta$ while $\theta$ in (3) also depends on $\epsilon_{i}$ . We thus propose to conduct alternative updates — conducting one SGD update on $\theta$ , and then update the $\epsilon_{i}$ in the current batch. However, finding $\epsilon_{i}$ exactly requires brute-force search for every possible value, which adds significant computational overhead to adversarial training. Therefore, we only conduct a simplified update rule on $\epsilon_{i}$ as follows. Starting from an initial perturbation level of zero, at each iteration we conduct adversarial attack (e.g., PGD attack) with perturbation tolerance $\epsilon_{i} + \eta$ where $\eta$ is a constant. If the attack is successful, then we keep the current $\epsilon_{i}$ , while if the attack is unsuccessful, which means an attacker still cannot find an adversarial example that satisfies $\max_{\boldsymbol{x}_i' \in \mathcal{B}(\boldsymbol{x}_i, \epsilon_i + \eta)} f_\theta(\boldsymbol{x}_i') \neq y_i$ , then we increase $\epsilon_{i} = \epsilon_{i} + \eta$ . The attack results will also be used to update the model parameter $\theta$ , so this adaptive scheme does not require any additional cost. In practice, we also have an upper bound on the final perturbation to make sure each individual $\epsilon_{i}$ will not be too large.
|
| 94 |
+
|
| 95 |
+
# 3.4. Adaptive label uncertainty for adversarial training
|
| 96 |
+
|
| 97 |
+
As mentioned in Section 3.2, the standard adversarial training loss is trying to enforce a sample being classified as the original one-hot label after $\epsilon$ perturbation. However, this may not be ideal. In the extreme case, if a sample is perturbed to the decision boundary, the prediction must be far away from one-hot. This problem is more severe when using non-uniform $\epsilon_{i}$ , since each different $\epsilon_{i}$ will introduce a different bias to the loss, and that may be one of the reasons that purely adaptive $\epsilon$ -scheduling does not work well (see our ablation study in Section 4.4 and also the results reported in (Balaji et al., 2019)).
|
| 98 |
+
|
| 99 |
+
In the following, we propose an adaptive label smoothing approach to reflect different perturbation tolerance on each example. Szegedy et al. (2016) introduced label smoothing that converts one-hot label vectors into one-warm vectors representing low-confidence classification, in order to
|
| 100 |
+
|
| 101 |
+
prevent the model from making over-confident predictions. Specifically, with a one-hot encoded label $y$ , the smoothed version is
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\tilde {y} = (1 - \alpha) y + \alpha u
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where $\alpha \in [0,1]$ is the hyperparameter to control the smoothing level. In the adaptive setting, we set $\alpha = c*\epsilon_{i}$ so that a larger perturbation tolerance would receive a higher label uncertainty and $c$ is a hyperparameter. A common choice of $u$ is the uniform distribution $u = \frac{1}{K}$ . To further prevent over-fitting and improve the generalization, we use $u = \operatorname{Dirichlet}(\mathbf{1})$ where $\operatorname{Dirichlet}(\cdot)$ refers to the Dirichlet distribution and $\mathbf{1} \in \mathbb{R}^{K}$ is an all one vector. With different perturbation tolerance, the adaptive version of label smoothing is
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\tilde {y} _ {i} = \left(1 - c \epsilon_ {i}\right) y _ {i} + c \epsilon_ {i} \text {D i r i c h l e t} (\mathbf {1}). \tag {4}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
The final objective function: Combining the two aforementioned two main techniques, our Customized Adversarial Training (CAT) method attempts to minimize the following objective:
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\min _ {\theta} \frac {1}{n} \sum_ {i = 1} ^ {n} \max _ {\boldsymbol {x} _ {i} ^ {\prime} \in \mathcal {B} \left(\boldsymbol {x} _ {i}, \epsilon_ {i}\right)} \ell \left(f _ {\theta} \left(\boldsymbol {x} _ {i} ^ {\prime}\right), \tilde {\boldsymbol {y}} _ {i}\right) \tag {5}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\mathbf{s.t.} \epsilon_ {i} = \underset {\epsilon} {\operatorname {a r g m i n}} \left\{\max _ {\boldsymbol {x} _ {i} ^ {\prime} \in \mathcal {B} (\boldsymbol {x} _ {i}, \epsilon)} f _ {\theta} \left(\boldsymbol {x} _ {i} ^ {\prime}\right) \neq y _ {i} \right\}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where $\tilde{y}_i$ is defined in (4). As described in Section 3.3, we approximately minimize this objective with an alternative update scheme, which encounters almost no additional cost compared to the original adversarial training algorithm. The detailed algorithm is shown in Algorithm 1.
|
| 124 |
+
|
| 125 |
+
Choice of loss function. In general, our framework can be used with any loss function $\ell(\cdot)$ . In the previous works, cross entropy loss is commonly used for $\ell$ . However, the model trained by smoothing techniques tends to have better performance against PGD attack than $\mathrm{C\&W_{\infty}}$ attack (see the VGG experiments in Figure 2. So in addition to testing our algorithm under cross entropy loss, we also propose a mixed loss to enhance the defense performance towards $\mathrm{C\&W_{\infty}}$ attack. That is,
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\operatorname {C E} \left(x _ {i}, \tilde {y} _ {i}\right) + \max \left\{\left[ \max _ {i \neq y _ {0}} [ Z (\boldsymbol {x}) ] _ {i} - [ Z (\boldsymbol {x}) ] _ {y _ {0}}, - \kappa \right\}, \right. \tag {6}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $Z(\pmb{x}) \in \mathbb{R}^{K}$ is the final (logit) layer output, and $[Z(\pmb{x})]_i$ is the prediction score for the i-th class and $y_{0}$ is the original label. The parameter $\kappa$ encourages to find an adversary that will not classify as class $y_{0}$ with high confidence.
|
| 132 |
+
|
| 133 |
+
# 3.5. Theoretical Analysis
|
| 134 |
+
|
| 135 |
+
To better understand how our scheme improves generalization, we provide some theoretical analysis. Recall we denote
|
| 136 |
+
|
| 137 |
+
# Algorithm 1 CAT algorithm
|
| 138 |
+
|
| 139 |
+
Input: Training dataset $(X,Y)$ , cross entropy loss or mix loss $\ell$ , scheduling parameter $\eta$ , weighting factor $c$ , perturbation upperbound $\epsilon_{max}$
|
| 140 |
+
Initial every sample's $\epsilon_i$ with 0
|
| 141 |
+
for epoch=1,...,N do
|
| 142 |
+
for i=1,...,B do
|
| 143 |
+
$\tilde{y}_i \gets (1 - c\epsilon_i)y_i + (1 - c\epsilon_i)\text{Dirichlet}(1)$ $\epsilon_i \gets \epsilon_i + \eta$ $\delta_i \gets 0$
|
| 144 |
+
for $j = 1\dots m$ do
|
| 145 |
+
$\delta_i \gets \delta_i + \alpha \cdot sign(\nabla_\delta \ell(f_\theta(\boldsymbol{x}_i + \delta_i),\tilde{y}_i))$ $\delta_i \gets \max(\min(\delta_i,\epsilon_i),-\epsilon_i)$
|
| 146 |
+
end for
|
| 147 |
+
if $f_\theta(\boldsymbol{x}_i + \delta_i) \neq y_i$ then
|
| 148 |
+
$\epsilon_i \gets \epsilon_i - \eta$
|
| 149 |
+
end if
|
| 150 |
+
$\epsilon_i \gets \min(\epsilon_{max},\epsilon_i)$ $\tilde{y}_i \gets (1 - c\epsilon_i)y_i + (1 - c\epsilon_i)\text{Dirichlet}(1)$ $\theta \gets \theta - \gamma_\theta\nabla_\theta\ell(f_\theta(\boldsymbol{x}_i + \delta_i),\tilde{y}_i)$
|
| 151 |
+
end for
|
| 152 |
+
end for
|
| 153 |
+
return $\theta$
|
| 154 |
+
|
| 155 |
+
by $h_{\theta}(\pmb{x}) : \mathbb{R}^d \to [0,1]^K$ as the prediction probability for the $K$ classes. We define the bilateral margin that our paper is essentially maximizing over as follows.
|
| 156 |
+
|
| 157 |
+
Definition 3.1 (Bilateral margin) We define the bilateral perturbed network output by $H_{\theta}(\boldsymbol{x}, \boldsymbol{\delta}^i, \boldsymbol{\delta}^o)$ :
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
H _ {\theta} (\boldsymbol {x}, \boldsymbol {\delta} ^ {i}, \boldsymbol {\delta} ^ {o}) := h _ {\theta} \left(\boldsymbol {x} + \boldsymbol {\delta} ^ {i} \| \boldsymbol {x} \|\right) + \boldsymbol {\delta} ^ {o} \left\| \boldsymbol {x} + \boldsymbol {\delta} ^ {i} \| \boldsymbol {x} \| \right\|.
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
The bilateral margin is now defined as the minimum norm of $(\delta^i,\delta^o)$ required to cause the classifier to make false predictions:
|
| 164 |
+
|
| 165 |
+
$m_{F}(\pmb {x},y)\coloneqq \min_{\pmb{\delta}^{i},\pmb{\delta}^{o}}\sqrt{\|\pmb{\delta}^{i}\|^{2} + \|\pmb{\delta}^{o}\|^{2}}$ subject to $\max_{y^{\prime}}H_{\theta}(\pmb {x},\pmb{\delta}^{i},\pmb{\delta}^{o})_{y^{\prime}}\neq y.$ (7)
|
| 166 |
+
|
| 167 |
+
This margin captures both the relative perturbation on the input layer $\delta^i$ and on the soft-max output $\delta^o$ .
|
| 168 |
+
|
| 169 |
+
Theorem 3.2 Suppose the parameter space $\Theta$ we optimize over has covering number that scales as $\log \mathcal{N}_{\| \cdot \|_{op}}(\eta ,\Theta)\leq \lfloor \mathcal{C}^2 /\eta^2\rfloor$ for some complexity $\mathcal{C}$ . Then with probability $1 - \delta$ over the draw of the training data, any classifier $f_{\theta},\theta \in \Theta$ which achieves training error O satisfies:
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\mathbb {E} [ f _ {\theta} (\boldsymbol {x}) = y ] \lesssim \frac {\mathcal {C} \log^ {2} n}{\sqrt {n}} \sqrt {\frac {1}{n} \sum_ {i = 1} ^ {n} \frac {1}{m _ {F} (\boldsymbol {x} _ {i} , y _ {i})}} + \zeta ,
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
where $\zeta$ is of small order $O\left(\frac{1}{n}\log (1 / \delta)\right)$
|
| 176 |
+
|
| 177 |
+
We defer the proof to the Appendix, which is adapted from Theorem 2.1 of (Wei & Ma, 2019). We observe the population risk is bounded by two key factors, the average of $\frac{1}{m_F(\boldsymbol{x}_i,y_i)}$ and $\mathcal{C}$ , the covering number of the parameter space. On one side, the average of $\frac{1}{m_F(\boldsymbol{x}_i,y_i)}$ is dominated by the samples with the smallest margin. Therefore when we do adversarial training, it is important that we not only achieve higher overall accuracy, but also make sure the samples closer to the decision boundary have large enough margin. This can not be achieved by simply using constant and large $\epsilon$ that will maintain a large margin for most samples but sacrifice the accuracy of a small portion of data. On the other hand, the covering number of the network's parameter space can be roughly captured by a bound of product of all layers' weight norms. We hypothesize that with more flexibility in choosing $\epsilon$ , our algorithm will converge faster than using larger constant $\epsilon$ and will have more implicit regularization effect. To testify this hypothesis, we roughly measure the model complexity $\mathcal{C}$ by the product of the weight norms of different models. In comparison to our model, when training with constant $\epsilon = 0.01$ , 0.02 and 0.03, it respectively yields $\mathcal{C}$ as large as 2.54, 3.53 and 1.39 times of that of our model, which means our model indeed has more implicit regularization effect among others.
|
| 178 |
+
|
| 179 |
+
# 3.6. Connections with other training methods
|
| 180 |
+
|
| 181 |
+
Many recent papers attempt to improve adversarial training. Although they all follow the similar min-max framework, each of them uses slightly different loss functions. We summarize the loss functions used by recent adversarial training methods in Table 2.
|
| 182 |
+
|
| 183 |
+
We see that except for natural training which directly minimizes the cross entropy loss (denoted as CE), all training techniques involve the use of the min-max framework. TRADES and MMA use the unperturbed data's cross entropy loss as an additional regularization term to achieve a better trade-off between clean and robust error.
|
| 184 |
+
|
| 185 |
+
Similar to our method, both MMA and IAAT have samplewise adaptive $\epsilon$ during training. They also utilize the adaptive $\epsilon$ to find the largest possible $\epsilon_{i}$ for every sample $x_{i}$ . However, they do not consider the adaptive label technique mentioned in Section 3.4. As a result, they can only achieve better clean accuracy while the improvements in robust accuracy is limited. Our CAT-CE algorithm (CAT with CE loss) is more general than IAAT and MMA. CAT-CE reduce to IAAT when we set $c = 0$ in adaptive label smoothing. Moreover, MMA could be treated as a special case of CAT-CE when we use a line search scheme to find the $\epsilon_{i}$ and $c = 0$ . Also, in Section 4.4, we will show the importance of the adaptive label uncertainty step in CAT.
|
| 186 |
+
|
| 187 |
+
Table 2. Summary of several robust training methods and their corresponding loss function. Dirichlet(b) indicates the Dirichlet distribution parameterized by b.
|
| 188 |
+
|
| 189 |
+
<table><tr><td>Methods</td><td>Loss Function</td></tr><tr><td>Natural</td><td>CE(fθ(x),y)</td></tr><tr><td>Adversarial training (Madry et al., 2018)</td><td>maxx'∈B(x,ε) CE(fθ(x'),y)</td></tr><tr><td>TRADES (Zhang et al., 2019b)</td><td>CE(fθ(x),y) + maxx'∈B(x,ε) KL(fθ(x'),fθ(x))</td></tr><tr><td>Bilateral Adv Training (Wang, 2019)</td><td>maxx'∈B(x,ε),y'∈Δ CE(fθ(x'),y')</td></tr><tr><td>MMA (Ding et al., 2018)</td><td>CE(fθ(x))1(fθ(x)≠y) + (maxx'∈B(x,ε) CE(fθ(x'),y))1(fθ(x)=y)</td></tr><tr><td>MART (Wang, 2020)</td><td>maxx'∈B(x,ε) BCE(fθ(x'),y) + KL(fθ(x'),fθ(x))·(1-fθ(x))</td></tr><tr><td>IAAT (Balaji et al., 2019)</td><td>maxx'∈B(xi,εi) CE(fθ(x'),yi)</td></tr><tr><td>CAT-CE (ours)</td><td>maxx'∈B(xi,εi) CE(fθ(x'),(1-cεi)y_i+ cεiDirichlet(1))</td></tr><tr><td>CAT-MIX (ours)</td><td>maxx'∈B(xi,εi) CE(x', (1-cεi)y_i+ cεiDirichlet(1)) + maxj≠y_0[Z(x')j-[Z(x')j]y_0</td></tr></table>
|
| 190 |
+
|
| 191 |
+
# 4. Performance Evaluation
|
| 192 |
+
|
| 193 |
+
In this section, we conduct extensive experiments to show that CAT achieves a strong result on both clean and robust accuracy. We include the following methods into our comparison:
|
| 194 |
+
|
| 195 |
+
- Customized Adversarial Training (CAT-CE): Our proposed method with the cross entropy loss.
|
| 196 |
+
- Customized Adversarial Training (CAT-MIX): Our proposed method with the mixed cross entropy loss (6).
|
| 197 |
+
- Adversarial training: The adversarial training method proposed in (Madry et al., 2018) where they use a K-step PGD attack as adversary.
|
| 198 |
+
- TRADES: TRADES (Zhang et al., 2019b) improves adversarial training by an additional loss on the clean examples and achieves the state-of-art performance on robust accuracy.
|
| 199 |
+
- Natural: the natural training which only minimizes the cross entropy loss.
|
| 200 |
+
|
| 201 |
+
Furthermore, since many recently proposed adversarial training methods have considered CIFAR-10 with Wide-ResNet structure as the standard setting and report their numbers, we also compare our performance with 7 previous methods on this specific setting.
|
| 202 |
+
|
| 203 |
+
# 4.1. Experimental Setup
|
| 204 |
+
|
| 205 |
+
Dataset and model structure. We use two popular dataset CIFAR-10 (Krizhevsky et al.) and Restricted-ImageNet (Deng et al., 2009) for performance evaluation. For CIFAR-10, we use both standard VGG-16 (Simonyan & Zisserman, 2015) and Wide ResNet that is used in both vanilla adversarial training (Madry et al., 2018) and TRADES (Zhang et al., 2019b). For VGG-16, we implement adversarial training with the standard hyperparameters and train TRADES with the official implementation. For Wide ResNet, since the model has become standard for testing adversarial training methods, we use exactly the same model structure provided by (Madry et al., 2018;
|
| 206 |
+
|
| 207 |
+
Zhang et al., 2019b). And use the models' checkpoint released by adversarial training and TRADES official repository and implement the Madry's adversarial training using the standard hyper-parameters. For Restricted-ImageNet, we use ResNet-50. All our experiments were implemented in Pytorch-1.4 and conducted using dual Intel E5-2640 v4 CPUs (2.40GHz) with 512 GB memory with a GTX 2080 TI GPU.
|
| 208 |
+
|
| 209 |
+
Implementation details. We set the number of iterations in adversarial attack to be 10 for all methods. Adversarial training and TRADES are trained on PGD attacks setting $\epsilon = 8 / 255$ with cross entropy loss (CE). We implement our CAT method both on cross entropy (CE) (Madry et al., 2018) and C&W loss (Carlini & Wagner, 2017), and set $\epsilon_{\mathrm{max}} = 8 / 255$ . All the models are trained using SGD with momentum 0.9, weight decay $5 \times 10^{-4}$ . For VGG-16/Wide ResNet models, we use the initial learning rate of 0.01/0.1, and we decay the learning rate by $90\%$ at the 80th, 140th, and 180th epoch. For CAT, we set epsilon scheduling parameter $\eta = 0.005$ , $\epsilon_{\mathrm{max}} = 8 / 255$ and weighting parameter $c = 10$ . For CAT-MIX, we set $\kappa = 10$ .
|
| 210 |
+
|
| 211 |
+
# 4.2. Robustness Evaluation and Analysis
|
| 212 |
+
|
| 213 |
+
White-box attacks. For CIFAR10, we evaluate all the models under different tolerance of white-box $\ell_{\infty}$ -norm bounded non-targeted PGD and C&W attack. Specifically, we use both $\mathrm{PGD}^{20}$ (20-step PGD with step size $\epsilon / 5$ ) and C&W $_{\infty}$ . All attacks are equipped with random-start. To be noted, when $\epsilon = 0$ , the robust accuracy is reduced to test accuracy of unperturbed (natural) test samples, i.e clean accuracy.
|
| 214 |
+
|
| 215 |
+
The experimental results are shown in Figure 2, where we can easily see that both CAT-CE and CAT-MIX clearly outperform other methods among $\epsilon$ from 0 to 0.07. So our methods can achieve better robust error at the standard $8/255$ perturbation threshold considered in the literature, and also has better clean accuracy ( $\epsilon = 0$ ). The accuracy curve becomes quite flat when $\epsilon$ is increased.
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Figure 2. Robust accuracy under different levels of attacks on CIFAR-10 dataset with VGG and Wide-ResNet architectures. CAT-CE and CAT-MIX clearly outperform TREADS and adversarial training.
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
|
| 226 |
+
Table 3. The clean and robust accuracy of Wide Resnet models trained by various defense methods. All robust accuracy results use $\epsilon = 8 / 255\ell_{\infty}$ ball. We reported the best performance listed in the papers. (*) denotes random_restart is applied in the testing attack. (X) denotes it use a $X$ step PGD attack
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Methods</td><td>Clean accuracy</td><td>PGD accuracy</td><td>C&W accuracy</td></tr><tr><td>Natural training</td><td>95.93%</td><td>0%</td><td>0%</td></tr><tr><td>Adversarial training (Madry et al., 2018)</td><td>87.30%</td><td>52.68%</td><td>50.73%</td></tr><tr><td>Dynamic adversarial training (Wang et al., 2019)</td><td>84.51%</td><td>55.03%</td><td>51.98%</td></tr><tr><td>TRADES (Zhang et al., 2019b)</td><td>84.22%</td><td>56.40%(20)</td><td>51.98%</td></tr><tr><td>Bilateral Adv Training (Wang, 2019)</td><td>91.00%</td><td>57.5%(*20)</td><td>56.2%(*20)</td></tr><tr><td>MMA (Ding et al., 2018)</td><td>84.36%</td><td>47.18%</td><td>X</td></tr><tr><td>MART (Wang, 2020)</td><td>84.17%</td><td>58.56%(20)</td><td>54.58%</td></tr><tr><td>IAAT (Balaji et al., 2019)</td><td>91.34%</td><td>48.53%(*10)</td><td>56.80%</td></tr><tr><td>CAT-CE (ours)</td><td>93.48%</td><td>73.38%(*20)</td><td>61.88%(*20)</td></tr><tr><td>CAT-MIX (ours)</td><td>89.61%</td><td>73.16%(*20)</td><td>71.67%(*20)</td></tr></table>
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
(a) Natural
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
(b) Adv train
|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
(c) TRADES
|
| 238 |
+
Figure 3. Loss landscape comparison of different adversarial training methods
|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
(d) CAT
|
| 242 |
+
|
| 243 |
+
Wide ResNet has become a standard structure for comparing adversarial training methods, and it's standard to train and evaluate with $8/255\ell_{\infty}$ norm perturbation. For this setting, we collect the reported accuracy from 7 other adversarial training methods, with several of them published very recently, to have a detailed full comparison. As shown in Table 3, our method achieves state-of-art robust accuracy while maintaining a high clean accuracy. Due to the page limit, we put the Restricted ImageNet result in the appendix.
|
| 244 |
+
|
| 245 |
+
Black-box transfer attacks. We follow the criterion of evaluating transfer attacks as suggested by Athalye et al. (2018) to inspect whether the models trained by CAT will cause the issue of obfuscated gradients and give a false sense of model robustness. We generate 10,000 adversarial examples of CIFAR-10 from natural models with $\epsilon = 0.03$ and evaluate their attack performance on the target model. Table 4 shows that CAT achieves the best accuracy compared with adversarial training and TRADES, suggesting the effectiveness of CAT in defending both white-box and transfer attacks.
|
| 246 |
+
|
| 247 |
+
Table 4. Robust accuracy under transfer attack on CIFAR-10
|
| 248 |
+
|
| 249 |
+
<table><tr><td>Method</td><td>VGG 16</td><td>Wide ResNet</td></tr><tr><td>Adv train</td><td>79.13%</td><td>85.84%</td></tr><tr><td>TRADES</td><td>83.53%</td><td>83.90%</td></tr><tr><td>CAT</td><td>86.58%</td><td>88.66 %</td></tr></table>
|
| 250 |
+
|
| 251 |
+
# 4.3. Loss Landscape Exploration
|
| 252 |
+
|
| 253 |
+
To further verify the superior robustness using CAT, we visualize the loss landscape of different training methods in Figure 3. Following the implementation in (Engstrom et al., 2018), we divide the data input along a linear space grid defined by the sign of the input gradient and a random Rademacher vector, where the x- and y- axes represent the magnitude of the perturbation added in each direction and the z-axis represents the loss.
|
| 254 |
+
|
| 255 |
+
As shown in Figure 3, CAT generates a model with a lower and smoother loss landscape. Also, it could be taken as another strong evidence that we have found a robust model through CAT training.
|
| 256 |
+
|
| 257 |
+
# 4.4. Ablation study
|
| 258 |
+
|
| 259 |
+
The importance of adaptive label uncertainty. Here we discuss and perform an ablation study using VGG-16 and CIFAR-10 on the importance of adaptive label uncertainty and adaptive instance-wise $\epsilon$ . In Figure 4b, Adp train denotes the original adversarial training, Adv+LS denotes adversarial training with label smoothing (setting $y$ by Eq (4)), Adp-Adv denotes adversarial training with adaptive instance-wise $\epsilon$ , and CAT-CE is the proposed method
|
| 260 |
+
|
| 261 |
+

|
| 262 |
+
(a)
|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
(b)
|
| 266 |
+
Figure 4. Analysis of CAT. In (a) we test CAT under different steps of PGD attack, and in (b) we conduct an ablation study on CAT by changing the loss function and removing Label Adaption (LA).
|
| 267 |
+
|
| 268 |
+
which is a combination of these two tricks. We found that only applying adaptive instance-wise $\epsilon$ or label smoothing cannot significantly boost the robust accuracy over standard adversarial training, but the proposed method, by nicely combining these two ideas, can significantly improve the performance. This explains why CAT significantly outperforms some instance adaptive $\epsilon$ methods like IAAT and MMA.
|
| 269 |
+
|
| 270 |
+
More iterations of PGD attack. As suggested in Athalye et al. (2018), to verify that the performance gain is not brought by insufficient iterations in PGD attack, in Figure 4a, we show the robust accuracy with the number of iteration varying from 10 to 500 on CIFAR10 VGG16. The results show that although increasing the number of iterations would decrease the performance by around $2\%$ , CAT always outperforms other methods significantly.
|
| 271 |
+
|
| 272 |
+
# 5. Conclusions
|
| 273 |
+
|
| 274 |
+
In this paper, we propose CAT, a customized adversarial training method that is designed to have better generalization for both clean and robust performance. We also provide
|
| 275 |
+
|
| 276 |
+
a theoretical analysis to motivate our algorithm. Experimental results show that CAT has achieved state-of-art robust accuracy and a high clean accuracy while keeping similar running time as standard adversarial training. The success of CAT indicates that it is crucial to customize the perturbation level on both data sample side and its label in adversarial training.
|
| 277 |
+
|
| 278 |
+
# References
|
| 279 |
+
|
| 280 |
+
Athalye, A., Carlini, N., and Wagner, D. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. International Coherence on International Conference on Machine Learning, 2018.
|
| 281 |
+
Balaji, Y., Goldstein, T., and Hoffman, J. Instance adaptive adversarial training: Improved accuracy tradeoffs in neural nets. arXiv preprint arXiv:1910.08051, 2019.
|
| 282 |
+
Brendel, W., Rauber, J., and Bethge, M. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. arXiv preprint arXiv:1712.04248, 2017.
|
| 283 |
+
Carlini, N. and Wagner, D. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, pp. 39-57, 2017.
|
| 284 |
+
Chen, P.-Y., Zhang, H., Sharma, Y., Yi, J., and Hsieh, C.-J. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15-26, 2017.
|
| 285 |
+
Cheng, M., Le, T., Chen, P.-Y., Yi, J., Zhang, H., and Hsieh, C.-J. Query-efficient hard-label black-box attack: An optimization-based approach. arXiv preprint arXiv:1807.04457, 2018.
|
| 286 |
+
Cheng, M., Singh, S., Chen, P., Chen, P.-Y., Liu, S., and Hsieh, C.-J. Sign-opt: A query-efficient hard-label adversarial attack. In ICLR, 2020.
|
| 287 |
+
Cohen, J. M., Rosenfeld, E., and Kolter, J. Z. Certified adversarial robustness via randomized smoothing. International Conference on Machine Learning, 2019.
|
| 288 |
+
Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 248-255, 2009.
|
| 289 |
+
Ding, G. W., Sharma, Y., Lui, K. Y. C., and Huang, R. Max-margin adversarial (mma) training: Direct input space margin maximization through adversarial training. arXiv preprint arXiv:1812.02637, 2018.
|
| 290 |
+
|
| 291 |
+
Engstrom, L., Ilyas, A., and Athalye, A. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint arXiv:1807.10272, 2018.
|
| 292 |
+
Eykholt, K., Evtimov, I., Fernandes, E., Li, B., Rahmati, A., Xiao, C., Prakash, A., Kohno, T., and Song, D. Robust physical-world attacks on deep learning visual classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1625-1634, 2018.
|
| 293 |
+
Gao, R., Cai, T., Li, H., Hsieh, C.-J., Wang, L., and Lee, J. D. Convergence of adversarial training in overparametrized neural networks. In Advances in Neural Information Processing Systems, pp. 13009-13020, 2019.
|
| 294 |
+
Goibert, M. and Dohmatob, E. Adversarial robustness via adversarial label-smoothing. arXiv preprint arXiv:1906.11567, 2019.
|
| 295 |
+
Goodfellow, I. J., Shlens, J., and Szegedy, C. Explaining and harnessing adversarial examples. International Conference on Learning Representations, 2015.
|
| 296 |
+
Ilyas, A., Engstrom, L., Athalye, A., and Lin, J. Black-box adversarial attacks with limited queries and information. arXiv preprint arXiv:1804.08598, 2018.
|
| 297 |
+
Krizhevsky, A., Nair, V., and Hinton, G. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/~kriz/cifar.html.
|
| 298 |
+
Kurakin, A., Goodfellow, I., and Bengio, S. Adversarial machine learning at scale. International Conference on Learning Representations, 2017.
|
| 299 |
+
Liu, X., Cheng, M., Zhang, H., and Hsieh, C.-J. Towards robust neural networks via random self-ensemble. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 369-385, 2018.
|
| 300 |
+
Madry, A., Makelov, A., Schmidt, L., Tsipras, D., and Vladu, A. Towards deep learning models resistant to adversarial attacks. International Conference on Learning Representations, 2018.
|
| 301 |
+
Shafahi, A., Ghiasi, A., Huang, F., and Goldstein, T. Label smoothing and logit squeezing: A replacement for adversarial training? 2018.
|
| 302 |
+
Shafahi, A., Najibi, M., Ghiasi, A., Xu, Z., Dickerson, J., Studer, C., Davis, L. S., Taylor, G., and Goldstein, T. Adversarial training for free! Neural Information Processing Systems, 2019.
|
| 303 |
+
Simonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, 2015.
|
| 304 |
+
|
| 305 |
+
Su, D., Zhang, H., Chen, H., Yi, J., Chen, P.-Y., and Gao, Y. Is robustness the cost of accuracy? a comprehensive study on the robustness of 18 deep image classification models. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 631-648, 2018.
|
| 306 |
+
Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., and Fergus, R. Intriguing properties of neural networks. International Conference on Learning Representations, 2014.
|
| 307 |
+
Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826, 2016.
|
| 308 |
+
Thulasidasan, S., Chennupati, G., Bilmes, J., Bhattacharya, T., and Michalak, S. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. Neural Information Processing Systems, 2019.
|
| 309 |
+
Tsipras, D., Santurkar, S., Engstrom, L., Turner, A., and Madry, A. Robustness may be at odds with accuracy. In International Conference on Learning Representations, 2019.
|
| 310 |
+
Verma, V., Lamb, A., Beckham, C., Najafi, A., Mitliagkas, I., Courville, A., Lopez-Paz, D., and Bengio, Y. Manifold mixup: Better representations by interpolating hidden states. International Conference on Machine Learning, 2018.
|
| 311 |
+
Wang, J. Bilateral adversarial training: Towards fast training of more robust models against adversarial attacks. International Conference on Computer Vision, 2019.
|
| 312 |
+
Wang, Y., Ma, X., Bailey, J., Yi, J., Zhou, B., and Gu, Q. On the convergence and robustness of adversarial training. In International Conference on Machine Learning, pp. 6586-6595, 2019.
|
| 313 |
+
Wang, Zou, Y. B. M. G. Improving adversarial robustness requires revisiting misclassified examples. International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=rk10g6EFwS.
|
| 314 |
+
Wei, C. and Ma, T. Improved sample complexities for deep networks and robust classification via an all-layer margin. arXiv preprint arXiv:1910.04284, 2019.
|
| 315 |
+
Wong, E., Rice, L., and Kolter, J. Z. Fast is better than free: Revisiting adversarial training. arXiv preprint arXiv:2001.03994, 2020.
|
| 316 |
+
Yin, D., Ramchandran, K., and Bartlett, P. Rademacher complexity for adversarially robust generalization. arXiv preprint arXiv:1810.11914, 2018.
|
| 317 |
+
|
| 318 |
+
Zantedeschi, V., Nicolae, M.-I., and Rawat, A. Efficient defenses against adversarial attacks. In ACM Workshop on Artificial Intelligence and Security, pp. 39-49, 2017.
|
| 319 |
+
Zhang, D., Zhang, T., Lu, Y., Zhu, Z., and Dong, B. You only propagate once: Accelerating adversarial training via maximal principle. In Advances in Neural Information Processing Systems, pp. 227-238, 2019a.
|
| 320 |
+
Zhang, H., Cisse, M., Dauphin, Y. N., and Lopez-Paz, D. mixup: Beyond empirical risk minimization. International Conference on Learning Representations, 2018.
|
| 321 |
+
Zhang, H., Yu, Y., Jiao, J., Xing, E. P., Ghaoui, L. E., and Jordan, M. I. Theoretically principled trade-off between robustness and accuracy. International Conference on Machine Learning, 2019b.
|
| 322 |
+
|
| 323 |
+
# A. Omitted Proofs
|
| 324 |
+
|
| 325 |
+
In this section we provide the omitted proof for Theorem 3.2, which is adapted from Theorem 2.1 from (Wei & Ma, 2019). They defined the all layer margin for a $k$ -layer network $h_\theta(\boldsymbol{x}) = f_k \circ f_{k-1} \circ \dots \circ f_1(\boldsymbol{x})$ and perturbation $\delta = (\delta_1, \delta_2, \dots, \delta_k)$ as follows:
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
h _ {1} (\boldsymbol {x}, \delta) = f _ {1} (\boldsymbol {x}) + \delta_ {1} \| \boldsymbol {x} \| _ {2}
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
h _ {i} (\boldsymbol {x}, \delta) = f _ {i} \left(h _ {i - 1} (\boldsymbol {x}, \delta)\right) + \delta_ {i} \| h _ {i - 1} (\boldsymbol {x}, \delta) \| _ {2}
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
H _ {\theta} (\boldsymbol {x}, \delta) = h _ {k} (\boldsymbol {x}, \delta).
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
They define the all-layer margin as the minimum norm of $\delta = (\delta_{i})_{i=1}^{k}$ required that causes the classifier to make a false prediction.
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
m _ {F} (\boldsymbol {x}, y) := \min _ {\boldsymbol {\delta} ^ {i}, \boldsymbol {\delta} ^ {o}} \sqrt {\| \boldsymbol {\delta} ^ {i} \| ^ {2} + \| \boldsymbol {\delta} ^ {o} \| ^ {2}} \tag {8}
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
$$
|
| 346 |
+
\text {s u b j e c t} \max _ {y ^ {\prime}} H _ {\theta} (\boldsymbol {x}, \boldsymbol {\delta} ^ {i}, \boldsymbol {\delta} ^ {o}) _ {y ^ {\prime}} \neq y.
|
| 347 |
+
$$
|
| 348 |
+
|
| 349 |
+
They consider the function class $\mathcal{F} = \{f_k\circ f_{k - 1}\dots \circ f_1:f_i\in \mathcal{F}_i\}$ be the class of compositions of functions from function classes $\mathcal{F}_1,\dots \mathcal{F}_k$ . They achieve the generalization bound as follows:
|
| 350 |
+
|
| 351 |
+
Theorem A.1 (Theorem 2.1 from (Wei & Ma, 2019)) In the above setting, with probability $1 - \delta$ over the draw of the data, all classifiers $F \in \mathcal{F}$ which achieve training error 0 satisfy
|
| 352 |
+
|
| 353 |
+
$$
|
| 354 |
+
\mathbb {E} [ f _ {\theta} (\pmb {x}) = y ] \lesssim \frac {\sum_ {i} \mathcal {C} _ {i} \log^ {2} n}{\sqrt {n}} \sqrt {\frac {1}{n} \sum_ {i = 1} ^ {n} \frac {1}{m _ {F} (\pmb {x} _ {i} , y _ {i})}} + \zeta ,
|
| 355 |
+
$$
|
| 356 |
+
|
| 357 |
+
where $\zeta$ is of small order $O\left(\frac{1}{n}\log (1 / \delta)\right)$ .
|
| 358 |
+
|
| 359 |
+
For our problem, we define $h_\theta(\pmb{x}) \coloneqq f_2 \circ f_1(\pmb{x})$ , where $f_1$ is identity mapping, and $f_2$ is the original function $h_\theta$ . Therefore the all layer margin is reduced to our bilateral margin:
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\begin{array}{l} h _ {1} (\boldsymbol {x}, \boldsymbol {\delta} ^ {i}) = f _ {1} (\boldsymbol {x}) + \boldsymbol {\delta} ^ {i} \| \boldsymbol {x} \| _ {2} = \boldsymbol {x} + \boldsymbol {\delta} ^ {i} \| \boldsymbol {x} \| \\ H _ {\theta} (\boldsymbol {x}, \boldsymbol {\delta}) = h _ {2} (\boldsymbol {x}, \boldsymbol {\delta} ^ {i}, \boldsymbol {\delta} ^ {o}) = f _ {2} \left(h _ {1} (\boldsymbol {x}, \boldsymbol {\delta} ^ {i})\right) + \boldsymbol {\delta} ^ {o} \| h _ {1} (\boldsymbol {x}, \boldsymbol {\delta} ^ {i}) \| \\ = h _ {\theta} \left(\boldsymbol {x} + \delta^ {i} \| \boldsymbol {x} \|\right) + \delta^ {o} \| \boldsymbol {x} + \delta^ {i} \| \boldsymbol {x} \| \|. \\ \end{array}
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
Next, notice since $f_{1}$ is identity mapping, and composition with $h_{\theta}$ doesn't affect the overall complexity. We apply Theorem A.1 and get our result.
|
2002.06xxx/2002.06789/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d39324c22e68cc39958dbd0ba93121fd11f0b1712c6cd3e4052b651e824324c
|
| 3 |
+
size 523440
|
2002.06xxx/2002.06789/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06805/79bedf52-9295-4f4a-afaa-d678c0f969e8_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39731cc2b58a5ea1d94586762fc0d95a20aae686360c59d3508a84484be78848
|
| 3 |
+
size 503922
|
2002.06xxx/2002.06805/full.md
ADDED
|
@@ -0,0 +1,678 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Polarization-adjusted Convolutional (PAC) Codes: Sequential Decoding vs List Decoding
|
| 2 |
+
|
| 3 |
+
Mohammad Rowshan, Student Member, IEEE, Andreas Burg, Member, IEEE, Emanuele Viterbo, Fellow, IEEE
|
| 4 |
+
|
| 5 |
+
In the Shannon lecture at the 2019 International Symposium on Information Theory (ISIT), Arikan proposed to employ a one-to-one convolutional transform as a pre-coding step before the polar transform. The resulting codes of this concatenation are called polarization-adjusted convolutional (PAC) codes. In this scheme, a pair of polar mapper and demapper as pre- and post-processing devices are deployed around a memoryless channel, which provides polarized information to an outer decoder leading to improved error correction performance of the outer code. In this paper, the list decoding and sequential decoding (including Fano decoding and stack decoding) are first adapted for use to decode PAC codes. Then, to reduce the complexity of sequential decoding of PAC/polar codes, we propose (i) an adaptive heuristic metric, (ii) tree search constraints for backtracking to avoid exploration of unlikely sub-paths, and (iii) tree search strategies consistent with the pattern of error occurrence in polar codes. These contribute to the reduction of the average decoding time complexity from $50\%$ to $80\%$ , trading with 0.05 to $0.3\mathrm{dB}$ degradation in error correction performance within $\mathrm{FER} = 10^{-3}$ range, respectively, relative to not applying the corresponding search strategies. Additionally, as an important ingredient in Fano decoding of PAC/polar codes, an efficient computation method for the intermediate LLRs and partial sums is provided. This method is effective in backtracking and avoids storing the intermediate information or restarting the decoding process. Eventually, all three decoding algorithms are compared in terms of performance, complexity, and resource requirements.
|
| 6 |
+
|
| 7 |
+
Index Terms-Polarization-adjusted convolutional codes, polar codes, convolutional codes, list decoding, sequential decoding, Fano algorithm, tree search, path metric.
|
| 8 |
+
|
| 9 |
+
# I. INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Polar codes proposed by Arikan in [1] are the first class of channel codes with an explicit construction that was proven to achieve the symmetric (Shannon) capacity of a binary-input discrete memoryless channel (BI-DMC) using a low-complexity successive cancellation (SC) decoder (SCD).
|
| 12 |
+
|
| 13 |
+
Polar codes are founded on the polarization effect resulting from channel synthesizing in a particular fashion. The idea of building synthetic channels originated from the concatenated schemes [2] employed in the sequential decoding of convolutional codes by Massey [3] and Pinsker [4] in order to boost the cutoff rate. The cutoff rate is said to be "boosted" when the
|
| 14 |
+
|
| 15 |
+
M. Rowshan and E. Viterbo are with the Department of Electrical and Computer Systems Engineering (ECSE), Monash University, Melbourne, VIC3800, Australia. E-mail: mrowshan@connect.ust.hk, emanuele.viterbo@monash.edu. These authors' work was supported by the Australian Research Council under Discovery Project ARC DP160100528. Andreas Burg is with the Telecommunications Circuits Laboratory (TCL), Swiss Federal Institute of Technology (EPFL), Lausanne 1015, Switzerland E-mail: andreas.burg@epfl.ch.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Code Concatenation
|
| 19 |
+
|
| 20 |
+
sum of the cutoff rates of the synthesized channels is greater than the sum of the cutoff rates of the raw channels. The key idea in boosting the cutoff rate is to build a vector channel where the independent copies of raw channels are transformed into multiple correlated channels. In Pinsker's scheme, the inner block code (with length $N$ ) is suggested to be chosen at random. This requires maximum likelihood (ML) decoding with prohibitive complexity. Polar codes allow using a more practical decoder with the complexity of $O(N \log N)$ . Unlike Pinsker's scheme, where the outer convolutional transforms are identical, in multi-level coding and multi-stage decoding (MLC/MSD), originally proposed in [5] as an efficient coded-modulation technique, $N$ convolutional codes at different rates $\{R_i\}$ are used which consequently require a chain of $N$ outer convolutional decoders.
|
| 21 |
+
|
| 22 |
+
On the other hand, polar coding was originally designed as a low-complexity recursive channel combining and splitting operation, where the polarization effect constrains the rates $R_{i}$ to either 0 or 1. They turned out to be so effective that no outer code was employed to achieve the original aim of boosting the cutoff rate to channel capacity.
|
| 23 |
+
|
| 24 |
+
Nevertheless, the error correction performance of finite-length polar codes under successive cancellation (SC) decoding is not competitive, due to the existence of partially polarized channels. To address this issue, the SC list (SCL) decoding (SCLD) was proposed in [6]. This yields an error correction performance comparable to maximum-likelihood (ML) decoding. Also, it was observed that further improvement could be obtained by concatenating cyclic redundancy check (CRC) bits to polar codes.
|
| 25 |
+
|
| 26 |
+
Recently in [7], ARIAN proposed a concatenation of a convolutional transform with the polarization transform [1], inspired by the aforementioned schemes in which the message is first encoded using a convolutional transform and then transmitted over polarized synthetic channels as shown in Fig. 1. These codes are called "polarization-adjusted convolutional
|
| 27 |
+
|
| 28 |
+
(PAC) codes". The results show that the block error rate performance of this scheme can reach the finite-length capacity bound [8] a.k.a. dispersion bound.
|
| 29 |
+
|
| 30 |
+
Fano decoding is an efficient algorithm in terms of required hardware resources such as memory and computation resources, and it has shown a promising error correction performance. Nevertheless, Fano decoding has a high average time complexity. The motivation of this work is to reduce the time and computational complexity at the cost of a small degradation in the practical range of frame error rate (FER), i.e. $10^{-2}$ to $10^{-4}$ . Hence, this paper is concerned with the efficient implementation of Fano decoder as well as stack and list decoders for PAC codes, and compares the numerical results with classical polar codes in terms of error correction performance and complexity. The contributions of this work are given below.
|
| 31 |
+
|
| 32 |
+
- The Fano decoding algorithm requires backtracking during the binary tree search. Hence, intermediate log-likelihood ratios (LLRs) and partial sums need to be updated. This update should be performed without restarting the decoding operation or storing more than $2N - 1$ intermediate LLRs and partial sums as in conventional SC decoding [18]. In this work, partial rewinding of the SC algorithm is proposed as an efficient approach to compute the intermediate LLRs and partial sums.
|
| 33 |
+
- The Fano metric is modified in order to improve the comparability of (unexplored) paths with different lengths with the current path. Furthermore, to reduce the number of visited nodes, an adaptive bias is proposed to adjust the bias-term in the metric relative to the impact of the channel noise on the metric.
|
| 34 |
+
- A tree search strategy is proposed in which the number of diverging paths from the current best path is limited. This is equivalent to constraining the search to the paths in which there are a limited number of flipped bits. Further, this strategy is applied only to the set of bit indices called critical set where over $99\%$ of the errors occur. This set can reduce the time complexity by visiting fewer nodes at the cost of negligible error-rate degradation.
|
| 35 |
+
- A combination of top-down search and bottom-up search strategies for the tree search are proposed to adapt the Fano algorithm to the pattern of error occurrence in polar codes, resulting in the faster finding of the correct path.
|
| 36 |
+
- Performance and complexity comparisons of Fano decoding with stack decoding and list decoding for polar codes and PAC codes, with and without CRC concatenation, for different block-lengths and rate-profiles, are provided by means of simulation.
|
| 37 |
+
|
| 38 |
+
Paper Outline: Section II introduces the notations for polar codes and convolutional codes and describes their decoding algorithms. Section III illustrates polarization-adjusted convolutional transform, and describes the decoding algorithms. In Section IV, first, an efficient method for calculating the intermediate LLRs and partial sums required through backtracking in Fano decoding is proposed. Then, a heuristic path metric for Fano decoding is introduced. In Section V, strategies are described to improve Fano decoding including adaptive
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 2: Successive cancellation factor graph for $N = 4$ path metric, tree search strategies and search constraints. In Section VI, the distance properties of PAC codes and polar codes are compared and the implementation results are shown. Finally Section VII provides some concluding remarks.
|
| 42 |
+
|
| 43 |
+
# II. PRELIMINARIES
|
| 44 |
+
|
| 45 |
+
Polarization-adjusted convolutional codes are convolutional pre-transformed polar codes. The pre-transformation (a.k.a pre-coding) is performed by a rate-1 convolutional encoding as shown in Fig. 1. Hence, in the following sections, we first review polar codes and convolutional codes as standalone codes, then we focus on PAC codes.
|
| 46 |
+
|
| 47 |
+
# A. Polar Codes and List Decoding
|
| 48 |
+
|
| 49 |
+
A polar code of length $N = 2^n$ with $K$ information bits is denoted by $P(N, K, \mathcal{A})$ , where $\mathcal{A}$ is the data index set. The information bits $d$ of length $K$ is embedded in the vector $u$ such that $u_{\mathcal{A}} = d$ , and $u_{\mathcal{A}^c} = 0$ which are called frozen bits. The set $\mathcal{A}$ constitutes of indices of reliable sub-channels of the polarized vector channel.
|
| 50 |
+
|
| 51 |
+
A polar code is encoded as $\mathbf{x} = \mathbf{u}\mathbf{P}_n$ , where $\mathbf{P}_n = \mathbf{P}^{\otimes n}$ is the polar transform defined as the $n$ -th Kronecker power of $\mathbf{P} \triangleq \begin{bmatrix} 1 & 0 \\ 1 & 1 \end{bmatrix}$ . Let $\mathbf{y} = (y_0, y_1, \dots, y_{N-1})$ denote the output vector of a noisy channel.
|
| 52 |
+
|
| 53 |
+
The standard decoding method for polar codes is successive cancellation (SC) decoding in which the non-frozen bits are estimated successively based on their evolved log-likelihood ratio (LLR), denoted by $\lambda_s^i$ , where $s$ is the stage of the factor graph in Fig. 2. However, successive hard decisions make the SC solution sub-optimal. When decoding the $i$ -th bit, if $i \notin \mathcal{A}$ , $\hat{u}_i = 0$ , as $u_i$ is a frozen bit. Otherwise, the bit $u_i$ is decided by a local maximum likelihood (ML) rule $h(\lambda_0^i)$ in (1), which depends on the estimation of previous bits, i.e., $\hat{u}_{0,i-1} = \hat{u}_0, \dots, \hat{u}_{i-1}$
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\hat {u} _ {i} = h \left(\lambda_ {0} ^ {i}\right) = \left\{ \begin{array}{l l} 0 & \lambda_ {0} ^ {i} = \ln \frac {P \left(Y , \hat {u} _ {0 , i - 1} \mid \hat {u} _ {i} = 0\right)}{P \left(Y , \hat {u} _ {0 , i - 1} \mid \hat {u} _ {i} = 1\right)} > 0 \\ 1 & \text {o t h e r w i s e} \end{array} \right. \tag {1}
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
To resolve the problem of potentially erroneous decisions in the SC decoding, we can introduce the notion of a binary decision tree. In this tree, each branch on level $i$ corresponds to a decision for $u_{i} = 1$ or $u_{i} = 0$ and a path from the root to a leaf corresponds to a decoded codeword. SC decoding explores
|
| 60 |
+
|
| 61 |
+
only a single path of this tree. Let us denote the $SC$ path as the path in the tree obtained by following the branches with the larger likelihood (these branches are called good branches and the alternative ones are called bad branches throughout this paper) in each decoding step. A decoding step is defined as the process required to decode a bit. By exploring multiple or even all paths, erroneous preliminary decisions can be corrected to potentially reach ML performance.
|
| 62 |
+
|
| 63 |
+
Since exhaustive exploration of the tree is prohibitively complex, SC list (SCL) decoding [6] performs a constrained breadth-first search (proceeding from the root to the leaves) which tracks only up to $L$ parallel paths, that are deemed to be the most reliable ones based on the local decisions.
|
| 64 |
+
|
| 65 |
+
Let $\hat{u}_i[l]$ denote the estimate of $u_{i}$ in the $l$ -th path, where $l\in \{1,2,\dots ,L\}$ . In [9], unlike [6], a path metric $(PM)$ based on LLRs magnitudes is used to measure the reliability of each path to make local decisions about which path to keep and which one to drop. The $PM$ at $\hat{u}_i[l]$ is approximated by
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
P M _ {l} ^ {(i)} = \left\{ \begin{array}{l l} P M _ {l} ^ {(i - 1)} + \left| \lambda_ {0} ^ {i} [ l ] \right| & \text {i f} \hat {u} _ {i} [ l ] \neq h \left(\lambda_ {0} ^ {i} [ l ]\right) \\ P M _ {l} ^ {(i - 1)} & \text {o t h e r w i s e} \end{array} \right. \tag {2}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $PM_{l}^{(-1)} = 0$
|
| 72 |
+
|
| 73 |
+
As (2) shows, the path corresponding to the less likely bit value is penalized by $|\lambda_0^i|$ of that bit. The $L$ paths with the smallest path metrics are chosen from $2L$ paths at each step (level of the tree) and are stored in ascending order from $PM_{1}^{(i)}$ to $PM_{L}^{(i)}$ . At $N$ -th step, the path with the smallest path metric $PM_{1}^{(N)}$ is selected as the estimated codeword.
|
| 74 |
+
|
| 75 |
+
Additionally, to compensate for the known poor distance properties of polar codes, an $r$ -bit CRC is often appended to the message as an outer code to assist the decoder in error detection and finding the correct path among the $L$ paths in the list. However, this concatenation increases the polar code rate to $(K + r) / N$ causing a small performance degradation in the low SNR regime.
|
| 76 |
+
|
| 77 |
+
# B. Convolutional Codes and Fano Decoding
|
| 78 |
+
|
| 79 |
+
Convolutional codes (CCs) are a class of linear codes described by a tuple $(n_0, k, m)$ , where $k$ is the number of information bits shifted into the encoder at each time slot (usually $k = 1$ ), $n_0$ is the number of corresponding outputted coded bits, and $m$ is the number of previous input bits stored in a shift-register (a.k.a. memory size) [20]. Unlike the 1-to-1 convolutional transform in PAC codes where $n_0 = k = 1$ as illustrated in Section III-A, the code rate of convolutional codes is given by $k / n_0$ . The value $m + 1$ , named constraint length, determines the number of previous input bits plus the current bit that influence each coded bit. A larger constraint length generally provides greater resilience to bit errors.
|
| 80 |
+
|
| 81 |
+
The relation between the input bits $d_{i - m,i}$ and one of the $n_0$ output bits $x_{i}$ , at time-step $i$ , is obtained as a binary convolution $x_{i} = \sum_{j = 0}^{m}g_{j}d_{i - j}$ , where $g_{i}\in \{0,1\}$ . By representing bit sequences as polynomials in the delay variable $D$ representing a time-step in the encoder, an output sequence $x(D)$ is obtained as $g(D)d(D)$ , where $g(D) = \sum_{j = 0}^{m}g_{j}D^{j}$ is the generator polynomial. Different generator polynomials
|
| 82 |
+
|
| 83 |
+
are used for $n_0$ outputs, only one polynomial is employed in the pre-transformation of PAC codes.
|
| 84 |
+
|
| 85 |
+
Convolutional codes are decoded using the trellis-based Viterbi algorithm and the tree search sequential decoding algorithms. The Viterbi algorithm is a maximum likelihood decoding method that examines the entire state space of the encoder at each step. We have studied Viterbi decoding of PAC codes in [32].
|
| 86 |
+
|
| 87 |
+
On the other hand, the complexity of the sequential decoding is essentially independent of the memory of the encoder, since only one encoder state is examined at each step. The fundamental idea behind sequential decoding is to explore only the most promising path(s). If a path to a node looks "bad" we can discard all the paths through this node without a significant loss in the error correction performance compared to that of a maximum likelihood decoder [20].
|
| 88 |
+
|
| 89 |
+
In this work, we focus on Fano decoding which is a memory-efficient type of Sequential decoding algorithm. The Fano algorithm is a depth-first tree search, in which the decoder moves from a node either back to its parent node or to one of its children. The Fano decoder can visit a node only if its Fano path metric $\mu_F$ is larger than or equal to a certain value called threshold $T$ . Threshold takes only discrete values $0, \pm \Delta, \pm 2\Delta, \ldots$ .
|
| 90 |
+
|
| 91 |
+
Comparing the above described Fano decoding to the SC and SC list decoding described in Section II-A, it is instructive to note two important differences: The SC decoding makes decisions to choose the node to visit at each step based on the branch metric. Thus, only one path is explored and the rest are discarded. However, SC list decoding explores multiple paths, but in contrast to Fano decoding, all of them have the same length. Thus, no backtracking is performed neither in SC nor in SC list decoding. Hence, only the path metric used to measure the likelihood of the paths in the sequential decoding must consider the difference in the lengths of partial paths by adding a bias, while in the SC and SC list decoding, the bias term is not required. A simpler sequential decoding algorithm is the stack decoding [20] where the algorithm keeps a stack of size/depth $D$ of partial paths sorted with respect to the path metric. The algorithm extends the path with the best metric at the top of the stack. The stack decoding is a memory intensive algorithm with a variable time complexity that instead of backtracking as in the Fano decoding, it selects to extend the best partial path in the stack at each time step.
|
| 92 |
+
|
| 93 |
+
The metric used in the sequential decoding of convolutional codes is a probabilistic path metric. We consider the set $\mathcal{X} = \{\mathbf{a}^{(1)},\mathbf{a}^{(2)},\dots,\mathbf{a}^{(M)}\}$ of $M$ partial sequences, representing partially explored paths with different lengths, to be compared. Let $n_{max} = \max \{n_1,n_2,\dots,n_M\}$ denote the length of the longest sequence, and $\tilde{\mathbf{r}}$ the partial received sequence of length $n_{max}$ symbols where each encoded symbol takes $n$ bits corresponding to $k$ information/uncoded bits, $R = k / n$ . Hence, the sequences $\tilde{\mathbf{r}}$ and $\mathbf{a}^{(\ell)}$ are
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\tilde {\mathbf {r}} = \left(\mathbf {r} _ {0} \mathbf {r} _ {1} \dots \mathbf {r} _ {n _ {m a x} - 1}\right) = \left(r _ {0} \dots r _ {n - 1} \dots r _ {n n _ {m a x} - 1}\right)
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\mathbf {a} ^ {(\ell)} = \left(\mathbf {a} _ {0} ^ {(\ell)} \mathbf {a} _ {1} ^ {(\ell)} \dots \mathbf {a} _ {n _ {\ell} - 1} ^ {(\ell)}\right) = \left(a _ {0} ^ {(\ell)} \dots a _ {n - 1} ^ {(\ell)} \dots a _ {n n _ {\ell} - 1} ^ {(\ell)}\right)
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
Among the sequences in $\mathcal{X}$ , we choose the partial sequence $\mathbf{a}^{(\ell)}$ that maximizes the a-posterior probability $P(\mathbf{a}^{(\ell)}|\tilde{\mathbf{r}})$ . According to Bayes' rule
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
P \left(\mathbf {a} ^ {(\ell)} \mid \tilde {\mathbf {r}}\right) = \frac {P \left(\mathbf {a} ^ {(\ell)}\right) P \left(\tilde {\mathbf {r}} \mid \mathbf {a} ^ {(\ell)}\right)}{P (\tilde {\mathbf {r}})} \tag {3}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
Assuming the channels are memoryless, since the length of the sequence $\mathbf{a}^{(\ell)}$ is $n_{\ell} \leq n_{max}$ , and there is no associated symbols in this sequence for $r_{n_{\ell}}, \ldots, r_{n_{max}-1}$ , then we have
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
P \left(\tilde {\mathbf {r}} \mid \mathbf {a} ^ {(\ell)}\right) = \prod_ {j = 0} ^ {n _ {\ell} - 1} P \left(\mathbf {r} _ {j} \mid \mathbf {a} _ {j} ^ {(\ell)}\right) \prod_ {j = n _ {\ell}} ^ {n _ {\max } - 1} P \left(\mathbf {r} _ {j}\right) \tag {4}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
Also, we can rewrite the denominator of (3) as
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
P (\tilde {\mathbf {r}}) = \prod_ {j = 0} ^ {n _ {\ell} - 1} P \left(\mathbf {r} _ {j}\right) \prod_ {j = n _ {\ell}} ^ {n _ {\max } - 1} P \left(\mathbf {r} _ {j}\right) \tag {5}
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
Now, by substituting (4) and (5) in (3) and cancelling the common term $\prod_{j=n_\ell}^{n_{\text{max}}-1} P(\mathbf{r}_j)$ , we have
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
P \left(\mathbf {a} ^ {\ell} \mid \tilde {\mathbf {r}}\right) = P \left(\mathbf {a} ^ {\ell}\right) \prod_ {i = 0} ^ {n n _ {\ell} - 1} \frac {P \left(r _ {i} \mid a _ {i} ^ {(\ell)}\right)}{P \left(r _ {i}\right)} \tag {6}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
Suppose each encoded bit occurs with equal probability, then each sequence $\mathbf{a}^{(\ell)}$ occurs with probability $P(\mathbf{a}^{(\ell)}) = (2^{-k})^{n_{\ell}} = (2^{-nR})^{n_{\ell}} = (2^{-R})^{nn_{\ell}}$ . Thus, by taking the base-2 logarithm of (7), we have
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\log P \left(\mathbf {a} ^ {(\ell)} \mid \tilde {\mathbf {r}}\right) = \sum_ {i = 0} ^ {n n _ {\ell} - 1} \left(\underbrace {\log P \left(r _ {i} \mid a _ {i} ^ {(\ell)}\right)} _ {\text {M L - m e t r i c}} \underbrace {- \log P \left(r _ {i}\right) - R} _ {\text {p a t h - l e n g t h b i a s}}\right). \tag {7}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
In order to adapt (7) for sequential (stack or Fano) decoding of polar/PAC codes, the path metric of list decoding can be used as the ML-metric term. Note that $n$ in (7) is 1 for PAC codes as the convolutional transform is 1-to-1 resulting in $R = 1$ . The simplest path-length bias in (7) could be a fixed bias parameter as suggested in [21]. A different bias function based on the cumulative density function (CDF) of the evolving LLRs was proposed in [22]. Further, [23] suggested to replace the path-length bias term with $\log(1 - p_{e,i})$ , where $p_{e,i}$ is the error probability of $i$ -th bit-channel.
|
| 134 |
+
|
| 135 |
+
Alternatively, in the computer science literature, the path metric of algorithm A, a graph traversal and path search algorithm, is written in the general form of [24]
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
f \left(\mathbf {a} ^ {(\ell)}\right) = g \left(\mathbf {a} ^ {(\ell)}\right) + h \left(\mathbf {a} ^ {(\ell)}\right) \tag {8}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
where the first term measures the actual cost of the $i$ -th partial path as follows,
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
g \left(\mathbf {a} ^ {(\ell)}\right) = \sum_ {j = 0} ^ {n _ {\ell} - 1} \log P \left(\mathbf {r} _ {j} \mid \mathbf {a} _ {j} ^ {(\ell)}\right) \tag {9}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
and the second term is a heuristic estimate for the remaining cost of completing the path to its leaf with the best metric by following the corresponding (yet unknown) extension of $\mathbf{a}^{(\ell)}$ . The choice of the heuristic function $h(\mathbf{a}^{(\ell)})$ , determines the tradeoff between the complexity and the risk of accidentally abandoning a path that leads to the desired optimal solution.
|
| 148 |
+
|
| 149 |
+
We propose a heuristic to estimate $h(\mathbf{a}^{(\ell)})$ for Fano decoding of polar codes and PAC codes in Section IV-B.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 3: PAC coding scheme
|
| 153 |
+
|
| 154 |
+
# III. POLARIZATION-ADJUSTED CODES
|
| 155 |
+
|
| 156 |
+
Polarization-adjusted convolutional codes, denoted by $PAC(N,K,\mathcal{B},\mathbf{g})$ , are based on the outer convolutional transform and inner polar transform. One may consider PAC coding as a polar coding scheme in which the inputs to the frozen bit-channels are linear combinations of previous bits obtained by convolutional transforms. Thus, given that the previous bits have been estimated correctly, the decoder can still determine the value transmitted by the corresponding "bad channels". In the following Sections, the encoding and decoding of PAC codes are described in detail.
|
| 157 |
+
|
| 158 |
+
# A. PAC Encoding
|
| 159 |
+
|
| 160 |
+
The information bits $\mathbf{d} = (d_0, d_1, \dots, d_{K-1})$ are first mapped to a vector $\mathbf{v} = (v_0, v_1, \dots, v_{N-1})$ using a rate-profile. The rate-profile (a.k.a. code construction) is formed based on the index set $\mathcal{B}$ such that $u_{\mathcal{B}} = d$ , and $u_{\mathcal{B}^c} = 0$ . Note that the constraint $v_{\mathcal{B}^c} = 0$ simply leads to an irregular tree code.
|
| 161 |
+
|
| 162 |
+
After rate-profiling, the vector $\mathbf{v}$ is transformed using a convolutional generator polynomial $\mathbf{g} = [g_0,\dots,g_m]$ to $u_{i} = \sum_{j = 0}^{m}g_{j}v_{i - j}$ , where $g_{i}\in \{0,1\}$ as discussed in Section II-B (see subroutine convTransform in Algorithm 1). Equivalently, the convolutional transform (CT) can be represented in matrix form where the rows of an upper-triangular generator matrix $G$ are formed by shifting the vector $\mathbf{g} = [g_0,\dots g_m]$ . The number of rows equals the block-length. Given the generator matrix $\mathbf{G}$ , we can encode the message block $\mathbf{v}$ as $\mathbf{u} = \mathbf{vG}$ . As a result of this pre-transformation, $u_{i}$ for $i\in \mathcal{B}^c$ are no longer fixed or known a priori (as 0's in $\mathbf{u}$ ) - unlike in conventional. In fact, these formerly frozen bits are acting as parity check (PC) bits [10] or dynamic frozen bits [22].
|
| 163 |
+
|
| 164 |
+
Then, as Fig. 3 shows, vector $\mathbf{u}$ is mapped to $\mathbf{x}$ by employing the conventional polar transform $\mathbf{P}_n$ defined in Section II-A. Hence, the $N$ -bit rate-profiled data (or block-length) should be a power of 2, i.e., $N = 2^n$ . In summary, the polar transformation is performed by $\mathbf{x} = \mathbf{u}\mathbf{P}_n$ . Algorithm 1 summarizes the encoding process. In this algorithm, cState and currState represent the current state of the $m$ -bit memory.
|
| 165 |
+
|
| 166 |
+
# B. PAC List Decoding
|
| 167 |
+
|
| 168 |
+
PAC codes as (irregular) tree codes can be decoded using the tree search algorithms discussed in Section II. In this section, we consider the list decoding for PAC codes which trades a fixed time complexity for a large memory requirement
|
| 169 |
+
|
| 170 |
+
Algorithm 1: PAC Encoding
|
| 171 |
+
input: profiled information bits v, g
|
| 172 |
+
output: the codeword x
|
| 173 |
+
1 u $\leftarrow$ convTrans(v, g)
|
| 174 |
+
2 x $\leftarrow$ polarTrans(u) // Like polar encoder
|
| 175 |
+
3 return x;
|
| 176 |
+
4 subroutine convTrans(v, g):
|
| 177 |
+
5 cState[1,...,|g|-1] $\leftarrow$ [0,...,0] // currState
|
| 178 |
+
6 for i $\leftarrow$ 0 to |v|-1 do
|
| 179 |
+
7 (ui, cState) $\leftarrow$ conv1bTrans(vi, cState, g)
|
| 180 |
+
8 return u;
|
| 181 |
+
9 subroutine conv1bTrans(v, currState, g):
|
| 182 |
+
10 u $\leftarrow$ v $\cdot$ g0
|
| 183 |
+
11 for j $\leftarrow$ 1 to |g| do
|
| 184 |
+
12 if $g_{j} = 1$ then
|
| 185 |
+
13 |u $\leftarrow$ u $\oplus$ currState[j-1]
|
| 186 |
+
14 nextState $\leftarrow$ [vi] + currState[1,...,|g|-2]
|
| 187 |
+
15 return (u, nextState);
|
| 188 |
+
|
| 189 |
+
(to store a list of paths) and is easier to implement. Then, in the next section and the rest of the paper, we focus on Fano decoding which has a variable time complexity, but is much more memory-efficient. Note that the list decoding in the context of convolutional codes is called $M$ -algorithm [13]. In the context of PAC codes, some results using list decoding were first presented by Huawei in ITW 2019 [26]. Later, we implemented list decoding for PAC codes in [14] independently of [15].
|
| 190 |
+
|
| 191 |
+
Algorithm 2 illustrates the list decoding approach. In the beginning, there is a single path in the list. When the index of the current bit is in the set $\mathcal{B}^c$ , the decoder knows its value, usually $v_{i} = 0$ and therefore it is encoded into $u_{i}$ based on the current memory state currState and the generator polynomial g in line 7. Note that the subroutine conv1bTrans is identical with the one in Algorithm 1. Then, using the decision LLR $\lambda_0^i$ obtained in line 5, the corresponding path metric is calculated using subroutine calcPM. Eventually, the decoded value $u_{i}$ is fed back into SC process in line 9 to calculate partial sums. On the other hand, if the index of the current bit is in the set $\mathcal{B}$ (see lines 19-26), there are two options for the value of $v_{i}$ , 0 and 1, to be considered in line 24. For each option of 0 and 1, the aforementioned process for $i \in \mathcal{B}^c$ including convolutional encoding, and calculating path metric is performed and then the two encoded values $u_{i} = 0$ and 1 are fed back into SC process. The subroutines updateLLRs, updatePartialSums, and prunePaths in Algorithm 4 are identical to the ones used in Sc decoding and SCL decoding of polar codes. Note that the vectors $\lambda$ and $\beta$ as shown in Fig. 2 are the LLRs and partial sums, respectively.
|
| 192 |
+
|
| 193 |
+
One can notice that the process of list decoding for PAC codes is similar to that for polar codes except for the additional convolutional re-encoding at each decoding step for which the next memory state is stored for each path. For medium and long block-lengths, we can also append CRC-bits or parity check (PC) bits to the information bits to help in detecting
|
| 194 |
+
|
| 195 |
+
Algorithm 2: List Decoding of PAC codes
|
| 196 |
+
input: channel LLRs $\lambda_{n}^{0,N - 1}$ $\mathcal{B},L,\mathbf{g}$ output: recovered message bits $\hat{\mathbf{d}}$
|
| 197 |
+
1 $\mathcal{L}\gets \{1\}$ // a single path in the list
|
| 198 |
+
2 $[\lambda ,\beta ]\gets [\lambda_n^{0,N - 1} + \{0\} ,\{0\} ]$
|
| 199 |
+
3 for $i\gets 0$ to $N - 1$ do
|
| 200 |
+
4 if $i\notin \mathcal{B}$ then for $l\gets 1$ to $|\mathcal{L}|$ do $\begin{array}{r}\lambda_0^i [l]\gets \mathrm{updateLLRs}(l,i,\lambda [l],\beta [l])\\ \hat{v}_i[l]\gets 0\\ [\hat{u}_i[l],\mathrm{cState}[l]]\gets \mathrm{conv1bTrans}(v_i,\mathrm{cState}[l],\mathbf{g})\\ PM_l^{(i)}\gets \mathrm{calcPM}(PM_l^{(i - 1)},\lambda_0^i [l],\hat{u}_i[l])\\ \beta [l]\gets \mathrm{updatePartialSums}(\hat{u}_i[l],\beta [l])\\ \end{array}$
|
| 201 |
+
5 else for $l\gets 1$ to $|\mathcal{L}|$ do L $\leftarrow$ duplicatePath(L,l,i,g) if $|\mathcal{L}| > L$ then
|
| 202 |
+
15 | $\mathcal{L}\gets$ prunePaths(L) // like SCLD
|
| 203 |
+
6 d $\leftarrow$ extractData(v1N[0])
|
| 204 |
+
7 return d;
|
| 205 |
+
subroutine duplicatePath (L, l, i, g):
|
| 206 |
+
9 $\mathcal{L}\gets \mathcal{L}\cup \{l'\} \quad /$ path $l^{\prime}$ is a copy of path $l$
|
| 207 |
+
20 $\lambda_0^i [l]\gets$ updateLLRs(l,i, $\lambda [l],\beta [l])$
|
| 208 |
+
21 $(\hat{v}_i[l],\hat{v}_i[l'])\gets (0,1)$
|
| 209 |
+
22 $[\hat{u}_i[l],\mathrm{cState}[l]]\gets \mathrm{conv1bTrans}(\hat{v}_i[l],\mathrm{cState}[l],\mathbf{g})$
|
| 210 |
+
23 $[\hat{u}_i[l'],\mathrm{cState}[l'])\gets \mathrm{conv1bTrans}(\hat{v}_i[l'],\mathrm{cState}[l],$ g)
|
| 211 |
+
24 $PM_l^{(i)}\gets \mathrm{calcPM}(PM_l^{(i - 1)},\lambda_0^i [l],\hat{u}_i[l])$
|
| 212 |
+
25 $PM_{l'}^{(i)}\gets \mathrm{calcPM}(PM_l^{(i - 1)},\lambda_0^i [l],\hat{u}_i[l'])$
|
| 213 |
+
26 $\beta [l]\gets$ updatePartialSums(u[i]l], $\beta [l])$
|
| 214 |
+
27 $\beta [l']\gets$ updatePartialSums(u[i]l'], $\beta [l])$
|
| 215 |
+
28 return L;
|
| 216 |
+
29 subroutine calcPM(PM, $\lambda_0,\hat{u})$ ..
|
| 217 |
+
30 if $\hat{u} = \frac{1}{2} (1 - \operatorname {sgn}(\lambda_0))$ then
|
| 218 |
+
31 $PM = PM$
|
| 219 |
+
32 else
|
| 220 |
+
33 $\begin{array}{rl}{|PM=PM+|\lambda_0|}&{}\\ {\mathrm{return}PM;}&{}\end{array}$
|
| 221 |
+
|
| 222 |
+
the correct path. To reduce the computational complexity and performance of list decoding, the methods proposed in the literature such as in [16], [17] can be applied to PAC list decoding as well.
|
| 223 |
+
|
| 224 |
+
List decoding, with its non-backtracking tree search approach, requires very large list sizes (typically $L = 256$ or more) to reach the dispersion bound [8], as it will be shown in Section VI. More memory-efficient backtracking search algorithms such as the Fano algorithm can approach the dispersion bound at the cost of a higher average time complexity at low SNR regimes.
|
| 225 |
+
|
| 226 |
+
# IV. FANO DECODING OF PAC CODES
|
| 227 |
+
|
| 228 |
+
In this section, we first briefly explain the fundamentals of the Fano algorithm detailed in Algorithm 4 followed by the details of the proposed algorithm for updating the intermediate information required in the SC decoding process in the backtracking (Section IV-A) and our novel path metric (Section IV-B). Then, we present several improvements to the Fano algorithm in order to reduce the time complexity in the following Section V.
|
| 229 |
+
|
| 230 |
+
In the Fano algorithm, the decoder starts with the origin node $(i = 0)$ and examines a sequence of adjacent nodes. At any step corresponding to the non-frozen bits in vector $\mathbf{v}$ , it either moves forward to one of the successor nodes or moves backward to the non-frozen predecessor of the current node. The branch metric $m_{i}$ is correspondingly added to the current path metric $\mu_{i-1}$ during forward movement (in lines 9 & 16-17 of Algorithm 4) or restored from memory during the backward movement. The algorithm stops when it reaches a terminal node $(i = N)$ . The search through the code tree is guided by a threshold $T$ on the path metric (with initial value of $T = 0$ ). If the metric becomes less than the threshold as the algorithm follows the current path (line 42 of Algorithm 4), the search is backed up and another path is followed (Algorithm 6 is called in line 58 of Algorithm 4). If no paths can be found with a metric above the threshold, the threshold value is lowered (in line 26 of Algorithm 4) and the process is continued. A node in the tree may be visited more than once in the forward direction but a lower threshold each time. The algorithm eventually reaches a terminal node and stops. For more details on the Fano algorithm, see [20].
|
| 231 |
+
|
| 232 |
+
Note that (i) the Fano algorithm proposed here stores the path metric of good branch (the one with larger metric) and bad branch (the one with smaller metric) as well as memory states along the current path, (ii) the subroutines updateLLRs and updatePartialSums in Algorithm 4 and the rest of the paper are identical to the ones used in SC decoding of polar codes, (iii) Algorithm 6 is called in line 44 to find a bit index that satisfies the threshold in order to move back, and (iv) toDiverge indicates that the branch with smaller metric should be chosen at information bit $j$ and this choice is flagged in the $j$ -element of vector $\delta$ . The rest of the Algorithm 4 and other algorithms are explained and referred to in the rest of the paper.
|
| 233 |
+
|
| 234 |
+
# A. Partial Rewind of SC Algorithm
|
| 235 |
+
|
| 236 |
+
The Fano algorithm performs forward and backward traversals in the decoding tree: while in the forward traversal, the calculation of the required intermediate LLRs and partial sums is straightforward and linear, a more sophisticated approach is required for the backward traversal or partial rewind of SC algorithm. Suppose that we want to move back from the $i_{\text{curr}}$ -th bit to the $i_{\text{start}}$ -th bit: First, we need to re-calculate $\lambda_0^{i_{\text{start}}}$ and a number of intermediate LLRs. Since these LLRs are updated in-place when computing the metrics in natural order, they may no longer be available. As explained in [18], efficient decoders store at most $N - 1$ intermediate/decision LLRs for decoding bits 0 to $N - 1$ , of which $N / 2^{n - s}$ are associated to stage $s$ ( $0 \leq s \leq n - 1$ ) of the LLR calculation
|
| 237 |
+
|
| 238 |
+
algorithm. The number of intermediate LLRs to be updated varies between one, when moving from a bit with odd index $i_{curr}$ to $i_{curr} - 1$ , and in extreme cases $N - 1$ , when moving from $i_{curr} \geq N / 2$ to $i_{start} < N / 2$ .
|
| 239 |
+
|
| 240 |
+
In general, up to $\log_2N$ stages should be activated to calculate the decision LLR at bit $i_{start}$ , $\lambda_0^{i_{start}}$ . The first stage to be activated (from right to left in Fig. 2) is determined by find first set (ffs) operation, here, set means 1, on the binary representation of bit index $x$ , i.e., $\mathrm{bin}(x) = x_{n - 1} \dots x_1 x_0$ . The modified version of ffs [18] is defined below. Note that we assume the decoding is performed in natural order.
|
| 241 |
+
|
| 242 |
+
$$
|
| 243 |
+
\operatorname {f f s} ^ {*} \left(x _ {n - 1} \dots x _ {1} x _ {0}\right) = \left\{ \begin{array}{l l} \min (j): x _ {j} = 1 & x > 0, \\ n - 1 & x = 0 \end{array} \right. \tag {10}
|
| 244 |
+
$$
|
| 245 |
+
|
| 246 |
+
When $i_{curr}$ , the index of the current bit, is odd, $\mathrm{ffs}^*(\mathrm{bin}(i_{curr})) = 0$ , and $i_{start} = i_{curr} - 1$ , we can calculate the decision LLR, $\lambda_0^{i_{start}}$ , directly according to the $f$ -node operation without any need to update the intermediate LLRs. As a consequence, when moving back to bit index $i_{start} < i_{curr} - 1$ we need to consider the $\mathrm{ffs}^*$ of $i_{curr} - 1$ and/or $i_{start} - 1$ if $i_{curr}$ and $i_{start}$ both or either one is odd. This is controlled in lines 1-4 of Algorithm 3. Note that the stages to be updated are not necessarily $s = \mathrm{ffs}^*(\mathrm{bin}(i_{start})), \dots, 1, 0$ , but the deepest stage to be updated, $s_{max}$ , is
|
| 247 |
+
|
| 248 |
+
$$
|
| 249 |
+
s _ {\max } = \left\{\max (s): s = \operatorname {f f s} ^ {*} (\operatorname {b i n} (i _ {m})), i _ {\text {s t a r t}} \leq i _ {m} \leq i _ {\text {c u r r}} \right\} \tag {11}
|
| 250 |
+
$$
|
| 251 |
+
|
| 252 |
+
The relation (11) finds the deepest stage in the factor graph (from left to right in Fig. 2) at which the LLRs have been updated/overwritten while decoding bit $i_{start}$ to $i_{curr}$ . If $s_{max} \geq \mathrm{ffs}^{*}(\mathrm{bin}(i_{start}))$ , we need to move back further to the bit $i_{-1}$ at which $s_{max} = \mathrm{ffs}^{*}(\mathrm{bin}(i_{-1}))$ . The subroutine findsMaxPos in Algorithm 3 performs the operation of finding $i_{-1}$ .
|
| 253 |
+
|
| 254 |
+
Example: Suppose the block-length is $N = 4$ and we are decoding bit $i_{\text{curr}} = 3$ . The intermediate LLRs vector is $[\lambda_1^3, \lambda_1^2]$ , excluding the decision LLR, $\lambda_0^3$ (see Fig. 2). Now, if we need to go one step back to bit $i_{\text{start}} = 2$ , since $i_{\text{curr}} = 3$ is odd, we do not need to update the intermediate LLR vector, i.e., $\lambda_0^2$ can be directly calculated. However, for moving back to $i_{\text{start}} = 1$ , since $i_{\text{start}}$ is odd, we need to find $s_{\text{max}} = 1$ and calculate $[\lambda_1^1, \lambda_1^0]$ . Only after this update of the intermediate LLRs it is possible to calculate the decision LLR $\lambda_0^1$ and rewind the SC algorithm.
|
| 255 |
+
|
| 256 |
+
Note that the partial sums vector, $\beta$ , is also updated in lines 12 and 19 during the aforementioned process.
|
| 257 |
+
|
| 258 |
+
Algorithm 3 shows an efficient approach for updating the intermediate LLRs.
|
| 259 |
+
|
| 260 |
+
# B. Heuristic Path Metric
|
| 261 |
+
|
| 262 |
+
The Fano path metric for each examined node plays an important role in the backtracking since it provides an indication for how likely it is that the partial path to the current node is correct. Efficient backtracking relies on this metric to a) select a point to branch off the currently best (possibly erroneous) path to explore promising alternative solutions and to b) abandon unlikely paths based on comparing their path metrics with the threshold $T$ .
|
| 263 |
+
|
| 264 |
+
Algorithm 3: updateLLRsPSs: Updating intermediate LLRs & partial sums for partial rewinding
|
| 265 |
+
input: $i_{start}$ , $i_{curr}$ , $\hat{\mathbf{u}}$ , $\lambda$ , $\beta$
|
| 266 |
+
output: updated $\lambda$ , updated $\beta$
|
| 267 |
+
1 if $i_{curr}\%2\neq 0$ then
|
| 268 |
+
2 | $i_{curr} \gets i_{curr} - 1$
|
| 269 |
+
3 if $i_{start}\%2\neq 0$ then
|
| 270 |
+
4 | $i_{start} \gets i_{start} - 1$
|
| 271 |
+
5 $s_{start} = \mathrm{ffs}^*(i_{start})$ // c.f (10)
|
| 272 |
+
6 $s_{max} \gets \mathrm{sMax}(i_{start},i_{curr})$ // c.f (11)
|
| 273 |
+
7 if $s_{start} \leq s_{max}$ then
|
| 274 |
+
8 | $i_{-1} = \mathrm{find\_sMaxPos}(s_{start},s_{max},i_{start})$
|
| 275 |
+
9 | $\beta \gets \mathrm{updatePSBack}(i_{-1},s_{max},\hat{\mathbf{u}})$
|
| 276 |
+
10 for $i \gets i_{-1}$ to $i_{start}$ do
|
| 277 |
+
11 | $\lambda \gets \mathrm{updateLLRs}(i,\lambda,\beta)$
|
| 278 |
+
12 | $\beta \gets \mathrm{updatePartialSums}(i,\hat{\mathbf{u}}_i,\beta)$ // Identical w/ SCD
|
| 279 |
+
13 else
|
| 280 |
+
14 | $\lambda \gets \mathrm{updateLLRs}(i_{start},\lambda,\beta)$
|
| 281 |
+
15 return $[\lambda,\beta]$ ;
|
| 282 |
+
16 subroutine updatePSBack ( $i_{-1}$ , $s_{max}$ , $\hat{\mathbf{u}}$ ):
|
| 283 |
+
17 | $k \gets 2^{s_{max}}$
|
| 284 |
+
18 | for $i \gets i_{-1} + 1 - k$ to $i_{-1}$ do
|
| 285 |
+
19 | $\beta \gets \mathrm{updatePartialSums}(i,\hat{\mathbf{u}}_i,\beta)$
|
| 286 |
+
20 | return $\beta$ ;
|
| 287 |
+
21 subroutine find_sMaxPos ( $s_{start}$ , $s_{max}$ , $i_{-1}$ ):
|
| 288 |
+
22 | $s' \gets s_{start}$
|
| 289 |
+
23 while $s' < s_{max}$ do
|
| 290 |
+
24 | $i_{-1} \gets i_{-1} - 2$
|
| 291 |
+
25 | if $i_{-1} > 0$ then
|
| 292 |
+
26 | $s' \gets ffs^*(i_{-1})$ // c.f (10)
|
| 293 |
+
27 else
|
| 294 |
+
28 | $s' \gets n$
|
| 295 |
+
29 | return $i_{-1}$ ;
|
| 296 |
+
|
| 297 |
+
To provide such a metric, we follow the generic approach outlined in (6): the first term corresponds to the metric in list decoding while the second term is used to account for the different candidate path lengths in the Fano decoding. For every partial sequence $a^{(\ell)}$ , we define the following metric:
|
| 298 |
+
|
| 299 |
+
$$
|
| 300 |
+
\begin{array}{l} \mu_ {\ell} = M \left(a ^ {(\ell)}, \mathbf {y}\right) = \sum_ {\substack {j = 0 \\ N - 1}} ^ {n _ {\ell} - 1} \log P \left(\hat {u} _ {j} ^ {(\ell)} \mid \hat {\mathbf {u}} _ {0, j - 1} ^ {(\ell)}, \mathbf {y}\right) \tag{12} \\ + \sum_ {j = n _ {\ell}} ^ {N - 1} \log E _ {\mathbf {y}} \left[ P \left(u _ {j} \mid \mathbf {u} _ {0, j - 1}, \mathbf {y}\right) \right] \\ \end{array}
|
| 301 |
+
$$
|
| 302 |
+
|
| 303 |
+
The second term is an expected metric for the continuation of the partial path with length $N - n_{i}$ . Based on our observation of the actual metric obtained during decoding with or without backtracking, a good estimation of the second term, in case there is no error in the received signals, is $E_{\mathbf{y}}\left[P(u_{j}|\mathbf{u}_{0,j - 1},\mathbf{y})\right] \approx 1 - p_{e,j}$ , where $p_{e}$ is the error probability of the bit-channels which can be obtained from the
|
| 304 |
+
|
| 305 |
+
methods used for the construction/rate-profile of polar codes.
|
| 306 |
+
|
| 307 |
+
Let us define the expected metric $B = E_{\mathbf{y}}[\mu_{N - 1}]$ for the full-length path and the expected metric of the remaining partial path as
|
| 308 |
+
|
| 309 |
+
$$
|
| 310 |
+
B = \sum_ {j = 0} ^ {N - 1} \log \left(1 - p _ {e, j}\right) \tag {13}
|
| 311 |
+
$$
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
B _ {i} ^ {c} = \sum_ {j = i + 1} ^ {N - 1} \log \left(1 - p _ {e, j}\right) = B - \sum_ {j = 0} ^ {i} \log \left(1 - p _ {e, j}\right) \tag {14}
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
where $\log (1 - p_{e,j})$ is the estimated branch metric. Now, we can rewrite (12) as a recursion as follows:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\mu_ {j} = \mu_ {j - 1} + m _ {j} - \log \left(1 - p _ {e, j}\right) \tag {15}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
where $m_j = \log (P(\hat{u}_j|\hat{\mathbf{u}}_{0,j - 1},\mathbf{y}))$ is the actual branch metric and $\mu_{-1} = B$ . Note that since the initial metric is $\mu_{-1} = B$ , at each decoding step, the actual branch metric $m_j$ is added and instead the estimated metric of the corresponding branch is deducted to maintain the relation in (12). Hence, although (15) looks similar to the metric in [23], the initial value and the foundation of the metric are quite different (in [23], $\mu_{-1} = 0$ ). Furthermore, one can optimize the FER performance by tuning the bias term, $\log (1 - p_{e,i})$ . In particular, if the SNR dependent method in [28] is used to obtain $p_{e,i}$ , one can improve FER performance, by changing the design-SNR.
|
| 324 |
+
|
| 325 |
+
# V. LOW-COMPLEXITY FANO DECODING
|
| 326 |
+
|
| 327 |
+
In this section, we introduce an adaptive path metric depending on the noise level and different search strategies to limit the search space.
|
| 328 |
+
|
| 329 |
+
# A. Adaptive Path Metric
|
| 330 |
+
|
| 331 |
+
A bit channel $i$ with low reliability contributes to the metric update depending on the noise level, i.e., $\mu_{i}$ can be significantly smaller than $\mu_{i-1}$ (due to change in the magnitude and/or sign of the decision LLR) in the presence of large channel noise. This impact on the path metric can accumulate over time leading to a significant deviation from the expected metric in (13). Recall that due to channel dependency, a change in the channel LLR of one channel can affect the other low-reliability bit channels as well. Consequently, the metric of most of the examined branches denoted by $\mu'$ in Fig. 4 are most likely greater than the threshold, i.e., $\mu_{i}' > T$ for $i < i_{curr}$ , where $i_{curr}$ is defined in Section IV. This causes a large delay due to the exploration of many sub-paths during backtracking. Hence, the metric estimate for the path continuation represented by the second term in (12), is not in a fair way comparable with the actual metric of the current path as discussed in the previous section.
|
| 332 |
+
|
| 333 |
+
To compensate for such deviation, we suggest adapting the estimate (14) for the continuation of partial paths relative to the impact of the channel noise on the actual metric. This adaptation can be realized by a scaling factor $\alpha$ for the logarithm of the probability in (14) which in effect adapts the expected probability to the noise level. The effect of this scaling is as follows:
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
Figure 4: Decoding tree: $\mu_j$ s are the path metrics of the current best path (solid thick line) from the root to a node at level $j$ and the $\mu_j^{\prime}$ s are the path metrics of the branches (solid thin line) diverging from the current best path.
|
| 337 |
+
|
| 338 |
+
$\alpha \log E_{\mathbf{y}}[P(u_j|\mathbf{u}_{0,j - 1},\mathbf{y})] = \log \big(E_{\mathbf{y}}[P(u_j|\mathbf{u}_{0,j - 1},\mathbf{y})]\big)^{\alpha}.$ Since $\alpha \geq 1$ and $P(u_{j}|\mathbf{u}_{0,j - 1},\mathbf{y}) < 1,$ then $(E_{\mathbf{y}}[P(u_j|\mathbf{u}_{0,j - 1},\mathbf{y})])^{\alpha}$ becomes smaller, accounting for a larger noise variance.
|
| 339 |
+
|
| 340 |
+
The value of $\alpha$ is determined after visiting the nodes of the current path to some level of decoding tree. This level should cover a sufficient number of low-reliability bit-channels to reflect the noise effect on the metric in a fair way. Until this level/bit index denoted by $i_{bu}$ in lines 43 and 46 of Algorithm 5, we do not perform backtracking although the metric drops below the threshold, $T$ (as seen in lines 43-44 where the threshold is updated). Then, the scaling factor is obtained by
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
\alpha = \frac {\sum_ {j = 0} ^ {n _ {k}} \log P \left(\hat {u} _ {j} ^ {(\ell)} \mid \hat {\mathbf {u}} _ {0 , j - 1} ^ {(\ell)} , \mathbf {y}\right)}{\sum_ {j = 0} ^ {n _ {k}} \log E _ {\mathbf {y}} \left[ P \left(u _ {j} \mid \mathbf {u} _ {0 , j - 1} , \mathbf {y}\right) \right]} \tag {16}
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
This adaptation can be performed when $\alpha > 1$ , i.e., when the actual metric is larger than the expected metric. In practice, a quantized version of this factor is more convenient to use in fixed-point arithmetic. Hence, $\alpha_{q} = \lceil \frac{\alpha}{\Delta_{q}} \rceil \Delta_{q}$ , where $\Delta_{q}$ is an integer. For instance, in decoding $PAC(128,64)$ , we first follow the current best path to bit $i_{bu} = 38$ . By taking $\Delta_{q} = 2$ and the effect of the ceiling operator, an effective value is obtained which further reduces the complexity with almost no degradation in performance. In low and medium code rates, one can choose to calculate $\alpha$ after the initial sequence of low-reliability bits, where the associated values in vector $v$ are 0 (equivalent to the frozen bit-channels in polar codes).
|
| 347 |
+
|
| 348 |
+
After obtaining $\alpha$ , we need to update not only the metric of the current path, but also the metric of the examined branches, $\mu_j^\prime$ in Fig. 4, along the current path.
|
| 349 |
+
|
| 350 |
+
To update the computed metrics we simply add the difference between the updated bias $\alpha B_{j}^{c}$ and the initial bias $B_{j}^{c}$ to $\mu_{j}$ and $\mu_{j}^{\prime}$ .
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
\mu_ {j} ^ {\prime} = \mu_ {j} ^ {\prime} + (\alpha - 1) B _ {j} ^ {c} \tag {17}
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
Thus, the metrics are computed by considering $\alpha$ in the next decoding steps as
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\mu_ {j} = \mu_ {j - 1} + m _ {j} - \alpha \cdot \log \left(1 - p _ {e, j}\right) \tag {18}
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
Lines 10 and 16-17 of Algorithm 4 include $\alpha$ which is initialized at the beginning of the decoding, line $3(\alpha = 1)$ . The calculation of $\alpha$ and the metric updating process are shown in Algorithm 5, lines 46-53.
|
| 363 |
+
|
| 364 |
+
For hardware implementation, we are interested in simple arithmetic operations. Here, we suggest using an LLR-based
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
Figure 5: Bottom-up backtracking
|
| 368 |
+
|
| 369 |
+

|
| 370 |
+
Figure 6: Top-down backtracking
|
| 371 |
+
|
| 372 |
+
metric instead of the metric based on the probability. To this end, we need to define $m_j$ based on $\lambda_0^j$ .
|
| 373 |
+
|
| 374 |
+
$$
|
| 375 |
+
\begin{array}{l} m _ {j} \left(\lambda_ {0} ^ {j}, \hat {u} _ {j}\right) = \log \left(P \left(\hat {u} _ {j} \mid \hat {\mathbf {u}} _ {0, j - 1}, \mathbf {y}\right)\right) = \log \left(\frac {e ^ {\left(1 - \hat {u} _ {j}\right) \lambda_ {0} ^ {j}}}{e ^ {\lambda_ {0} ^ {j}} + 1}\right) \\ = \log \left(1 + e ^ {- (1 - 2 \hat {u} _ {j}) \lambda_ {0} ^ {j}}\right) ^ {- 1} \tag {19} \\ \end{array}
|
| 376 |
+
$$
|
| 377 |
+
|
| 378 |
+
where the last equality holds only for $\hat{u}_j = 0$ and 1. Now, if $\hat{u} = \frac{1}{2}(1 - \operatorname{sgn}(\lambda_0^j))$ , the term $e^{-(1 - 2\hat{u})\lambda_0^j} = e^{-|\lambda_0^j|}$ is small and hence $\log(1 + e^{-|\lambda_0^j|}) \approx 0$ . Otherwise, we can approximate $\log(1 + e^{|\lambda_0^j|}) \approx |\lambda_0^j|$ . The term $\log(1 - p_{e,j})$ and $B = \sum_{j=0}^{N-1} \log(1 - p_{e,j})$ can be pre-computed offline and can be used in the metric computation.
|
| 379 |
+
|
| 380 |
+
Note that all the terms in (18) are negative and so are the metric values. To save one bit per metric in the storage, we can discard the bit representing the always negative sign from the values. In this case we need to modify the comparisons in the algorithms accordingly.
|
| 381 |
+
|
| 382 |
+
# B. Constrained Tree Search
|
| 383 |
+
|
| 384 |
+
The tree search algorithm may explore the paths on the tree that are unlikely to be correct. Unfortunately, the threshold T can only be used to prune a subset of these paths since a too tight threshold would also be likely to prune the correct path. Prior knowledge about error occurrence can be exploited in order to constrain the tree traversal. In the following, we propose several effective constraints resulting in a significant reduction in time complexity at a small performance degradation:
|
| 385 |
+
|
| 386 |
+
# 1) Constraint on Number of Diversions from Best Path
|
| 387 |
+
|
| 388 |
+
By using a genie that corrects the error occurrence due to channel noise, we can observe that less than $1\%$ of the frame errors are due to more than $b = 5$ bit-errors caused by the channel noise. Fig. 7 shows the relative frequency of error occurrence for different numbers of bit-errors. With this knowledge, we can avoid exploring the paths that diverge from the SC path at more than 5 bit-positions. If we can afford a
|
| 389 |
+
|
| 390 |
+
Algorithm 4: PAC Fano Decoding
|
| 391 |
+
input: Channel LLRs $\lambda_{\mathbf{n}}^{0,\mathbf{N} - 1}$ , $N$ $K$ $\mathcal{B}$ $\mathbf{p_e}$ g, $\Delta$ $i_{bu}$ output: Information bits d
|
| 392 |
+
1 $\mathcal{CS}\gets$ generateCS(B) // Critical set [17]
|
| 393 |
+
2 cState[1,...,|g|-1] $\leftarrow$ {0} // Current state
|
| 394 |
+
3 currState[0:K-1][1:|g|-1] $\leftarrow$ {0}
|
| 395 |
+
4 $[i,j,T,\lambda ,\delta ,\beta ,b_{-1},\alpha_q]\gets [0,0,0,\{0\} ,\{0\} ,\{0\} ,B,1]$
|
| 396 |
+
5 [onMainPath,isBackTracking,toDiverge,biasUpdated] $\leftarrow$ [True,False,False,False]
|
| 397 |
+
|
| 398 |
+
while $i < N$ do
|
| 399 |
+
$\lambda_0^i\gets$ updateLLRs(i, $\lambda ,\beta)$ // like SCD
|
| 400 |
+
if $i\notin \mathcal{B}$ then
|
| 401 |
+
$[\hat{u}_i,\mathrm{cState}]\gets \mathrm{conv1bTrans}(0,\mathrm{cState},\mathrm{g})\quad /\quad \mathrm{Alg.}$ 1
|
| 402 |
+
$\mu_{i}\leftarrow \mu_{i - 1} + m(\lambda_{0}^{i},\hat{u}_{i}) - \alpha_{q}\cdot \log (1 - p_{e,j})$ $\beta \leftarrow$ updatePartialSums(i, $\hat{u}_i,\beta)$ // like SCD
|
| 403 |
+
$i\gets i + 1$
|
| 404 |
+
else
|
| 405 |
+
$[\hat{u}^{(0)},\mathrm{cState}^{(0)}]\gets \mathrm{conv1bTrans}(0,\mathrm{cState},\mathrm{g})$ $[\hat{u}^{(1)},\mathrm{cState}^{(1)}]\gets \mathrm{conv1bTrans}(1,\mathrm{cState},\mathrm{g})$ $\mu^{(0)}\gets \mu_{i - 1} + m(\lambda_i^0,\hat{u}^{(0)}) - \alpha_q\cdot \log (1 - p_{e,j})$ $\mu^{(1)}\gets \mu_{i - 1} + m(\lambda_i^0,\hat{u}^{(1)}) - \alpha_q\cdot \log (1 - p_{e,j})$ $[\mu_{max},\hat{\nu}_{max}]\gets [\mu^{(0)},0]$ if $\mu^{(0)} > \mu^{(1)}$ , else $[\mu^{(1)},1]$ $[\mu_{min},\hat{\nu}_{min}]\gets [\mu^{(0)},0]$ if $\mu^{(0)} < \mu^{(1)}$ , else $[\mu^{(1)},1]$
|
| 406 |
+
if onMAINpath=True and isBackTracking = True then
|
| 407 |
+
if $\mu_{min} > T$ and $\mathcal{CS}[j] = 1$ and $j < j_{end}$ then [onMAINpath, $\delta_j^s$ , $j_{stem}] \gets [False,1,j]$ $[\lambda^s,\beta^s ]\gets [\lambda ,\beta ]$ else if $j = j_{end}$ then
|
| 408 |
+
isBackTracking $=$ False
|
| 409 |
+
$T = \lfloor \frac{\mu_{end}}{\Delta}\rfloor \Delta$ //Updating threshold
|
| 410 |
+
if $\mu_{max} > T$ then
|
| 411 |
+
if toDiverge $=$ False then
|
| 412 |
+
$[\hat{v}_i,\hat{u}_i]\gets [\hat{v}_{max},\hat{u}^{(\hat{v}_{max})}]$
|
| 413 |
+
if onMAINpath $=$ True and $\delta_j^s = 1$ then [ $\left[\mu_i,\mu_i'\right]\gets \left[\mu_{max},\mu_{min}\right]$ else [ $\left[\mu_i,\mu_i'\right]\gets \left[\mu_{max},\mu_i''\right]$ $\delta_j\gets 0$
|
| 414 |
+
else [ $\hat{v}_i,\hat{u}_i]\gets [\hat{v}_{min},\hat{u}^{(\hat{v}_{min})}]$ [ $\left[\mu_i,\mu_i'\right]\gets \left[\mu_{min},\mu_{max}\right]$ [ $\delta_j$ , toDiverge] $\leftarrow$ [1, False] [currState[j],cState]--[cState,cState(vi)]
|
| 415 |
+
$\beta \leftarrow$ updatePartialSums(i, $\hat{u}_i,\beta)$
|
| 416 |
+
[i,j] $\leftarrow$ [i+1,j+1]
|
| 417 |
+
else if biasUpdated $=$ False and $i < i_{bu}$ then $T = \lfloor \frac{\mu_{max}}{\Delta}\rfloor \Delta / /$ Updating threshold else <Go to Algorithm 5>
|
| 418 |
+
|
| 419 |
+
68 return $(\hat{\mathbf{d}}\gets \mathrm{extract}(\hat{\mathbf{v}},\mathcal{A}))$ // Dropping 0s
|
| 420 |
+
|
| 421 |
+
degradation of error correction performance, we can reduce the maximum number of diversions while exploring the alternative paths. This would limit the number of visited nodes. For the example shown in Fig. 7, this number can be set to $b = 3$ or 4 bit-positions in order to reduce the number of visited node and consequently the time complexity. We will show a result after
|
| 422 |
+
|
| 423 |
+
Algorithm 5: Lines 46-67 in Algorithm 4
|
| 424 |
+
46 if biasUpdated $=$ False and $i = i_{bu}$ then
|
| 425 |
+
47 if $\mu_{max} < B$ then
|
| 426 |
+
48 $\alpha_{q} = \lceil \frac{\mu_{max}}{B\cdot\Delta_{q}}\rceil \Delta_{q}$
|
| 427 |
+
49 biasUpdated $=$ True
|
| 428 |
+
50 for $k\gets 0$ to $j$ do
|
| 429 |
+
51 $\begin{array}{rl} & {\mu^{\prime}_{\mathcal{B}[k]} = \mu^{\prime}_{\mathcal{B}[k]} + (\alpha_{q} - 1)\cdot B^{c}_{\mathcal{B}[k]}}\\ & {\mu_{\mathcal{B}[0] - 1} = \mu_{\mathcal{B}[0] - 1} + (\alpha_{q} - 1)\cdot B^{c}_{\mathcal{B}[0] - 1}}\\ & {\mu_{\mathcal{B}[j] - 1} = \mu_{\mathcal{B}[j] - 1} + (\alpha_{q} - 1)\cdot B^{c}_{\mathcal{B}[j] - 1}} \end{array}$
|
| 430 |
+
52
|
| 431 |
+
53
|
| 432 |
+
54 currState[j] $\leftarrow$ cState
|
| 433 |
+
55 if onMAINpath $=$ False then
|
| 434 |
+
56 if $\mu_{\mathcal{B}[j_{stem}]}^{\prime \prime} < \mu_{max}$ then
|
| 435 |
+
57 $\begin{array}{rl}{\mu^{\prime \prime}_{\mathcal{B}[j_{stem}]}} & {\leftarrow \mu_{max}} \end{array}$
|
| 436 |
+
58 else
|
| 437 |
+
59 [jend, $\mu_{end}]\gets [j,\mu_{max}]$
|
| 438 |
+
60 [frmMAINpath,isBackTracking] $\leftarrow$ [True, True]
|
| 439 |
+
61 [T, $j^{\prime}$ ,toDiverge] $\leftarrow$ moveBack $(\mu_{0,i}^{\prime},j,T,\delta_{0,j},\hat{\mathbf{u}},\mathcal{CS},$ frmMAINpath) // $\mu_0^{\prime},i = \mu_0^{\prime},\mu_1^{\prime},\dots,\mu_i^{\prime}$
|
| 440 |
+
62 if toDiverge $=$ False and $(j^{\prime} = j_{stem}$ or $j^{\prime} = j)$ then
|
| 441 |
+
63 onMAINpath $=$ True
|
| 442 |
+
64 else
|
| 443 |
+
65 onMAINpath $=$ False
|
| 444 |
+
66 [i, $j$ ,frmMAINpath] $\leftarrow$ [B[j], $j^{\prime}$ ,False]
|
| 445 |
+
67 cState $\leftarrow$ currState[j]
|
| 446 |
+
|
| 447 |
+

|
| 448 |
+
Figure 7: Distribution (in %) of the number of error occurrence, extracted from 4000 decoding failures of PAC(128,64) with RM-profile at $E_{b} / N_{0} = 2.5$ dB
|
| 449 |
+
|
| 450 |
+
applying this constraint in Section VI. In algorithm 6, lines 21-22 implement the constraint for the maximum diversions.
|
| 451 |
+
|
| 452 |
+
# 2) Exploring a Subset of bad branches
|
| 453 |
+
|
| 454 |
+
The reliability of the bit-channels is known from methods such as density evolution [28]. Hence, during backtracking, we do not need to extend the partial path to the bad branches connecting to the nodes representing high-reliability bit-channels even if they satisfy the threshold condition. Thus, we only explore the sub-paths that originate from bad branches of the low-reliability bit-channels. This might introduce a small error rate degradation (due to not exploring all the bad branches),
|
| 455 |
+
|
| 456 |
+
Algorithm 6: moveBack: Checking the previous ex- amined nodes for moving backward
|
| 457 |
+
input : the channel output $\mu^{\prime}$ $j$ $T$ $\delta_{0,j}$ , $\hat{\mathbf{u}}$ ,CS, frmMAINpath
|
| 458 |
+
output: $T$ $j^{\prime}$ , toDiverge,
|
| 459 |
+
1 isMovingBack $\leftarrow$ False
|
| 460 |
+
2 while True do
|
| 461 |
+
3 $j^{\prime}\gets j$
|
| 462 |
+
4 if frmMAINpath $=$ True then // Top-down move
|
| 463 |
+
5 for $k\gets 0$ to $j^{\prime} - 1$ do if $\mu_B^{'}[k] > T$ and $\mathcal{CS}[k] = 1$ then [j',jstem,isMovingBack] $\leftarrow$ [k,k,True] [s, $\beta^{\mathrm{s}}]\gets [\lambda ,\beta ]$ break
|
| 464 |
+
8
|
| 465 |
+
9
|
| 466 |
+
10 if $j^{\prime} = j$ then
|
| 467 |
+
11 toDiverge $\leftarrow$ False
|
| 468 |
+
12 return [T, $j$ , toDiverge]
|
| 469 |
+
13 else // Bottom-up move
|
| 470 |
+
14 for $k\gets j^{\prime} - 1$ to 0 do if $j_{stem} = k$ then $\begin{array}{l}{j^{\prime}\gets k}\\ {\left[\lambda ,\beta \right]\gets \left[\lambda^{s},\beta^{s}\right]}\\ {\mathrm{toDiverge}\leftarrow \mathrm{False}}\\ {\mathrm{return}\left[T,j^{\prime},\mathrm{toDiverge}\right]}\\ {\mathrm{if}\mu_{B[k]}^{\prime} > T\mathrm{and}\mathcal{CS}[k] = 1\mathrm{then}}\\ {\mathrm{if}\sum (\delta_{0,k})\geq \max Diversions\mathrm{then}}\\ {\mathrm{|continue}}\\ {\mathrm{if}\delta_k = 1\mathrm{then}}\\ {\left[j^{\prime},\mathrm{isMovingBack}\right]\leftarrow [k,\mathrm{True}]}\\ {\mathrm{break}} \end{array}$
|
| 471 |
+
15
|
| 472 |
+
16
|
| 473 |
+
17
|
| 474 |
+
18
|
| 475 |
+
19
|
| 476 |
+
20
|
| 477 |
+
21
|
| 478 |
+
22
|
| 479 |
+
23
|
| 480 |
+
24
|
| 481 |
+
25
|
| 482 |
+
26 if isMovingBack $=$ True then
|
| 483 |
+
27 [icur,istart] $\leftarrow$ [B[j],B[j'])
|
| 484 |
+
28 [λ,β] $\leftarrow$ updateLLRsPSs(istart,icur,u,λ,β) // Alg.3
|
| 485 |
+
29 if $\delta_{j^{\prime}} = 0$ then
|
| 486 |
+
30 toDiverge $\leftarrow$ True
|
| 487 |
+
31 return [T, $j^{\prime}$ , toDiverge]
|
| 488 |
+
32 else if $j^{\prime} = 0$ then
|
| 489 |
+
33 toDiverge $\leftarrow$ False
|
| 490 |
+
34 return [T, $j^{\prime}$ , toDiverge]
|
| 491 |
+
|
| 492 |
+
but it reduces the time complexity significantly. To this end, we collect the indices of the low-reliability bit-channels in the critical set $\mathcal{CS}$ [25], [17] and in the backtracking procedure, we only compare the threshold with the metrics of bad branches that are listed in the critical set. Lines 6 and 20 in Algorithm 6 enforce this constraint in top-down and bottom-up schemes (discussed in the next section), respectively.
|
| 493 |
+
|
| 494 |
+
Additionally, the constraint can be set to stop decoding and declaring decoding failure when the number of steps or clock iterations exceeds some limit or the path metric drops below a
|
| 495 |
+
|
| 496 |
+
certain value. This could avoid cases with excessive run-time due to visiting a huge number of nodes. Also, we can stop decoding when the path metric drops below a certain value, since in this case, the decoder either fails correcting the error(s) or it may lead to a long decoding delay due to visiting a huge number of nodes in order to find the correct path.
|
| 497 |
+
|
| 498 |
+
# C. Direction of Backtracking Traversal
|
| 499 |
+
|
| 500 |
+
Considering the properties of PAC codes which are mainly inherited from polar codes, we can devise different strategies that help to reduce the total number of nodes to visit during backtracking. When a decision error occurs during forward tree traversal, this error is propagated to the subsequent bits due to the sequential nature of decoding. In the conventional Fano decoding, backtracking starts from the latest decoded bit in a depth-first bottom-up direction, step by step as shown in Fig. 5. For example, in a code with 3 bits, in the first backtracking iteration shown by 1 in Fig. 5, the 3rd bit diverges from the SC path, i.e., $u_0 - u_1 - \bar{u}_2$ . In the 2nd backtracking iteration, the 2nd bit diverges only, i.e., $u_0 - \bar{u}_1 - u_2$ . Then the 2nd and 3rd bits diverge together, i.e., $u_0 - \bar{u}_1 - \bar{u}_2$ . This process continues towards the top of the tree until (in the worst case) all the combinations of 1-bit, 2-bit, and 3-bit diversions are explored, assuming the threshold condition is satisfied by all the branches. However, as our observations show, the probability that the first error due to channel noise has occurred at one of the first decoded bits is higher. Further, there is no point in correcting the error that occurred due to error propagation. Thus, backtracking in a top-down fashion as shown in Fig. 6 is more consistent with the location of the first error and the subsequent propagated errors.
|
| 501 |
+
|
| 502 |
+
The top-down backtracking can only be performed on the bad branches that originate from the SC path as a reference path. The rest of the backtracking iterations follows the bottom-up fashion. Note that a good branch is determined as a local branch with a higher likelihood among two branches emerging from a parent node. Thus, a good branch could form a non-SC path any where on the decoding tree. However, the SC path is distinguished by following the good branches at all the decoding steps from the root to the leaf of the tree. This SC path is shown by the bold line in Fig. 5 and Fig. 6.
|
| 503 |
+
|
| 504 |
+
Choosing a bad branch in the backtracking is called a diversion and its corresponding metric is denoted by a prime symbol, i.e., $\mu'$ , in Fig. 5 and Fig. 6. This diversion is equivalent to flipping a bit/bits [31] from the SC path in the SC decoding. In Algorithm 6, lines 5-12 and 14-25 implement the top-down and the bottom-up traversals, respectively.
|
| 505 |
+
|
| 506 |
+
# D. Threshold Update Strategy
|
| 507 |
+
|
| 508 |
+
When the channel noise has a high impact on the decision LLRs of low-reliability bits, as discussed in Section IV-B, the best path metric $\mu$ drops significantly over a burst of low-reliability bit-channels such that $\mu \ll T$ . On the other hand, at every iteration of backtracking (i.e., exploring all the potential sub-paths branching off from the current path), the threshold is reduced by $\Delta$ . Thus, several backtracking iterations are required to satisfy $\mu > T - m\Delta$ for $m > 1$ ( $m$ is the number
|
| 509 |
+
|
| 510 |
+
input: the channel output $\mu^{\prime},j,T,\delta_{0,j},\hat{\mathbf{u}},\mathcal{CS},$
|
| 511 |
+
frmMAINpath
|
| 512 |
+
output: $T,j^{\prime}$ , toDiverge,
|
| 513 |
+
1 isMovingBack $\leftarrow$ False
|
| 514 |
+
2 while True do
|
| 515 |
+
3 $j^{\prime}\gets j$
|
| 516 |
+
4 if frmMAINpath $=$ True then // Top-down move
|
| 517 |
+
5 for $k\gets 0$ to $j^{\prime} - 1$ do
|
| 518 |
+
6 if $\mu_{\mathcal{B}[k]}^{\prime} > T$ and $\mathcal{CS}[k] = 1$ then [j',jstem,isMovingBack] $\leftarrow$ [k,k,True] [s,βs] $\leftarrow$ [λ,β] break
|
| 519 |
+
8
|
| 520 |
+
9
|
| 521 |
+
10 if $j^{\prime} = j$ then
|
| 522 |
+
11 toDiverge $\leftarrow$ False
|
| 523 |
+
12 return [T,j,toDiverge]
|
| 524 |
+
13 else // Bottom-up move
|
| 525 |
+
14 for $k\gets j^{\prime} - 1$ to 0 do
|
| 526 |
+
15 if $j_{stem} = k$ then $\begin{array}{l}{j^{\prime}\gets k}\\ {\left[\lambda ,\beta \right]\gets \left[\lambda^{s},\beta^{s}\right]}\\ {\mathrm{toDiverge}\gets \mathrm{False}}\\ {\mathrm{return}[\mathrm{T},j^{\prime},\mathrm{toDiverge}]}\\ {\mathrm{if}\mu_{\mathcal{B}[k]}^{\prime} > T\mathrm{and}\mathcal{CS}[k] = 1\mathrm{then}}\\ {\mathrm{if}\sum (\delta_{0,k})\geq \mathrm{maxDiversions~then}}\\ {\mathrm{continue}}\\ {\mathrm{if}\delta_k = 1\mathrm{then}}\\ {\mathrm{[j^{\prime},isMovingBack]}\leftarrow [k,True]}\\ {\mathrm{break}} \end{array}$
|
| 527 |
+
16
|
| 528 |
+
17
|
| 529 |
+
18
|
| 530 |
+
19
|
| 531 |
+
20
|
| 532 |
+
21
|
| 533 |
+
22
|
| 534 |
+
23
|
| 535 |
+
24
|
| 536 |
+
25
|
| 537 |
+
26 if isMovingBack $=$ True then
|
| 538 |
+
27 [icur,istart] $\leftarrow$ [B[j],B[j'])
|
| 539 |
+
28 [λ,β] $\leftarrow$ updateLLRsPSs(istart,icur,u,λ,β) //Alg.3
|
| 540 |
+
29 if $\delta_{j^{\prime}} = 0$ then
|
| 541 |
+
30 toDiverge $\leftarrow$ True
|
| 542 |
+
31 return [T,j',toDiverge]
|
| 543 |
+
32 else if $j^{\prime} = 0$ then
|
| 544 |
+
33 toDiverge $\leftarrow$ False
|
| 545 |
+
34 return [T,j',toDiverge]
|
| 546 |
+
|
| 547 |
+

|
| 548 |
+
Figure 8: Updating the Metric of Explored Branches
|
| 549 |
+
|
| 550 |
+
of backtracking iterations). If we skip the $m - 1$ iterations and just we perform one iteration and then update the threshold at once using $T = \lfloor \frac{\mu}{\Delta} \rfloor \Delta$ to satisfy the condition $\mu > T$ , we can proceed with the decoding of the current best path and avoid extra delay. There is a possibility that the correct path is not the most likely path and the decoder could find another path in one of the backtracking iterations that we are going to skip. However, our observation shows that the degradation due to skipping $m - 1$ backtracking iterations is about $0.05 \mathrm{~dB}$ at the high SNR regime. The lines 24-26 in Algorithm 4 show the implementation of this strategy.
|
| 551 |
+
|
| 552 |
+
# E. Updating Expected Metrics of Explored Paths
|
| 553 |
+
|
| 554 |
+
During backtracking, the sub-paths originated from the current best path through bad branches are partially explored. The exploration of the same paths (possibly with longer length) might be repeated later as we proceed with the decoding. Our aim is to benefit from the time spent to explore the sub-paths. By updating the path metric, $\mu_j^{\prime}$ , at the bad branch originated from the current best path, as shown in Fig. 8, with the actual result of the exploration rather than the expected path metric, we may avoid re-exploring these paths in the next cycle(s) of backtracking. Since many sub-paths might originate from the same branch, we update $\mu_j^{\prime}$ with the largest metric obtained among sub-paths. This process is performed in lines 55-57 of Algorithm 5. Here, we use $\mu''$ instead for temporarily storing the actual path metric of first sub-path explored and then comparing it with the actual metric of any new sub-path explored later. Then $\mu^{\prime}$ is updated in line 33 of Algorithm 4. Note that by employing the adaptive heuristic metric, the effect of this updating becomes insignificant.
|
| 555 |
+
|
| 556 |
+
# VI. NUMERICAL RESULTS
|
| 557 |
+
|
| 558 |
+
In this Section, the error correction performance and the complexity of different tree search algorithms with different setups, using the previously discussed tree search complexity-reduction ideas and adaptive metric, are analyzed.
|
| 559 |
+
|
| 560 |
+
To obtain the numerical results in this Section, we use different rate-profiles such as Reed-Muller (RM), density evolution with Gaussian approximation, and the polarization weight (PW) [30] with minimum row-weights eliminated. Fig.9 illustrates the aforementioned rate-profiles. Here, we briefly revise the RM-profile and the modified PW-profile.
|
| 561 |
+
|
| 562 |
+

|
| 563 |
+
Figure 9: Rate-profile Schemes
|
| 564 |
+
|
| 565 |
+
# 1) Reed-Muller (RM) Rate-profile
|
| 566 |
+
|
| 567 |
+
The bit-channels for information bits are selected according to the row-weights $(w_{i} = wt(g_{N}^{i})$ where $g_{N}^{i}$ is the $i$ -th row) of $G_{N}$ . When the candidate bit-channels with the smallest row-weight is more than need, the more reliable ones are selected. In this case, the rate-profile is called RM-polar [29]. In this work, the reliability measure is the mean LLR obtained from density evolution with Gaussian approximation (DEGA).
|
| 568 |
+
|
| 569 |
+
# 2) A Modified Polarization Weight (PW) Rate-profile
|
| 570 |
+
|
| 571 |
+
In this method, the bit-channels for information bits are selected among the ones with the largest polarization weight $(W_{i})$ , $W_{i} = \sum_{j=0}^{n-1} b_{j} \cdot 2^{j \cdot \frac{1}{4}}$ , where $i = b_{n-1} \dots b_{0}$ is the binary representation of $i$ [30]. In order to improve the distance property, we propose to freeze the selected bit-channels with minimum row-weight and replace them with the bit-channels with lower $W_{i}$ , but larger $w_{i}$ .
|
| 572 |
+
|
| 573 |
+
In the simulations, we employ different generator polynomials (0o36, 0o133, 0o177, and 0o1563 in octal format) with constraint lengths 5,7,7, and 10, respectively. The numerical results show that the difference among them in terms of FER is negligible in the low SNR regime and small in high SNRs.
|
| 574 |
+
|
| 575 |
+
Finally, for the purpose of comparison in the figures, we use the dispersion bound [8] a.k.a. Polyanskiy-Poor-Verdu (PPV) bound or finite-length bound which is a Gaussian approximation on the block error probability of finite-length block codes. Additionally, we employ lower bound on ML performance as well. This bound is obtained under list decoding with $L = 256$ by assuming that ML decoder would fail when $\hat{\mathbf{v}} \neq \mathbf{v}$ but $\sum_{i=0}^{N-1} ||\hat{x}_i - y_i|| < \sum_{i=0}^{N-1} ||x_i - y_i||$ where $\hat{\mathbf{x}} = \hat{\mathbf{v}}\mathbf{GP}_{\mathbf{n}}$ .
|
| 576 |
+
|
| 577 |
+
# A. Distance Spectrum
|
| 578 |
+
|
| 579 |
+
As discussed in Section III, by convolutional pre-coding, we are no longer transmitting fixed known values, e.g., 0 frozen bits, over low-reliability (bad) synthetic channels, but random values generated by a linear combination of information bits. To analyze the impact of this difference on polar codes, we use the multilevel SCLD-based search method in [27] to enumerate
|
| 580 |
+
|
| 581 |
+
<sup>1</sup>Note that the RM-Polar rate profile $\mathcal{A}^{\mathrm{RM - Polar}} = \mathcal{A}^{\mathrm{RM}}\cup \mathcal{A}^{\mathrm{Polar}}$ suggested in Section VI-1 is quite different from [29] since $K^{\prime} = \sum_{j = 0}^{r^{\prime}}\binom{n}{j}$ channel indices forming $\mathcal{A}^{\mathrm{RM}}$ are chosen based on the row-weight rule, among the $\mathbf{G}_N$ -rows with weight larger than $d_{min}$ , and the rest, that is, $K - K^{\prime}\leq \binom{n}{r^{\prime} + 1}$ among the most reliable channels corresponding to rows with weight $d_{min}$ , as demonstrated in Fig. 9 (middle). See the method rmPolar_build_mask in rate_profile.py on github.
|
| 582 |
+
|
| 583 |
+
the codewords with the minimum Hamming distance, $d_{\text{min}}$ . We use the size of $L = 2^{17}$ and in each iteration we introduce a one-bit error in the positions corresponding to the minimum row weight in $P_n$ , when the all-zero codeword is transmitted and no noise is added. Re-encoding the candidate messages remaining in the list at the end of decoding, shows that the number of codewords with the minimum Hamming weight $d_{\text{min}} = 16$ is $A_{16} = 94488$ for the polar code $P(128,64)$ constructed with RM-profile, whereas $A_{16} = 3120$ for the PAC code $PAC(128,64)$ with the same rate profile. Furthermore, the second minimum distance for the polar code is 24 with $A_{24} = 4465024$ while for the PAC code we observe $A_{18} = 2696$ $A_{20} = 95828$ $A_{22} = 352311$ and $A_{24} = 3065194$ . Note that the minimum Hamming distance for $PAC(128,64)$ with PW [30] rate profile is $d_{\text{min}} = 8$ with $A_8 = 256$ and $A_{12} = 960$ hence the FER performance of PW-profile is inferior to RM profile. Hence, PW-profile for $PAC(128,64)$ is not considered
|
| 584 |
+
|
| 585 |
+
From the truncated union bound of the block error probability under ML decoding, $P_{e}^{ML} \approx A_{d_{min}} Q(\sqrt{2d_{min} RE_{b} / N_{0}})$ [20], we can conclude that given the same $d_{min}$ and decoder, the code with smaller $A_{d_{min}}$ should perform better. In [12], the authors show that a properly designed upper-triangular pre-transformation matrix for polar codes can reduce $A_{d_{min}}$ of the concatenated code. Note that the convolutional pre-transform in PAC codes has an upper-triangular Toeplitz matrix.
|
| 586 |
+
|
| 587 |
+
# B. List Decoding
|
| 588 |
+
|
| 589 |
+
The list decoding of PAC codes over binary-input additive white Gaussian noise (BIAWGN) channels with BPSK modulation is simulated. The constraint length and the coefficients of the generator polynomial for the convolutional code are 7 ( $m = 6$ ) and 0o133, respectively. For PAC(128,64), the rate-profile is formed by the Reed-Muller (RM) construction [29] with dSNR=3.5. In the list decoding, different list sizes are employed and the performance is compared with the performance of the P(128,64) polar code and finite-length bound [8] as shown in Fig. 10. The performance of the RM-profile and the modified PW-profile are identical as the resulted rate-profiles are identical. A serial concatenation of CRC with relatively short codes such as PAC(128,64) does not improve the error correction performance due to a significant rate loss and negative impact on the distance properties (e.g. in the case of PAC(128,64), the minimum Hamming distance drops to $d_{min} = 8$ ). However, an 8-bit CRC with a generator polynomial with coefficients 0xA6 improves the performance of PAC(512,256) in the high SNR regime significantly as shown in Fig. 10. The notation CxA-SCL used in Fig. 10 is defined as CRC-aided SCL decoding with x-bit CRC and $L$ in $\mathrm{SCL}(L)$ is the list size. The rate-profile for this code is formed by density evolution with Gaussian approximation (DEGA) [28] with dSNR=2. One can observe that as the block-length increases, the performance of PAC codes under list decoding cannot compete with that of polar codes under CRC-aided list decoding and we need to add CRC bits as the outer code to detect the correct path in the list decoding.
|
| 590 |
+
|
| 591 |
+

|
| 592 |
+
Figure 10: Performance of PAC codes under list decoding
|
| 593 |
+
|
| 594 |
+

|
| 595 |
+
|
| 596 |
+
# C. Fano Decoding
|
| 597 |
+
|
| 598 |
+
The Fano decoding algorithm provides a performance near the dispersion bound, but as a variable-complexity decoding scheme, its average time complexity is extremely high. The Fano decoding of PAC(128,64) with RM-profile over BIAWGN channel is simulated. Similar to list decoding, the constraint length and the coefficients of the generator polynomial for convolutional codes are $7(m = 6)$ and 0o133, respectively. The non-optimized design-SNR for obtaining the pre-computed bias term is 4 dB. By applying the ideas introduced in Section IV, such as adaptive metric (AD), top-down (TD) search strategy and imposing constraint on the number of diversions (Div) from SC path, it is observed in Fig. 11 (left) and Fig. 12 (left) that while the average time complexity drops significantly by $50\%$ to $80\%$ , depending on the techniques employed, the degradation in error correction performance is not high. Since the curves in Fig. 12 are almost straight in semi-logarithm scale, the complexity gains are preserved at high SNR regimes as well. Fig. 12 (right) shows the computational complexity of Fano, stack, and list decoding under different parameters and techniques. The computational complexity is measured by the total number of operations per codeword (comparisons and additions) performed through the factor graph in Fig. 2. As can be seen, the computational complexity of list decoding is significantly higher than Fano and stack decoding to achieve the same performance. Fig. 12 (left) shows the time complexity in terms of time steps, where each time step is defined as the time required for processing the node(s) in one stage of the factor graph shown in Fig. 2. Although the time complexity of the list decoding is significantly lower than Fano and stack decoding (left), we note that one time step in list decoding is longer than a time step in Fano decoding, due to the required sorting process.
|
| 599 |
+
|
| 600 |
+
Note that stack decoding has a lower time and computational complexity than Fano decoding because it does not need to trace back on the tree and explore other paths to find a promising one if there is any. The partial paths (sorted
|
| 601 |
+
|
| 602 |
+

|
| 603 |
+
Figure 11: Performance of PAC codes with RM rate-profil under Fano decoding with constrained search (CS), adaptive metric (AD), top-down tree traversal (TD), and a limited number of diversions (Div.) in comparison with other decoding schemes SC, SCL, stack, and Viterbi. Also showing performance of polar codes under Fano decoding "Fano (Polar)".
|
| 604 |
+
|
| 605 |
+

|
| 606 |
+
|
| 607 |
+
with respect to the metric) and their associated intermediate information are already available in the stack. Hence, stack decoding can save a significant amount of computations and time at the cost of a huge memory requirement. To compute the number of time steps (or clock cycles), we consider an architecture that is similar to that in [18]. In this type of design, $2N - 2$ time steps are required to decode a codeword [18]. However, in Fano decoding, due to possible backtracking, the number of required time steps is typically significantly larger than $2N - 2$ . Here, we take the average time steps over a large number of decoding iteration into account. For comparison, we also implemented Fano decoding for polar codes with RM-profile. Although, the average computational complexities of polar codes and PAC codes under Fano decoding are close, due to poor weight distribution of polar codes, PAC codes outperform polar codes.
|
| 608 |
+
|
| 609 |
+
Another important observation in Fig. 11 (left) is that the performance gain of PAC codes over polar codes under Fano decoding is quite significant while the time and computational complexity of these two families of codes are close. However, this performance gain under list decoding as shown in Fig. 10 is smaller. Additionally, one can observe from the comparison of the performance of PAC(128,64) under list, stack, and Fano decoding in Fig. 11 (right) that Fano decoding provides a similar performance as list decoding but outperforms the stack decoding, while it requires significantly less hardware resources than list decoding and stack decoding. As shown in Table I, the memory required for paths, intermediate LLRs and partial sums, which account for the majority of memory space, for list and stack decoding is $L$ and $D$ times that of Fano decoding. Note that in order to obtain a FER performance similar to Fano decoding, we need a very large list size $L$ or stack depth $D$ in the order of 128 or 256. This highlights
|
| 610 |
+
|
| 611 |
+

|
| 612 |
+
|
| 613 |
+

|
| 614 |
+
Figure 12: Time and computational Complexity.
|
| 615 |
+
|
| 616 |
+

|
| 617 |
+
|
| 618 |
+
the huge gap between Fano decoder and the other decoders in terms of hardware resources
|
| 619 |
+
|
| 620 |
+
<table><tr><td></td><td>Fano</td><td>Stack</td><td>List</td></tr><tr><td colspan="4">Memory Requirement [bits]</td></tr><tr><td>Path memory, u</td><td>N</td><td>DN</td><td>LN</td></tr><tr><td>Intermediate LLRs, λ</td><td>(N-1)Q1</td><td>D(N-1)Q1</td><td>L(N-1)Q1</td></tr><tr><td>Partial Sums, β</td><td>N-1</td><td>D(N-1)</td><td>L(N-1)</td></tr><tr><td>Path Metric, M</td><td>2(N-K)Q2</td><td>DQ2</td><td>LQ2</td></tr><tr><td>Current State</td><td>K·m</td><td>D·m</td><td>L·m</td></tr><tr><td>Critical Set flag, CS</td><td>N</td><td>0</td><td>0</td></tr><tr><td>Diversion flag, δ</td><td>N</td><td>0</td><td>0</td></tr><tr><td>Error probability, pe</td><td>NQ3</td><td>NQ3</td><td>0</td></tr><tr><td colspan="4">Computing Resources</td></tr><tr><td>Processing Elements</td><td>P</td><td>P</td><td>LP</td></tr><tr><td>Comparison</td><td>A comparator</td><td>D-sorter</td><td>2L-sorter</td></tr></table>
|
| 621 |
+
|
| 622 |
+
Table I: Comparison of hardware resources
|
| 623 |
+
|
| 624 |
+
The parameters $P$ , and $Q_{i}$ for $i = 1,2,3$ denote the number of processing elements (PE) [18] and the number of quantization bits, respectively.
|
| 625 |
+
|
| 626 |
+
Finally, Viterbi algorithm (VA) [32] with similar hardware resources as list decoding (except the $2L$ -value sorter, replaced by a 2-value comparator) provides a close performance to Fano and list decoders.
|
| 627 |
+
|
| 628 |
+
# VII. CONCLUSION
|
| 629 |
+
|
| 630 |
+
In this paper, we investigate the implementation of list decoding and Fano decoding for PAC codes. Under list decoding, there is a significant performance gap between polar codes and PAC codes. However, this gap between polar and PAC codes is reduced when employing another layer of concatenation, such as CRC or parity check (PC) bits. Also, the results show that a large list size $L$ or stack depth $D$ of 256 under list and stack decoding, respectively, is needed to approach the performance of PAC codes under Fano decoding.
|
| 631 |
+
|
| 632 |
+
Fano decoding has a large average time complexity but a small computational complexity relative to list decoding. For mitigating the time complexity, we propose several techniques
|
| 633 |
+
|
| 634 |
+
and strategies including adaptive path metric and a heuristic to estimate a metric for the continuation of the partial paths, search constraints, and a combination of top-down and bottom-up search strategies. This strategies reduce the computational complexity as well. Also, to overcome the difficulty of obtaining the intermediate LLRs and partial sums during backtracking, we propose an algorithm to compute these intermediate information (LLRs and partial sums) efficiently without using extra memory to store them or any need to restart the decoding process. The numerical results show that by using these techniques, the average time complexity drops by $50\%$ to $80\%$ at the cost of a relatively small performance degradation. The adaptive heuristic metric and the search strategies proposed in this paper can be used in polar coding as well. Although the time complexity of the Fano Decoding is variable and high, the software Fano decoder is significantly faster than software list decoder with large list size without using parallelism.
|
| 635 |
+
|
| 636 |
+
Due to need for backtracking in Fano decoding, as the code-length increases, the frequency of backtracking through the decoding increases prohibitively. Hence, we conclude that the Fano decoding can be used for short codes with medium to low code rates.
|
| 637 |
+
|
| 638 |
+
Overall, it appears that any proper pre-transformation such as convolutional transform [7], moving parity check bits [10], dynamic frozen bits [11], use of CRC bits for error detection [6], and a combination of them can improve the distance spectrum and results in an error correction performance gain. However, each pre-transformation may provide a different gain depending on the rate-profile, block-length and code rate.
|
| 639 |
+
|
| 640 |
+
# ACKNOWLEDGMENT
|
| 641 |
+
|
| 642 |
+
The authors are grateful to the anonymous reviewers for their useful comments and suggestions which improved the clarity and the inclusiveness of the paper.
|
| 643 |
+
|
| 644 |
+
# REFERENCES
|
| 645 |
+
|
| 646 |
+
[1] E. Arikan, "Channel polarization: A method for constructing capacity-achieving codes for symmetric binary-input memoryless channels," IEEE Trans. Inf. Theory, vol. 55, no. 7, pp. 3051-3073, Jul. 2009.
|
| 647 |
+
[2] E. Arikan, “On the Origin of Polar Coding,” in IEEE Journal on Sel. Areas in Commun., vol. 34, no. 2, pp. 209-223, Feb. 2016.
|
| 648 |
+
[3] J. Massey, "Capacity, cutoff rate, and coding for a direct-detection optical channel," IEEE Trans. Commun., vol. 29, pp. 1615-1621, Nov. 1981.
|
| 649 |
+
[4] M. S. Pinsker, “On the complexity of decoding,” Problemy Peredachi Informatsii, vol. 1, no. 1, pp. 84-86, 1965.
|
| 650 |
+
[5] H. Imai and S. Hirakawa, “A new multilevel coding method using errorcorrecting codes,” IEEE Transactions on Information Theory, vol. 23, pp. 371-377, May 1977.
|
| 651 |
+
[6] I. Tal and A. Vardy, "List decoding of polar codes," IEEE Int. Symp. on Information Theory, St. Petersburg, Russia, Jul. 2011, pp. 1-5.
|
| 652 |
+
[7] E. Arikan, "From sequential decoding to channel polarization and back again," arXiv preprint arXiv:1908.09594 (2019).
|
| 653 |
+
[8] Y. Polyanskiy, H. V. Poor and S. Verdu, "Channel Coding Rate in the Finite Blocklength Regime," IEEE Trans. Inf. Theory, vol. 56, no. 5, pp. 2307-2359, May 2010.
|
| 654 |
+
[9] A. Balatsoukas-Stimming, M. Bastani Parizi, and A. Burg, "LLR-based successive cancellation list decoding of polar codes," IEEE Trans. Signal Processing, vol. 63, no. 19, pp. 5165-5179, Oct 2015.
|
| 655 |
+
[10] H. Zhang et al., "Parity-Check Polar Coding for 5G and Beyond," 2018 IEEE Int. Conf. Commun. (ICC), Kansas City, MO, 2018, pp. 1-7.
|
| 656 |
+
[11] P. Trifonov and G. Trofimiuk, “A randomized construction of polar subcodes,” 2017 IEEE International Symposium on Information Theory (ISIT), Aachen, 2017, pp. 1863-1867.
|
| 657 |
+
|
| 658 |
+
[12] B. Li, H. Zhang, J. Gu, "On Pre-transformed Polar Codes," arXiv preprint arXiv:1912.06359 (2019).
|
| 659 |
+
[13] C. Lin and J. Anderson, “M-algorithm decoding of channel convolutional codes,” Princeton Conference on Information Sciences and Systems, Princeton, NJ, Mar. 1986, pp. 362-366.
|
| 660 |
+
[14] M. Rowshan, A. Burg and E. Viterbo, "Polarization-adjusted Convolutional (PAC) Codes: Fano Decoding vs List Decoding," arXiv preprint arXiv:2002.06805 (2020).
|
| 661 |
+
[15] H. Yao, A. Fazeli and A. Vardy, “Polarization-adjusted Convolutional (PAC) Codes: Fano Decoding vs List Decoding,” arXiv preprint arXiv:2005.13711 (2020).
|
| 662 |
+
[16] M. Rowshan and E. Viterbo, “Stepped List Decoding for Polar Codes,” 2018 IEEE 10th International Symposium on Turbo Codes & Iterative Information Processing (ISTC), Hong Kong, Hong Kong, 2018, pp. 1-5.
|
| 663 |
+
[17] M. Rowshan and E. Viterbo, “Improved List Decoding of Polar Codes by Shifted-pruning,” 2019 IEEE Information Theory Workshop (ITW), Visby, Sweden, Aug 25-28, 2019, pp. 1-5.
|
| 664 |
+
[18] C. Leroux, A. J. Raymond, G. Sarkis, I. Tal, A. Vardy, W. J. Gross, "Hardware implementation of successive-cancellation decoders for polar codes", J. Signal Process. Syst., vol. 69, no. 3, pp. 305-315, Jul. 2012
|
| 665 |
+
[19] M. Rowshan, E. Viterbo, R. Micheloni and A. Marelli, "Repetition-assisted Decoding of Polar Codes," in IET Electron. Lett., vol. 55, no. 5, pp. 270-272, 2019.
|
| 666 |
+
[20] T. K. Moon, "Error Correction Coding: Mathematical Methods and Algorithms," John Wiley & Sons, New Jersey, 2005, pp 451-534.
|
| 667 |
+
[21] R. G. Gallager, "Information Theory and Reliable Communication," John Wiley & Sons, New Jersey, 1968, pp 263-286.
|
| 668 |
+
[22] P. Trifonov, “A Score Function for Sequential Decoding of Polar Codes,” 2018 IEEE International Symposium on Information Theory (ISIT), Vail, CO, 2018, pp. 1470-1474.
|
| 669 |
+
[23] M. Jeong and S. Hong, "SC-Fano Decoding of Polar Codes," in IEEE Access, vol. 7, pp. 81682-81690, 2019.
|
| 670 |
+
[24] M. Sikora and D. J. Costello, "Supercode heuristics for tree search decoding," 2008 IEEE Inf. Theory Workshop, Porto, 2008, pp. 411-415.
|
| 671 |
+
[25] J. Cui, Z. Zhang, X. Zhang, H. Li and Q. Zeng, “A Low-Complexity Improved Progressive Bit-Flipping Decoding for Polar Codes,” 2018 IEEE 4th International Conference on Computer and Communications (ICCC), Chengdu, China, 2018, pp. 39-44.
|
| 672 |
+
[26] W. Tong, “Polar Code Design Aspects and Future Challenges,” invited talk in special session Polar Codes at IEEE Inf. Theory Workshop, Visby, Sweden, Aug. 2019
|
| 673 |
+
[27] Q. Zhang, A. Liu, X. Pan and K. Pan, "CRC Code Design for List Decoding of Polar Codes," in IEEE Communications Letters, vol. 21, no. 6, pp. 1229-1232, June 2017.
|
| 674 |
+
[28] P. Trifonov, "Efficient design and decoding of polar codes," IEEE Trans. on Communications, vol. 60, no. 11 pp. 3221-3227, Nov. 2012.
|
| 675 |
+
[29] B. Li, H. Shen, and D. Tse, “A RM-polar codes,” arXiv preprint arXiv:1407.5483 (2014).
|
| 676 |
+
[30] X. Liu et al., “ $\beta$ -expansion A Theoretical Framework for Fast and Recursive Construction of Polar Codes,” in Proc GLOBECOM, Dec. 2017.
|
| 677 |
+
[31] O. Afsiadis, A. Balatsoukas-Stimming, and A. Burg, “A low-complexity improved successive cancellation decoder for polar codes,” IEEE 48th Asilomar Conf. on Signals, Systems and Computers, 2014, pp. 2116-2120.
|
| 678 |
+
[32] M. Rowshan, and E. Viterbo, “List Viterbi Decoding of PAC Codes,” arXiv preprint, 2020. [Online]. Available: https://arxiv.org/abs/2007.05353.
|
2002.06xxx/2002.06805/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c9862f902c1c5efa49232660a66ad76776b81e2dbdabcdc474e3d51a50a80cc
|
| 3 |
+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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Text Perceptron: Towards End-to-End Arbitrary-Shaped Text Spotting",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
140,
|
| 8 |
+
119,
|
| 9 |
+
854,
|
| 10 |
+
142
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Liang Qiao $^{1}$ Sanli Tang $^{1}$ Zhanzhan Cheng $^{21*}$ Yunlu Xu $^{1}$ Yi Niu $^{1}$ Shiliang Pu $^{1}$ Fei Wu $^{2}$",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
138,
|
| 20 |
+
170,
|
| 21 |
+
854,
|
| 22 |
+
189
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "$^{1}$ Hikvision Research Institute, China; $^{2}$ Zhejiang University, China",
|
| 29 |
+
"bbox": [
|
| 30 |
+
276,
|
| 31 |
+
188,
|
| 32 |
+
720,
|
| 33 |
+
203
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "{qiaoliang6, tangsanli, chengzhanzhan, xuyunlu, niuyi, pushiliang}@hikvision.com wufei@cs.zju.edu.cn",
|
| 40 |
+
"bbox": [
|
| 41 |
+
135,
|
| 42 |
+
203,
|
| 43 |
+
861,
|
| 44 |
+
218
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Abstract",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
248,
|
| 54 |
+
273,
|
| 55 |
+
313,
|
| 56 |
+
286
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Many approaches have recently been proposed to detect irregular scene text and achieved promising results. However, their localization results may not well satisfy the following text recognition part mainly because of two reasons: 1) recognizing arbitrary shaped text is still a challenging task, and 2) prevalent non-trainable pipeline strategies between text detection and text recognition will lead to suboptimal performances. To handle this incompatibility problem, in this paper we propose an end-to-end trainable text spotting approach named Text Perceptron. Concretely, Text Perceptron first employs an efficient segmentation-based text detector that learns the latent text reading order and boundary information. Then a novel Shape Transform Module (abbr. STM) is designed to transform the detected feature regions into regular morphologies without extra parameters. It unites text detection and the following recognition part into a whole framework, and helps the whole network achieve global optimization. Experiments show that our method achieves competitive performance on two standard text benchmarks, i.e., ICDAR 2013 and ICDAR 2015, and also obviously outperforms existing methods on irregular text benchmarks SCUT-CTW1500 and Total-Text.",
|
| 63 |
+
"bbox": [
|
| 64 |
+
98,
|
| 65 |
+
292,
|
| 66 |
+
460,
|
| 67 |
+
559
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "1 Introduction",
|
| 74 |
+
"text_level": 1,
|
| 75 |
+
"bbox": [
|
| 76 |
+
210,
|
| 77 |
+
575,
|
| 78 |
+
351,
|
| 79 |
+
590
|
| 80 |
+
],
|
| 81 |
+
"page_idx": 0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"type": "text",
|
| 85 |
+
"text": "Spotting scene text is a hot research topic due to its various applications such as invoice recognition and road sign reading in advanced driver assistance systems. With the advances of deep learning, many deep neural-network-based methods (Wang et al. 2012; Jaderberg, Vedaldi, and Zisserman 2014; Li, Wang, and Shen 2017; Liu et al. 2018; He et al. 2018) have been proposed for spotting text from a natural image, and have achieved promising results.",
|
| 86 |
+
"bbox": [
|
| 87 |
+
81,
|
| 88 |
+
594,
|
| 89 |
+
477,
|
| 90 |
+
705
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "However, in the real-world, many texts appear in arbitrary layouts (e.g. multi-oriented or curved), which make quadrangle-based methods (Liao et al. 2017; Zhou et al. 2017; Zhang et al. 2018) cannot be well adapted in many situations. Some works (Dai et al. 2018; Long et al. 2018; Xie et al. 2019) began to focus on irregular text localization by segmenting text masks as detection results and achieved relatively good performance in terms of Intersection-over-Union (IoU) evaluation. However, they still leave many challenges to the following recognizing task. For example, a",
|
| 97 |
+
"bbox": [
|
| 98 |
+
81,
|
| 99 |
+
705,
|
| 100 |
+
477,
|
| 101 |
+
844
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "image",
|
| 107 |
+
"img_path": "images/d3275e8fb3295d88187bc1739b67da1ad612cc0f29a9fa909ab4731ed8bb59ba.jpg",
|
| 108 |
+
"image_caption": [
|
| 109 |
+
"(a)",
|
| 110 |
+
"Figure 1: Illustration of the traditional pipelined text spotting process and Text Perceptron. Sub-figure (a) is a traditional pipeline strategy by combining text detection, rectification and recognition into a framework. Sub-figure (b) is an end-to-end trainable text spotting approach by applying the proposed STM. The black and red arrows mean the forward and backward processing, respectively. The red points denote generated fiducial points generated."
|
| 111 |
+
],
|
| 112 |
+
"image_footnote": [],
|
| 113 |
+
"bbox": [
|
| 114 |
+
542,
|
| 115 |
+
276,
|
| 116 |
+
911,
|
| 117 |
+
422
|
| 118 |
+
],
|
| 119 |
+
"page_idx": 0
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"type": "text",
|
| 123 |
+
"text": "common pipeline of text spotting is to crop the masked texts within bounding-box regions, and then adopt a recognition model with rectification functions to generate final character sequences. Unfortunately, such strategy decreases the robustness of text spotting mainly in two aspects: 1) one needs to design extra rectification network, like methods in (Luo, Jin, and Sun 2019) and (Zhan and Lu 2019), to transform irregular texts into regular ones. In practice, it is hard to be optimized without human-labeled geometric ground truth, and also introduces extra computational cost. 2) Pipelined text spotting methods are not end-to-end trainable and result in suboptimal performance because the errors from the recognition model cannot be utilized for optimizing the text detector. In Figure 1(a), although the text detector provides true positive results, the clipped text masks still lead to wrong recognition results. We denote above problem incompatibility between text detection and recognition.",
|
| 124 |
+
"bbox": [
|
| 125 |
+
514,
|
| 126 |
+
580,
|
| 127 |
+
911,
|
| 128 |
+
816
|
| 129 |
+
],
|
| 130 |
+
"page_idx": 0
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"type": "text",
|
| 134 |
+
"text": "Recently, two methods were proposed for spotting irregular text in the end-to-end manners. (Lyu et al. 2018) proposed an end-to-end trainable network inspired by Mask-RCNN (He et al. 2017), aiming at reading irregular text character-by-character. However, this approach loses the",
|
| 135 |
+
"bbox": [
|
| 136 |
+
514,
|
| 137 |
+
818,
|
| 138 |
+
913,
|
| 139 |
+
888
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 0
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "aside_text",
|
| 145 |
+
"text": "arXiv:2002.06820v2 [cs.CV] 25 Oct 2021",
|
| 146 |
+
"bbox": [
|
| 147 |
+
22,
|
| 148 |
+
267,
|
| 149 |
+
57,
|
| 150 |
+
707
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 0
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "page_footnote",
|
| 156 |
+
"text": "*Corresponding author. Copyright © 2020, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.",
|
| 157 |
+
"bbox": [
|
| 158 |
+
81,
|
| 159 |
+
849,
|
| 160 |
+
478,
|
| 161 |
+
888
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 0
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "context information among characters, and also requires amounts of expenditure on character-level annotations. (Sun et al. 2018) attempted to transform irregular text with a perspective ROI module, but this operation has difficulty in handling some complicated distortions such as curved shapes.",
|
| 168 |
+
"bbox": [
|
| 169 |
+
86,
|
| 170 |
+
69,
|
| 171 |
+
477,
|
| 172 |
+
137
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "These limitations motivate us to explore new and more effective method to spot irregular scene text. Inspired by (Shi et al. 2016), thin-plate splines (abbr. TPS) (Bookstein 1989) may be a feasible approach to rectify various-shaped text into regular form using a group of fiducial points. Although these points can be implicitly learned from cropped rectangular text by a deep spatial transform network (Jaderberg et al. 2015), the learning process of fiducial points is hard to be optimized. As a result, such methods are not robust especially for texts in some complex distortions.",
|
| 179 |
+
"bbox": [
|
| 180 |
+
86,
|
| 181 |
+
138,
|
| 182 |
+
477,
|
| 183 |
+
276
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "In a more achievable way, we attempt to solve this problem as follows: 1) explicitly finding out a group of reliable fiducial points over text regions so that irregular text can be directly rectified by TPS, and 2) dynamically tuning fiducial points by back-propagating errors from recognition to detection. Specifically, we develop a Shape Transform Module (abbr. STM) to build a robust irregular text spotter and eliminate the incompatibility problem. STM integrates irregular text detection and recognition into an end-to-end trainable model, and iteratively adjusts fiducial points to satisfy the following recognition module. As shown in Figure 1(b), in the early training stage, despite high IoU in detection evaluation, the transformed text regions may not satisfy the recognition module. With end-to-end training, fiducial points will be gradually adjusted to obtain better recognition results.",
|
| 190 |
+
"bbox": [
|
| 191 |
+
86,
|
| 192 |
+
277,
|
| 193 |
+
477,
|
| 194 |
+
484
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "In this paper, we propose an end-to-end trainable irregular text spotter named Text Perceptron which consists of three parts: 1) A segmentation-based detection module which orderly describes a text region as four subregions: the center region, head, tail and top&bottom boundary regions, detailed in Section 3. Here, boundary information not only helps separate text regions that are very close to each other, but also contributes to capture latent reading-orders. 2) STM for iteratively generating potential fiducial points and dynamically tuning their positions, which alleviates incompatibility between text detection and recognition. 3) A sequence-based recognition module for generating final character sequences.",
|
| 201 |
+
"bbox": [
|
| 202 |
+
86,
|
| 203 |
+
484,
|
| 204 |
+
477,
|
| 205 |
+
662
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "Major contributions of this paper are listed as follows: 1) We design an efficient order-aware text detector to extract arbitrary-shaped text. 2) We develop the differentiable STM devoting to optimizing both detection and recognition in an end-to-end trainable manner. 3) Extensive experiments show that our method achieves competitive results on two regular text benchmarks, and also significantly surpasses previous methods on two irregular text benchmarks.",
|
| 212 |
+
"bbox": [
|
| 213 |
+
86,
|
| 214 |
+
664,
|
| 215 |
+
477,
|
| 216 |
+
773
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "2 Related Works",
|
| 223 |
+
"text_level": 1,
|
| 224 |
+
"bbox": [
|
| 225 |
+
205,
|
| 226 |
+
787,
|
| 227 |
+
359,
|
| 228 |
+
801
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Here, we briefly review the recent advances in text detection and end-to-end text spotting.",
|
| 235 |
+
"bbox": [
|
| 236 |
+
86,
|
| 237 |
+
805,
|
| 238 |
+
477,
|
| 239 |
+
833
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 1
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "2.1 Text Detection",
|
| 246 |
+
"text_level": 1,
|
| 247 |
+
"bbox": [
|
| 248 |
+
86,
|
| 249 |
+
844,
|
| 250 |
+
236,
|
| 251 |
+
857
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 1
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "Methods of text detection can usually be divided into two categories: anchor-based methods and segmentation-based",
|
| 258 |
+
"bbox": [
|
| 259 |
+
86,
|
| 260 |
+
861,
|
| 261 |
+
477,
|
| 262 |
+
888
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 1
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "methods.",
|
| 269 |
+
"bbox": [
|
| 270 |
+
521,
|
| 271 |
+
70,
|
| 272 |
+
578,
|
| 273 |
+
80
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Anchor-based methods. These methods usually follow the technique of Faster R-CNN (Ren et al. 2015) or SSD (Liu et al. 2016) that uses anchors to provide rectangular region proposals. To overcome the significantly varying aspect ratios of texts, (Liao et al. 2017) designed long default boxes and filters to enhance text detection, and then (Liao, Shi, and Bai 2018) extended this work by generating quadrilateral boxes to fit the texts with perspective distortions. (Ma et al. 2018) proposed a rotated regional proposal network to enhance multi-oriented text detection. To detect arbitrary-shaped text, many Mask RCNN (He et al. 2017)-based methods, e.g., CSE (Liu et al. 2019b), LOMO (Zhang et al. 2019) and SPCNet (Xie et al. 2019), were developed to capture irregular texts and achieved good performance.",
|
| 280 |
+
"bbox": [
|
| 281 |
+
519,
|
| 282 |
+
87,
|
| 283 |
+
911,
|
| 284 |
+
282
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Segmentation-based methods. These methods usually learn a global semantic segmentation without region proposals, which is more efficient compared to anchor-based methods. Segmentation can easily be used to describe text in arbitrary shapes but highly relies on complicated post-processes to separate different text instances. To solve this problem, (Wu and Natarajan 2017) introduced boundary semantic segmentation to reduce the efforts in post-proposing. EAST (Zhou et al. 2017) learned a shrink text region and directly regressed the multi-oriented quadrilateral boxes from text pixels. (Long et al. 2018) designed a series of overlapping disks with different radii and orientations to describe arbitrary-shaped text regions. (Wang et al. 2019) proposed a method that first generates text region masks with various shrinkage ratios and then uses a progressive expansion algorithm to produce the final text region masks. (Xu et al. 2019) predicted each text pixel and assigned them with a regression value denoting the direction to its nearest boundary to help separate different texts.",
|
| 291 |
+
"bbox": [
|
| 292 |
+
519,
|
| 293 |
+
286,
|
| 294 |
+
911,
|
| 295 |
+
549
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 1
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "2.2 Text Spotting",
|
| 302 |
+
"text_level": 1,
|
| 303 |
+
"bbox": [
|
| 304 |
+
521,
|
| 305 |
+
577,
|
| 306 |
+
663,
|
| 307 |
+
593
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 1
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "Most of existing text-spotting methods (Liao, Shi, and Bai 2018; Liao et al. 2017; Wang et al. 2012) generally first localize each text with a trained detector such as (Zhou et al. 2017) and then recognize the cropped text region with a sequence decoder (Shi, Bai, and Yao 2017). For sufficiently exploiting the complementarity between detection and recognition, some works (He et al. 2018; Li, Wang, and Shen 2017; Liu et al. 2018) were proposed to jointly detect and recognize text instances in an end-to-end trainable manner, which utilized the recognition information to optimize the localization task. However, these methods are incapable of spotting arbitrary-shaped text due to the irrationality of rectangles or quadrangles. To address these problems, (Sun et al. 2018) adopted a perspective ROI transforming module to rectify perspective text, but this operation still has difficulty in handling serious curved text. (Lyu et al. 2018) proposed an end-to-end text spotter inspired by Mask-RCNN for detecting arbitrary-shaped text character-by-character, but this method loses the context information among characters and also requires character-level location annotations.",
|
| 314 |
+
"bbox": [
|
| 315 |
+
519,
|
| 316 |
+
611,
|
| 317 |
+
911,
|
| 318 |
+
888
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 1
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "3 Methodology",
|
| 325 |
+
"text_level": 1,
|
| 326 |
+
"bbox": [
|
| 327 |
+
207,
|
| 328 |
+
66,
|
| 329 |
+
354,
|
| 330 |
+
84
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "3.1 Overview",
|
| 337 |
+
"text_level": 1,
|
| 338 |
+
"bbox": [
|
| 339 |
+
83,
|
| 340 |
+
85,
|
| 341 |
+
202,
|
| 342 |
+
101
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 2
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "We propose a text spotter named Text Perceptron whose overall architecture is shown in Figure 2, which consists of three parts:",
|
| 349 |
+
"bbox": [
|
| 350 |
+
81,
|
| 351 |
+
104,
|
| 352 |
+
478,
|
| 353 |
+
145
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "list",
|
| 359 |
+
"sub_type": "text",
|
| 360 |
+
"list_items": [
|
| 361 |
+
"(1) The text detector adopts ResNet (He et al. 2016) and Feature Pyramid Network (abbr. FPN) (Lin et al. 2017) as backbone, and is implemented by simultaneously learning three tasks: an order-aware multiple-class semantic segmentation, a corner regression, and a boundary offset regression. In this way, the text detector can localize arbitrary-shaped text and achieve state of the art on text detection.",
|
| 362 |
+
"(2) STM is responsible for uniting text detection and recognition into an end-to-end trainable framework. This module iteratively generates fiducial points on text boundaries based on the predicted score and geometry maps, and then applies the differentiable TPS to rectify irregular text into regular form.",
|
| 363 |
+
"(3) The text recognizer is used to generate the predicted character sequences, which can be any traditional sequence-based method, such as CRNN (Shi, Bai, and Yao 2017), attention-based method (Cheng et al. 2017)."
|
| 364 |
+
],
|
| 365 |
+
"bbox": [
|
| 366 |
+
81,
|
| 367 |
+
146,
|
| 368 |
+
478,
|
| 369 |
+
382
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "3.2 Text Detection Module",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
83,
|
| 379 |
+
392,
|
| 380 |
+
302,
|
| 381 |
+
406
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 2
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "Order-aware Semantic Segmentation The text detector learns a global multi-class semantic segmentation, which is much more efficient than those Mask-RCNN-based methods. Inspired by (Xue, Lu, and Zhan 2018), we introduce text boundary segmentation to separate different text instances. Considering text with arbitrary shapes, we further category boundaries into head, tail, and top&bottom boundary types, respectively. In Figure 3, the green, yellow, blue and pink regions separately denote the head, tail, top&bottom boundaries and the center text region. Here, head and tail also capture potential information about text reading order (e.g. top to bottom for vertical text). Therefore, we learn the text detector by conducting the multi-class semantic segmentation task using several binary Dices Coefficient Loss (Milletari, Navab, and Ahmadi 2016) (denoted by $\\mathcal{L}_{cls}$ ).",
|
| 388 |
+
"bbox": [
|
| 389 |
+
81,
|
| 390 |
+
410,
|
| 391 |
+
480,
|
| 392 |
+
619
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "Corner and Boundary Regressions To boost the arbitrary-shaped segmentation performance as well as provide position information for fiducial points, we integrate two other regression tasks into the learning process, as shown in Figure 3 (c) and (d),",
|
| 399 |
+
"bbox": [
|
| 400 |
+
81,
|
| 401 |
+
625,
|
| 402 |
+
478,
|
| 403 |
+
696
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 2
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "list",
|
| 409 |
+
"sub_type": "text",
|
| 410 |
+
"list_items": [
|
| 411 |
+
"- Corner Regression. For pixels in head and tail regions, we regress the offsets (e.g. the $\\Delta dx_{1}, \\Delta dy_{1}, \\Delta dx_{2}$ and $\\Delta dy_{2}$ ) to their corresponding two corner points, which is denoted by $\\mathcal{L}_{\\text {corner }}$ .",
|
| 412 |
+
"- Boundary Offset Regression. For pixels in center region, we regress the vertical and horizontal offsets to their nearest boundaries (e.g. the $\\Delta dx_1'$ , $\\Delta dy_1'$ , $\\Delta dx_2'$ and $\\Delta dy_2'$ ), which is denoted by $\\mathcal{L}_{boundary}$ ."
|
| 413 |
+
],
|
| 414 |
+
"bbox": [
|
| 415 |
+
84,
|
| 416 |
+
699,
|
| 417 |
+
478,
|
| 418 |
+
816
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 2
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "Here, we adopt a proximity regression strategy to solve the inaccurate large-offset regression problem like in EAST (Zhou et al. 2017). That is, the Corner Regressions only regress their neighboring corresponding corners. In the Boundary Offset Regression, we can simply ignore or lower",
|
| 425 |
+
"bbox": [
|
| 426 |
+
81,
|
| 427 |
+
818,
|
| 428 |
+
480,
|
| 429 |
+
888
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 2
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "the loss weights of regression value generated from the larger side (e.g. $\\Delta dx_1'$ , $\\Delta dx_2'$ for a horizontal text). In this way, our detector can well describe the texts with very large width-height ratios. Both of two regressions are trained with Smooth-L1 loss:",
|
| 436 |
+
"bbox": [
|
| 437 |
+
514,
|
| 438 |
+
69,
|
| 439 |
+
911,
|
| 440 |
+
138
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 2
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "equation",
|
| 446 |
+
"text": "\n$$\n\\mathcal {L} _ {\\text {c o r n e r}} \\text {o r} \\mathcal {L} _ {\\text {b o u n d a r y}} = \\left\\{ \\begin{array}{l l} 0. 5 (\\sigma z) ^ {2} & | z | < 1 / \\sigma^ {2} \\\\ | z | - 0. 5 / \\sigma^ {2} & \\text {o t h e r w i s e} \\end{array} , \\right. \\tag {1}\n$$\n",
|
| 447 |
+
"text_format": "latex",
|
| 448 |
+
"bbox": [
|
| 449 |
+
527,
|
| 450 |
+
142,
|
| 451 |
+
911,
|
| 452 |
+
186
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 2
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "where $z$ is the geometry offset value, and $\\sigma$ is a tunable parameter (default by 3).",
|
| 459 |
+
"bbox": [
|
| 460 |
+
514,
|
| 461 |
+
186,
|
| 462 |
+
911,
|
| 463 |
+
215
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 2
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "The Detection Inference In the forward process, we generate predicted segmentation maps by orderly overlaying the segmented center, head, tail, and top&bottom boundary feature maps. Subsequently, text instances can be found as connected-regions of center pixels. We see that all text instances are easily separated by boundaries, and different head (or tail) regions will also be separated by up&bottom boundary region. Therefore, each center region can be matched with a neighboring pair of head and tail region during the pixel traversal process. Specifically, for text with more than 1 head (or tail) regions, we choose the one with the maximum area as its head (or tail). While for predicted center text regions without corresponding head or tail region, we just treat them as false positives and filter them out.",
|
| 470 |
+
"bbox": [
|
| 471 |
+
514,
|
| 472 |
+
220,
|
| 473 |
+
911,
|
| 474 |
+
417
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 2
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "Ground-Truth Generation The process of ground-truth of segmentation and geometry map can be divided into three steps, as shown in Figure 3.",
|
| 481 |
+
"bbox": [
|
| 482 |
+
514,
|
| 483 |
+
422,
|
| 484 |
+
911,
|
| 485 |
+
464
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 2
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "(1) Identifying four corners. We denote the 1st and 4th corners as the two corners in the head region, while the 2nd and 3rd corners are corresponding to the tail region, as shown in Figure 3(a). This weak-supervised information is not provided by most of the datasets, but we found that in general, polygon points $\\{P_1',\\dots,P_M'\\}$ are usually annotated from the left-top corner to the left-bottom corner in a clockwise manner for text instances. Differently, for polygon annotations with a fixed number of points like SCUT-CTW1500 (Liu et al. 2019a), we can directly identify the four corner points by their indexes. However, for annotations with varying number of points like Total-Text (Ch'ng and Chan 2017), we can only obtain the 1st corner $(P_1')$ and 4th corner $(P_M')$ . To search the 2nd and 3rd corners, we design a heuristic corner estimating strategy based on the assumptions that 1) two boundaries neighboring tail are nearly parallel, and 2) two neighbor interior angles of tail are closed to $\\frac{\\pi}{2}$ . Therefore, the probable 2nd corner can be estimated as:",
|
| 492 |
+
"bbox": [
|
| 493 |
+
514,
|
| 494 |
+
464,
|
| 495 |
+
913,
|
| 496 |
+
718
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 2
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"text": "\n$$\n\\arg \\min _ {P _ {i} ^ {\\prime}} [ \\gamma (| \\angle P _ {i} ^ {\\prime} - \\frac {\\pi}{2} | + | \\angle P _ {i + 1} ^ {\\prime} - \\frac {\\pi}{2} |) + | \\angle P _ {i} ^ {\\prime} + \\angle P _ {i + 1} ^ {\\prime} - \\pi | ] \\tag {2}\n$$\n",
|
| 503 |
+
"text_format": "latex",
|
| 504 |
+
"bbox": [
|
| 505 |
+
519,
|
| 506 |
+
720,
|
| 507 |
+
911,
|
| 508 |
+
763
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 2
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "where $\\angle P_i^\\prime$ is the degree of interior angle for polygon point $P_{i}^{\\prime}$ , and $\\gamma$ is a weighting parameter (default by 0.5). Then the point $P_{i + 1}^{\\prime}$ following $P_{i}^{\\prime}$ is treated as the 3-rd corner point. Specifically, for vertical text annotated from the top-left corner, we reassign its top-right corner as the 1st key corner.",
|
| 515 |
+
"bbox": [
|
| 516 |
+
514,
|
| 517 |
+
762,
|
| 518 |
+
911,
|
| 519 |
+
833
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 2
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "(2) Generating score maps. Figure 3(b) shows the generated score maps. We firstly generate the center text regions follows by their annotations and then generate boundaries by referring to the shrink and expansion mechanism used",
|
| 526 |
+
"bbox": [
|
| 527 |
+
514,
|
| 528 |
+
833,
|
| 529 |
+
913,
|
| 530 |
+
888
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 2
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "image",
|
| 536 |
+
"img_path": "images/5a5ca9c156c240be64d70a34df163c205eeb2b7f20af00bd3b5d2e2d636869c8.jpg",
|
| 537 |
+
"image_caption": [
|
| 538 |
+
"Figure 2: The workflow of Text Perceptron. The black and red arrows separately mean the forward and backward process."
|
| 539 |
+
],
|
| 540 |
+
"image_footnote": [],
|
| 541 |
+
"bbox": [
|
| 542 |
+
107,
|
| 543 |
+
66,
|
| 544 |
+
883,
|
| 545 |
+
262
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "image",
|
| 551 |
+
"img_path": "images/dbe4d3dd71afbf0aaac326800c3a925508c24e299dc65f59cf5bd355314638ee.jpg",
|
| 552 |
+
"image_caption": [],
|
| 553 |
+
"image_footnote": [],
|
| 554 |
+
"bbox": [
|
| 555 |
+
107,
|
| 556 |
+
320,
|
| 557 |
+
287,
|
| 558 |
+
393
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 3
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "image",
|
| 564 |
+
"img_path": "images/a3900f6a82a2bf59b2ff793deaabac575c637b7cee7fcf2b3e081f758e4ebb75.jpg",
|
| 565 |
+
"image_caption": [],
|
| 566 |
+
"image_footnote": [],
|
| 567 |
+
"bbox": [
|
| 568 |
+
292,
|
| 569 |
+
321,
|
| 570 |
+
454,
|
| 571 |
+
393
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 3
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "image",
|
| 577 |
+
"img_path": "images/24b4ec94b3a0ba40f2b4aa147873560359555da1f59fc2e0fa9a20884e540161.jpg",
|
| 578 |
+
"image_caption": [
|
| 579 |
+
"Figure 3: The label generation process."
|
| 580 |
+
],
|
| 581 |
+
"image_footnote": [],
|
| 582 |
+
"bbox": [
|
| 583 |
+
104,
|
| 584 |
+
398,
|
| 585 |
+
302,
|
| 586 |
+
467
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 3
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "image",
|
| 592 |
+
"img_path": "images/c2567035035050163ae4561c553271666e27ed3cf8e8f01ee72a9f3eafad1532.jpg",
|
| 593 |
+
"image_caption": [],
|
| 594 |
+
"image_footnote": [],
|
| 595 |
+
"bbox": [
|
| 596 |
+
299,
|
| 597 |
+
398,
|
| 598 |
+
455,
|
| 599 |
+
467
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "in (Wu and Natarajan 2017). Differently, the head and tail score maps are generated by only applying the shrink operation, which submerges part of the center region. And top&bottom boundary region is then generated by applying both the expansion and shrink operations, which will partly submerge all of the other regions. In this way, we need less effort on post-processing to separate different text instances and it is easy to match their relative head (or tail) region with a center region. Boundary widths are constrained as $\\delta \\times \\min Len$ , where minLen is the minimum length of edges in the text polygon and $\\delta$ is a ratio parameter. Here, we set $\\delta = 0.2$ for top&bottom boundaries and $\\delta = 0.3$ for head and tail.",
|
| 606 |
+
"bbox": [
|
| 607 |
+
81,
|
| 608 |
+
523,
|
| 609 |
+
478,
|
| 610 |
+
702
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "(3) Generating geometry maps. As mentioned in Corner and Boundary Regression, pixels belonging to the head region are assigned geometry offset values in 4 channels $(\\Delta dx_{1}, \\Delta dy_{1}, \\Delta dx_{2}$ and $\\Delta dy_{2})$ corresponding the 1st and 4th key corner, as shown in Figure 3(c). Similarly, the geometry map of the tail region is also formed in 4 channels. The geometry values of the center text region are computed as the horizontal and vertical offsets to the nearest boundaries, shown as $\\Delta dx_{1}^{\\prime}, \\Delta dy_{1}^{\\prime}, \\Delta dx_{2}^{\\prime}$ and $\\Delta dy_{2}^{\\prime}$ in Figure 3(d).",
|
| 617 |
+
"bbox": [
|
| 618 |
+
81,
|
| 619 |
+
704,
|
| 620 |
+
478,
|
| 621 |
+
830
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 3
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "3.3 Shape Transform Module",
|
| 628 |
+
"text_level": 1,
|
| 629 |
+
"bbox": [
|
| 630 |
+
83,
|
| 631 |
+
840,
|
| 632 |
+
323,
|
| 633 |
+
857
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 3
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "STM is designed to iteratively generate initial fiducial points around text instances and transform text feature regions into",
|
| 640 |
+
"bbox": [
|
| 641 |
+
81,
|
| 642 |
+
859,
|
| 643 |
+
478,
|
| 644 |
+
888
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 3
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "image",
|
| 650 |
+
"img_path": "images/ee26c35bdc91ca027badac72a56d0fc3c240fc553f1ebf14f20e3c607989e998.jpg",
|
| 651 |
+
"image_caption": [
|
| 652 |
+
"Figure 4: The fiducial points generation process."
|
| 653 |
+
],
|
| 654 |
+
"image_footnote": [],
|
| 655 |
+
"bbox": [
|
| 656 |
+
547,
|
| 657 |
+
320,
|
| 658 |
+
890,
|
| 659 |
+
407
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 3
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "regular shapes with the supervision of following recognition.",
|
| 666 |
+
"bbox": [
|
| 667 |
+
514,
|
| 668 |
+
460,
|
| 669 |
+
911,
|
| 670 |
+
474
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 3
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "Fiducial Points Generation With the learned segmentation maps and geometry maps, we propose to generate preset $2 \\times N$ potential fiducial points ( $N \\geq 2$ ) for each text instance, denoted as $\\{P_1, \\dots, P_N, P_{N+1}, \\dots, P_{2 \\times N}\\}$ , which can be divided into two stages.",
|
| 677 |
+
"bbox": [
|
| 678 |
+
514,
|
| 679 |
+
481,
|
| 680 |
+
911,
|
| 681 |
+
550
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 3
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "(1) Generating four corner points. We first obtain the positions of four corner fiducial points for each text feature region by averaging the coordinate of pixels with their predicted offsets in corresponding boundaries. Taking the 1-st corner point $(P_{1})$ as an example, it is computed based on all pixels in the head region $\\mathcal{R}_{\\mathcal{H}}$ , and formalized by",
|
| 688 |
+
"bbox": [
|
| 689 |
+
514,
|
| 690 |
+
551,
|
| 691 |
+
913,
|
| 692 |
+
635
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 3
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "equation",
|
| 698 |
+
"text": "\n$$\nP _ {1} = \\left(\\frac {\\sum_ {(x , y) \\in \\mathcal {R} _ {\\mathcal {H}}} (x + \\Delta d x)}{| | \\mathcal {R} _ {\\mathcal {H}} | |}, \\frac {\\sum_ {(x , y) \\in \\mathcal {R} _ {\\mathcal {H}}} (y + \\Delta d y)}{| | \\mathcal {R} _ {\\mathcal {H}} | |}\\right) \\tag {3}\n$$\n",
|
| 699 |
+
"text_format": "latex",
|
| 700 |
+
"bbox": [
|
| 701 |
+
521,
|
| 702 |
+
642,
|
| 703 |
+
911,
|
| 704 |
+
694
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 3
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "where $||.||$ means the number of pixels in $\\mathcal{R}_{\\mathcal{H}}$ , and $\\Delta dx, \\Delta dy$ mean the predicted corner offsets corresponding to $P_{1}$ . The other three corner points $(P_{N}$ in $\\mathcal{R}_{\\mathcal{H}}, P_{N+1}, P_{2 \\times N}$ in tail region $\\mathcal{R}_{\\mathcal{T}})$ can be calculated similarly.",
|
| 711 |
+
"bbox": [
|
| 712 |
+
514,
|
| 713 |
+
694,
|
| 714 |
+
911,
|
| 715 |
+
750
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 3
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "(2) Generating other fiducial points. After obtaining four corner fiducial points, the other fiducial points can be located using a dichotomous method. This strategy is suitable for any arbitrary shaped text even serious curved or in different reading orders.",
|
| 722 |
+
"bbox": [
|
| 723 |
+
514,
|
| 724 |
+
750,
|
| 725 |
+
913,
|
| 726 |
+
819
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 3
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "An example of the generation process is shown in Figure 4. We firstly connect $P_{1}$ and $P_{N}$ , and judge whether the connected line has a longer span in horizontal direction or vertical direction. Without loss generality, if it has a longer span in horizontal direction as shown, we calculate a middle",
|
| 733 |
+
"bbox": [
|
| 734 |
+
514,
|
| 735 |
+
819,
|
| 736 |
+
911,
|
| 737 |
+
888
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 3
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "point $P_{\\lfloor (N + 1) / 2\\rfloor}$ between $P_{1}$ and $P_N$ whose x-coordinate formed as:",
|
| 744 |
+
"bbox": [
|
| 745 |
+
81,
|
| 746 |
+
68,
|
| 747 |
+
478,
|
| 748 |
+
95
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 4
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "equation",
|
| 754 |
+
"text": "\n$$\nx _ {m i d} = \\frac {\\lceil (N - 1) / 2 \\rceil}{N - 1} \\times P _ {1, x} + \\frac {\\lfloor (N - 1) / 2 \\rfloor}{N - 1} \\times P _ {N, x} \\tag {4}\n$$\n",
|
| 755 |
+
"text_format": "latex",
|
| 756 |
+
"bbox": [
|
| 757 |
+
89,
|
| 758 |
+
98,
|
| 759 |
+
478,
|
| 760 |
+
128
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 4
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "Then we use the learned boundary offsets from detector to predict the y-coordinate of $P_{\\lfloor (N + 1) / 2\\rfloor}$ . Concretely, we define the band region $\\mathcal{B}_i$ as the part of the center region $\\mathcal{R}_C$ :",
|
| 767 |
+
"bbox": [
|
| 768 |
+
83,
|
| 769 |
+
132,
|
| 770 |
+
478,
|
| 771 |
+
176
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 4
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "equation",
|
| 777 |
+
"text": "\n$$\n\\mathcal {B} _ {\\lfloor \\frac {1 + N}{2} \\rfloor} = \\{(x, y) \\in \\mathcal {R} _ {\\mathcal {C}} | x \\in [ x _ {m i d} - \\Delta e p, x _ {m i d} + \\Delta e p ] \\} \\tag {5}\n$$\n",
|
| 778 |
+
"text_format": "latex",
|
| 779 |
+
"bbox": [
|
| 780 |
+
84,
|
| 781 |
+
179,
|
| 782 |
+
478,
|
| 783 |
+
210
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 4
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "where $\\Delta ep$ defines the range of the band region (default by 3). Similar to the generation of four corner fiducial points, we can use all pixels in the corresponding band region to predict an average y-coordinate for this fiducial point. Then, the coordinate of $P_{\\lfloor (N + 1) / 2\\rfloor}$ can be formed as:",
|
| 790 |
+
"bbox": [
|
| 791 |
+
81,
|
| 792 |
+
210,
|
| 793 |
+
478,
|
| 794 |
+
282
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 4
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "equation",
|
| 800 |
+
"text": "\n$$\nP _ {\\left\\lfloor \\frac {1 + N}{2} \\right\\rfloor} = \\left(x _ {m i d}, \\frac {\\sum_ {\\left(x _ {t} , y _ {t}\\right) \\in \\mathcal {B} _ {\\left\\lfloor \\frac {1 + N}{2} \\right\\rfloor}} y _ {t} + \\Delta d y _ {t} ^ {\\prime}}{\\left| \\left| \\mathcal {B} _ {\\left\\lfloor \\frac {1 + N}{2} \\right\\rfloor} \\right| \\right|}\\right) \\tag {6}\n$$\n",
|
| 801 |
+
"text_format": "latex",
|
| 802 |
+
"bbox": [
|
| 803 |
+
102,
|
| 804 |
+
286,
|
| 805 |
+
478,
|
| 806 |
+
335
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 4
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "where $\\Delta dy_t'$ is the learned boundary offset value to the top-boundary $(\\Delta dy_1')$ . This process can be iteratively conducted using corresponding $\\Delta dx_t'$ or $\\Delta dy_t'$ until all of the fiducial points be calculated. Similarly, the fiducial points on the bottom boundary can be calculated by connecting $P_{N+1}$ and $P_{2\\times N}$ and using the same strategy.",
|
| 813 |
+
"bbox": [
|
| 814 |
+
81,
|
| 815 |
+
339,
|
| 816 |
+
478,
|
| 817 |
+
425
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 4
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "Shape Transformation With the generated potential fiducial points on text boundaries, we can explicitly transform an irregular feature region $\\mathcal{R}$ into a regular form $\\mathcal{R}^*$ . Here, fiducial points are mapped into some preset positions of the transformed feature map by directly applying TPS to the original feature regions. Specifically, we transform all feature regions into a region with width $W$ and height $H$ :",
|
| 824 |
+
"bbox": [
|
| 825 |
+
81,
|
| 826 |
+
429,
|
| 827 |
+
480,
|
| 828 |
+
527
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 4
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "equation",
|
| 834 |
+
"text": "\n$$\n\\mathcal {R} ^ {*} = T P S ^ {- 1} (\\mathcal {P}, \\mathcal {R}), \\tag {7}\n$$\n",
|
| 835 |
+
"text_format": "latex",
|
| 836 |
+
"bbox": [
|
| 837 |
+
204,
|
| 838 |
+
531,
|
| 839 |
+
478,
|
| 840 |
+
547
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 4
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "where the fiducial point $P_{i}\\in \\mathcal{P}$ will be mapped into:",
|
| 847 |
+
"bbox": [
|
| 848 |
+
83,
|
| 849 |
+
551,
|
| 850 |
+
434,
|
| 851 |
+
568
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 4
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "equation",
|
| 857 |
+
"text": "\n$$\nP _ {i} ^ {*} = \\left\\{ \\begin{array}{c} \\left((i - 1) \\times \\frac {H - 2 \\times \\Delta w}{N - 1} + \\Delta w, \\Delta h\\right), 1 \\leq i \\leq N \\\\ \\left((2 \\times N - i) \\times \\frac {H - 2 \\times \\Delta w}{N - 1} + \\Delta w, H - \\Delta h\\right), \\\\ N < i \\leq 2 \\times N \\end{array} \\right. \\tag {8}\n$$\n",
|
| 858 |
+
"text_format": "latex",
|
| 859 |
+
"bbox": [
|
| 860 |
+
83,
|
| 861 |
+
571,
|
| 862 |
+
478,
|
| 863 |
+
646
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 4
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "where $\\Delta w$ and $\\Delta h$ are preset offsets (default by $0.1\\times W$ and $0.1\\times H$ ) to preserve space for fiducial points tuning.",
|
| 870 |
+
"bbox": [
|
| 871 |
+
81,
|
| 872 |
+
646,
|
| 873 |
+
478,
|
| 874 |
+
674
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 4
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Then, all text feature regions are packed into a batch and sent to the following recognition part. Here, we assume that the final predicted character strings $Y$ are generated as:",
|
| 881 |
+
"bbox": [
|
| 882 |
+
81,
|
| 883 |
+
674,
|
| 884 |
+
480,
|
| 885 |
+
715
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 4
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "equation",
|
| 891 |
+
"text": "\n$$\nY = \\operatorname {R e c o g} \\left(\\mathcal {R} ^ {*}\\right), \\tag {9}\n$$\n",
|
| 892 |
+
"text_format": "latex",
|
| 893 |
+
"bbox": [
|
| 894 |
+
218,
|
| 895 |
+
720,
|
| 896 |
+
478,
|
| 897 |
+
736
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 4
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "where 'Recog' is the sequence recognition process.",
|
| 904 |
+
"bbox": [
|
| 905 |
+
83,
|
| 906 |
+
741,
|
| 907 |
+
424,
|
| 908 |
+
757
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 4
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Dynamically Finetuning Fiducial Points The assumption here is that although text detector supervised by polygon annotations can generate satisfying polygon masks, the results may not always suitable for the following recognition. To avoid the suboptimal problem and improve overall performance, Text Perceptron will back-propagate differences from 'Recog' to each pixel value in $\\mathcal{R}$ via STM, i.e.",
|
| 915 |
+
"bbox": [
|
| 916 |
+
81,
|
| 917 |
+
761,
|
| 918 |
+
480,
|
| 919 |
+
859
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 4
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "equation",
|
| 925 |
+
"text": "\n$$\n\\Delta \\mathcal {R} = \\frac {\\partial Y}{\\partial \\mathcal {R} ^ {*}} \\frac {\\partial \\mathcal {R} ^ {*}}{\\partial \\mathcal {R}}. \\tag {10}\n$$\n",
|
| 926 |
+
"text_format": "latex",
|
| 927 |
+
"bbox": [
|
| 928 |
+
215,
|
| 929 |
+
863,
|
| 930 |
+
478,
|
| 931 |
+
893
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 4
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "Then we can calculate the adjustment values of $\\mathcal{P}$ by",
|
| 938 |
+
"bbox": [
|
| 939 |
+
517,
|
| 940 |
+
68,
|
| 941 |
+
867,
|
| 942 |
+
84
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 4
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "equation",
|
| 948 |
+
"text": "\n$$\n\\Delta \\mathcal {P} = \\frac {\\partial Y}{\\partial \\mathcal {R} ^ {*}} \\frac {\\partial \\mathcal {R} ^ {*}}{\\partial \\mathcal {R}} \\frac {\\partial \\mathcal {R}}{\\partial \\mathcal {P}}. \\tag {11}\n$$\n",
|
| 949 |
+
"text_format": "latex",
|
| 950 |
+
"bbox": [
|
| 951 |
+
637,
|
| 952 |
+
89,
|
| 953 |
+
911,
|
| 954 |
+
121
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 4
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Furthermore, we back-propagate $\\Delta \\mathcal{P}$ to the corresponding geometry maps in head, tail and band regions. Formally, for each pixel $pi$ , we have",
|
| 961 |
+
"bbox": [
|
| 962 |
+
516,
|
| 963 |
+
126,
|
| 964 |
+
913,
|
| 965 |
+
169
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 4
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "equation",
|
| 971 |
+
"text": "\n$$\n\\Delta p i = \\Delta \\hat {p i} + \\frac {\\Delta \\mathcal {P}}{\\| \\mathcal {R} _ {\\mathcal {R} ^ {*}} \\|}, \\tag {12}\n$$\n",
|
| 972 |
+
"text_format": "latex",
|
| 973 |
+
"bbox": [
|
| 974 |
+
633,
|
| 975 |
+
176,
|
| 976 |
+
911,
|
| 977 |
+
209
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 4
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "where $\\mathcal{R}_{\\mathcal{R}^*}\\in \\{\\mathcal{R}_H,\\mathcal{R}_T,\\mathcal{B}\\}$ and $\\Delta \\hat{p i}$ is calculated from $\\mathcal{L}_{\\text{corner}}$ or $\\mathcal{L}_{\\text{boundary}}$ .",
|
| 984 |
+
"bbox": [
|
| 985 |
+
516,
|
| 986 |
+
217,
|
| 987 |
+
913,
|
| 988 |
+
248
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 4
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "3.4 End-to-End Training",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
516,
|
| 998 |
+
258,
|
| 999 |
+
725,
|
| 1000 |
+
273
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 4
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Our recognition part can be implemented by any sequence-based recognition network, such as CRNN (Shi, Bai, and Yao 2017) or (Cheng et al. 2017).",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
516,
|
| 1009 |
+
277,
|
| 1010 |
+
913,
|
| 1011 |
+
319
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 4
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "The loss of the whole framework contains the following parts: the order-aware multi-class semantic segmentation, the corner regressions for pixels in head and tail, the boundary offset regression for pixels in the center region and the word recognition, that is,",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
516,
|
| 1020 |
+
319,
|
| 1021 |
+
913,
|
| 1022 |
+
390
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 4
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "equation",
|
| 1028 |
+
"text": "\n$$\n\\mathcal {L} = \\mathcal {L} _ {c l s} + \\lambda_ {b} \\mathcal {L} _ {\\text {c o r n e r}} + \\lambda_ {c} \\mathcal {L} _ {\\text {b o u n d a r y}} + \\lambda_ {r} \\mathcal {L} _ {\\text {r e c o g}}, \\tag {13}\n$$\n",
|
| 1029 |
+
"text_format": "latex",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
529,
|
| 1032 |
+
397,
|
| 1033 |
+
911,
|
| 1034 |
+
415
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 4
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "where $\\lambda_{b},\\lambda_{c}$ and $\\lambda_{r}$ are auto-tunable parameters, and $\\mathcal{L}_{recog}$ is the loss from recognition.",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
516,
|
| 1043 |
+
421,
|
| 1044 |
+
911,
|
| 1045 |
+
449
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 4
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Since learning fiducial points highly depends on the segmentation map learning, we use a soft loss weight strategy to automatically tune $\\lambda_{b},\\lambda_{c}$ and $\\lambda_{r}$ . In other words, in the first few epochs, fiducial points are mainly adjusted by regression tasks; while at the last few epochs, points are mainly restricted to recognition. Formally,",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
516,
|
| 1054 |
+
449,
|
| 1055 |
+
913,
|
| 1056 |
+
532
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 4
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "equation",
|
| 1062 |
+
"text": "\n$$\n\\lambda_ {b} = \\lambda_ {c} = \\lambda^ {*} - \\max (0. 0 2 \\times E, 0. 5), \\tag {14}\n$$\n",
|
| 1063 |
+
"text_format": "latex",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
584,
|
| 1066 |
+
541,
|
| 1067 |
+
911,
|
| 1068 |
+
556
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 4
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "equation",
|
| 1074 |
+
"text": "\n$$\n\\lambda_ {r} = \\min \\left(\\max (- 0. 1 + 0. 0 2 \\times E, 0), \\lambda_ {r} ^ {*}\\right), \\tag {15}\n$$\n",
|
| 1075 |
+
"text_format": "latex",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
555,
|
| 1078 |
+
564,
|
| 1079 |
+
911,
|
| 1080 |
+
580
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 4
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "where $E$ is the number of training epochs, and $\\lambda^{*}$ and $\\lambda_r^*$ separately control the maximum loss weight of regression and recognition. In our experiments, we set $\\lambda^{*} = 0.6$ and $\\lambda_r^* = 0.8$ .",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
516,
|
| 1089 |
+
584,
|
| 1090 |
+
913,
|
| 1091 |
+
642
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 4
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "4 Experiments",
|
| 1098 |
+
"text_level": 1,
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
643,
|
| 1101 |
+
654,
|
| 1102 |
+
785,
|
| 1103 |
+
671
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 4
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "4.1 Datasets",
|
| 1110 |
+
"text_level": 1,
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
516,
|
| 1113 |
+
674,
|
| 1114 |
+
627,
|
| 1115 |
+
688
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 4
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "The datasets used in this work are listed as follows:",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
516,
|
| 1124 |
+
693,
|
| 1125 |
+
857,
|
| 1126 |
+
705
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 4
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "SynthText 800k (Gupta, Vedaldi, and Zisserman 2016) contains 800k synthetic images that are generated by rendering synthetic text with natural images, and it is used as the pre-training dataset.",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
516,
|
| 1135 |
+
707,
|
| 1136 |
+
913,
|
| 1137 |
+
763
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 4
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "ICDAR2013 (Karatzas et al. 2013) (abbr. IC13) is collected as the focused scene text, which is mainly horizontal text containing 229 training images and 233 testing images.",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
516,
|
| 1146 |
+
763,
|
| 1147 |
+
913,
|
| 1148 |
+
805
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 4
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "ICDAR2015 (Karatzas et al. 2015) (abbr. IC15) is collected as incidental scene text consisting of many perspective text. It contains 1000 training and 500 testing images.",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
516,
|
| 1157 |
+
805,
|
| 1158 |
+
913,
|
| 1159 |
+
847
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 4
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Total-Text (Ch'ng and Chan 2017) consists of multi-oriented and curve text and is therefore one of the important benchmarks in evaluating shape-robust text spotting tasks. It",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
516,
|
| 1168 |
+
845,
|
| 1169 |
+
913,
|
| 1170 |
+
888
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 4
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "table",
|
| 1176 |
+
"img_path": "images/21775afdfd3d5de31a0fe0826b09a76eb405812829b2457723f2f0769fef016d.jpg",
|
| 1177 |
+
"table_caption": [],
|
| 1178 |
+
"table_footnote": [],
|
| 1179 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td rowspan=\"2\">Method</td><td colspan=\"4\">Detection</td><td colspan=\"3\">End-to-End</td><td colspan=\"3\">Word Spotting</td></tr><tr><td>P</td><td>R</td><td>F</td><td>FPS</td><td>S</td><td>W</td><td>G</td><td>S</td><td>W</td><td>G</td></tr><tr><td rowspan=\"9\">IC13</td><td>Textboxes (2017)</td><td>88.0</td><td>83.0</td><td>85.0</td><td>1.37</td><td>91.6</td><td>89.7</td><td>83.9</td><td>93.9</td><td>92.0</td><td>85.9</td></tr><tr><td>Li et al. (2017)</td><td>91.4</td><td>80.5</td><td>85.6</td><td>-</td><td>91.1</td><td>89.8</td><td>84.6</td><td>94.2</td><td>92.4</td><td>88.2</td></tr><tr><td>TextSpotter (2017)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>89.0</td><td>86.0</td><td>77.0</td><td>92.0</td><td>89.0</td><td>81.0</td></tr><tr><td>He et al. (2018)</td><td>91.0</td><td>88.0</td><td>90.0</td><td>-</td><td>91.0</td><td>89.0</td><td>86.0</td><td>93.0</td><td>92.0</td><td>87.0</td></tr><tr><td>FOTS (2018)</td><td>-</td><td>-</td><td>88.2</td><td>23.9</td><td>88.8</td><td>87.1</td><td>80.8</td><td>92.7</td><td>90.7</td><td>83.5</td></tr><tr><td>TextNet* (2018)</td><td>93.3</td><td>89.4</td><td>91.3</td><td>-</td><td>89.8</td><td>88.9</td><td>83.0</td><td>94.6</td><td>94.5</td><td>87.0</td></tr><tr><td>Mask TextSpotter* (2018)</td><td>95.0</td><td>88.6</td><td>91.7</td><td>4.6</td><td>92.2</td><td>91.1</td><td>86.5</td><td>92.5</td><td>92.0</td><td>88.2</td></tr><tr><td>Ours (2-stage)</td><td>92.7</td><td>88.7</td><td>90.7</td><td>10.3</td><td>90.8</td><td>90.0</td><td>84.4</td><td>93.7</td><td>93.1</td><td>86.2</td></tr><tr><td>Ours (End-to-end)</td><td>94.7</td><td>88.9</td><td>91.7</td><td>10.3</td><td>91.4</td><td>90.7</td><td>85.8</td><td>94.9</td><td>94.0</td><td>88.5</td></tr><tr><td rowspan=\"11\">IC15</td><td>EAST (2017)</td><td>83.6</td><td>73.5</td><td>78.2</td><td>13.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>TextSnake* (2018)</td><td>84.9</td><td>80.4</td><td>82.6</td><td>1.1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>SPCNet* (2019)</td><td>88.7</td><td>85.8</td><td>87.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>PSENet-1s* (2019)</td><td>86.9</td><td>84.5</td><td>85.7</td><td>1.6</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>TextSpotter (2017)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>54.0</td><td>51.0</td><td>47.0</td><td>58.0</td><td>53.0</td><td>51.0</td></tr><tr><td>He et al. (2018)</td><td>87.0</td><td>86.0</td><td>87.0</td><td>-</td><td>82.0</td><td>77.0</td><td>63.0</td><td>85.0</td><td>80.0</td><td>65.0</td></tr><tr><td>FOTS (2018)</td><td>91.0</td><td>85.2</td><td>88.0</td><td>7.8</td><td>81.1</td><td>75.9</td><td>60.8</td><td>84.7</td><td>79.3</td><td>63.3</td></tr><tr><td>TextNet* (2018)</td><td>89.4</td><td>85.4</td><td>87.4</td><td>-</td><td>78.7</td><td>74.9</td><td>60.5</td><td>82.4</td><td>78.4</td><td>62.4</td></tr><tr><td>Mask TextSpotter* (2018)</td><td>91.6</td><td>81.0</td><td>86.0</td><td>4.8</td><td>79.3</td><td>73.0</td><td>62.4</td><td>79.3</td><td>74.5</td><td>64.2</td></tr><tr><td>Ours (2-stage)</td><td>91.6</td><td>81.8</td><td>86.4</td><td>8.8</td><td>78.2</td><td>74.5</td><td>63.0</td><td>80.6</td><td>76.6</td><td>65.5</td></tr><tr><td>Ours (End-to-end)</td><td>92.3</td><td>82.5</td><td>87.1</td><td>8.8</td><td>80.5</td><td>76.6</td><td>65.1</td><td>84.1</td><td>79.4</td><td>67.9</td></tr></table>",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
173,
|
| 1182 |
+
65,
|
| 1183 |
+
823,
|
| 1184 |
+
335
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 5
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Table 1: Results on IC13 and IC15. 'P', 'R' and 'F' separately mean the 'Precision', 'Recall' and 'F-Measure'. 'S', 'W' and 'G' mean recognition with strong, weak and generic lexicon, respectively. Superscript '\\*' means that the method considered the detection of irregular text.",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
81,
|
| 1193 |
+
345,
|
| 1194 |
+
911,
|
| 1195 |
+
390
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 5
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "contains 1255 training and 300 testing images, and each text is annotated by a word-level polygon with transcription.",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
81,
|
| 1204 |
+
415,
|
| 1205 |
+
477,
|
| 1206 |
+
443
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 5
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "SCUT-CTW1500 (Liu et al. 2019a) (abbr. CTW1500) is a curved text benchmark consists of 1000 training and 500 testing images. In contrast to Total-Text, all text instances are annotated with 14-point polygons in the line-level.",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
81,
|
| 1215 |
+
443,
|
| 1216 |
+
478,
|
| 1217 |
+
501
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 5
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "4.2 Implementation Details",
|
| 1224 |
+
"text_level": 1,
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
83,
|
| 1227 |
+
510,
|
| 1228 |
+
308,
|
| 1229 |
+
525
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 5
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "The detector uses ResNet-50 as the backbone and further be modified following the suggestions from (Huang et al. 2017) for obtaining dense features. We remove the fifth stage, modify conv4_1 layer with stride=1 instead of 2, and apply atrous convolution for all subsequent layers to maintain enough receptive field. Training loss is calculated from the outputs of three stages: the fourth stage $(8\\times)$ , the third stage $(8\\times)$ , and the second stage $(4\\times)$ feature maps of FPN, and testing is only conducted on $4\\times$ feature map. We directly adopt the attention-based network described in (Cheng et al. 2017) as the recognition model. All experiments are implemented in Caffe with 8 32GB-Tesla-V100 GPUs. The code will be published soon.",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
81,
|
| 1238 |
+
527,
|
| 1239 |
+
478,
|
| 1240 |
+
708
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 5
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Data augmentation. We conduct data augmentation by simultaneously 1) randomly scaling the longer side of input images with length in range of [720, 1600], 2) randomly rotating the images with the degree in range of $[-15^{\\circ}, 15^{\\circ}]$ , and 3) applying random brightness, jitters, and contrast on input images.",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
81,
|
| 1249 |
+
708,
|
| 1250 |
+
478,
|
| 1251 |
+
792
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 5
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "Training details. The networks are trained by SGD with batch-size=8, momentum=0.9 and weight-decay=5 × 10 $^{-4}$ . For both detection and recognition part, we separately pretrain them on SynthText for 5 epochs with initial learning rate 2 × 10 $^{-3}$ . Then, we jointly fine-tune the whole network using the soft loss weight strategy mention previously on each dataset for other 80 epochs. The initial learning rate is",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
81,
|
| 1260 |
+
791,
|
| 1261 |
+
480,
|
| 1262 |
+
891
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 5
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "$1 \\times 10^{-3}$ . The learning rate will be divided by 10 for every 20 epochs. Online hard example mining (OHEM) (Shrivastava, Gupta, and Girshick 2016) strategy is also applied for balancing the foreground and background samples.",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
514,
|
| 1271 |
+
415,
|
| 1272 |
+
911,
|
| 1273 |
+
470
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 5
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Testing details. We resize input images with the longer side 1440 for IC13, 2000 for IC15, 1350 for Total-text and 1250 for CTW1500. We set the number of fiducial points as 4 for two standard text datasets and 14 for two irregular text datasets. The detection results are given by connecting the predicted fiducial points. Note that, all images are tested in the single-scale.",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
514,
|
| 1282 |
+
470,
|
| 1283 |
+
913,
|
| 1284 |
+
569
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 5
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "4.3 Results on Standard Text Benchmarks",
|
| 1291 |
+
"text_level": 1,
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
516,
|
| 1294 |
+
579,
|
| 1295 |
+
856,
|
| 1296 |
+
593
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 5
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "Evaluation on horizontal text. We first evaluate our method on IC13 mainly consisting of horizontal texts. Table 1 shows the results, and represents that our method achieve competitive performance compared to previous methods on the 'Detection', 'End-to-End' and 'Word Spotting' evaluation items. Besides, our method is also very efficient and achieves '10.3' of Frame Per Second (abbr. FPS).",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
514,
|
| 1305 |
+
595,
|
| 1306 |
+
911,
|
| 1307 |
+
694
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 5
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Evaluation on perspective text. We evaluate our method on IC15 containing many perspective texts, and the results are shown in Table 1. In the detection stage, our method achieves comparable performance with the irregular text spotting methods such as TextNet and Mask TextSpotter. In the 'End-to-End' and 'Word Spotting' tasks, our method significantly outperforms previous irregular-text-based methods and achieves the remarkable state-of-the-art performance on general lexicon cases, which demonstrates the effectiveness of our method.",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
514,
|
| 1316 |
+
694,
|
| 1317 |
+
913,
|
| 1318 |
+
832
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 5
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "4.4 Results on Irregular Text Benchmarks",
|
| 1325 |
+
"text_level": 1,
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
516,
|
| 1328 |
+
842,
|
| 1329 |
+
856,
|
| 1330 |
+
858
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 5
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "We test our method on two irregular text benchmarks: Total-Text and CTW1500, as shown in Table 2 and 3. In the de",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
516,
|
| 1339 |
+
859,
|
| 1340 |
+
911,
|
| 1341 |
+
888
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 5
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "table",
|
| 1347 |
+
"img_path": "images/1dbc7cc65f3d5bebf2ef5863750c8e9f445e5937d7b1184e04c059d407f4da1f.jpg",
|
| 1348 |
+
"table_caption": [],
|
| 1349 |
+
"table_footnote": [],
|
| 1350 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">Detection</td><td colspan=\"2\">End-to-End</td></tr><tr><td>P</td><td>R</td><td>F</td><td>None</td><td>Full</td></tr><tr><td>TextSnake (2018)</td><td>82.7</td><td>74.5</td><td>78.4</td><td>-</td><td>-</td></tr><tr><td>FTSN (2018)</td><td>84.7</td><td>78.0</td><td>81.3</td><td>-</td><td>-</td></tr><tr><td>TextField (2019)</td><td>81.2</td><td>79.9</td><td>80.6</td><td>-</td><td>-</td></tr><tr><td>SPCNet (2019)</td><td>83.0</td><td>82.8</td><td>82.9</td><td>-</td><td>-</td></tr><tr><td>CSE (2019b)</td><td>81.4</td><td>79.1</td><td>80.2</td><td>-</td><td>-</td></tr><tr><td>PSENet-1s (2019)</td><td>84.0</td><td>78.0</td><td>80.9</td><td>-</td><td>-</td></tr><tr><td>LOMO (2019)</td><td>75.7</td><td>88.6</td><td>81.6</td><td>-</td><td>-</td></tr><tr><td>Mask TextSpotter (2018)</td><td>69.0</td><td>55.0</td><td>61.3</td><td>52.9</td><td>71.8</td></tr><tr><td>TextNet (2018)</td><td>68.2</td><td>59.5</td><td>63.5</td><td>54.0</td><td>-</td></tr><tr><td>Ours (2-stage)</td><td>88.1</td><td>78.9</td><td>83.3</td><td>63.3</td><td>73.9</td></tr><tr><td>Ours (End-to-end)</td><td>88.8</td><td>81.8</td><td>85.2</td><td>69.7</td><td>78.3</td></tr></table>",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
112,
|
| 1353 |
+
65,
|
| 1354 |
+
450,
|
| 1355 |
+
209
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 6
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "tection stage, our method outperforms all previous methods and surpasses the best result $2.3\\%$ on Total-Text and $2.4\\%$ on CTW1500 on F-measure evaluation.",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
81,
|
| 1364 |
+
275,
|
| 1365 |
+
478,
|
| 1366 |
+
316
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 6
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "Moreover, our method significantly outperforms previous methods on the precision item, which attributes to the false-positive filtering strategy. In the end-to-end case, our method significantly surpasses the best-reported results (Sun et al. 2018) by $15.7\\%$ on 'None' and the best of results (Lyu et al. 2018) by $6.5\\%$ on 'Full', which mainly attributes to STM achieving the end-to-end training strategies. Since CTW1500 releases the recognition annotation recently, there is no reported result on the end-to-end evaluation. Here, we report the end-to-end results lexicon-freeely, and believe our method will significantly outperform previous methods.",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
81,
|
| 1375 |
+
316,
|
| 1376 |
+
478,
|
| 1377 |
+
470
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 6
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "table",
|
| 1383 |
+
"img_path": "images/8c949cb8e3dcbb2d64f6c5937b6530546d97834fb4539096f88ba8a8b2a937d1.jpg",
|
| 1384 |
+
"table_caption": [
|
| 1385 |
+
"Table 2: Result on Total-Text. \"Full\" indicates lexicons of all images are combined. \"None\" means lexicon-free."
|
| 1386 |
+
],
|
| 1387 |
+
"table_footnote": [],
|
| 1388 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">Detection</td><td>End-to-End</td></tr><tr><td>P</td><td>R</td><td>F</td><td>None</td></tr><tr><td>TextSnake (2018)</td><td>69.7</td><td>85.3</td><td>75.6</td><td>-</td></tr><tr><td>TextField (2019)</td><td>83.0</td><td>79.8</td><td>81.4</td><td>-</td></tr><tr><td>CSE (2019b)</td><td>81.1</td><td>76.0</td><td>78.4</td><td>-</td></tr><tr><td>PSENet-1s (2019)</td><td>84.8</td><td>79.7</td><td>82.2</td><td>-</td></tr><tr><td>LOMO (2019)</td><td>69.6</td><td>89.2</td><td>78.4</td><td>-</td></tr><tr><td>Ours (2-stage)</td><td>88.7</td><td>78.2</td><td>83.1</td><td>48.6</td></tr><tr><td>Ours (End-to-end)</td><td>87.5</td><td>81.9</td><td>84.6</td><td>57.0</td></tr></table>",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
132,
|
| 1391 |
+
483,
|
| 1392 |
+
431,
|
| 1393 |
+
583
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 6
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "In summary, the results on Total-Text and CTW1500 demonstrate the effectiveness of our method for arbitrary-shaped text spotting. Moreover, compared with 2-staged results, the end-to-end trainable strategy markedly boosts text spotting performance, especially for the recognition part.",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
81,
|
| 1402 |
+
621,
|
| 1403 |
+
478,
|
| 1404 |
+
691
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 6
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "4.5 Ablation Results of Fiducial Points",
|
| 1411 |
+
"text_level": 1,
|
| 1412 |
+
"bbox": [
|
| 1413 |
+
83,
|
| 1414 |
+
703,
|
| 1415 |
+
393,
|
| 1416 |
+
717
|
| 1417 |
+
],
|
| 1418 |
+
"page_idx": 6
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"type": "text",
|
| 1422 |
+
"text": "The number of fiducial points directly influences the detection and end-to-end results when texts are displayed in the curve or even waved shapes. Table 4 shows the result that how the number of fiducial points affects the detection and end-to-end evaluations on different benchmarks. It is clear that 4 points annotation is enough for regular benchmark such as IC15, and there is almost no influence on the result when the number of fiducial points increases. On the other hand, for two irregular benchmarks, the detection F-score as well as end-to-end F-score raises along with the increasing number of fiducial points, and the performance becomes stable when $2 \\times N \\geq 10$ .",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
81,
|
| 1425 |
+
720,
|
| 1426 |
+
478,
|
| 1427 |
+
888
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 6
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "table",
|
| 1433 |
+
"img_path": "images/addde07bf5259c984c4507703aa9b3bf447fe8602ecc1db5e80295f95e782925.jpg",
|
| 1434 |
+
"table_caption": [
|
| 1435 |
+
"Table 3: Result on CTW1500. 'None' means lexicon-free."
|
| 1436 |
+
],
|
| 1437 |
+
"table_footnote": [],
|
| 1438 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"8\">Number of fiducial points</td></tr><tr><td>4</td><td>6</td><td>8</td><td>10</td><td>12</td><td>14</td><td>16</td><td>18</td></tr><tr><td>IC15</td><td>87.1</td><td>87.0</td><td>87.0</td><td>86.9</td><td>87.0</td><td>86.9</td><td>86.8</td><td>86.8</td></tr><tr><td>Total-Text</td><td>71.5</td><td>82.8</td><td>84.5</td><td>85.0</td><td>85.2</td><td>85.2</td><td>85.2</td><td>85.3</td></tr><tr><td>CTW1500</td><td>68.7</td><td>81.9</td><td>84.1</td><td>84.3</td><td>84.4</td><td>84.6</td><td>84.4</td><td>84.5</td></tr><tr><td>Total-Text</td><td>55.9</td><td>68.5</td><td>69.8</td><td>69.6</td><td>69.8</td><td>69.7</td><td>69.5</td><td>69.9</td></tr><tr><td>CTW1500</td><td>40.2</td><td>52.2</td><td>56.2</td><td>57.0</td><td>57.1</td><td>57.0</td><td>56.5</td><td>56.4</td></tr></table>",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
529,
|
| 1441 |
+
65,
|
| 1442 |
+
903,
|
| 1443 |
+
148
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 6
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "Table 4: Detection (top part) and end-to-end (bottom part) evaluation (F-measure) under varied number of fiducial points for different benchmarks.",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
514,
|
| 1452 |
+
157,
|
| 1453 |
+
911,
|
| 1454 |
+
200
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 6
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "image",
|
| 1460 |
+
"img_path": "images/1b358eb28937f4a020b5eb7a2c03eb8c30391abfd6993c4b9d7e3f7c7b80f582.jpg",
|
| 1461 |
+
"image_caption": [
|
| 1462 |
+
"N=2"
|
| 1463 |
+
],
|
| 1464 |
+
"image_footnote": [],
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
521,
|
| 1467 |
+
214,
|
| 1468 |
+
619,
|
| 1469 |
+
277
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 6
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "image",
|
| 1475 |
+
"img_path": "images/4058d7caa4e665f2aea1b84093b927ba6ef30b70f1c02469bd5bd2e08e494d45.jpg",
|
| 1476 |
+
"image_caption": [
|
| 1477 |
+
"N=3"
|
| 1478 |
+
],
|
| 1479 |
+
"image_footnote": [],
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
622,
|
| 1482 |
+
214,
|
| 1483 |
+
714,
|
| 1484 |
+
277
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 6
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "image",
|
| 1490 |
+
"img_path": "images/3c5d9f93d1da7d76c3681142d9b2b7991de90401371b75249eba9948c7f7980c.jpg",
|
| 1491 |
+
"image_caption": [
|
| 1492 |
+
"N=5",
|
| 1493 |
+
"Figure 5: Results of Text Perceptron with different number of fiducial points (4,6,10,12)."
|
| 1494 |
+
],
|
| 1495 |
+
"image_footnote": [],
|
| 1496 |
+
"bbox": [
|
| 1497 |
+
718,
|
| 1498 |
+
214,
|
| 1499 |
+
812,
|
| 1500 |
+
277
|
| 1501 |
+
],
|
| 1502 |
+
"page_idx": 6
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "image",
|
| 1506 |
+
"img_path": "images/09849c0bc7515eaf7e898fb5d836fcc176f6c568b238b30e2e2689375d4dc2ee.jpg",
|
| 1507 |
+
"image_caption": [
|
| 1508 |
+
"N=6"
|
| 1509 |
+
],
|
| 1510 |
+
"image_footnote": [],
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
815,
|
| 1513 |
+
214,
|
| 1514 |
+
911,
|
| 1515 |
+
277
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 6
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "Figure 5 shows an example of end-to-end evaluation under different number of fiducial points. We see that the generated text masks by few fiducial points are hard to cover the entire curve texts. As the growing number of fiducial points, STM has more power to catch and rectify irregular text instances, which yields higher recognition accuracy.",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
514,
|
| 1524 |
+
359,
|
| 1525 |
+
911,
|
| 1526 |
+
443
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 6
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "In contrast to previous works, our method can generate any fixed number of fiducial points on text boundaries. The fiducial points generation method can also be used to annotate arbitrary-shaped text.",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
516,
|
| 1535 |
+
443,
|
| 1536 |
+
911,
|
| 1537 |
+
500
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 6
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "4.6 Visualization Results",
|
| 1544 |
+
"text_level": 1,
|
| 1545 |
+
"bbox": [
|
| 1546 |
+
517,
|
| 1547 |
+
511,
|
| 1548 |
+
723,
|
| 1549 |
+
526
|
| 1550 |
+
],
|
| 1551 |
+
"page_idx": 6
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"type": "image",
|
| 1555 |
+
"img_path": "images/c3159fd9b8b69be8d348b035db10733f5459d3a5ca972f282473d4192046ea76.jpg",
|
| 1556 |
+
"image_caption": [],
|
| 1557 |
+
"image_footnote": [],
|
| 1558 |
+
"bbox": [
|
| 1559 |
+
522,
|
| 1560 |
+
542,
|
| 1561 |
+
645,
|
| 1562 |
+
614
|
| 1563 |
+
],
|
| 1564 |
+
"page_idx": 6
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "image",
|
| 1568 |
+
"img_path": "images/859b16d31c15b99fd90a0e0cc90ea1c8296957686a725cc29c60b7168771373b.jpg",
|
| 1569 |
+
"image_caption": [],
|
| 1570 |
+
"image_footnote": [],
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
522,
|
| 1573 |
+
616,
|
| 1574 |
+
643,
|
| 1575 |
+
681
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 6
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "image",
|
| 1581 |
+
"img_path": "images/604c4c3b46be864b8853eb4529042b3ed32820b237d3d36082609bac0f0ced36.jpg",
|
| 1582 |
+
"image_caption": [
|
| 1583 |
+
"Figure 6: Visualization results on origin images."
|
| 1584 |
+
],
|
| 1585 |
+
"image_footnote": [],
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
522,
|
| 1588 |
+
681,
|
| 1589 |
+
643,
|
| 1590 |
+
744
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 6
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "image",
|
| 1596 |
+
"img_path": "images/535445b731db597f7357ffbc1ada3c5e257620cd4eb3f42cd5e7c49c959acc72.jpg",
|
| 1597 |
+
"image_caption": [],
|
| 1598 |
+
"image_footnote": [],
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
647,
|
| 1601 |
+
544,
|
| 1602 |
+
767,
|
| 1603 |
+
614
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 6
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "image",
|
| 1609 |
+
"img_path": "images/aa057c6fcfb38dea1529b41097c6b9f9a213f696b76330345cae48f65be1c317.jpg",
|
| 1610 |
+
"image_caption": [],
|
| 1611 |
+
"image_footnote": [],
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
647,
|
| 1614 |
+
616,
|
| 1615 |
+
767,
|
| 1616 |
+
681
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 6
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"type": "image",
|
| 1622 |
+
"img_path": "images/4729d4d065189713a97b5210634d51964a929d719c4a4ec6aff996a607fccfca.jpg",
|
| 1623 |
+
"image_caption": [],
|
| 1624 |
+
"image_footnote": [],
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
647,
|
| 1627 |
+
681,
|
| 1628 |
+
767,
|
| 1629 |
+
744
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 6
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "image",
|
| 1635 |
+
"img_path": "images/afdd9645fb106dfc10cfd24a071cb834c051e93cffde3902dddfa40c18541380.jpg",
|
| 1636 |
+
"image_caption": [],
|
| 1637 |
+
"image_footnote": [],
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
785,
|
| 1640 |
+
542,
|
| 1641 |
+
898,
|
| 1642 |
+
563
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 6
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "image",
|
| 1648 |
+
"img_path": "images/b7dcb35e90b89a6bb7a492a54273ad8e3926255c16c51c2b24456cb8063d2e52.jpg",
|
| 1649 |
+
"image_caption": [],
|
| 1650 |
+
"image_footnote": [],
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
787,
|
| 1653 |
+
568,
|
| 1654 |
+
874,
|
| 1655 |
+
588
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 6
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "image",
|
| 1661 |
+
"img_path": "images/7ede54a778143ecb656b8a8f05e2dd6eeebfbfc6898d04140caa9ffc68fe2a19.jpg",
|
| 1662 |
+
"image_caption": [],
|
| 1663 |
+
"image_footnote": [],
|
| 1664 |
+
"bbox": [
|
| 1665 |
+
787,
|
| 1666 |
+
595,
|
| 1667 |
+
872,
|
| 1668 |
+
614
|
| 1669 |
+
],
|
| 1670 |
+
"page_idx": 6
|
| 1671 |
+
},
|
| 1672 |
+
{
|
| 1673 |
+
"type": "image",
|
| 1674 |
+
"img_path": "images/5b34686e6d265baab16de4eaeae97e0aa49134747c1877399bdfdc94a5fed59a.jpg",
|
| 1675 |
+
"image_caption": [],
|
| 1676 |
+
"image_footnote": [],
|
| 1677 |
+
"bbox": [
|
| 1678 |
+
787,
|
| 1679 |
+
619,
|
| 1680 |
+
888,
|
| 1681 |
+
643
|
| 1682 |
+
],
|
| 1683 |
+
"page_idx": 6
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"type": "image",
|
| 1687 |
+
"img_path": "images/f0a596a3e44ad6a494ac775180b87c6a5be2b4e157faa77faf7d37016d487deb.jpg",
|
| 1688 |
+
"image_caption": [],
|
| 1689 |
+
"image_footnote": [],
|
| 1690 |
+
"bbox": [
|
| 1691 |
+
787,
|
| 1692 |
+
648,
|
| 1693 |
+
903,
|
| 1694 |
+
675
|
| 1695 |
+
],
|
| 1696 |
+
"page_idx": 6
|
| 1697 |
+
},
|
| 1698 |
+
{
|
| 1699 |
+
"type": "image",
|
| 1700 |
+
"img_path": "images/a8047e20532a377b50d842852af5d10e9527f52cf0cfaf34a4ee83f1a4db84a0.jpg",
|
| 1701 |
+
"image_caption": [],
|
| 1702 |
+
"image_footnote": [],
|
| 1703 |
+
"bbox": [
|
| 1704 |
+
787,
|
| 1705 |
+
683,
|
| 1706 |
+
877,
|
| 1707 |
+
710
|
| 1708 |
+
],
|
| 1709 |
+
"page_idx": 6
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "image",
|
| 1713 |
+
"img_path": "images/4c8ed77adac87aabbc0f9638077743ded65948aeb99952bcf5076be40226b8c7.jpg",
|
| 1714 |
+
"image_caption": [],
|
| 1715 |
+
"image_footnote": [],
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
787,
|
| 1718 |
+
715,
|
| 1719 |
+
885,
|
| 1720 |
+
739
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 6
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "text",
|
| 1726 |
+
"text": "Figure 6 and Figure 7 demonstrate some visualization results in Total-Text and CTW1500 datasets. Text Perceptron shows its powerful ability in catching the reading order of irregular scene text (including curved, long perspective, vertical, etc.), and with the help of fiducial points which can further recognize text in a much simpler way. From the segmentation results, we find that many of text-like false posi",
|
| 1727 |
+
"bbox": [
|
| 1728 |
+
514,
|
| 1729 |
+
790,
|
| 1730 |
+
913,
|
| 1731 |
+
888
|
| 1732 |
+
],
|
| 1733 |
+
"page_idx": 6
|
| 1734 |
+
},
|
| 1735 |
+
{
|
| 1736 |
+
"type": "image",
|
| 1737 |
+
"img_path": "images/88e5dba7330a5921431da9bffc7fbee85cf8f8fcc49e9fe0c4dab405a0152b2d.jpg",
|
| 1738 |
+
"image_caption": [
|
| 1739 |
+
"Figure 7: Visualization result on Total-Text and CTW1500. The first row displays the segmented results and the second row shows the end-to-end results. Fiducial points are also visualized as colored points on text boundaries."
|
| 1740 |
+
],
|
| 1741 |
+
"image_footnote": [],
|
| 1742 |
+
"bbox": [
|
| 1743 |
+
106,
|
| 1744 |
+
66,
|
| 1745 |
+
890,
|
| 1746 |
+
354
|
| 1747 |
+
],
|
| 1748 |
+
"page_idx": 7
|
| 1749 |
+
},
|
| 1750 |
+
{
|
| 1751 |
+
"type": "image",
|
| 1752 |
+
"img_path": "images/3bde24202cfaea7f4ee3358daf334de9c60dfa08e62240ef88c2c5420c5950b7.jpg",
|
| 1753 |
+
"image_caption": [],
|
| 1754 |
+
"image_footnote": [],
|
| 1755 |
+
"bbox": [
|
| 1756 |
+
125,
|
| 1757 |
+
424,
|
| 1758 |
+
315,
|
| 1759 |
+
507
|
| 1760 |
+
],
|
| 1761 |
+
"page_idx": 7
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "image",
|
| 1765 |
+
"img_path": "images/3a2a9b4669b639a56dcf3ba19ac8cc1dc77709ade15baed85182c1b220bced8a.jpg",
|
| 1766 |
+
"image_caption": [],
|
| 1767 |
+
"image_footnote": [],
|
| 1768 |
+
"bbox": [
|
| 1769 |
+
321,
|
| 1770 |
+
422,
|
| 1771 |
+
437,
|
| 1772 |
+
493
|
| 1773 |
+
],
|
| 1774 |
+
"page_idx": 7
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"type": "image",
|
| 1778 |
+
"img_path": "images/37bcb011a3d23d973197eea5336c16de239113e6f7cad8d67baacce20fd39abf.jpg",
|
| 1779 |
+
"image_caption": [
|
| 1780 |
+
"Figure 8: Visualization of some failure samples."
|
| 1781 |
+
],
|
| 1782 |
+
"image_footnote": [],
|
| 1783 |
+
"bbox": [
|
| 1784 |
+
125,
|
| 1785 |
+
508,
|
| 1786 |
+
313,
|
| 1787 |
+
590
|
| 1788 |
+
],
|
| 1789 |
+
"page_idx": 7
|
| 1790 |
+
},
|
| 1791 |
+
{
|
| 1792 |
+
"type": "image",
|
| 1793 |
+
"img_path": "images/8cacb221934d97822fb4fcae5f6733fea3622e4c0fa0c9a87f04d990947ad1e5.jpg",
|
| 1794 |
+
"image_caption": [],
|
| 1795 |
+
"image_footnote": [],
|
| 1796 |
+
"bbox": [
|
| 1797 |
+
323,
|
| 1798 |
+
500,
|
| 1799 |
+
437,
|
| 1800 |
+
569
|
| 1801 |
+
],
|
| 1802 |
+
"page_idx": 7
|
| 1803 |
+
},
|
| 1804 |
+
{
|
| 1805 |
+
"type": "image",
|
| 1806 |
+
"img_path": "images/2b3b41e9181a88ec352ff5135a89f2118a60658b46e019a2379b80a145481983.jpg",
|
| 1807 |
+
"image_caption": [],
|
| 1808 |
+
"image_footnote": [],
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
325,
|
| 1811 |
+
575,
|
| 1812 |
+
437,
|
| 1813 |
+
590
|
| 1814 |
+
],
|
| 1815 |
+
"page_idx": 7
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "text",
|
| 1819 |
+
"text": "tives have been filtered out due to the missing of head or tail boundary. This means the features of head or tail boundaries contain the different semantic information with that of the center region. Figure 6 also shows the visualization of some rectified irregular text instances, in which vertical texts can be well transformed into the \"lying-down\" shapes.",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
81,
|
| 1822 |
+
654,
|
| 1823 |
+
480,
|
| 1824 |
+
739
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 7
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "Failure Samples We illustrate some failure samples that are difficult for Text Perceptron, as shown in Figure 8.",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
81,
|
| 1833 |
+
748,
|
| 1834 |
+
478,
|
| 1835 |
+
776
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 7
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "text",
|
| 1841 |
+
"text": "Overlapped text. It is a common tough task for segmentation-based detection methods. Pixels belong to the center text region for one text instance may also become the boundary region for another one. Even though our orderly overlaying strategy allows pixels to have multiple classes and makes boundary pixels have higher priority than center text pixels, which encourages inner instance to be separated from the outer instance. But experiments found that",
|
| 1842 |
+
"bbox": [
|
| 1843 |
+
81,
|
| 1844 |
+
777,
|
| 1845 |
+
478,
|
| 1846 |
+
888
|
| 1847 |
+
],
|
| 1848 |
+
"page_idx": 7
|
| 1849 |
+
},
|
| 1850 |
+
{
|
| 1851 |
+
"type": "text",
|
| 1852 |
+
"text": "many times, the boundaries of inner instance cannot be fully recalled to embrace such instance, and connecting between center text pixels will result in the failure of detecting such inner an instance.",
|
| 1853 |
+
"bbox": [
|
| 1854 |
+
514,
|
| 1855 |
+
426,
|
| 1856 |
+
911,
|
| 1857 |
+
482
|
| 1858 |
+
],
|
| 1859 |
+
"page_idx": 7
|
| 1860 |
+
},
|
| 1861 |
+
{
|
| 1862 |
+
"type": "text",
|
| 1863 |
+
"text": "Recognition of vertical instance. On the one hand, vertical texts appear in little frequency in the common datasets. One the other hand, although Text Perceptron can read vertical instances from left to right, it is still a challenge for recognition algorithm to distinguish whether the instance is a horizontal text or a 'lying-down' vertical one. Therefore, there are some correctly detected instances cannot be recognized right. It is also a common difficult problem for all existing recognition algorithms.",
|
| 1864 |
+
"bbox": [
|
| 1865 |
+
514,
|
| 1866 |
+
483,
|
| 1867 |
+
913,
|
| 1868 |
+
609
|
| 1869 |
+
],
|
| 1870 |
+
"page_idx": 7
|
| 1871 |
+
},
|
| 1872 |
+
{
|
| 1873 |
+
"type": "text",
|
| 1874 |
+
"text": "5 Conclusion",
|
| 1875 |
+
"text_level": 1,
|
| 1876 |
+
"bbox": [
|
| 1877 |
+
650,
|
| 1878 |
+
619,
|
| 1879 |
+
779,
|
| 1880 |
+
636
|
| 1881 |
+
],
|
| 1882 |
+
"page_idx": 7
|
| 1883 |
+
},
|
| 1884 |
+
{
|
| 1885 |
+
"type": "text",
|
| 1886 |
+
"text": "In this paper, we propose an end-to-end trainable text spotter named Text Perceptron aiming at spotting text with arbitrary-shapes. To achieve global optimization, a Shape Transform Module is proposed to unite the text detection and recognition into a whole framework. A segmentation-based detector is carefully designed to distinguish text instances and capture the latent information of text reading orders. Extensive experiments show that our method achieves competitive result in standard text benchmarks and the state-of-the-art in both detection and end-to-end evaluations on popular irregular text benchmarks.",
|
| 1887 |
+
"bbox": [
|
| 1888 |
+
514,
|
| 1889 |
+
638,
|
| 1890 |
+
913,
|
| 1891 |
+
792
|
| 1892 |
+
],
|
| 1893 |
+
"page_idx": 7
|
| 1894 |
+
},
|
| 1895 |
+
{
|
| 1896 |
+
"type": "text",
|
| 1897 |
+
"text": "References",
|
| 1898 |
+
"text_level": 1,
|
| 1899 |
+
"bbox": [
|
| 1900 |
+
233,
|
| 1901 |
+
66,
|
| 1902 |
+
330,
|
| 1903 |
+
82
|
| 1904 |
+
],
|
| 1905 |
+
"page_idx": 8
|
| 1906 |
+
},
|
| 1907 |
+
{
|
| 1908 |
+
"type": "list",
|
| 1909 |
+
"sub_type": "ref_text",
|
| 1910 |
+
"list_items": [
|
| 1911 |
+
"[Bookstein 1989] Bookstein, F. L. 1989. Principal Warps: Thin-Plate Splines and the Decomposition of Deformations. IEEE TPAMI 11(6):567-585.",
|
| 1912 |
+
"[Bušta, Neumann, and Matas 2017] Bušta, M.; Neumann, L.; and Matas, J. 2017. Deep Textspotter: An End-to-End Trainable Scene Text Localization and Recognition Framework. In ICCV, 2223-2231.",
|
| 1913 |
+
"[Cheng et al. 2017] Cheng, Z.; Bai, F.; Xu, Y.; Zheng, G.; Pu, S.; and Zhou, S. 2017. Focusing Attention: Towards Accurate Text Recognition in Natural Images. In ICCV, 5076-5084.",
|
| 1914 |
+
"[Ch'ng and Chan 2017] Ch'ng, C. K., and Chan, C. S. 2017. Total-text: A Comprehensive Dataset for Scene Text Detection and Recognition. In ICDAR, volume 1, 935-942.",
|
| 1915 |
+
"[Dai et al. 2018] Dai, Y.; Huang, Z.; Gao, Y.; Xu, Y.; Chen, K.; Guo, J.; and Qiu, W. 2018. Fused Text Segmentation Networks for Multi-oriented Scene Text Detection. In ICPR, 3604-3609.",
|
| 1916 |
+
"[Gupta, Vedaldi, and Zisserman 2016] Gupta, A.; Vedaldi, A.; and Zisserman, A. 2016. Synthetic Data for Text Localisation in Natural Images. In CVPR, 2315-2324.",
|
| 1917 |
+
"[He et al. 2016] He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep Residual Learning for Image Recognition. In CVPR, 770-778.",
|
| 1918 |
+
"[He et al. 2017] He, K.; Gkioxari, G.; Dollar, P.; and Girshick, R. 2017. Mask R-CNN. In ICCV, 2980-2988.",
|
| 1919 |
+
"[He et al. 2018] He, T.; Tian, Z.; Huang, W.; Shen, C.; Qiao, Y.; and Sun, C. 2018. An End-to-End TextSpotter with Explicit Alignment and Attention. In CVPR, 5020–5029.",
|
| 1920 |
+
"[Huang et al. 2017] Huang, J.; Rathod, V.; Sun, C.; Zhu, M.; Korattikara, A.; Fathi, A.; Fischer, I.; Wojna, Z.; Song, Y.; Guadarrama, S.; et al. 2017. Speed Accuracy Trade-offs for Modern Convolutional Object Detectors. In CVPR, 7310-7311.",
|
| 1921 |
+
"[Jaderberg et al. 2015] Jaderberg, M.; Simonyan, K.; Zisserman, A.; et al. 2015. Spatial Transformer Networks. In NeurIPS, 2017-2025.",
|
| 1922 |
+
"[Jaderberg, Vedaldi, and Zisserman 2014] Jaderberg, M.; Vedaldi, A.; and Zisserman, A. 2014. Deep Features for Text Spotting. In ECCV, 512-528.",
|
| 1923 |
+
"[Karatzas et al. 2013] Karatzas, D.; Shafait, F.; Uchida, S.; Iwamura, M.; i Bigorda, L. G.; Mestre, S. R.; Mas, J.; Mota, D. F.; Almazan, J. A.; and De Las Heras, L. P. 2013. ICDAR 2013 Robust Reading Competition. In ICDAR, 1484-1493.",
|
| 1924 |
+
"[Karatzas et al. 2015] Karatzas, D.; Gomez-Bigorda, L.; Nicolaou, A.; Ghosh, S.; Bagdanov, A.; Iwamura, M.; Matas, J.; Neumann, L.; Chandrasekhar, V. R.; Lu, S.; et al. 2015. ICDAR 2015 Competition on Robust Reading. In ICDAR, 1156-1160.",
|
| 1925 |
+
"[Li, Wang, and Shen 2017] Li, H.; Wang, P.; and Shen, C. 2017. Towards End-to-end Text Spotting with Convolutional Recurrent Neural Networks. In ICCV, 5248-5256.",
|
| 1926 |
+
"[Liao et al. 2017] Liao, M.; Shi, B.; Bai, X.; Wang, X.; and Liu, W. 2017. TextBoxes: A Fast Text Detector with a Single Deep Neural Network. In AAAI, 4161-4167.",
|
| 1927 |
+
"[Liao, Shi, and Bai 2018] Liao, M.; Shi, B.; and Bai, X. 2018. TextBoxes++: A Single-Shot Oriented Scene Text Detector. IEEE TIP 27(8):3676-3690.",
|
| 1928 |
+
"[Lin et al. 2017] Lin, T.-Y.; Dollar, P.; Girshick, R.; He, K.; Hariharan, B.; and Belongie, S. 2017. Feature Pyramid Networks for Object Detection. In CVPR, 2117-2125.",
|
| 1929 |
+
"[Liu et al. 2016] Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; and Berg, A. C. 2016. SSD: Single Shot Multibox Detector. In ECCV, 21-37. Springer.",
|
| 1930 |
+
"[Liu et al. 2018] Liu, X.; Liang, D.; Yan, S.; Chen, D.; Qiao, Y.; and Yan, J. 2018. FOTS: Fast Oriented Text Spotting with a Unified Network. In CVPR, 5676-5685.",
|
| 1931 |
+
"[Liu et al. 2019a] Liu, Y.; Jin, L.; Zhang, S.; Luo, C.; and Zhang, S. 2019a. Curved Scene Text Detection via Transverse and Longitudinal Sequence Connection. PR 90:337-345."
|
| 1932 |
+
],
|
| 1933 |
+
"bbox": [
|
| 1934 |
+
76,
|
| 1935 |
+
87,
|
| 1936 |
+
480,
|
| 1937 |
+
888
|
| 1938 |
+
],
|
| 1939 |
+
"page_idx": 8
|
| 1940 |
+
},
|
| 1941 |
+
{
|
| 1942 |
+
"type": "list",
|
| 1943 |
+
"sub_type": "ref_text",
|
| 1944 |
+
"list_items": [
|
| 1945 |
+
"[Liu et al. 2019b] Liu, Z.; Lin, G.; Yang, S.; Liu, F.; Lin, W.; and Goh, W. L. 2019b. Towards Robust Curve Text Detection With Conditional Spatial Expansion. In CVPR.",
|
| 1946 |
+
"[Long et al. 2018] Long, S.; Ruan, J.; Zhang, W.; He, X.; Wu, W.; and Yao, C. 2018. Textsnake: A Flexible Representation for Detecting Text of Arbitrary Shapes. In ECCV, 19-35.",
|
| 1947 |
+
"[Luo, Jin, and Sun 2019] Luo, C.; Jin, L.; and Sun, Z. 2019. MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition. PR.",
|
| 1948 |
+
"[Lyu et al. 2018] Lyu, P.; Liao, M.; Yao, C.; Wu, W.; and Bai, X. 2018. Mask Textspotter: An End-to-End Trainable Neural Network for Spotting Text with Arbitrary Shapes. In ECCV, 71-88.",
|
| 1949 |
+
"[Ma et al. 2018] Ma, J.; Shao, W.; Ye, H.; Wang, L.; Wang, H.; Zheng, Y.; and Xue, X. 2018. Arbitrary-Oriented Scene Text Detection via Rotation Proposals. IEEE TMM 20(11):3111-3122.",
|
| 1950 |
+
"[Milletari, Navab, and Ahmadi 2016] Milletari, F.; Navab, N.; and Ahmadi, S.-A. 2016. V-net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation. In 3DV, 565-571.",
|
| 1951 |
+
"[Ren et al. 2015] Ren, S.; He, K.; Girshick, R.; and Sun, J. 2015. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In NeurIPS, 91-99.",
|
| 1952 |
+
"[Shi, Bai, and Yao 2017] Shi, B.; Bai, X.; and Yao, C. 2017. An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition. IEEE TPAMI 39(11):2298-2304.",
|
| 1953 |
+
"[Shi et al. 2016] Shi, B.; Wang, X.; Lyu, P.; Yao, C.; and Bai, X. 2016. Robust Scene Text Recognition with Automatic Rectification. In CVPR, 4168-4176.",
|
| 1954 |
+
"[Shrivastava, Gupta, and Girshick 2016] Shrivastava, A.; Gupta, A.; and Girshick, R. 2016. Training Region-based Object Detectors with Online Hard Example Mining. In CVPR, 761-769.",
|
| 1955 |
+
"[Sun et al. 2018] Sun, Y.; Zhang, C.; Huang, Z.; Liu, J.; Han, J.; and Ding, E. 2018. TextNet: Irregular Text Reading from Images with an End-to-End Trainable Network. In ACCV.",
|
| 1956 |
+
"[Wang et al. 2012] Wang, T.; Wu, D. J.; Coates, A.; and Ng, A. Y. 2012. End-to-End Text Recognition with Convolutional Neural Networks. In ICPR, 3304–3308.",
|
| 1957 |
+
"[Wang et al. 2019] Wang, W.; Xie, E.; Li, X.; Hou, W.; Lu, T.; Yu, G.; and Shao, S. 2019. Shape Robust Text Detection With Progressive Scale Expansion Network. In CVPR.",
|
| 1958 |
+
"[Wu and Natarajan 2017] Wu, Y., and Natarajan, P. 2017. Self-organized Text Detection with Minimal Post-processing via Border Learning. In ICCV, 5010-5019.",
|
| 1959 |
+
"[Xie et al. 2019] Xie, E.; Zang, Y.; Shao, S.; Yu, G.; Yao, C.; and Li, G. 2019. Scene Text Detection with Supervised Pyramid Context Network. In AAAI.",
|
| 1960 |
+
"[Xu et al. 2019] Xu, Y.; Wang, Y.; Zhou, W.; Wang, Y.; Yang, Z.; and Bai, X. 2019. Textfield: Learning a deep direction field for irregular scene text detection. IEEE TIP.",
|
| 1961 |
+
"[Xue, Lu, and Zhan 2018] Xue, C.; Lu, S.; and Zhan, F. 2018. Accurate Scene Text Detection through Border Semantics Awareness and Bootstrapping. In ECCV, 370-387.",
|
| 1962 |
+
"[Zhan and Lu 2019] Zhan, F., and Lu, S. 2019. Esir: End-to-end scene text recognition via iterative image rectification. In CVPR, 2059-2068.",
|
| 1963 |
+
"[Zhang et al. 2018] Zhang, S.; Liu, Y.; Jin, L.; and Luo, C. 2018. Feature Enhancement Network: A Refined Scene Text Detector. In AAAI.",
|
| 1964 |
+
"[Zhang et al. 2019] Zhang, C.; Liang, B.; Huang, Z.; En, M.; Han, J.; Ding, E.; and Ding, X. 2019. Look More Than Once: An Accurate Detector for Text of Arbitrary Shapes. In CVPR.",
|
| 1965 |
+
"[Zhou et al. 2017] Zhou, X.; Yao, C.; Wen, H.; Wang, Y.; Zhou, S.; He, W.; and Liang, J. 2017. EAST: An Efficient and Accurate Scene Text Detector. In CVPR, 2642-2651."
|
| 1966 |
+
],
|
| 1967 |
+
"bbox": [
|
| 1968 |
+
509,
|
| 1969 |
+
70,
|
| 1970 |
+
911,
|
| 1971 |
+
820
|
| 1972 |
+
],
|
| 1973 |
+
"page_idx": 8
|
| 1974 |
+
}
|
| 1975 |
+
]
|
2002.06xxx/2002.06820/b62d4baf-aeea-4bff-82d1-b6e4044e1482_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06820/b62d4baf-aeea-4bff-82d1-b6e4044e1482_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Text Perceptron: Towards End-to-End Arbitrary-Shaped Text Spotting
|
| 2 |
+
|
| 3 |
+
# Liang Qiao $^{1}$ Sanli Tang $^{1}$ Zhanzhan Cheng $^{21*}$ Yunlu Xu $^{1}$ Yi Niu $^{1}$ Shiliang Pu $^{1}$ Fei Wu $^{2}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Hikvision Research Institute, China; $^{2}$ Zhejiang University, China
|
| 6 |
+
|
| 7 |
+
{qiaoliang6, tangsanli, chengzhanzhan, xuyunlu, niuyi, pushiliang}@hikvision.com wufei@cs.zju.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Many approaches have recently been proposed to detect irregular scene text and achieved promising results. However, their localization results may not well satisfy the following text recognition part mainly because of two reasons: 1) recognizing arbitrary shaped text is still a challenging task, and 2) prevalent non-trainable pipeline strategies between text detection and text recognition will lead to suboptimal performances. To handle this incompatibility problem, in this paper we propose an end-to-end trainable text spotting approach named Text Perceptron. Concretely, Text Perceptron first employs an efficient segmentation-based text detector that learns the latent text reading order and boundary information. Then a novel Shape Transform Module (abbr. STM) is designed to transform the detected feature regions into regular morphologies without extra parameters. It unites text detection and the following recognition part into a whole framework, and helps the whole network achieve global optimization. Experiments show that our method achieves competitive performance on two standard text benchmarks, i.e., ICDAR 2013 and ICDAR 2015, and also obviously outperforms existing methods on irregular text benchmarks SCUT-CTW1500 and Total-Text.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Spotting scene text is a hot research topic due to its various applications such as invoice recognition and road sign reading in advanced driver assistance systems. With the advances of deep learning, many deep neural-network-based methods (Wang et al. 2012; Jaderberg, Vedaldi, and Zisserman 2014; Li, Wang, and Shen 2017; Liu et al. 2018; He et al. 2018) have been proposed for spotting text from a natural image, and have achieved promising results.
|
| 16 |
+
|
| 17 |
+
However, in the real-world, many texts appear in arbitrary layouts (e.g. multi-oriented or curved), which make quadrangle-based methods (Liao et al. 2017; Zhou et al. 2017; Zhang et al. 2018) cannot be well adapted in many situations. Some works (Dai et al. 2018; Long et al. 2018; Xie et al. 2019) began to focus on irregular text localization by segmenting text masks as detection results and achieved relatively good performance in terms of Intersection-over-Union (IoU) evaluation. However, they still leave many challenges to the following recognizing task. For example, a
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
(a)
|
| 21 |
+
Figure 1: Illustration of the traditional pipelined text spotting process and Text Perceptron. Sub-figure (a) is a traditional pipeline strategy by combining text detection, rectification and recognition into a framework. Sub-figure (b) is an end-to-end trainable text spotting approach by applying the proposed STM. The black and red arrows mean the forward and backward processing, respectively. The red points denote generated fiducial points generated.
|
| 22 |
+
|
| 23 |
+
common pipeline of text spotting is to crop the masked texts within bounding-box regions, and then adopt a recognition model with rectification functions to generate final character sequences. Unfortunately, such strategy decreases the robustness of text spotting mainly in two aspects: 1) one needs to design extra rectification network, like methods in (Luo, Jin, and Sun 2019) and (Zhan and Lu 2019), to transform irregular texts into regular ones. In practice, it is hard to be optimized without human-labeled geometric ground truth, and also introduces extra computational cost. 2) Pipelined text spotting methods are not end-to-end trainable and result in suboptimal performance because the errors from the recognition model cannot be utilized for optimizing the text detector. In Figure 1(a), although the text detector provides true positive results, the clipped text masks still lead to wrong recognition results. We denote above problem incompatibility between text detection and recognition.
|
| 24 |
+
|
| 25 |
+
Recently, two methods were proposed for spotting irregular text in the end-to-end manners. (Lyu et al. 2018) proposed an end-to-end trainable network inspired by Mask-RCNN (He et al. 2017), aiming at reading irregular text character-by-character. However, this approach loses the
|
| 26 |
+
|
| 27 |
+
context information among characters, and also requires amounts of expenditure on character-level annotations. (Sun et al. 2018) attempted to transform irregular text with a perspective ROI module, but this operation has difficulty in handling some complicated distortions such as curved shapes.
|
| 28 |
+
|
| 29 |
+
These limitations motivate us to explore new and more effective method to spot irregular scene text. Inspired by (Shi et al. 2016), thin-plate splines (abbr. TPS) (Bookstein 1989) may be a feasible approach to rectify various-shaped text into regular form using a group of fiducial points. Although these points can be implicitly learned from cropped rectangular text by a deep spatial transform network (Jaderberg et al. 2015), the learning process of fiducial points is hard to be optimized. As a result, such methods are not robust especially for texts in some complex distortions.
|
| 30 |
+
|
| 31 |
+
In a more achievable way, we attempt to solve this problem as follows: 1) explicitly finding out a group of reliable fiducial points over text regions so that irregular text can be directly rectified by TPS, and 2) dynamically tuning fiducial points by back-propagating errors from recognition to detection. Specifically, we develop a Shape Transform Module (abbr. STM) to build a robust irregular text spotter and eliminate the incompatibility problem. STM integrates irregular text detection and recognition into an end-to-end trainable model, and iteratively adjusts fiducial points to satisfy the following recognition module. As shown in Figure 1(b), in the early training stage, despite high IoU in detection evaluation, the transformed text regions may not satisfy the recognition module. With end-to-end training, fiducial points will be gradually adjusted to obtain better recognition results.
|
| 32 |
+
|
| 33 |
+
In this paper, we propose an end-to-end trainable irregular text spotter named Text Perceptron which consists of three parts: 1) A segmentation-based detection module which orderly describes a text region as four subregions: the center region, head, tail and top&bottom boundary regions, detailed in Section 3. Here, boundary information not only helps separate text regions that are very close to each other, but also contributes to capture latent reading-orders. 2) STM for iteratively generating potential fiducial points and dynamically tuning their positions, which alleviates incompatibility between text detection and recognition. 3) A sequence-based recognition module for generating final character sequences.
|
| 34 |
+
|
| 35 |
+
Major contributions of this paper are listed as follows: 1) We design an efficient order-aware text detector to extract arbitrary-shaped text. 2) We develop the differentiable STM devoting to optimizing both detection and recognition in an end-to-end trainable manner. 3) Extensive experiments show that our method achieves competitive results on two regular text benchmarks, and also significantly surpasses previous methods on two irregular text benchmarks.
|
| 36 |
+
|
| 37 |
+
# 2 Related Works
|
| 38 |
+
|
| 39 |
+
Here, we briefly review the recent advances in text detection and end-to-end text spotting.
|
| 40 |
+
|
| 41 |
+
# 2.1 Text Detection
|
| 42 |
+
|
| 43 |
+
Methods of text detection can usually be divided into two categories: anchor-based methods and segmentation-based
|
| 44 |
+
|
| 45 |
+
methods.
|
| 46 |
+
|
| 47 |
+
Anchor-based methods. These methods usually follow the technique of Faster R-CNN (Ren et al. 2015) or SSD (Liu et al. 2016) that uses anchors to provide rectangular region proposals. To overcome the significantly varying aspect ratios of texts, (Liao et al. 2017) designed long default boxes and filters to enhance text detection, and then (Liao, Shi, and Bai 2018) extended this work by generating quadrilateral boxes to fit the texts with perspective distortions. (Ma et al. 2018) proposed a rotated regional proposal network to enhance multi-oriented text detection. To detect arbitrary-shaped text, many Mask RCNN (He et al. 2017)-based methods, e.g., CSE (Liu et al. 2019b), LOMO (Zhang et al. 2019) and SPCNet (Xie et al. 2019), were developed to capture irregular texts and achieved good performance.
|
| 48 |
+
|
| 49 |
+
Segmentation-based methods. These methods usually learn a global semantic segmentation without region proposals, which is more efficient compared to anchor-based methods. Segmentation can easily be used to describe text in arbitrary shapes but highly relies on complicated post-processes to separate different text instances. To solve this problem, (Wu and Natarajan 2017) introduced boundary semantic segmentation to reduce the efforts in post-proposing. EAST (Zhou et al. 2017) learned a shrink text region and directly regressed the multi-oriented quadrilateral boxes from text pixels. (Long et al. 2018) designed a series of overlapping disks with different radii and orientations to describe arbitrary-shaped text regions. (Wang et al. 2019) proposed a method that first generates text region masks with various shrinkage ratios and then uses a progressive expansion algorithm to produce the final text region masks. (Xu et al. 2019) predicted each text pixel and assigned them with a regression value denoting the direction to its nearest boundary to help separate different texts.
|
| 50 |
+
|
| 51 |
+
# 2.2 Text Spotting
|
| 52 |
+
|
| 53 |
+
Most of existing text-spotting methods (Liao, Shi, and Bai 2018; Liao et al. 2017; Wang et al. 2012) generally first localize each text with a trained detector such as (Zhou et al. 2017) and then recognize the cropped text region with a sequence decoder (Shi, Bai, and Yao 2017). For sufficiently exploiting the complementarity between detection and recognition, some works (He et al. 2018; Li, Wang, and Shen 2017; Liu et al. 2018) were proposed to jointly detect and recognize text instances in an end-to-end trainable manner, which utilized the recognition information to optimize the localization task. However, these methods are incapable of spotting arbitrary-shaped text due to the irrationality of rectangles or quadrangles. To address these problems, (Sun et al. 2018) adopted a perspective ROI transforming module to rectify perspective text, but this operation still has difficulty in handling serious curved text. (Lyu et al. 2018) proposed an end-to-end text spotter inspired by Mask-RCNN for detecting arbitrary-shaped text character-by-character, but this method loses the context information among characters and also requires character-level location annotations.
|
| 54 |
+
|
| 55 |
+
# 3 Methodology
|
| 56 |
+
|
| 57 |
+
# 3.1 Overview
|
| 58 |
+
|
| 59 |
+
We propose a text spotter named Text Perceptron whose overall architecture is shown in Figure 2, which consists of three parts:
|
| 60 |
+
|
| 61 |
+
(1) The text detector adopts ResNet (He et al. 2016) and Feature Pyramid Network (abbr. FPN) (Lin et al. 2017) as backbone, and is implemented by simultaneously learning three tasks: an order-aware multiple-class semantic segmentation, a corner regression, and a boundary offset regression. In this way, the text detector can localize arbitrary-shaped text and achieve state of the art on text detection.
|
| 62 |
+
(2) STM is responsible for uniting text detection and recognition into an end-to-end trainable framework. This module iteratively generates fiducial points on text boundaries based on the predicted score and geometry maps, and then applies the differentiable TPS to rectify irregular text into regular form.
|
| 63 |
+
(3) The text recognizer is used to generate the predicted character sequences, which can be any traditional sequence-based method, such as CRNN (Shi, Bai, and Yao 2017), attention-based method (Cheng et al. 2017).
|
| 64 |
+
|
| 65 |
+
# 3.2 Text Detection Module
|
| 66 |
+
|
| 67 |
+
Order-aware Semantic Segmentation The text detector learns a global multi-class semantic segmentation, which is much more efficient than those Mask-RCNN-based methods. Inspired by (Xue, Lu, and Zhan 2018), we introduce text boundary segmentation to separate different text instances. Considering text with arbitrary shapes, we further category boundaries into head, tail, and top&bottom boundary types, respectively. In Figure 3, the green, yellow, blue and pink regions separately denote the head, tail, top&bottom boundaries and the center text region. Here, head and tail also capture potential information about text reading order (e.g. top to bottom for vertical text). Therefore, we learn the text detector by conducting the multi-class semantic segmentation task using several binary Dices Coefficient Loss (Milletari, Navab, and Ahmadi 2016) (denoted by $\mathcal{L}_{cls}$ ).
|
| 68 |
+
|
| 69 |
+
Corner and Boundary Regressions To boost the arbitrary-shaped segmentation performance as well as provide position information for fiducial points, we integrate two other regression tasks into the learning process, as shown in Figure 3 (c) and (d),
|
| 70 |
+
|
| 71 |
+
- Corner Regression. For pixels in head and tail regions, we regress the offsets (e.g. the $\Delta dx_{1}, \Delta dy_{1}, \Delta dx_{2}$ and $\Delta dy_{2}$ ) to their corresponding two corner points, which is denoted by $\mathcal{L}_{\text {corner }}$ .
|
| 72 |
+
- Boundary Offset Regression. For pixels in center region, we regress the vertical and horizontal offsets to their nearest boundaries (e.g. the $\Delta dx_1'$ , $\Delta dy_1'$ , $\Delta dx_2'$ and $\Delta dy_2'$ ), which is denoted by $\mathcal{L}_{boundary}$ .
|
| 73 |
+
|
| 74 |
+
Here, we adopt a proximity regression strategy to solve the inaccurate large-offset regression problem like in EAST (Zhou et al. 2017). That is, the Corner Regressions only regress their neighboring corresponding corners. In the Boundary Offset Regression, we can simply ignore or lower
|
| 75 |
+
|
| 76 |
+
the loss weights of regression value generated from the larger side (e.g. $\Delta dx_1'$ , $\Delta dx_2'$ for a horizontal text). In this way, our detector can well describe the texts with very large width-height ratios. Both of two regressions are trained with Smooth-L1 loss:
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\mathcal {L} _ {\text {c o r n e r}} \text {o r} \mathcal {L} _ {\text {b o u n d a r y}} = \left\{ \begin{array}{l l} 0. 5 (\sigma z) ^ {2} & | z | < 1 / \sigma^ {2} \\ | z | - 0. 5 / \sigma^ {2} & \text {o t h e r w i s e} \end{array} , \right. \tag {1}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $z$ is the geometry offset value, and $\sigma$ is a tunable parameter (default by 3).
|
| 83 |
+
|
| 84 |
+
The Detection Inference In the forward process, we generate predicted segmentation maps by orderly overlaying the segmented center, head, tail, and top&bottom boundary feature maps. Subsequently, text instances can be found as connected-regions of center pixels. We see that all text instances are easily separated by boundaries, and different head (or tail) regions will also be separated by up&bottom boundary region. Therefore, each center region can be matched with a neighboring pair of head and tail region during the pixel traversal process. Specifically, for text with more than 1 head (or tail) regions, we choose the one with the maximum area as its head (or tail). While for predicted center text regions without corresponding head or tail region, we just treat them as false positives and filter them out.
|
| 85 |
+
|
| 86 |
+
Ground-Truth Generation The process of ground-truth of segmentation and geometry map can be divided into three steps, as shown in Figure 3.
|
| 87 |
+
|
| 88 |
+
(1) Identifying four corners. We denote the 1st and 4th corners as the two corners in the head region, while the 2nd and 3rd corners are corresponding to the tail region, as shown in Figure 3(a). This weak-supervised information is not provided by most of the datasets, but we found that in general, polygon points $\{P_1',\dots,P_M'\}$ are usually annotated from the left-top corner to the left-bottom corner in a clockwise manner for text instances. Differently, for polygon annotations with a fixed number of points like SCUT-CTW1500 (Liu et al. 2019a), we can directly identify the four corner points by their indexes. However, for annotations with varying number of points like Total-Text (Ch'ng and Chan 2017), we can only obtain the 1st corner $(P_1')$ and 4th corner $(P_M')$ . To search the 2nd and 3rd corners, we design a heuristic corner estimating strategy based on the assumptions that 1) two boundaries neighboring tail are nearly parallel, and 2) two neighbor interior angles of tail are closed to $\frac{\pi}{2}$ . Therefore, the probable 2nd corner can be estimated as:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\arg \min _ {P _ {i} ^ {\prime}} [ \gamma (| \angle P _ {i} ^ {\prime} - \frac {\pi}{2} | + | \angle P _ {i + 1} ^ {\prime} - \frac {\pi}{2} |) + | \angle P _ {i} ^ {\prime} + \angle P _ {i + 1} ^ {\prime} - \pi | ] \tag {2}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where $\angle P_i^\prime$ is the degree of interior angle for polygon point $P_{i}^{\prime}$ , and $\gamma$ is a weighting parameter (default by 0.5). Then the point $P_{i + 1}^{\prime}$ following $P_{i}^{\prime}$ is treated as the 3-rd corner point. Specifically, for vertical text annotated from the top-left corner, we reassign its top-right corner as the 1st key corner.
|
| 95 |
+
|
| 96 |
+
(2) Generating score maps. Figure 3(b) shows the generated score maps. We firstly generate the center text regions follows by their annotations and then generate boundaries by referring to the shrink and expansion mechanism used
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 2: The workflow of Text Perceptron. The black and red arrows separately mean the forward and backward process.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 3: The label generation process.
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
|
| 110 |
+
in (Wu and Natarajan 2017). Differently, the head and tail score maps are generated by only applying the shrink operation, which submerges part of the center region. And top&bottom boundary region is then generated by applying both the expansion and shrink operations, which will partly submerge all of the other regions. In this way, we need less effort on post-processing to separate different text instances and it is easy to match their relative head (or tail) region with a center region. Boundary widths are constrained as $\delta \times \min Len$ , where minLen is the minimum length of edges in the text polygon and $\delta$ is a ratio parameter. Here, we set $\delta = 0.2$ for top&bottom boundaries and $\delta = 0.3$ for head and tail.
|
| 111 |
+
|
| 112 |
+
(3) Generating geometry maps. As mentioned in Corner and Boundary Regression, pixels belonging to the head region are assigned geometry offset values in 4 channels $(\Delta dx_{1}, \Delta dy_{1}, \Delta dx_{2}$ and $\Delta dy_{2})$ corresponding the 1st and 4th key corner, as shown in Figure 3(c). Similarly, the geometry map of the tail region is also formed in 4 channels. The geometry values of the center text region are computed as the horizontal and vertical offsets to the nearest boundaries, shown as $\Delta dx_{1}^{\prime}, \Delta dy_{1}^{\prime}, \Delta dx_{2}^{\prime}$ and $\Delta dy_{2}^{\prime}$ in Figure 3(d).
|
| 113 |
+
|
| 114 |
+
# 3.3 Shape Transform Module
|
| 115 |
+
|
| 116 |
+
STM is designed to iteratively generate initial fiducial points around text instances and transform text feature regions into
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 4: The fiducial points generation process.
|
| 120 |
+
|
| 121 |
+
regular shapes with the supervision of following recognition.
|
| 122 |
+
|
| 123 |
+
Fiducial Points Generation With the learned segmentation maps and geometry maps, we propose to generate preset $2 \times N$ potential fiducial points ( $N \geq 2$ ) for each text instance, denoted as $\{P_1, \dots, P_N, P_{N+1}, \dots, P_{2 \times N}\}$ , which can be divided into two stages.
|
| 124 |
+
|
| 125 |
+
(1) Generating four corner points. We first obtain the positions of four corner fiducial points for each text feature region by averaging the coordinate of pixels with their predicted offsets in corresponding boundaries. Taking the 1-st corner point $(P_{1})$ as an example, it is computed based on all pixels in the head region $\mathcal{R}_{\mathcal{H}}$ , and formalized by
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
P _ {1} = \left(\frac {\sum_ {(x , y) \in \mathcal {R} _ {\mathcal {H}}} (x + \Delta d x)}{| | \mathcal {R} _ {\mathcal {H}} | |}, \frac {\sum_ {(x , y) \in \mathcal {R} _ {\mathcal {H}}} (y + \Delta d y)}{| | \mathcal {R} _ {\mathcal {H}} | |}\right) \tag {3}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $||.||$ means the number of pixels in $\mathcal{R}_{\mathcal{H}}$ , and $\Delta dx, \Delta dy$ mean the predicted corner offsets corresponding to $P_{1}$ . The other three corner points $(P_{N}$ in $\mathcal{R}_{\mathcal{H}}, P_{N+1}, P_{2 \times N}$ in tail region $\mathcal{R}_{\mathcal{T}})$ can be calculated similarly.
|
| 132 |
+
|
| 133 |
+
(2) Generating other fiducial points. After obtaining four corner fiducial points, the other fiducial points can be located using a dichotomous method. This strategy is suitable for any arbitrary shaped text even serious curved or in different reading orders.
|
| 134 |
+
|
| 135 |
+
An example of the generation process is shown in Figure 4. We firstly connect $P_{1}$ and $P_{N}$ , and judge whether the connected line has a longer span in horizontal direction or vertical direction. Without loss generality, if it has a longer span in horizontal direction as shown, we calculate a middle
|
| 136 |
+
|
| 137 |
+
point $P_{\lfloor (N + 1) / 2\rfloor}$ between $P_{1}$ and $P_N$ whose x-coordinate formed as:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
x _ {m i d} = \frac {\lceil (N - 1) / 2 \rceil}{N - 1} \times P _ {1, x} + \frac {\lfloor (N - 1) / 2 \rfloor}{N - 1} \times P _ {N, x} \tag {4}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
Then we use the learned boundary offsets from detector to predict the y-coordinate of $P_{\lfloor (N + 1) / 2\rfloor}$ . Concretely, we define the band region $\mathcal{B}_i$ as the part of the center region $\mathcal{R}_C$ :
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\mathcal {B} _ {\lfloor \frac {1 + N}{2} \rfloor} = \{(x, y) \in \mathcal {R} _ {\mathcal {C}} | x \in [ x _ {m i d} - \Delta e p, x _ {m i d} + \Delta e p ] \} \tag {5}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
where $\Delta ep$ defines the range of the band region (default by 3). Similar to the generation of four corner fiducial points, we can use all pixels in the corresponding band region to predict an average y-coordinate for this fiducial point. Then, the coordinate of $P_{\lfloor (N + 1) / 2\rfloor}$ can be formed as:
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
P _ {\left\lfloor \frac {1 + N}{2} \right\rfloor} = \left(x _ {m i d}, \frac {\sum_ {\left(x _ {t} , y _ {t}\right) \in \mathcal {B} _ {\left\lfloor \frac {1 + N}{2} \right\rfloor}} y _ {t} + \Delta d y _ {t} ^ {\prime}}{\left| \left| \mathcal {B} _ {\left\lfloor \frac {1 + N}{2} \right\rfloor} \right| \right|}\right) \tag {6}
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
where $\Delta dy_t'$ is the learned boundary offset value to the top-boundary $(\Delta dy_1')$ . This process can be iteratively conducted using corresponding $\Delta dx_t'$ or $\Delta dy_t'$ until all of the fiducial points be calculated. Similarly, the fiducial points on the bottom boundary can be calculated by connecting $P_{N+1}$ and $P_{2\times N}$ and using the same strategy.
|
| 156 |
+
|
| 157 |
+
Shape Transformation With the generated potential fiducial points on text boundaries, we can explicitly transform an irregular feature region $\mathcal{R}$ into a regular form $\mathcal{R}^*$ . Here, fiducial points are mapped into some preset positions of the transformed feature map by directly applying TPS to the original feature regions. Specifically, we transform all feature regions into a region with width $W$ and height $H$ :
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
\mathcal {R} ^ {*} = T P S ^ {- 1} (\mathcal {P}, \mathcal {R}), \tag {7}
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
where the fiducial point $P_{i}\in \mathcal{P}$ will be mapped into:
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
P _ {i} ^ {*} = \left\{ \begin{array}{c} \left((i - 1) \times \frac {H - 2 \times \Delta w}{N - 1} + \Delta w, \Delta h\right), 1 \leq i \leq N \\ \left((2 \times N - i) \times \frac {H - 2 \times \Delta w}{N - 1} + \Delta w, H - \Delta h\right), \\ N < i \leq 2 \times N \end{array} \right. \tag {8}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
where $\Delta w$ and $\Delta h$ are preset offsets (default by $0.1\times W$ and $0.1\times H$ ) to preserve space for fiducial points tuning.
|
| 170 |
+
|
| 171 |
+
Then, all text feature regions are packed into a batch and sent to the following recognition part. Here, we assume that the final predicted character strings $Y$ are generated as:
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
Y = \operatorname {R e c o g} \left(\mathcal {R} ^ {*}\right), \tag {9}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
where 'Recog' is the sequence recognition process.
|
| 178 |
+
|
| 179 |
+
Dynamically Finetuning Fiducial Points The assumption here is that although text detector supervised by polygon annotations can generate satisfying polygon masks, the results may not always suitable for the following recognition. To avoid the suboptimal problem and improve overall performance, Text Perceptron will back-propagate differences from 'Recog' to each pixel value in $\mathcal{R}$ via STM, i.e.
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
\Delta \mathcal {R} = \frac {\partial Y}{\partial \mathcal {R} ^ {*}} \frac {\partial \mathcal {R} ^ {*}}{\partial \mathcal {R}}. \tag {10}
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
Then we can calculate the adjustment values of $\mathcal{P}$ by
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
\Delta \mathcal {P} = \frac {\partial Y}{\partial \mathcal {R} ^ {*}} \frac {\partial \mathcal {R} ^ {*}}{\partial \mathcal {R}} \frac {\partial \mathcal {R}}{\partial \mathcal {P}}. \tag {11}
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
Furthermore, we back-propagate $\Delta \mathcal{P}$ to the corresponding geometry maps in head, tail and band regions. Formally, for each pixel $pi$ , we have
|
| 192 |
+
|
| 193 |
+
$$
|
| 194 |
+
\Delta p i = \Delta \hat {p i} + \frac {\Delta \mathcal {P}}{\| \mathcal {R} _ {\mathcal {R} ^ {*}} \|}, \tag {12}
|
| 195 |
+
$$
|
| 196 |
+
|
| 197 |
+
where $\mathcal{R}_{\mathcal{R}^*}\in \{\mathcal{R}_H,\mathcal{R}_T,\mathcal{B}\}$ and $\Delta \hat{p i}$ is calculated from $\mathcal{L}_{\text{corner}}$ or $\mathcal{L}_{\text{boundary}}$ .
|
| 198 |
+
|
| 199 |
+
# 3.4 End-to-End Training
|
| 200 |
+
|
| 201 |
+
Our recognition part can be implemented by any sequence-based recognition network, such as CRNN (Shi, Bai, and Yao 2017) or (Cheng et al. 2017).
|
| 202 |
+
|
| 203 |
+
The loss of the whole framework contains the following parts: the order-aware multi-class semantic segmentation, the corner regressions for pixels in head and tail, the boundary offset regression for pixels in the center region and the word recognition, that is,
|
| 204 |
+
|
| 205 |
+
$$
|
| 206 |
+
\mathcal {L} = \mathcal {L} _ {c l s} + \lambda_ {b} \mathcal {L} _ {\text {c o r n e r}} + \lambda_ {c} \mathcal {L} _ {\text {b o u n d a r y}} + \lambda_ {r} \mathcal {L} _ {\text {r e c o g}}, \tag {13}
|
| 207 |
+
$$
|
| 208 |
+
|
| 209 |
+
where $\lambda_{b},\lambda_{c}$ and $\lambda_{r}$ are auto-tunable parameters, and $\mathcal{L}_{recog}$ is the loss from recognition.
|
| 210 |
+
|
| 211 |
+
Since learning fiducial points highly depends on the segmentation map learning, we use a soft loss weight strategy to automatically tune $\lambda_{b},\lambda_{c}$ and $\lambda_{r}$ . In other words, in the first few epochs, fiducial points are mainly adjusted by regression tasks; while at the last few epochs, points are mainly restricted to recognition. Formally,
|
| 212 |
+
|
| 213 |
+
$$
|
| 214 |
+
\lambda_ {b} = \lambda_ {c} = \lambda^ {*} - \max (0. 0 2 \times E, 0. 5), \tag {14}
|
| 215 |
+
$$
|
| 216 |
+
|
| 217 |
+
$$
|
| 218 |
+
\lambda_ {r} = \min \left(\max (- 0. 1 + 0. 0 2 \times E, 0), \lambda_ {r} ^ {*}\right), \tag {15}
|
| 219 |
+
$$
|
| 220 |
+
|
| 221 |
+
where $E$ is the number of training epochs, and $\lambda^{*}$ and $\lambda_r^*$ separately control the maximum loss weight of regression and recognition. In our experiments, we set $\lambda^{*} = 0.6$ and $\lambda_r^* = 0.8$ .
|
| 222 |
+
|
| 223 |
+
# 4 Experiments
|
| 224 |
+
|
| 225 |
+
# 4.1 Datasets
|
| 226 |
+
|
| 227 |
+
The datasets used in this work are listed as follows:
|
| 228 |
+
|
| 229 |
+
SynthText 800k (Gupta, Vedaldi, and Zisserman 2016) contains 800k synthetic images that are generated by rendering synthetic text with natural images, and it is used as the pre-training dataset.
|
| 230 |
+
|
| 231 |
+
ICDAR2013 (Karatzas et al. 2013) (abbr. IC13) is collected as the focused scene text, which is mainly horizontal text containing 229 training images and 233 testing images.
|
| 232 |
+
|
| 233 |
+
ICDAR2015 (Karatzas et al. 2015) (abbr. IC15) is collected as incidental scene text consisting of many perspective text. It contains 1000 training and 500 testing images.
|
| 234 |
+
|
| 235 |
+
Total-Text (Ch'ng and Chan 2017) consists of multi-oriented and curve text and is therefore one of the important benchmarks in evaluating shape-robust text spotting tasks. It
|
| 236 |
+
|
| 237 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Method</td><td colspan="4">Detection</td><td colspan="3">End-to-End</td><td colspan="3">Word Spotting</td></tr><tr><td>P</td><td>R</td><td>F</td><td>FPS</td><td>S</td><td>W</td><td>G</td><td>S</td><td>W</td><td>G</td></tr><tr><td rowspan="9">IC13</td><td>Textboxes (2017)</td><td>88.0</td><td>83.0</td><td>85.0</td><td>1.37</td><td>91.6</td><td>89.7</td><td>83.9</td><td>93.9</td><td>92.0</td><td>85.9</td></tr><tr><td>Li et al. (2017)</td><td>91.4</td><td>80.5</td><td>85.6</td><td>-</td><td>91.1</td><td>89.8</td><td>84.6</td><td>94.2</td><td>92.4</td><td>88.2</td></tr><tr><td>TextSpotter (2017)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>89.0</td><td>86.0</td><td>77.0</td><td>92.0</td><td>89.0</td><td>81.0</td></tr><tr><td>He et al. (2018)</td><td>91.0</td><td>88.0</td><td>90.0</td><td>-</td><td>91.0</td><td>89.0</td><td>86.0</td><td>93.0</td><td>92.0</td><td>87.0</td></tr><tr><td>FOTS (2018)</td><td>-</td><td>-</td><td>88.2</td><td>23.9</td><td>88.8</td><td>87.1</td><td>80.8</td><td>92.7</td><td>90.7</td><td>83.5</td></tr><tr><td>TextNet* (2018)</td><td>93.3</td><td>89.4</td><td>91.3</td><td>-</td><td>89.8</td><td>88.9</td><td>83.0</td><td>94.6</td><td>94.5</td><td>87.0</td></tr><tr><td>Mask TextSpotter* (2018)</td><td>95.0</td><td>88.6</td><td>91.7</td><td>4.6</td><td>92.2</td><td>91.1</td><td>86.5</td><td>92.5</td><td>92.0</td><td>88.2</td></tr><tr><td>Ours (2-stage)</td><td>92.7</td><td>88.7</td><td>90.7</td><td>10.3</td><td>90.8</td><td>90.0</td><td>84.4</td><td>93.7</td><td>93.1</td><td>86.2</td></tr><tr><td>Ours (End-to-end)</td><td>94.7</td><td>88.9</td><td>91.7</td><td>10.3</td><td>91.4</td><td>90.7</td><td>85.8</td><td>94.9</td><td>94.0</td><td>88.5</td></tr><tr><td rowspan="11">IC15</td><td>EAST (2017)</td><td>83.6</td><td>73.5</td><td>78.2</td><td>13.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>TextSnake* (2018)</td><td>84.9</td><td>80.4</td><td>82.6</td><td>1.1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>SPCNet* (2019)</td><td>88.7</td><td>85.8</td><td>87.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>PSENet-1s* (2019)</td><td>86.9</td><td>84.5</td><td>85.7</td><td>1.6</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>TextSpotter (2017)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>54.0</td><td>51.0</td><td>47.0</td><td>58.0</td><td>53.0</td><td>51.0</td></tr><tr><td>He et al. (2018)</td><td>87.0</td><td>86.0</td><td>87.0</td><td>-</td><td>82.0</td><td>77.0</td><td>63.0</td><td>85.0</td><td>80.0</td><td>65.0</td></tr><tr><td>FOTS (2018)</td><td>91.0</td><td>85.2</td><td>88.0</td><td>7.8</td><td>81.1</td><td>75.9</td><td>60.8</td><td>84.7</td><td>79.3</td><td>63.3</td></tr><tr><td>TextNet* (2018)</td><td>89.4</td><td>85.4</td><td>87.4</td><td>-</td><td>78.7</td><td>74.9</td><td>60.5</td><td>82.4</td><td>78.4</td><td>62.4</td></tr><tr><td>Mask TextSpotter* (2018)</td><td>91.6</td><td>81.0</td><td>86.0</td><td>4.8</td><td>79.3</td><td>73.0</td><td>62.4</td><td>79.3</td><td>74.5</td><td>64.2</td></tr><tr><td>Ours (2-stage)</td><td>91.6</td><td>81.8</td><td>86.4</td><td>8.8</td><td>78.2</td><td>74.5</td><td>63.0</td><td>80.6</td><td>76.6</td><td>65.5</td></tr><tr><td>Ours (End-to-end)</td><td>92.3</td><td>82.5</td><td>87.1</td><td>8.8</td><td>80.5</td><td>76.6</td><td>65.1</td><td>84.1</td><td>79.4</td><td>67.9</td></tr></table>
|
| 238 |
+
|
| 239 |
+
Table 1: Results on IC13 and IC15. 'P', 'R' and 'F' separately mean the 'Precision', 'Recall' and 'F-Measure'. 'S', 'W' and 'G' mean recognition with strong, weak and generic lexicon, respectively. Superscript '\*' means that the method considered the detection of irregular text.
|
| 240 |
+
|
| 241 |
+
contains 1255 training and 300 testing images, and each text is annotated by a word-level polygon with transcription.
|
| 242 |
+
|
| 243 |
+
SCUT-CTW1500 (Liu et al. 2019a) (abbr. CTW1500) is a curved text benchmark consists of 1000 training and 500 testing images. In contrast to Total-Text, all text instances are annotated with 14-point polygons in the line-level.
|
| 244 |
+
|
| 245 |
+
# 4.2 Implementation Details
|
| 246 |
+
|
| 247 |
+
The detector uses ResNet-50 as the backbone and further be modified following the suggestions from (Huang et al. 2017) for obtaining dense features. We remove the fifth stage, modify conv4_1 layer with stride=1 instead of 2, and apply atrous convolution for all subsequent layers to maintain enough receptive field. Training loss is calculated from the outputs of three stages: the fourth stage $(8\times)$ , the third stage $(8\times)$ , and the second stage $(4\times)$ feature maps of FPN, and testing is only conducted on $4\times$ feature map. We directly adopt the attention-based network described in (Cheng et al. 2017) as the recognition model. All experiments are implemented in Caffe with 8 32GB-Tesla-V100 GPUs. The code will be published soon.
|
| 248 |
+
|
| 249 |
+
Data augmentation. We conduct data augmentation by simultaneously 1) randomly scaling the longer side of input images with length in range of [720, 1600], 2) randomly rotating the images with the degree in range of $[-15^{\circ}, 15^{\circ}]$ , and 3) applying random brightness, jitters, and contrast on input images.
|
| 250 |
+
|
| 251 |
+
Training details. The networks are trained by SGD with batch-size=8, momentum=0.9 and weight-decay=5 × 10 $^{-4}$ . For both detection and recognition part, we separately pretrain them on SynthText for 5 epochs with initial learning rate 2 × 10 $^{-3}$ . Then, we jointly fine-tune the whole network using the soft loss weight strategy mention previously on each dataset for other 80 epochs. The initial learning rate is
|
| 252 |
+
|
| 253 |
+
$1 \times 10^{-3}$ . The learning rate will be divided by 10 for every 20 epochs. Online hard example mining (OHEM) (Shrivastava, Gupta, and Girshick 2016) strategy is also applied for balancing the foreground and background samples.
|
| 254 |
+
|
| 255 |
+
Testing details. We resize input images with the longer side 1440 for IC13, 2000 for IC15, 1350 for Total-text and 1250 for CTW1500. We set the number of fiducial points as 4 for two standard text datasets and 14 for two irregular text datasets. The detection results are given by connecting the predicted fiducial points. Note that, all images are tested in the single-scale.
|
| 256 |
+
|
| 257 |
+
# 4.3 Results on Standard Text Benchmarks
|
| 258 |
+
|
| 259 |
+
Evaluation on horizontal text. We first evaluate our method on IC13 mainly consisting of horizontal texts. Table 1 shows the results, and represents that our method achieve competitive performance compared to previous methods on the 'Detection', 'End-to-End' and 'Word Spotting' evaluation items. Besides, our method is also very efficient and achieves '10.3' of Frame Per Second (abbr. FPS).
|
| 260 |
+
|
| 261 |
+
Evaluation on perspective text. We evaluate our method on IC15 containing many perspective texts, and the results are shown in Table 1. In the detection stage, our method achieves comparable performance with the irregular text spotting methods such as TextNet and Mask TextSpotter. In the 'End-to-End' and 'Word Spotting' tasks, our method significantly outperforms previous irregular-text-based methods and achieves the remarkable state-of-the-art performance on general lexicon cases, which demonstrates the effectiveness of our method.
|
| 262 |
+
|
| 263 |
+
# 4.4 Results on Irregular Text Benchmarks
|
| 264 |
+
|
| 265 |
+
We test our method on two irregular text benchmarks: Total-Text and CTW1500, as shown in Table 2 and 3. In the de
|
| 266 |
+
|
| 267 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">Detection</td><td colspan="2">End-to-End</td></tr><tr><td>P</td><td>R</td><td>F</td><td>None</td><td>Full</td></tr><tr><td>TextSnake (2018)</td><td>82.7</td><td>74.5</td><td>78.4</td><td>-</td><td>-</td></tr><tr><td>FTSN (2018)</td><td>84.7</td><td>78.0</td><td>81.3</td><td>-</td><td>-</td></tr><tr><td>TextField (2019)</td><td>81.2</td><td>79.9</td><td>80.6</td><td>-</td><td>-</td></tr><tr><td>SPCNet (2019)</td><td>83.0</td><td>82.8</td><td>82.9</td><td>-</td><td>-</td></tr><tr><td>CSE (2019b)</td><td>81.4</td><td>79.1</td><td>80.2</td><td>-</td><td>-</td></tr><tr><td>PSENet-1s (2019)</td><td>84.0</td><td>78.0</td><td>80.9</td><td>-</td><td>-</td></tr><tr><td>LOMO (2019)</td><td>75.7</td><td>88.6</td><td>81.6</td><td>-</td><td>-</td></tr><tr><td>Mask TextSpotter (2018)</td><td>69.0</td><td>55.0</td><td>61.3</td><td>52.9</td><td>71.8</td></tr><tr><td>TextNet (2018)</td><td>68.2</td><td>59.5</td><td>63.5</td><td>54.0</td><td>-</td></tr><tr><td>Ours (2-stage)</td><td>88.1</td><td>78.9</td><td>83.3</td><td>63.3</td><td>73.9</td></tr><tr><td>Ours (End-to-end)</td><td>88.8</td><td>81.8</td><td>85.2</td><td>69.7</td><td>78.3</td></tr></table>
|
| 268 |
+
|
| 269 |
+
tection stage, our method outperforms all previous methods and surpasses the best result $2.3\%$ on Total-Text and $2.4\%$ on CTW1500 on F-measure evaluation.
|
| 270 |
+
|
| 271 |
+
Moreover, our method significantly outperforms previous methods on the precision item, which attributes to the false-positive filtering strategy. In the end-to-end case, our method significantly surpasses the best-reported results (Sun et al. 2018) by $15.7\%$ on 'None' and the best of results (Lyu et al. 2018) by $6.5\%$ on 'Full', which mainly attributes to STM achieving the end-to-end training strategies. Since CTW1500 releases the recognition annotation recently, there is no reported result on the end-to-end evaluation. Here, we report the end-to-end results lexicon-freeely, and believe our method will significantly outperform previous methods.
|
| 272 |
+
|
| 273 |
+
Table 2: Result on Total-Text. "Full" indicates lexicons of all images are combined. "None" means lexicon-free.
|
| 274 |
+
|
| 275 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">Detection</td><td>End-to-End</td></tr><tr><td>P</td><td>R</td><td>F</td><td>None</td></tr><tr><td>TextSnake (2018)</td><td>69.7</td><td>85.3</td><td>75.6</td><td>-</td></tr><tr><td>TextField (2019)</td><td>83.0</td><td>79.8</td><td>81.4</td><td>-</td></tr><tr><td>CSE (2019b)</td><td>81.1</td><td>76.0</td><td>78.4</td><td>-</td></tr><tr><td>PSENet-1s (2019)</td><td>84.8</td><td>79.7</td><td>82.2</td><td>-</td></tr><tr><td>LOMO (2019)</td><td>69.6</td><td>89.2</td><td>78.4</td><td>-</td></tr><tr><td>Ours (2-stage)</td><td>88.7</td><td>78.2</td><td>83.1</td><td>48.6</td></tr><tr><td>Ours (End-to-end)</td><td>87.5</td><td>81.9</td><td>84.6</td><td>57.0</td></tr></table>
|
| 276 |
+
|
| 277 |
+
In summary, the results on Total-Text and CTW1500 demonstrate the effectiveness of our method for arbitrary-shaped text spotting. Moreover, compared with 2-staged results, the end-to-end trainable strategy markedly boosts text spotting performance, especially for the recognition part.
|
| 278 |
+
|
| 279 |
+
# 4.5 Ablation Results of Fiducial Points
|
| 280 |
+
|
| 281 |
+
The number of fiducial points directly influences the detection and end-to-end results when texts are displayed in the curve or even waved shapes. Table 4 shows the result that how the number of fiducial points affects the detection and end-to-end evaluations on different benchmarks. It is clear that 4 points annotation is enough for regular benchmark such as IC15, and there is almost no influence on the result when the number of fiducial points increases. On the other hand, for two irregular benchmarks, the detection F-score as well as end-to-end F-score raises along with the increasing number of fiducial points, and the performance becomes stable when $2 \times N \geq 10$ .
|
| 282 |
+
|
| 283 |
+
Table 3: Result on CTW1500. 'None' means lexicon-free.
|
| 284 |
+
|
| 285 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="8">Number of fiducial points</td></tr><tr><td>4</td><td>6</td><td>8</td><td>10</td><td>12</td><td>14</td><td>16</td><td>18</td></tr><tr><td>IC15</td><td>87.1</td><td>87.0</td><td>87.0</td><td>86.9</td><td>87.0</td><td>86.9</td><td>86.8</td><td>86.8</td></tr><tr><td>Total-Text</td><td>71.5</td><td>82.8</td><td>84.5</td><td>85.0</td><td>85.2</td><td>85.2</td><td>85.2</td><td>85.3</td></tr><tr><td>CTW1500</td><td>68.7</td><td>81.9</td><td>84.1</td><td>84.3</td><td>84.4</td><td>84.6</td><td>84.4</td><td>84.5</td></tr><tr><td>Total-Text</td><td>55.9</td><td>68.5</td><td>69.8</td><td>69.6</td><td>69.8</td><td>69.7</td><td>69.5</td><td>69.9</td></tr><tr><td>CTW1500</td><td>40.2</td><td>52.2</td><td>56.2</td><td>57.0</td><td>57.1</td><td>57.0</td><td>56.5</td><td>56.4</td></tr></table>
|
| 286 |
+
|
| 287 |
+
Table 4: Detection (top part) and end-to-end (bottom part) evaluation (F-measure) under varied number of fiducial points for different benchmarks.
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
N=2
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
N=3
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
N=5
|
| 297 |
+
Figure 5: Results of Text Perceptron with different number of fiducial points (4,6,10,12).
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
N=6
|
| 301 |
+
|
| 302 |
+
Figure 5 shows an example of end-to-end evaluation under different number of fiducial points. We see that the generated text masks by few fiducial points are hard to cover the entire curve texts. As the growing number of fiducial points, STM has more power to catch and rectify irregular text instances, which yields higher recognition accuracy.
|
| 303 |
+
|
| 304 |
+
In contrast to previous works, our method can generate any fixed number of fiducial points on text boundaries. The fiducial points generation method can also be used to annotate arbitrary-shaped text.
|
| 305 |
+
|
| 306 |
+
# 4.6 Visualization Results
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 6: Visualization results on origin images.
|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
|
| 333 |
+

|
| 334 |
+
|
| 335 |
+
Figure 6 and Figure 7 demonstrate some visualization results in Total-Text and CTW1500 datasets. Text Perceptron shows its powerful ability in catching the reading order of irregular scene text (including curved, long perspective, vertical, etc.), and with the help of fiducial points which can further recognize text in a much simpler way. From the segmentation results, we find that many of text-like false posi
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
Figure 7: Visualization result on Total-Text and CTW1500. The first row displays the segmented results and the second row shows the end-to-end results. Fiducial points are also visualized as colored points on text boundaries.
|
| 339 |
+
|
| 340 |
+

|
| 341 |
+
|
| 342 |
+

|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
Figure 8: Visualization of some failure samples.
|
| 346 |
+
|
| 347 |
+

|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
|
| 351 |
+
tives have been filtered out due to the missing of head or tail boundary. This means the features of head or tail boundaries contain the different semantic information with that of the center region. Figure 6 also shows the visualization of some rectified irregular text instances, in which vertical texts can be well transformed into the "lying-down" shapes.
|
| 352 |
+
|
| 353 |
+
Failure Samples We illustrate some failure samples that are difficult for Text Perceptron, as shown in Figure 8.
|
| 354 |
+
|
| 355 |
+
Overlapped text. It is a common tough task for segmentation-based detection methods. Pixels belong to the center text region for one text instance may also become the boundary region for another one. Even though our orderly overlaying strategy allows pixels to have multiple classes and makes boundary pixels have higher priority than center text pixels, which encourages inner instance to be separated from the outer instance. But experiments found that
|
| 356 |
+
|
| 357 |
+
many times, the boundaries of inner instance cannot be fully recalled to embrace such instance, and connecting between center text pixels will result in the failure of detecting such inner an instance.
|
| 358 |
+
|
| 359 |
+
Recognition of vertical instance. On the one hand, vertical texts appear in little frequency in the common datasets. One the other hand, although Text Perceptron can read vertical instances from left to right, it is still a challenge for recognition algorithm to distinguish whether the instance is a horizontal text or a 'lying-down' vertical one. Therefore, there are some correctly detected instances cannot be recognized right. It is also a common difficult problem for all existing recognition algorithms.
|
| 360 |
+
|
| 361 |
+
# 5 Conclusion
|
| 362 |
+
|
| 363 |
+
In this paper, we propose an end-to-end trainable text spotter named Text Perceptron aiming at spotting text with arbitrary-shapes. To achieve global optimization, a Shape Transform Module is proposed to unite the text detection and recognition into a whole framework. A segmentation-based detector is carefully designed to distinguish text instances and capture the latent information of text reading orders. Extensive experiments show that our method achieves competitive result in standard text benchmarks and the state-of-the-art in both detection and end-to-end evaluations on popular irregular text benchmarks.
|
| 364 |
+
|
| 365 |
+
# References
|
| 366 |
+
|
| 367 |
+
[Bookstein 1989] Bookstein, F. L. 1989. Principal Warps: Thin-Plate Splines and the Decomposition of Deformations. IEEE TPAMI 11(6):567-585.
|
| 368 |
+
[Bušta, Neumann, and Matas 2017] Bušta, M.; Neumann, L.; and Matas, J. 2017. Deep Textspotter: An End-to-End Trainable Scene Text Localization and Recognition Framework. In ICCV, 2223-2231.
|
| 369 |
+
[Cheng et al. 2017] Cheng, Z.; Bai, F.; Xu, Y.; Zheng, G.; Pu, S.; and Zhou, S. 2017. Focusing Attention: Towards Accurate Text Recognition in Natural Images. In ICCV, 5076-5084.
|
| 370 |
+
[Ch'ng and Chan 2017] Ch'ng, C. K., and Chan, C. S. 2017. Total-text: A Comprehensive Dataset for Scene Text Detection and Recognition. In ICDAR, volume 1, 935-942.
|
| 371 |
+
[Dai et al. 2018] Dai, Y.; Huang, Z.; Gao, Y.; Xu, Y.; Chen, K.; Guo, J.; and Qiu, W. 2018. Fused Text Segmentation Networks for Multi-oriented Scene Text Detection. In ICPR, 3604-3609.
|
| 372 |
+
[Gupta, Vedaldi, and Zisserman 2016] Gupta, A.; Vedaldi, A.; and Zisserman, A. 2016. Synthetic Data for Text Localisation in Natural Images. In CVPR, 2315-2324.
|
| 373 |
+
[He et al. 2016] He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep Residual Learning for Image Recognition. In CVPR, 770-778.
|
| 374 |
+
[He et al. 2017] He, K.; Gkioxari, G.; Dollar, P.; and Girshick, R. 2017. Mask R-CNN. In ICCV, 2980-2988.
|
| 375 |
+
[He et al. 2018] He, T.; Tian, Z.; Huang, W.; Shen, C.; Qiao, Y.; and Sun, C. 2018. An End-to-End TextSpotter with Explicit Alignment and Attention. In CVPR, 5020–5029.
|
| 376 |
+
[Huang et al. 2017] Huang, J.; Rathod, V.; Sun, C.; Zhu, M.; Korattikara, A.; Fathi, A.; Fischer, I.; Wojna, Z.; Song, Y.; Guadarrama, S.; et al. 2017. Speed Accuracy Trade-offs for Modern Convolutional Object Detectors. In CVPR, 7310-7311.
|
| 377 |
+
[Jaderberg et al. 2015] Jaderberg, M.; Simonyan, K.; Zisserman, A.; et al. 2015. Spatial Transformer Networks. In NeurIPS, 2017-2025.
|
| 378 |
+
[Jaderberg, Vedaldi, and Zisserman 2014] Jaderberg, M.; Vedaldi, A.; and Zisserman, A. 2014. Deep Features for Text Spotting. In ECCV, 512-528.
|
| 379 |
+
[Karatzas et al. 2013] Karatzas, D.; Shafait, F.; Uchida, S.; Iwamura, M.; i Bigorda, L. G.; Mestre, S. R.; Mas, J.; Mota, D. F.; Almazan, J. A.; and De Las Heras, L. P. 2013. ICDAR 2013 Robust Reading Competition. In ICDAR, 1484-1493.
|
| 380 |
+
[Karatzas et al. 2015] Karatzas, D.; Gomez-Bigorda, L.; Nicolaou, A.; Ghosh, S.; Bagdanov, A.; Iwamura, M.; Matas, J.; Neumann, L.; Chandrasekhar, V. R.; Lu, S.; et al. 2015. ICDAR 2015 Competition on Robust Reading. In ICDAR, 1156-1160.
|
| 381 |
+
[Li, Wang, and Shen 2017] Li, H.; Wang, P.; and Shen, C. 2017. Towards End-to-end Text Spotting with Convolutional Recurrent Neural Networks. In ICCV, 5248-5256.
|
| 382 |
+
[Liao et al. 2017] Liao, M.; Shi, B.; Bai, X.; Wang, X.; and Liu, W. 2017. TextBoxes: A Fast Text Detector with a Single Deep Neural Network. In AAAI, 4161-4167.
|
| 383 |
+
[Liao, Shi, and Bai 2018] Liao, M.; Shi, B.; and Bai, X. 2018. TextBoxes++: A Single-Shot Oriented Scene Text Detector. IEEE TIP 27(8):3676-3690.
|
| 384 |
+
[Lin et al. 2017] Lin, T.-Y.; Dollar, P.; Girshick, R.; He, K.; Hariharan, B.; and Belongie, S. 2017. Feature Pyramid Networks for Object Detection. In CVPR, 2117-2125.
|
| 385 |
+
[Liu et al. 2016] Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; and Berg, A. C. 2016. SSD: Single Shot Multibox Detector. In ECCV, 21-37. Springer.
|
| 386 |
+
[Liu et al. 2018] Liu, X.; Liang, D.; Yan, S.; Chen, D.; Qiao, Y.; and Yan, J. 2018. FOTS: Fast Oriented Text Spotting with a Unified Network. In CVPR, 5676-5685.
|
| 387 |
+
[Liu et al. 2019a] Liu, Y.; Jin, L.; Zhang, S.; Luo, C.; and Zhang, S. 2019a. Curved Scene Text Detection via Transverse and Longitudinal Sequence Connection. PR 90:337-345.
|
| 388 |
+
|
| 389 |
+
[Liu et al. 2019b] Liu, Z.; Lin, G.; Yang, S.; Liu, F.; Lin, W.; and Goh, W. L. 2019b. Towards Robust Curve Text Detection With Conditional Spatial Expansion. In CVPR.
|
| 390 |
+
[Long et al. 2018] Long, S.; Ruan, J.; Zhang, W.; He, X.; Wu, W.; and Yao, C. 2018. Textsnake: A Flexible Representation for Detecting Text of Arbitrary Shapes. In ECCV, 19-35.
|
| 391 |
+
[Luo, Jin, and Sun 2019] Luo, C.; Jin, L.; and Sun, Z. 2019. MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition. PR.
|
| 392 |
+
[Lyu et al. 2018] Lyu, P.; Liao, M.; Yao, C.; Wu, W.; and Bai, X. 2018. Mask Textspotter: An End-to-End Trainable Neural Network for Spotting Text with Arbitrary Shapes. In ECCV, 71-88.
|
| 393 |
+
[Ma et al. 2018] Ma, J.; Shao, W.; Ye, H.; Wang, L.; Wang, H.; Zheng, Y.; and Xue, X. 2018. Arbitrary-Oriented Scene Text Detection via Rotation Proposals. IEEE TMM 20(11):3111-3122.
|
| 394 |
+
[Milletari, Navab, and Ahmadi 2016] Milletari, F.; Navab, N.; and Ahmadi, S.-A. 2016. V-net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation. In 3DV, 565-571.
|
| 395 |
+
[Ren et al. 2015] Ren, S.; He, K.; Girshick, R.; and Sun, J. 2015. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In NeurIPS, 91-99.
|
| 396 |
+
[Shi, Bai, and Yao 2017] Shi, B.; Bai, X.; and Yao, C. 2017. An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition. IEEE TPAMI 39(11):2298-2304.
|
| 397 |
+
[Shi et al. 2016] Shi, B.; Wang, X.; Lyu, P.; Yao, C.; and Bai, X. 2016. Robust Scene Text Recognition with Automatic Rectification. In CVPR, 4168-4176.
|
| 398 |
+
[Shrivastava, Gupta, and Girshick 2016] Shrivastava, A.; Gupta, A.; and Girshick, R. 2016. Training Region-based Object Detectors with Online Hard Example Mining. In CVPR, 761-769.
|
| 399 |
+
[Sun et al. 2018] Sun, Y.; Zhang, C.; Huang, Z.; Liu, J.; Han, J.; and Ding, E. 2018. TextNet: Irregular Text Reading from Images with an End-to-End Trainable Network. In ACCV.
|
| 400 |
+
[Wang et al. 2012] Wang, T.; Wu, D. J.; Coates, A.; and Ng, A. Y. 2012. End-to-End Text Recognition with Convolutional Neural Networks. In ICPR, 3304–3308.
|
| 401 |
+
[Wang et al. 2019] Wang, W.; Xie, E.; Li, X.; Hou, W.; Lu, T.; Yu, G.; and Shao, S. 2019. Shape Robust Text Detection With Progressive Scale Expansion Network. In CVPR.
|
| 402 |
+
[Wu and Natarajan 2017] Wu, Y., and Natarajan, P. 2017. Self-organized Text Detection with Minimal Post-processing via Border Learning. In ICCV, 5010-5019.
|
| 403 |
+
[Xie et al. 2019] Xie, E.; Zang, Y.; Shao, S.; Yu, G.; Yao, C.; and Li, G. 2019. Scene Text Detection with Supervised Pyramid Context Network. In AAAI.
|
| 404 |
+
[Xu et al. 2019] Xu, Y.; Wang, Y.; Zhou, W.; Wang, Y.; Yang, Z.; and Bai, X. 2019. Textfield: Learning a deep direction field for irregular scene text detection. IEEE TIP.
|
| 405 |
+
[Xue, Lu, and Zhan 2018] Xue, C.; Lu, S.; and Zhan, F. 2018. Accurate Scene Text Detection through Border Semantics Awareness and Bootstrapping. In ECCV, 370-387.
|
| 406 |
+
[Zhan and Lu 2019] Zhan, F., and Lu, S. 2019. Esir: End-to-end scene text recognition via iterative image rectification. In CVPR, 2059-2068.
|
| 407 |
+
[Zhang et al. 2018] Zhang, S.; Liu, Y.; Jin, L.; and Luo, C. 2018. Feature Enhancement Network: A Refined Scene Text Detector. In AAAI.
|
| 408 |
+
[Zhang et al. 2019] Zhang, C.; Liang, B.; Huang, Z.; En, M.; Han, J.; Ding, E.; and Ding, X. 2019. Look More Than Once: An Accurate Detector for Text of Arbitrary Shapes. In CVPR.
|
| 409 |
+
[Zhou et al. 2017] Zhou, X.; Yao, C.; Wen, H.; Wang, Y.; Zhou, S.; He, W.; and Liang, J. 2017. EAST: An Efficient and Accurate Scene Text Detector. In CVPR, 2642-2651.
|
2002.06xxx/2002.06820/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f029c8f39c6aab7e60b49de7f3eda10242352069f481b3f29dc42a8b35ee82b1
|
| 3 |
+
size 732452
|
2002.06xxx/2002.06820/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06823/1208346c-943e-418a-bd6c-6ac7c06ca7ef_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46d4e7702f3dc91aca43e4ee43659f2b65ea80cfd758dc1719202c4d4a1bdb00
|
| 3 |
+
size 755008
|
2002.06xxx/2002.06823/full.md
ADDED
|
@@ -0,0 +1,435 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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TO NEURAL MACHINE TRANSLATION
|
| 2 |
+
|
| 3 |
+
Jinhua Zhu $^{1,*}$ , Yingce Xia $^{2,*}$ , Lijun Wu $^{3}$ , Di He $^{4}$
|
| 4 |
+
|
| 5 |
+
Tao Qin $^{2}$ , Wengang Zhou $^{1}$ , Houqiang Li $^{1}$ , Tie-Yan Liu $^{2}$
|
| 6 |
+
|
| 7 |
+
$^{1}$ CAS Key Laboratory of GIPAS, EEIS Department, University of Science and Technology of China;
|
| 8 |
+
2Microsoft Research;
|
| 9 |
+
$^{3}$ Sun Yat-sen University;
|
| 10 |
+
<sup>4</sup>Key Laboratory of Machine Perception (MOE), School of EECS, Peking University
|
| 11 |
+
teslazhu@mail.ustc.edu.cn,{zhwg,lihq}@ustc.edu.cn
|
| 12 |
+
2yingce.xia@gmail.com, {taoqin,tyliu}@microsoft.com
|
| 13 |
+
$^{3}$ wulijun3@mail2.sysu.edu.cn $^{4}$ di_he@pku.edu.cn
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
The recently proposed BERT (Devlin et al., 2019) has shown great power on a variety of natural language understanding tasks, such as text classification, reading comprehension, etc. However, how to effectively apply BERT to neural machine translation (NMT) lacks enough exploration. While BERT is more commonly used as fine-tuning instead of contextual embedding for downstream language understanding tasks, in NMT, our preliminary exploration of using BERT as contextual embedding is better than using for fine-tuning. This motivates us to think how to better leverage BERT for NMT along this direction. We propose a new algorithm named BERT-fused model, in which we first use BERT to extract representations for an input sequence, and then the representations are fused with each layer of the encoder and decoder of the NMT model through attention mechanisms. We conduct experiments on supervised (including sentence-level and document-level translations), semi-supervised and unsupervised machine translation, and achieve state-of-the-art results on seven benchmark datasets. Our code is available at https://github.com/bert-nmt/bert-nmt.
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
Recently, pre-training techniques, like ELMo (Peters et al., 2018), GPT/GPT-2 (Radford et al., 2018; 2019), BERT (Devlin et al., 2019), cross-lingual language model (briefly, XLM) (Lample & Conneau, 2019), XLNet (Yang et al., 2019b) and RoBERTa (Liu et al., 2019) have attracted more and more attention in machine learning and natural language processing communities. The models are first pre-trained on large amount of unlabeled data to capture rich representations of the input, and then applied to the downstream tasks by either providing context-aware embeddings of an input sequence (Peters et al., 2018), or initializing the parameters of the downstream model (Devlin et al., 2019) for fine-tuning. Such pre-training approaches lead to significant improvements on natural language understanding tasks. Among them, BERT is one of the most powerful techniques that inspires lots of variants like XLNet, XLM, RoBERTa and achieves state-of-the-art results for many language understanding tasks including reading comprehension, text classification, etc (Devlin et al., 2019).
|
| 22 |
+
|
| 23 |
+
Neural Machine Translation (NMT) aims to translate an input sequence from a source language to a target language. An NMT model usually consists of an encoder to map an input sequence to hidden representations, and a decoder to decode hidden representations to generate a sentence in the target language. Given that BERT has achieved great success in language understanding tasks, a question worthy studying is how to incorporate BERT to improve NMT. Due to the computation resource limitation, training a BERT model from scratch is unaffordable for many researchers. Thus, we focus on the setting of leveraging a pre-trained BERT model (instead of training a BERT model from scratch) for NMT.
|
| 24 |
+
|
| 25 |
+
Given that there is limited work leveraging BERT for NMT, our first attempt is to try two previous strategies: (1) using BERT to initialize downstream models and then fine-tuning the models, and (2) using BERT as context-aware embeddings for downstream models. For the first strategy, following Devlin et al. (2019), we initialize the encoder of an NMT model with a pre-trained BERT model, and then finetune the NMT model on the downstream datasets. Unfortunately, we did not observe significant improvement. Using a pre-trained XLM (Lample & Conneau, 2019) model, a variant of BERT for machine translation, to warm up an NMT model is another choice. XLM has been verified to be helpful for WMT'16 Romanian-to-English translation. But when applied to a language domain beyond the corpus for training XLM (such as IWSLT dataset (Cettolo et al., 2014), which is about spoken languages) or when large bilingual data is available for downstream tasks, no significant improvement is observed neither. For the second strategy, following the practice of (Peters et al., 2018), we use BERT to provide context-aware embeddings for the NMT model. We find that this strategy outperforms the first one (please refer to Section 3 for more details). This motivates us to go along this direction and design more effective algorithms.
|
| 26 |
+
|
| 27 |
+
We propose a new algorithm, BERT-fused model, in which we exploit the representation from BERT by feeding it into all layers rather than served as input embeddings only. We use the attention mechanism to adaptively control how each layer interacts with the representations, and deal with the case that BERT module and NMT module might use different word segmentation rules, resulting in different sequence (i.e., representation) lengths. Compared to standard NMT, in addition to BERT, there are two extra attention modules, the BERT-encoder attention and BERT-decoder attention. An input sequence is first transformed into representations processed by BERT. Then, by the BERT-encoder attention module, each NMT encoder layer interacts with the representations obtained from BERT and eventually outputs fused representations leveraging both BERT and the NMT encoder. The decoder works similarly and fuses BERT representations and NMT encoder representations.
|
| 28 |
+
|
| 29 |
+
We conduct 14 experiments on various NMT tasks to verify our approach, including supervised, semi-supervised and unsupervised settings. For supervised NMT, we work on five tasks of IWSLT datasets and two WMT datasets. Specifically, we achieve 36.11 BLEU score on IWSLT'14 German-to-English translation, setting a new record on this task. We also work on two document-level translations of IWSLT, and further boost the BLEU score of German-to-English translation to 36.69. On WMT'14 datasets, we achieve 30.75 BLEU score on English-to-German translation and 43.78 on English-to-French translation, significantly better over the baselines. For semi-supervised NMT, we boost BLEU scores of WMT'16 Romanian-to-English translation with back translation (Sennrich et al., 2016b), a classic semi-supervised algorithm, from 37.73 to 39.10, achieving the best result on this task. Finally, we verify our algorithm on unsupervised English $\leftrightarrow$ French and unsupervised English $\leftrightarrow$ Romanian translations and also achieve state-of-the-art results.
|
| 30 |
+
|
| 31 |
+
# 2 BACKGROUND AND RELATED WORK
|
| 32 |
+
|
| 33 |
+
We briefly introduce the background of NMT and review current pre-training techniques.
|
| 34 |
+
|
| 35 |
+
NMT aims to translate an input sentence from the source language to the target one. An NMT model usually consists of an encoder, a decoder and an attention module. The encoder maps the input sequence to hidden representations and the decoder maps the hidden representations to the target sequence. The attention module is first introduced by Bahdanau et al. (2015), which is used to better align source words and target words. The encoder and decoder can be specialized as LSTM (Hochreiter & Schmidhuber, 1997; Sutskever et al., 2014; Wu et al., 2016), CNN (Gehring et al., 2017) and Transformer (Vaswani et al., 2017). A Transformer layer consists of three sublayers, a self-attention layer that processes sequential data taking the context of each timestep into consideration, an optional encoder-decoder attention layer that bridges the input sequence and target sequence which exists in decoder only, and a feed-forward layer for non-linear transformation. Transformer achieves the state-of-the-art results for NMT (Barrault et al., 2019). In this work, we will use Transformer as the basic architecture of our model.
|
| 36 |
+
|
| 37 |
+
Pre-training has a long history in machine learning and natural language processing (Erhan et al., 2009; 2010). Mikolov et al. (2013) and Pennington et al. (2014) proposed to use distributional representations (i.e., word embeddings) for individual words. Dai & Le (2015) proposed to train a language model or an auto-encoder with unlabeled data and then leveraged the obtained model to finetune downstream tasks. Pre-training has attracted more and more attention in recent years
|
| 38 |
+
|
| 39 |
+
and achieved great improvements when the data scale becomes large and deep neural networks are employed. ELMo was proposed in Peters et al. (2018) based on bidirectional LSTMs and its pre-trained models are fed into downstream tasks as context-aware inputs. In GPT (Radford et al., 2018), a Transformer based language model is pre-trained on unlabeled dataset and then finetuned on downstream tasks. BERT (Devlin et al., 2019) is one of the widely adopted pre-training approach for model initialization. The architecture of BERT is the encoder of Transformer (Vaswani et al., 2017). Two kinds of objective functions are used in BERT training: (1) Masked language modeling (MLM), where $15\%$ words in a sentence are masked and BERT is trained to predict them with their surrounding words. (2) Next sentence prediction (NSP): Another task of pre-training BERT is to predict whether two input sequences are adjacent. For this purpose, the training corpus consists of tuples ([cls], input 1, [sep], input 2, [sep]), with learnable special tokens [cls] to classify whether input 1 and input 2 are adjacent and [sep] to segment two sentences, and with probability $50\%$ , the second input is replaced with a random input. Variants of BERT have been proposed: In XLM (Lample & Conneau, 2019), the model is pre-trained based on multiple languages and NSP task is removed; in RoBERTa (Liu et al., 2019), more unlabeled data is leveraged without NSP task neither; in XLNet (Yang et al., 2019b), a permutation based modeling is introduced.
|
| 40 |
+
|
| 41 |
+
# 3 A PRELIMINARY EXPLORATION
|
| 42 |
+
|
| 43 |
+
While a few pieces of work (Lample & Conneau, 2019; Song et al., 2019) design specific pretraining methods for NMT, they are time and resource consuming given that they need to pre-train large models from scratch using large-scale data, and even one model for each language pair. In this work, we focus on the setting of using a pre-trained BERT model. Detailed model download links can be found in Appendix D.
|
| 44 |
+
|
| 45 |
+
Considering that pre-trained models have been utilized in two different ways for other natural language tasks, it is straightforward to try them for NMT. Following previous practice, we make the following attempts.
|
| 46 |
+
|
| 47 |
+
(I) Use pre-trained models to initialize the NMT model. There are different implementations for this approach. (1) Following (Devlin et al., 2019), we initialize the encoder of an NMT model with a pretrained BERT. (2) Following (Lample & Conneau, 2019), we initialize the encoder and/or decoder of an NMT model with XLM.
|
| 48 |
+
|
| 49 |
+
(II) Use pre-trained models as inputs to the NMT model. Inspired from (Peters et al., 2018), we feed the outputs of the last layer of BERT to an NMT model as its inputs.
|
| 50 |
+
|
| 51 |
+
We conduct experiments on the IWSLT'14 English $\rightarrow$ German translation, a widely adopted dataset for machine translation consisting of $160k$ labeled sentence pairs. We choose Transformer (Vaswani et al., 2017) as the basic model architecture with transformer_iwslt_de_en configuration (a six-layer model with 36.7M parameters). The translation quality is evaluated by BLEU (Papineni et al., 2002) score; the larger, the better. Both $\mathrm{BERT}_{\mathrm{base}}$ and XLM models are pre-trained and we get them from the Web. More details about the experimental settings are included in Appendix A.2.
|
| 52 |
+
|
| 53 |
+
Table 1: Preliminary explorations on IWSLT'14 English $\rightarrow$ German translation.
|
| 54 |
+
|
| 55 |
+
<table><tr><td>Algorithm</td><td>BLEU score</td></tr><tr><td>Standard Transformer</td><td>28.57</td></tr><tr><td>Use BERT to initialize the encoder of NMT</td><td>27.14</td></tr><tr><td>Use XLM to initialize the encoder of NMT</td><td>28.22</td></tr><tr><td>Use XLM to initialize the decoder of NMT</td><td>26.13</td></tr><tr><td>Use XLM to initialize both the encoder and decoder of NMT</td><td>28.99</td></tr><tr><td>Leveraging the output of BERT as embeddings</td><td>29.67</td></tr></table>
|
| 56 |
+
|
| 57 |
+
The results are shown in Table 1. We have several observations: (1) Using BERT to initialize the encoder of NMT can only achieve 27.14 BLEU score, which is even worse than standard Transformer without using BERT. That is, simply using BERT to warm up an NMT model is not a good choice. (2) Using XLM to initialize the encoder or decoder respectively, we get 28.22 or 26.13 BLEU score, which does not outperform the baseline. If both modules are initialized with XLM, the BLEU score
|
| 58 |
+
|
| 59 |
+
is boosted to 28.99, slightly outperforming the baseline. Although XLM achieved great success on WMT'16 Romanian-to-English, we get limited improvement here. Our conjecture is that the XLM model is pre-trained on news data, which is out-of-domain for IWSLT dataset mainly about spoken languages and thus, leading to limited improvement. (3) When using the output of BERT as context-aware embeddings of the encoder, we achieve 29.67 BLEU, much better than using pretrained models for initialization. This shows that leveraging BERT as a feature provider is more effective in NMT. This motivates us to take one step further and study how to fully exploit such features provided by pre-trained BERT models.
|
| 60 |
+
|
| 61 |
+
# 4 ALGORITHM
|
| 62 |
+
|
| 63 |
+
In this section, we first define the necessary notations, then introduce our proposed BERT-fused model and finally provide discussions with existing works.
|
| 64 |
+
|
| 65 |
+
Notations Let $\mathcal{X}$ and $\mathcal{Y}$ denote the source language domain and target language domain respectively, which are the collections of sentences with the corresponding languages. For any sentence $x\in \mathcal{X}$ and $y\in \mathcal{Y}$ , let $l_{x}$ and $l_{y}$ denote the number of units (e.g., words or sub-words) in $x$ and $y$ . The $i$ -th unit in $x/y$ is denoted as $x_i/y_i$ . Denote the encoder, decoder and BERT as Enc, Dec and BERT respectively. For ease of reference, we call the encoder and decoder in our work as the NMT module. W.l.o.g., we assume both the encoder and decoder consists of $L$ layers. Let $\mathrm{att}(q,K,V)$ denote the attention layer, where $q$ , $K$ and $V$ indicate query, key and value respectively (Vaswani et al., 2017). We use the same feed-forward layer as that used in (Vaswani et al., 2017) and denote it as FFN. Mathematical formulations of the above layers are left at Appendix E.
|
| 66 |
+
|
| 67 |
+
# 4.1 BERT-FUSED MODEL
|
| 68 |
+
|
| 69 |
+
An illustration of our algorithm is shown in Figure 1. Any input $x \in \mathcal{X}$ is progressively processed by the BERT, encoder and decoder.
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
Figure 1: The architecture of BERT-fused model. The left and right figures represent the BERT, encoder and decoder respectively. Dash lines denote residual connections. $H_{B}$ (red part) and $H_{E}^{L}$ (green part) denote the output of the last layer from BERT and encoder.
|
| 73 |
+
|
| 74 |
+
Step-1: Given any input $x \in \mathcal{X}$ , BERT first encodes it into representation $H_{B} = \mathrm{BERT}(x)$ . $H_{B}$ is the output of the last layer in BERT. The $h_{B,i} \in H_{B}$ is the representation of the $i$ -th wordpiece in $x$ .
|
| 75 |
+
|
| 76 |
+
Step-2: Let $H_E^l$ denote the hidden representation of $l$ -th layer in the encoder, and let $H_E^0$ denote word embedding of sequence $x$ . Denote the $i$ -th element in $H_E^l$ as $h_i^l$ for any $i \in [l_x]$ . In the $l$ -th
|
| 77 |
+
|
| 78 |
+
layer, $l\in [L]$
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\tilde {h} _ {i} ^ {l} = \frac {1}{2} \left(\operatorname {a t t n} _ {S} \left(h _ {i} ^ {l - 1}, H _ {E} ^ {l - 1}, H _ {E} ^ {l - 1}\right) + \operatorname {a t t n} _ {B} \left(h _ {i} ^ {l - 1}, H _ {B}, H _ {B}\right)\right), \forall i \in [ l _ {x} ], \tag {1}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $\mathrm{att}_{S}$ and $\mathrm{att}_{B}$ are attention models (see Eqn.(6)) with different parameters. Then each $\tilde{h}_i^l$ is further processed by $\mathrm{FFN}(\cdot)$ defined in Eqn.(7) and we get the output of the $l$ -th layer: $H_{E}^{l} = (\mathrm{FFN}(\tilde{h}_{1}^{l}),\dots ,\mathrm{FFN}(\tilde{h}_{l_{x}}^{l}))$ . The encoder will eventually output $H_{E}^{L}$ from the last layer.
|
| 85 |
+
|
| 86 |
+
Step-3: Let $S_{<t}^{l}$ denote the hidden state of $l$ -th layer in the decoder preceding time step $t$ , i.e., $S_{<t}^{l} = (s_{1}^{l}, \dots, s_{t-1}^{l})$ . Note $s_{1}^{0}$ is a special token indicating the start of a sequence, and $s_{t}^{0}$ is the embedding of the predicted word at time-step $t - 1$ . At the $l$ -th layer, we have
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\begin{array}{l} \hat {s} _ {t} ^ {l} = \operatorname {a t t n} _ {S} \left(s _ {t} ^ {l - 1}, S _ {< t + 1} ^ {l - 1}, S _ {< t + 1} ^ {l - 1}\right); \\ \tilde {s} _ {t} ^ {l} = \frac {1}{2} \left(\operatorname {a t t n} _ {B} \left(\hat {s} _ {t} ^ {l}, H _ {B}, H _ {B}\right) + \operatorname {a t t n} _ {E} \left(\hat {s} _ {t} ^ {l}, H _ {E} ^ {L}, H _ {E} ^ {L}\right)\right), s _ {t} ^ {l} = \text {F F N} \left(\tilde {s} _ {t} ^ {l}\right). \tag {2} \\ \end{array}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
The $\mathrm{attn}_S$ , $\mathrm{attn}_B$ and $\mathrm{attn}_E$ represent self-attention model, BERT-decoder attention model and encoder-decoder attention model respectively. Eqn.(2) iterates over layers and we can eventually obtain $s_t^L$ . Finally $s_t^L$ is mapped via a linear transformation and softmax to get the $t$ -th predicted word $\hat{y}_t$ . The decoding process continues until meeting the end-of-sentence token.
|
| 93 |
+
|
| 94 |
+
In our framework, the output of BERT serves as an external sequence representation, and we use an attention model to incorporate it into the NMT model. This is a general way to leverage the pre-trained model regardless of the tokenization way.
|
| 95 |
+
|
| 96 |
+
# 4.2 DROP-NET TRICK
|
| 97 |
+
|
| 98 |
+
Inspired by dropout (Srivastava et al., 2014) and drop-path (Larsson et al., 2017), which can regularize the network training, we propose a drop-net trick to ensure that the features output by BERT and the conventional encoder are fully utilized. The drop-net will effect Eqn.(1) and Eqn.(2). Denote the drop-net rate as $p_{\mathrm{net}} \in [0,1]$ . At each training iteration, for any layer $l$ , we uniformly sample a random variable $U^{l}$ from $[0,1]$ , then all the $\tilde{h}_i^l$ in Eqn.(1) are calculated in the following way:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\begin{array}{l} \tilde {h} _ {i, \text {d r o p - n e t}} ^ {l} = \mathbb {I} \left(U ^ {l} < \frac {p _ {\text {n e t}}}{2}\right) \cdot \operatorname {a t t n} _ {S} \left(h _ {i} ^ {l - 1}, H _ {E} ^ {l - 1}, H _ {E} ^ {l - 1}\right) + \mathbb {I} \left(U ^ {l} > 1 - \frac {p _ {\text {n e t}}}{2}\right) \cdot \operatorname {a t t n} _ {B} \left(h _ {i} ^ {l - 1}, H _ {B}, H _ {B}\right) \tag {3} \\ + \frac {1}{2} \mathbb {I} \big (\frac {p _ {\mathrm {n e t}}}{2} \leq U ^ {l} \leq 1 - \frac {p _ {\mathrm {n e t}}}{2} \big) \cdot \big (\mathrm {a t t n} _ {S} (h _ {i} ^ {l - 1}, H _ {E} ^ {l - 1}, H _ {E} ^ {l - 1}) + \mathrm {a t t n} _ {B} (h _ {i} ^ {l - 1}, H _ {B}, H _ {B}) \big), \\ \end{array}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $\mathbb{I}(\cdot)$ is the indicator function. For any layer, with probability $p_{\mathrm{net}} / 2$ , either the BERT-encoder attention or self-attention is used only; w.p. $(1 - p_{\mathrm{net}})$ , both the two attention models are used. For example, at a specific iteration, the first layer might uses $\mathrm{att}_S$ only while the second layer uses $\mathrm{att}_B$ only. During inference time, the expected output of each attention model is used, which is $\mathbb{E}_{U\sim \mathrm{uniform}[0,1]}(\tilde{h}_{i,\mathrm{drop - net}}^l)$ . The expectation is exactly Eqn.(1).
|
| 105 |
+
|
| 106 |
+
Similarly, for training of the decoder, with the drop-net trick, we have
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\begin{array}{l} \tilde {s} _ {t, \text {d r o p - n e t}} ^ {l} = \mathbb {I} \left(U ^ {l} < \frac {p _ {\text {n e t}}}{2}\right) \cdot \operatorname {a t t n} _ {B} \left(\hat {s} _ {t} ^ {l}, H _ {B}, H _ {B}\right) + \mathbb {I} \left(U ^ {l} > 1 - \frac {p _ {\text {n e t}}}{2}\right) \cdot \operatorname {a t t n} _ {E} \left(\hat {s} _ {t} ^ {l}, H _ {E} ^ {L}, H _ {E} ^ {L}\right) \\ + \frac {1}{2} \mathbb {I} \left(\frac {p _ {\text {n e t}}}{2} \leq U ^ {l} \leq 1 - \frac {p _ {\text {n e t}}}{2}\right) \cdot \left(\operatorname {a t t n} _ {B} \left(\hat {s} _ {t} ^ {l}, H _ {B}, H _ {B}\right) + \operatorname {a t t n} _ {E} \left(\hat {s} _ {t} ^ {l}, H _ {E} ^ {L}, H _ {E} ^ {L}\right)\right). \tag {4} \\ \end{array}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
For inference, it is calculated in the same way as Eqn.(2). Using this technique can prevent network from overfitting (see the second part of Section 6 for more details).
|
| 113 |
+
|
| 114 |
+
# 4.3 DISCUSSION
|
| 115 |
+
|
| 116 |
+
Comparison with ELMo As introduced in Section 2, ELMo (Peters et al., 2018) provides a context-aware embeddings for the encoder in order to capture richer information of the input sequence. Our approach is a more effective way of leveraging the features from the pre-trained model: (1) The output features of the pre-trained model are fused in all layers of the NMT module, ensuring the well-pre-trained features are fully exploited; (2) We use the attention model to bridge the NMT module and the pre-trained features of BERT, in which the NMT module can adaptively determine how to leverage the features from BERT.
|
| 117 |
+
|
| 118 |
+
Limitations We are aware that our approach has several limitations. (1) Additional storage cost: our approach leverages a BERT model, which results in additional storage cost. However, considering the BLEU improvement and the fact that we do not need additional training of BERT, we believe that the additional storage is acceptable. (2) Additional inference time: We use BERT to encode the input sequence, which takes about $45\%$ additional time (see Appendix C for details). We will leave the improvement of the above two limitations as future work.
|
| 119 |
+
|
| 120 |
+
# 5 APPLICATION TO SUPERVISED NMT AND SEMI-SUPERVISED NMT
|
| 121 |
+
|
| 122 |
+
We first verify our BERT-fused model on the supervised setting, including low-resource and richresource scenarios. Then we conduct experiments on document-level translation to verify our approach. Finally, we combine BERT-fused model with back translation (Sennrich et al., 2016b) to verify the effectiveness of our method on semi-supervised NMT.
|
| 123 |
+
|
| 124 |
+
# 5.1 SETTINGS
|
| 125 |
+
|
| 126 |
+
Dataset For the low-resource scenario, we choose IWSLT'14 English $\leftrightarrow$ German (En $\leftrightarrow$ De), English $\rightarrow$ Spanish (En $\rightarrow$ Es), IWSLT'17 English $\rightarrow$ French (En $\rightarrow$ Fr) and English $\rightarrow$ Chinese (En $\rightarrow$ Zh) translation. There are $160k$ , $183k$ , $236k$ , $235k$ bilingual sentence pairs for En $\leftrightarrow$ De, En $\rightarrow$ Es, En $\rightarrow$ Fr and En $\rightarrow$ Zh tasks. Following the common practice (Edunov et al., 2018), for En $\leftrightarrow$ De, we lowercase all words. All sentences are preprocessed by BPE (Sennrich et al., 2016c). The model configuration is transformer_iwslt_de_en, representing a six-layer model with embedding size 512 and FFN layer dimension 1024. For the rich-resource scenario, we work on WMT'14 En $\rightarrow$ De and En $\rightarrow$ Fr, whose corpus sizes are $4.5M$ and $36M$ respectively. We concatenate newtest2012 and newtest2013 as the validation set and use newtest2014 as the test set. The model configuration is transformer/big, another six-layer network with embedding size 1024 and FFN layer dimension 4096. More details about data and model are left in Appendix A.1.
|
| 127 |
+
|
| 128 |
+
We choose $\mathrm{BERT}_{\mathrm{base}}$ for IWSLT tasks and $\mathrm{BERT}_{\mathrm{large}}$ for WMT tasks, which can ensure that the dimension of the BERT and NMT model almost match. The BERT models are fixed during training. Detailed BERT information for each task is in Appendix D. The drop-net rate $p_{\mathrm{net}}$ is set as 1.0.
|
| 129 |
+
|
| 130 |
+
Training Strategy We first train an NMT model until convergence, then initialize the encoder and decoder of the BERT-fused model with the obtained model. The BERT-encoder attention and BERT-decoder attention are randomly initialized. Experiments on IWSLT and WMT tasks are conducted on 1 and 8 M40 GPUs respectively. The batchsize is $4k$ tokens per GPU. Following (Ott et al., 2018), for WMT tasks, we accumulate the gradient for 16 iterations and then update to simulate a 128-GPU environment. It takes 1, 8 and 14 days to obtain the pre-trained NMT models, and additional 1, 7 and 10 days to finish the whole training process. The optimization algorithm is Adam (Kingma & Ba, 2014) with initial learning rate 0.0005 and inverse_sqrt learning rate scheduler (Vaswani et al., 2017). For WMT'14 En $\rightarrow$ De, we use beam search with width 4 and length penalty 0.6 for inference following (Vaswani et al., 2017). For other tasks, we use width 5 and length penalty 1.0.
|
| 131 |
+
|
| 132 |
+
Evaluation We use multi-bleu.perl to evaluate IWSLT'14 $\mathrm{En}\leftrightarrow \mathrm{De}$ and WMT translation tasks for fair comparison with previous work. For the remaining tasks, we use a more advance implementation of BLEU score, sacreBLEU for evaluation. Script urls are in Appendix A.1.
|
| 133 |
+
|
| 134 |
+
# 5.2 RESULTS
|
| 135 |
+
|
| 136 |
+
The results of IWSLT translation tasks are reported in Table 2. We implemented standard Transformer as baseline. Our proposed BERT-fused model can improve the BLEU scores of the five tasks by 1.88, 1.47, 2.4, 1.9 and 2.8 points respectively, demonstrating the effectiveness of our method. The consistent improvements on various tasks shows that our method works well for low-resource translations. We achieved state-of-the-art results on IWSLT'14 De $\rightarrow$ En translation, a widely investigated baseline in ma
|
| 137 |
+
|
| 138 |
+
Table 2: BLEU of all IWSLT tasks.
|
| 139 |
+
|
| 140 |
+
<table><tr><td></td><td>Transformer</td><td>BERT-fused</td></tr><tr><td>En→De</td><td>28.57</td><td>30.45</td></tr><tr><td>De→En</td><td>34.64</td><td>36.11</td></tr><tr><td>En→Es</td><td>39.0</td><td>41.4</td></tr><tr><td>En→Zh</td><td>26.3</td><td>28.2</td></tr><tr><td>En→Fr</td><td>35.9</td><td>38.7</td></tr></table>
|
| 141 |
+
|
| 142 |
+
chine translation. The comparison with previous methods are shown in Appendix B.4 due to space limitation.
|
| 143 |
+
|
| 144 |
+
The results of WMT'14 $\mathrm{En}\rightarrow \mathrm{De}$ and $\mathrm{En}\rightarrow \mathrm{Fr}$ are shown in Table 3. Our reproduced Transformer matches the results reported in Ott et al. (2018), and we can see that our BERT-fused model can improve these two numbers to 30.75 and 43.78, achieving 1.63 and 0.82 points improvement. Our approach also outperforms the well-designed model DynamicConv (Wu et al., 2019) and a model obtained through neural architecture search (So et al., 2019).
|
| 145 |
+
|
| 146 |
+
Table 3: BLEU scores of WMT'14 translation.
|
| 147 |
+
|
| 148 |
+
<table><tr><td>Algorithm</td><td>En→De</td><td>En→Fr</td></tr><tr><td>DynamicConv (Wu et al., 2019)</td><td>29.7</td><td>43.2</td></tr><tr><td>Evolved Transformer (So et al., 2019)</td><td>29.8</td><td>41.3</td></tr><tr><td>Transformer + Large Batch (Ott et al., 2018)</td><td>29.3</td><td>43.0</td></tr><tr><td>Our Reproduced Transformer</td><td>29.12</td><td>42.96</td></tr><tr><td>Our BERT-fused model</td><td>30.75</td><td>43.78</td></tr></table>
|
| 149 |
+
|
| 150 |
+
# 5.3 TRANSLATION WITH DOCUMENT-LEVEL CONTEXTUAL INFORMATION
|
| 151 |
+
|
| 152 |
+
BERT is able to capture the relation between two sentences, since the next sentence prediction (NSP) task is to predict whether two sentences are adjacent. We can leverage this property to improve translation with document-level contextual information (Miculicich et al., 2018), which is briefly denoted as document-level translation. The inputs are a couple of sentences extracted from a paragraph/document, $x_{1}^{d}, x_{2}^{d}, \dots, x_{T}^{d}$ , where the $T$ $x$ 's are contextually correlated. We want to translate them into target language by considering the contextual information.
|
| 153 |
+
|
| 154 |
+
Algorithm In our implementation, to translate a sentence $x$ to target domain, we leverage the contextual information by taking both $x$ and its preceding sentence $x_{\mathrm{prev}}$ as inputs. $x$ is fed into Enc, which is the same as sentence-level translation. For the input of BERT, it is the concatenation of two sequences: ([cls], $x_{\mathrm{prev}}$ , [sep], $x$ , [sep]), where both [cls] and [sep] are special tokens of BERT.
|
| 155 |
+
|
| 156 |
+
Setting We use IWSLT'14 $\mathrm{En}\leftrightarrow \mathrm{De}$ dataset as introduced in Section 5.1. The data is a collection of TED talks, where each talk consists of several sequences. We can extract the adjacent sentences for training, validation and test sets. The training strategy, hyperparameter selection and evaluation metric are the same for sentence-level translation.
|
| 157 |
+
|
| 158 |
+
Baselines We use two baselines here. (1) To demonstrate how BERT works in our model, we replace BERT by a Transformer with configuration transformer-iwslt-de_en, which is randomly initialized and jointly trained. (2) Another baseline is proposed by Miculicich et al. (2018), where multiple preceding sentences in a document are leveraged using a hierarchical attention network.
|
| 159 |
+
|
| 160 |
+
Table 4: BLEU of document-level translation.
|
| 161 |
+
|
| 162 |
+
<table><tr><td></td><td>En→De</td><td>De→En</td></tr><tr><td>Sentence-level</td><td>28.57</td><td>34.64</td></tr><tr><td>Our Document-level</td><td>28.90</td><td>34.95</td></tr><tr><td>Miculicich et al. (2018)</td><td>27.94</td><td>33.97</td></tr><tr><td>Sentence-level + BERT</td><td>30.45</td><td>36.11</td></tr><tr><td>Document-level + BERT</td><td>31.02</td><td>36.69</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Results The results are shown in Table 4. We can see that introducing contextual information from an additional encoder can boost the sentence-level baselines, but the improvement is limited (0.33 for $\mathrm{En}\rightarrow \mathrm{De}$ and 0.31 for $\mathrm{De}\rightarrow \mathrm{En}$ ). For Miculicich et al. (2018), the best results we obtain are 27.94 and 33.97 respectively, which are worse than the sentence-level baselines. Combining BERT-fused model and document-level information, we can eventually achieve 31.02 for $\mathrm{En}\rightarrow \mathrm{De}$ and 36.69 for $\mathrm{De}\rightarrow \mathrm{En}$ . We perform significant test $^1$ between sentence-level and document-level translation. Our document-level BERT-fused model significantly outperforms sentence-level baseline with $p$ -value less than 0.01. This shows that our approach not only works for sentence-level translation, but can also be generalized to document-level translation.
|
| 165 |
+
|
| 166 |
+
# 5.4 APPLICATION TO SEMI-SUPERVISED NMT
|
| 167 |
+
|
| 168 |
+
We work on WMT'16 Romanian $\rightarrow$ English (Ro $\rightarrow$ En) translation to verify whether our approach can still make improvement over back translation (Sennrich et al., 2016b), the standard and powerful semi-supervised way to leverage monolingual data in NMT.
|
| 169 |
+
|
| 170 |
+
The number of bilingual sentence pairs for $\mathrm{Ro}\rightarrow \mathrm{En}$ is $0.6M$ . Sennrich et al. (2016a) provided $2M$ back translated data<sup>2</sup>. We use newsdev2016 as validation set and newstest2016 as test set. Sentences were encoded using BPE with a shared source-target vocabulary of about $32k$ tokens. We use transformer big configuration. Considering there is no Romanian BERT, we use the cased multilingual BERT (please refer to Appendix D) to encode inputs. The drop-net rate $p_{\mathrm{net}}$ is set as 1.0. The translation quality is evaluated by multi-bleu.perl.
|
| 171 |
+
|
| 172 |
+
The results are shown in Table 5. The Transformer baseline achieves 33.12 BLEU score. With back-translation, the performance is boosted to 37.73. We use the model obtained with back-translation to initialize BERT-fused model, and eventually reach 39.10 BLEU. Such a score surpasses the previous best result 38.5 achieved by XLM (Lample & Conneau, 2019) and sets a new record. This demonstrates that
|
| 173 |
+
|
| 174 |
+
<table><tr><td colspan="2">Table 5: BLEU scores of WMT'16 Ro→En.</td></tr><tr><td>Methods</td><td>BLEU</td></tr><tr><td>Sennrich et al. (2016a)</td><td>33.9</td></tr><tr><td>XLM (Lample & Conneau, 2019)</td><td>38.5</td></tr><tr><td>Standard Transformer</td><td>33.12</td></tr><tr><td>+ back translation</td><td>37.73</td></tr><tr><td>+ BERT-fused model</td><td>39.10</td></tr></table>
|
| 175 |
+
|
| 176 |
+
our proposed approach is effective and can still achieve improvement over strong baselines.
|
| 177 |
+
|
| 178 |
+
# 6 ABLATION STUDY
|
| 179 |
+
|
| 180 |
+
We conduct two groups of ablation studies on IWSLT'14 En→De translation to better understand our model.
|
| 181 |
+
|
| 182 |
+
Table 6: Ablation study on IWSLT'14 En→De.
|
| 183 |
+
|
| 184 |
+
<table><tr><td>Standard Transformer</td><td>28.57</td></tr><tr><td>BERT-fused model</td><td>30.45</td></tr><tr><td>Randomly initialize encoder/decoder of BERT-fused model</td><td>27.03</td></tr><tr><td>Jointly tune BERT and encoder/decoder of BERT-fused model</td><td>28.87</td></tr><tr><td>Feed BERT feature into all layers without attention</td><td>29.61</td></tr><tr><td>Replace BERT output with random vectors</td><td>28.91</td></tr><tr><td>Replace BERT with the encoder of another Transformer model</td><td>28.99</td></tr><tr><td>Remove BERT-encoder attention</td><td>29.87</td></tr><tr><td>Remove BERT-decoder attention</td><td>29.90</td></tr></table>
|
| 185 |
+
|
| 186 |
+
# Study for training strategy and network architecture
|
| 187 |
+
|
| 188 |
+
We conduct ablation study to investigate the performance of each component of our model and training strategy. Results are reported in Table 6:
|
| 189 |
+
|
| 190 |
+
(1) We randomly initialize the NMT module (i.e., encoder and decoder) of BERT-fused model instead of using a warm-start one as introduced in the training strategy of Section 5.1. In this way, we can only achieve 27.03 BLEU score, which cannot catch up with the baseline. We also jointly train BERT model with the NMT module. Although it can also boost the baseline from 28.57 to 28.87, it is not as good as fixing the BERT part, whose BLEU is 30.45.
|
| 191 |
+
(2) We feed the output of BERT into all layers of the encoder without attention models. That is, the Eqn.(1) is revised to $\tilde{h}_i^l = \frac{1}{2}\big(\mathsf{att}_{S}(h_i^{l - 1},H_E^{l - 1},H_E^{l - 1}) + W_B^l h_i^{l - 1})\big)$ , where $W_{B}^{l}$ is learnable. In this case, the encoder and BERT have to share the same vocabulary. The BLEU score is 29.61, which is better than the standard Transformer but slightly worse than leveraging the output of BERT
|
| 192 |
+
|
| 193 |
+
as embedding. This shows that the output of BERT should not be fused into each layer directly, and using the attention model to bridge the relation is better than using simple transformation. More results on different languages are included in Appendix B.3. To illustrate the effectiveness of our method, we choose another two kinds of ways to encode the input sequence rather than using BERT: (1) Using a fixed and randomly initialized embedding; (2) Using the encoder from another NMT model. Their BLEU scores are 28.91 and 28.99 respectively, indicating that the BERT pre-trained on large amount of unlabeled data can provide more helpful features to NMT.
|
| 194 |
+
|
| 195 |
+
(3) To verify where the output of BERT should be connected to, we remove the BERT-encoder attention (i.e., $\text{att}_B$ in Eqn.(1)) and the BERT-decoder attention (i.e., $\text{att}_B$ in Eqn.(2)) respectively. Correspondingly, the BLEU score drops from 30.45 to 29.87 and 29.90. This indicates that the output of BERT should be leveraged by both encoder and decoder to achieve better performances. At last, considering that there are two stacked encoders in our model, we also choose ensemble models and deeper NMT models as baselines. Our approach outperforms the above baselines. The results are left in Appendix B.2 due to space limitation.
|
| 196 |
+
|
| 197 |
+
# Study on drop-net
|
| 198 |
+
|
| 199 |
+
To investigate the effect of drop-net, we conduct experiments on IWSLT'14 En→De dataset with different drop-net probability, $p_{\mathrm{net}} \in \{0, 0.2, 0.4, 0.6, 0.8, 1.0\}$ . The results are shown in Figure 2. As can be seen, although larger $p_{\mathrm{net}}$ leads to larger training loss, it leads to smaller validation loss and so better BLUE scores. This shows that the drop-net trick can indeed improve the generalization ability of our model. We fix $p_{\mathrm{net}} = 1.0$ in other experiments unless specially specified.
|
| 200 |
+
|
| 201 |
+

|
| 202 |
+
(a) Training loss.
|
| 203 |
+
|
| 204 |
+

|
| 205 |
+
(b) Validation loss.
|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
(c) Validation BLEU.
|
| 209 |
+
Figure 2: Training/validation curves with different $p_{\mathrm{net}}$ 's.
|
| 210 |
+
|
| 211 |
+
# 7 APPLICATION TO UNSUPERVISED NMT
|
| 212 |
+
|
| 213 |
+
We work on unsupervised $\mathrm{En} \leftrightarrow \mathrm{Fr}$ and $\mathrm{En} \leftrightarrow \mathrm{Ro}$ translation. The data processing, architecture selection and training strategy is the same as Lample & Conneau (2019).
|
| 214 |
+
|
| 215 |
+
Settings For $\mathrm{En} \leftrightarrow \mathrm{Fr}$ , we use $190M$ monolingual English sentences and $62M$ monolingual French sentences from WMT News Crawl datasets, which is the same as that used in (Song et al., 2019). For unsupervised $\mathrm{En} \leftrightarrow \mathrm{Ro}$ translation, we use $50M$ English sentences from News Crawl (sampled from the data for $\mathrm{En} \rightarrow \mathrm{Fr}$ ) and collect $2.9M$ sentences for Romanian by concatenating News Crawl data sets and WMT'16 Romanian monolingual data following Lample et al. (2018). The data is preprocessed in the same way as Lample & Conneau (2019).
|
| 216 |
+
|
| 217 |
+
We use the same model configuration as Lample & Conneau (2019), with details in Appendix A.3. The BERT is the pre-trained XLM model (see Appendix D). We first train an unsupervised NMT model following Lample & Conneau (2019) until convergence. Then we initialize our BERT-fused model with the obtained model and continue training. We train models on 8 M40 GPUs, and the batchsize is 2000 tokens per GPU. We use the same optimization hyper-parameters as that described in Lample & Conneau (2019).
|
| 218 |
+
|
| 219 |
+
Table 7: BLEU scores of unsupervised NMT.
|
| 220 |
+
|
| 221 |
+
<table><tr><td></td><td>En→Fr</td><td>Fr→En</td><td>En→Ro</td><td>Ro→En</td></tr><tr><td>Lample et al. (2018)</td><td>27.6</td><td>27.7</td><td>25.1</td><td>23.9</td></tr><tr><td>XLM (Lample & Conneau, 2019)</td><td>33.4</td><td>33.3</td><td>33.3</td><td>31.8</td></tr><tr><td>MASS (Song et al., 2019)</td><td>37.50</td><td>34.90</td><td>35.20</td><td>33.10</td></tr><tr><td>Our BERT-fused model</td><td>38.27</td><td>35.62</td><td>36.02</td><td>33.20</td></tr></table>
|
| 222 |
+
|
| 223 |
+
Results The results of unsupervised NMT are shown in Table 7. With our proposed BERT-fused model, we can achieve 38.27, 35.62, 36.02 and 33.20 BLEU scores on the four tasks, setting state-of-the-art results on these tasks. Therefore, our BERT-fused model also benefits unsupervised NMT.
|
| 224 |
+
|
| 225 |
+
# 8 CONCLUSION AND FUTURE WORK
|
| 226 |
+
|
| 227 |
+
In this work, we propose an effective approach, BERT-fused model, to combine BERT and NMT, where the BERT is leveraged by the encoder and decoder through attention models. Experiments on supervised NMT (including sentence-level and document-level translations), semi-supervised NMT and unsupervised NMT demonstrate the effectiveness of our method.
|
| 228 |
+
|
| 229 |
+
For future work, there are many interesting directions. First, we will study how to speed up the inference process. Second, we can apply such an algorithm to more applications, like questioning and answering. Third, how to compress BERT-fused model into a light version is another topic. There are some contemporary works leveraging knowledge distillation to combine pre-trained models with NMT (Yang et al., 2019a; Chen et al., 2019), which is a direction to explore.
|
| 230 |
+
|
| 231 |
+
# REFERENCES
|
| 232 |
+
|
| 233 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In 6th International Conference on Learning Representations, 2015. URL https://arxiv.org/pdf/1409.0473v7.pdf.
|
| 234 |
+
Loic Barrault, Ondrej Bojar, Marta R. Costa-jussá, Christian Federmann, Mark Fishel, Yvette Graham, Barry Haddow, Matthias Huck, Philipp Koehn, Shervin Malmasi, Christof Monz, Mathias Müller, Santanu Pal, Matt Post, and Marcos Zampieri. Findings of the 2019 conference on machine translation (wmt19). In Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1), pp. 1-61, Florence, Italy, August 2019. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/W19-5301.
|
| 235 |
+
Mauro Cettolo, Jan Niehues, Sebastian Stüker, Luisa Bentivogli, and Marcello Federico. Report on the 11th iwslt evaluation campaign, iwslt 2014. In Proceedings of the International Workshop on Spoken Language Translation, Hanoi, Vietnam, pp. 57, 2014.
|
| 236 |
+
Yen-Chun Chen, Zhe Gan, Yu Cheng, Jingzhou Liu, and Jingjing Liu. Distilling the knowledge of bert for text generation. arXiv preprint arXiv:1911.03829, 2019.
|
| 237 |
+
Andrew M Dai and Quoc V Le. Semi-supervised sequence learning. In Advances in neural information processing systems, pp. 3079-3087, 2015.
|
| 238 |
+
Yuntian Deng, Yoon Kim, Justin Chiu, Demi Guo, and Alexander Rush. Latent alignment and variational attention. In Advances in Neural Information Processing Systems, pp. 9712-9724, 2018.
|
| 239 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. *NAACL*, 2019. URL https://arxiv.org/pdf/1810.04805.pdf.
|
| 240 |
+
Sergey Edunov, Myle Ott, Michael Auli, David Grangier, and Marcaurelio Ranzato. Classical structured prediction losses for sequence to sequence learning. *NAACL*, 2018.
|
| 241 |
+
|
| 242 |
+
Dumitru Erhan, Pierre-Antoine Manzagol, Yoshua Bengio, Samy Bengio, and Pascal Vincent. The difficulty of training deep architectures and the effect of unsupervised pre-training. In Artificial Intelligence and Statistics, pp. 153-160, 2009.
|
| 243 |
+
Dumitru Erhan, Yoshua Bengio, Aaron Courville, Pierre-Antoine Manzagol, Pascal Vincent, and Samy Bengio. Why does unsupervised pre-training help deep learning? Journal of Machine Learning Research, 11(Feb):625-660, 2010.
|
| 244 |
+
Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1243-1252. JMLR.org, 2017.
|
| 245 |
+
Sepp Hochreiter and Jürgen 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 http://dx.doi.org/10.1162/neco.1997.9.8.1735.
|
| 246 |
+
Marcin Junczys-Dowmunt and Roman Grundkiewicz. Ms-uedin submission to the wmt2018 ape shared task: Dual-source transformer for automatic post-editing. EMNLP 2018 THIRD CONFERENCE ON MACHINE TRANSLATION (WMT18), 2018.
|
| 247 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 248 |
+
Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. NeurIPS, 2019.
|
| 249 |
+
Guillaume Lample, Myle Ott, Alexis Conneau, Ludovic Denoyer, and Marc'Aurelio Ranzato. Phrase-based & neural unsupervised machine translation. arXiv preprint arXiv:1804.07755, 2018.
|
| 250 |
+
Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Fractalnet: Ultra-deep neural networks without residuals. *ICLR*, 2017. URL https://arxiv.org/pdf/1605.07648.pdf.
|
| 251 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 252 |
+
Lesly Miculicich, Dhananjay Ram, Nikolaos Pappas, and James Henderson. Document-level neural machine translation with hierarchical attention networks. arXiv preprint arXiv:1809.01576, 2018.
|
| 253 |
+
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.
|
| 254 |
+
Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. EMNLP 2018 third conference on machine translation (WMT18), 2018.
|
| 255 |
+
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 on association for computational linguistics, pp. 311-318. Association for Computational Linguistics, 2002.
|
| 256 |
+
Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532-1543, 2014.
|
| 257 |
+
Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. arXiv preprint arXiv:1802.05365, 2018.
|
| 258 |
+
Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openai-assetss/research-covers/languageunsupervised/language understanding paper. pdf, 2018.
|
| 259 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 1(8), 2019.
|
| 260 |
+
|
| 261 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Edinburgh neural machine translation systems for wmt 16. In Proceedings of the First Conference on Machine Translation, volume 2, pp. 371-376, 2016a. URL http://www.statmt.org/wmt16/pdf/W16-2323.pdf.
|
| 262 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. ACL, 2016b. URL https://aclweb.org/anthology/P16-1009.
|
| 263 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. ACL, 2016c.
|
| 264 |
+
David So, Quoc Le, and Chen Liang. The evolved transformer. 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. 5877-5886, Long Beach, California, USA, 09-15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/so19a.html.
|
| 265 |
+
Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. MASS: Masked sequence to sequence pre-training for language generation. 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. 5926-5936, Long Beach, California, USA, 09-15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/song19d.html.
|
| 266 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929-1958, 2014.
|
| 267 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104-3112, 2014.
|
| 268 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998-6008, 2017.
|
| 269 |
+
Yiren Wang, Yingce Xia, Tianyu He, Fei Tian, Tao Qin, ChengXiang Zhai, and Tie-Yan Liu. Multiagent dual learning. ICLR, 2019.
|
| 270 |
+
Dirk Weissenborn, Douwe Kiela, Jason Weston, and Kyunghyun Cho. Contextualized role interaction for neural machine translation, 2019. URL https://openreview.net/forum?id=ryx3_iAcY7.
|
| 271 |
+
Felix Wu, Angela Fan, Alexei Baevski, Yann Dauphin, and Michael Auli. Pay less attention with lightweight and dynamic convolutions. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=SkVhlh09tX.
|
| 272 |
+
Lijun Wu, Fei Tian, Yingce Xia, Yang Fan, Tao Qin, Lai Jian-Huang, and Tie-Yan Liu. Learning to teach with dynamic loss functions. In Advances in Neural Information Processing Systems, pp. 6466-6477, 2018.
|
| 273 |
+
Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
|
| 274 |
+
Yingce Xia, Tianyu He, Xu Tan, Fei Tian, Di He, and Tao Qin. Tied transformers: Neural machine translation with shared encoder and decoder. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 5466-5473, 2019.
|
| 275 |
+
Jiacheng Yang, Mingxuan Wang, Hao Zhou, Chengqi Zhao, Yong Yu, Weinan Zhang, and Lei Li. Towards making the most of bert in neural machine translation. arXiv preprint arXiv:1908.05672, 2019a. URL https://arxiv.org/pdf/1908.05672.pdf.
|
| 276 |
+
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019b.
|
| 277 |
+
|
| 278 |
+
# A EXPERIMENT SETUP
|
| 279 |
+
|
| 280 |
+
# A.1 IWSLT'14 & WMT'14 SETTINGS
|
| 281 |
+
|
| 282 |
+
We mainly follow the scripts below to preprocess the data: https://github.com/pytorch/fairseq/tree/master/examples/translation.
|
| 283 |
+
|
| 284 |
+
Dataset For the low-resource scenario, we choose IWSLT'14 English $\leftrightarrow$ German (En $\leftrightarrow$ De), English $\rightarrow$ Spanish (En $\rightarrow$ Es), IWSLT'17 English $\rightarrow$ French (En $\rightarrow$ Fr) and English $\rightarrow$ Chinese (En $\rightarrow$ Zh) translation. There are $160k$ , $183k$ , $236k$ , $235k$ bilingual sentence pairs for En $\leftrightarrow$ De, En $\rightarrow$ Es, En $\rightarrow$ Fr and En $\rightarrow$ Zh tasks. Following the common practice (Edunov et al., 2018), for En $\leftrightarrow$ De, we lowercase all words, split $7k$ sentence pairs from the training dataset for validation and concatenate dev2010, dev2012, tst2010, tst2011, tst2012 as the test set. For other tasks, we do not lowercase the words and use the official validation/test sets of the corresponding years.
|
| 285 |
+
|
| 286 |
+
For rich-resource scenario, we work on WMT'14 $\mathrm{En}\rightarrow \mathrm{De}$ and $\mathrm{En}\rightarrow \mathrm{Fr}$ , whose corpus sizes are $4.5M$ and $36M$ respectively. We concatenate newstest2012 and newstest2013 as the validation set and use newstest2014 as the test set.
|
| 287 |
+
|
| 288 |
+
We apply BPE (Sennrich et al., 2016c) to split words into sub-units. The numbers of BPE merge operation for IWSLT tasks, WMT'14 $\mathrm{En}\rightarrow \mathrm{De}$ and $\mathrm{En}\rightarrow \mathrm{Fr}$ are $10k$ , $32k$ and $40k$ respectively. We merge the source and target language sentences for all tasks to build the vocabulary except $\mathrm{En}\rightarrow \mathrm{Zh}$ .
|
| 289 |
+
|
| 290 |
+
Model Configuration For IWSLT tasks, we use the transformer_iwslt_de_en setting with dropout ratio 0.3. In this setting, the embedding dimension, FFN layer dimension and number of layers are 512, 1024 and 6. For WMT'14 En→De and En→Fr, we use transformer/big setting (short for transformer_vaswani_wmt_en_de/big) with dropout 0.3 and 0.1 respectively. In this setting, the aforementioned three parameters are 1024, 4096 and 6 respectively.
|
| 291 |
+
|
| 292 |
+
Evaluation We use multi-bleu.perl<sup>4</sup> to evaluate IWSLT'14 En←De and WMT translation tasks for fair comparison with previous work. For the remaining tasks, we use a more advance implementation of BLEU score, detokenized sacreBLEU for evaluation<sup>5</sup>.
|
| 293 |
+
|
| 294 |
+
# A.2 DETAILED EXPERIMENT SETTING IN SECTION 3
|
| 295 |
+
|
| 296 |
+
The IWSLT'14 English-to-German data and model configuration is introduced in Section A.1.
|
| 297 |
+
|
| 298 |
+
For the training strategy, we use Adam (Kingma & Ba, 2014) to optimize the network with $\beta_{1} = 0.9$ , $\beta_{2} = 0.98$ and weight-decay $= 0.0001$ . The learning rate scheduler is inverse_sqrt, where warmup-init-1r $= 10^{-7}$ , warmup-updates $= 4000$ and max-1r $= 0.0005$ .
|
| 299 |
+
|
| 300 |
+
# A.3 DETAILED MODEL CONFIGURATION IN UNSUPERVISED NMT
|
| 301 |
+
|
| 302 |
+
We leverage one Transformer model with GELU activation function to work on translations of two directions, where each language is associated with a language tag. The embedding dimension, FFN layer dimension and number of layer are 1024, 4096 and 6. The BERT is initialized by the pretrained XLM model provided by (Lample & Conneau, 2019).
|
| 303 |
+
|
| 304 |
+
# B MORE EXPERIMENT RESULTS
|
| 305 |
+
|
| 306 |
+
# B.1 MORE RESULTS ON PRELIMINARY EXPLORATION OF LEVERAGING BERT
|
| 307 |
+
|
| 308 |
+
We use XLM to initialize the model for WMT'14 English $\rightarrow$ German translation task, whose training corpus is relative large. We eventually obtain 28.09 after 90 epochs, which is still underperform the baseline, 29.12 as we got. Similar problem is also reported in https://github.com/facebookresearch/XLM/issues/32. We leave the improvement of supervised NMT with XLM as future work.
|
| 309 |
+
|
| 310 |
+
# B.2 MORE ABLATION STUDY
|
| 311 |
+
|
| 312 |
+
# Part I: A different way to deal with multiple attention models
|
| 313 |
+
|
| 314 |
+
Junczys-Dowmunt & Grundkiewicz (2018) proposed a new way to handle multiple attention models. Instead of using Eqn.(2), the input is processed by self-attention, encoder-decoder attention and BERT-decoder attention sequentially. Formally,
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
\begin{array}{l} \hat {s} _ {t} ^ {l} = \operatorname {a t t n} _ {S} \left(s _ {t} ^ {l - 1}, S _ {< t + 1} ^ {l - 1}, S _ {< t + 1} ^ {l - 1}\right); \\ \bar {s} _ {t} ^ {l} = \operatorname {a t t n} _ {E} \left(\hat {s} _ {t} ^ {l}, H _ {E} ^ {L}, H _ {E} ^ {L}\right); \\ \tilde {s} _ {t} ^ {l} = \operatorname {a t t n} _ {B} \left(\bar {s} _ {t} ^ {l}, H _ {B}, H _ {B}\right); \tag {5} \\ s _ {t} ^ {l} = \operatorname {F F N} \left(\tilde {s} _ {t} ^ {l}\right). \\ \end{array}
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+
The BLEU score is 29.35 for this setting, not as good as our proposed method.
|
| 321 |
+
|
| 322 |
+
# Part II: More results on IWSLT'14 En→De translation
|
| 323 |
+
|
| 324 |
+
Since our BERT-fused model contains two stacked encoders, we carry out two groups of additional baselines:
|
| 325 |
+
|
| 326 |
+
(1) Considering that stacking the BERT and encoder can be seen as a deeper model, we also train another two NMT models with deeper encoders, one with 18 layers (since $\mathrm{BERT}_{\mathrm{base}}$ consists of 12 layers) and the other with 12 layers (which achieved best validation performance ranging from 6 to 18 layers).
|
| 327 |
+
(2) We also compare the results of our approach with ensemble methods. To get an $M$ -model ensemble, we independently train $M$ models with different random seeds $(M \in \mathbb{Z}_{+})$ . We ensemble both standard Transformers and our BERT-fused models, which are denoted as $M$ -model ensemble (standard) and $M$ -model ensemble (BERT-fused) respectively. Please note that when we aggregate multiple BERT-fused models, we only need to store one replica of the BERT model because the BERT part is not optimized.
|
| 328 |
+
|
| 329 |
+
Table 8: More ablation study on IWSLT'14 En→De.
|
| 330 |
+
|
| 331 |
+
<table><tr><td>Algorithm</td><td>BLEU</td></tr><tr><td>Standard Transformer</td><td>28.57</td></tr><tr><td>BERT-fused model</td><td>30.45</td></tr><tr><td>12-layer encoder</td><td>29.27</td></tr><tr><td>18-layer encoder</td><td>28.92</td></tr><tr><td>2-model ensemble (standard)</td><td>29.71</td></tr><tr><td>3-model ensemble (standard)</td><td>30.08</td></tr><tr><td>4-model ensemble (standard)</td><td>30.18</td></tr><tr><td>2-model ensemble (BERT-fused)</td><td>31.09</td></tr><tr><td>3-model ensemble (BERT-fused)</td><td>31.45</td></tr><tr><td>4-model ensemble (BERT-fused)</td><td>31.85</td></tr></table>
|
| 332 |
+
|
| 333 |
+
The results are shown in Table 8. We have the following observations:
|
| 334 |
+
|
| 335 |
+
1. Adding more layers can indeed boost the baseline, but still not as good as BERT-fused model. According to our experiments, when increasing the number of layers to 12, we achieve the best BLEU score, 29.27.
|
| 336 |
+
2. We also compare our results to ensemble methods. Indeed, ensemble significantly boosts the baseline by more than one point. However, even if using ensemble of four models, the BLEU score is still lower than our BERT-fused model (30.18 v.s. 30.45), which shows the effectiveness of our method.
|
| 337 |
+
|
| 338 |
+
We want to point out that our method is intrinsically different from ensemble. Ensemble approaches usually refer to "independently" train several different models for the same task, and then aggregate
|
| 339 |
+
|
| 340 |
+
the output of each model to get the eventually task. In BERT-fused model, although we include a pre-trained BERT into our model, there is still only one model serving for the translation task.
|
| 341 |
+
|
| 342 |
+
In this sense, we can also combine our BERT-fused model with ensemble. Our approach benefits from ensemble too. When ensembling two models, we can achieve 31.09 BLEU score. When adding the number of models to four, we eventually achieve 31.85 BLEU score, which is 1.67 point improvement over the ensemble of standard Transformer.
|
| 343 |
+
|
| 344 |
+
# Part III: More results on IWSLT'14 De→En translation
|
| 345 |
+
|
| 346 |
+
We report the ensemble results on IWSLT'14 De $\rightarrow$ En translation in Table 9. We can get similar conclusion compared to that of IWSLT'14 En $\rightarrow$ De.
|
| 347 |
+
|
| 348 |
+
Table 9: More ablation study on IWSLT'14 De→En.
|
| 349 |
+
|
| 350 |
+
<table><tr><td>Algorithm</td><td>BLEU</td></tr><tr><td>Standard Transformer</td><td>34.67</td></tr><tr><td>BERT-fused model</td><td>36.11</td></tr><tr><td>2-model ensemble (standard)</td><td>35.92</td></tr><tr><td>3-model ensemble (standard)</td><td>36.40</td></tr><tr><td>4-model ensemble (standard)</td><td>36.54</td></tr><tr><td>2-model ensemble (BERT-fused)</td><td>37.42</td></tr><tr><td>3-model ensemble (BERT-fused)</td><td>37.70</td></tr><tr><td>4-model ensemble (BERT-fused)</td><td>37.71</td></tr></table>
|
| 351 |
+
|
| 352 |
+
# B.3 MORE RESULTS ON FEEDING BERT OUTPUT TO NMT MODULE
|
| 353 |
+
|
| 354 |
+
The ablation study on more languages is shown in Table 10. Our method achieves the best results compared to all baselines.
|
| 355 |
+
|
| 356 |
+
Table 10: BLEU scores of IWSLT translation tasks.
|
| 357 |
+
|
| 358 |
+
<table><tr><td>Algorithm</td><td>En→De</td><td>De→En</td><td>En→Es</td><td>En→Zh</td><td>En→Fr</td></tr><tr><td>Standard Transformer</td><td>28.57</td><td>34.64</td><td>39.0</td><td>26.3</td><td>35.9</td></tr><tr><td>Feed BERT feature into embedding</td><td>29.67</td><td>34.90</td><td>39.5</td><td>28.1</td><td>37.3</td></tr><tr><td>Feed BERT feature into all layers of encoder</td><td>29.61</td><td>34.84</td><td>39.9</td><td>28.1</td><td>37.4</td></tr><tr><td>Our BERT-fused model</td><td>30.45</td><td>36.11</td><td>41.4</td><td>28.2</td><td>38.7</td></tr></table>
|
| 359 |
+
|
| 360 |
+
# B.4 MORE BASELINES OF IWSLT'14 GERMAN-TO-ENGLISH TRANSLATION
|
| 361 |
+
|
| 362 |
+
We summarize the BLEU scores on IWSLT'14 De→En of existed works and our BERT-fused model approach in Table 11.
|
| 363 |
+
|
| 364 |
+
Table 11: Previous results of IWSLT'14 De→En.
|
| 365 |
+
|
| 366 |
+
<table><tr><td>Approach</td><td>BLEU</td></tr><tr><td>Multi-agent dual learning (Wang et al., 2019)</td><td>35.56</td></tr><tr><td>Tied-Transformer (Xia et al., 2019)</td><td>35.52</td></tr><tr><td>Loss to teach (Wu et al., 2018)</td><td>34.80</td></tr><tr><td>Role-interactive layer (Weissenborn et al., 2019)</td><td>34.74</td></tr><tr><td>Variational attention (Deng et al., 2018)</td><td>33.68</td></tr><tr><td>Our BERT-fused model</td><td>36.11</td></tr></table>
|
| 367 |
+
|
| 368 |
+
# B.5 COMPARISON WITH BACK TRANSLATION
|
| 369 |
+
|
| 370 |
+
When using unlabeled data to boost machine learning systems, one of the most notable approaches is back translation (briefly, BT) (Sennrich et al., 2016b): We first train a reversed translation model, use the obtained model to translate the unlabeled data in the target domain back to source domain, obtain a synthetic dataset where the source data is back-translated and finally train the forward model on the augmented dataset.
|
| 371 |
+
|
| 372 |
+
Our method has two main differences with BT method.
|
| 373 |
+
|
| 374 |
+
1. In BT, the monolingual data from the target side is leveraged. In our proposed approach, we use a BERT of the source language, which indirectly leverages the monolingual data from the source side. In this way, our approach and BT are complementary to each other. In Section 5.4, we have already verified that our method can further improve the results of standard BT on Romanian-to-English translation.
|
| 375 |
+
2. To use BT, we have to train a reversed translation model and then back translate the monolingual data, which is time-cost due to the decoding process. In BERT-fused model, we only need to download a pre-trained BERT model, incorporate it into our model and continue training. Besides, the BERT module is fixed during training.
|
| 376 |
+
|
| 377 |
+
On IWSLT'14, we also implement BT on wikipedia data, which is a subset of the corpus of training BERT. The model used for back translation are standard Transformer baselines introduced in Section 5, whose BLEU scores are 28.57 and 34.64 respectively. We back translate 1M, 2M, 5M, 15M and 25M randomly selected German sentences.
|
| 378 |
+
|
| 379 |
+
The results are reported in Table 12. The rows started with $\mathrm{BT}(\cdot)$ represent the results of BT, and the numbers in the brackets are the number of sentences for back translation.
|
| 380 |
+
|
| 381 |
+
Table 12: BLEU scores IWSLT'14 En←De by BT.
|
| 382 |
+
|
| 383 |
+
<table><tr><td>Algorithm</td><td>En→De</td></tr><tr><td>Standard Transformer</td><td>28.57</td></tr><tr><td>BERT-fused model</td><td>30.45</td></tr><tr><td>BT (1M)</td><td>29.42</td></tr><tr><td>BT (2M)</td><td>29.76</td></tr><tr><td>BT (5M)</td><td>29.10</td></tr><tr><td>BT (15M)</td><td>28.26</td></tr><tr><td>BT (25M)</td><td>27.34</td></tr></table>
|
| 384 |
+
|
| 385 |
+
IWSLT dataset is a collection of spoken language, and the bilingual training corpus is small $(160k)$ . In Wikipedia, the sentences are relatively formal compared to the spoken language, which is out-of-domain of spoken languages. We can see that when using 1M or 2M monolingual data for BT, the BLEU scores can indeed improve from 28.57 to 29.42/29.76. However, simply adding more wikipedia data for BT does not result in more improvement. There is even a slight drop when adding more than 15M monolingual sentences. However, our BERT-fused model can achieve better performances than BT with wikipedia data.
|
| 386 |
+
|
| 387 |
+
# C COMPARISON OF INFERENCE TIME
|
| 388 |
+
|
| 389 |
+
Table 13: Comparisons on inference time (seconds), ${}^{ + }$ ’ is the increased ratio of inference time.
|
| 390 |
+
|
| 391 |
+
<table><tr><td>Dataset</td><td>Transformer</td><td>Ours</td><td>(+)</td></tr><tr><td>IWSLT'14 En→De</td><td>70</td><td>97</td><td>38.6%</td></tr><tr><td>IWSLT'14 De→En</td><td>69</td><td>103</td><td>49.3%</td></tr><tr><td>WMT'14 En→De</td><td>67</td><td>99</td><td>47.8%</td></tr><tr><td>WMT'14 En→Fr</td><td>89</td><td>128</td><td>43.8%</td></tr></table>
|
| 392 |
+
|
| 393 |
+
We compare the inference time of our approach to the baselines. The results are shown in Table 13, where from the second column to the last column, the numbers are the inference time of standard Transformer, BERT-fused model, and the increase of inference time.
|
| 394 |
+
|
| 395 |
+
Indeed, introducing BERT to encode the input brings additional inference time, resulting in about $40\%$ to $49\%$ increase. But considering the significant improvement of BLEU score, it is acceptable of such extra cost. We will study how to reduce inference time in the future.
|
| 396 |
+
|
| 397 |
+
# D DOWNLOAD LINK OF PRE-TRAINED BERT MODELS
|
| 398 |
+
|
| 399 |
+
We leverage the pre-trained models provided by PyTorch-Transformers<sup>6</sup>.
|
| 400 |
+
|
| 401 |
+
For IWSLT'14 tasks, we choose $\mathrm{BERT}_{\mathrm{base}}$ model with 12 layers and hidden dimension 768.
|
| 402 |
+
|
| 403 |
+
1. IWSLT14 $\mathrm{En}\rightarrow \{\mathrm{De},\mathrm{Es},\mathrm{Fr},\mathrm{Zh}\}$ , we choose bert-base-uncased.
|
| 404 |
+
2. IWSLT14 De→En, we choose bert-base-german-cased.
|
| 405 |
+
|
| 406 |
+
For WMT14 $\mathrm{En} \rightarrow \{\mathrm{Fr}, \mathrm{De}\}$ , we choose bert-large-uncased, which is a $\mathrm{BERT}_{\mathrm{large}}$ model with 24 layers and hidden dimension 1024.
|
| 407 |
+
|
| 408 |
+
For WMT16 Ro→En, we choose bert-base-multilingual-cased, because there is no BERT specially trained for the Romanian.
|
| 409 |
+
|
| 410 |
+
For unsupervised $\mathrm{En} \leftrightarrow \mathrm{Fr}$ and unsupervised $\mathrm{En} \leftrightarrow \mathrm{Ro}$ , we choose xlm-mlm-enfr1024 and xlm-mlm-enro1024 respectively.
|
| 411 |
+
|
| 412 |
+
The download links are summarized as follows:
|
| 413 |
+
|
| 414 |
+
- bert-base-uncased: https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased.tar.gz.
|
| 415 |
+
- bert-large-uncased: https://s3.amazon.com/models.huggingface.co/bert/bert-large-uncased.tar.gz.
|
| 416 |
+
- bert-base-multilingual-cased: https://s3.amazon.com/models.huggingface.co/bert/bert-base-multilingual-cased.tar.gz.
|
| 417 |
+
- bert-base-german-cased: https://int-deepset-models-bert.s3.eu-central-1.amazon.com/pytorch/bert-base-german-cased.tar.gz.
|
| 418 |
+
- xlm-mlx-enfr1024: https://s3.amazon.com/models.huggingface.co/bert/xlm-mlx-enfr-1024-pytorch_model.bin.
|
| 419 |
+
- xlm-mlx-enro1024: https://s3.amazon.com/models.huggingface.co/bert/xlm-mlx-enro-1024-pytorch_model.bin.
|
| 420 |
+
|
| 421 |
+
# E DETAILS OF THE NOTATIONS
|
| 422 |
+
|
| 423 |
+
Let $\operatorname{att}(q, K, V)$ denote the attention layer, where $q$ , $K$ and $V$ indicate query, key and value respectively. Here $q$ is a $d_q$ -dimensional vector ( $d \in \mathbb{Z}$ ), $K$ and $V$ are two sets with $|K| = |V|$ . Each $k_i \in K$ and $v_i \in V$ are also $d_k / d_v$ -dimensional ( $d_q$ , $d_k$ and $d_v$ can be different) vectors, $i \in [|K|]$ . The attention model works as follows:
|
| 424 |
+
|
| 425 |
+
$$
|
| 426 |
+
\operatorname {a t t n} (q, K, V) = \sum_ {i = 1} ^ {| V |} \alpha_ {i} W _ {v} v _ {i}, \alpha_ {i} = \frac {\exp \left(\left(W _ {q} q\right) ^ {T} \left(W _ {k} k _ {i}\right)\right)}{Z}, Z = \sum_ {i = 1} ^ {| K |} \exp \left(\left(W _ {q} q\right) ^ {T} \left(W _ {k} k _ {i}\right)\right), \tag {6}
|
| 427 |
+
$$
|
| 428 |
+
|
| 429 |
+
where $W_{q}$ , $W_{k}$ and $W_{v}$ are the parameters to be learned. In Vaswani et al. (2017), attn is implemented as a multi-head attention model and we omit the details here to increase readability. Following Vaswani et al. (2017), we define the non-linear transformation layer as
|
| 430 |
+
|
| 431 |
+
$$
|
| 432 |
+
\operatorname {F F N} (x) = W _ {2} \max \left(W _ {1} x + b _ {1}, 0\right) + b _ {2}, \tag {7}
|
| 433 |
+
$$
|
| 434 |
+
|
| 435 |
+
where $x$ is the input; $W_{1}, W_{2}, b_{1}, b_{2}$ are the parameters to be learned; max is an element-wise operator. Layer normalization is also applied following Transformer (Vaswani et al., 2017).
|
2002.06xxx/2002.06823/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18fb30201a0962798077f210d205e02e95c6b88cd6bfb94d60205491d5328b93
|
| 3 |
+
size 578703
|
2002.06xxx/2002.06823/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_content_list.json
ADDED
|
@@ -0,0 +1,1590 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
"type": "text",
|
| 4 |
+
"text": "Stratified Rule-Aware Network for Abstract Visual Reasoning",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
186,
|
| 8 |
+
119,
|
| 9 |
+
810,
|
| 10 |
+
142
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Sheng Hu, $^{1,*}$ Yuqing Ma, $^{1,*}$ Xianglong Liu, $^{1,2,\\dagger}$ Yanlu Wei, $^{1}$ Shihao Bai $^{1}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
197,
|
| 19 |
+
171,
|
| 20 |
+
795,
|
| 21 |
+
190
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ State Key Laboratory of Software Development Environment, Beihang University, Beijing, China \n $^{2}$ Beijing Advanced Innovation Center for Big Data-Based Precision Medicine, Beihang University, Beijing, China \nhusheng_7@163.com, {mayuqing,xliiu} @nlsde.buaa.edu.cn, {weiyanlu,16061167} @buaa.edu.cn",
|
| 28 |
+
"bbox": [
|
| 29 |
+
122,
|
| 30 |
+
191,
|
| 31 |
+
875,
|
| 32 |
+
234
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
248,
|
| 42 |
+
273,
|
| 43 |
+
313,
|
| 44 |
+
286
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Abstract reasoning refers to the ability to analyze information, discover rules at an intangible level, and solve problems in innovative ways. Raven's Progressive Matrices (RPM) test is typically used to examine the capability of abstract reasoning. The subject is asked to identify the correct choice from the answer set to fill the missing panel at the bottom right of RPM (e.g., a $3 \\times 3$ matrix), following the underlying rules inside the matrix. Recent studies, taking advantage of Convolutional Neural Networks (CNNs), have achieved encouraging progress to accomplish the RPM test. However, they partly ignore necessary inductive biases of RPM solver, such as order sensitivity within each row/column and incremental rule induction. To address this problem, in this paper we propose a Stratified Rule-Aware Network (SRAN) to generate the rule embeddings for two input sequences. Our SRAN learns multiple granularity rule embeddings at different levels, and incrementally integrates the stratified embedding flows through a gated fusion module. With the help of embeddings, a rule similarity metric is applied to guarantee that SRAN can not only be trained using a tuplet loss but also infer the best answer efficiently. We further point out the severe defects existing in the popular RAVEN dataset for RPM test, which prevent from the fair evaluation of the abstract reasoning ability. To fix the defects, we propose an answer set generation algorithm called Attribute Bisection Tree (ABT), forming an improved dataset named Impartial-RAVEN (I-RAVEN for short). Extensive experiments are conducted on both PGM and I-RAVEN datasets, showing that our SRAN outperforms the state-of-the-art models by a considerable margin.",
|
| 51 |
+
"bbox": [
|
| 52 |
+
98,
|
| 53 |
+
296,
|
| 54 |
+
464,
|
| 55 |
+
662
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Introduction",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
225,
|
| 65 |
+
681,
|
| 66 |
+
336,
|
| 67 |
+
698
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Abstract reasoning, also known as inductive reasoning, refers to the ability to analyze information, discover rules at an intangible level, and solve problems in innovative ways. This type of reasoning, as the foundation for human intelligence, helps human understand the world. It has been generally regarded and pursued as a critical component to the development of artificial intelligence during the past decades, and has attracted increasing attention in recent years. Raven's Progressive Matrices (RPM) test (Raven",
|
| 74 |
+
"bbox": [
|
| 75 |
+
81,
|
| 76 |
+
702,
|
| 77 |
+
478,
|
| 78 |
+
828
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/ae408d6ef1f8c8019f9d5be524ddfcb43caacd4d75ea7c4619761711e6f2e526.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: An example of RPM question and the human strategy to solve it. The underlying rule on the number of circles could be Progression (2-1=3-2) or Arithmetic (1+2=3) along row 1, and Arithmetic (2+3=5) along row 2. Therefore the dominant rule is Arithmetic. Apply it to the third row to figure out the answer $(2+2=4)$ . Besides, no viable rule can be found along the columns"
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
517,
|
| 91 |
+
271,
|
| 92 |
+
913,
|
| 93 |
+
460
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "1938; Carpenter, Just, and Shell 1990; Raven 2000; Kunda, McGregor, and Goel 2013; Strannegård, Cirillo, and Ström 2013) is one of the highly accepted and well-studied tools to examine the ability of abstract reasoning, which is believed as a good estimate of the real intelligence (Carpenter, Just, and Shell 1990). An illustration of RPM is shown in Figure 1, where usually the test-taker is presented with a $3 \\times 3$ matrix with the bottom right panel left blank. The goal is to choose one image from an answer set of eight candidates to complete the matrix correctly, namely satisfying the underlying rules in the matrix. Subjects accomplish this by looking into the first two rows/columns and inducing the dominant rules which govern the attributes in those panels. The obtained rules can then be applied to the last row/column to figure out which answer belongs to the blank panel.",
|
| 100 |
+
"bbox": [
|
| 101 |
+
514,
|
| 102 |
+
595,
|
| 103 |
+
911,
|
| 104 |
+
804
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Computational models for RPM in the cognitive science community access symbolic representations of the images (Carpenter, Just, and Shell 1990; Lovett and Forbus 2017; Lovett, Forbus, and Usher 2010; Lovett et al. 2010). Recently there has been some success with end-to-end learning methods trying to accomplish abstract reasoning on",
|
| 111 |
+
"bbox": [
|
| 112 |
+
514,
|
| 113 |
+
805,
|
| 114 |
+
913,
|
| 115 |
+
888
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "page_footnote",
|
| 121 |
+
"text": "*Equal contribution \n†Corresponding author \nCopyright © 2021, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.",
|
| 122 |
+
"bbox": [
|
| 123 |
+
80,
|
| 124 |
+
837,
|
| 125 |
+
478,
|
| 126 |
+
888
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "aside_text",
|
| 132 |
+
"text": "arXiv:2002.06838v3 [cs.CV] 7 Jun 2022",
|
| 133 |
+
"bbox": [
|
| 134 |
+
22,
|
| 135 |
+
272,
|
| 136 |
+
58,
|
| 137 |
+
700
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "RPM test (Hoshen and Werman 2017; Barrett et al. 2018; Steenbrugge et al. 2018; Zhang et al. 2019a,b; Zheng, Zha, and Wei 2019; van Steenkiste et al. 2019; Wang, Jamnik, and Lio 2020), inspired by the progress of computer vision tasks (Krizhevsky, Sutskever, and Hinton 2012; Simonyan and Zisserman 2015; Szegedy et al. 2015; He et al. 2016) and boosted by the large-scale PGM (Barrett et al. 2018) and RAVEN (Zhang et al. 2019a) datasets. Typical works including CoPINet (Zhang et al. 2019a), LEN (Zheng, Zha, and Wei 2019), and MXGNet (Wang, Jamnik, and Lio 2020) followed the paradigm that predicts a classification score for each multiple-choice panel based on the relations inside each row/column, showing great potential to solve RPM test. However, these models partly ignore the important characteristics for RPM, such as the permutation invariance (Zhang et al. 2019b), the order sensitivity of panels inside a row/column, etc. Previous work (Wang, Jamnik, and Lio 2020) specially mentions that they do not choose a permutation-invariant structure because it leads to severe 'overfitting' on the RAVEN dataset. We will discuss this phenomenon in later sections. What is even worse, directly extracting the relations, without considering the incremental rule induction mechanism widely adopted in human cognitive systems (Carpenter, Just, and Shell 1990), inevitably leads to inferior performance.",
|
| 144 |
+
"bbox": [
|
| 145 |
+
86,
|
| 146 |
+
68,
|
| 147 |
+
477,
|
| 148 |
+
414
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "To achieve reliable and efficient abstract reasoning, in this paper we develop a powerful architecture called Stratified Rule-Aware Network (SRAN) that naturally integrates the indispensable inductive biases, including order sensitivity, permutation invariance, and incremental rule induction. SRAN takes two rows/columns as input and learns stratified rule embeddings at different levels, namely cell-wise, individual-wise, and ecological hierarchy. These multiple granularity embeddings are incrementally integrated via a gate fusion module, which naturally preserves the order sensitivity of panels and maps the inputs to a rule embedding space. With the help of the embeddings, we further introduce a rule similarity metric, based on which SRAN can not only be well trained using a tuplet loss but also infer the best answer efficiently. This framework resembles the human strategy for RPM shown in Figure 1.",
|
| 155 |
+
"bbox": [
|
| 156 |
+
86,
|
| 157 |
+
415,
|
| 158 |
+
477,
|
| 159 |
+
637
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "To fairly evaluate the abstract reasoning ability, we also design a general algorithm named Attribute Bisection Tree (ABT) to generate an impartial answer set for any attribute-based RPM question. We point out and further fix the underlying defects of the commonly-used RAVEN (Zhang et al. 2019a) dataset, where the correct answer could be inferred even without the presence of the context matrix. Therefore, we introduce an improved dataset named Impartial-RAVEN (I-RAVEN) to fairly evaluate the abstract reasoning capability of RPM solvers.",
|
| 166 |
+
"bbox": [
|
| 167 |
+
86,
|
| 168 |
+
638,
|
| 169 |
+
477,
|
| 170 |
+
776
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "To the best of our knowledge, the proposed SRAN is the first RPM solver to induce rule embeddings which are discriminative and measurable. We are also the first to point out and fix the defects of the misleading benchmark RAVEN, and generate an impartial dataset I-RAVEN based on our ABT algorithm. Extensive experiments conducted on widely used dataset PGM and our improved I-RAVEN show that SRAN outperforms state-of-the-art methods by a consider-",
|
| 177 |
+
"bbox": [
|
| 178 |
+
86,
|
| 179 |
+
777,
|
| 180 |
+
477,
|
| 181 |
+
888
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "able margin, e.g. $60.8\\%$ accuracy compared to the second best $46.1\\%$ on I-RAVEN.",
|
| 188 |
+
"bbox": [
|
| 189 |
+
519,
|
| 190 |
+
69,
|
| 191 |
+
911,
|
| 192 |
+
95
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "Our Approach",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
653,
|
| 202 |
+
109,
|
| 203 |
+
776,
|
| 204 |
+
126
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "In this section, we first give a formal definition of the abstract reasoning task on the RPM test. Then we introduce the inductive-biased framework, and present our Stratified Rule-Aware Network (SRAN). Finally, we demonstrate the learning and inference process of the proposed model.",
|
| 211 |
+
"bbox": [
|
| 212 |
+
519,
|
| 213 |
+
128,
|
| 214 |
+
911,
|
| 215 |
+
198
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Preliminary",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
519,
|
| 225 |
+
210,
|
| 226 |
+
612,
|
| 227 |
+
226
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "For a common RPM question, usually a $3 \\times 3$ matrix $\\mathbf{M}^{-}$ is given, with bottom right context panel left blank. $\\Omega$ denotes the answer set with $N$ multiple-choice panels, where typically $N = 8$ . The dominant rules governing the features inside the matrix could be induced from the first two intact rows/columns. The goal is to select a multiple-choice panel $\\omega \\in \\Omega$ to complete the context matrix $\\mathbf{M}^{-}$ , maintaining the dominant rule inside of the context matrix.",
|
| 234 |
+
"bbox": [
|
| 235 |
+
519,
|
| 236 |
+
227,
|
| 237 |
+
911,
|
| 238 |
+
338
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "We define the completed matrix with a multiple-choice panel $\\omega$ filled as $\\mathbf{M}$ , where $\\mathbf{M}_i$ is denoted as the $i$ -th row, and $\\mathbf{m}_{ij}$ indicates the panel in $i$ -th row and $j$ -th column. Intuitively, $\\mathbf{M}$ is almost the same as $\\mathbf{M}^{-}$ , except for $\\mathbf{m}_{33} = \\omega$ while the corresponding element missing in $\\mathbf{M}^{-}$ . In fact, whether rules exist in rows or columns is uncertain. Therefore, our framework induces both the row-wise rule representation and the column-wise representation in the same way. In order to simplify the notation, we only take the induction of the row-wise rule representation as example.",
|
| 245 |
+
"bbox": [
|
| 246 |
+
519,
|
| 247 |
+
339,
|
| 248 |
+
911,
|
| 249 |
+
478
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "The Reasoning Framework",
|
| 256 |
+
"text_level": 1,
|
| 257 |
+
"bbox": [
|
| 258 |
+
519,
|
| 259 |
+
489,
|
| 260 |
+
728,
|
| 261 |
+
503
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 1
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Based on the necessary inductive biases for RPM, we develop a novel abstract reasoning architecture named Stratified Rule-Aware Network (SRAN). Given two input rows $\\mathbf{M}_i,\\mathbf{M}_j$ , the proposed framework embeds the input into multiple granularity embeddings using a stratified rule embedding module $\\mathbb{E}$ . Named after biological organizations (Parent 1996), $\\mathbb{E}$ consists of three hierarchies including cell-wise network $\\mathbb{E}_{\\mathrm{cell}}$ , individual-wise network $\\mathbb{E}_{\\mathrm{ind}}$ , and ecological network $\\mathbb{E}_{\\mathrm{eco}}$ . With the multiple granularity rule embeddings, the gated embedding fusion module $\\mathbb{G}$ will incrementally integrate these stratified embedding flows and map the two input sequences $\\mathbf{M}_i$ and $\\mathbf{M}_j$ to a discriminative rule embedding $\\mathbf{r}_{ij}^{(3)}$ , while maintaining the order sensitivity and permutation invariance. We further introduce a rule similarity metric $\\mathcal{D}$ to estimate the similarity between the rule representations. The correct answer can be predicted by choosing the multiple-choice panel within the shortest distance to the dominant rule generated by the first two rows in the matrix.",
|
| 268 |
+
"bbox": [
|
| 269 |
+
519,
|
| 270 |
+
507,
|
| 271 |
+
911,
|
| 272 |
+
773
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 1
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Stratified Rule Embedding",
|
| 279 |
+
"text_level": 1,
|
| 280 |
+
"bbox": [
|
| 281 |
+
519,
|
| 282 |
+
787,
|
| 283 |
+
725,
|
| 284 |
+
801
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "As we all know, organization of behaviour into a nested hierarchy of tasks is characteristic of purposive cognition in humans. The prevalent Convolution Neural Network inspired by the human visual system, is a stratified model itself, with the projection from each layer showing the hierarchical nature of features. The bottom layers extract low-level features,",
|
| 291 |
+
"bbox": [
|
| 292 |
+
519,
|
| 293 |
+
805,
|
| 294 |
+
911,
|
| 295 |
+
888
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 1
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "such as texture, edge, etc, while the top layers abstract high-level semantic information from the low-level information transmitted from the bottom layers.",
|
| 302 |
+
"bbox": [
|
| 303 |
+
81,
|
| 304 |
+
68,
|
| 305 |
+
478,
|
| 306 |
+
109
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 2
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "However, without specifying information from different levels, it is hard for CNN to figure out different hierarchies, and thus fail to obtain robust and discriminative representations. Therefore, it would be better to feed the input of different hierarchies explicitly and extract rule representations from different granularity with artificial guidance. Motivated by that, we deploy a stratified rule embedding module, consisting of cell-wise hierarchy, individual-wise hierarchy, and ecological hierarchy.",
|
| 313 |
+
"bbox": [
|
| 314 |
+
81,
|
| 315 |
+
109,
|
| 316 |
+
478,
|
| 317 |
+
236
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 2
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "Cell-wise Hierarchy The network of the cell-wise hierarchy $\\mathbb{E}_{\\mathrm{cell}}$ takes each panel as input and recognize the attributes of inside graphical elements. It handles each panel independently without considering the difference or correlations among panels inside the matrix. Therefore, it observes the information from the most detailed perspective. We obtain the cell-wise rule representation for each input panel:",
|
| 324 |
+
"bbox": [
|
| 325 |
+
81,
|
| 326 |
+
241,
|
| 327 |
+
480,
|
| 328 |
+
339
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "equation",
|
| 334 |
+
"text": "\n$$\n\\mathbf {x} _ {i j} = \\mathbb {E} _ {\\text {c e l l}} (\\mathbf {m} _ {i j}). \\tag {1}\n$$\n",
|
| 335 |
+
"text_format": "latex",
|
| 336 |
+
"bbox": [
|
| 337 |
+
218,
|
| 338 |
+
345,
|
| 339 |
+
478,
|
| 340 |
+
362
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "Individual-wise Hierarchy Moreover, the network of individual hierarchy takes each row as input. It begins to take the correlations among panels of the same row into consideration, and encode the entire row with a compact embedding, rather than simply combining each panel. In this way, the rule embedding process for each panel is coupled and interacts with each other. Intuitively, each row may contain multiple plausible rules. In this hierarchy, the framework extracts intermediate rule embedding for each row individually, which still ignores the comprehensive information from the matrix perspective, especially the correlations across rows. The individual-wise rule embedding $\\mathbf{y}_i$ is denoted as:",
|
| 347 |
+
"bbox": [
|
| 348 |
+
81,
|
| 349 |
+
366,
|
| 350 |
+
480,
|
| 351 |
+
545
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 2
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "equation",
|
| 357 |
+
"text": "\n$$\n\\mathbf {y} _ {i} = \\mathbb {E} _ {\\text {i n d}} \\left(\\mathbf {M} _ {i}\\right). \\tag {2}\n$$\n",
|
| 358 |
+
"text_format": "latex",
|
| 359 |
+
"bbox": [
|
| 360 |
+
225,
|
| 361 |
+
546,
|
| 362 |
+
478,
|
| 363 |
+
561
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Ecological Hierarchy Furthermore, the network of the ecological hierarchy takes the two rows together as input and jointly learns the rule patterns underlying the two rows. As we mentioned before, in the individual hierarchy, the framework extracts intermediate rule embedding for each row, without considering the interaction between two rows. The rule that exists in one row may not lie in another. Therefore, to obtain the shared rule patterns between the two rows, it is essential to put these two rows together and jointly learn the features from an ecological level. Thus the shared rule embedding is obtained as follows:",
|
| 370 |
+
"bbox": [
|
| 371 |
+
81,
|
| 372 |
+
566,
|
| 373 |
+
480,
|
| 374 |
+
720
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 2
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "equation",
|
| 380 |
+
"text": "\n$$\n\\mathbf {z} _ {i j} = \\mathbb {E} _ {\\mathrm {e c o}} ([ \\mathbf {M} _ {i}, \\mathbf {M} _ {j} ]), \\tag {3}\n$$\n",
|
| 381 |
+
"text_format": "latex",
|
| 382 |
+
"bbox": [
|
| 383 |
+
200,
|
| 384 |
+
726,
|
| 385 |
+
478,
|
| 386 |
+
743
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 2
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "where $[\\cdot ,\\cdot ]$ denotes the concatenating operation.",
|
| 393 |
+
"bbox": [
|
| 394 |
+
83,
|
| 395 |
+
747,
|
| 396 |
+
398,
|
| 397 |
+
763
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 2
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "Gated Embedding Fusion",
|
| 404 |
+
"text_level": 1,
|
| 405 |
+
"bbox": [
|
| 406 |
+
83,
|
| 407 |
+
772,
|
| 408 |
+
284,
|
| 409 |
+
787
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 2
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "Since the rule embeddings at different levels focus on different attributes or patterns, to generate one discriminative representation for the rule, we should aggregate the multiple granularity embeddings. Due to the requirement that the aggregation should preserve the order of cell-wise rule embeddings and be permutation-invariant to the individual-wise ones, we propose a stratified rule embedding learning",
|
| 416 |
+
"bbox": [
|
| 417 |
+
81,
|
| 418 |
+
790,
|
| 419 |
+
480,
|
| 420 |
+
888
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 2
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "image",
|
| 426 |
+
"img_path": "images/358d2cf7a476f3699d453f0e12c56f09476f3faec58c0bf8e04017f8c67dd619.jpg",
|
| 427 |
+
"image_caption": [
|
| 428 |
+
"Figure 2: The architecture of SRAN, consisting of a hierarchical rule embedding module and a gated embedding fusion module. Given two row sequences as input, it outputs the rule embedding"
|
| 429 |
+
],
|
| 430 |
+
"image_footnote": [],
|
| 431 |
+
"bbox": [
|
| 432 |
+
524,
|
| 433 |
+
69,
|
| 434 |
+
893,
|
| 435 |
+
224
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 2
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "method named gated embedding fusion module, which is responsible for gradually aggregating the multiple granularity embeddings.",
|
| 442 |
+
"bbox": [
|
| 443 |
+
514,
|
| 444 |
+
320,
|
| 445 |
+
911,
|
| 446 |
+
362
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 2
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "Specifically, we define a gate function $\\varphi$ to fuse the rule embeddings from different hierarchies. It concatenates all the inputs and encodes into a single embedding using fully connected layers. The gate function is similar to the attention mechanism, which detects and concentrates on the useful features according to the task. Even for the same attribute, they may focus on different facets. Based on the gate function, our gated embedding fusion module could regulate the flow of rule embeddings into the framework and make the utmost of their complementary information.",
|
| 453 |
+
"bbox": [
|
| 454 |
+
514,
|
| 455 |
+
363,
|
| 456 |
+
913,
|
| 457 |
+
501
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 2
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "At the cell level, after obtaining cell-wise rule embeddings for panels in $i$ -th row $\\mathbf{M}_i$ , the module aggregates them to infer a row-wise rule embedding $\\mathbf{r}_i^{(1)}$ :",
|
| 464 |
+
"bbox": [
|
| 465 |
+
514,
|
| 466 |
+
501,
|
| 467 |
+
911,
|
| 468 |
+
547
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 2
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "equation",
|
| 474 |
+
"text": "\n$$\n\\mathbf {r} _ {i} ^ {(1)} = \\varphi_ {1} \\left(\\mathbf {x} _ {i 1}, \\mathbf {x} _ {i 2}, \\mathbf {x} _ {i 3}\\right), \\tag {4}\n$$\n",
|
| 475 |
+
"text_format": "latex",
|
| 476 |
+
"bbox": [
|
| 477 |
+
630,
|
| 478 |
+
556,
|
| 479 |
+
911,
|
| 480 |
+
575
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 2
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "Similarly, we obtain $\\mathbf{r}_j^{(1)}$ for the $j$ -th row $\\mathbf{M}_j$ . The fused embedding integrates different types of attributes in the panels.",
|
| 487 |
+
"bbox": [
|
| 488 |
+
514,
|
| 489 |
+
585,
|
| 490 |
+
911,
|
| 491 |
+
614
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 2
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "At the individual level, intuitively both $\\mathbf{r}_i^{(1)}$ and $\\mathbf{y}_i$ are the row-wise embeddings corresponding to the $i$ -th row, but convey the different granularity rule information. We further fuse them, and jointly mine the shared rules contained in the $i$ -th and $j$ -th row:",
|
| 498 |
+
"bbox": [
|
| 499 |
+
514,
|
| 500 |
+
617,
|
| 501 |
+
913,
|
| 502 |
+
688
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 2
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "equation",
|
| 508 |
+
"text": "\n$$\n\\mathbf {r} _ {i j} ^ {(2)} = \\varphi_ {2} \\left(\\mathbf {r} _ {i} ^ {(1)}, \\mathbf {y} _ {i}, \\mathbf {r} _ {j} ^ {(1)}, \\mathbf {y} _ {j}\\right). \\tag {5}\n$$\n",
|
| 509 |
+
"text_format": "latex",
|
| 510 |
+
"bbox": [
|
| 511 |
+
617,
|
| 512 |
+
696,
|
| 513 |
+
911,
|
| 514 |
+
718
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 2
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "At the ecological level, similarly we can further combine fused embedding $\\mathbf{r}_{ij}^{(2)}$ and $\\mathbf{z}_{ij}$ using the gate fusion function, abstracting the final rule embedding:",
|
| 521 |
+
"bbox": [
|
| 522 |
+
514,
|
| 523 |
+
723,
|
| 524 |
+
913,
|
| 525 |
+
768
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 2
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "equation",
|
| 531 |
+
"text": "\n$$\n\\mathbf {r} _ {i j} ^ {(3)} = \\varphi_ {3} \\left(\\mathbf {r} _ {i j} ^ {(2)}, \\mathbf {z} _ {i j}\\right). \\tag {6}\n$$\n",
|
| 532 |
+
"text_format": "latex",
|
| 533 |
+
"bbox": [
|
| 534 |
+
643,
|
| 535 |
+
776,
|
| 536 |
+
911,
|
| 537 |
+
799
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 2
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "To make sure the framework is permutation-invariant to the input rows, we exchange the concatenation order of the two input rows and average the output rule embeddings. This invariance ensures that, the rule embedding respects the characteristic of RPM and thus distills the representative information of the relations existing in the inputs.",
|
| 544 |
+
"bbox": [
|
| 545 |
+
514,
|
| 546 |
+
805,
|
| 547 |
+
913,
|
| 548 |
+
888
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 2
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "On the whole, the SRAN can be formulated in its simplest form as follows:",
|
| 555 |
+
"bbox": [
|
| 556 |
+
83,
|
| 557 |
+
68,
|
| 558 |
+
478,
|
| 559 |
+
95
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 3
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "equation",
|
| 565 |
+
"text": "\n$$\n\\begin{array}{l} \\mathbf {r} _ {i j} ^ {(3)} = \\operatorname {S R A N} \\left(\\mathbf {M} _ {i}, \\mathbf {M} _ {j}\\right) \\tag {7} \\\\ = \\mathbb {G} \\left(\\mathbf {x} _ {i}, \\mathbf {x} _ {j}, \\mathbf {y} _ {i}, \\mathbf {y} _ {j}, \\mathbf {z} _ {i j}\\right), \\\\ \\end{array}\n$$\n",
|
| 566 |
+
"text_format": "latex",
|
| 567 |
+
"bbox": [
|
| 568 |
+
184,
|
| 569 |
+
95,
|
| 570 |
+
478,
|
| 571 |
+
136
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 3
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "where $\\mathbf{r}_{ij}^{(3)}$ is the shared rule embedding of the $\\mathbf{M}_i$ and $\\mathbf{M}_j$ . An illustration of SRAN is shown in Figure 2.",
|
| 578 |
+
"bbox": [
|
| 579 |
+
83,
|
| 580 |
+
138,
|
| 581 |
+
477,
|
| 582 |
+
170
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 3
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "Learning and Inference",
|
| 589 |
+
"text_level": 1,
|
| 590 |
+
"bbox": [
|
| 591 |
+
83,
|
| 592 |
+
179,
|
| 593 |
+
269,
|
| 594 |
+
195
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 3
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "With SRAN framework, the question turns to how we train the network, and apply it to infer the correct answer to RPM test. The key to address the question lies in the similarity measure between two rule embeddings, based on which we can define the loss function for SRAN training, and meanwhile determine the best choice during inference.",
|
| 601 |
+
"bbox": [
|
| 602 |
+
81,
|
| 603 |
+
196,
|
| 604 |
+
478,
|
| 605 |
+
281
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 3
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "Similarity function We introduce similarity function $\\mathcal{D}$ to measure the closeness between two rules in the embedding space. In this paper, we adopt inner product similarity for good experimental results:",
|
| 612 |
+
"bbox": [
|
| 613 |
+
81,
|
| 614 |
+
285,
|
| 615 |
+
478,
|
| 616 |
+
340
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 3
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "equation",
|
| 622 |
+
"text": "\n$$\n\\mathcal {D} \\left(\\mathbf {r}, \\mathbf {r} ^ {\\prime}\\right) = \\mathbf {r} ^ {\\mathrm {T}} \\mathbf {r} ^ {\\prime}. \\tag {8}\n$$\n",
|
| 623 |
+
"text_format": "latex",
|
| 624 |
+
"bbox": [
|
| 625 |
+
223,
|
| 626 |
+
342,
|
| 627 |
+
478,
|
| 628 |
+
359
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 3
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "Training For a given RPM question, the first two rows $\\mathbf{M}_1, \\mathbf{M}_2$ are fed into our proposed SRAN and produce the shared rule embedding $\\mathbf{g}$ :",
|
| 635 |
+
"bbox": [
|
| 636 |
+
83,
|
| 637 |
+
361,
|
| 638 |
+
478,
|
| 639 |
+
402
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 3
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "equation",
|
| 645 |
+
"text": "\n$$\n\\mathbf {g} = \\mathbf {r} _ {1 2} ^ {(3)} = \\operatorname {S R A N} \\left(\\mathbf {M} _ {1}, \\mathbf {M} _ {2}\\right), \\tag {9}\n$$\n",
|
| 646 |
+
"text_format": "latex",
|
| 647 |
+
"bbox": [
|
| 648 |
+
179,
|
| 649 |
+
406,
|
| 650 |
+
478,
|
| 651 |
+
424
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 3
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "which represents the dominant pattern of the matrix.",
|
| 658 |
+
"bbox": [
|
| 659 |
+
83,
|
| 660 |
+
425,
|
| 661 |
+
429,
|
| 662 |
+
439
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 3
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "Intuitively, the rule extracted from the first two rows can be treated as the reference rule, and we name it the dominant rule in the matrix. Subsequently, the correct answer can be found by checking whether its corresponding rule embedding is similar to the dominant rule. Specifically, given a multiple-choice panel $\\omega_{k}\\in \\Omega$ , where $k\\in \\{1,\\dots,N\\}$ , we denote $\\overline{\\mathbf{r}}_k$ as the new rule embedding inside $\\mathbf{M}$ caused by the $k$ -th multiple-choice panel:",
|
| 669 |
+
"bbox": [
|
| 670 |
+
81,
|
| 671 |
+
439,
|
| 672 |
+
478,
|
| 673 |
+
550
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 3
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "equation",
|
| 679 |
+
"text": "\n$$\n\\bar {\\mathbf {r}} _ {k} = \\frac {1}{2} \\left(\\mathbf {r} _ {1 3} ^ {(3)} + \\mathbf {r} _ {2 3} ^ {(3)}\\right). \\tag {10}\n$$\n",
|
| 680 |
+
"text_format": "latex",
|
| 681 |
+
"bbox": [
|
| 682 |
+
200,
|
| 683 |
+
551,
|
| 684 |
+
478,
|
| 685 |
+
580
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 3
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "This procedure is illustrated in Figure 3. In practice, we generate the column-wise rule representation just as the row-wise one, and concatenate the two representations together as the final representation.",
|
| 692 |
+
"bbox": [
|
| 693 |
+
81,
|
| 694 |
+
580,
|
| 695 |
+
478,
|
| 696 |
+
636
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 3
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "For the rule embedding $\\overline{\\mathbf{r}}^*$ generated by rows/columns filled with correct answer, the desirable SRAN should enforce it to be more similar to the dominant rule $\\mathbf{g}$ , compared to the other rules $\\overline{\\mathbf{r}}_k$ corresponding to the wrong answers, where $\\overline{\\mathbf{r}}_k \\neq \\overline{\\mathbf{r}}^*$ . Subsequently, the generated rules of $N$ candidates, alongside with the dominant rule, form a tuple containing $N + 1$ elements. Based on the similarity function, the $(N + 1)$ -tuple loss (Sohn 2016) can be defined for SRAN training:",
|
| 703 |
+
"bbox": [
|
| 704 |
+
81,
|
| 705 |
+
637,
|
| 706 |
+
480,
|
| 707 |
+
762
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 3
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "equation",
|
| 713 |
+
"text": "\n$$\n\\mathcal {L} = \\log \\left(1 + \\sum_ {k = 1, \\overline {{\\mathbf {r}}} _ {k} \\neq \\overline {{\\mathbf {r}}} ^ {*}} ^ {N} \\exp \\left(\\mathcal {D} \\left(\\mathbf {g}, \\overline {{\\mathbf {r}}} _ {k}\\right) - \\mathcal {D} \\left(\\mathbf {g}, \\overline {{\\mathbf {r}}} ^ {*}\\right)\\right)\\right), \\tag {11}\n$$\n",
|
| 714 |
+
"text_format": "latex",
|
| 715 |
+
"bbox": [
|
| 716 |
+
94,
|
| 717 |
+
773,
|
| 718 |
+
478,
|
| 719 |
+
816
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 3
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "which means the SRAN can be trained in a fully end-to-end manner. The architecture of the SRAN (Figure 2) is well matched to the problem of abstract reasoning, because it leverages human strategies and explicitly generates the rules governing the matrix.",
|
| 726 |
+
"bbox": [
|
| 727 |
+
81,
|
| 728 |
+
818,
|
| 729 |
+
480,
|
| 730 |
+
888
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 3
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "image",
|
| 736 |
+
"img_path": "images/51f667bc379d0bf01a71ae92dd30950171448c3f72f94ce2eecaf80a0451403e.jpg",
|
| 737 |
+
"image_caption": [
|
| 738 |
+
"Figure 3: The similarity score for a candidate answer. A multiple-choice panel from the answer set is inflated in the blank panel (row 3), generating a rule embedding $\\overline{\\mathbf{r}}_k$ through SRAN. The similarity score for the candidate answer can be estimated based on $\\overline{\\mathbf{r}}_k$ and the dominant rule embedding $\\mathbf{g}$ extracted from row 1 and 2"
|
| 739 |
+
],
|
| 740 |
+
"image_footnote": [],
|
| 741 |
+
"bbox": [
|
| 742 |
+
524,
|
| 743 |
+
71,
|
| 744 |
+
906,
|
| 745 |
+
169
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 3
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "Inference Once the training of SRAN is finished, we could make the inference of the newly given RPM question. Initially, the intact rows/columns of the RPM are fed into the framework to get the dominant rule $\\mathbf{g}$ . After that, each multiple-choice panel is filled to the blank position to complete the matrix, and the framework will generate the rule embeddings $\\overline{\\mathbf{r}}_k$ for all candidate answers, given the current completed matrix. We can accomplish the abstract reasoning by choosing the correct multiple-choice as follows:",
|
| 752 |
+
"bbox": [
|
| 753 |
+
514,
|
| 754 |
+
297,
|
| 755 |
+
911,
|
| 756 |
+
422
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 3
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "equation",
|
| 762 |
+
"text": "\n$$\nk ^ {*} = \\underset {k} {\\arg \\max } \\mathcal {D} (\\mathbf {g}, \\overline {{\\mathbf {r}}} _ {k}). \\tag {12}\n$$\n",
|
| 763 |
+
"text_format": "latex",
|
| 764 |
+
"bbox": [
|
| 765 |
+
630,
|
| 766 |
+
430,
|
| 767 |
+
911,
|
| 768 |
+
454
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 3
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Note that since we investigate each panel independently, the above inference process promises that our model's output stays invariant if the answer set is shuffled.",
|
| 775 |
+
"bbox": [
|
| 776 |
+
514,
|
| 777 |
+
460,
|
| 778 |
+
913,
|
| 779 |
+
503
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 3
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "Attribute Bisection Tree for Impartial Dataset",
|
| 786 |
+
"text_level": 1,
|
| 787 |
+
"bbox": [
|
| 788 |
+
519,
|
| 789 |
+
518,
|
| 790 |
+
908,
|
| 791 |
+
535
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 3
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "RAVEN (Zhang et al. 2019a) is a popular RPM-style dataset adopted by all recent studies (Zhang et al. 2019b; Zheng, Zha, and Wei 2019; Wang, Jamnik, and Lio 2020). However, we find severe defects in its answer sets, making RAVEN incompetence as a measurement of abstract reasoning. In this section, we first give a brief review of RAVEN, and then explain the defects with analysis and experiments. Finally we introduce a general algorithm to generate an impartial answer set for any attribute-based RPM question. Thus we fix the defects of RAVEN and propose an improved dataset.",
|
| 798 |
+
"bbox": [
|
| 799 |
+
514,
|
| 800 |
+
537,
|
| 801 |
+
913,
|
| 802 |
+
676
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 3
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Defects of RAVEN",
|
| 809 |
+
"text_level": 1,
|
| 810 |
+
"bbox": [
|
| 811 |
+
516,
|
| 812 |
+
688,
|
| 813 |
+
663,
|
| 814 |
+
703
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 3
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "RAVEN dataset consists of 70,000 RPM questions distributed in 7 different figure configurations. Panels are constructed with 5 attributes (Number, Position, Type, Size, Color). Each attribute is governed by one of 4 rules and takes a value from a predefined set. Rules are applied only row-wise in RAVEN.",
|
| 821 |
+
"bbox": [
|
| 822 |
+
514,
|
| 823 |
+
707,
|
| 824 |
+
911,
|
| 825 |
+
790
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 3
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "After carefully examining the data in RAVEN, we find unexpected pattern among the eight multiple-choice panels. Each distractor in the answer set is generated by randomly modifying one attribute of the correct answer (see Figure 4(a)). As a consequence, the panel with the most common values for each attribute will be the correct answer. This means the correct answer can be found by simply scanning",
|
| 832 |
+
"bbox": [
|
| 833 |
+
514,
|
| 834 |
+
791,
|
| 835 |
+
913,
|
| 836 |
+
888
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 3
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "image",
|
| 842 |
+
"img_path": "images/e1e302cb5394cea707cf87afa2c29a036f13bea8fdbf4630e1fd6e1e291d8740.jpg",
|
| 843 |
+
"image_caption": [
|
| 844 |
+
"Figure 4: Comparison between RAVEN and I-RAVEN"
|
| 845 |
+
],
|
| 846 |
+
"image_footnote": [],
|
| 847 |
+
"bbox": [
|
| 848 |
+
86,
|
| 849 |
+
66,
|
| 850 |
+
472,
|
| 851 |
+
217
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 4
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "table",
|
| 857 |
+
"img_path": "images/6bdd9b1b076d7f7893dc3808e82e8af5ed2443b50ba125ef10d1e82e17609cac.jpg",
|
| 858 |
+
"table_caption": [],
|
| 859 |
+
"table_footnote": [],
|
| 860 |
+
"table_body": "<table><tr><td>Model</td><td>RAVEN</td><td>I-RAVEN</td></tr><tr><td>ResNet (Zhang et al. 2019a)</td><td>53.4</td><td>40.3</td></tr><tr><td>CoPINet (Zhang et al. 2019b)</td><td>91.4</td><td>46.1</td></tr><tr><td>Context-blind ResNet</td><td>71.9</td><td>12.2</td></tr><tr><td>Context-blind CoPINet</td><td>94.2</td><td>14.2</td></tr></table>",
|
| 861 |
+
"bbox": [
|
| 862 |
+
89,
|
| 863 |
+
268,
|
| 864 |
+
473,
|
| 865 |
+
345
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 4
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "Table 1: Test on RAVEN and I-RAVEN",
|
| 872 |
+
"bbox": [
|
| 873 |
+
148,
|
| 874 |
+
353,
|
| 875 |
+
413,
|
| 876 |
+
367
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 4
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "the answer set without considering the context images. An example is also shown on the right of Figure 4(a). Among the answer set, the most common Color and Type are black (1, 3, 4, 5, and 7) and pentagon (1, 2, 3, 4, 6, and 8). Besides, multiple-choice panel 1, 2, 5, 6, 7, and 8 are in the same Size. Therefore, multiple-choice panel 1, which is the panel with the most common attribute values, is inferred as (and indeed is) the correct answer, even without considering the context matrix.",
|
| 883 |
+
"bbox": [
|
| 884 |
+
81,
|
| 885 |
+
406,
|
| 886 |
+
478,
|
| 887 |
+
532
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 4
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"text": "Note that understanding of the context matrix is the cornerstone of RPM test. The RAVEN dataset, where the correct answer can be found without the context, is obviously against the essence of abstract reasoning, and thus is incapable of evaluating abstract reasoning ability.",
|
| 894 |
+
"bbox": [
|
| 895 |
+
81,
|
| 896 |
+
536,
|
| 897 |
+
478,
|
| 898 |
+
607
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 4
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "More severely, such underlying patterns can also be captured by neural networks, especially for models which combine features of eight multiple-choice panels. We train two models with context-blind (Barrett et al. 2018) setting, including a simple ResNet-based classifier (Zhang et al. 2019a) and the competitive CoPINet (Zhang et al. 2019b). These context-blind models are trained with only eight multiple-choice panels as input, and should have predicted the answer randomly, if the dataset is logical. However, as shown in Table 1, the context-blind models can achieve even better performance to the normal models, which proves that RAVEN contains illogical patterns where the correct answer can be found when only presented with the answer set. This type of back-door solutions is quite hidden and has also been discussed in other relational reasoning benchmarks, such as Visual Question Answering (VQA) (Johnson et al. 2017) and symbolic analogy (Hill et al. 2019). We can conclude that the 'overfitting' phenomenon on RAVEN reported by (Wang, Jamnik, and Lio 2020) is not caused by a permutation-invariant structure but by the dataset itself.",
|
| 905 |
+
"bbox": [
|
| 906 |
+
81,
|
| 907 |
+
611,
|
| 908 |
+
480,
|
| 909 |
+
888
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 4
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "Algorithm 1 Attribute Bisection Tree",
|
| 916 |
+
"text_level": 1,
|
| 917 |
+
"bbox": [
|
| 918 |
+
517,
|
| 919 |
+
68,
|
| 920 |
+
769,
|
| 921 |
+
82
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 4
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Input: the correct answer $\\omega^{*}$",
|
| 928 |
+
"text_level": 1,
|
| 929 |
+
"bbox": [
|
| 930 |
+
517,
|
| 931 |
+
87,
|
| 932 |
+
715,
|
| 933 |
+
101
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 4
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "1: Initialize the answer set $\\Omega = \\{\\omega^{*}\\}$",
|
| 940 |
+
"bbox": [
|
| 941 |
+
527,
|
| 942 |
+
101,
|
| 943 |
+
774,
|
| 944 |
+
116
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 4
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "2: Sample 3 attributes $a_1, a_2, a_3$ according to $\\omega^*$",
|
| 951 |
+
"bbox": [
|
| 952 |
+
527,
|
| 953 |
+
116,
|
| 954 |
+
846,
|
| 955 |
+
128
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 4
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "3: Sample new value $v_{i}$ for each $a_{i}$",
|
| 962 |
+
"bbox": [
|
| 963 |
+
527,
|
| 964 |
+
130,
|
| 965 |
+
759,
|
| 966 |
+
143
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 4
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "4: for $i = 1$ to 3 do",
|
| 973 |
+
"bbox": [
|
| 974 |
+
527,
|
| 975 |
+
143,
|
| 976 |
+
660,
|
| 977 |
+
156
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 4
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "5: Initialize $\\Gamma = \\{\\}$",
|
| 984 |
+
"bbox": [
|
| 985 |
+
527,
|
| 986 |
+
156,
|
| 987 |
+
674,
|
| 988 |
+
171
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 4
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "6: for each $w_{k}$ in the current answer set $\\Omega$ do",
|
| 995 |
+
"bbox": [
|
| 996 |
+
527,
|
| 997 |
+
171,
|
| 998 |
+
844,
|
| 999 |
+
184
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 4
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "7: $\\gamma \\gets$ modifying attribute $a_{i}$ of $\\omega_{k}$ with $v_{i}$",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
527,
|
| 1008 |
+
185,
|
| 1009 |
+
849,
|
| 1010 |
+
198
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 4
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "8: $\\Gamma \\leftarrow \\Gamma \\bigcup \\{\\gamma \\}$",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
527,
|
| 1019 |
+
199,
|
| 1020 |
+
668,
|
| 1021 |
+
213
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 4
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "9: end for",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
519,
|
| 1030 |
+
213,
|
| 1031 |
+
616,
|
| 1032 |
+
224
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 4
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "10: $\\Omega \\gets \\Omega \\bigcup \\Gamma$",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
519,
|
| 1041 |
+
224,
|
| 1042 |
+
643,
|
| 1043 |
+
241
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 4
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "11: end for",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
519,
|
| 1052 |
+
241,
|
| 1053 |
+
599,
|
| 1054 |
+
252
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 4
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "Output: the answer set $\\Omega (|\\Omega | = 2^3 = 8)$",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
519,
|
| 1063 |
+
253,
|
| 1064 |
+
795,
|
| 1065 |
+
268
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 4
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Attribute Bisection Tree",
|
| 1072 |
+
"text_level": 1,
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
517,
|
| 1075 |
+
299,
|
| 1076 |
+
705,
|
| 1077 |
+
313
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 4
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "We design a general algorithm named Attribute Bisection Tree (ABT) to generate an impartial answer set for any attribute-based RPM question. The ABT ensures attribute modifications among the answer set are well balanced. Thus, no clue can be found to guess the correct answer only depending on the answer set, and no distractor can be eliminated without reasoning from the context matrix as well.",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
514,
|
| 1086 |
+
316,
|
| 1087 |
+
911,
|
| 1088 |
+
415
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 4
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Figure 4(b) demonstrates the generation process using a tree structure. Each node indicates a multiple-choice panel, and the root of the tree structure is the correct answer. Different levels indicate different iterations, where nodes of this level are the candidate answers of current answer set. The generation process flows in a top-down manner. For each iteration, only one attribute will be modified. At each level, a node has two children nodes, where one node remains the same with the father node, the other changes the value of the attribute sampled for this iteration of the father node. Finally, at the bottom level, we could obtain the whole answer set. Algorithm 1 summarizes the key steps of the answer generation process.",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
514,
|
| 1097 |
+
415,
|
| 1098 |
+
913,
|
| 1099 |
+
595
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 4
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "I-RAVEN",
|
| 1106 |
+
"text_level": 1,
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
517,
|
| 1109 |
+
606,
|
| 1110 |
+
596,
|
| 1111 |
+
619
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 4
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "With ABT, we generate an alternative answer set for each RPM question in the RAVEN dataset, forming an improved dataset named Impartial-RAVEN (I-RAVEN). Next, we will show that compared with RAVEN, I-RAVEN is more rigorous and fair for evaluating abstract reasoning capability.",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
514,
|
| 1120 |
+
625,
|
| 1121 |
+
911,
|
| 1122 |
+
695
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 4
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Taking Figure 4(b) for example, each attribute has two different values which distribute evenly in the answer set. The attribute Color of half answer candidates (1, 2, 4, and 7) are black, while the other half (3, 5, 6, and 8) are light grey. Similarly, the attribute Type of half answer candidates (1, 2, 6, and 8) are pentagon, while the other half (3, 4, 5, and 7) are circle. Half of the answer set (1, 3, 4, and 6) are in the same size, which are different from the other same-sized half (2, 5, 7, and 8). As a result, there is no candidate with the most common values for each attribute. In other words, the back-door solution on RAVEN can no longer be applied to the new answer set.",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
514,
|
| 1131 |
+
694,
|
| 1132 |
+
913,
|
| 1133 |
+
859
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 4
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "To better explain the superiority of I-RAVEN over RAVEN, as shown in Figure 5, we use undirected graphs",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
516,
|
| 1142 |
+
859,
|
| 1143 |
+
911,
|
| 1144 |
+
888
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 4
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "table",
|
| 1150 |
+
"img_path": "images/9af8277fca47a81e971efa150142e1aa7a623016f5439490362f5fd35603c7dc.jpg",
|
| 1151 |
+
"table_caption": [],
|
| 1152 |
+
"table_footnote": [],
|
| 1153 |
+
"table_body": "<table><tr><td>Model</td><td>Acc</td><td>Center</td><td>2×2G</td><td>3×3G</td><td>O-IC</td><td>O-IG</td><td>L-R</td><td>U-D</td></tr><tr><td>LSTM (Zhang et al. 2019a)</td><td>18.9</td><td>26.2</td><td>16.7</td><td>15.1</td><td>21.9</td><td>21.1</td><td>14.6</td><td>16.5</td></tr><tr><td>WReN (Barrett et al. 2018)</td><td>23.8</td><td>29.4</td><td>26.8</td><td>23.5</td><td>22.5</td><td>21.5</td><td>21.9</td><td>21.4</td></tr><tr><td>ResNet (Zhang et al. 2019a)</td><td>40.3</td><td>44.7</td><td>29.3</td><td>27.9</td><td>46.2</td><td>35.8</td><td>51.2</td><td>47.4</td></tr><tr><td>ResNet+DRT (Zhang et al. 2019a)</td><td>40.4</td><td>46.5</td><td>28.8</td><td>27.3</td><td>46.0</td><td>34.2</td><td>50.1</td><td>49.8</td></tr><tr><td>LEN (Zheng, Zha, and Wei 2019)</td><td>41.4</td><td>56.4</td><td>31.7</td><td>29.7</td><td>52.1</td><td>31.7</td><td>44.2</td><td>44.2</td></tr><tr><td>Wild ResNet (Barrett et al. 2018)</td><td>44.3</td><td>50.9</td><td>33.1</td><td>30.8</td><td>50.9</td><td>38.7</td><td>53.1</td><td>52.6</td></tr><tr><td>CoPINet (Zhang et al. 2019b)</td><td>46.1</td><td>54.4</td><td>36.8</td><td>31.9</td><td>52.2</td><td>42.8</td><td>51.9</td><td>52.5</td></tr><tr><td>SRAN (Ours)</td><td>60.8</td><td>78.2</td><td>50.1</td><td>42.4</td><td>68.2</td><td>46.3</td><td>70.1</td><td>70.3</td></tr></table>",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
143,
|
| 1156 |
+
64,
|
| 1157 |
+
854,
|
| 1158 |
+
195
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 5
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "table",
|
| 1164 |
+
"img_path": "images/cc9fb222bbf5e4a7863318487b86085b9fe0703eafb688ed8aa83d83c1fedff0.jpg",
|
| 1165 |
+
"table_caption": [
|
| 1166 |
+
"Table 2: Test accuracy of different models on I-RAVEN. Acc denotes the mean accuracy, while other columns show accuracy across seven figure configurations. $2 \\times 2\\mathrm{G}$ , $3 \\times 3\\mathrm{G}$ , O-IC, O-IG, L-R, and U-D denote $2 \\times 2\\mathrm{Grid}$ , $3 \\times 3\\mathrm{Grid}$ , Out-InCenter, Out-InGrid, Left-Right, and Up-Down, respectively"
|
| 1167 |
+
],
|
| 1168 |
+
"table_footnote": [],
|
| 1169 |
+
"table_body": "<table><tr><td>Model</td><td>LSTM</td><td>ResNet</td><td>Wild ResNet</td><td>CoPINet</td><td>WReN</td><td>MXGNet</td><td>LEN</td><td>SRAN</td></tr><tr><td>Acc</td><td>35.8</td><td>42.0</td><td>48.0</td><td>56.4</td><td>62.6</td><td>66.7</td><td>68.1</td><td>71.3</td></tr></table>",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
163,
|
| 1172 |
+
266,
|
| 1173 |
+
834,
|
| 1174 |
+
299
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 5
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Table 3: Test accuracy of different models on PGM",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
328,
|
| 1183 |
+
309,
|
| 1184 |
+
666,
|
| 1185 |
+
323
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 5
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "list",
|
| 1191 |
+
"sub_type": "text",
|
| 1192 |
+
"list_items": [
|
| 1193 |
+
"$\\bigcirc$ Correct answer",
|
| 1194 |
+
"$\\bigcirc$ Distractor",
|
| 1195 |
+
"Differ in one attribute"
|
| 1196 |
+
],
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
84,
|
| 1199 |
+
391,
|
| 1200 |
+
250,
|
| 1201 |
+
431
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 5
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "image",
|
| 1207 |
+
"img_path": "images/ec49ec108e761339e6e4bd0e03cc69e747e1bf3cbac66cb615de59d2229d3dfb.jpg",
|
| 1208 |
+
"image_caption": [
|
| 1209 |
+
"(a) RAVEN"
|
| 1210 |
+
],
|
| 1211 |
+
"image_footnote": [],
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
222,
|
| 1214 |
+
398,
|
| 1215 |
+
352,
|
| 1216 |
+
477
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 5
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "image",
|
| 1222 |
+
"img_path": "images/4c808eede0a60e80ed450a8a103ba09f045db01e3ac1637cd1476cebd5ea1ce6.jpg",
|
| 1223 |
+
"image_caption": [
|
| 1224 |
+
"(b) I-RAVEN",
|
| 1225 |
+
"Figure 5: Characterizing answer sets of RAVEN and I-RAVEN using graphs"
|
| 1226 |
+
],
|
| 1227 |
+
"image_footnote": [],
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
364,
|
| 1230 |
+
393,
|
| 1231 |
+
478,
|
| 1232 |
+
479
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 5
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "to characterize typical answer sets of the two datasets respectively, where each candidate answer is represented by a node with its degree inflated. An edge between two nodes represents that the corresponding candidates differ in one attribute. In Figure 5(a), there is always a central node with a degree of 7 and the other nodes with less degrees. The back-door solution is to find the central node, which is indeed the correct answer. By contrast, in Figure 5(b), due to balanced modifications of attributes, each node always has the same degree of 3, which is indistinguishable from each other without the context matrix. Moreover, inspired by (Hill et al. 2019), we make the noise attribute Uniformity of each distractor stay consistent with the correct answer, so that each distractor is perceptually plausible and cannot be eliminated simply by attribute mismatching. This setting encourages models to reason from the context.",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
81,
|
| 1241 |
+
568,
|
| 1242 |
+
478,
|
| 1243 |
+
789
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 5
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "We also train ResNet and CoPINet on I-RAVEN alongside with their context-blind versions to verify the fairness of the proposed dataset. The right column in Table 1 lists the results which are in stark contrast with those on the original RAVEN dataset. The performance of context-blind models is almost at a random guess level (12.5%), while the normal models relying on the context can perform much better.",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
81,
|
| 1252 |
+
790,
|
| 1253 |
+
478,
|
| 1254 |
+
888
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 5
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Experiments",
|
| 1261 |
+
"text_level": 1,
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
658,
|
| 1264 |
+
354,
|
| 1265 |
+
769,
|
| 1266 |
+
373
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 5
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Experimental Setup",
|
| 1273 |
+
"text_level": 1,
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
516,
|
| 1276 |
+
376,
|
| 1277 |
+
674,
|
| 1278 |
+
393
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 5
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "With I-RAVEN, we first compare our method with several state-of-the-art models using public implementations, including LSTM (Hochreiter and Schmidhuber 1997), ResNet-based (He et al. 2016) image classifier (ResNet), ResNet with DRT (Zhang et al. 2019a), Wild ResNet (Barrett et al. 2018), WReN (Barrett et al. 2018), CoPINet (Zhang et al. 2019b), and LEN (Zheng, Zha, and Wei 2019). We adopt the public implementations of LSTM, ResNet, and DRT in (Zhang et al. 2019a). Other variants of LEN are not included in this section because they require additional training labels.",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
514,
|
| 1287 |
+
396,
|
| 1288 |
+
913,
|
| 1289 |
+
549
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 5
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "PGM (Barrett et al. 2018) is another RPM dataset consisting of 1.42M questions. Rules in a matrix are composed with 1 to 4 relation-object-attribute tuples and can be applied along the rows or columns. SRAN is compared with results on PGM reported in (Barrett et al. 2018; Zhang et al. 2019b; Zheng, Zha, and Wei 2019; Wang, Jamnik, and Lio 2020).",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
514,
|
| 1298 |
+
549,
|
| 1299 |
+
911,
|
| 1300 |
+
633
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 5
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "For our SRAN, we adopt three ResNet-18 (He et al. 2016) as the embedding networks for the three hierarchies, by modifying the input channels. The gate fusion $\\varphi_{1}$ and $\\varphi_{2}$ are 2-layer fully connected networks, while $\\varphi_{3}$ is a 4-layer fully connected network with dropout (Srivastava et al. 2014) of 0.5 applied on the last layer. We adopt stochastic gradient descent using ADAM (Kingma and Ba 2014) optimizer. The exponential decay rate parameters are $\\beta_{1} = 0.9$ , $\\beta_{2} = 0.999$ , $\\epsilon = 10^{-8}$ . Each reported accuracy is averaged over 5 runs.",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
514,
|
| 1309 |
+
633,
|
| 1310 |
+
911,
|
| 1311 |
+
771
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 5
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Comparisons with State-of-the-art Methods",
|
| 1318 |
+
"text_level": 1,
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
516,
|
| 1321 |
+
785,
|
| 1322 |
+
854,
|
| 1323 |
+
800
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 5
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Table 2 and Table 3 list the test accuracy of different models trained on I-RAVEN and PGM, respectively. From the table, it is obvious that our proposed SRAN outperforms other methods by a considerable margin. Besides, we observe that models benefit from inductive biases, such as the competitive CoPINet, LEN, Wild ResNet, and our SRAN. Such in-",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
514,
|
| 1332 |
+
804,
|
| 1333 |
+
911,
|
| 1334 |
+
888
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 5
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "ductive biases (even partly) can encourage models to explore the underlying rules. For more detailed comparison, Table 2 also reports the accuracy on seven figure configurations of I-RAVEN. We can observe that accuracy on different configurations is not uniform, possibly due to the difficulty of configurations. But compared with other models, our SRAN consistently achieves the best performance on all the configurations, which proves that our model can work stably, even facing diverse conditions and complex rules.",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
81,
|
| 1343 |
+
68,
|
| 1344 |
+
478,
|
| 1345 |
+
193
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 6
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "We observe that the accuracy of SRAN on I-RAVEN is very close to that on the original RAVEN dataset (60.8% vs. 60.7%). This phenomenon is as expected since our method mainly focuses on rules in the context, and thus is robust to the answer set.",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
81,
|
| 1354 |
+
193,
|
| 1355 |
+
480,
|
| 1356 |
+
262
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 6
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "Ablation Study",
|
| 1363 |
+
"text_level": 1,
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
83,
|
| 1366 |
+
273,
|
| 1367 |
+
204,
|
| 1368 |
+
287
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 6
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "As aforementioned, our method mainly gains from the inductive-biased architecture. To validate this point, we study the effects of different components in our SRAN. Table 4 lists the results.",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
81,
|
| 1377 |
+
289,
|
| 1378 |
+
478,
|
| 1379 |
+
345
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 6
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "We analyze the stratified strategy to incrementally induce rules, using the performance of different choices of hierarchies. Specifically, we set the rule embedding of certain hierarchy as a zero vector before gate function $\\varphi$ . Thus, the gate function regulates the flow of features into the gated embedding fusion module. We observe that combing more hierarchies always leads to better performance on I-RAVEN, which shows all hierarchies contribute to our framework. We make $\\mathbb{E}_{\\mathrm{cell}}$ orderless by summing all cell-wise embeddings and observe a major drop in performance. These observations prove the effectiveness of the proposed inductive biases of order sensitivity and incremental rule induction.",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
81,
|
| 1388 |
+
345,
|
| 1389 |
+
478,
|
| 1390 |
+
511
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 6
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "We further discover that the effectiveness of our model can be put down to its attention to different attributes. We conduct experiments only utilizing single-hierarchy rule embeddings from $\\mathbb{E}_{\\mathrm{cell}}$ , $\\mathbb{E}_{\\mathrm{ind}}$ , $\\mathbb{E}_{\\mathrm{eco}}$ , with respect to three attributes (Type, Size, and Color) of I-RAVEN. As shown in Figure 6, $\\mathbb{E}_{\\mathrm{cell}}$ has strong capacity to infer attributes Type and Size, but struggles to distinguish attribute Color. By contrast, $\\mathbb{E}_{\\mathrm{ind}}$ and $\\mathbb{E}_{\\mathrm{eco}}$ have modest ability to infer attributes Type and Size, and are efficient for attribute Color.",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
81,
|
| 1399 |
+
511,
|
| 1400 |
+
478,
|
| 1401 |
+
637
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 6
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "The Advantage of Rule Embeddings",
|
| 1408 |
+
"text_level": 1,
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
83,
|
| 1411 |
+
646,
|
| 1412 |
+
364,
|
| 1413 |
+
662
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 6
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "In the real RPM test, it is not clear whether the rule exists in rows or columns. Therefore, it is important to check whether the proposed model can discover the knowledge without any guidance. Rule induction for columns is normally left out when trained on I-RAVEN, given the prior knowledge that rules are applied only row-wise. In order to test the ability of distinguishing whether the rules are applied along rows or columns, we train a SRAN model on I-RAVEN which the induction for column rules is reintegrated into. As a result, there is only a bit drop in accuracy (from $60.8\\%$ to $59.6\\%$ ). This indicates that our model can neglect the distraction brought by columns on its own.",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
81,
|
| 1422 |
+
662,
|
| 1423 |
+
480,
|
| 1424 |
+
830
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 6
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Conclusion",
|
| 1431 |
+
"text_level": 1,
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
230,
|
| 1434 |
+
843,
|
| 1435 |
+
330,
|
| 1436 |
+
857
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 6
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "In this paper, we introduced necessary inductive biases for abstract visual reasoning task, such as order sensitivity and",
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
81,
|
| 1445 |
+
859,
|
| 1446 |
+
480,
|
| 1447 |
+
888
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 6
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "table",
|
| 1453 |
+
"img_path": "images/c576f584862ce3ef4d4adba012257d68f0d3e45e05d147b258ced4846368a7b9.jpg",
|
| 1454 |
+
"table_caption": [],
|
| 1455 |
+
"table_footnote": [],
|
| 1456 |
+
"table_body": "<table><tr><td>Model</td><td>I-RAVEN</td></tr><tr><td>Ecell (orderless)</td><td>23.5</td></tr><tr><td>Ecell</td><td>36.7</td></tr><tr><td>Eind</td><td>48.7</td></tr><tr><td>Eeco</td><td>51.6</td></tr><tr><td>Ecell + Eeco</td><td>52.9</td></tr><tr><td>Eind + Eeco</td><td>57.0</td></tr><tr><td>Ecell + Eind</td><td>57.8</td></tr><tr><td>Ecell + Eind + Eeco</td><td>60.8</td></tr></table>",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
601,
|
| 1459 |
+
64,
|
| 1460 |
+
828,
|
| 1461 |
+
195
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 6
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "Table 4: SRAN $(\\mathbb{E}_{\\mathrm{cell}} + \\mathbb{E}_{\\mathrm{ind}} + \\mathbb{E}_{\\mathrm{eco}})$ and the results of eliminating different components",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
514,
|
| 1470 |
+
203,
|
| 1471 |
+
913,
|
| 1472 |
+
233
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 6
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "image",
|
| 1478 |
+
"img_path": "images/42360998645bd612c7a49a954b4d329119c39b0fb26179fcd135a8cb81817d6a.jpg",
|
| 1479 |
+
"image_caption": [
|
| 1480 |
+
"Figure 6: Accuracy of single hierarchy with respect to the different attributes"
|
| 1481 |
+
],
|
| 1482 |
+
"image_footnote": [],
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
527,
|
| 1485 |
+
253,
|
| 1486 |
+
874,
|
| 1487 |
+
434
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 6
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "incremental rule induction. We further proposed a novel Stratified Rule-Aware Network, which could extract multiple granularity rule embeddings at different level and integrate them through a gated embedding fusion module. A rule similarity metric was further introduced based on the embeddings, so that SRAN can not only be trained using a tuple loss but also infer the best answer according to the similarity score. We also designed an algorithm named Attribute Bisection Tree to fix the defects of the popular dataset RAVEN, and generated a more rigorous dataset based on the algorithm. Extensive experiments conducted on PGM dataset and our improved dataset I-RAVEN proved that, our proposed framework could significantly outperform other state-of-the-art approaches. Moreover, we studied the effects of each component of our proposed model and evaluated the advantage of our induced rule embeddings.",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
514,
|
| 1496 |
+
516,
|
| 1497 |
+
913,
|
| 1498 |
+
739
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 6
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "Acknowledgments",
|
| 1505 |
+
"text_level": 1,
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
635,
|
| 1508 |
+
762,
|
| 1509 |
+
795,
|
| 1510 |
+
779
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 6
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "This work was supported by National Natural Science Foundation of China (62022009, 61872021), Beijing Nova Program of Science and Technology (Z191100001119050), State Key Lab of Software Development Environment (SKLSDE-2020ZX-06), Fundamental Research Funds for Central Universities (YWF-20-BJ-J-646), and the Academic Excellence Foundation of BUAA for PhD Students.",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
514,
|
| 1519 |
+
790,
|
| 1520 |
+
913,
|
| 1521 |
+
888
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 6
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "References",
|
| 1528 |
+
"text_level": 1,
|
| 1529 |
+
"bbox": [
|
| 1530 |
+
233,
|
| 1531 |
+
66,
|
| 1532 |
+
330,
|
| 1533 |
+
82
|
| 1534 |
+
],
|
| 1535 |
+
"page_idx": 7
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "list",
|
| 1539 |
+
"sub_type": "ref_text",
|
| 1540 |
+
"list_items": [
|
| 1541 |
+
"Barrett, D.; Hill, F.; Santoro, A.; Morcos, A.; and Lillicrap, T. 2018. Measuring abstract reasoning in neural networks. In Proceedings of International Conference on Machine Learning (ICML), 511-520.",
|
| 1542 |
+
"Carpenter, P. A.; Just, M. A.; and Shell, P. 1990. What One Intelligence Test Measures: A Theoretical Account of the Processing in the Raven Progressive Matrices Test. Psychological Review 97(3): 404-431.",
|
| 1543 |
+
"He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770-778.",
|
| 1544 |
+
"Hill, F.; Santoro, A.; Barrett, D.; Morcos, A.; and Lillicrap, T. 2019. Learning to Make Analogies by Contrasting Abstract Relational Structure. In International Conference on Learning Representations (ICLR).",
|
| 1545 |
+
"Hochreiter, S.; and Schmidhuber, J. 1997. Long short-term memory. Neural computation 9(8): 1735-1780.",
|
| 1546 |
+
"Hoshen, D.; and Werman, M. 2017. Iq of neural networks. arXiv preprint arXiv:1710.01692.",
|
| 1547 |
+
"Johnson, J.; Hariharan, B.; van der Maaten, L.; Fei-Fei, L.; Lawrence Zitnick, C.; and Girshick, R. 2017. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2901–2910.",
|
| 1548 |
+
"Kingma, D. P.; and Ba, J. 2014. Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR).",
|
| 1549 |
+
"Krizhevsky, A.; Sutskever, I.; and Hinton, G. E. 2012. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 1097-1105.",
|
| 1550 |
+
"Kunda, M.; McGregor, K.; and Goel, A. K. 2013. A computational model for solving problems from the Raven's Progressive Matrices intelligence test using iconic visual representations. Cognitive Systems Research 22: 47-66.",
|
| 1551 |
+
"Lovett, A.; and Forbus, K. 2017. Modeling visual problem solving as analogical reasoning. *Psychological Review* 124(1): 60-90.",
|
| 1552 |
+
"Lovett, A.; Forbus, K.; and Usher, J. 2010. A structure-mapping model of Raven's Progressive Matrices. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 32.",
|
| 1553 |
+
"Lovett, A.; Tomai, E.; Forbus, K.; and Usher, J. 2010. Solving Geometric Analogy Problems Through Two-Stage Analogical Mapping. Cognitive Science 33(7): 1192-1231.",
|
| 1554 |
+
"Parent, E. 1996. The living systems theory of James Grier Miller. Retrieved November 29: 2007.",
|
| 1555 |
+
"Raven, J. 2000. The Raven's progressive matrices: change and stability over culture and time. Cognitive psychology 41(1): 1-48."
|
| 1556 |
+
],
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
84,
|
| 1559 |
+
87,
|
| 1560 |
+
478,
|
| 1561 |
+
888
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 7
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "list",
|
| 1567 |
+
"sub_type": "ref_text",
|
| 1568 |
+
"list_items": [
|
| 1569 |
+
"Raven, J. C. 1938. Raven's progressive matrices. Western Psychological Services.",
|
| 1570 |
+
"Simonyan, K.; and Zisserman, A. 2015. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR).",
|
| 1571 |
+
"Sohn, K. 2016. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems (NeurIPS), 1857-1865.",
|
| 1572 |
+
"Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; and Salakhutdinov, R. 2014. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15(1): 1929-1958.",
|
| 1573 |
+
"Steenbrugge, X.; Leroux, S.; Verbelen, T.; and Dhoedt, B. 2018. Improving generalization for abstract reasoning tasks using disentangled feature representations. arXiv preprint arXiv:1811.04784.",
|
| 1574 |
+
"Strannegård, C.; Cirillo, S.; and Ström, V. 2013. An anthropomorphic method for progressive matrix problems. Cognitive Systems Research 22: 35-46.",
|
| 1575 |
+
"Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; and Rabinovich, A. 2015. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1-9.",
|
| 1576 |
+
"van Steenkiste, S.; Locatello, F.; Schmidhuber, J.; and Bachem, O. 2019. Are Disentangled Representations Helpful for Abstract Visual Reasoning? In Advances in Neural Information Processing Systems (NeurIPS), 14222-14235.",
|
| 1577 |
+
"Wang, D.; Jamnik, M.; and Lio, P. 2020. Abstract diagrammatic reasoning with multiplex graph networks. In International Conference on Learning Representations (ICLR).",
|
| 1578 |
+
"Zhang, C.; Gao, F.; Jia, B.; Zhu, Y.; and Zhu, S.-C. 2019a. RAVEN: A dataset for relational and analogical visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 5317-5327.",
|
| 1579 |
+
"Zhang, C.; Jia, B.; Gao, F.; Zhu, Y.; Lu, H.; and Zhu, S.-C. 2019b. Learning perceptual inference by contrasting. In Advances in Neural Information Processing Systems (NeurIPS), 1073-1085.",
|
| 1580 |
+
"Zheng, K.; Zha, Z.-J.; and Wei, W. 2019. Abstract Reasoning with Distracting Features. In Advances in Neural Information Processing Systems (NeurIPS), 5834-5845."
|
| 1581 |
+
],
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
517,
|
| 1584 |
+
68,
|
| 1585 |
+
911,
|
| 1586 |
+
705
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 7
|
| 1589 |
+
}
|
| 1590 |
+
]
|
2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_model.json
ADDED
|
@@ -0,0 +1,1921 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.121,
|
| 8 |
+
0.812,
|
| 9 |
+
0.143
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "Stratified Rule-Aware Network for Abstract Visual Reasoning"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.199,
|
| 18 |
+
0.172,
|
| 19 |
+
0.796,
|
| 20 |
+
0.191
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Sheng Hu,\\(^{1,*}\\) Yuqing Ma,\\(^{1,*}\\) Xianglong Liu,\\(^{1,2,\\dagger}\\) Yanlu Wei,\\(^{1}\\) Shihao Bai\\(^{1}\\)"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.123,
|
| 29 |
+
0.192,
|
| 30 |
+
0.877,
|
| 31 |
+
0.236
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "\\(^{1}\\) State Key Laboratory of Software Development Environment, Beihang University, Beijing, China \n\\(^{2}\\) Beijing Advanced Innovation Center for Big Data-Based Precision Medicine, Beihang University, Beijing, China \nhusheng_7@163.com, {mayuqing,xliiu} @nlsde.buaa.edu.cn, {weiyanlu,16061167} @buaa.edu.cn"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "title",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.249,
|
| 40 |
+
0.274,
|
| 41 |
+
0.315,
|
| 42 |
+
0.287
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "Abstract"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.099,
|
| 51 |
+
0.297,
|
| 52 |
+
0.465,
|
| 53 |
+
0.664
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "Abstract reasoning refers to the ability to analyze information, discover rules at an intangible level, and solve problems in innovative ways. Raven's Progressive Matrices (RPM) test is typically used to examine the capability of abstract reasoning. The subject is asked to identify the correct choice from the answer set to fill the missing panel at the bottom right of RPM (e.g., a \\(3 \\times 3\\) matrix), following the underlying rules inside the matrix. Recent studies, taking advantage of Convolutional Neural Networks (CNNs), have achieved encouraging progress to accomplish the RPM test. However, they partly ignore necessary inductive biases of RPM solver, such as order sensitivity within each row/column and incremental rule induction. To address this problem, in this paper we propose a Stratified Rule-Aware Network (SRAN) to generate the rule embeddings for two input sequences. Our SRAN learns multiple granularity rule embeddings at different levels, and incrementally integrates the stratified embedding flows through a gated fusion module. With the help of embeddings, a rule similarity metric is applied to guarantee that SRAN can not only be trained using a tuplet loss but also infer the best answer efficiently. We further point out the severe defects existing in the popular RAVEN dataset for RPM test, which prevent from the fair evaluation of the abstract reasoning ability. To fix the defects, we propose an answer set generation algorithm called Attribute Bisection Tree (ABT), forming an improved dataset named Impartial-RAVEN (I-RAVEN for short). Extensive experiments are conducted on both PGM and I-RAVEN datasets, showing that our SRAN outperforms the state-of-the-art models by a considerable margin."
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "title",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.226,
|
| 62 |
+
0.683,
|
| 63 |
+
0.338,
|
| 64 |
+
0.699
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "Introduction"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.082,
|
| 73 |
+
0.703,
|
| 74 |
+
0.48,
|
| 75 |
+
0.829
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "Abstract reasoning, also known as inductive reasoning, refers to the ability to analyze information, discover rules at an intangible level, and solve problems in innovative ways. This type of reasoning, as the foundation for human intelligence, helps human understand the world. It has been generally regarded and pursued as a critical component to the development of artificial intelligence during the past decades, and has attracted increasing attention in recent years. Raven's Progressive Matrices (RPM) test (Raven"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "image",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.518,
|
| 84 |
+
0.272,
|
| 85 |
+
0.915,
|
| 86 |
+
0.462
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": null
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "image_caption",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.516,
|
| 95 |
+
0.471,
|
| 96 |
+
0.915,
|
| 97 |
+
0.57
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": "Figure 1: An example of RPM question and the human strategy to solve it. The underlying rule on the number of circles could be Progression (2-1=3-2) or Arithmetic (1+2=3) along row 1, and Arithmetic (2+3=5) along row 2. Therefore the dominant rule is Arithmetic. Apply it to the third row to figure out the answer \\((2+2=4)\\). Besides, no viable rule can be found along the columns"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "text",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.516,
|
| 106 |
+
0.597,
|
| 107 |
+
0.913,
|
| 108 |
+
0.805
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "1938; Carpenter, Just, and Shell 1990; Raven 2000; Kunda, McGregor, and Goel 2013; Strannegård, Cirillo, and Ström 2013) is one of the highly accepted and well-studied tools to examine the ability of abstract reasoning, which is believed as a good estimate of the real intelligence (Carpenter, Just, and Shell 1990). An illustration of RPM is shown in Figure 1, where usually the test-taker is presented with a \\(3 \\times 3\\) matrix with the bottom right panel left blank. The goal is to choose one image from an answer set of eight candidates to complete the matrix correctly, namely satisfying the underlying rules in the matrix. Subjects accomplish this by looking into the first two rows/columns and inducing the dominant rules which govern the attributes in those panels. The obtained rules can then be applied to the last row/column to figure out which answer belongs to the blank panel."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.516,
|
| 117 |
+
0.806,
|
| 118 |
+
0.914,
|
| 119 |
+
0.89
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "Computational models for RPM in the cognitive science community access symbolic representations of the images (Carpenter, Just, and Shell 1990; Lovett and Forbus 2017; Lovett, Forbus, and Usher 2010; Lovett et al. 2010). Recently there has been some success with end-to-end learning methods trying to accomplish abstract reasoning on"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "page_footnote",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.081,
|
| 128 |
+
0.838,
|
| 129 |
+
0.48,
|
| 130 |
+
0.89
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "*Equal contribution \n†Corresponding author \nCopyright © 2021, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved."
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "aside_text",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.023,
|
| 139 |
+
0.273,
|
| 140 |
+
0.059,
|
| 141 |
+
0.701
|
| 142 |
+
],
|
| 143 |
+
"angle": 270,
|
| 144 |
+
"content": "arXiv:2002.06838v3 [cs.CV] 7 Jun 2022"
|
| 145 |
+
}
|
| 146 |
+
],
|
| 147 |
+
[
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"bbox": [
|
| 151 |
+
0.087,
|
| 152 |
+
0.069,
|
| 153 |
+
0.478,
|
| 154 |
+
0.415
|
| 155 |
+
],
|
| 156 |
+
"angle": 0,
|
| 157 |
+
"content": "RPM test (Hoshen and Werman 2017; Barrett et al. 2018; Steenbrugge et al. 2018; Zhang et al. 2019a,b; Zheng, Zha, and Wei 2019; van Steenkiste et al. 2019; Wang, Jamnik, and Lio 2020), inspired by the progress of computer vision tasks (Krizhevsky, Sutskever, and Hinton 2012; Simonyan and Zisserman 2015; Szegedy et al. 2015; He et al. 2016) and boosted by the large-scale PGM (Barrett et al. 2018) and RAVEN (Zhang et al. 2019a) datasets. Typical works including CoPINet (Zhang et al. 2019a), LEN (Zheng, Zha, and Wei 2019), and MXGNet (Wang, Jamnik, and Lio 2020) followed the paradigm that predicts a classification score for each multiple-choice panel based on the relations inside each row/column, showing great potential to solve RPM test. However, these models partly ignore the important characteristics for RPM, such as the permutation invariance (Zhang et al. 2019b), the order sensitivity of panels inside a row/column, etc. Previous work (Wang, Jamnik, and Lio 2020) specially mentions that they do not choose a permutation-invariant structure because it leads to severe 'overfitting' on the RAVEN dataset. We will discuss this phenomenon in later sections. What is even worse, directly extracting the relations, without considering the incremental rule induction mechanism widely adopted in human cognitive systems (Carpenter, Just, and Shell 1990), inevitably leads to inferior performance."
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"bbox": [
|
| 162 |
+
0.087,
|
| 163 |
+
0.416,
|
| 164 |
+
0.478,
|
| 165 |
+
0.638
|
| 166 |
+
],
|
| 167 |
+
"angle": 0,
|
| 168 |
+
"content": "To achieve reliable and efficient abstract reasoning, in this paper we develop a powerful architecture called Stratified Rule-Aware Network (SRAN) that naturally integrates the indispensable inductive biases, including order sensitivity, permutation invariance, and incremental rule induction. SRAN takes two rows/columns as input and learns stratified rule embeddings at different levels, namely cell-wise, individual-wise, and ecological hierarchy. These multiple granularity embeddings are incrementally integrated via a gate fusion module, which naturally preserves the order sensitivity of panels and maps the inputs to a rule embedding space. With the help of the embeddings, we further introduce a rule similarity metric, based on which SRAN can not only be well trained using a tuplet loss but also infer the best answer efficiently. This framework resembles the human strategy for RPM shown in Figure 1."
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"bbox": [
|
| 173 |
+
0.087,
|
| 174 |
+
0.639,
|
| 175 |
+
0.478,
|
| 176 |
+
0.777
|
| 177 |
+
],
|
| 178 |
+
"angle": 0,
|
| 179 |
+
"content": "To fairly evaluate the abstract reasoning ability, we also design a general algorithm named Attribute Bisection Tree (ABT) to generate an impartial answer set for any attribute-based RPM question. We point out and further fix the underlying defects of the commonly-used RAVEN (Zhang et al. 2019a) dataset, where the correct answer could be inferred even without the presence of the context matrix. Therefore, we introduce an improved dataset named Impartial-RAVEN (I-RAVEN) to fairly evaluate the abstract reasoning capability of RPM solvers."
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"bbox": [
|
| 184 |
+
0.087,
|
| 185 |
+
0.778,
|
| 186 |
+
0.478,
|
| 187 |
+
0.889
|
| 188 |
+
],
|
| 189 |
+
"angle": 0,
|
| 190 |
+
"content": "To the best of our knowledge, the proposed SRAN is the first RPM solver to induce rule embeddings which are discriminative and measurable. We are also the first to point out and fix the defects of the misleading benchmark RAVEN, and generate an impartial dataset I-RAVEN based on our ABT algorithm. Extensive experiments conducted on widely used dataset PGM and our improved I-RAVEN show that SRAN outperforms state-of-the-art methods by a consider-"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"bbox": [
|
| 195 |
+
0.52,
|
| 196 |
+
0.07,
|
| 197 |
+
0.912,
|
| 198 |
+
0.096
|
| 199 |
+
],
|
| 200 |
+
"angle": 0,
|
| 201 |
+
"content": "able margin, e.g. \\(60.8\\%\\) accuracy compared to the second best \\(46.1\\%\\) on I-RAVEN."
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "title",
|
| 205 |
+
"bbox": [
|
| 206 |
+
0.654,
|
| 207 |
+
0.11,
|
| 208 |
+
0.777,
|
| 209 |
+
0.127
|
| 210 |
+
],
|
| 211 |
+
"angle": 0,
|
| 212 |
+
"content": "Our Approach"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"bbox": [
|
| 217 |
+
0.52,
|
| 218 |
+
0.13,
|
| 219 |
+
0.912,
|
| 220 |
+
0.199
|
| 221 |
+
],
|
| 222 |
+
"angle": 0,
|
| 223 |
+
"content": "In this section, we first give a formal definition of the abstract reasoning task on the RPM test. Then we introduce the inductive-biased framework, and present our Stratified Rule-Aware Network (SRAN). Finally, we demonstrate the learning and inference process of the proposed model."
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "title",
|
| 227 |
+
"bbox": [
|
| 228 |
+
0.52,
|
| 229 |
+
0.211,
|
| 230 |
+
0.614,
|
| 231 |
+
0.227
|
| 232 |
+
],
|
| 233 |
+
"angle": 0,
|
| 234 |
+
"content": "Preliminary"
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.52,
|
| 240 |
+
0.228,
|
| 241 |
+
0.912,
|
| 242 |
+
0.339
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "For a common RPM question, usually a \\(3 \\times 3\\) matrix \\(\\mathbf{M}^{-}\\) is given, with bottom right context panel left blank. \\(\\Omega\\) denotes the answer set with \\(N\\) multiple-choice panels, where typically \\(N = 8\\). The dominant rules governing the features inside the matrix could be induced from the first two intact rows/columns. The goal is to select a multiple-choice panel \\(\\omega \\in \\Omega\\) to complete the context matrix \\(\\mathbf{M}^{-}\\), maintaining the dominant rule inside of the context matrix."
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.52,
|
| 251 |
+
0.34,
|
| 252 |
+
0.912,
|
| 253 |
+
0.479
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "We define the completed matrix with a multiple-choice panel \\(\\omega\\) filled as \\(\\mathbf{M}\\), where \\(\\mathbf{M}_i\\) is denoted as the \\(i\\)-th row, and \\(\\mathbf{m}_{ij}\\) indicates the panel in \\(i\\)-th row and \\(j\\)-th column. Intuitively, \\(\\mathbf{M}\\) is almost the same as \\(\\mathbf{M}^{-}\\), except for \\(\\mathbf{m}_{33} = \\omega\\) while the corresponding element missing in \\(\\mathbf{M}^{-}\\). In fact, whether rules exist in rows or columns is uncertain. Therefore, our framework induces both the row-wise rule representation and the column-wise representation in the same way. In order to simplify the notation, we only take the induction of the row-wise rule representation as example."
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "title",
|
| 260 |
+
"bbox": [
|
| 261 |
+
0.52,
|
| 262 |
+
0.49,
|
| 263 |
+
0.73,
|
| 264 |
+
0.505
|
| 265 |
+
],
|
| 266 |
+
"angle": 0,
|
| 267 |
+
"content": "The Reasoning Framework"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"bbox": [
|
| 272 |
+
0.52,
|
| 273 |
+
0.508,
|
| 274 |
+
0.912,
|
| 275 |
+
0.774
|
| 276 |
+
],
|
| 277 |
+
"angle": 0,
|
| 278 |
+
"content": "Based on the necessary inductive biases for RPM, we develop a novel abstract reasoning architecture named Stratified Rule-Aware Network (SRAN). Given two input rows \\(\\mathbf{M}_i,\\mathbf{M}_j\\), the proposed framework embeds the input into multiple granularity embeddings using a stratified rule embedding module \\(\\mathbb{E}\\). Named after biological organizations (Parent 1996), \\(\\mathbb{E}\\) consists of three hierarchies including cell-wise network \\(\\mathbb{E}_{\\mathrm{cell}}\\), individual-wise network \\(\\mathbb{E}_{\\mathrm{ind}}\\), and ecological network \\(\\mathbb{E}_{\\mathrm{eco}}\\). With the multiple granularity rule embeddings, the gated embedding fusion module \\(\\mathbb{G}\\) will incrementally integrate these stratified embedding flows and map the two input sequences \\(\\mathbf{M}_i\\) and \\(\\mathbf{M}_j\\) to a discriminative rule embedding \\(\\mathbf{r}_{ij}^{(3)}\\), while maintaining the order sensitivity and permutation invariance. We further introduce a rule similarity metric \\(\\mathcal{D}\\) to estimate the similarity between the rule representations. The correct answer can be predicted by choosing the multiple-choice panel within the shortest distance to the dominant rule generated by the first two rows in the matrix."
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "title",
|
| 282 |
+
"bbox": [
|
| 283 |
+
0.52,
|
| 284 |
+
0.788,
|
| 285 |
+
0.727,
|
| 286 |
+
0.803
|
| 287 |
+
],
|
| 288 |
+
"angle": 0,
|
| 289 |
+
"content": "Stratified Rule Embedding"
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"bbox": [
|
| 294 |
+
0.52,
|
| 295 |
+
0.806,
|
| 296 |
+
0.912,
|
| 297 |
+
0.889
|
| 298 |
+
],
|
| 299 |
+
"angle": 0,
|
| 300 |
+
"content": "As we all know, organization of behaviour into a nested hierarchy of tasks is characteristic of purposive cognition in humans. The prevalent Convolution Neural Network inspired by the human visual system, is a stratified model itself, with the projection from each layer showing the hierarchical nature of features. The bottom layers extract low-level features,"
|
| 301 |
+
}
|
| 302 |
+
],
|
| 303 |
+
[
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"bbox": [
|
| 307 |
+
0.083,
|
| 308 |
+
0.069,
|
| 309 |
+
0.48,
|
| 310 |
+
0.111
|
| 311 |
+
],
|
| 312 |
+
"angle": 0,
|
| 313 |
+
"content": "such as texture, edge, etc, while the top layers abstract high-level semantic information from the low-level information transmitted from the bottom layers."
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"bbox": [
|
| 318 |
+
0.082,
|
| 319 |
+
0.111,
|
| 320 |
+
0.48,
|
| 321 |
+
0.237
|
| 322 |
+
],
|
| 323 |
+
"angle": 0,
|
| 324 |
+
"content": "However, without specifying information from different levels, it is hard for CNN to figure out different hierarchies, and thus fail to obtain robust and discriminative representations. Therefore, it would be better to feed the input of different hierarchies explicitly and extract rule representations from different granularity with artificial guidance. Motivated by that, we deploy a stratified rule embedding module, consisting of cell-wise hierarchy, individual-wise hierarchy, and ecological hierarchy."
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"bbox": [
|
| 329 |
+
0.082,
|
| 330 |
+
0.242,
|
| 331 |
+
0.481,
|
| 332 |
+
0.34
|
| 333 |
+
],
|
| 334 |
+
"angle": 0,
|
| 335 |
+
"content": "Cell-wise Hierarchy The network of the cell-wise hierarchy \\(\\mathbb{E}_{\\mathrm{cell}}\\) takes each panel as input and recognize the attributes of inside graphical elements. It handles each panel independently without considering the difference or correlations among panels inside the matrix. Therefore, it observes the information from the most detailed perspective. We obtain the cell-wise rule representation for each input panel:"
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "equation",
|
| 339 |
+
"bbox": [
|
| 340 |
+
0.22,
|
| 341 |
+
0.346,
|
| 342 |
+
0.48,
|
| 343 |
+
0.363
|
| 344 |
+
],
|
| 345 |
+
"angle": 0,
|
| 346 |
+
"content": "\\[\n\\mathbf {x} _ {i j} = \\mathbb {E} _ {\\text {c e l l}} (\\mathbf {m} _ {i j}). \\tag {1}\n\\]"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"bbox": [
|
| 351 |
+
0.082,
|
| 352 |
+
0.367,
|
| 353 |
+
0.481,
|
| 354 |
+
0.546
|
| 355 |
+
],
|
| 356 |
+
"angle": 0,
|
| 357 |
+
"content": "Individual-wise Hierarchy Moreover, the network of individual hierarchy takes each row as input. It begins to take the correlations among panels of the same row into consideration, and encode the entire row with a compact embedding, rather than simply combining each panel. In this way, the rule embedding process for each panel is coupled and interacts with each other. Intuitively, each row may contain multiple plausible rules. In this hierarchy, the framework extracts intermediate rule embedding for each row individually, which still ignores the comprehensive information from the matrix perspective, especially the correlations across rows. The individual-wise rule embedding \\(\\mathbf{y}_i\\) is denoted as:"
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"bbox": [
|
| 362 |
+
0.227,
|
| 363 |
+
0.547,
|
| 364 |
+
0.479,
|
| 365 |
+
0.563
|
| 366 |
+
],
|
| 367 |
+
"angle": 0,
|
| 368 |
+
"content": "\\[\n\\mathbf {y} _ {i} = \\mathbb {E} _ {\\text {i n d}} \\left(\\mathbf {M} _ {i}\\right). \\tag {2}\n\\]"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"bbox": [
|
| 373 |
+
0.082,
|
| 374 |
+
0.568,
|
| 375 |
+
0.481,
|
| 376 |
+
0.721
|
| 377 |
+
],
|
| 378 |
+
"angle": 0,
|
| 379 |
+
"content": "Ecological Hierarchy Furthermore, the network of the ecological hierarchy takes the two rows together as input and jointly learns the rule patterns underlying the two rows. As we mentioned before, in the individual hierarchy, the framework extracts intermediate rule embedding for each row, without considering the interaction between two rows. The rule that exists in one row may not lie in another. Therefore, to obtain the shared rule patterns between the two rows, it is essential to put these two rows together and jointly learn the features from an ecological level. Thus the shared rule embedding is obtained as follows:"
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "equation",
|
| 383 |
+
"bbox": [
|
| 384 |
+
0.202,
|
| 385 |
+
0.727,
|
| 386 |
+
0.48,
|
| 387 |
+
0.744
|
| 388 |
+
],
|
| 389 |
+
"angle": 0,
|
| 390 |
+
"content": "\\[\n\\mathbf {z} _ {i j} = \\mathbb {E} _ {\\mathrm {e c o}} ([ \\mathbf {M} _ {i}, \\mathbf {M} _ {j} ]), \\tag {3}\n\\]"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"bbox": [
|
| 395 |
+
0.084,
|
| 396 |
+
0.748,
|
| 397 |
+
0.4,
|
| 398 |
+
0.765
|
| 399 |
+
],
|
| 400 |
+
"angle": 0,
|
| 401 |
+
"content": "where \\([\\cdot ,\\cdot ]\\) denotes the concatenating operation."
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "title",
|
| 405 |
+
"bbox": [
|
| 406 |
+
0.084,
|
| 407 |
+
0.773,
|
| 408 |
+
0.285,
|
| 409 |
+
0.789
|
| 410 |
+
],
|
| 411 |
+
"angle": 0,
|
| 412 |
+
"content": "Gated Embedding Fusion"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"bbox": [
|
| 417 |
+
0.082,
|
| 418 |
+
0.791,
|
| 419 |
+
0.481,
|
| 420 |
+
0.89
|
| 421 |
+
],
|
| 422 |
+
"angle": 0,
|
| 423 |
+
"content": "Since the rule embeddings at different levels focus on different attributes or patterns, to generate one discriminative representation for the rule, we should aggregate the multiple granularity embeddings. Due to the requirement that the aggregation should preserve the order of cell-wise rule embeddings and be permutation-invariant to the individual-wise ones, we propose a stratified rule embedding learning"
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "image",
|
| 427 |
+
"bbox": [
|
| 428 |
+
0.526,
|
| 429 |
+
0.07,
|
| 430 |
+
0.895,
|
| 431 |
+
0.226
|
| 432 |
+
],
|
| 433 |
+
"angle": 0,
|
| 434 |
+
"content": null
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "image_caption",
|
| 438 |
+
"bbox": [
|
| 439 |
+
0.516,
|
| 440 |
+
0.237,
|
| 441 |
+
0.915,
|
| 442 |
+
0.294
|
| 443 |
+
],
|
| 444 |
+
"angle": 0,
|
| 445 |
+
"content": "Figure 2: The architecture of SRAN, consisting of a hierarchical rule embedding module and a gated embedding fusion module. Given two row sequences as input, it outputs the rule embedding"
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"bbox": [
|
| 450 |
+
0.516,
|
| 451 |
+
0.321,
|
| 452 |
+
0.913,
|
| 453 |
+
0.363
|
| 454 |
+
],
|
| 455 |
+
"angle": 0,
|
| 456 |
+
"content": "method named gated embedding fusion module, which is responsible for gradually aggregating the multiple granularity embeddings."
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"bbox": [
|
| 461 |
+
0.516,
|
| 462 |
+
0.364,
|
| 463 |
+
0.914,
|
| 464 |
+
0.502
|
| 465 |
+
],
|
| 466 |
+
"angle": 0,
|
| 467 |
+
"content": "Specifically, we define a gate function \\(\\varphi\\) to fuse the rule embeddings from different hierarchies. It concatenates all the inputs and encodes into a single embedding using fully connected layers. The gate function is similar to the attention mechanism, which detects and concentrates on the useful features according to the task. Even for the same attribute, they may focus on different facets. Based on the gate function, our gated embedding fusion module could regulate the flow of rule embeddings into the framework and make the utmost of their complementary information."
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"bbox": [
|
| 472 |
+
0.516,
|
| 473 |
+
0.502,
|
| 474 |
+
0.913,
|
| 475 |
+
0.549
|
| 476 |
+
],
|
| 477 |
+
"angle": 0,
|
| 478 |
+
"content": "At the cell level, after obtaining cell-wise rule embeddings for panels in \\(i\\)-th row \\(\\mathbf{M}_i\\), the module aggregates them to infer a row-wise rule embedding \\(\\mathbf{r}_i^{(1)}\\):"
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "equation",
|
| 482 |
+
"bbox": [
|
| 483 |
+
0.631,
|
| 484 |
+
0.557,
|
| 485 |
+
0.913,
|
| 486 |
+
0.577
|
| 487 |
+
],
|
| 488 |
+
"angle": 0,
|
| 489 |
+
"content": "\\[\n\\mathbf {r} _ {i} ^ {(1)} = \\varphi_ {1} \\left(\\mathbf {x} _ {i 1}, \\mathbf {x} _ {i 2}, \\mathbf {x} _ {i 3}\\right), \\tag {4}\n\\]"
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"bbox": [
|
| 494 |
+
0.516,
|
| 495 |
+
0.587,
|
| 496 |
+
0.913,
|
| 497 |
+
0.616
|
| 498 |
+
],
|
| 499 |
+
"angle": 0,
|
| 500 |
+
"content": "Similarly, we obtain \\(\\mathbf{r}_j^{(1)}\\) for the \\(j\\)-th row \\(\\mathbf{M}_j\\). The fused embedding integrates different types of attributes in the panels."
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"bbox": [
|
| 505 |
+
0.516,
|
| 506 |
+
0.618,
|
| 507 |
+
0.914,
|
| 508 |
+
0.689
|
| 509 |
+
],
|
| 510 |
+
"angle": 0,
|
| 511 |
+
"content": "At the individual level, intuitively both \\(\\mathbf{r}_i^{(1)}\\) and \\(\\mathbf{y}_i\\) are the row-wise embeddings corresponding to the \\(i\\)-th row, but convey the different granularity rule information. We further fuse them, and jointly mine the shared rules contained in the \\(i\\)-th and \\(j\\)-th row:"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "equation",
|
| 515 |
+
"bbox": [
|
| 516 |
+
0.618,
|
| 517 |
+
0.697,
|
| 518 |
+
0.913,
|
| 519 |
+
0.719
|
| 520 |
+
],
|
| 521 |
+
"angle": 0,
|
| 522 |
+
"content": "\\[\n\\mathbf {r} _ {i j} ^ {(2)} = \\varphi_ {2} \\left(\\mathbf {r} _ {i} ^ {(1)}, \\mathbf {y} _ {i}, \\mathbf {r} _ {j} ^ {(1)}, \\mathbf {y} _ {j}\\right). \\tag {5}\n\\]"
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"bbox": [
|
| 527 |
+
0.516,
|
| 528 |
+
0.724,
|
| 529 |
+
0.914,
|
| 530 |
+
0.77
|
| 531 |
+
],
|
| 532 |
+
"angle": 0,
|
| 533 |
+
"content": "At the ecological level, similarly we can further combine fused embedding \\(\\mathbf{r}_{ij}^{(2)}\\) and \\(\\mathbf{z}_{ij}\\) using the gate fusion function, abstracting the final rule embedding:"
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "equation",
|
| 537 |
+
"bbox": [
|
| 538 |
+
0.644,
|
| 539 |
+
0.777,
|
| 540 |
+
0.913,
|
| 541 |
+
0.8
|
| 542 |
+
],
|
| 543 |
+
"angle": 0,
|
| 544 |
+
"content": "\\[\n\\mathbf {r} _ {i j} ^ {(3)} = \\varphi_ {3} \\left(\\mathbf {r} _ {i j} ^ {(2)}, \\mathbf {z} _ {i j}\\right). \\tag {6}\n\\]"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"bbox": [
|
| 549 |
+
0.516,
|
| 550 |
+
0.806,
|
| 551 |
+
0.914,
|
| 552 |
+
0.89
|
| 553 |
+
],
|
| 554 |
+
"angle": 0,
|
| 555 |
+
"content": "To make sure the framework is permutation-invariant to the input rows, we exchange the concatenation order of the two input rows and average the output rule embeddings. This invariance ensures that, the rule embedding respects the characteristic of RPM and thus distills the representative information of the relations existing in the inputs."
|
| 556 |
+
}
|
| 557 |
+
],
|
| 558 |
+
[
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"bbox": [
|
| 562 |
+
0.084,
|
| 563 |
+
0.069,
|
| 564 |
+
0.48,
|
| 565 |
+
0.096
|
| 566 |
+
],
|
| 567 |
+
"angle": 0,
|
| 568 |
+
"content": "On the whole, the SRAN can be formulated in its simplest form as follows:"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "equation",
|
| 572 |
+
"bbox": [
|
| 573 |
+
0.185,
|
| 574 |
+
0.097,
|
| 575 |
+
0.48,
|
| 576 |
+
0.137
|
| 577 |
+
],
|
| 578 |
+
"angle": 0,
|
| 579 |
+
"content": "\\[\n\\begin{array}{l} \\mathbf {r} _ {i j} ^ {(3)} = \\operatorname {S R A N} \\left(\\mathbf {M} _ {i}, \\mathbf {M} _ {j}\\right) \\tag {7} \\\\ = \\mathbb {G} \\left(\\mathbf {x} _ {i}, \\mathbf {x} _ {j}, \\mathbf {y} _ {i}, \\mathbf {y} _ {j}, \\mathbf {z} _ {i j}\\right), \\\\ \\end{array}\n\\]"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"bbox": [
|
| 584 |
+
0.084,
|
| 585 |
+
0.139,
|
| 586 |
+
0.478,
|
| 587 |
+
0.171
|
| 588 |
+
],
|
| 589 |
+
"angle": 0,
|
| 590 |
+
"content": "where \\(\\mathbf{r}_{ij}^{(3)}\\) is the shared rule embedding of the \\(\\mathbf{M}_i\\) and \\(\\mathbf{M}_j\\). An illustration of SRAN is shown in Figure 2."
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "title",
|
| 594 |
+
"bbox": [
|
| 595 |
+
0.084,
|
| 596 |
+
0.18,
|
| 597 |
+
0.27,
|
| 598 |
+
0.196
|
| 599 |
+
],
|
| 600 |
+
"angle": 0,
|
| 601 |
+
"content": "Learning and Inference"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"bbox": [
|
| 606 |
+
0.082,
|
| 607 |
+
0.197,
|
| 608 |
+
0.48,
|
| 609 |
+
0.282
|
| 610 |
+
],
|
| 611 |
+
"angle": 0,
|
| 612 |
+
"content": "With SRAN framework, the question turns to how we train the network, and apply it to infer the correct answer to RPM test. The key to address the question lies in the similarity measure between two rule embeddings, based on which we can define the loss function for SRAN training, and meanwhile determine the best choice during inference."
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"bbox": [
|
| 617 |
+
0.082,
|
| 618 |
+
0.286,
|
| 619 |
+
0.48,
|
| 620 |
+
0.342
|
| 621 |
+
],
|
| 622 |
+
"angle": 0,
|
| 623 |
+
"content": "Similarity function We introduce similarity function \\(\\mathcal{D}\\) to measure the closeness between two rules in the embedding space. In this paper, we adopt inner product similarity for good experimental results:"
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "equation",
|
| 627 |
+
"bbox": [
|
| 628 |
+
0.225,
|
| 629 |
+
0.343,
|
| 630 |
+
0.48,
|
| 631 |
+
0.36
|
| 632 |
+
],
|
| 633 |
+
"angle": 0,
|
| 634 |
+
"content": "\\[\n\\mathcal {D} \\left(\\mathbf {r}, \\mathbf {r} ^ {\\prime}\\right) = \\mathbf {r} ^ {\\mathrm {T}} \\mathbf {r} ^ {\\prime}. \\tag {8}\n\\]"
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"bbox": [
|
| 639 |
+
0.084,
|
| 640 |
+
0.362,
|
| 641 |
+
0.48,
|
| 642 |
+
0.404
|
| 643 |
+
],
|
| 644 |
+
"angle": 0,
|
| 645 |
+
"content": "Training For a given RPM question, the first two rows \\(\\mathbf{M}_1, \\mathbf{M}_2\\) are fed into our proposed SRAN and produce the shared rule embedding \\(\\mathbf{g}\\):"
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "equation",
|
| 649 |
+
"bbox": [
|
| 650 |
+
0.18,
|
| 651 |
+
0.407,
|
| 652 |
+
0.48,
|
| 653 |
+
0.425
|
| 654 |
+
],
|
| 655 |
+
"angle": 0,
|
| 656 |
+
"content": "\\[\n\\mathbf {g} = \\mathbf {r} _ {1 2} ^ {(3)} = \\operatorname {S R A N} \\left(\\mathbf {M} _ {1}, \\mathbf {M} _ {2}\\right), \\tag {9}\n\\]"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"bbox": [
|
| 661 |
+
0.084,
|
| 662 |
+
0.426,
|
| 663 |
+
0.43,
|
| 664 |
+
0.44
|
| 665 |
+
],
|
| 666 |
+
"angle": 0,
|
| 667 |
+
"content": "which represents the dominant pattern of the matrix."
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"bbox": [
|
| 672 |
+
0.082,
|
| 673 |
+
0.44,
|
| 674 |
+
0.48,
|
| 675 |
+
0.551
|
| 676 |
+
],
|
| 677 |
+
"angle": 0,
|
| 678 |
+
"content": "Intuitively, the rule extracted from the first two rows can be treated as the reference rule, and we name it the dominant rule in the matrix. Subsequently, the correct answer can be found by checking whether its corresponding rule embedding is similar to the dominant rule. Specifically, given a multiple-choice panel \\(\\omega_{k}\\in \\Omega\\), where \\(k\\in \\{1,\\dots,N\\}\\), we denote \\(\\overline{\\mathbf{r}}_k\\) as the new rule embedding inside \\(\\mathbf{M}\\) caused by the \\(k\\)-th multiple-choice panel:"
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "equation",
|
| 682 |
+
"bbox": [
|
| 683 |
+
0.202,
|
| 684 |
+
0.553,
|
| 685 |
+
0.48,
|
| 686 |
+
0.581
|
| 687 |
+
],
|
| 688 |
+
"angle": 0,
|
| 689 |
+
"content": "\\[\n\\bar {\\mathbf {r}} _ {k} = \\frac {1}{2} \\left(\\mathbf {r} _ {1 3} ^ {(3)} + \\mathbf {r} _ {2 3} ^ {(3)}\\right). \\tag {10}\n\\]"
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"bbox": [
|
| 694 |
+
0.082,
|
| 695 |
+
0.582,
|
| 696 |
+
0.48,
|
| 697 |
+
0.637
|
| 698 |
+
],
|
| 699 |
+
"angle": 0,
|
| 700 |
+
"content": "This procedure is illustrated in Figure 3. In practice, we generate the column-wise rule representation just as the row-wise one, and concatenate the two representations together as the final representation."
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"bbox": [
|
| 705 |
+
0.082,
|
| 706 |
+
0.638,
|
| 707 |
+
0.481,
|
| 708 |
+
0.763
|
| 709 |
+
],
|
| 710 |
+
"angle": 0,
|
| 711 |
+
"content": "For the rule embedding \\(\\overline{\\mathbf{r}}^*\\) generated by rows/columns filled with correct answer, the desirable SRAN should enforce it to be more similar to the dominant rule \\(\\mathbf{g}\\), compared to the other rules \\(\\overline{\\mathbf{r}}_k\\) corresponding to the wrong answers, where \\(\\overline{\\mathbf{r}}_k \\neq \\overline{\\mathbf{r}}^*\\). Subsequently, the generated rules of \\(N\\) candidates, alongside with the dominant rule, form a tuple containing \\(N + 1\\) elements. Based on the similarity function, the \\((N + 1)\\)-tuple loss (Sohn 2016) can be defined for SRAN training:"
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "equation",
|
| 715 |
+
"bbox": [
|
| 716 |
+
0.096,
|
| 717 |
+
0.775,
|
| 718 |
+
0.48,
|
| 719 |
+
0.817
|
| 720 |
+
],
|
| 721 |
+
"angle": 0,
|
| 722 |
+
"content": "\\[\n\\mathcal {L} = \\log \\left(1 + \\sum_ {k = 1, \\overline {{\\mathbf {r}}} _ {k} \\neq \\overline {{\\mathbf {r}}} ^ {*}} ^ {N} \\exp \\left(\\mathcal {D} \\left(\\mathbf {g}, \\overline {{\\mathbf {r}}} _ {k}\\right) - \\mathcal {D} \\left(\\mathbf {g}, \\overline {{\\mathbf {r}}} ^ {*}\\right)\\right)\\right), \\tag {11}\n\\]"
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"bbox": [
|
| 727 |
+
0.082,
|
| 728 |
+
0.819,
|
| 729 |
+
0.481,
|
| 730 |
+
0.89
|
| 731 |
+
],
|
| 732 |
+
"angle": 0,
|
| 733 |
+
"content": "which means the SRAN can be trained in a fully end-to-end manner. The architecture of the SRAN (Figure 2) is well matched to the problem of abstract reasoning, because it leverages human strategies and explicitly generates the rules governing the matrix."
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "image",
|
| 737 |
+
"bbox": [
|
| 738 |
+
0.525,
|
| 739 |
+
0.072,
|
| 740 |
+
0.907,
|
| 741 |
+
0.17
|
| 742 |
+
],
|
| 743 |
+
"angle": 0,
|
| 744 |
+
"content": null
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "image_caption",
|
| 748 |
+
"bbox": [
|
| 749 |
+
0.516,
|
| 750 |
+
0.186,
|
| 751 |
+
0.915,
|
| 752 |
+
0.27
|
| 753 |
+
],
|
| 754 |
+
"angle": 0,
|
| 755 |
+
"content": "Figure 3: The similarity score for a candidate answer. A multiple-choice panel from the answer set is inflated in the blank panel (row 3), generating a rule embedding \\(\\overline{\\mathbf{r}}_k\\) through SRAN. The similarity score for the candidate answer can be estimated based on \\(\\overline{\\mathbf{r}}_k\\) and the dominant rule embedding \\(\\mathbf{g}\\) extracted from row 1 and 2"
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"bbox": [
|
| 760 |
+
0.516,
|
| 761 |
+
0.298,
|
| 762 |
+
0.913,
|
| 763 |
+
0.424
|
| 764 |
+
],
|
| 765 |
+
"angle": 0,
|
| 766 |
+
"content": "Inference Once the training of SRAN is finished, we could make the inference of the newly given RPM question. Initially, the intact rows/columns of the RPM are fed into the framework to get the dominant rule \\(\\mathbf{g}\\). After that, each multiple-choice panel is filled to the blank position to complete the matrix, and the framework will generate the rule embeddings \\(\\overline{\\mathbf{r}}_k\\) for all candidate answers, given the current completed matrix. We can accomplish the abstract reasoning by choosing the correct multiple-choice as follows:"
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "equation",
|
| 770 |
+
"bbox": [
|
| 771 |
+
0.632,
|
| 772 |
+
0.431,
|
| 773 |
+
0.913,
|
| 774 |
+
0.455
|
| 775 |
+
],
|
| 776 |
+
"angle": 0,
|
| 777 |
+
"content": "\\[\nk ^ {*} = \\underset {k} {\\arg \\max } \\mathcal {D} (\\mathbf {g}, \\overline {{\\mathbf {r}}} _ {k}). \\tag {12}\n\\]"
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"bbox": [
|
| 782 |
+
0.516,
|
| 783 |
+
0.462,
|
| 784 |
+
0.914,
|
| 785 |
+
0.505
|
| 786 |
+
],
|
| 787 |
+
"angle": 0,
|
| 788 |
+
"content": "Note that since we investigate each panel independently, the above inference process promises that our model's output stays invariant if the answer set is shuffled."
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "title",
|
| 792 |
+
"bbox": [
|
| 793 |
+
0.52,
|
| 794 |
+
0.519,
|
| 795 |
+
0.91,
|
| 796 |
+
0.536
|
| 797 |
+
],
|
| 798 |
+
"angle": 0,
|
| 799 |
+
"content": "Attribute Bisection Tree for Impartial Dataset"
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"bbox": [
|
| 804 |
+
0.516,
|
| 805 |
+
0.538,
|
| 806 |
+
0.914,
|
| 807 |
+
0.678
|
| 808 |
+
],
|
| 809 |
+
"angle": 0,
|
| 810 |
+
"content": "RAVEN (Zhang et al. 2019a) is a popular RPM-style dataset adopted by all recent studies (Zhang et al. 2019b; Zheng, Zha, and Wei 2019; Wang, Jamnik, and Lio 2020). However, we find severe defects in its answer sets, making RAVEN incompetence as a measurement of abstract reasoning. In this section, we first give a brief review of RAVEN, and then explain the defects with analysis and experiments. Finally we introduce a general algorithm to generate an impartial answer set for any attribute-based RPM question. Thus we fix the defects of RAVEN and propose an improved dataset."
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "title",
|
| 814 |
+
"bbox": [
|
| 815 |
+
0.517,
|
| 816 |
+
0.689,
|
| 817 |
+
0.664,
|
| 818 |
+
0.704
|
| 819 |
+
],
|
| 820 |
+
"angle": 0,
|
| 821 |
+
"content": "Defects of RAVEN"
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"bbox": [
|
| 826 |
+
0.516,
|
| 827 |
+
0.708,
|
| 828 |
+
0.913,
|
| 829 |
+
0.791
|
| 830 |
+
],
|
| 831 |
+
"angle": 0,
|
| 832 |
+
"content": "RAVEN dataset consists of 70,000 RPM questions distributed in 7 different figure configurations. Panels are constructed with 5 attributes (Number, Position, Type, Size, Color). Each attribute is governed by one of 4 rules and takes a value from a predefined set. Rules are applied only row-wise in RAVEN."
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"bbox": [
|
| 837 |
+
0.516,
|
| 838 |
+
0.792,
|
| 839 |
+
0.914,
|
| 840 |
+
0.89
|
| 841 |
+
],
|
| 842 |
+
"angle": 0,
|
| 843 |
+
"content": "After carefully examining the data in RAVEN, we find unexpected pattern among the eight multiple-choice panels. Each distractor in the answer set is generated by randomly modifying one attribute of the correct answer (see Figure 4(a)). As a consequence, the panel with the most common values for each attribute will be the correct answer. This means the correct answer can be found by simply scanning"
|
| 844 |
+
}
|
| 845 |
+
],
|
| 846 |
+
[
|
| 847 |
+
{
|
| 848 |
+
"type": "image",
|
| 849 |
+
"bbox": [
|
| 850 |
+
0.088,
|
| 851 |
+
0.068,
|
| 852 |
+
0.473,
|
| 853 |
+
0.218
|
| 854 |
+
],
|
| 855 |
+
"angle": 0,
|
| 856 |
+
"content": null
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "image_caption",
|
| 860 |
+
"bbox": [
|
| 861 |
+
0.101,
|
| 862 |
+
0.23,
|
| 863 |
+
0.462,
|
| 864 |
+
0.246
|
| 865 |
+
],
|
| 866 |
+
"angle": 0,
|
| 867 |
+
"content": "Figure 4: Comparison between RAVEN and I-RAVEN"
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "table",
|
| 871 |
+
"bbox": [
|
| 872 |
+
0.09,
|
| 873 |
+
0.269,
|
| 874 |
+
0.474,
|
| 875 |
+
0.346
|
| 876 |
+
],
|
| 877 |
+
"angle": 0,
|
| 878 |
+
"content": "<table><tr><td>Model</td><td>RAVEN</td><td>I-RAVEN</td></tr><tr><td>ResNet (Zhang et al. 2019a)</td><td>53.4</td><td>40.3</td></tr><tr><td>CoPINet (Zhang et al. 2019b)</td><td>91.4</td><td>46.1</td></tr><tr><td>Context-blind ResNet</td><td>71.9</td><td>12.2</td></tr><tr><td>Context-blind CoPINet</td><td>94.2</td><td>14.2</td></tr></table>"
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "table_caption",
|
| 882 |
+
"bbox": [
|
| 883 |
+
0.15,
|
| 884 |
+
0.354,
|
| 885 |
+
0.414,
|
| 886 |
+
0.368
|
| 887 |
+
],
|
| 888 |
+
"angle": 0,
|
| 889 |
+
"content": "Table 1: Test on RAVEN and I-RAVEN"
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"bbox": [
|
| 894 |
+
0.082,
|
| 895 |
+
0.407,
|
| 896 |
+
0.48,
|
| 897 |
+
0.533
|
| 898 |
+
],
|
| 899 |
+
"angle": 0,
|
| 900 |
+
"content": "the answer set without considering the context images. An example is also shown on the right of Figure 4(a). Among the answer set, the most common Color and Type are black (1, 3, 4, 5, and 7) and pentagon (1, 2, 3, 4, 6, and 8). Besides, multiple-choice panel 1, 2, 5, 6, 7, and 8 are in the same Size. Therefore, multiple-choice panel 1, which is the panel with the most common attribute values, is inferred as (and indeed is) the correct answer, even without considering the context matrix."
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"bbox": [
|
| 905 |
+
0.082,
|
| 906 |
+
0.537,
|
| 907 |
+
0.48,
|
| 908 |
+
0.608
|
| 909 |
+
],
|
| 910 |
+
"angle": 0,
|
| 911 |
+
"content": "Note that understanding of the context matrix is the cornerstone of RPM test. The RAVEN dataset, where the correct answer can be found without the context, is obviously against the essence of abstract reasoning, and thus is incapable of evaluating abstract reasoning ability."
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"bbox": [
|
| 916 |
+
0.082,
|
| 917 |
+
0.612,
|
| 918 |
+
0.481,
|
| 919 |
+
0.89
|
| 920 |
+
],
|
| 921 |
+
"angle": 0,
|
| 922 |
+
"content": "More severely, such underlying patterns can also be captured by neural networks, especially for models which combine features of eight multiple-choice panels. We train two models with context-blind (Barrett et al. 2018) setting, including a simple ResNet-based classifier (Zhang et al. 2019a) and the competitive CoPINet (Zhang et al. 2019b). These context-blind models are trained with only eight multiple-choice panels as input, and should have predicted the answer randomly, if the dataset is logical. However, as shown in Table 1, the context-blind models can achieve even better performance to the normal models, which proves that RAVEN contains illogical patterns where the correct answer can be found when only presented with the answer set. This type of back-door solutions is quite hidden and has also been discussed in other relational reasoning benchmarks, such as Visual Question Answering (VQA) (Johnson et al. 2017) and symbolic analogy (Hill et al. 2019). We can conclude that the 'overfitting' phenomenon on RAVEN reported by (Wang, Jamnik, and Lio 2020) is not caused by a permutation-invariant structure but by the dataset itself."
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "title",
|
| 926 |
+
"bbox": [
|
| 927 |
+
0.518,
|
| 928 |
+
0.069,
|
| 929 |
+
0.77,
|
| 930 |
+
0.083
|
| 931 |
+
],
|
| 932 |
+
"angle": 0,
|
| 933 |
+
"content": "Algorithm 1 Attribute Bisection Tree"
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "title",
|
| 937 |
+
"bbox": [
|
| 938 |
+
0.518,
|
| 939 |
+
0.088,
|
| 940 |
+
0.717,
|
| 941 |
+
0.102
|
| 942 |
+
],
|
| 943 |
+
"angle": 0,
|
| 944 |
+
"content": "Input: the correct answer \\(\\omega^{*}\\)"
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"bbox": [
|
| 949 |
+
0.528,
|
| 950 |
+
0.102,
|
| 951 |
+
0.776,
|
| 952 |
+
0.117
|
| 953 |
+
],
|
| 954 |
+
"angle": 0,
|
| 955 |
+
"content": "1: Initialize the answer set \\(\\Omega = \\{\\omega^{*}\\}\\)"
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"bbox": [
|
| 960 |
+
0.528,
|
| 961 |
+
0.117,
|
| 962 |
+
0.847,
|
| 963 |
+
0.13
|
| 964 |
+
],
|
| 965 |
+
"angle": 0,
|
| 966 |
+
"content": "2: Sample 3 attributes \\(a_1, a_2, a_3\\) according to \\(\\omega^*\\)"
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"bbox": [
|
| 971 |
+
0.528,
|
| 972 |
+
0.131,
|
| 973 |
+
0.76,
|
| 974 |
+
0.144
|
| 975 |
+
],
|
| 976 |
+
"angle": 0,
|
| 977 |
+
"content": "3: Sample new value \\( v_{i} \\) for each \\( a_{i} \\)"
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"bbox": [
|
| 982 |
+
0.528,
|
| 983 |
+
0.145,
|
| 984 |
+
0.661,
|
| 985 |
+
0.157
|
| 986 |
+
],
|
| 987 |
+
"angle": 0,
|
| 988 |
+
"content": "4: for \\( i = 1 \\) to 3 do"
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"bbox": [
|
| 993 |
+
0.528,
|
| 994 |
+
0.157,
|
| 995 |
+
0.675,
|
| 996 |
+
0.172
|
| 997 |
+
],
|
| 998 |
+
"angle": 0,
|
| 999 |
+
"content": "5: Initialize \\(\\Gamma = \\{\\}\\)"
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
0.528,
|
| 1005 |
+
0.172,
|
| 1006 |
+
0.845,
|
| 1007 |
+
0.185
|
| 1008 |
+
],
|
| 1009 |
+
"angle": 0,
|
| 1010 |
+
"content": "6: for each \\(w_{k}\\) in the current answer set \\(\\Omega\\) do"
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
0.528,
|
| 1016 |
+
0.186,
|
| 1017 |
+
0.85,
|
| 1018 |
+
0.199
|
| 1019 |
+
],
|
| 1020 |
+
"angle": 0,
|
| 1021 |
+
"content": "7: \\(\\gamma \\gets\\) modifying attribute \\(a_{i}\\) of \\(\\omega_{k}\\) with \\(v_{i}\\)"
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
0.528,
|
| 1027 |
+
0.2,
|
| 1028 |
+
0.669,
|
| 1029 |
+
0.214
|
| 1030 |
+
],
|
| 1031 |
+
"angle": 0,
|
| 1032 |
+
"content": "8: \\(\\Gamma \\leftarrow \\Gamma \\bigcup \\{\\gamma \\}\\)"
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
0.521,
|
| 1038 |
+
0.214,
|
| 1039 |
+
0.617,
|
| 1040 |
+
0.226
|
| 1041 |
+
],
|
| 1042 |
+
"angle": 0,
|
| 1043 |
+
"content": "9: end for"
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
0.521,
|
| 1049 |
+
0.226,
|
| 1050 |
+
0.644,
|
| 1051 |
+
0.242
|
| 1052 |
+
],
|
| 1053 |
+
"angle": 0,
|
| 1054 |
+
"content": "10: \\(\\Omega \\gets \\Omega \\bigcup \\Gamma\\)"
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
0.521,
|
| 1060 |
+
0.242,
|
| 1061 |
+
0.6,
|
| 1062 |
+
0.253
|
| 1063 |
+
],
|
| 1064 |
+
"angle": 0,
|
| 1065 |
+
"content": "11: end for"
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
0.521,
|
| 1071 |
+
0.254,
|
| 1072 |
+
0.797,
|
| 1073 |
+
0.27
|
| 1074 |
+
],
|
| 1075 |
+
"angle": 0,
|
| 1076 |
+
"content": "Output: the answer set \\(\\Omega (|\\Omega | = 2^3 = 8)\\)"
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "title",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
0.518,
|
| 1082 |
+
0.3,
|
| 1083 |
+
0.706,
|
| 1084 |
+
0.314
|
| 1085 |
+
],
|
| 1086 |
+
"angle": 0,
|
| 1087 |
+
"content": "Attribute Bisection Tree"
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
0.516,
|
| 1093 |
+
0.318,
|
| 1094 |
+
0.913,
|
| 1095 |
+
0.416
|
| 1096 |
+
],
|
| 1097 |
+
"angle": 0,
|
| 1098 |
+
"content": "We design a general algorithm named Attribute Bisection Tree (ABT) to generate an impartial answer set for any attribute-based RPM question. The ABT ensures attribute modifications among the answer set are well balanced. Thus, no clue can be found to guess the correct answer only depending on the answer set, and no distractor can be eliminated without reasoning from the context matrix as well."
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
0.516,
|
| 1104 |
+
0.416,
|
| 1105 |
+
0.914,
|
| 1106 |
+
0.596
|
| 1107 |
+
],
|
| 1108 |
+
"angle": 0,
|
| 1109 |
+
"content": "Figure 4(b) demonstrates the generation process using a tree structure. Each node indicates a multiple-choice panel, and the root of the tree structure is the correct answer. Different levels indicate different iterations, where nodes of this level are the candidate answers of current answer set. The generation process flows in a top-down manner. For each iteration, only one attribute will be modified. At each level, a node has two children nodes, where one node remains the same with the father node, the other changes the value of the attribute sampled for this iteration of the father node. Finally, at the bottom level, we could obtain the whole answer set. Algorithm 1 summarizes the key steps of the answer generation process."
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "title",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
0.518,
|
| 1115 |
+
0.607,
|
| 1116 |
+
0.597,
|
| 1117 |
+
0.621
|
| 1118 |
+
],
|
| 1119 |
+
"angle": 0,
|
| 1120 |
+
"content": "I-RAVEN"
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
0.516,
|
| 1126 |
+
0.626,
|
| 1127 |
+
0.913,
|
| 1128 |
+
0.696
|
| 1129 |
+
],
|
| 1130 |
+
"angle": 0,
|
| 1131 |
+
"content": "With ABT, we generate an alternative answer set for each RPM question in the RAVEN dataset, forming an improved dataset named Impartial-RAVEN (I-RAVEN). Next, we will show that compared with RAVEN, I-RAVEN is more rigorous and fair for evaluating abstract reasoning capability."
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
0.516,
|
| 1137 |
+
0.695,
|
| 1138 |
+
0.914,
|
| 1139 |
+
0.861
|
| 1140 |
+
],
|
| 1141 |
+
"angle": 0,
|
| 1142 |
+
"content": "Taking Figure 4(b) for example, each attribute has two different values which distribute evenly in the answer set. The attribute Color of half answer candidates (1, 2, 4, and 7) are black, while the other half (3, 5, 6, and 8) are light grey. Similarly, the attribute Type of half answer candidates (1, 2, 6, and 8) are pentagon, while the other half (3, 4, 5, and 7) are circle. Half of the answer set (1, 3, 4, and 6) are in the same size, which are different from the other same-sized half (2, 5, 7, and 8). As a result, there is no candidate with the most common values for each attribute. In other words, the back-door solution on RAVEN can no longer be applied to the new answer set."
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
0.517,
|
| 1148 |
+
0.861,
|
| 1149 |
+
0.913,
|
| 1150 |
+
0.89
|
| 1151 |
+
],
|
| 1152 |
+
"angle": 0,
|
| 1153 |
+
"content": "To better explain the superiority of I-RAVEN over RAVEN, as shown in Figure 5, we use undirected graphs"
|
| 1154 |
+
}
|
| 1155 |
+
],
|
| 1156 |
+
[
|
| 1157 |
+
{
|
| 1158 |
+
"type": "table",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
0.144,
|
| 1161 |
+
0.065,
|
| 1162 |
+
0.855,
|
| 1163 |
+
0.196
|
| 1164 |
+
],
|
| 1165 |
+
"angle": 0,
|
| 1166 |
+
"content": "<table><tr><td>Model</td><td>Acc</td><td>Center</td><td>2×2G</td><td>3×3G</td><td>O-IC</td><td>O-IG</td><td>L-R</td><td>U-D</td></tr><tr><td>LSTM (Zhang et al. 2019a)</td><td>18.9</td><td>26.2</td><td>16.7</td><td>15.1</td><td>21.9</td><td>21.1</td><td>14.6</td><td>16.5</td></tr><tr><td>WReN (Barrett et al. 2018)</td><td>23.8</td><td>29.4</td><td>26.8</td><td>23.5</td><td>22.5</td><td>21.5</td><td>21.9</td><td>21.4</td></tr><tr><td>ResNet (Zhang et al. 2019a)</td><td>40.3</td><td>44.7</td><td>29.3</td><td>27.9</td><td>46.2</td><td>35.8</td><td>51.2</td><td>47.4</td></tr><tr><td>ResNet+DRT (Zhang et al. 2019a)</td><td>40.4</td><td>46.5</td><td>28.8</td><td>27.3</td><td>46.0</td><td>34.2</td><td>50.1</td><td>49.8</td></tr><tr><td>LEN (Zheng, Zha, and Wei 2019)</td><td>41.4</td><td>56.4</td><td>31.7</td><td>29.7</td><td>52.1</td><td>31.7</td><td>44.2</td><td>44.2</td></tr><tr><td>Wild ResNet (Barrett et al. 2018)</td><td>44.3</td><td>50.9</td><td>33.1</td><td>30.8</td><td>50.9</td><td>38.7</td><td>53.1</td><td>52.6</td></tr><tr><td>CoPINet (Zhang et al. 2019b)</td><td>46.1</td><td>54.4</td><td>36.8</td><td>31.9</td><td>52.2</td><td>42.8</td><td>51.9</td><td>52.5</td></tr><tr><td>SRAN (Ours)</td><td>60.8</td><td>78.2</td><td>50.1</td><td>42.4</td><td>68.2</td><td>46.3</td><td>70.1</td><td>70.3</td></tr></table>"
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "table_caption",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
0.082,
|
| 1172 |
+
0.205,
|
| 1173 |
+
0.916,
|
| 1174 |
+
0.248
|
| 1175 |
+
],
|
| 1176 |
+
"angle": 0,
|
| 1177 |
+
"content": "Table 2: Test accuracy of different models on I-RAVEN. Acc denotes the mean accuracy, while other columns show accuracy across seven figure configurations. \\(2 \\times 2\\mathrm{G}\\), \\(3 \\times 3\\mathrm{G}\\), O-IC, O-IG, L-R, and U-D denote \\(2 \\times 2\\mathrm{Grid}\\), \\(3 \\times 3\\mathrm{Grid}\\), Out-InCenter, Out-InGrid, Left-Right, and Up-Down, respectively"
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "table",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
0.165,
|
| 1183 |
+
0.267,
|
| 1184 |
+
0.835,
|
| 1185 |
+
0.3
|
| 1186 |
+
],
|
| 1187 |
+
"angle": 0,
|
| 1188 |
+
"content": "<table><tr><td>Model</td><td>LSTM</td><td>ResNet</td><td>Wild ResNet</td><td>CoPINet</td><td>WReN</td><td>MXGNet</td><td>LEN</td><td>SRAN</td></tr><tr><td>Acc</td><td>35.8</td><td>42.0</td><td>48.0</td><td>56.4</td><td>62.6</td><td>66.7</td><td>68.1</td><td>71.3</td></tr></table>"
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "table_caption",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
0.329,
|
| 1194 |
+
0.31,
|
| 1195 |
+
0.668,
|
| 1196 |
+
0.324
|
| 1197 |
+
],
|
| 1198 |
+
"angle": 0,
|
| 1199 |
+
"content": "Table 3: Test accuracy of different models on PGM"
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
0.086,
|
| 1205 |
+
0.392,
|
| 1206 |
+
0.207,
|
| 1207 |
+
0.406
|
| 1208 |
+
],
|
| 1209 |
+
"angle": 0,
|
| 1210 |
+
"content": "\\(\\bigcirc\\) Correct answer"
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
0.086,
|
| 1216 |
+
0.406,
|
| 1217 |
+
0.174,
|
| 1218 |
+
0.419
|
| 1219 |
+
],
|
| 1220 |
+
"angle": 0,
|
| 1221 |
+
"content": "\\(\\bigcirc\\) Distractor"
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
0.086,
|
| 1227 |
+
0.419,
|
| 1228 |
+
0.25,
|
| 1229 |
+
0.432
|
| 1230 |
+
],
|
| 1231 |
+
"angle": 0,
|
| 1232 |
+
"content": "Differ in one attribute"
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "list",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
0.086,
|
| 1238 |
+
0.392,
|
| 1239 |
+
0.25,
|
| 1240 |
+
0.432
|
| 1241 |
+
],
|
| 1242 |
+
"angle": 0,
|
| 1243 |
+
"content": null
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "image",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
0.223,
|
| 1249 |
+
0.399,
|
| 1250 |
+
0.354,
|
| 1251 |
+
0.478
|
| 1252 |
+
],
|
| 1253 |
+
"angle": 0,
|
| 1254 |
+
"content": null
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "image_caption",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
0.244,
|
| 1260 |
+
0.484,
|
| 1261 |
+
0.327,
|
| 1262 |
+
0.497
|
| 1263 |
+
],
|
| 1264 |
+
"angle": 0,
|
| 1265 |
+
"content": "(a) RAVEN"
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "image",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
0.366,
|
| 1271 |
+
0.394,
|
| 1272 |
+
0.48,
|
| 1273 |
+
0.481
|
| 1274 |
+
],
|
| 1275 |
+
"angle": 0,
|
| 1276 |
+
"content": null
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "image_caption",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
0.374,
|
| 1282 |
+
0.484,
|
| 1283 |
+
0.468,
|
| 1284 |
+
0.497
|
| 1285 |
+
],
|
| 1286 |
+
"angle": 0,
|
| 1287 |
+
"content": "(b) I-RAVEN"
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "image_caption",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
0.083,
|
| 1293 |
+
0.509,
|
| 1294 |
+
0.48,
|
| 1295 |
+
0.539
|
| 1296 |
+
],
|
| 1297 |
+
"angle": 0,
|
| 1298 |
+
"content": "Figure 5: Characterizing answer sets of RAVEN and I-RAVEN using graphs"
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
0.082,
|
| 1304 |
+
0.569,
|
| 1305 |
+
0.48,
|
| 1306 |
+
0.79
|
| 1307 |
+
],
|
| 1308 |
+
"angle": 0,
|
| 1309 |
+
"content": "to characterize typical answer sets of the two datasets respectively, where each candidate answer is represented by a node with its degree inflated. An edge between two nodes represents that the corresponding candidates differ in one attribute. In Figure 5(a), there is always a central node with a degree of 7 and the other nodes with less degrees. The back-door solution is to find the central node, which is indeed the correct answer. By contrast, in Figure 5(b), due to balanced modifications of attributes, each node always has the same degree of 3, which is indistinguishable from each other without the context matrix. Moreover, inspired by (Hill et al. 2019), we make the noise attribute Uniformity of each distractor stay consistent with the correct answer, so that each distractor is perceptually plausible and cannot be eliminated simply by attribute mismatching. This setting encourages models to reason from the context."
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
0.082,
|
| 1315 |
+
0.791,
|
| 1316 |
+
0.48,
|
| 1317 |
+
0.89
|
| 1318 |
+
],
|
| 1319 |
+
"angle": 0,
|
| 1320 |
+
"content": "We also train ResNet and CoPINet on I-RAVEN alongside with their context-blind versions to verify the fairness of the proposed dataset. The right column in Table 1 lists the results which are in stark contrast with those on the original RAVEN dataset. The performance of context-blind models is almost at a random guess level (12.5%), while the normal models relying on the context can perform much better."
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "title",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
0.66,
|
| 1326 |
+
0.356,
|
| 1327 |
+
0.771,
|
| 1328 |
+
0.374
|
| 1329 |
+
],
|
| 1330 |
+
"angle": 0,
|
| 1331 |
+
"content": "Experiments"
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "title",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
0.517,
|
| 1337 |
+
0.377,
|
| 1338 |
+
0.676,
|
| 1339 |
+
0.394
|
| 1340 |
+
],
|
| 1341 |
+
"angle": 0,
|
| 1342 |
+
"content": "Experimental Setup"
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
0.516,
|
| 1348 |
+
0.397,
|
| 1349 |
+
0.915,
|
| 1350 |
+
0.55
|
| 1351 |
+
],
|
| 1352 |
+
"angle": 0,
|
| 1353 |
+
"content": "With I-RAVEN, we first compare our method with several state-of-the-art models using public implementations, including LSTM (Hochreiter and Schmidhuber 1997), ResNet-based (He et al. 2016) image classifier (ResNet), ResNet with DRT (Zhang et al. 2019a), Wild ResNet (Barrett et al. 2018), WReN (Barrett et al. 2018), CoPINet (Zhang et al. 2019b), and LEN (Zheng, Zha, and Wei 2019). We adopt the public implementations of LSTM, ResNet, and DRT in (Zhang et al. 2019a). Other variants of LEN are not included in this section because they require additional training labels."
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
0.516,
|
| 1359 |
+
0.55,
|
| 1360 |
+
0.913,
|
| 1361 |
+
0.634
|
| 1362 |
+
],
|
| 1363 |
+
"angle": 0,
|
| 1364 |
+
"content": "PGM (Barrett et al. 2018) is another RPM dataset consisting of 1.42M questions. Rules in a matrix are composed with 1 to 4 relation-object-attribute tuples and can be applied along the rows or columns. SRAN is compared with results on PGM reported in (Barrett et al. 2018; Zhang et al. 2019b; Zheng, Zha, and Wei 2019; Wang, Jamnik, and Lio 2020)."
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
0.516,
|
| 1370 |
+
0.634,
|
| 1371 |
+
0.913,
|
| 1372 |
+
0.772
|
| 1373 |
+
],
|
| 1374 |
+
"angle": 0,
|
| 1375 |
+
"content": "For our SRAN, we adopt three ResNet-18 (He et al. 2016) as the embedding networks for the three hierarchies, by modifying the input channels. The gate fusion \\(\\varphi_{1}\\) and \\(\\varphi_{2}\\) are 2-layer fully connected networks, while \\(\\varphi_{3}\\) is a 4-layer fully connected network with dropout (Srivastava et al. 2014) of 0.5 applied on the last layer. We adopt stochastic gradient descent using ADAM (Kingma and Ba 2014) optimizer. The exponential decay rate parameters are \\(\\beta_{1} = 0.9\\), \\(\\beta_{2} = 0.999\\), \\(\\epsilon = 10^{-8}\\). Each reported accuracy is averaged over 5 runs."
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "title",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
0.517,
|
| 1381 |
+
0.786,
|
| 1382 |
+
0.856,
|
| 1383 |
+
0.801
|
| 1384 |
+
],
|
| 1385 |
+
"angle": 0,
|
| 1386 |
+
"content": "Comparisons with State-of-the-art Methods"
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
0.516,
|
| 1392 |
+
0.805,
|
| 1393 |
+
0.913,
|
| 1394 |
+
0.889
|
| 1395 |
+
],
|
| 1396 |
+
"angle": 0,
|
| 1397 |
+
"content": "Table 2 and Table 3 list the test accuracy of different models trained on I-RAVEN and PGM, respectively. From the table, it is obvious that our proposed SRAN outperforms other methods by a considerable margin. Besides, we observe that models benefit from inductive biases, such as the competitive CoPINet, LEN, Wild ResNet, and our SRAN. Such in-"
|
| 1398 |
+
}
|
| 1399 |
+
],
|
| 1400 |
+
[
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
0.082,
|
| 1405 |
+
0.069,
|
| 1406 |
+
0.48,
|
| 1407 |
+
0.194
|
| 1408 |
+
],
|
| 1409 |
+
"angle": 0,
|
| 1410 |
+
"content": "ductive biases (even partly) can encourage models to explore the underlying rules. For more detailed comparison, Table 2 also reports the accuracy on seven figure configurations of I-RAVEN. We can observe that accuracy on different configurations is not uniform, possibly due to the difficulty of configurations. But compared with other models, our SRAN consistently achieves the best performance on all the configurations, which proves that our model can work stably, even facing diverse conditions and complex rules."
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
0.082,
|
| 1416 |
+
0.194,
|
| 1417 |
+
0.481,
|
| 1418 |
+
0.263
|
| 1419 |
+
],
|
| 1420 |
+
"angle": 0,
|
| 1421 |
+
"content": "We observe that the accuracy of SRAN on I-RAVEN is very close to that on the original RAVEN dataset (60.8% vs. 60.7%). This phenomenon is as expected since our method mainly focuses on rules in the context, and thus is robust to the answer set."
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "title",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
0.084,
|
| 1427 |
+
0.274,
|
| 1428 |
+
0.205,
|
| 1429 |
+
0.289
|
| 1430 |
+
],
|
| 1431 |
+
"angle": 0,
|
| 1432 |
+
"content": "Ablation Study"
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
0.082,
|
| 1438 |
+
0.29,
|
| 1439 |
+
0.48,
|
| 1440 |
+
0.346
|
| 1441 |
+
],
|
| 1442 |
+
"angle": 0,
|
| 1443 |
+
"content": "As aforementioned, our method mainly gains from the inductive-biased architecture. To validate this point, we study the effects of different components in our SRAN. Table 4 lists the results."
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
0.082,
|
| 1449 |
+
0.346,
|
| 1450 |
+
0.48,
|
| 1451 |
+
0.512
|
| 1452 |
+
],
|
| 1453 |
+
"angle": 0,
|
| 1454 |
+
"content": "We analyze the stratified strategy to incrementally induce rules, using the performance of different choices of hierarchies. Specifically, we set the rule embedding of certain hierarchy as a zero vector before gate function \\(\\varphi\\). Thus, the gate function regulates the flow of features into the gated embedding fusion module. We observe that combing more hierarchies always leads to better performance on I-RAVEN, which shows all hierarchies contribute to our framework. We make \\(\\mathbb{E}_{\\mathrm{cell}}\\) orderless by summing all cell-wise embeddings and observe a major drop in performance. These observations prove the effectiveness of the proposed inductive biases of order sensitivity and incremental rule induction."
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
0.082,
|
| 1460 |
+
0.512,
|
| 1461 |
+
0.48,
|
| 1462 |
+
0.638
|
| 1463 |
+
],
|
| 1464 |
+
"angle": 0,
|
| 1465 |
+
"content": "We further discover that the effectiveness of our model can be put down to its attention to different attributes. We conduct experiments only utilizing single-hierarchy rule embeddings from \\(\\mathbb{E}_{\\mathrm{cell}}\\), \\(\\mathbb{E}_{\\mathrm{ind}}\\), \\(\\mathbb{E}_{\\mathrm{eco}}\\), with respect to three attributes (Type, Size, and Color) of I-RAVEN. As shown in Figure 6, \\(\\mathbb{E}_{\\mathrm{cell}}\\) has strong capacity to infer attributes Type and Size, but struggles to distinguish attribute Color. By contrast, \\(\\mathbb{E}_{\\mathrm{ind}}\\) and \\(\\mathbb{E}_{\\mathrm{eco}}\\) have modest ability to infer attributes Type and Size, and are efficient for attribute Color."
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "title",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
0.084,
|
| 1471 |
+
0.647,
|
| 1472 |
+
0.365,
|
| 1473 |
+
0.663
|
| 1474 |
+
],
|
| 1475 |
+
"angle": 0,
|
| 1476 |
+
"content": "The Advantage of Rule Embeddings"
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "text",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
0.082,
|
| 1482 |
+
0.664,
|
| 1483 |
+
0.481,
|
| 1484 |
+
0.831
|
| 1485 |
+
],
|
| 1486 |
+
"angle": 0,
|
| 1487 |
+
"content": "In the real RPM test, it is not clear whether the rule exists in rows or columns. Therefore, it is important to check whether the proposed model can discover the knowledge without any guidance. Rule induction for columns is normally left out when trained on I-RAVEN, given the prior knowledge that rules are applied only row-wise. In order to test the ability of distinguishing whether the rules are applied along rows or columns, we train a SRAN model on I-RAVEN which the induction for column rules is reintegrated into. As a result, there is only a bit drop in accuracy (from \\(60.8\\%\\) to \\(59.6\\%\\)). This indicates that our model can neglect the distraction brought by columns on its own."
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "title",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
0.232,
|
| 1493 |
+
0.844,
|
| 1494 |
+
0.331,
|
| 1495 |
+
0.858
|
| 1496 |
+
],
|
| 1497 |
+
"angle": 0,
|
| 1498 |
+
"content": "Conclusion"
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
0.082,
|
| 1504 |
+
0.861,
|
| 1505 |
+
0.481,
|
| 1506 |
+
0.89
|
| 1507 |
+
],
|
| 1508 |
+
"angle": 0,
|
| 1509 |
+
"content": "In this paper, we introduced necessary inductive biases for abstract visual reasoning task, such as order sensitivity and"
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "table",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
0.602,
|
| 1515 |
+
0.065,
|
| 1516 |
+
0.83,
|
| 1517 |
+
0.196
|
| 1518 |
+
],
|
| 1519 |
+
"angle": 0,
|
| 1520 |
+
"content": "<table><tr><td>Model</td><td>I-RAVEN</td></tr><tr><td>Ecell (orderless)</td><td>23.5</td></tr><tr><td>Ecell</td><td>36.7</td></tr><tr><td>Eind</td><td>48.7</td></tr><tr><td>Eeco</td><td>51.6</td></tr><tr><td>Ecell + Eeco</td><td>52.9</td></tr><tr><td>Eind + Eeco</td><td>57.0</td></tr><tr><td>Ecell + Eind</td><td>57.8</td></tr><tr><td>Ecell + Eind + Eeco</td><td>60.8</td></tr></table>"
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "table_caption",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
0.516,
|
| 1526 |
+
0.204,
|
| 1527 |
+
0.914,
|
| 1528 |
+
0.234
|
| 1529 |
+
],
|
| 1530 |
+
"angle": 0,
|
| 1531 |
+
"content": "Table 4: SRAN \\((\\mathbb{E}_{\\mathrm{cell}} + \\mathbb{E}_{\\mathrm{ind}} + \\mathbb{E}_{\\mathrm{eco}})\\) and the results of eliminating different components"
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "image",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
0.529,
|
| 1537 |
+
0.254,
|
| 1538 |
+
0.875,
|
| 1539 |
+
0.435
|
| 1540 |
+
],
|
| 1541 |
+
"angle": 0,
|
| 1542 |
+
"content": null
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "image_caption",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
0.516,
|
| 1548 |
+
0.456,
|
| 1549 |
+
0.913,
|
| 1550 |
+
0.484
|
| 1551 |
+
],
|
| 1552 |
+
"angle": 0,
|
| 1553 |
+
"content": "Figure 6: Accuracy of single hierarchy with respect to the different attributes"
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
0.515,
|
| 1559 |
+
0.517,
|
| 1560 |
+
0.914,
|
| 1561 |
+
0.741
|
| 1562 |
+
],
|
| 1563 |
+
"angle": 0,
|
| 1564 |
+
"content": "incremental rule induction. We further proposed a novel Stratified Rule-Aware Network, which could extract multiple granularity rule embeddings at different level and integrate them through a gated embedding fusion module. A rule similarity metric was further introduced based on the embeddings, so that SRAN can not only be trained using a tuple loss but also infer the best answer according to the similarity score. We also designed an algorithm named Attribute Bisection Tree to fix the defects of the popular dataset RAVEN, and generated a more rigorous dataset based on the algorithm. Extensive experiments conducted on PGM dataset and our improved dataset I-RAVEN proved that, our proposed framework could significantly outperform other state-of-the-art approaches. Moreover, we studied the effects of each component of our proposed model and evaluated the advantage of our induced rule embeddings."
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "title",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
0.637,
|
| 1570 |
+
0.763,
|
| 1571 |
+
0.796,
|
| 1572 |
+
0.78
|
| 1573 |
+
],
|
| 1574 |
+
"angle": 0,
|
| 1575 |
+
"content": "Acknowledgments"
|
| 1576 |
+
},
|
| 1577 |
+
{
|
| 1578 |
+
"type": "text",
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
0.516,
|
| 1581 |
+
0.791,
|
| 1582 |
+
0.914,
|
| 1583 |
+
0.889
|
| 1584 |
+
],
|
| 1585 |
+
"angle": 0,
|
| 1586 |
+
"content": "This work was supported by National Natural Science Foundation of China (62022009, 61872021), Beijing Nova Program of Science and Technology (Z191100001119050), State Key Lab of Software Development Environment (SKLSDE-2020ZX-06), Fundamental Research Funds for Central Universities (YWF-20-BJ-J-646), and the Academic Excellence Foundation of BUAA for PhD Students."
|
| 1587 |
+
}
|
| 1588 |
+
],
|
| 1589 |
+
[
|
| 1590 |
+
{
|
| 1591 |
+
"type": "title",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
0.235,
|
| 1594 |
+
0.068,
|
| 1595 |
+
0.331,
|
| 1596 |
+
0.083
|
| 1597 |
+
],
|
| 1598 |
+
"angle": 0,
|
| 1599 |
+
"content": "References"
|
| 1600 |
+
},
|
| 1601 |
+
{
|
| 1602 |
+
"type": "ref_text",
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
0.085,
|
| 1605 |
+
0.088,
|
| 1606 |
+
0.48,
|
| 1607 |
+
0.144
|
| 1608 |
+
],
|
| 1609 |
+
"angle": 0,
|
| 1610 |
+
"content": "Barrett, D.; Hill, F.; Santoro, A.; Morcos, A.; and Lillicrap, T. 2018. Measuring abstract reasoning in neural networks. In Proceedings of International Conference on Machine Learning (ICML), 511-520."
|
| 1611 |
+
},
|
| 1612 |
+
{
|
| 1613 |
+
"type": "ref_text",
|
| 1614 |
+
"bbox": [
|
| 1615 |
+
0.085,
|
| 1616 |
+
0.149,
|
| 1617 |
+
0.48,
|
| 1618 |
+
0.205
|
| 1619 |
+
],
|
| 1620 |
+
"angle": 0,
|
| 1621 |
+
"content": "Carpenter, P. A.; Just, M. A.; and Shell, P. 1990. What One Intelligence Test Measures: A Theoretical Account of the Processing in the Raven Progressive Matrices Test. Psychological Review 97(3): 404-431."
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "ref_text",
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
0.085,
|
| 1627 |
+
0.21,
|
| 1628 |
+
0.48,
|
| 1629 |
+
0.267
|
| 1630 |
+
],
|
| 1631 |
+
"angle": 0,
|
| 1632 |
+
"content": "He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770-778."
|
| 1633 |
+
},
|
| 1634 |
+
{
|
| 1635 |
+
"type": "ref_text",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
0.085,
|
| 1638 |
+
0.271,
|
| 1639 |
+
0.48,
|
| 1640 |
+
0.327
|
| 1641 |
+
],
|
| 1642 |
+
"angle": 0,
|
| 1643 |
+
"content": "Hill, F.; Santoro, A.; Barrett, D.; Morcos, A.; and Lillicrap, T. 2019. Learning to Make Analogies by Contrasting Abstract Relational Structure. In International Conference on Learning Representations (ICLR)."
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"type": "ref_text",
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
0.085,
|
| 1649 |
+
0.332,
|
| 1650 |
+
0.48,
|
| 1651 |
+
0.362
|
| 1652 |
+
],
|
| 1653 |
+
"angle": 0,
|
| 1654 |
+
"content": "Hochreiter, S.; and Schmidhuber, J. 1997. Long short-term memory. Neural computation 9(8): 1735-1780."
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "ref_text",
|
| 1658 |
+
"bbox": [
|
| 1659 |
+
0.085,
|
| 1660 |
+
0.366,
|
| 1661 |
+
0.48,
|
| 1662 |
+
0.395
|
| 1663 |
+
],
|
| 1664 |
+
"angle": 0,
|
| 1665 |
+
"content": "Hoshen, D.; and Werman, M. 2017. Iq of neural networks. arXiv preprint arXiv:1710.01692."
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "ref_text",
|
| 1669 |
+
"bbox": [
|
| 1670 |
+
0.085,
|
| 1671 |
+
0.4,
|
| 1672 |
+
0.48,
|
| 1673 |
+
0.482
|
| 1674 |
+
],
|
| 1675 |
+
"angle": 0,
|
| 1676 |
+
"content": "Johnson, J.; Hariharan, B.; van der Maaten, L.; Fei-Fei, L.; Lawrence Zitnick, C.; and Girshick, R. 2017. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2901–2910."
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "ref_text",
|
| 1680 |
+
"bbox": [
|
| 1681 |
+
0.085,
|
| 1682 |
+
0.488,
|
| 1683 |
+
0.48,
|
| 1684 |
+
0.531
|
| 1685 |
+
],
|
| 1686 |
+
"angle": 0,
|
| 1687 |
+
"content": "Kingma, D. P.; and Ba, J. 2014. Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR)."
|
| 1688 |
+
},
|
| 1689 |
+
{
|
| 1690 |
+
"type": "ref_text",
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
0.085,
|
| 1693 |
+
0.535,
|
| 1694 |
+
0.48,
|
| 1695 |
+
0.592
|
| 1696 |
+
],
|
| 1697 |
+
"angle": 0,
|
| 1698 |
+
"content": "Krizhevsky, A.; Sutskever, I.; and Hinton, G. E. 2012. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 1097-1105."
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "ref_text",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
0.085,
|
| 1704 |
+
0.597,
|
| 1705 |
+
0.48,
|
| 1706 |
+
0.653
|
| 1707 |
+
],
|
| 1708 |
+
"angle": 0,
|
| 1709 |
+
"content": "Kunda, M.; McGregor, K.; and Goel, A. K. 2013. A computational model for solving problems from the Raven's Progressive Matrices intelligence test using iconic visual representations. Cognitive Systems Research 22: 47-66."
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "ref_text",
|
| 1713 |
+
"bbox": [
|
| 1714 |
+
0.085,
|
| 1715 |
+
0.658,
|
| 1716 |
+
0.48,
|
| 1717 |
+
0.7
|
| 1718 |
+
],
|
| 1719 |
+
"angle": 0,
|
| 1720 |
+
"content": "Lovett, A.; and Forbus, K. 2017. Modeling visual problem solving as analogical reasoning. *Psychological Review* 124(1): 60-90."
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "ref_text",
|
| 1724 |
+
"bbox": [
|
| 1725 |
+
0.085,
|
| 1726 |
+
0.705,
|
| 1727 |
+
0.48,
|
| 1728 |
+
0.761
|
| 1729 |
+
],
|
| 1730 |
+
"angle": 0,
|
| 1731 |
+
"content": "Lovett, A.; Forbus, K.; and Usher, J. 2010. A structure-mapping model of Raven's Progressive Matrices. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 32."
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "ref_text",
|
| 1735 |
+
"bbox": [
|
| 1736 |
+
0.085,
|
| 1737 |
+
0.766,
|
| 1738 |
+
0.48,
|
| 1739 |
+
0.809
|
| 1740 |
+
],
|
| 1741 |
+
"angle": 0,
|
| 1742 |
+
"content": "Lovett, A.; Tomai, E.; Forbus, K.; and Usher, J. 2010. Solving Geometric Analogy Problems Through Two-Stage Analogical Mapping. Cognitive Science 33(7): 1192-1231."
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "ref_text",
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
0.085,
|
| 1748 |
+
0.814,
|
| 1749 |
+
0.48,
|
| 1750 |
+
0.842
|
| 1751 |
+
],
|
| 1752 |
+
"angle": 0,
|
| 1753 |
+
"content": "Parent, E. 1996. The living systems theory of James Grier Miller. Retrieved November 29: 2007."
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "ref_text",
|
| 1757 |
+
"bbox": [
|
| 1758 |
+
0.085,
|
| 1759 |
+
0.847,
|
| 1760 |
+
0.48,
|
| 1761 |
+
0.889
|
| 1762 |
+
],
|
| 1763 |
+
"angle": 0,
|
| 1764 |
+
"content": "Raven, J. 2000. The Raven's progressive matrices: change and stability over culture and time. Cognitive psychology 41(1): 1-48."
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "list",
|
| 1768 |
+
"bbox": [
|
| 1769 |
+
0.085,
|
| 1770 |
+
0.088,
|
| 1771 |
+
0.48,
|
| 1772 |
+
0.889
|
| 1773 |
+
],
|
| 1774 |
+
"angle": 0,
|
| 1775 |
+
"content": null
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "ref_text",
|
| 1779 |
+
"bbox": [
|
| 1780 |
+
0.518,
|
| 1781 |
+
0.069,
|
| 1782 |
+
0.912,
|
| 1783 |
+
0.098
|
| 1784 |
+
],
|
| 1785 |
+
"angle": 0,
|
| 1786 |
+
"content": "Raven, J. C. 1938. Raven's progressive matrices. Western Psychological Services."
|
| 1787 |
+
},
|
| 1788 |
+
{
|
| 1789 |
+
"type": "ref_text",
|
| 1790 |
+
"bbox": [
|
| 1791 |
+
0.518,
|
| 1792 |
+
0.102,
|
| 1793 |
+
0.912,
|
| 1794 |
+
0.145
|
| 1795 |
+
],
|
| 1796 |
+
"angle": 0,
|
| 1797 |
+
"content": "Simonyan, K.; and Zisserman, A. 2015. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR)."
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "ref_text",
|
| 1801 |
+
"bbox": [
|
| 1802 |
+
0.518,
|
| 1803 |
+
0.149,
|
| 1804 |
+
0.912,
|
| 1805 |
+
0.191
|
| 1806 |
+
],
|
| 1807 |
+
"angle": 0,
|
| 1808 |
+
"content": "Sohn, K. 2016. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems (NeurIPS), 1857-1865."
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"type": "ref_text",
|
| 1812 |
+
"bbox": [
|
| 1813 |
+
0.518,
|
| 1814 |
+
0.195,
|
| 1815 |
+
0.913,
|
| 1816 |
+
0.251
|
| 1817 |
+
],
|
| 1818 |
+
"angle": 0,
|
| 1819 |
+
"content": "Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; and Salakhutdinov, R. 2014. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15(1): 1929-1958."
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"type": "ref_text",
|
| 1823 |
+
"bbox": [
|
| 1824 |
+
0.518,
|
| 1825 |
+
0.255,
|
| 1826 |
+
0.913,
|
| 1827 |
+
0.311
|
| 1828 |
+
],
|
| 1829 |
+
"angle": 0,
|
| 1830 |
+
"content": "Steenbrugge, X.; Leroux, S.; Verbelen, T.; and Dhoedt, B. 2018. Improving generalization for abstract reasoning tasks using disentangled feature representations. arXiv preprint arXiv:1811.04784."
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "ref_text",
|
| 1834 |
+
"bbox": [
|
| 1835 |
+
0.518,
|
| 1836 |
+
0.316,
|
| 1837 |
+
0.913,
|
| 1838 |
+
0.358
|
| 1839 |
+
],
|
| 1840 |
+
"angle": 0,
|
| 1841 |
+
"content": "Strannegård, C.; Cirillo, S.; and Ström, V. 2013. An anthropomorphic method for progressive matrix problems. Cognitive Systems Research 22: 35-46."
|
| 1842 |
+
},
|
| 1843 |
+
{
|
| 1844 |
+
"type": "ref_text",
|
| 1845 |
+
"bbox": [
|
| 1846 |
+
0.518,
|
| 1847 |
+
0.362,
|
| 1848 |
+
0.913,
|
| 1849 |
+
0.432
|
| 1850 |
+
],
|
| 1851 |
+
"angle": 0,
|
| 1852 |
+
"content": "Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; and Rabinovich, A. 2015. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1-9."
|
| 1853 |
+
},
|
| 1854 |
+
{
|
| 1855 |
+
"type": "ref_text",
|
| 1856 |
+
"bbox": [
|
| 1857 |
+
0.518,
|
| 1858 |
+
0.436,
|
| 1859 |
+
0.913,
|
| 1860 |
+
0.493
|
| 1861 |
+
],
|
| 1862 |
+
"angle": 0,
|
| 1863 |
+
"content": "van Steenkiste, S.; Locatello, F.; Schmidhuber, J.; and Bachem, O. 2019. Are Disentangled Representations Helpful for Abstract Visual Reasoning? In Advances in Neural Information Processing Systems (NeurIPS), 14222-14235."
|
| 1864 |
+
},
|
| 1865 |
+
{
|
| 1866 |
+
"type": "ref_text",
|
| 1867 |
+
"bbox": [
|
| 1868 |
+
0.518,
|
| 1869 |
+
0.497,
|
| 1870 |
+
0.913,
|
| 1871 |
+
0.54
|
| 1872 |
+
],
|
| 1873 |
+
"angle": 0,
|
| 1874 |
+
"content": "Wang, D.; Jamnik, M.; and Lio, P. 2020. Abstract diagrammatic reasoning with multiplex graph networks. In International Conference on Learning Representations (ICLR)."
|
| 1875 |
+
},
|
| 1876 |
+
{
|
| 1877 |
+
"type": "ref_text",
|
| 1878 |
+
"bbox": [
|
| 1879 |
+
0.518,
|
| 1880 |
+
0.543,
|
| 1881 |
+
0.913,
|
| 1882 |
+
0.6
|
| 1883 |
+
],
|
| 1884 |
+
"angle": 0,
|
| 1885 |
+
"content": "Zhang, C.; Gao, F.; Jia, B.; Zhu, Y.; and Zhu, S.-C. 2019a. RAVEN: A dataset for relational and analogical visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 5317-5327."
|
| 1886 |
+
},
|
| 1887 |
+
{
|
| 1888 |
+
"type": "ref_text",
|
| 1889 |
+
"bbox": [
|
| 1890 |
+
0.518,
|
| 1891 |
+
0.604,
|
| 1892 |
+
0.913,
|
| 1893 |
+
0.659
|
| 1894 |
+
],
|
| 1895 |
+
"angle": 0,
|
| 1896 |
+
"content": "Zhang, C.; Jia, B.; Gao, F.; Zhu, Y.; Lu, H.; and Zhu, S.-C. 2019b. Learning perceptual inference by contrasting. In Advances in Neural Information Processing Systems (NeurIPS), 1073-1085."
|
| 1897 |
+
},
|
| 1898 |
+
{
|
| 1899 |
+
"type": "ref_text",
|
| 1900 |
+
"bbox": [
|
| 1901 |
+
0.518,
|
| 1902 |
+
0.664,
|
| 1903 |
+
0.913,
|
| 1904 |
+
0.707
|
| 1905 |
+
],
|
| 1906 |
+
"angle": 0,
|
| 1907 |
+
"content": "Zheng, K.; Zha, Z.-J.; and Wei, W. 2019. Abstract Reasoning with Distracting Features. In Advances in Neural Information Processing Systems (NeurIPS), 5834-5845."
|
| 1908 |
+
},
|
| 1909 |
+
{
|
| 1910 |
+
"type": "list",
|
| 1911 |
+
"bbox": [
|
| 1912 |
+
0.518,
|
| 1913 |
+
0.069,
|
| 1914 |
+
0.913,
|
| 1915 |
+
0.707
|
| 1916 |
+
],
|
| 1917 |
+
"angle": 0,
|
| 1918 |
+
"content": null
|
| 1919 |
+
}
|
| 1920 |
+
]
|
| 1921 |
+
]
|
2002.06xxx/2002.06838/b5f48312-e0e5-4d14-b736-57b539ada670_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41cc911cc0d4c761836519b1bccb65a2d158333809f6d0e27e5285fea2514b3c
|
| 3 |
+
size 705829
|
2002.06xxx/2002.06838/full.md
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Stratified Rule-Aware Network for Abstract Visual Reasoning
|
| 2 |
+
|
| 3 |
+
Sheng Hu, $^{1,*}$ Yuqing Ma, $^{1,*}$ Xianglong Liu, $^{1,2,\dagger}$ Yanlu Wei, $^{1}$ Shihao Bai $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ State Key Laboratory of Software Development Environment, Beihang University, Beijing, China
|
| 6 |
+
$^{2}$ Beijing Advanced Innovation Center for Big Data-Based Precision Medicine, Beihang University, Beijing, China
|
| 7 |
+
husheng_7@163.com, {mayuqing,xliiu} @nlsde.buaa.edu.cn, {weiyanlu,16061167} @buaa.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Abstract reasoning refers to the ability to analyze information, discover rules at an intangible level, and solve problems in innovative ways. Raven's Progressive Matrices (RPM) test is typically used to examine the capability of abstract reasoning. The subject is asked to identify the correct choice from the answer set to fill the missing panel at the bottom right of RPM (e.g., a $3 \times 3$ matrix), following the underlying rules inside the matrix. Recent studies, taking advantage of Convolutional Neural Networks (CNNs), have achieved encouraging progress to accomplish the RPM test. However, they partly ignore necessary inductive biases of RPM solver, such as order sensitivity within each row/column and incremental rule induction. To address this problem, in this paper we propose a Stratified Rule-Aware Network (SRAN) to generate the rule embeddings for two input sequences. Our SRAN learns multiple granularity rule embeddings at different levels, and incrementally integrates the stratified embedding flows through a gated fusion module. With the help of embeddings, a rule similarity metric is applied to guarantee that SRAN can not only be trained using a tuplet loss but also infer the best answer efficiently. We further point out the severe defects existing in the popular RAVEN dataset for RPM test, which prevent from the fair evaluation of the abstract reasoning ability. To fix the defects, we propose an answer set generation algorithm called Attribute Bisection Tree (ABT), forming an improved dataset named Impartial-RAVEN (I-RAVEN for short). Extensive experiments are conducted on both PGM and I-RAVEN datasets, showing that our SRAN outperforms the state-of-the-art models by a considerable margin.
|
| 12 |
+
|
| 13 |
+
# Introduction
|
| 14 |
+
|
| 15 |
+
Abstract reasoning, also known as inductive reasoning, refers to the ability to analyze information, discover rules at an intangible level, and solve problems in innovative ways. This type of reasoning, as the foundation for human intelligence, helps human understand the world. It has been generally regarded and pursued as a critical component to the development of artificial intelligence during the past decades, and has attracted increasing attention in recent years. Raven's Progressive Matrices (RPM) test (Raven
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: An example of RPM question and the human strategy to solve it. The underlying rule on the number of circles could be Progression (2-1=3-2) or Arithmetic (1+2=3) along row 1, and Arithmetic (2+3=5) along row 2. Therefore the dominant rule is Arithmetic. Apply it to the third row to figure out the answer $(2+2=4)$ . Besides, no viable rule can be found along the columns
|
| 19 |
+
|
| 20 |
+
1938; Carpenter, Just, and Shell 1990; Raven 2000; Kunda, McGregor, and Goel 2013; Strannegård, Cirillo, and Ström 2013) is one of the highly accepted and well-studied tools to examine the ability of abstract reasoning, which is believed as a good estimate of the real intelligence (Carpenter, Just, and Shell 1990). An illustration of RPM is shown in Figure 1, where usually the test-taker is presented with a $3 \times 3$ matrix with the bottom right panel left blank. The goal is to choose one image from an answer set of eight candidates to complete the matrix correctly, namely satisfying the underlying rules in the matrix. Subjects accomplish this by looking into the first two rows/columns and inducing the dominant rules which govern the attributes in those panels. The obtained rules can then be applied to the last row/column to figure out which answer belongs to the blank panel.
|
| 21 |
+
|
| 22 |
+
Computational models for RPM in the cognitive science community access symbolic representations of the images (Carpenter, Just, and Shell 1990; Lovett and Forbus 2017; Lovett, Forbus, and Usher 2010; Lovett et al. 2010). Recently there has been some success with end-to-end learning methods trying to accomplish abstract reasoning on
|
| 23 |
+
|
| 24 |
+
RPM test (Hoshen and Werman 2017; Barrett et al. 2018; Steenbrugge et al. 2018; Zhang et al. 2019a,b; Zheng, Zha, and Wei 2019; van Steenkiste et al. 2019; Wang, Jamnik, and Lio 2020), inspired by the progress of computer vision tasks (Krizhevsky, Sutskever, and Hinton 2012; Simonyan and Zisserman 2015; Szegedy et al. 2015; He et al. 2016) and boosted by the large-scale PGM (Barrett et al. 2018) and RAVEN (Zhang et al. 2019a) datasets. Typical works including CoPINet (Zhang et al. 2019a), LEN (Zheng, Zha, and Wei 2019), and MXGNet (Wang, Jamnik, and Lio 2020) followed the paradigm that predicts a classification score for each multiple-choice panel based on the relations inside each row/column, showing great potential to solve RPM test. However, these models partly ignore the important characteristics for RPM, such as the permutation invariance (Zhang et al. 2019b), the order sensitivity of panels inside a row/column, etc. Previous work (Wang, Jamnik, and Lio 2020) specially mentions that they do not choose a permutation-invariant structure because it leads to severe 'overfitting' on the RAVEN dataset. We will discuss this phenomenon in later sections. What is even worse, directly extracting the relations, without considering the incremental rule induction mechanism widely adopted in human cognitive systems (Carpenter, Just, and Shell 1990), inevitably leads to inferior performance.
|
| 25 |
+
|
| 26 |
+
To achieve reliable and efficient abstract reasoning, in this paper we develop a powerful architecture called Stratified Rule-Aware Network (SRAN) that naturally integrates the indispensable inductive biases, including order sensitivity, permutation invariance, and incremental rule induction. SRAN takes two rows/columns as input and learns stratified rule embeddings at different levels, namely cell-wise, individual-wise, and ecological hierarchy. These multiple granularity embeddings are incrementally integrated via a gate fusion module, which naturally preserves the order sensitivity of panels and maps the inputs to a rule embedding space. With the help of the embeddings, we further introduce a rule similarity metric, based on which SRAN can not only be well trained using a tuplet loss but also infer the best answer efficiently. This framework resembles the human strategy for RPM shown in Figure 1.
|
| 27 |
+
|
| 28 |
+
To fairly evaluate the abstract reasoning ability, we also design a general algorithm named Attribute Bisection Tree (ABT) to generate an impartial answer set for any attribute-based RPM question. We point out and further fix the underlying defects of the commonly-used RAVEN (Zhang et al. 2019a) dataset, where the correct answer could be inferred even without the presence of the context matrix. Therefore, we introduce an improved dataset named Impartial-RAVEN (I-RAVEN) to fairly evaluate the abstract reasoning capability of RPM solvers.
|
| 29 |
+
|
| 30 |
+
To the best of our knowledge, the proposed SRAN is the first RPM solver to induce rule embeddings which are discriminative and measurable. We are also the first to point out and fix the defects of the misleading benchmark RAVEN, and generate an impartial dataset I-RAVEN based on our ABT algorithm. Extensive experiments conducted on widely used dataset PGM and our improved I-RAVEN show that SRAN outperforms state-of-the-art methods by a consider-
|
| 31 |
+
|
| 32 |
+
able margin, e.g. $60.8\%$ accuracy compared to the second best $46.1\%$ on I-RAVEN.
|
| 33 |
+
|
| 34 |
+
# Our Approach
|
| 35 |
+
|
| 36 |
+
In this section, we first give a formal definition of the abstract reasoning task on the RPM test. Then we introduce the inductive-biased framework, and present our Stratified Rule-Aware Network (SRAN). Finally, we demonstrate the learning and inference process of the proposed model.
|
| 37 |
+
|
| 38 |
+
# Preliminary
|
| 39 |
+
|
| 40 |
+
For a common RPM question, usually a $3 \times 3$ matrix $\mathbf{M}^{-}$ is given, with bottom right context panel left blank. $\Omega$ denotes the answer set with $N$ multiple-choice panels, where typically $N = 8$ . The dominant rules governing the features inside the matrix could be induced from the first two intact rows/columns. The goal is to select a multiple-choice panel $\omega \in \Omega$ to complete the context matrix $\mathbf{M}^{-}$ , maintaining the dominant rule inside of the context matrix.
|
| 41 |
+
|
| 42 |
+
We define the completed matrix with a multiple-choice panel $\omega$ filled as $\mathbf{M}$ , where $\mathbf{M}_i$ is denoted as the $i$ -th row, and $\mathbf{m}_{ij}$ indicates the panel in $i$ -th row and $j$ -th column. Intuitively, $\mathbf{M}$ is almost the same as $\mathbf{M}^{-}$ , except for $\mathbf{m}_{33} = \omega$ while the corresponding element missing in $\mathbf{M}^{-}$ . In fact, whether rules exist in rows or columns is uncertain. Therefore, our framework induces both the row-wise rule representation and the column-wise representation in the same way. In order to simplify the notation, we only take the induction of the row-wise rule representation as example.
|
| 43 |
+
|
| 44 |
+
# The Reasoning Framework
|
| 45 |
+
|
| 46 |
+
Based on the necessary inductive biases for RPM, we develop a novel abstract reasoning architecture named Stratified Rule-Aware Network (SRAN). Given two input rows $\mathbf{M}_i,\mathbf{M}_j$ , the proposed framework embeds the input into multiple granularity embeddings using a stratified rule embedding module $\mathbb{E}$ . Named after biological organizations (Parent 1996), $\mathbb{E}$ consists of three hierarchies including cell-wise network $\mathbb{E}_{\mathrm{cell}}$ , individual-wise network $\mathbb{E}_{\mathrm{ind}}$ , and ecological network $\mathbb{E}_{\mathrm{eco}}$ . With the multiple granularity rule embeddings, the gated embedding fusion module $\mathbb{G}$ will incrementally integrate these stratified embedding flows and map the two input sequences $\mathbf{M}_i$ and $\mathbf{M}_j$ to a discriminative rule embedding $\mathbf{r}_{ij}^{(3)}$ , while maintaining the order sensitivity and permutation invariance. We further introduce a rule similarity metric $\mathcal{D}$ to estimate the similarity between the rule representations. The correct answer can be predicted by choosing the multiple-choice panel within the shortest distance to the dominant rule generated by the first two rows in the matrix.
|
| 47 |
+
|
| 48 |
+
# Stratified Rule Embedding
|
| 49 |
+
|
| 50 |
+
As we all know, organization of behaviour into a nested hierarchy of tasks is characteristic of purposive cognition in humans. The prevalent Convolution Neural Network inspired by the human visual system, is a stratified model itself, with the projection from each layer showing the hierarchical nature of features. The bottom layers extract low-level features,
|
| 51 |
+
|
| 52 |
+
such as texture, edge, etc, while the top layers abstract high-level semantic information from the low-level information transmitted from the bottom layers.
|
| 53 |
+
|
| 54 |
+
However, without specifying information from different levels, it is hard for CNN to figure out different hierarchies, and thus fail to obtain robust and discriminative representations. Therefore, it would be better to feed the input of different hierarchies explicitly and extract rule representations from different granularity with artificial guidance. Motivated by that, we deploy a stratified rule embedding module, consisting of cell-wise hierarchy, individual-wise hierarchy, and ecological hierarchy.
|
| 55 |
+
|
| 56 |
+
Cell-wise Hierarchy The network of the cell-wise hierarchy $\mathbb{E}_{\mathrm{cell}}$ takes each panel as input and recognize the attributes of inside graphical elements. It handles each panel independently without considering the difference or correlations among panels inside the matrix. Therefore, it observes the information from the most detailed perspective. We obtain the cell-wise rule representation for each input panel:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\mathbf {x} _ {i j} = \mathbb {E} _ {\text {c e l l}} (\mathbf {m} _ {i j}). \tag {1}
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
Individual-wise Hierarchy Moreover, the network of individual hierarchy takes each row as input. It begins to take the correlations among panels of the same row into consideration, and encode the entire row with a compact embedding, rather than simply combining each panel. In this way, the rule embedding process for each panel is coupled and interacts with each other. Intuitively, each row may contain multiple plausible rules. In this hierarchy, the framework extracts intermediate rule embedding for each row individually, which still ignores the comprehensive information from the matrix perspective, especially the correlations across rows. The individual-wise rule embedding $\mathbf{y}_i$ is denoted as:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\mathbf {y} _ {i} = \mathbb {E} _ {\text {i n d}} \left(\mathbf {M} _ {i}\right). \tag {2}
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
Ecological Hierarchy Furthermore, the network of the ecological hierarchy takes the two rows together as input and jointly learns the rule patterns underlying the two rows. As we mentioned before, in the individual hierarchy, the framework extracts intermediate rule embedding for each row, without considering the interaction between two rows. The rule that exists in one row may not lie in another. Therefore, to obtain the shared rule patterns between the two rows, it is essential to put these two rows together and jointly learn the features from an ecological level. Thus the shared rule embedding is obtained as follows:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\mathbf {z} _ {i j} = \mathbb {E} _ {\mathrm {e c o}} ([ \mathbf {M} _ {i}, \mathbf {M} _ {j} ]), \tag {3}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $[\cdot ,\cdot ]$ denotes the concatenating operation.
|
| 75 |
+
|
| 76 |
+
# Gated Embedding Fusion
|
| 77 |
+
|
| 78 |
+
Since the rule embeddings at different levels focus on different attributes or patterns, to generate one discriminative representation for the rule, we should aggregate the multiple granularity embeddings. Due to the requirement that the aggregation should preserve the order of cell-wise rule embeddings and be permutation-invariant to the individual-wise ones, we propose a stratified rule embedding learning
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: The architecture of SRAN, consisting of a hierarchical rule embedding module and a gated embedding fusion module. Given two row sequences as input, it outputs the rule embedding
|
| 82 |
+
|
| 83 |
+
method named gated embedding fusion module, which is responsible for gradually aggregating the multiple granularity embeddings.
|
| 84 |
+
|
| 85 |
+
Specifically, we define a gate function $\varphi$ to fuse the rule embeddings from different hierarchies. It concatenates all the inputs and encodes into a single embedding using fully connected layers. The gate function is similar to the attention mechanism, which detects and concentrates on the useful features according to the task. Even for the same attribute, they may focus on different facets. Based on the gate function, our gated embedding fusion module could regulate the flow of rule embeddings into the framework and make the utmost of their complementary information.
|
| 86 |
+
|
| 87 |
+
At the cell level, after obtaining cell-wise rule embeddings for panels in $i$ -th row $\mathbf{M}_i$ , the module aggregates them to infer a row-wise rule embedding $\mathbf{r}_i^{(1)}$ :
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathbf {r} _ {i} ^ {(1)} = \varphi_ {1} \left(\mathbf {x} _ {i 1}, \mathbf {x} _ {i 2}, \mathbf {x} _ {i 3}\right), \tag {4}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Similarly, we obtain $\mathbf{r}_j^{(1)}$ for the $j$ -th row $\mathbf{M}_j$ . The fused embedding integrates different types of attributes in the panels.
|
| 94 |
+
|
| 95 |
+
At the individual level, intuitively both $\mathbf{r}_i^{(1)}$ and $\mathbf{y}_i$ are the row-wise embeddings corresponding to the $i$ -th row, but convey the different granularity rule information. We further fuse them, and jointly mine the shared rules contained in the $i$ -th and $j$ -th row:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\mathbf {r} _ {i j} ^ {(2)} = \varphi_ {2} \left(\mathbf {r} _ {i} ^ {(1)}, \mathbf {y} _ {i}, \mathbf {r} _ {j} ^ {(1)}, \mathbf {y} _ {j}\right). \tag {5}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
At the ecological level, similarly we can further combine fused embedding $\mathbf{r}_{ij}^{(2)}$ and $\mathbf{z}_{ij}$ using the gate fusion function, abstracting the final rule embedding:
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\mathbf {r} _ {i j} ^ {(3)} = \varphi_ {3} \left(\mathbf {r} _ {i j} ^ {(2)}, \mathbf {z} _ {i j}\right). \tag {6}
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
To make sure the framework is permutation-invariant to the input rows, we exchange the concatenation order of the two input rows and average the output rule embeddings. This invariance ensures that, the rule embedding respects the characteristic of RPM and thus distills the representative information of the relations existing in the inputs.
|
| 108 |
+
|
| 109 |
+
On the whole, the SRAN can be formulated in its simplest form as follows:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\begin{array}{l} \mathbf {r} _ {i j} ^ {(3)} = \operatorname {S R A N} \left(\mathbf {M} _ {i}, \mathbf {M} _ {j}\right) \tag {7} \\ = \mathbb {G} \left(\mathbf {x} _ {i}, \mathbf {x} _ {j}, \mathbf {y} _ {i}, \mathbf {y} _ {j}, \mathbf {z} _ {i j}\right), \\ \end{array}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $\mathbf{r}_{ij}^{(3)}$ is the shared rule embedding of the $\mathbf{M}_i$ and $\mathbf{M}_j$ . An illustration of SRAN is shown in Figure 2.
|
| 116 |
+
|
| 117 |
+
# Learning and Inference
|
| 118 |
+
|
| 119 |
+
With SRAN framework, the question turns to how we train the network, and apply it to infer the correct answer to RPM test. The key to address the question lies in the similarity measure between two rule embeddings, based on which we can define the loss function for SRAN training, and meanwhile determine the best choice during inference.
|
| 120 |
+
|
| 121 |
+
Similarity function We introduce similarity function $\mathcal{D}$ to measure the closeness between two rules in the embedding space. In this paper, we adopt inner product similarity for good experimental results:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\mathcal {D} \left(\mathbf {r}, \mathbf {r} ^ {\prime}\right) = \mathbf {r} ^ {\mathrm {T}} \mathbf {r} ^ {\prime}. \tag {8}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
Training For a given RPM question, the first two rows $\mathbf{M}_1, \mathbf{M}_2$ are fed into our proposed SRAN and produce the shared rule embedding $\mathbf{g}$ :
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\mathbf {g} = \mathbf {r} _ {1 2} ^ {(3)} = \operatorname {S R A N} \left(\mathbf {M} _ {1}, \mathbf {M} _ {2}\right), \tag {9}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
which represents the dominant pattern of the matrix.
|
| 134 |
+
|
| 135 |
+
Intuitively, the rule extracted from the first two rows can be treated as the reference rule, and we name it the dominant rule in the matrix. Subsequently, the correct answer can be found by checking whether its corresponding rule embedding is similar to the dominant rule. Specifically, given a multiple-choice panel $\omega_{k}\in \Omega$ , where $k\in \{1,\dots,N\}$ , we denote $\overline{\mathbf{r}}_k$ as the new rule embedding inside $\mathbf{M}$ caused by the $k$ -th multiple-choice panel:
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\bar {\mathbf {r}} _ {k} = \frac {1}{2} \left(\mathbf {r} _ {1 3} ^ {(3)} + \mathbf {r} _ {2 3} ^ {(3)}\right). \tag {10}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
This procedure is illustrated in Figure 3. In practice, we generate the column-wise rule representation just as the row-wise one, and concatenate the two representations together as the final representation.
|
| 142 |
+
|
| 143 |
+
For the rule embedding $\overline{\mathbf{r}}^*$ generated by rows/columns filled with correct answer, the desirable SRAN should enforce it to be more similar to the dominant rule $\mathbf{g}$ , compared to the other rules $\overline{\mathbf{r}}_k$ corresponding to the wrong answers, where $\overline{\mathbf{r}}_k \neq \overline{\mathbf{r}}^*$ . Subsequently, the generated rules of $N$ candidates, alongside with the dominant rule, form a tuple containing $N + 1$ elements. Based on the similarity function, the $(N + 1)$ -tuple loss (Sohn 2016) can be defined for SRAN training:
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\mathcal {L} = \log \left(1 + \sum_ {k = 1, \overline {{\mathbf {r}}} _ {k} \neq \overline {{\mathbf {r}}} ^ {*}} ^ {N} \exp \left(\mathcal {D} \left(\mathbf {g}, \overline {{\mathbf {r}}} _ {k}\right) - \mathcal {D} \left(\mathbf {g}, \overline {{\mathbf {r}}} ^ {*}\right)\right)\right), \tag {11}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
which means the SRAN can be trained in a fully end-to-end manner. The architecture of the SRAN (Figure 2) is well matched to the problem of abstract reasoning, because it leverages human strategies and explicitly generates the rules governing the matrix.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 3: The similarity score for a candidate answer. A multiple-choice panel from the answer set is inflated in the blank panel (row 3), generating a rule embedding $\overline{\mathbf{r}}_k$ through SRAN. The similarity score for the candidate answer can be estimated based on $\overline{\mathbf{r}}_k$ and the dominant rule embedding $\mathbf{g}$ extracted from row 1 and 2
|
| 153 |
+
|
| 154 |
+
Inference Once the training of SRAN is finished, we could make the inference of the newly given RPM question. Initially, the intact rows/columns of the RPM are fed into the framework to get the dominant rule $\mathbf{g}$ . After that, each multiple-choice panel is filled to the blank position to complete the matrix, and the framework will generate the rule embeddings $\overline{\mathbf{r}}_k$ for all candidate answers, given the current completed matrix. We can accomplish the abstract reasoning by choosing the correct multiple-choice as follows:
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
k ^ {*} = \underset {k} {\arg \max } \mathcal {D} (\mathbf {g}, \overline {{\mathbf {r}}} _ {k}). \tag {12}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
Note that since we investigate each panel independently, the above inference process promises that our model's output stays invariant if the answer set is shuffled.
|
| 161 |
+
|
| 162 |
+
# Attribute Bisection Tree for Impartial Dataset
|
| 163 |
+
|
| 164 |
+
RAVEN (Zhang et al. 2019a) is a popular RPM-style dataset adopted by all recent studies (Zhang et al. 2019b; Zheng, Zha, and Wei 2019; Wang, Jamnik, and Lio 2020). However, we find severe defects in its answer sets, making RAVEN incompetence as a measurement of abstract reasoning. In this section, we first give a brief review of RAVEN, and then explain the defects with analysis and experiments. Finally we introduce a general algorithm to generate an impartial answer set for any attribute-based RPM question. Thus we fix the defects of RAVEN and propose an improved dataset.
|
| 165 |
+
|
| 166 |
+
# Defects of RAVEN
|
| 167 |
+
|
| 168 |
+
RAVEN dataset consists of 70,000 RPM questions distributed in 7 different figure configurations. Panels are constructed with 5 attributes (Number, Position, Type, Size, Color). Each attribute is governed by one of 4 rules and takes a value from a predefined set. Rules are applied only row-wise in RAVEN.
|
| 169 |
+
|
| 170 |
+
After carefully examining the data in RAVEN, we find unexpected pattern among the eight multiple-choice panels. Each distractor in the answer set is generated by randomly modifying one attribute of the correct answer (see Figure 4(a)). As a consequence, the panel with the most common values for each attribute will be the correct answer. This means the correct answer can be found by simply scanning
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 4: Comparison between RAVEN and I-RAVEN
|
| 174 |
+
|
| 175 |
+
<table><tr><td>Model</td><td>RAVEN</td><td>I-RAVEN</td></tr><tr><td>ResNet (Zhang et al. 2019a)</td><td>53.4</td><td>40.3</td></tr><tr><td>CoPINet (Zhang et al. 2019b)</td><td>91.4</td><td>46.1</td></tr><tr><td>Context-blind ResNet</td><td>71.9</td><td>12.2</td></tr><tr><td>Context-blind CoPINet</td><td>94.2</td><td>14.2</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Table 1: Test on RAVEN and I-RAVEN
|
| 178 |
+
|
| 179 |
+
the answer set without considering the context images. An example is also shown on the right of Figure 4(a). Among the answer set, the most common Color and Type are black (1, 3, 4, 5, and 7) and pentagon (1, 2, 3, 4, 6, and 8). Besides, multiple-choice panel 1, 2, 5, 6, 7, and 8 are in the same Size. Therefore, multiple-choice panel 1, which is the panel with the most common attribute values, is inferred as (and indeed is) the correct answer, even without considering the context matrix.
|
| 180 |
+
|
| 181 |
+
Note that understanding of the context matrix is the cornerstone of RPM test. The RAVEN dataset, where the correct answer can be found without the context, is obviously against the essence of abstract reasoning, and thus is incapable of evaluating abstract reasoning ability.
|
| 182 |
+
|
| 183 |
+
More severely, such underlying patterns can also be captured by neural networks, especially for models which combine features of eight multiple-choice panels. We train two models with context-blind (Barrett et al. 2018) setting, including a simple ResNet-based classifier (Zhang et al. 2019a) and the competitive CoPINet (Zhang et al. 2019b). These context-blind models are trained with only eight multiple-choice panels as input, and should have predicted the answer randomly, if the dataset is logical. However, as shown in Table 1, the context-blind models can achieve even better performance to the normal models, which proves that RAVEN contains illogical patterns where the correct answer can be found when only presented with the answer set. This type of back-door solutions is quite hidden and has also been discussed in other relational reasoning benchmarks, such as Visual Question Answering (VQA) (Johnson et al. 2017) and symbolic analogy (Hill et al. 2019). We can conclude that the 'overfitting' phenomenon on RAVEN reported by (Wang, Jamnik, and Lio 2020) is not caused by a permutation-invariant structure but by the dataset itself.
|
| 184 |
+
|
| 185 |
+
# Algorithm 1 Attribute Bisection Tree
|
| 186 |
+
|
| 187 |
+
# Input: the correct answer $\omega^{*}$
|
| 188 |
+
|
| 189 |
+
1: Initialize the answer set $\Omega = \{\omega^{*}\}$
|
| 190 |
+
|
| 191 |
+
2: Sample 3 attributes $a_1, a_2, a_3$ according to $\omega^*$
|
| 192 |
+
|
| 193 |
+
3: Sample new value $v_{i}$ for each $a_{i}$
|
| 194 |
+
|
| 195 |
+
4: for $i = 1$ to 3 do
|
| 196 |
+
|
| 197 |
+
5: Initialize $\Gamma = \{\}$
|
| 198 |
+
|
| 199 |
+
6: for each $w_{k}$ in the current answer set $\Omega$ do
|
| 200 |
+
|
| 201 |
+
7: $\gamma \gets$ modifying attribute $a_{i}$ of $\omega_{k}$ with $v_{i}$
|
| 202 |
+
|
| 203 |
+
8: $\Gamma \leftarrow \Gamma \bigcup \{\gamma \}$
|
| 204 |
+
|
| 205 |
+
9: end for
|
| 206 |
+
|
| 207 |
+
10: $\Omega \gets \Omega \bigcup \Gamma$
|
| 208 |
+
|
| 209 |
+
11: end for
|
| 210 |
+
|
| 211 |
+
Output: the answer set $\Omega (|\Omega | = 2^3 = 8)$
|
| 212 |
+
|
| 213 |
+
# Attribute Bisection Tree
|
| 214 |
+
|
| 215 |
+
We design a general algorithm named Attribute Bisection Tree (ABT) to generate an impartial answer set for any attribute-based RPM question. The ABT ensures attribute modifications among the answer set are well balanced. Thus, no clue can be found to guess the correct answer only depending on the answer set, and no distractor can be eliminated without reasoning from the context matrix as well.
|
| 216 |
+
|
| 217 |
+
Figure 4(b) demonstrates the generation process using a tree structure. Each node indicates a multiple-choice panel, and the root of the tree structure is the correct answer. Different levels indicate different iterations, where nodes of this level are the candidate answers of current answer set. The generation process flows in a top-down manner. For each iteration, only one attribute will be modified. At each level, a node has two children nodes, where one node remains the same with the father node, the other changes the value of the attribute sampled for this iteration of the father node. Finally, at the bottom level, we could obtain the whole answer set. Algorithm 1 summarizes the key steps of the answer generation process.
|
| 218 |
+
|
| 219 |
+
# I-RAVEN
|
| 220 |
+
|
| 221 |
+
With ABT, we generate an alternative answer set for each RPM question in the RAVEN dataset, forming an improved dataset named Impartial-RAVEN (I-RAVEN). Next, we will show that compared with RAVEN, I-RAVEN is more rigorous and fair for evaluating abstract reasoning capability.
|
| 222 |
+
|
| 223 |
+
Taking Figure 4(b) for example, each attribute has two different values which distribute evenly in the answer set. The attribute Color of half answer candidates (1, 2, 4, and 7) are black, while the other half (3, 5, 6, and 8) are light grey. Similarly, the attribute Type of half answer candidates (1, 2, 6, and 8) are pentagon, while the other half (3, 4, 5, and 7) are circle. Half of the answer set (1, 3, 4, and 6) are in the same size, which are different from the other same-sized half (2, 5, 7, and 8). As a result, there is no candidate with the most common values for each attribute. In other words, the back-door solution on RAVEN can no longer be applied to the new answer set.
|
| 224 |
+
|
| 225 |
+
To better explain the superiority of I-RAVEN over RAVEN, as shown in Figure 5, we use undirected graphs
|
| 226 |
+
|
| 227 |
+
<table><tr><td>Model</td><td>Acc</td><td>Center</td><td>2×2G</td><td>3×3G</td><td>O-IC</td><td>O-IG</td><td>L-R</td><td>U-D</td></tr><tr><td>LSTM (Zhang et al. 2019a)</td><td>18.9</td><td>26.2</td><td>16.7</td><td>15.1</td><td>21.9</td><td>21.1</td><td>14.6</td><td>16.5</td></tr><tr><td>WReN (Barrett et al. 2018)</td><td>23.8</td><td>29.4</td><td>26.8</td><td>23.5</td><td>22.5</td><td>21.5</td><td>21.9</td><td>21.4</td></tr><tr><td>ResNet (Zhang et al. 2019a)</td><td>40.3</td><td>44.7</td><td>29.3</td><td>27.9</td><td>46.2</td><td>35.8</td><td>51.2</td><td>47.4</td></tr><tr><td>ResNet+DRT (Zhang et al. 2019a)</td><td>40.4</td><td>46.5</td><td>28.8</td><td>27.3</td><td>46.0</td><td>34.2</td><td>50.1</td><td>49.8</td></tr><tr><td>LEN (Zheng, Zha, and Wei 2019)</td><td>41.4</td><td>56.4</td><td>31.7</td><td>29.7</td><td>52.1</td><td>31.7</td><td>44.2</td><td>44.2</td></tr><tr><td>Wild ResNet (Barrett et al. 2018)</td><td>44.3</td><td>50.9</td><td>33.1</td><td>30.8</td><td>50.9</td><td>38.7</td><td>53.1</td><td>52.6</td></tr><tr><td>CoPINet (Zhang et al. 2019b)</td><td>46.1</td><td>54.4</td><td>36.8</td><td>31.9</td><td>52.2</td><td>42.8</td><td>51.9</td><td>52.5</td></tr><tr><td>SRAN (Ours)</td><td>60.8</td><td>78.2</td><td>50.1</td><td>42.4</td><td>68.2</td><td>46.3</td><td>70.1</td><td>70.3</td></tr></table>
|
| 228 |
+
|
| 229 |
+
Table 2: Test accuracy of different models on I-RAVEN. Acc denotes the mean accuracy, while other columns show accuracy across seven figure configurations. $2 \times 2\mathrm{G}$ , $3 \times 3\mathrm{G}$ , O-IC, O-IG, L-R, and U-D denote $2 \times 2\mathrm{Grid}$ , $3 \times 3\mathrm{Grid}$ , Out-InCenter, Out-InGrid, Left-Right, and Up-Down, respectively
|
| 230 |
+
|
| 231 |
+
<table><tr><td>Model</td><td>LSTM</td><td>ResNet</td><td>Wild ResNet</td><td>CoPINet</td><td>WReN</td><td>MXGNet</td><td>LEN</td><td>SRAN</td></tr><tr><td>Acc</td><td>35.8</td><td>42.0</td><td>48.0</td><td>56.4</td><td>62.6</td><td>66.7</td><td>68.1</td><td>71.3</td></tr></table>
|
| 232 |
+
|
| 233 |
+
Table 3: Test accuracy of different models on PGM
|
| 234 |
+
|
| 235 |
+
$\bigcirc$ Correct answer
|
| 236 |
+
$\bigcirc$ Distractor
|
| 237 |
+
Differ in one attribute
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
(a) RAVEN
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
(b) I-RAVEN
|
| 244 |
+
Figure 5: Characterizing answer sets of RAVEN and I-RAVEN using graphs
|
| 245 |
+
|
| 246 |
+
to characterize typical answer sets of the two datasets respectively, where each candidate answer is represented by a node with its degree inflated. An edge between two nodes represents that the corresponding candidates differ in one attribute. In Figure 5(a), there is always a central node with a degree of 7 and the other nodes with less degrees. The back-door solution is to find the central node, which is indeed the correct answer. By contrast, in Figure 5(b), due to balanced modifications of attributes, each node always has the same degree of 3, which is indistinguishable from each other without the context matrix. Moreover, inspired by (Hill et al. 2019), we make the noise attribute Uniformity of each distractor stay consistent with the correct answer, so that each distractor is perceptually plausible and cannot be eliminated simply by attribute mismatching. This setting encourages models to reason from the context.
|
| 247 |
+
|
| 248 |
+
We also train ResNet and CoPINet on I-RAVEN alongside with their context-blind versions to verify the fairness of the proposed dataset. The right column in Table 1 lists the results which are in stark contrast with those on the original RAVEN dataset. The performance of context-blind models is almost at a random guess level (12.5%), while the normal models relying on the context can perform much better.
|
| 249 |
+
|
| 250 |
+
# Experiments
|
| 251 |
+
|
| 252 |
+
# Experimental Setup
|
| 253 |
+
|
| 254 |
+
With I-RAVEN, we first compare our method with several state-of-the-art models using public implementations, including LSTM (Hochreiter and Schmidhuber 1997), ResNet-based (He et al. 2016) image classifier (ResNet), ResNet with DRT (Zhang et al. 2019a), Wild ResNet (Barrett et al. 2018), WReN (Barrett et al. 2018), CoPINet (Zhang et al. 2019b), and LEN (Zheng, Zha, and Wei 2019). We adopt the public implementations of LSTM, ResNet, and DRT in (Zhang et al. 2019a). Other variants of LEN are not included in this section because they require additional training labels.
|
| 255 |
+
|
| 256 |
+
PGM (Barrett et al. 2018) is another RPM dataset consisting of 1.42M questions. Rules in a matrix are composed with 1 to 4 relation-object-attribute tuples and can be applied along the rows or columns. SRAN is compared with results on PGM reported in (Barrett et al. 2018; Zhang et al. 2019b; Zheng, Zha, and Wei 2019; Wang, Jamnik, and Lio 2020).
|
| 257 |
+
|
| 258 |
+
For our SRAN, we adopt three ResNet-18 (He et al. 2016) as the embedding networks for the three hierarchies, by modifying the input channels. The gate fusion $\varphi_{1}$ and $\varphi_{2}$ are 2-layer fully connected networks, while $\varphi_{3}$ is a 4-layer fully connected network with dropout (Srivastava et al. 2014) of 0.5 applied on the last layer. We adopt stochastic gradient descent using ADAM (Kingma and Ba 2014) optimizer. The exponential decay rate parameters are $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ , $\epsilon = 10^{-8}$ . Each reported accuracy is averaged over 5 runs.
|
| 259 |
+
|
| 260 |
+
# Comparisons with State-of-the-art Methods
|
| 261 |
+
|
| 262 |
+
Table 2 and Table 3 list the test accuracy of different models trained on I-RAVEN and PGM, respectively. From the table, it is obvious that our proposed SRAN outperforms other methods by a considerable margin. Besides, we observe that models benefit from inductive biases, such as the competitive CoPINet, LEN, Wild ResNet, and our SRAN. Such in-
|
| 263 |
+
|
| 264 |
+
ductive biases (even partly) can encourage models to explore the underlying rules. For more detailed comparison, Table 2 also reports the accuracy on seven figure configurations of I-RAVEN. We can observe that accuracy on different configurations is not uniform, possibly due to the difficulty of configurations. But compared with other models, our SRAN consistently achieves the best performance on all the configurations, which proves that our model can work stably, even facing diverse conditions and complex rules.
|
| 265 |
+
|
| 266 |
+
We observe that the accuracy of SRAN on I-RAVEN is very close to that on the original RAVEN dataset (60.8% vs. 60.7%). This phenomenon is as expected since our method mainly focuses on rules in the context, and thus is robust to the answer set.
|
| 267 |
+
|
| 268 |
+
# Ablation Study
|
| 269 |
+
|
| 270 |
+
As aforementioned, our method mainly gains from the inductive-biased architecture. To validate this point, we study the effects of different components in our SRAN. Table 4 lists the results.
|
| 271 |
+
|
| 272 |
+
We analyze the stratified strategy to incrementally induce rules, using the performance of different choices of hierarchies. Specifically, we set the rule embedding of certain hierarchy as a zero vector before gate function $\varphi$ . Thus, the gate function regulates the flow of features into the gated embedding fusion module. We observe that combing more hierarchies always leads to better performance on I-RAVEN, which shows all hierarchies contribute to our framework. We make $\mathbb{E}_{\mathrm{cell}}$ orderless by summing all cell-wise embeddings and observe a major drop in performance. These observations prove the effectiveness of the proposed inductive biases of order sensitivity and incremental rule induction.
|
| 273 |
+
|
| 274 |
+
We further discover that the effectiveness of our model can be put down to its attention to different attributes. We conduct experiments only utilizing single-hierarchy rule embeddings from $\mathbb{E}_{\mathrm{cell}}$ , $\mathbb{E}_{\mathrm{ind}}$ , $\mathbb{E}_{\mathrm{eco}}$ , with respect to three attributes (Type, Size, and Color) of I-RAVEN. As shown in Figure 6, $\mathbb{E}_{\mathrm{cell}}$ has strong capacity to infer attributes Type and Size, but struggles to distinguish attribute Color. By contrast, $\mathbb{E}_{\mathrm{ind}}$ and $\mathbb{E}_{\mathrm{eco}}$ have modest ability to infer attributes Type and Size, and are efficient for attribute Color.
|
| 275 |
+
|
| 276 |
+
# The Advantage of Rule Embeddings
|
| 277 |
+
|
| 278 |
+
In the real RPM test, it is not clear whether the rule exists in rows or columns. Therefore, it is important to check whether the proposed model can discover the knowledge without any guidance. Rule induction for columns is normally left out when trained on I-RAVEN, given the prior knowledge that rules are applied only row-wise. In order to test the ability of distinguishing whether the rules are applied along rows or columns, we train a SRAN model on I-RAVEN which the induction for column rules is reintegrated into. As a result, there is only a bit drop in accuracy (from $60.8\%$ to $59.6\%$ ). This indicates that our model can neglect the distraction brought by columns on its own.
|
| 279 |
+
|
| 280 |
+
# Conclusion
|
| 281 |
+
|
| 282 |
+
In this paper, we introduced necessary inductive biases for abstract visual reasoning task, such as order sensitivity and
|
| 283 |
+
|
| 284 |
+
<table><tr><td>Model</td><td>I-RAVEN</td></tr><tr><td>Ecell (orderless)</td><td>23.5</td></tr><tr><td>Ecell</td><td>36.7</td></tr><tr><td>Eind</td><td>48.7</td></tr><tr><td>Eeco</td><td>51.6</td></tr><tr><td>Ecell + Eeco</td><td>52.9</td></tr><tr><td>Eind + Eeco</td><td>57.0</td></tr><tr><td>Ecell + Eind</td><td>57.8</td></tr><tr><td>Ecell + Eind + Eeco</td><td>60.8</td></tr></table>
|
| 285 |
+
|
| 286 |
+
Table 4: SRAN $(\mathbb{E}_{\mathrm{cell}} + \mathbb{E}_{\mathrm{ind}} + \mathbb{E}_{\mathrm{eco}})$ and the results of eliminating different components
|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
Figure 6: Accuracy of single hierarchy with respect to the different attributes
|
| 290 |
+
|
| 291 |
+
incremental rule induction. We further proposed a novel Stratified Rule-Aware Network, which could extract multiple granularity rule embeddings at different level and integrate them through a gated embedding fusion module. A rule similarity metric was further introduced based on the embeddings, so that SRAN can not only be trained using a tuple loss but also infer the best answer according to the similarity score. We also designed an algorithm named Attribute Bisection Tree to fix the defects of the popular dataset RAVEN, and generated a more rigorous dataset based on the algorithm. Extensive experiments conducted on PGM dataset and our improved dataset I-RAVEN proved that, our proposed framework could significantly outperform other state-of-the-art approaches. Moreover, we studied the effects of each component of our proposed model and evaluated the advantage of our induced rule embeddings.
|
| 292 |
+
|
| 293 |
+
# Acknowledgments
|
| 294 |
+
|
| 295 |
+
This work was supported by National Natural Science Foundation of China (62022009, 61872021), Beijing Nova Program of Science and Technology (Z191100001119050), State Key Lab of Software Development Environment (SKLSDE-2020ZX-06), Fundamental Research Funds for Central Universities (YWF-20-BJ-J-646), and the Academic Excellence Foundation of BUAA for PhD Students.
|
| 296 |
+
|
| 297 |
+
# References
|
| 298 |
+
|
| 299 |
+
Barrett, D.; Hill, F.; Santoro, A.; Morcos, A.; and Lillicrap, T. 2018. Measuring abstract reasoning in neural networks. In Proceedings of International Conference on Machine Learning (ICML), 511-520.
|
| 300 |
+
Carpenter, P. A.; Just, M. A.; and Shell, P. 1990. What One Intelligence Test Measures: A Theoretical Account of the Processing in the Raven Progressive Matrices Test. Psychological Review 97(3): 404-431.
|
| 301 |
+
He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770-778.
|
| 302 |
+
Hill, F.; Santoro, A.; Barrett, D.; Morcos, A.; and Lillicrap, T. 2019. Learning to Make Analogies by Contrasting Abstract Relational Structure. In International Conference on Learning Representations (ICLR).
|
| 303 |
+
Hochreiter, S.; and Schmidhuber, J. 1997. Long short-term memory. Neural computation 9(8): 1735-1780.
|
| 304 |
+
Hoshen, D.; and Werman, M. 2017. Iq of neural networks. arXiv preprint arXiv:1710.01692.
|
| 305 |
+
Johnson, J.; Hariharan, B.; van der Maaten, L.; Fei-Fei, L.; Lawrence Zitnick, C.; and Girshick, R. 2017. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2901–2910.
|
| 306 |
+
Kingma, D. P.; and Ba, J. 2014. Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR).
|
| 307 |
+
Krizhevsky, A.; Sutskever, I.; and Hinton, G. E. 2012. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 1097-1105.
|
| 308 |
+
Kunda, M.; McGregor, K.; and Goel, A. K. 2013. A computational model for solving problems from the Raven's Progressive Matrices intelligence test using iconic visual representations. Cognitive Systems Research 22: 47-66.
|
| 309 |
+
Lovett, A.; and Forbus, K. 2017. Modeling visual problem solving as analogical reasoning. *Psychological Review* 124(1): 60-90.
|
| 310 |
+
Lovett, A.; Forbus, K.; and Usher, J. 2010. A structure-mapping model of Raven's Progressive Matrices. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 32.
|
| 311 |
+
Lovett, A.; Tomai, E.; Forbus, K.; and Usher, J. 2010. Solving Geometric Analogy Problems Through Two-Stage Analogical Mapping. Cognitive Science 33(7): 1192-1231.
|
| 312 |
+
Parent, E. 1996. The living systems theory of James Grier Miller. Retrieved November 29: 2007.
|
| 313 |
+
Raven, J. 2000. The Raven's progressive matrices: change and stability over culture and time. Cognitive psychology 41(1): 1-48.
|
| 314 |
+
|
| 315 |
+
Raven, J. C. 1938. Raven's progressive matrices. Western Psychological Services.
|
| 316 |
+
Simonyan, K.; and Zisserman, A. 2015. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR).
|
| 317 |
+
Sohn, K. 2016. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems (NeurIPS), 1857-1865.
|
| 318 |
+
Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; and Salakhutdinov, R. 2014. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15(1): 1929-1958.
|
| 319 |
+
Steenbrugge, X.; Leroux, S.; Verbelen, T.; and Dhoedt, B. 2018. Improving generalization for abstract reasoning tasks using disentangled feature representations. arXiv preprint arXiv:1811.04784.
|
| 320 |
+
Strannegård, C.; Cirillo, S.; and Ström, V. 2013. An anthropomorphic method for progressive matrix problems. Cognitive Systems Research 22: 35-46.
|
| 321 |
+
Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; and Rabinovich, A. 2015. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1-9.
|
| 322 |
+
van Steenkiste, S.; Locatello, F.; Schmidhuber, J.; and Bachem, O. 2019. Are Disentangled Representations Helpful for Abstract Visual Reasoning? In Advances in Neural Information Processing Systems (NeurIPS), 14222-14235.
|
| 323 |
+
Wang, D.; Jamnik, M.; and Lio, P. 2020. Abstract diagrammatic reasoning with multiplex graph networks. In International Conference on Learning Representations (ICLR).
|
| 324 |
+
Zhang, C.; Gao, F.; Jia, B.; Zhu, Y.; and Zhu, S.-C. 2019a. RAVEN: A dataset for relational and analogical visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 5317-5327.
|
| 325 |
+
Zhang, C.; Jia, B.; Gao, F.; Zhu, Y.; Lu, H.; and Zhu, S.-C. 2019b. Learning perceptual inference by contrasting. In Advances in Neural Information Processing Systems (NeurIPS), 1073-1085.
|
| 326 |
+
Zheng, K.; Zha, Z.-J.; and Wei, W. 2019. Abstract Reasoning with Distracting Features. In Advances in Neural Information Processing Systems (NeurIPS), 5834-5845.
|
2002.06xxx/2002.06838/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0223db86c46b6a3627f7756fe8ad798e6818eb71d1fcf910ec76361ce9a7c9cb
|
| 3 |
+
size 328950
|
2002.06xxx/2002.06838/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06910/5e70957f-dbc4-4f22-8541-fa2060314a2e_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edeb2116a0134f2363966b731c1268140fcb650a555898abe03ab059a1258bd7
|
| 3 |
+
size 2120443
|
2002.06xxx/2002.06910/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06910/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc163d59a82d0ad4865de87309cb37684ffb1ac943338ab60d97d0f6100e5308
|
| 3 |
+
size 916001
|
2002.06xxx/2002.06910/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2002.06xxx/2002.06961/6711267c-9526-4dc2-801e-2a2790de8e93_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|