Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +170 -0
- parse/dev/2hMEdc35xZ6/2hMEdc35xZ6.md +452 -0
- parse/dev/2hMEdc35xZ6/2hMEdc35xZ6_content_list.json +0 -0
- parse/dev/2hMEdc35xZ6/2hMEdc35xZ6_middle.json +0 -0
- parse/dev/2hMEdc35xZ6/2hMEdc35xZ6_model.json +0 -0
- parse/dev/3RBY8fKjHeu/3RBY8fKjHeu.md +243 -0
- parse/dev/6at6rB3IZm/6at6rB3IZm.md +302 -0
- parse/dev/6at6rB3IZm/6at6rB3IZm_content_list.json +1438 -0
- parse/dev/6at6rB3IZm/6at6rB3IZm_middle.json +0 -0
- parse/dev/6at6rB3IZm/6at6rB3IZm_model.json +0 -0
- parse/dev/AXDNM76T1nc/AXDNM76T1nc_content_list.json +1793 -0
- parse/dev/AXDNM76T1nc/AXDNM76T1nc_middle.json +0 -0
- parse/dev/AXDNM76T1nc/AXDNM76T1nc_model.json +0 -0
- parse/dev/Fkckkr3ya8/Fkckkr3ya8_model.json +0 -0
- parse/dev/HtoA0oT30jC/HtoA0oT30jC.md +525 -0
- parse/dev/HtoA0oT30jC/HtoA0oT30jC_content_list.json +0 -0
- parse/dev/HtoA0oT30jC/HtoA0oT30jC_middle.json +0 -0
- parse/dev/HtoA0oT30jC/HtoA0oT30jC_model.json +0 -0
- parse/dev/IDwN6xjHnK8/IDwN6xjHnK8_content_list.json +0 -0
- parse/dev/IDwN6xjHnK8/IDwN6xjHnK8_middle.json +0 -0
- parse/dev/NXHXoYMLIG/NXHXoYMLIG.md +310 -0
- parse/dev/NXHXoYMLIG/NXHXoYMLIG_model.json +0 -0
- parse/dev/TQ75Md-FqQp/TQ75Md-FqQp.md +0 -0
- parse/dev/TQ75Md-FqQp/TQ75Md-FqQp_content_list.json +0 -0
- parse/dev/TQ75Md-FqQp/TQ75Md-FqQp_middle.json +0 -0
- parse/dev/TQ75Md-FqQp/TQ75Md-FqQp_model.json +0 -0
- parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z.md +443 -0
- parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z_content_list.json +0 -0
- parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z_middle.json +0 -0
- parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z_model.json +0 -0
- parse/dev/toR64fsPir/toR64fsPir.md +496 -0
- parse/train/1ODSsnoMBav/1ODSsnoMBav_layout.pdf +3 -0
- parse/train/1ODSsnoMBav/1ODSsnoMBav_origin.pdf +3 -0
- parse/train/1ODSsnoMBav/1ODSsnoMBav_span.pdf +3 -0
- parse/train/3FK30d5BZdu/3FK30d5BZdu_layout.pdf +3 -0
- parse/train/3FK30d5BZdu/3FK30d5BZdu_origin.pdf +3 -0
- parse/train/3FK30d5BZdu/3FK30d5BZdu_span.pdf +3 -0
- parse/train/8hGabvaV2GQ/8hGabvaV2GQ_layout.pdf +3 -0
- parse/train/8hGabvaV2GQ/8hGabvaV2GQ_origin.pdf +3 -0
- parse/train/8hGabvaV2GQ/8hGabvaV2GQ_span.pdf +3 -0
- parse/train/9z_dNsC4B5t/9z_dNsC4B5t_layout.pdf +3 -0
- parse/train/9z_dNsC4B5t/9z_dNsC4B5t_origin.pdf +3 -0
- parse/train/9z_dNsC4B5t/9z_dNsC4B5t_span.pdf +3 -0
- parse/train/AHm3dbp7D1D/AHm3dbp7D1D_layout.pdf +3 -0
- parse/train/AHm3dbp7D1D/AHm3dbp7D1D_origin.pdf +3 -0
- parse/train/AHm3dbp7D1D/AHm3dbp7D1D_span.pdf +3 -0
- parse/train/B17JTOe0-/B17JTOe0-_layout.pdf +3 -0
- parse/train/B17JTOe0-/B17JTOe0-_origin.pdf +3 -0
- parse/train/B17JTOe0-/B17JTOe0-_span.pdf +3 -0
- parse/train/B1al7jg0b/B1al7jg0b_layout.pdf +3 -0
.gitattributes
CHANGED
|
@@ -3519,3 +3519,173 @@ parse/train/g-wu9TMPODo/g-wu9TMPODo_layout.pdf filter=lfs diff=lfs merge=lfs -te
|
|
| 3519 |
parse/train/SUyxNGzUsH/SUyxNGzUsH_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3520 |
parse/train/SUyxNGzUsH/SUyxNGzUsH_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3521 |
parse/train/SUyxNGzUsH/SUyxNGzUsH_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3519 |
parse/train/SUyxNGzUsH/SUyxNGzUsH_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3520 |
parse/train/SUyxNGzUsH/SUyxNGzUsH_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3521 |
parse/train/SUyxNGzUsH/SUyxNGzUsH_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3522 |
+
parse/train/ByxGkySKwH/ByxGkySKwH_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3523 |
+
parse/train/ByxGkySKwH/ByxGkySKwH_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3524 |
+
parse/train/8hGabvaV2GQ/8hGabvaV2GQ_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3525 |
+
parse/train/8hGabvaV2GQ/8hGabvaV2GQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3526 |
+
parse/train/8hGabvaV2GQ/8hGabvaV2GQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3527 |
+
parse/train/BVSM0x3EDK6/BVSM0x3EDK6_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3528 |
+
parse/train/BVSM0x3EDK6/BVSM0x3EDK6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3529 |
+
parse/train/BVSM0x3EDK6/BVSM0x3EDK6_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3530 |
+
parse/train/SylJ1D1C-/SylJ1D1C-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3531 |
+
parse/train/SylJ1D1C-/SylJ1D1C-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3532 |
+
parse/train/SylJ1D1C-/SylJ1D1C-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3533 |
+
parse/train/B1al7jg0b/B1al7jg0b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3534 |
+
parse/train/B1al7jg0b/B1al7jg0b_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3535 |
+
parse/train/B1al7jg0b/B1al7jg0b_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3536 |
+
parse/train/rJgJDAVKvB/rJgJDAVKvB_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3537 |
+
parse/train/rJgJDAVKvB/rJgJDAVKvB_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3538 |
+
parse/train/rJgJDAVKvB/rJgJDAVKvB_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3539 |
+
parse/train/Uq_tGs7N54M/Uq_tGs7N54M_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3540 |
+
parse/train/Uq_tGs7N54M/Uq_tGs7N54M_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3541 |
+
parse/train/Uq_tGs7N54M/Uq_tGs7N54M_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3542 |
+
parse/train/BkM27IxR-/BkM27IxR-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3543 |
+
parse/train/BkM27IxR-/BkM27IxR-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3544 |
+
parse/train/BkM27IxR-/BkM27IxR-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3545 |
+
parse/train/KbV-UZRKb3g/KbV-UZRKb3g_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3546 |
+
parse/train/KbV-UZRKb3g/KbV-UZRKb3g_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3547 |
+
parse/train/KbV-UZRKb3g/KbV-UZRKb3g_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3548 |
+
parse/train/HXjt-kRBzvu/HXjt-kRBzvu_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3549 |
+
parse/train/HXjt-kRBzvu/HXjt-kRBzvu_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3550 |
+
parse/train/HXjt-kRBzvu/HXjt-kRBzvu_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3551 |
+
parse/train/_61Qh8tULj_/_61Qh8tULj__origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3552 |
+
parse/train/_61Qh8tULj_/_61Qh8tULj__layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3553 |
+
parse/train/_61Qh8tULj_/_61Qh8tULj__span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3554 |
+
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3555 |
+
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3556 |
+
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3557 |
+
parse/train/HkmaTz-0W/HkmaTz-0W_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3558 |
+
parse/train/HkmaTz-0W/HkmaTz-0W_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3559 |
+
parse/train/HkmaTz-0W/HkmaTz-0W_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3560 |
+
parse/train/S1FQEfZA-/S1FQEfZA-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3561 |
+
parse/train/S1FQEfZA-/S1FQEfZA-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3562 |
+
parse/train/S1FQEfZA-/S1FQEfZA-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3563 |
+
parse/train/1ODSsnoMBav/1ODSsnoMBav_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3564 |
+
parse/train/1ODSsnoMBav/1ODSsnoMBav_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3565 |
+
parse/train/1ODSsnoMBav/1ODSsnoMBav_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3566 |
+
parse/train/S1TgE7WR-/S1TgE7WR-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3567 |
+
parse/train/S1TgE7WR-/S1TgE7WR-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3568 |
+
parse/train/S1TgE7WR-/S1TgE7WR-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3569 |
+
parse/train/BydLzGb0Z/BydLzGb0Z_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3570 |
+
parse/train/BydLzGb0Z/BydLzGb0Z_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3571 |
+
parse/train/BydLzGb0Z/BydLzGb0Z_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3572 |
+
parse/train/SyyGPP0TZ/SyyGPP0TZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3573 |
+
parse/train/SyyGPP0TZ/SyyGPP0TZ_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3574 |
+
parse/train/SyyGPP0TZ/SyyGPP0TZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3575 |
+
parse/train/S1xxx64YwH/S1xxx64YwH_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3576 |
+
parse/train/S1xxx64YwH/S1xxx64YwH_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3577 |
+
parse/train/S1xxx64YwH/S1xxx64YwH_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3578 |
+
parse/train/BtZhsSGNRNi/BtZhsSGNRNi_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3579 |
+
parse/train/BtZhsSGNRNi/BtZhsSGNRNi_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3580 |
+
parse/train/BtZhsSGNRNi/BtZhsSGNRNi_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3581 |
+
parse/train/rkgbYyHtwB/rkgbYyHtwB_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3582 |
+
parse/train/rkgbYyHtwB/rkgbYyHtwB_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3583 |
+
parse/train/rkgbYyHtwB/rkgbYyHtwB_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3584 |
+
parse/train/zOngaSKrElL/zOngaSKrElL_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3585 |
+
parse/train/zOngaSKrElL/zOngaSKrElL_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3586 |
+
parse/train/zOngaSKrElL/zOngaSKrElL_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3587 |
+
parse/train/HJGv1Z-AW/HJGv1Z-AW_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3588 |
+
parse/train/HJGv1Z-AW/HJGv1Z-AW_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3589 |
+
parse/train/HJGv1Z-AW/HJGv1Z-AW_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3590 |
+
parse/train/S1gd7nCcF7/S1gd7nCcF7_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3591 |
+
parse/train/S1gd7nCcF7/S1gd7nCcF7_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3592 |
+
parse/train/S1gd7nCcF7/S1gd7nCcF7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3593 |
+
parse/train/Drynvt7gg4L/Drynvt7gg4L_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3594 |
+
parse/train/Drynvt7gg4L/Drynvt7gg4L_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3595 |
+
parse/train/Drynvt7gg4L/Drynvt7gg4L_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3596 |
+
parse/train/xYGNO86OWDH/xYGNO86OWDH_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3597 |
+
parse/train/xYGNO86OWDH/xYGNO86OWDH_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3598 |
+
parse/train/xYGNO86OWDH/xYGNO86OWDH_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3599 |
+
parse/train/rHCzkRd0UK/rHCzkRd0UK_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3600 |
+
parse/train/rHCzkRd0UK/rHCzkRd0UK_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3601 |
+
parse/train/rHCzkRd0UK/rHCzkRd0UK_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3602 |
+
parse/train/rJxHsjRqFQ/rJxHsjRqFQ_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3603 |
+
parse/train/rJxHsjRqFQ/rJxHsjRqFQ_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3604 |
+
parse/train/rJxHsjRqFQ/rJxHsjRqFQ_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3605 |
+
parse/train/rJgYxn09Fm/rJgYxn09Fm_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3606 |
+
parse/train/rJgYxn09Fm/rJgYxn09Fm_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3607 |
+
parse/train/rJgYxn09Fm/rJgYxn09Fm_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3608 |
+
parse/train/HJgZrsC5t7/HJgZrsC5t7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3609 |
+
parse/train/HJgZrsC5t7/HJgZrsC5t7_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3610 |
+
parse/train/HJgZrsC5t7/HJgZrsC5t7_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3611 |
+
parse/train/SkC_7v5gx/SkC_7v5gx_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3612 |
+
parse/train/SkC_7v5gx/SkC_7v5gx_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3613 |
+
parse/train/SkC_7v5gx/SkC_7v5gx_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3614 |
+
parse/train/SJl3h2EYvS/SJl3h2EYvS_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3615 |
+
parse/train/SJl3h2EYvS/SJl3h2EYvS_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3616 |
+
parse/train/SJl3h2EYvS/SJl3h2EYvS_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3617 |
+
parse/train/B1em9h4KDS/B1em9h4KDS_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3618 |
+
parse/train/B1em9h4KDS/B1em9h4KDS_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3619 |
+
parse/train/B1em9h4KDS/B1em9h4KDS_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3620 |
+
parse/train/uVPZCMVtsSG/uVPZCMVtsSG_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3621 |
+
parse/train/uVPZCMVtsSG/uVPZCMVtsSG_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3622 |
+
parse/train/uVPZCMVtsSG/uVPZCMVtsSG_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3623 |
+
parse/train/S1en0sRqKm/S1en0sRqKm_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3624 |
+
parse/train/S1en0sRqKm/S1en0sRqKm_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3625 |
+
parse/train/S1en0sRqKm/S1en0sRqKm_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3626 |
+
parse/train/ryg7vA4tPB/ryg7vA4tPB_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3627 |
+
parse/train/ryg7vA4tPB/ryg7vA4tPB_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3628 |
+
parse/train/ryg7vA4tPB/ryg7vA4tPB_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3629 |
+
parse/train/QpNz8r_Ri2Y/QpNz8r_Ri2Y_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3630 |
+
parse/train/QpNz8r_Ri2Y/QpNz8r_Ri2Y_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3631 |
+
parse/train/QpNz8r_Ri2Y/QpNz8r_Ri2Y_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3632 |
+
parse/train/r1My6sR9tX/r1My6sR9tX_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3633 |
+
parse/train/r1My6sR9tX/r1My6sR9tX_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3634 |
+
parse/train/r1My6sR9tX/r1My6sR9tX_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3635 |
+
parse/train/B17JTOe0-/B17JTOe0-_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3636 |
+
parse/train/B17JTOe0-/B17JTOe0-_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3637 |
+
parse/train/B17JTOe0-/B17JTOe0-_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3638 |
+
parse/train/Bklfsi0cKm/Bklfsi0cKm_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3639 |
+
parse/train/Bklfsi0cKm/Bklfsi0cKm_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3640 |
+
parse/train/Bklfsi0cKm/Bklfsi0cKm_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3641 |
+
parse/train/AHm3dbp7D1D/AHm3dbp7D1D_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3642 |
+
parse/train/AHm3dbp7D1D/AHm3dbp7D1D_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3643 |
+
parse/train/AHm3dbp7D1D/AHm3dbp7D1D_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3644 |
+
parse/train/CuQoImkKkIj/CuQoImkKkIj_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3645 |
+
parse/train/CuQoImkKkIj/CuQoImkKkIj_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3646 |
+
parse/train/CuQoImkKkIj/CuQoImkKkIj_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3647 |
+
parse/train/lHmhW2zmVN/lHmhW2zmVN_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3648 |
+
parse/train/lHmhW2zmVN/lHmhW2zmVN_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3649 |
+
parse/train/lHmhW2zmVN/lHmhW2zmVN_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3650 |
+
parse/train/3FK30d5BZdu/3FK30d5BZdu_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3651 |
+
parse/train/3FK30d5BZdu/3FK30d5BZdu_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3652 |
+
parse/train/3FK30d5BZdu/3FK30d5BZdu_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3653 |
+
parse/train/x9jS8pX3dkx/x9jS8pX3dkx_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3654 |
+
parse/train/x9jS8pX3dkx/x9jS8pX3dkx_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3655 |
+
parse/train/x9jS8pX3dkx/x9jS8pX3dkx_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3656 |
+
parse/train/S1zk9iRqF7/S1zk9iRqF7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3657 |
+
parse/train/S1zk9iRqF7/S1zk9iRqF7_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3658 |
+
parse/train/S1zk9iRqF7/S1zk9iRqF7_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3659 |
+
parse/train/S1VaB4cex/S1VaB4cex_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3660 |
+
parse/train/S1VaB4cex/S1VaB4cex_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3661 |
+
parse/train/S1VaB4cex/S1VaB4cex_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3662 |
+
parse/train/BkM3ibZRW/BkM3ibZRW_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3663 |
+
parse/train/BkM3ibZRW/BkM3ibZRW_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3664 |
+
parse/train/BkM3ibZRW/BkM3ibZRW_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3665 |
+
parse/train/Owggnutk6lE/Owggnutk6lE_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3666 |
+
parse/train/Owggnutk6lE/Owggnutk6lE_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3667 |
+
parse/train/Owggnutk6lE/Owggnutk6lE_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3668 |
+
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3669 |
+
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3670 |
+
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3671 |
+
parse/train/B1esx6EYvr/B1esx6EYvr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3672 |
+
parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3673 |
+
parse/train/SJ3dBGZ0Z/SJ3dBGZ0Z_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3674 |
+
parse/train/BJxhLAuxg/BJxhLAuxg_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3675 |
+
parse/train/BJxhLAuxg/BJxhLAuxg_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3676 |
+
parse/train/BJxhLAuxg/BJxhLAuxg_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3677 |
+
parse/train/HyTqHL5xg/HyTqHL5xg_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3678 |
+
parse/train/HyTqHL5xg/HyTqHL5xg_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3679 |
+
parse/train/HyTqHL5xg/HyTqHL5xg_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3680 |
+
parse/train/rkeS1RVtPS/rkeS1RVtPS_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3681 |
+
parse/train/rkeS1RVtPS/rkeS1RVtPS_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3682 |
+
parse/train/rkeS1RVtPS/rkeS1RVtPS_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3683 |
+
parse/train/_RnHyIeu5Y5/_RnHyIeu5Y5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3684 |
+
parse/train/_RnHyIeu5Y5/_RnHyIeu5Y5_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3685 |
+
parse/train/_RnHyIeu5Y5/_RnHyIeu5Y5_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3686 |
+
parse/train/SJxbu6VKDr/SJxbu6VKDr_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3687 |
+
parse/train/SJxbu6VKDr/SJxbu6VKDr_span.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3688 |
+
parse/train/SJxbu6VKDr/SJxbu6VKDr_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3689 |
+
parse/train/rkhlb8lCZ/rkhlb8lCZ_layout.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3690 |
+
parse/train/rkhlb8lCZ/rkhlb8lCZ_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3691 |
+
parse/train/rkhlb8lCZ/rkhlb8lCZ_span.pdf filter=lfs diff=lfs merge=lfs -text
|
parse/dev/2hMEdc35xZ6/2hMEdc35xZ6.md
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DEFECT TRANSFER GAN: DIVERSE DEFECT SYNTHESIS FOR DATA AUGMENTATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Large amounts of data are a common requirement for many deep learning approaches. However, data is not always equally available at large scale for all classes. For example, on highly optimized production lines, defective samples are hardly acquired while non-defective samples come almost for free. The defects however often seem to resemble each other, e.g., scratches on different products may only differ in few characteristics. In this work, we propose to make use of the shared characteristics by transferring a stylized defect-specific content from one type of background product to another. Moreover, the stochastic variations of the shared characteristics are captured, which also allows generating novel defects from random noise. These synthetic defective samples enlarge the dataset and increase the diversity of defects on the target product. Experiments demonstrate that our model is able to disentangle the defect-specific content from the background of an image without pixel-level labels. We present convincing results on images from real industrial production lines. Also, we show consistent gains of using our method to enlarge training sets in classification tasks.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Automated Visual Inspection (AVI) is vital for quality control in modern production lines. Despite the fact that AVI has been studied for decades, it remains a challenging task with many open research questions await to be answered. One of the main challenges in data-driven AVI is the acquisition of suitable training data. This is for two reasons: First, collecting a vast amount of labelled data is usually labor-intensive and time-consuming. In many cases, even experts are required to identify where and what to look for. However, the acquired label information is task-specific and cannot be reused or transferred to a new task in most cases. Thus, the tedious labelling process must be repeated for each new product, even if its defect is similar to other products in people’s eyes. Second, in real-world scenarios such as highly optimized production lines, a more severe problem emerges: data imbalance. Only very few defective parts are produced by design. Moreover, the acquired anomaly images from a single product are lacking diversity and may not capture the full defect distribution. Training a robust deep neural network model in such conditions is very challenging.
|
| 12 |
+
|
| 13 |
+
Since collecting sufficient real-world defective samples is impractical, algorithms to synthesize required images became a focus in research. Image synthesis through Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) has shown promising performance in recent years. But it also requires large amounts of balanced data which are not available in most industrial use cases, in particular for irregular defect patterns and large variation. Therefore, GANs tend to overfit to the training examples when trained with little data (Karras et al., 2020a).
|
| 14 |
+
|
| 15 |
+
In this work, we tackle these issues by exploiting cross-domain information: we first define two sets of domains—foreground domains and background domains. The foreground domain describes a set of images that contains a specific foreground content to be grouped into a distinctive category, and each content has a different style. The background domain instead is considered as a group of images that shares similar structural appearance over the whole image. For example, we can set foreground domains as defect types and background domains as product types while the styles of defects indicate their artistic looks such as light or heavy strokes. Building upon StarGAN v2 (Choi et al., 2020), the concept underlying this work is to transfer and generate foreground contents with a variety of styles across different background domains, as illustrated in Figure 1.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The underlying concept of DT-GAN is to transfer and generate foreground contents with a variety of artistic styles (e.g., light / heavy strokes) across different background domains.
|
| 19 |
+
|
| 20 |
+
The contributions of this work are three-fold: First, we introduce Defect Transfer GAN (DT-GAN), a model that learns transferring existing foreground content and generating novel contents onto different backgrounds at the same time. In the real-world scenario, it allows defect inspection networks to learn from a variety of synthetic defective images by composing the foreground defects together with various non-defective images from different products. Second, DT-GAN is able to disentangle the foreground defect-specific content and the defect-irrelevant background in a weakly-supervised manner. Third, extensive experiments show that our method can generate diverse and real-looking defective samples even for products with only 20 real defective images. These defective images generated by DT-GAN boost the performance in defect inspection networks significantly.
|
| 21 |
+
|
| 22 |
+
# 2 RELATED WORK
|
| 23 |
+
|
| 24 |
+
GANs have shown their power in many computer vision tasks such as image synthesis (Luciˇ c et al., ´ 2019), style translation (Johnson et al., 2016), super-resolution (Ledig et al., 2017), image impainting (Pathak et al., 2016) and many other applications. To quantify the performance of GANs, visual quality and the diversity of generated images are considered as two of the most important criteria. Recent models address these requirements either by dedicated loss functions (Mao et al., 2019b; Yang et al., 2019) or architectural design (Brock et al., 2019). StyleGAN v2 (Karras et al., 2020b), the latest state-of-the-art model in image synthesis, introduces stochastic variation in image generating process by adding per-pixel noise after each convolution. However, it is non-trivial to adapt the model to transform given input images due to the design of the generator.
|
| 25 |
+
|
| 26 |
+
In contrast, image-to-image translation methods (Isola et al., 2017) provide a way to recover the connection between inputs and the generated images while encouraging diversity. For example, Zhu et al. (2017b) and Huang et al. (2018) impose consistent mappings in latent space to achieve the goal. Some approaches (Ma et al., 2019; Park et al., 2019) use reference images as guidance to generate diverse outputs. Mokady et al. (2020) further extends the translation task from styles to contents. It learns to identify a specific content in a given input (e.g., a specific pair of glasses) and transfer it to the target image. However, aforementioned methods only consider the translation between two domains and their extension to multiple domains is non-trivial.
|
| 27 |
+
|
| 28 |
+
Surface defect detection is one of the important tasks in real-world industrial manufacturing. It aims at identifying and classifying defects with the help of machine vision. Traditional methods (Ngan et al., 2011) build models upon hand-crafted feature extractors, which are unstable and outperformed by deep learning based models. However, the performance and generalization ability of deep learning approaches are restricted due to limited number of defective samples in real-world scenarios. Data augmentation aims to enrich the training dataset by introducing different kinds of invariance for the model to capture. Several recent works (Niu et al., 2020; Zhang et al., 2021) have proposed to adopt GANs as a data augmentation method to generate realistic defective samples. Among them, Defect-GAN (Zhang et al., 2021) tries to capture the stochastic variation within defects by mimicking the defacement and restoration processes. However, it still learns a deterministic mapping between inputs and outputs while DT-GAN achieves multi-modality by varying styles. Moreover, our method can generate realistic defects with sophisticated patterns copied from real-world defective samples.
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Figure 2: Overview of all modules in DT-GAN.
|
| 32 |
+
|
| 33 |
+
# 3 METHODOLOGY
|
| 34 |
+
|
| 35 |
+
Our primary aim is to perform unpaired image-to-image translation across multiple foreground domains within a single model. In our use case, the foreground domains refer to the defect types, which means we want to achieve translations between different types of defects while the background remains unaffected. We assume that there is always an adequate amount of normal samples (e.g., non-defective) available, while anomaly samples are rare and hard to acquire.
|
| 36 |
+
|
| 37 |
+
# 3.1 PROPOSED FRAMEWORK
|
| 38 |
+
|
| 39 |
+
Our framework builds on StarGAN v2, a multimodal image-to-image translation model. Given an input image $\textbf { x } \in { \mathcal { X } }$ and an arbitrary domain $y \in \mathcal { V }$ , StarGAN v2 generates a domain specific style code in a learned style space and outputs an image that is stylized to fit the domain of $y$ . Its network architecture consists of four modules: a generator, a mapping network, a style encoder and a discriminator. We modify and extend all four modules (see Figure 2) and describe the key differences in details as below.
|
| 40 |
+
|
| 41 |
+
Style-Content Separation. Given a latent code $\mathbf { z }$ and a domain $y$ , the mapping network $M$ (Figure 2(b)) generates a style code $\mathbf { s } = M _ { y } ( \mathbf { z } )$ and a domain specific content $\mathbf { c } = M _ { y } ( \mathbf { z } )$ in different branches. It is worth mentioning that $M _ { y }$ here denotes an output of $M$ corresponding to the domain $y$ . This feature allows our method to separately model the structural appearance (i.e. content) and its artistic looks (i.e. style), which is essential because applying different styles to the same content enriches the diversity of outputs. By randomly sampling $\mathbf { z }$ from a standard normal distribution and $y$ from all available foreground domains, $M$ is able to produce diverse style codes and domain specific contents.
|
| 42 |
+
|
| 43 |
+
The encoder $E$ (Figure 2(c)) extracts the style code $\mathbf { s } = E _ { y } ( \mathbf { x } )$ and the domain specific content $\mathbf { c } = E _ { y } ( \mathbf { x } )$ from an given image $\mathbf { x }$ , which reflect the characteristics of reference images instead of randomly sampled noise.
|
| 44 |
+
|
| 45 |
+
Foreground/Background (FG/BG) Disentanglement. The generator $G$ (Figure 2(a)) translates an input image x into an output image $G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } )$ according to given domain specific style code es and content ec, which are provided either by the mapping network $M$ when generating from random noise or by the style-content encoder $E$ when transferring an existing content from a reference image. To achieve a FG/BG disentanglement, we split the channels of the three-dimensional feature map (i.e., $H \times W \times C$ ) at the bottle neck of $G$ into two parts. The model is then forced to encode the background into the first channels and the domain specific content cˆ into the latter channels by classification losses as discussed in Section 3.2. cˆ can then be replaced with content ec from the target domain. The adaptive instance normalization (AdaIN) (Huang & Belongie, 2017) is then used to inject es into ec during the decoding process while the background $B G _ { G } ( \mathbf { x } )$ is decoded separately. StarGAN v2 learns $\mathbf { F G }$ and BG together which leads to a conditional relationship between both. Our disentanglement and separate encoding break this conditioning and therefore enable our method to freely combine FG and BG as well as learn the full variation of FG content. Finally, $B G _ { G } ( \mathbf { x } )$ and ec are concatenated together and then fused before output.
|
| 46 |
+
|
| 47 |
+
Multi-task discriminator with auxiliary classifiers. The discriminator $D$ (Figure 2(d)) is a multitask discriminator with two auxiliary classifiers: a foreground domain classifier and a background domain classifier. This feature strengthens the disentanglement of FG and BG by first ensuring the input image $\mathbf { x }$ contains a domain specific content that can be recognized by the foreground domain classifier independent of the background. Later, each branch $D _ { y }$ in the multi-task discriminator $D$ is trained to determine if an image $\mathbf { x }$ is a real image of its foreground domain or a fake image $G ( \mathbf { x } , \mathbf { s } , \mathbf { c } )$ generated by $G$ . Apart from that, one extra branch $B G _ { \mathrm { c l s } }$ is attached to decide whether the background information of the input images is well preserved.
|
| 48 |
+
|
| 49 |
+
Content Transfer. Mokady et al. (2020) introduced a concept that a model should be able to identity the difference between two domains when one of the domains contains a feature that the other does not have. We refer to this concept as ‘anchor’ and extend to multiple domains $( > 2 )$ by the FG/BG disentanglement, the multi-task discriminator and the foreground content classifier in $D$ . We treat domain Normal as the anchor domain i.e. set the domain specific content to zero, because a normal image has no domain specific content in our definition. As a result, we can now transfer contents between all combination of FG and BG domains (see Figure 10).
|
| 50 |
+
|
| 51 |
+
Compared to StarGAN v2, our method not only models style codes and contents separately but also disentangles the foreground and background of an image in a weakly-supervised manner. These features allow explicit control over output images by combining desired style codes and contents from one of the subnetworks with the input images. Therefore, it leads to higher variance regarding the location, structural pattern and artistic style of defects in the synthetic images of DT-GAN.
|
| 52 |
+
|
| 53 |
+
# 3.2 TRAINING OBJECTIVES
|
| 54 |
+
|
| 55 |
+
Given an image $\mathbf { x } \in \mathcal { X }$ , its original foreground domain $y \in \mathcal { V }$ and its background domain $p \in \mathcal { P }$ , the following objectives are used to train our framework.
|
| 56 |
+
|
| 57 |
+
Adversarial loss. In the training phase, a noise vector $\mathbf { z } \in { \mathcal { Z } }$ and a target foreground domain $\widetilde y \in \mathcal { V }$ are sampled randomly. Both of them are fed to $M$ , producing a target style code $\widetilde { \mathbf { s } }$ and a target content ec as follows: $\widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } = M _ { \widetilde { y } } ( \mathbf { z } )$ . Goal of the training is to ensure that $\widetilde { \mathbf { s } }$ and ec are sampled from the distribution over styles and contents of the target domain $\widetilde { y }$ . The generator $G$ then combines an image $\mathbf { x }$ with $\widetilde { \mathbf { s } }$ and $\widetilde { \mathbf c }$ and learns to generate an output image $G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } )$ that is indistinguishable from real images in the target domain $\widetilde { y }$ . We encourage this behavior by using an adversarial loss same as in Choi et al. (2020)
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\mathcal { L } _ { \mathrm { a d v } } = \mathbb { E } _ { { \mathbf { x } } , y } \big [ \log D _ { y } ( { \mathbf { x } } ) \big ] + \mathbb { E } _ { { \mathbf { x } } , \widetilde { y } , { \mathbf { z } } } [ \log \left( 1 - D _ { \widetilde { y } } ( G ( { \mathbf { x } } , \widetilde { { \mathbf { s } } } , \widetilde { { \mathbf { c } } } ) ) \right) ] ,
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $D _ { y }$ and $D _ { \widetilde { y } }$ are the output branches of $D$ that correspond to the source domain $y$ and the target domain $\widetilde { y }$ , respectively.
|
| 64 |
+
|
| 65 |
+
Style-content reconstruction loss. Similar to StarGAN v2, to enforce the generator $G$ takes the style code $\widetilde { \mathbf { s } }$ and the domain specific content ec into consideration during the generation process, we employ a style-content reconstruction loss
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { s t y . c o n } } = \mathbb { E } _ { \mathbf { x } , \widetilde { y } , \mathbf { z } } \big [ \| \widetilde { \mathbf { s } } - S _ { E } ( G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } ) ) \| _ { 1 } \big ] + \mathbb { E } _ { \mathbf { x } , \widetilde { y } , \mathbf { z } } \big [ \| \widetilde { \mathbf { c } } - C _ { E } ( G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } ) ) \| _ { 1 } \big ] . } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
This objective urges the style-content encoder $E$ to recover $\widetilde { \mathbf { s } }$ and c from $G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } )$ . Here, the stylecontent encoder $E$ learns a mapping from an image to its style and content domains, which allows $G$ to synthesize an image with given s and c from reference images at test time.
|
| 72 |
+
|
| 73 |
+
Diversity loss. In order to further boost the diversity of output images from $G$ , we introduce a loss that encourages diversity as follows: for a pair of random latent codes $\mathbf { z } _ { 1 }$ and $\mathbf { z } _ { 2 }$ we compute $\widetilde { \mathbf { s } } _ { i } , \widetilde { \mathbf { c } } _ { i } = M _ { \widetilde { y } } ( \mathbf { z } _ { i } )$ for $i \in \{ 1 , 2 \}$ and enforce a different outcome of the generator $G$ for differently mixed style and content input pairs:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\begin{array} { r l } & { \mathcal { L } _ { \mathrm { d s } } = \mathbb { E } _ { \mathbf { x } , \widetilde { y } , \mathbf { z } _ { 1 } , \mathbf { z } _ { 2 } } \left[ \| G ( \mathbf { x } , \widetilde { \mathbf { s } } _ { 1 } , \widetilde { \mathbf { c } } _ { 2 } ) - G ( \mathbf { x } , \widetilde { \mathbf { s } } _ { 2 } , \widetilde { \mathbf { c } } _ { 1 } ) \| _ { 1 } \right] } \\ & { \quad \quad + \mathbb { E } _ { \mathbf { x } , \widetilde { y } , \mathbf { z } _ { 1 } , \mathbf { z } _ { 2 } } \left[ \| G ( \mathbf { x } , \widetilde { \mathbf { s } } _ { 1 } , \widetilde { \mathbf { c } } _ { 1 } ) - G ( \mathbf { x } , \widetilde { \mathbf { s } } _ { 2 } , \widetilde { \mathbf { c } } _ { 2 } ) \| _ { 1 } \right] } \\ & { \quad \quad + \sum _ { m , n , o } \left[ \mathbb { E } _ { \mathbf { x } , \widetilde { y } , \mathbf { z } _ { 1 } , \mathbf { z } _ { 2 } } \left[ \| G ( \mathbf { x } , \widetilde { \mathbf { s } } _ { m } , \widetilde { \mathbf { c } } _ { n } ) - G ( \mathbf { x } , \widetilde { \mathbf { s } } _ { o } , \widetilde { \mathbf { c } } _ { o } ) \| _ { 1 } \right] \right] , } \end{array}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where $m , n \in \{ 1 , 2 | m \neq n \}$ and $o \in \{ 1 , 2 \}$ . Driven by this term, the generator $G$ is forced to discover meaningful style features and contents that eventually lead to diversity in generated images.
|
| 80 |
+
|
| 81 |
+
We ignore the denominator ${ \left\| { \bf z } _ { 1 } - { \bf z } _ { 2 } \right\| } _ { 1 }$ of the original diversity loss (Mao et al., 2019a) for stable training as in StarGAN v2.
|
| 82 |
+
|
| 83 |
+
Cycle consistency loss. To ensure that the generated image $G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } )$ preserves the domaininvariant properties of its input image $\mathbf { x }$ , we impose the cycle consistency loss (Zhu et al., 2017a)
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\mathcal { L } _ { \mathrm { c y c } } = \mathbb { E } _ { { \mathbf { x } } , y , \widetilde { y } , { \mathbf { z } } } \big [ | | { \mathbf { x } } - G ( G ( { \mathbf { x } } , \widetilde { { \mathbf { s } } } , \widetilde { { \mathbf { c } } } ) , \widehat { { \mathbf { s } } } , \widehat { { \mathbf { c } } } ) | | _ { 1 } \big ] ,
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\hat { \bf s } , \hat { \bf c } = E _ { y } ( { \bf x } )$ is the extracted style code and domain specific content of the input image $\mathbf { x }$ , and $y$ is the original domain of $\mathbf { x }$ . By learning to reconstruct the input image $\mathbf { x }$ with given style code ˆs and content cˆ, the generator $G$ is then further encouraged to disentangle the background, the domain specific content and the style code.
|
| 90 |
+
|
| 91 |
+
Content consistency loss. Besides the cycle consistency loss, we apply another constraint to enforce that the detached domain specific content from $G$ is consistent with the one retrieved from $E$ according to
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\begin{array} { r } { \mathcal { L } _ { \mathrm { c o n . c y c } } = \mathbb { E } _ { \mathbf { x } , y , \widetilde { y } , \mathbf { z } } \left[ \left\| F G _ { G } ( \mathbf { x } ) - \widehat { \mathbf { c } } \right\| _ { 1 } \right] + \mathbb { E } _ { \mathbf { x } , y , \widetilde { y } , \mathbf { z } } \left[ \left\| F G _ { G } ( G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } ) ) - \widetilde { \mathbf { c } } \right\| _ { 1 } \right] , } \end{array}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
where $\hat { \mathbf { c } } = E _ { y } ( \mathbf { x } ) , \widetilde { \mathbf { c } } = E _ { \widetilde { y } } ( \mathbf { x } ) , F G _ { G } ( \mathbf { x } )$ and $F G _ { G } ( G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } ) )$ are the pop-out domain specific content from input image $\mathbf { x }$ and generated image $G ( \mathbf { x } , \widetilde { \mathbf { s } } , \widetilde { \mathbf { c } } )$ , respectively.
|
| 98 |
+
|
| 99 |
+
Classification losses. We employ two classification losses: the first one is the foreground content classification loss
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\mathcal { L } _ { \mathrm { F G . c l s } } = \mathbb { E } _ { \mathbf { x } _ { \mathrm { r e a l } } , y } \Big [ - \log D _ { \mathrm { F G . c l s } } \big ( y | \mathbf { x } _ { \mathrm { r e a l } } \big ) \Big ] + \mathbb { E } _ { \mathbf { x } _ { \mathrm { f a k e } } , \widetilde { y } } \Big [ - \log D _ { \mathrm { F G . c l s } } \big ( \widetilde { y } | \mathbf { x } _ { \mathrm { f a k e } } \big ) \Big ] \ ,
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
which aims to ensure that the domain specific content is properly encoded and carries enough information from the target domain. The second one is the background classification loss
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\mathcal { L } _ { \mathrm { B G } . \mathrm { c l s } } = \mathbb { E } _ { \mathbf { x } _ { \mathrm { r e a l } } , p } \big [ - \log D _ { \mathrm { B G } . \mathrm { c l s } } ( p | \mathbf { x } _ { \mathrm { r e a l } } ) \big ] + \mathbb { E } _ { \mathbf { x } _ { \mathrm { f a k e } } , p } \big [ - \log D _ { \mathrm { B G } . \mathrm { c l s } } ( p | \mathbf { x } _ { \mathrm { f a k e } } ) \big ] \ ,
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where $p$ is the corresponding background type of $\mathbf { x } _ { \mathrm { r e a l } }$ and $\mathbf { x } _ { \mathrm { f a k e } }$ . With the help of this objective, the generator $G$ learns to preserve the domain-invariant characteristics of its input image $\mathbf { x }$ while dissociating the foreground domain specific part.
|
| 112 |
+
|
| 113 |
+
Full objective. Our full objective functions can be summarized as
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\begin{array} { r l } { \underset { G , F , E } { \operatorname* { m i n } } \underset { D } { \operatorname* { m a x } } } & { \mathcal { L } _ { \mathrm { a d v } } + \lambda _ { \mathrm { s t y } . \mathrm { c o n } } \mathcal { L } _ { \mathrm { s t y } . \mathrm { c o n } } - \lambda _ { \mathrm { d s } } \mathcal { L } _ { \mathrm { d s } } + \lambda _ { \mathrm { c y c } } \mathcal { L } _ { \mathrm { c y c } } + } \\ & { \lambda _ { \mathrm { c o n . c y c } } \mathcal { L } _ { \mathrm { c o n . c y c } } + \lambda _ { \mathrm { F G . c l s } } \mathcal { L } _ { \mathrm { F G . c l s } } + \lambda _ { \mathrm { B G . c l s } } \mathcal { L } _ { \mathrm { B G . c l s } } \ , } \end{array}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $\lambda _ { \mathrm { s t y } }$ , $\lambda _ { \mathrm { d s } }$ , $\lambda _ { \mathrm { c y c } }$ , $\lambda _ { \mathrm { c o n \mathrm { { - } c y c } } }$ , $\lambda _ { \mathrm { F G \mathrm { - } c l s } }$ and $\lambda _ { \mathrm { B G \mathrm { { - } c l s } } }$ are the hyperparameters for each term.
|
| 120 |
+
|
| 121 |
+
# 4 EXPERIMENTS
|
| 122 |
+
|
| 123 |
+
We evaluated the images generated by DT-GAN through a series of experiments both quantitatively and qualitatively. Finally, we demonstrate the benefits of our generated images when being used as data augmentation for a defect classification task on limited data.
|
| 124 |
+
|
| 125 |
+
Dataset. All experiments were performed on a real industrial dataset: a Surface Defect Inspection (SDI) dataset that contains three different kinds of products from production lines and samples from each product are classified into three mutually exclusive classes: Normal, Scratch and Spot. All of the images are grayscale. Detailed statistics of the dataset are summarized in Appendix A. Note that only the training set was used in GAN training, the test set was left untouched for final evaluation in classifier training. For a fair comparison, all images were resized to $1 2 8 \times 1 2 8$ resolution for both GAN training and classifier training, which was also the highest resolution used in the baselines for image generation. For comparison, we also conducted experiments on the widely used MVTec Anomaly Detection dataset (Bergmann et al., 2019) in Appendix E.4.
|
| 126 |
+
|
| 127 |
+
# 4.1 DEFECT GENERATION
|
| 128 |
+
|
| 129 |
+
Baselines. As discussed in Section 3, DT-GAN can either use the mapping network to randomly generate styles and defects, or it can use the style-content encoder to extract both from reference images. We refer to these cases as ‘latent-guided’ and ‘reference-guided’, respectively.
|
| 130 |
+
|
| 131 |
+
Since the two ways of guidance are fundamentally different, we evaluated them against two sets of baselines: Our reference-guided image generation was compared to Mokady et al. (2020) and StarGAN v2, because both of them can perform a reference-guided translation. Note that Mokady et al. (2020) can only translate between two domains while StarGAN v2 and DT-GAN can achieve multi-domain translation within a single model. Images generated through the latent-guided part of DT-GAN were compared to state-of-the-art GANs in image synthesis: BigGAN (Brock et al., 2019) and StyleGAN v2 (Karras et al., 2020b). We set BigGAN to condition on defect types during training while StyleGAN v2 was trained unconditionally. All baselines were trained from scratch with the public implementations provided by the authors1.
|
| 132 |
+
|
| 133 |
+
# 4.1.1 QUANTITATIVE EVALUATION
|
| 134 |
+
|
| 135 |
+
Metrics. We employed the commonly used frechet inception distance (FID) (Heusel et al., 2017) to evaluate both the visual quality and the diversity of the generated images. We also report the kernel inception distance (KID) (Binkowski et al., 2018) which is a more stable metric for small sets of images like our SDI dataset. Lower FID and KID scores indicate better performance.
|
| 136 |
+
|
| 137 |
+
Both scores are shown in Table 1. We observe that methods like BigGAN and StyleGAN v2, which perform defect synthesis purely based on latent codes, generally provide unsatisfactory results on the SDI dataset, presumably due to the small number of defective samples that were available. These methods then struggle to capture the complex and irregular patterns of defects. We also experimented with augmentation methods for GAN training (Karras et al., 2020a; Zhao et al., 2020) but did not find a consistent improvement (see Appendix E.2). We thus only report the best scores.
|
| 138 |
+
|
| 139 |
+
Reference-guided synthesis methods like Mokady et al. (2020) and StarGAN v2 seem to generate more realistic images. The scores of StarGAN v2 on a single product are omitted here because generating images with specified background is not possible due to its network design—the product type changes in output images, which we refer to as ‘identity-shift’. As seen in Table 1, our method achieves better scores in all cases. We believe this is due to the fact that our method allows free combination of foreground defects and backgrounds, making the generated images more diverse even with a small number of training samples.
|
| 140 |
+
|
| 141 |
+
Table 1: Quantitative comparison of DT-GAN with baseline image synthesis methods using FID and KID. Note that the reported values are not comparable between columns, because they were calculated on different training sets.
|
| 142 |
+
|
| 143 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">FID↓</td><td colspan="4">KID↓</td></tr><tr><td>A</td><td>B</td><td>C</td><td>All</td><td>A</td><td>B</td><td>C</td><td>All</td></tr><tr><td>Mokady (2020)</td><td>68.69</td><td>66.90</td><td>36.21</td><td>58.63</td><td>0.050</td><td>0.036</td><td>0.030</td><td>0.036</td></tr><tr><td>StarGAN v2</td><td>1</td><td></td><td>1</td><td>37.70</td><td>-</td><td>1</td><td>1</td><td>0.013</td></tr><tr><td>StyleGAN v2</td><td>90.10</td><td>52.95</td><td>138.09</td><td>35.34</td><td>0.072</td><td>0.027</td><td>0.186</td><td>0.013</td></tr><tr><td>BigGAN + DiffAug</td><td>218.74</td><td>134.41</td><td>270.89</td><td>155.88</td><td>0.220</td><td>0.121</td><td>0.378</td><td>0.099</td></tr><tr><td>Ours</td><td>58.43</td><td>36.44</td><td>22.68</td><td>29.73</td><td>0.025</td><td>0.013</td><td>0.012</td><td>0.009</td></tr></table>
|
| 144 |
+
|
| 145 |
+
# 4.1.2 QUALITATIVE EVALUATION
|
| 146 |
+
|
| 147 |
+
We present a qualitative comparison with the baseline methods in latent-guided image synthesis in Figure 3. To make a fair comparison, we trained StyleGAN v2 and BigGAN on each product separately to have control on background products. Note however, that images from DT-GAN were always obtained from a single model. We can see that some generated samples from StyleGAN v2 do not contain clear defects, and samples from BigGAN present abnormal grid patterns. Both methods do not take images as inputs but generate synthetic images according to a given latent code which contains information for both FG and BG. This conditioning leads to limited diversity in the output images. On the other hand, StarGAN v2 performs translation based on input images but suffers from the same entanglement issue. Thus, it fails to preserve the background, which results in artifacts or identity-shift in its outputs. Our network architecture that disentangles foreground and background seems to mitigate these issues. See Appendix E.4 for more images.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 3: Qualitative comparison of latent-guided image synthesis results. In each subfigure: on the left, defective images are fully generated from random noise. On the right, random defects are synthesized onto given normal samples. Note that BigGAN\* denotes it was trained with DiffAug.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 4: Qualitative comparison of reference-guided image synthesis results on the SDI dataset. Each method transforms the given source images into target foreground domains (e.g., Scratches) with the styles and contents extracted from the reference images.
|
| 154 |
+
|
| 155 |
+
Also for reference-guided image synthesis, where we used different background and foreground reference images as illustrated in Figure 4, only our method produces high quality images with preserved background from the source and transferred foreground defect from the reference.
|
| 156 |
+
|
| 157 |
+
Ablation study. We visually demonstrate the effect of each component we added to DT-GAN compared to StarGAN v2 in Figure 5, using the examples of both latent- and reference-guided image synthesis from Normal to Scratches. The quantitative evaluation can be found in Appendix E.3.
|
| 158 |
+
|
| 159 |
+
Column (a) corresponds to StarGAN v2 and highlights the drawback of entangled FG/BG again (i.e. the identity-shift in the background). We first tackle this problem by modeling the style code and foreground content explicitly and feeding them separately to the generator. This leads to a better preservation of the background structure in column (b) for the reference-guided subnetwork, but not for the latent-guided synthesis on the bottom of Figure 5. Thus, we add a foreground classifier in the discriminator in (c) to ensure the output image contains the desired foreground content (scratch). Similarly, we introduce a background classifier to the discriminator in column (d). Note that the additional product type labels can be acquired automatically from production lines.
|
| 160 |
+
|
| 161 |
+
For column (e), we add the separate decoders for foreground and background in the generator which are fused only in the end. This enhances the preservation of background characteristics like lighting even more. Imposing an additional penalty for foreground content extracted from a normal sample as described in Section 3.1 leads to another visual improvement of the foreground edges for reference-guided synthesis in column (f). Finally, inspired by StyleGAN, we incorporate adaptive noise injection to the mapping network, which significantly boosts the performance of our latentguided image synthesis as shown in column (g).
|
| 162 |
+
|
| 163 |
+
Styling. We visually demonstrate the effect of style codes in our method by randomly sampling those and combining them with fixed reference background and foreground images in Figure 6, where a variety of artistic styles can be seen on the output columns.
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
Figure 5: Ablation study. (a) The baseline StarGAN v2. (b) $^ +$ Style-Content branches. (c) $^ +$ Foreground classifier. (d) $^ +$ Background classifier. (e) $^ +$ Separately decoding foreground and background in $G$ . (f) $^ +$ Anchor foreground domain (e.g. Normal). (g) $^ +$ Noise injection in Mapping Network.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 6: Visual effect of randomly sampled style codes on fixed pairs of reference background (Source) and foreground (Content) images.
|
| 170 |
+
|
| 171 |
+
# 4.2 DT-GAN FOR DATA AUGMENTATION
|
| 172 |
+
|
| 173 |
+
We also evaluated our method as a data augmentation method for defect classification on the SDI dataset. We defined one task ‘general’, where the classifier was trained on images from all products at once, while task ‘single product’ only used the subset of images for one product.
|
| 174 |
+
|
| 175 |
+
Besides, we incrementally varied the amount of real Normal data available for classifier training: 4500, 6600, 12000 and 18600. In the case of defective images, all of them were always used due to the small amount unless otherwise specified. As backbone we used a ResNet-50 (He et al., 2016a) with ImageNet pretrained weights. For experiments with synthetic data, we attached an auxiliary domain classifier to the network through a Gradient Reversal Layer (Ganin & Lempitsky, 2015).
|
| 176 |
+
|
| 177 |
+
Table 2: Quantitative comparison of the baseline methods on defect classification task at the scale of 12000 images/class. The reported values are the achieved error rates $( \% )$ over five runs.
|
| 178 |
+
|
| 179 |
+
<table><tr><td>Method</td><td>ResNet-50</td><td>EfficientNet-b4</td></tr><tr><td>No-Aug</td><td>21.64±1.24</td><td>12.06±0.64</td></tr><tr><td>Trad-Aug</td><td>12.58±0.81</td><td>9.33±0.73</td></tr><tr><td>Mokady (2020)</td><td>11.11±1.19</td><td>13.26±1.13</td></tr><tr><td>StarGAN v2</td><td>13.07±1.30</td><td>12.25±0.79</td></tr><tr><td>StyleGAN v2</td><td>11.55±1.79</td><td>11.68±0.76</td></tr><tr><td>BigGAN+DiffAug</td><td>11.45±0.61</td><td>12.06±0.50</td></tr><tr><td>Ours</td><td>9.9±0.69</td><td>9.14±1.02</td></tr></table>
|
| 180 |
+
|
| 181 |
+
Since the SDI dataset is highly imbalanced, we oversampled the minority classes (Ling et al., 1998) unless the data was balanced through synthetic images. Additionally, we always applied traditional data augmentation techniques like random horizontal flips, jittering and lighting (Shorten & Khoshgoftaar, 2019) except where noted. All following results were evaluated by the achieved error rates over five runs with different random seeds.
|
| 182 |
+
|
| 183 |
+
Effectiveness of synthetic data. We first compare classifier performance for no augmentation (NoAug), traditional data augmentation (Trad-Aug), and a combination of traditional augmentation with synthetic images for GAN methods including DT-GAN. We also introduce a stronger backbone, EfficientNet-b4 (Tan & Le, 2019), to demonstrate that our results are not confined to a specific network. Table 2 shows that our method is the only one that improves performance for both backbones, presumably due to the combination of high visual image quality and diversity in our samples.
|
| 184 |
+
|
| 185 |
+
Table 3: Experimental results on using different amount of synthetic images generated by DT-GAN to train classifiers. The left-most column stands for number of samples per class to be classified. The training set of the baselines is balanced by oversampling while ours is by synthetic images.
|
| 186 |
+
|
| 187 |
+
<table><tr><td rowspan="2">Dataset Size</td><td colspan="2">20A</td><td colspan="2">All</td></tr><tr><td>Trad-Aug</td><td>Ours</td><td>Trad-Aug</td><td>Ours</td></tr><tr><td>4500</td><td>15.55±0.63</td><td>14.28±1.25</td><td>12.75±0.61</td><td>11.04±0.76</td></tr><tr><td>6600</td><td>16.69±0.76</td><td>14.41±3.12</td><td>13.07±1.57</td><td>10.60±0.48</td></tr><tr><td>12000</td><td>16.95±1.02</td><td>14.22±1.53</td><td>12.05±0.81</td><td>9.90±0.69</td></tr><tr><td>18600</td><td>16.12±2.19</td><td>15.36±0.86</td><td>12.37±0.32</td><td>10.21±0.96</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Impact of dataset size. Motivated by the limited availability of data in real-world production scenarios, we therefore evaluated DT-GAN for data augmentation on a subset of the full SDI dataset (All), which only contains 20 defective samples in product A for each defect type (20A). In this case, DT-GAN was also trained on the reduced subset. As shown in Table 3, there is a clear improvement when synthetic images from DT-GAN are used as data augmentation, even for the extremely limited data subset. Further results on single product classifiers can be found in Appendix E.1.
|
| 190 |
+
|
| 191 |
+
Table 4: Cross-domain effect on single product classifiers trained with reference-guided synthetic images at the scale of 12000 images/class.
|
| 192 |
+
|
| 193 |
+
<table><tr><td></td><td>Trad-Aug</td><td>vA</td><td>VB</td><td>vC</td><td>vABC</td></tr><tr><td>A</td><td>13.81±2.36</td><td>11.81±2.65</td><td>12.72±2.87</td><td>11.99±1.63</td><td>11.09±3.49</td></tr><tr><td>B</td><td>6.80±1.64</td><td>6.40±1.34</td><td>6.60±1.52</td><td>6.59±1.34</td><td>5.60±1.34</td></tr><tr><td>C</td><td>16.57±3.20</td><td>13.14±2.81</td><td>11.23±0.80</td><td>14.85±1.73</td><td>11.42±0.96</td></tr></table>
|
| 194 |
+
|
| 195 |
+
Cross-domain effect. We hypothesized that limited data can be counteracted by transferring defects across multiple background products, if there are at least some defects that occur on multiple products (See Appendix E.1 for further discussion). We tested this approach by comparing the performance of classifiers trained on synthetic images with defects from a specific source (vA, vB, vC) to classifiers trained on images with defects from all products (vABC). As we can see in Table 4, the best performances are reached by the models that take over defects from other products. We interpret this as support for our hypothesis and its practical usefulness.
|
| 196 |
+
|
| 197 |
+
# 5 CONCLUSION
|
| 198 |
+
|
| 199 |
+
We propose a novel method, DT-GAN, which allows diverse defect synthesis both by generating from randomly sampled noise and by following the guidance of given reference images. Due to explicit style-content separation and FG/BG disentanglement, DT-GAN achieves higher image fidelity, better variance in defects and full control over background and foreground while being sample-efficient. We demonstrated the feasibility and benefits of DT-GAN on a real industrial defect classification task and the results show our method provides consistent gains even with limited data and boosts the performance of classifiers compared to state-of-the-art image synthesis methods. For future investigation, we aim to represent defects more explicitly (e.g., localization) to improve the explainability of the model and also enhance the model transferability to unseen products.
|
| 200 |
+
|
| 201 |
+
# REPRODUCIBILITY STATEMENT
|
| 202 |
+
|
| 203 |
+
We aim for full reproducibility by publishing the source code and dataset with the final version of the paper. Besides, we provide descriptions of the training details in Appendix B, the evaluation setup in Appendix C and the network architecture in Appendix D.
|
| 204 |
+
|
| 205 |
+
REFERENCES
|
| 206 |
+
Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad — a comprehensive real-world dataset for unsupervised anomaly detection. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9584–9592, 2019. doi: 10.1109/CVPR.2019.00982.
|
| 207 |
+
Mikolaj Binkowski, Danica J. Sutherland, Michael Arbel, and A. Gretton. Demystifying MMD GANs. ArXiv, abs/1801.01401, 2018.
|
| 208 |
+
Andrew Brock, Jeff Donahue, and K. Simonyan. Large scale gan training for high fidelity natural image synthesis. ArXiv, abs/1809.11096, 2019.
|
| 209 |
+
Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster rcnn for object detection in the wild. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3339–3348, 2018.
|
| 210 |
+
Yunjey Choi, Youngjung Uh, Jaejun Yoo, and Jung-Woo Ha. Stargan v2: Diverse image synthesis for multiple domains. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
|
| 211 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
|
| 212 |
+
Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1180–1189, Lille, France, 07–09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/ ganin15.html.
|
| 213 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. In NeurIPS, 2014.
|
| 214 |
+
Kaiming He, X. Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016a.
|
| 215 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks, 2016b. URL http://arxiv.org/abs/1603.05027. cite arxiv:1603.05027Comment: ECCV 2016 camera-ready.
|
| 216 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and S. Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017.
|
| 217 |
+
Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 218 |
+
Xun Huang, Ming-Yu Liu, Serge J. Belongie, and J. Kautz. Multimodal unsupervised image-toimage translation. ArXiv, abs/1804.04732, 2018.
|
| 219 |
+
Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5967–5976, 2017.
|
| 220 |
+
Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution, 2016.
|
| 221 |
+
|
| 222 |
+
Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data, 2020a.
|
| 223 |
+
|
| 224 |
+
Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020b.
|
| 225 |
+
|
| 226 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical Report 0, University of Toronto, Toronto, Ontario, 2009.
|
| 227 |
+
|
| 228 |
+
Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro ´ Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photo-realistic single image super-resolution using a generative adversarial network. In CVPR, 2017.
|
| 229 |
+
|
| 230 |
+
Charles Ling, , Charles X. Ling, and Chenghui Li. Data mining for direct marketing: Problems and solutions. In In Proceedings of the Fourth International Conference on Knowledge Discovery and Data Mining (KDD-98, pp. 73–79. AAAI Press, 1998.
|
| 231 |
+
|
| 232 |
+
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015.
|
| 233 |
+
|
| 234 |
+
Mario Luciˇ c, Michael Tschannen, Marvin Ritter, Xiaohua Zhai, Olivier Bachem, and Sylvain Gelly. ´ High-fidelity image generation with fewer labels. 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. 4183–4192. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/lucic19a.html.
|
| 235 |
+
|
| 236 |
+
Liqian Ma, Xu Jia, Stamatios Georgoulis, Tinne Tuytelaars, and Luc Van Gool. Exemplar guided unsupervised image-to-image translation with semantic consistency. In ICLR, 2019.
|
| 237 |
+
|
| 238 |
+
Qi Mao, Hsin-Ying Lee, Hung-Yu Tseng, Siwei Ma, and Ming-Hsuan Yang. Mode seeking generative adversarial networks for diverse image synthesis. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1429–1437, 2019a.
|
| 239 |
+
|
| 240 |
+
Qi Mao, Hsin-Ying Lee, Hung-Yu Tseng, Siwei Ma, and Ming-Hsuan Yang. Mode seeking generative adversarial networks for diverse image synthesis. In CVPR, 2019b.
|
| 241 |
+
|
| 242 |
+
Ron Mokady, Sagie Benaim, Lior Wolf, and Amit Bermano. Masked based unsupervised content transfer. In International Conference on Learning Representations, 2020. URL https:// openreview.net/forum?id $=$ BJe-91BtvH.
|
| 243 |
+
|
| 244 |
+
Henry Y. T. Ngan, Grantham K. H. Pang, and Nelson H. C. Yung. Review article: Automated fabric defect detection-a review. Image Vision Comput., 29(7):442–458, June 2011. ISSN 0262- 8856. doi: 10.1016/j.imavis.2011.02.002. URL https://doi.org/10.1016/j.imavis. 2011.02.002.
|
| 245 |
+
|
| 246 |
+
Shuanlong Niu, Bin Li, Xinggang Wang, and Hui Lin. Defect image sample generation with gan for improving defect recognition. IEEE Transactions on Automation Science and Engineering, 17(3):1611–1622, 2020. doi: 10.1109/TASE.2020.2967415.
|
| 247 |
+
|
| 248 |
+
Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In CVPR, 2019.
|
| 249 |
+
|
| 250 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zach DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
|
| 251 |
+
|
| 252 |
+
Deepak Pathak, Philipp Krahenb ¨ uhl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context ¨ encoders: Feature learning by inpainting. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2536–2544, 2016.
|
| 253 |
+
|
| 254 |
+
Sebastian Ruder. An overview of gradient descent optimization algorithms. arXiv preprint arXiv:1609.04747, 2016.
|
| 255 |
+
|
| 256 |
+
Connor Shorten and T. Khoshgoftaar. A survey on image data augmentation for deep learning. Journal of Big Data, 6:1–48, 2019.
|
| 257 |
+
|
| 258 |
+
Mingxing Tan and Quoc Le. EfficientNet: Rethinking model scaling for convolutional neural networks. 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. 6105–6114. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr. press/v97/tan19a.html.
|
| 259 |
+
|
| 260 |
+
Dingdong Yang, Seunghoon Hong, Yunseok Jang, Tiangchen Zhao, and Honglak Lee. Diversitysensitive conditional generative adversarial networks. In ICLR, 2019.
|
| 261 |
+
|
| 262 |
+
Gongjie Zhang, Kaiwen Cui, Tzu-Yi Hung, and Shijian Lu. Defect-gan: High-fidelity defect synthesis for automated defect inspection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2524–2534, January 2021.
|
| 263 |
+
|
| 264 |
+
Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han. Differentiable augmentation for data-efficient gan training, 2020.
|
| 265 |
+
|
| 266 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017a.
|
| 267 |
+
|
| 268 |
+
Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darrell, Alexei A. Efros, O. Wang, and E. Shechtman. Toward multimodal image-to-image translation. In NIPS, 2017b.
|
| 269 |
+
|
| 270 |
+
# A THE SURFACE DEFECT INSPECTION DATASET
|
| 271 |
+
|
| 272 |
+
The Surface Defect Inspection (SDI) dataset consists of 20,414 images at $1 2 8 \times 1 2 8$ resolution. It contains three background domains—product A, product $\mathbf { B }$ and product C, each can be further classified into three foreground domains—Normal, Scratches and Spots. Figure 7 shows example images of the SDI dataset. To be noticed that the dataset is highly imbalanced not only between normal and defective samples but also between different products as shown in Table 5. This sets a more challenging task when training deep neural networks like GANs and downstream classifiers.
|
| 273 |
+
|
| 274 |
+
For each foreground and background domains, we randomly select 50 images for a joint validation/test set, which is then further split into separate sets in the ratio of 3:7, and use all remaining images as training sets for GAN and classifier training. We present the distribution of the training set when training DT-GAN in Table 6. Note that the normal samples used in GAN training are only a subset of all available samples in Normal and we keep the rest of them for generating defective samples at test time. For classifier training, we show the statistics in Table 7, where the number of normal samples involved in classifier training increase incrementally. The validation set is used to select the best model during classifier training while the test set is left untouched until the final evaluation. Both of the validation and test set are inaccessible by DT-GAN.
|
| 275 |
+
|
| 276 |
+
Table 5: Distribution of the full SDI dataset.
|
| 277 |
+
|
| 278 |
+
<table><tr><td></td><td colspan="3">Overview</td></tr><tr><td></td><td>A</td><td>B</td><td>C</td></tr><tr><td>Normal</td><td>6250</td><td>6250</td><td>6250</td></tr><tr><td>Scratches</td><td>340</td><td>167</td><td>121</td></tr><tr><td>Spots</td><td>108</td><td>670</td><td>258</td></tr></table>
|
| 279 |
+
|
| 280 |
+
Table 6: The training set for DT-GAN and the baseline image synthesis methods.
|
| 281 |
+
|
| 282 |
+
<table><tr><td></td><td colspan="3">Overview</td></tr><tr><td></td><td>A</td><td>B</td><td>C</td></tr><tr><td>Normal</td><td>700</td><td>700</td><td>700</td></tr><tr><td>Scratches</td><td>290</td><td>117</td><td>71</td></tr><tr><td>Spots</td><td>58</td><td>620</td><td>208</td></tr></table>
|
| 283 |
+
|
| 284 |
+
Table 7: The training, validation and test set for classifier training, where $N$ increases incrementally—1500, 2200, 4000 and 6200.
|
| 285 |
+
|
| 286 |
+
<table><tr><td></td><td colspan="3">Train</td><td colspan="3">Validation</td><td colspan="3">Test</td></tr><tr><td></td><td>A</td><td>B</td><td>C</td><td>A</td><td>B</td><td>C</td><td>A</td><td>B</td><td>C</td></tr><tr><td>Normal</td><td>N</td><td>N</td><td>N</td><td>12</td><td>18</td><td>15</td><td>38</td><td>32</td><td>35</td></tr><tr><td>Scratches</td><td>290</td><td>117</td><td>71</td><td>14</td><td>16</td><td>15</td><td>36</td><td>34</td><td>35</td></tr><tr><td>Spots</td><td>58</td><td>620</td><td>208</td><td>14</td><td>16</td><td>15</td><td>36</td><td>34</td><td>35</td></tr></table>
|
| 287 |
+
|
| 288 |
+
# B TRAINING DETAILS
|
| 289 |
+
|
| 290 |
+
DT-GAN. We follow the training scheme as described in StarGAN v2 with minor modifications. To fit the model on a single Nvidia GTX TITAN X, the batch size is reduced to four while the model is still trained for 100,000 iterations. The training time is about three and a half days on the dedicated GPU with the modified network architecture2 and loss functions mentioned in Section 3 in PyTorch (Paszke et al., 2017). We set $\lambda _ { \mathrm { s t y } } = 1$ , $\lambda _ { \mathrm { d s } } = 1$ , $\lambda _ { \mathrm { c y c } } = 1$ , $\lambda _ { \mathrm { c o n . c y c } } = 1$ , $\lambda _ { \mathrm { c l s } } = 1$ and $\lambda _ { \mathrm { B G . c l s } } = 1$ for the SDI dataset. All other design choices remain the same as in StarGAN v2.
|
| 291 |
+
|
| 292 |
+
Classifiers. We train all the classifiers that use ResNet-50 as backbone for 100 epochs with the SGD optimizer (Ruder, 2016) and batch size 256. The initial learning rate is 0.001, momentum is 0.9 and weight decay is 1e-4. A learning rate scheduler is set to reduce the learning rate by factor of 0.1 when the validation loss stops decreasing for 5 epochs. The same setting also applies to EfficientNet-b4, except the batch size is reduced to 128. Although DT-GAN can synthesize realistic defective samples, we notice that there still exists a domain gap between the generated samples and the real samples. To explore the full potential of the generated samples, we attach an auxiliary source classifier to distinguish between synthetic and real samples. Then, this classifier is connected to the backbone (e.g. ResNet-50) through a Gradient Reversal Layer. With the help of the Gradient Reversal Layer, the backbone is forced to extract the shared features between synthetic and real samples, which ensures all training samples are effectively learned.
|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
Figure 7: Overview of the SDI dataset.
|
| 296 |
+
|
| 297 |
+
We design a two-layer perceptron that connects to the average pooling layer in ResNet-50 as shown in Figure 8. Note that the usual fully connected layer after the average pooling in ResNet-50 remains the same and is not affected by the extra branch we added. Inspired by Chen et al. (2018), a threelayer perceptron is used for EfficientNet-b4 instead as shown in Figure 9. Its layers are initialized with a random normal distribution, where the standard deviation is set to 0.01 for the first two layers and 0.05 for the output layer. The biases for all layers are set to 0.
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
Figure 8: ResNet-50 with GRL.
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
Figure 9: EfficientNet-b4 with GRL.
|
| 304 |
+
|
| 305 |
+
# C EVALUATION SETUP
|
| 306 |
+
|
| 307 |
+
Generated samples from DT-GAN. DT-GAN requires images as input for generating synthetic data. At test time, we translated each Normal image in the SDI dataset into four defective images: two with Scratches and two with Spots. The translations were performed by two subnetworks: by the mapping network $M$ using random noise (‘latent-guided’) and by the style-content encoder $E$ using a reference image (‘reference-guided’). We first randomly sampled one latent code for each defective foreground domain. Similarly, we also randomly sampled one reference image from the training set for each defective foreground domain. The corresponding style codes and defect contents were then produced by the two subnetworks respectively and fed to the generator for target image generation.
|
| 308 |
+
|
| 309 |
+
We conducted classification experiments separately on images generated from the two subnetworks and a mixture set of both (i.e. $50 \%$ from each subnetwork). Experiments show consistent gains of using synthetic images generated from DT-GAN (Table 8). We observe that the latent-guided synthetic images in general perform better than the reference-guided one, while the mixture set provides more stable results with regard to the standard deviation. Presumably the mixture set benefits from the combination of samples from reference-guided synthesis, which are well aligned with the original defect distribution, and the samples from latent-guided synthesis, i.e. from random noise, which adds novel but plausible defects to the dataset. In the main text, we report the results of the mixture set for all experiments, including the quantitative evaluation of DT-GAN.
|
| 310 |
+
|
| 311 |
+
Table 8: Classification results with regard to the synthetic images generated from the two subnetworks and the mixture set.
|
| 312 |
+
|
| 313 |
+
<table><tr><td rowspan="2">Dataset Size</td><td colspan="4">All</td></tr><tr><td>Trad-Aug</td><td>Latent</td><td>Reference</td><td>Mix</td></tr><tr><td>4500</td><td>12.75±0.61</td><td>10.72±0.96</td><td>11.48±0.88</td><td>11.04±0.76</td></tr><tr><td>6600</td><td>13.07±1.57</td><td>10.34±1.86</td><td>11.55±1.64</td><td>10.60±0.48</td></tr><tr><td>12000</td><td>12.05±0.81</td><td>9.90±1.26</td><td>10.40±0.99</td><td>9.90±0.69</td></tr><tr><td>18600</td><td>12.37±0.32</td><td>11.04±1.26</td><td>12.12±0.75</td><td>10.21±0.96</td></tr></table>
|
| 314 |
+
|
| 315 |
+
Frechet inception distance (FID) and Kernel inception distance (KID). ´ We used the feature vectors from the last average pooling layer of the ImageNet pretrained Inception-V3 to calculate both scores. For each test image from the Normal domain, we translated it into a synthetic defective image of each defect domain. The style codes and contents for the translation were acquired in two ways: by randomly sampling from the standard normal distribution and by randomly sampling a reference image from the train set of a defect domain. To calculate the FID and KID score, we generated 4000 defective samples per product per defect domain for each way of guidance, and formed the mixture set by randomly sampling 2000 images per product per defect domain from each way. The reported FID and KID scores were then computed between the defective images in the training set and the mixture set of synthetic defective images. The same procedure was applied when computing scores on single product subsets of the SDI dataset. For example, for product A, we calculated the scores between the defective image of product A in the training set and the mixture set of synthetic defective images of product A.
|
| 316 |
+
|
| 317 |
+
# D NETWORK ARCHITECTURE
|
| 318 |
+
|
| 319 |
+
In this section, we provide the architectural details of all four modules in DT-GAN.
|
| 320 |
+
|
| 321 |
+
Table 9: Generator architecture.
|
| 322 |
+
|
| 323 |
+
<table><tr><td colspan="7">(a)Encoder</td></tr><tr><td>Layer</td><td colspan="2">Resample</td><td>Norm</td><td colspan="3">Output Shape</td></tr><tr><td>Image x</td><td colspan="2"></td><td>-</td><td colspan="3">128 × 128×3</td></tr><tr><td>Conv 1×1</td><td colspan="2"></td><td>-</td><td colspan="3">128 ×128 ×128</td></tr><tr><td>ResBlk</td><td colspan="2">AvgPool</td><td>IN</td><td colspan="3">64× 64×256</td></tr><tr><td>ResBlk</td><td colspan="2">AvgPool</td><td>IN</td><td colspan="3">32 × 32 × 512</td></tr><tr><td>ResBlk</td><td colspan="2">AvgPool</td><td>IN</td><td colspan="3">16 × 16 × 512</td></tr><tr><td>ResBlk</td><td colspan="2"></td><td>IN</td><td colspan="3">16 ×16× 512</td></tr><tr><td>ResBlk</td><td colspan="2"></td><td>IN</td><td colspan="3">16 ×16 × 512</td></tr><tr><td colspan="3">(b) Background Decoder</td><td colspan="5">(c) Foreground Decoder</td></tr><tr><td>Layer</td><td>Resample</td><td>Norm</td><td> Output Shape</td><td>Layer</td><td>Resample Norm</td><td>Output Shape</td></tr><tr><td>Input</td><td></td><td>-</td><td>16 × 16 × 448</td><td>Input ResBlk</td><td></td><td>16 × 16 × 64</td></tr><tr><td>ResBlk</td><td></td><td>IN 16 ×16× 448 16 ×16× 512</td><td>ResBlk</td><td></td><td>AdaIN</td><td>16 ×16× 64</td></tr><tr><td>ResBlk</td><td></td><td>IN</td><td></td><td>=</td><td>AdaIN</td><td>16 × 16 × 256</td></tr><tr><td>ResBlk</td><td>=</td><td>IN</td><td>16 ×16 × 512</td><td>ResBlk</td><td>AdaIN</td><td>16 ×16× 256</td></tr><tr><td>ResBlk</td><td>Upsample</td><td>IN</td><td>32 × 32×512</td><td>ResBlk Upsample ResBlk</td><td>AdaIN</td><td>32 × 32 × 256</td></tr><tr><td>ResBlk ResBlk</td><td>Upsample Upsample</td><td>IN IN</td><td>64 × 64× 256 128 × 128× 448</td><td>Upsample</td><td>AdaIN</td><td>64×64×128</td></tr><tr><td></td><td></td><td></td><td>ResBlk</td><td>Upsample</td><td>AdaIN</td><td>128 ×128 × 64</td></tr><tr><td colspan="7">(d) Fusion</td></tr><tr><td>Layer</td><td colspan="2">Resample</td><td colspan="2">Norm</td><td colspan="2">Output Shape</td></tr><tr><td>Input</td><td colspan="2"></td><td colspan="2"></td><td colspan="2">128 × 128 × (448 + 64)</td></tr><tr><td>Conv 1×1</td><td colspan="2"></td><td colspan="2"></td><td colspan="2">128 × 128× 3</td></tr></table>
|
| 324 |
+
|
| 325 |
+
Table 10: Mapping network architecture.
|
| 326 |
+
|
| 327 |
+
<table><tr><td>Layer</td><td></td><td>Activation</td><td></td><td></td><td></td><td>Output Shape</td></tr><tr><td>Latent z</td><td></td><td>=</td><td></td><td></td><td></td><td>16</td></tr><tr><td>Linear</td><td></td><td>ReLU</td><td></td><td></td><td></td><td>512</td></tr><tr><td>Linear</td><td></td><td>ReLU</td><td></td><td></td><td></td><td>512</td></tr><tr><td>Linear</td><td></td><td>ReLU</td><td></td><td></td><td></td><td>512</td></tr><tr><td>Linear</td><td></td><td>ReLU</td><td></td><td></td><td></td><td>512</td></tr><tr><td colspan="3">(b) Style Code</td><td colspan="5">(c) Content</td></tr><tr><td>Layer</td><td>Activation</td><td> Output Shape</td><td>Layer</td><td>Resample Activation</td><td></td><td>Noise</td><td> Output Shape</td></tr><tr><td>Input</td><td>=</td><td>512</td><td>Input</td><td></td><td></td><td>=</td><td>512</td></tr><tr><td>Linear</td><td>ReLU</td><td>512</td><td>Reshape</td><td></td><td>-</td><td>-</td><td>1×1×512</td></tr><tr><td>Linear</td><td>ReLU</td><td>512</td><td>ResBlk</td><td>Upsample</td><td>IN</td><td>True</td><td>2×2×512</td></tr><tr><td>Linear</td><td>ReLU</td><td>512</td><td>ResBlk</td><td>Upsample</td><td>IN</td><td>True</td><td>4×4×512</td></tr><tr><td>Linear</td><td>1</td><td>64</td><td>ResBlk</td><td>Upsample</td><td>IN</td><td>True</td><td>8×8×256</td></tr><tr><td></td><td></td><td></td><td>ResBlk</td><td>Upsample</td><td>IN</td><td>True</td><td>16 ×16×128</td></tr><tr><td></td><td></td><td></td><td>Conv 1×1</td><td>=</td><td>IN</td><td>True</td><td>16 × 16× 64</td></tr></table>
|
| 328 |
+
|
| 329 |
+
Generator (Table 9). For the SDI dataset, the encoder part of the generator consists of three downsampling blocks and two intermediate blocks (Table 9 (a)), all of them are pre-activation residual units (He et al., 2016b). Then the encoded feature map is split channel-wise into background (Table 9 (b)) and foreground (Table 9 (c)). Both of them are then carried through separate decoders. We use the instance normalization (IN) and the adaptive instance normalization (AdaIN) as indicated. The style code is injected into all AdaIN layers to modulate the affine transformations. Note that
|
| 330 |
+
|
| 331 |
+
Table 11: Style-content encoder and discriminator architectures.
|
| 332 |
+
|
| 333 |
+
<table><tr><td colspan="6">(a)SharedLayers</td></tr><tr><td>Layer</td><td colspan="2">Resample</td><td colspan="2">Norm</td><td>Output Shape</td></tr><tr><td>Input x</td><td colspan="2"></td><td colspan="2"></td><td>128 × 128 ×3</td></tr><tr><td>Conv 1×1</td><td colspan="2">1</td><td colspan="2"></td><td>128 × 128 × 64</td></tr><tr><td>ResBlk</td><td colspan="2">AvgPool</td><td colspan="2"></td><td>64 × 64× 256</td></tr><tr><td>ResBlk</td><td colspan="2">AvgPool</td><td colspan="2"></td><td>32 × 32×512</td></tr><tr><td>ResBlk</td><td colspan="2">AvgPool</td><td colspan="2"></td><td>16 ×16 × 512</td></tr><tr><td>(b) Style Code /Discriminator and BG Classifier</td><td></td><td></td><td colspan="3">(c) Content /FG Classifier</td></tr><tr><td>Layer</td><td>Resample Norm</td><td>Output Shape</td><td>Layer</td><td>Resample Norm</td><td>Output Shape</td></tr><tr><td>Input</td><td>-</td><td>16 ×16× 512</td><td>Input</td><td></td><td>16 ×16× 512</td></tr><tr><td>ResBlk</td><td>AvgPool</td><td>8×8×512</td><td colspan="2">LReLU</td><td>16 ×16 × 512</td></tr><tr><td>ResBlk</td><td>AvgPool</td><td>4×4×512</td><td colspan="2">Conv 1×1*K</td><td>16×16×64*K</td></tr><tr><td>LReLU</td><td></td><td>4×4×512</td><td colspan="2"></td><td></td></tr><tr><td>Conv 4×4</td><td></td><td>1×1×512</td><td colspan="2"></td><td></td></tr><tr><td>LReLU</td><td></td><td>1×1×512</td><td colspan="4"></td></tr><tr><td>Reshape</td><td></td><td>512</td><td colspan="4"></td></tr><tr><td>Linear *K</td><td></td><td>D*K</td><td colspan="4"></td></tr></table>
|
| 334 |
+
|
| 335 |
+
AdaIN is only used in the foreground decoder. The outputs of both decoders are only fused in the end (Table 9 (d)).
|
| 336 |
+
|
| 337 |
+
Mapping Network (Table 10). The mapping network consists of four shared linear layers (Table 10 (a)) and two separate branches: one for generating style codes (Table 10(b)) and one for contents (Table 10(c)). Each of them is further divided into $K$ output branches, where $K$ denotes the number of domains. The dimension of the input, the output style code and the output content is set to 16, 64, and $1 6 \times 1 6 \times 6 4$ , respectively. The latent code is sampled from the standard normal distribution. Note that we apply per-pixel noise after each convolution in the content branch, which we have observed to increase the diversity of generated defects significantly (cf. Figure 5 (g)).
|
| 338 |
+
|
| 339 |
+
Style-Content Encoder (Table 11). The style-content encoder consists of a CNN (Table 11 (a)) with two branches (Table 11 (b) and (c)) as in the mapping network. Each branch has $K$ outputs, where $K$ is the number of domains. Three pre-activation residual blocks are shared among two branches, followed by a specific structure for each branch. The output dimension $D$ in Table 11 is set to 64, which denotes the dimension of the style code.
|
| 340 |
+
|
| 341 |
+
Discriminator (Table 11). The discriminator is a multi-task discriminator with two auxiliary classifiers for the foreground content and the background. The structure is almost identical to the stylecontent encoder, except $D$ is set to 1 for real/fake classification. The background classifier acts in parallel to final linear layer in Table 11 (b) and provides the logits for background classification. The foreground classifier instead acts on top of the output in Table 11 (c) and four more pre-activation residual layers are applied to encode the content into logits for foreground content classification.
|
| 342 |
+
|
| 343 |
+
# E ADDITIONAL RESULTS
|
| 344 |
+
|
| 345 |
+
# E.1 ADDITIONAL RESULTS ON THE SDI DATASET
|
| 346 |
+
|
| 347 |
+
We provide additional reference-guided image synthesis results on the SDI dataset in Figure 10. We demonstrate all the possible transfers among all foreground domains. Both style codes and contents are extracted from the reference images. To be noted that DT-GAN can append and remove foreground defects not only onto Normal samples but also to defective samples. For example, in the fifth column of Figure 10, the original scratch in the source image is removed and only the defects from the reference images are presented in the output images.
|
| 348 |
+
|
| 349 |
+
Besides, we present additional evaluations showing the effectiveness of our synthetic data according to Table 3. As seen in Table 12, the synthetic images from DT-GAN also boost the performance in single product classifiers, where the classifiers were trained on the subset of images for one product (A, B, C) instead of the full dataset (ABC).
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
Figure 10: Reference-guided image synthesis results on the SDI dataset. The first row and the first column are the real images sampled from the dataset, while the rest are synthetic images generated by the proposed DT-GAN. Our model provides translations between different foreground domains (Normal, Scratches and Spots) with styles and contents extracted from reference images while the backgrounds from source images are well preserved.
|
| 353 |
+
|
| 354 |
+
As discussed in Section 4.2, we assumed that the data-insufficiency problem can be mitigated by transferring defects across multiple background products. To examine if this assumption holds, we compared the performance of classifiers trained on synthetic images with defects from a specific source (vA, vB, vC) to classifiers trained on images with defects from all products (vABC). The results on the cross-domain effect with regard to different sizes of the training set are shown in Table 13. We again notice that using our synthetic data is beneficial. Moreover, in most cases the performance is further improved by exploiting cross-domain information (i.e. by transferring defects from other products). We interpret this as support for our assumption and the practical usefulness of our method in the real-world scenario. The case of cross-domain image synthesis when the desired combination is not presented in the training set is covered in the study on the MVTec Anomaly Detection dataset (Bergmann et al., 2019) (see Appendix E.4).
|
| 355 |
+
|
| 356 |
+
Table 12: Quantitative results for DT-GAN as a data augmentation method to train general and single product classifiers. The left-most column indicates the number of samples per class, including all images from the training set plus increasing amounts of synthetic images. In the first row, 20A refers to the case of 20 real defective samples for product A, while All refers to the full training set.
|
| 357 |
+
|
| 358 |
+
<table><tr><td rowspan="3">Dataset Size</td><td colspan="8">20A</td></tr><tr><td colspan="2">A</td><td colspan="2">B</td><td colspan="2">C</td><td colspan="2">ABC</td></tr><tr><td>Trad-Aug</td><td>Ours</td><td>Trad-Aug</td><td>Ours</td><td>Trad-Aug</td><td>Ours</td><td>Trad-Aug</td><td>Ours</td></tr><tr><td>4500</td><td>35.09±2.62 27.64±3.12</td><td></td><td>7.8±1.48</td><td>5.6±1.67</td><td></td><td></td><td>15.24±1.90 13.14±1.7015.55±0.63 14.28±1.25</td><td></td></tr><tr><td>6600</td><td>39.64±2.28 27.64±1.65</td><td></td><td>8.8±1.64</td><td>6.2±1.64</td><td>15.81±1.731</td><td></td><td></td><td>12.38±1.6516.69±0.76 14.41±3.12</td></tr><tr><td>12000</td><td>34.18±4.39 28.55±7.32</td><td></td><td>5.8±0.45</td><td>5.6±1.14</td><td></td><td></td><td>16.19±1.17 10.86±1.28 16.95±1.02 14.22±1.53</td><td></td></tr><tr><td>18600</td><td>39.45±7.06 32.55±5.04</td><td></td><td>7.2±0.84</td><td>5.2±1.10</td><td></td><td></td><td>14.86±0.85 13.14±2.06 16.12±2.19 15.36±0.86</td><td></td></tr><tr><td rowspan="3">Dataset Size</td><td colspan="8">All</td></tr><tr><td>A</td><td></td><td colspan="2">B</td><td colspan="2">C</td><td colspan="2">ABC</td></tr><tr><td>Trad-Aug</td><td>Ours</td><td>Trad-Aug</td><td></td><td>Ours</td><td>Trad-Aug</td><td>Ours</td><td>Trad-Aug</td><td>Ours</td></tr><tr><td>4500</td><td>16.00±1.041</td><td>10.18±1.75 8.79±0.45</td><td></td><td>5.60±1.51</td><td></td><td></td><td></td><td>17.13±6.62 14.09±2.2712.75±0.61 11.04±0.76</td></tr><tr><td>6600</td><td>14.90±1.38</td><td>10.54±1.22 7.60±1.51</td><td></td><td>6.80±3.11</td><td>15.23±2.33 11.42±0</td><td></td><td></td><td>13.07±1.57 10.60±0.48</td></tr><tr><td>12000</td><td>13.81±2.36</td><td>6.72±1.65 6.80±1.64</td><td></td><td>4.60±0</td><td>16.57±3.20 13.90±2.5712.05±0.81</td><td></td><td></td><td>9.90±0.69</td></tr><tr><td>18600</td><td>13.63±2.22 10.54±2.45 6.80±1.79</td><td></td><td></td><td></td><td></td><td></td><td></td><td>4.99±1.87 15.62±0.85 11.61±1.24 12.37±0.32 10.21±0.96</td></tr></table>
|
| 359 |
+
|
| 360 |
+
Table 13: Cross-domain effect on single product classifiers trained with reference-guided synthetic images at all scales. Note that here A, B and C stand for 3 products in the SDI dataset while vA, vB, vC and vABC indicate the defects are copied from which reference set.
|
| 361 |
+
|
| 362 |
+
<table><tr><td rowspan="2">Dataset Size</td><td colspan="5">A</td></tr><tr><td>Trad-Aug</td><td>vA</td><td>vB</td><td>vC</td><td>vABC</td></tr><tr><td>4500</td><td>16.00±1.04</td><td>12.90±2.61</td><td>13.08±1.65</td><td>14.90±2.46</td><td>15.27±3.49</td></tr><tr><td>6600</td><td>14.90±1.38</td><td>13.99±1.89</td><td>11.26±1.04</td><td>14.36±4.04</td><td>16.00±2.85</td></tr><tr><td>12000</td><td>13.81±2.36</td><td>11.81±2.65</td><td>12.72±2.87</td><td>11.99±1.63</td><td>11.09±3.49</td></tr><tr><td>18600</td><td>13.63±2.22</td><td>12.72±5.22</td><td>14.36±3.83</td><td>14.18±5.05</td><td>13.81±8.56</td></tr><tr><td>Dataset</td><td colspan="5">B</td></tr><tr><td>Size</td><td>Trad-Aug</td><td>vA</td><td>vB</td><td>vC</td><td>VABC</td></tr><tr><td>4500</td><td>8.79±0.45</td><td>7.80±2.15</td><td>5.60±1.14</td><td>10.19±0.84</td><td>6.79±1.30</td></tr><tr><td>6600</td><td>7.60±1.51</td><td>6.80±1.65</td><td>7.80±1.10</td><td>8.00±2.34</td><td>6.00±1.41</td></tr><tr><td>12000</td><td>6.80±1.64</td><td>6.40±1.34</td><td>6.60±1.52</td><td>6.59±1.34</td><td>5.60±1.34</td></tr><tr><td>18600</td><td>6.80±1.79</td><td>6.19±1.78</td><td>4.40±1.14</td><td>6.60±1.95</td><td>5.99±1.58</td></tr><tr><td>Dataset</td><td colspan="5">C</td></tr><tr><td>Size</td><td>Trad-Aug</td><td>vA</td><td>VB</td><td>vC</td><td>vABC</td></tr><tr><td>4500</td><td>17.14±4.62</td><td>14.85±0.52</td><td>16.76±2.58</td><td>13.90±1.98</td><td>12.00±1.59</td></tr><tr><td>6600</td><td>15.23±2.33</td><td>13.14±1.24</td><td>13.90±2.29</td><td>14.28±1.34</td><td>12.57±1.57</td></tr><tr><td>12000</td><td>16.57±3.20</td><td>13.14±2.81</td><td>11.23±0.80</td><td>14.85±1.73</td><td>11.42±0.96</td></tr><tr><td>18600</td><td>15.62±0.85</td><td>13.71±1.73</td><td>15.99±6.75</td><td>12.57±3.26</td><td>12.95±2.98</td></tr></table>
|
| 363 |
+
|
| 364 |
+
# E.2 ADDITIONAL FID AND KID RESULTS ON THE SDI DATASET
|
| 365 |
+
|
| 366 |
+
We provide additional results in the case of training GANs with augmentation methods in Table 14. Augmentation methods like ADA (Karras et al., 2020a) or DiffAug (Zhao et al., 2020) are proposed to adapt GAN training to limited data. We applied these augmentation methods to StyleGAN v2 and BigGAN, because these state-of-art image synthesis methods are not optimized for small dataset. However, incorporating the augmentation methods in training GANs on the SDI dataset is not always beneficial. The performance of StyleGAN v2 is largely degraded when using ADA, potentially due to the conflict between augmentation methods and the decentralized location of defects—in the SDI dataset, defects can occur anywhere on the surface. This is in contrast to datasets that were used to evaluate the aforementioned augmentation methods in GANs, where the objects are centralized (e.g., ImageNet (Deng et al., 2009), Cifar (Krizhevsky & Hinton, 2009)) and their attributes (e.g., beard, eye glasses in CelebA (Liu et al., 2015)) only occur in specific images parts.
|
| 367 |
+
|
| 368 |
+
Table 14: Quantitative comparison of DT-GAN with baseline image synthesis methods using FID and KID. Note that the reported values are not comparable between columns, because they are calculated on different training sets. The scores of StarGAN v2 on single products are omitted because generating images with specified background is not possible due to its network design.
|
| 369 |
+
|
| 370 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">FID↓</td><td colspan="4">KID↓</td></tr><tr><td>A</td><td>B</td><td>C</td><td>All</td><td>A</td><td>B</td><td>C</td><td>All</td></tr><tr><td>Mokady et al. (2020)</td><td>68.69</td><td>66.90</td><td>36.21</td><td>58.63</td><td>0.050</td><td>0.036</td><td>0.030</td><td>0.036</td></tr><tr><td>StarGAN v2</td><td>-</td><td>-</td><td>1</td><td>37.70</td><td>1</td><td>-</td><td>1</td><td>0.013</td></tr><tr><td>StyleGAN v2</td><td>90.10</td><td>52.95</td><td>138.09</td><td>35.34</td><td>0.072</td><td>0.027</td><td>0.186</td><td>0.013</td></tr><tr><td>StyleGAN v2 + ADA</td><td>149.66</td><td>42.75</td><td>135.69</td><td>76.16</td><td>0.138</td><td>0.019</td><td>0.191</td><td>0.055</td></tr><tr><td>BigGAN</td><td>235.66</td><td>192.89</td><td>193.61</td><td>151.43</td><td>0.248</td><td>0.199</td><td>0.276</td><td>0.115</td></tr><tr><td>BigGAN + DiffAug</td><td>218.74</td><td>134.41</td><td>270.89</td><td>155.88</td><td>0.220</td><td>0.121</td><td>0.378</td><td>0.099</td></tr><tr><td>Ours</td><td>58.43</td><td>36.44</td><td>22.68</td><td>29.73</td><td>0.025</td><td>0.013</td><td>0.012</td><td>0.009</td></tr></table>
|
| 371 |
+
|
| 372 |
+
# E.3 ABLATION STUDY WITH REGARD TO FID AND KID SCORES
|
| 373 |
+
|
| 374 |
+
We report the FID and KID scores of the ablation study in Table 15. We notice that both subnetworks show positive correlation to each modification except for structural change as in (a) and (e) . Among the two subnetworks, the reference-guided subnetwork outperforms the latent-guided one in the beginning, which is due to the fact that transferring existing contents is easier than generating them from random noise. This effect is also observed in Figure 5. However, the performance of the latentguided subnetwork improves significantly after applying per-pixel noise injection. The subnetwork can now output non-deterministic foreground contents even for a fixed input vector which results in better visual quality and higher diversity of generated defects. In the main text, the scores of the mixture set are reported.
|
| 375 |
+
|
| 376 |
+
Table 15: Ablation study with regard to FID and KID scores.
|
| 377 |
+
|
| 378 |
+
<table><tr><td rowspan="2"></td><td colspan="3">FID↓</td><td colspan="3">KID↓</td></tr><tr><td>Latent</td><td>Reference</td><td>Mix</td><td>Latent</td><td>Reference</td><td>Mix</td></tr><tr><td>(a) Baseline StarGAN v2</td><td>37.73</td><td>37.99</td><td>37.70</td><td>0.013</td><td>0.013</td><td>0.013</td></tr><tr><td>(b)+ Style-Content branches</td><td>43.90</td><td>32.61</td><td>33.36</td><td>0.017</td><td>0.011</td><td>0.011</td></tr><tr><td>(c)+Foreground classifier</td><td>37.14</td><td>32.34</td><td>27.69</td><td>0.014</td><td>0.011</td><td>0.008</td></tr><tr><td>(d) + Background classifier</td><td>34.12</td><td>32.50</td><td>30.23</td><td>0.011</td><td>0.011</td><td>0.010</td></tr><tr><td>(e)+ Separately decoding foreground and background in G</td><td>48.52</td><td>38.11</td><td>34.79</td><td>0.017</td><td>0.015</td><td>0.011</td></tr><tr><td>(f) + Anchor foreground domain (e.g. No rmal)</td><td>43.66</td><td>37.45</td><td>32.15</td><td>0.019</td><td>0.015</td><td>0.011</td></tr><tr><td></td><td>33.05</td><td></td><td></td><td>0.009</td><td>0.011</td><td></td></tr><tr><td>(g)+ Noise injection in Mapping Network</td><td></td><td>34.42</td><td>29.73</td><td></td><td></td><td>0.009</td></tr></table>
|
| 379 |
+
|
| 380 |
+
# E.4 ADDITIONAL RESULTS ON THE MVTEC ANOMALY DETECTION DATASET
|
| 381 |
+
|
| 382 |
+
The MVTec Anomaly Detection dataset (Bergmann et al., 2019) contains 15 different object and texture categories for anomaly detection. The dataset is formed of non-defective image for training and both non-defective and defective images with various kinds of defects for testing. The pixel-level annotations of all defective images are also provided. It is worth noting that the MVTec Anomaly Detection dataset is relatively small scale in number of images, where the number of training images is ranging from 60 to 391. Moreover, the number of defective images for each defect category in the test set is varying only from 8 to 30, which is relatively limited considering the sophisticated pattern of defects.
|
| 383 |
+
|
| 384 |
+
We conducted image synthesis experiments on a subset of MVTec Anomaly Detection dataset, where we selected four texture categories: Carpet, Leather, Wood and Tile for our targeted scenario i.e. surface defects. Furthermore, we aggregated some of the original defect types defined in the MVTec Anomaly Detection dataset into scratches and spots according to their visual appearance. We then simply added the subset of the MVTec Anomaly Detection dataset to the training set together with the SDI dataset for training DT-GAN. Details of the resulting dataset are shown in Table 17. Note that the small scale of available data posts a major challenge for training generative models.
|
| 385 |
+
|
| 386 |
+
Quantitative Evaluation. We present additional quantitative results on the subset of the MVTec Anomaly Detection dataset in Table 16, following the same evaluation setup as described in Appendix C. As shown in Table 16, our method achieves the best scores in Carpet and Wood, which supports our claim that DT-GAN generates synthetic images with higher fidelity and more diverse defect. However, we also observe that StyleGAN v2 seems to outperform our method in Leather and Tile.
|
| 387 |
+
|
| 388 |
+
Please note that FID and KID are not optimized to evaluate such a small dataset, there the results should only be interpreted together with the qualitative results.
|
| 389 |
+
|
| 390 |
+
Note the we again omit the FID and KID of StarGAN v2 because it is not cable of generating images for a specified product due to the ‘identity-shift’, which is also explained in detail in the qualitative evaluation.
|
| 391 |
+
|
| 392 |
+
Table 16: Quantitative comparison of DT-GAN with baseline image synthesis methods using FID and KID. Note that the reported values are not comparable between columns, because they were calculated on different training sets.
|
| 393 |
+
|
| 394 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">FID↓</td><td colspan="4">KID↓</td></tr><tr><td>Carpet</td><td>Leather</td><td>Tile</td><td>Wood</td><td>Carpet</td><td>Leather</td><td>Tile</td><td>Wood</td></tr><tr><td>Mokady (2020)</td><td>41.87</td><td>60.26</td><td>275.12</td><td>81.71</td><td>0.04</td><td>0.03</td><td>0.29</td><td>0.04</td></tr><tr><td>StarGAN v2</td><td>1</td><td></td><td></td><td></td><td>1</td><td></td><td>=</td><td>1</td></tr><tr><td>StyleGAN v2</td><td>51.37</td><td>51.60</td><td>225.96</td><td>140.01</td><td>0.05</td><td>0.03</td><td>0.23</td><td>0.12</td></tr><tr><td>BigGAN + DiffAug</td><td>34.47</td><td>101.70</td><td>391.54</td><td>113.32</td><td>0.03</td><td>0.07</td><td>0.42</td><td>0.07</td></tr><tr><td>Ours</td><td>22.79</td><td>86.13</td><td>321.35</td><td>75.83</td><td>0.01</td><td>0.07</td><td>0.36</td><td>0.03</td></tr></table>
|
| 395 |
+
|
| 396 |
+
Qualitative Evaluation. For qualitative results, we again discuss the ‘latent-guided’ and ‘referenceguided’ synthesis separately.
|
| 397 |
+
|
| 398 |
+
We present the ‘latent-guided’ image synthesis results of StyleGAN v2 in Figure 11 and Figure 12 and BigGAN in Figure 13 and Figure 14. The results are acquired by training one model for each product and then generating 16 images from randomly sampled latent codes from each of them. As pointed out in Section 4.1.2, both methods can not adapt well on small dataset. They suffer from model collapsing and show signs of overfitting by generating images similar to the training data. For example, StyleGAN v2 generates images either with no clear defect or identical to the training set (e.g., Leather in Figure 11 and Product B in Figure 12). The overfitting we observe here also explains the better FID and KID scores in Table 16. For Tile, we can see clear signs of mode collapse in the generated Tile images of StyleGAN v2. Similarly, BigGAN produces images with single mode and abnormal patterns (e.g., grid structure and gray edges). Unlike StyleGAN v2 and BigGAN, StarGAN v2 and our method both require images as input (i.e. Source). Therefore, we randomly sampled two Normal images and applied eight defects which are generated from randomly sampled latent codes to each of them. As seen in Figure 15 and Figure 16, StarGAN v2 fails to preserve the background from the given input images due to the highly entangled FG and BG. Also it fails to generates legit and diverse defects without separately modeling the style and the content. In contrast to aforementioned methods, our DT-GAN produces images with higher fidelity and more diversity in defect patterns as shown in Figure 17 and Figure 18. We believe this again prove the importance of style-content separation and FG/BG disentanglement, which we introduce in Section 3.1.
|
| 399 |
+
|
| 400 |
+
For ‘reference-guided’ image synthesis, the results of Mokady et al. (2020) are shown in Figure 19 and Figure 20 while the results of StarGAN v2 are in Figure 21 and Figure 22. We can observe a clear shift in color in all the outputs from Mokady et al. (2020). Moreover, Mokady et al. (2020) can only transfer content between two domains. In order to perform translation from a non-defective sample to a defective one, we trained a model for each type of defect and for each product. This sums up to be 13 models (Scratches and Spots for 6 categories and Scratches only for Tile). The results from the intended use within one background domain can be found on the diagonal and are marked in red in both Figure 19 and Figure 20. We still show the images that we feed in images from other background domains. As expected, the model then fails to preserve the background of given source images and introduce artifacts to the outputs. Similarly, StarGAN v2 does not preserve the background from the input images. Without style-content separation and FG/BG disentanglement, we observe that StarGAN v2 encodes the background characteristics together with the foreground content of the reference images, which results in identity-shits in its output images. Moreover, the output images either show no clear defect or contain abnormal patterns which sabotage the fidelity. On the contrary, our method can faithfully transfer the foreground content of reference images across given background of different products as shown in Figure 23 and Figure 24, which demonstrate the effectiveness of the style-content separation and FG/BG disentanglement we introduced in Section 3.1.
|
| 401 |
+
|
| 402 |
+
It is also worth noting that our method can perform cross-domain image synthesis even the desired combination is not presented in the training set. We demonstrate this on product Tile, which only has images with Scratches but no Spots. As shown in Figure 18 and Figure 24, DT-GAN can generated spots one given Tile images. However, this kind of transformation is most useful when the desired combination is reasonable for the downstream applications.
|
| 403 |
+
|
| 404 |
+
Limitation and Future Work. We have demonstrated the feasibility of the proposed DT-GAN by incorporating more products from the MVTec Anomaly Detection dataset in our training procedure. Intensive experiments have shown that the generated images from DT-GAN yielded better results compared to the baseline image synthesis methods. However, we noticed that despite the diverse patterns of the generated defects, DT-GAN tends to apply the styles learned from the SDI dataset also to the samples from the MVTec Anomaly Detection dataset. For example, we can observe some ”halo” effects in Leather and Wood in Figure 18 and some of the generated scratches in Figure 17 and Figure 23 are rather weakly pronounced. We hypothesize this can be counteracted by explicitly localizing the defect and enforcing the model to learn conditional relationships between ‘styles’ and different backgrounds. We aim to address these issues in future work.
|
| 405 |
+
|
| 406 |
+
Table 17: Overview of our formation of the MVTec Anomaly Detection sub-dataset. The first column represents the original defect types in the MVTec Anomaly Detection dataset while the first row stands for the defect types in our targeted scenario. We list the ID of samples we took from the MVTec Anomaly Detection dataset and show the number of samples in row Sum.
|
| 407 |
+
|
| 408 |
+
<table><tr><td colspan="3">(a) Carpet</td></tr><tr><td></td><td>Scratches</td><td>Spots</td></tr><tr><td>Color</td><td>011,012,014,016, 017</td><td>000,003,004,007,015,018</td></tr><tr><td>Thread</td><td>000-018</td><td></td></tr><tr><td>Hole</td><td>-</td><td>000 - 016</td></tr><tr><td>Sum</td><td>24</td><td>23</td></tr><tr><td colspan="3">(b) Leather</td></tr><tr><td></td><td>Scratches</td><td>Spots</td></tr><tr><td>Color</td><td>001,003,005,007,009,011,013,015,018</td><td>000,002,006,008,010,012,014</td></tr><tr><td>Cut</td><td>000 -018 000 - 006,009 - 016</td><td>-</td></tr><tr><td>Fold Glue</td><td></td><td>000 - 002,005-009,011-015,018</td></tr><tr><td>Poke</td><td>003,009,010,016,017</td><td>000-017</td></tr><tr><td>Sum</td><td></td><td>39</td></tr><tr><td></td><td>48</td><td></td></tr><tr><td colspan="3">(c) Tile</td></tr><tr><td></td><td>Scratches</td><td>Spots</td></tr><tr><td>Crack</td><td>000 - 016</td><td>二</td></tr><tr><td>Sum</td><td>17</td><td>0</td></tr><tr><td colspan="3">(d) Wood</td></tr><tr><td></td><td>Scratches</td><td>Spots</td></tr><tr><td>Color</td><td>003,005</td><td></td></tr><tr><td>Scratch</td><td>001-006,008- 010,013 -016,018- 020</td><td>000 - 016</td></tr><tr><td>Hole</td><td>=</td><td>000 - 004,006-009</td></tr><tr><td>Combined</td><td>008</td><td>001,002,009</td></tr><tr><td>Sum</td><td>19</td><td>12</td></tr></table>
|
| 409 |
+
|
| 410 |
+
# Randomly Sampled Defects (Scratches)
|
| 411 |
+
|
| 412 |
+

|
| 413 |
+
Figure 11: Latent-guided image synthesis results of StyleGAN v2 on the SDI dataset and the MVTec AD dataset. We train a model for each product and generate 16 Scratches images from randomly sampled latent codes.
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
Figure 12: Latent-guided image synthesis results of StyleGAN v2 on the SDI dataset and the MVTec AD dataset. We train a model for each product and generate 16 Spots images from randomly sampled latent codes.
|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
Figure 13: Latent-guided image synthesis results of BigGAN with DiffAug on the SDI dataset and the MVTec AD dataset. We train a model for each product and generate 16 Scratches images from randomly sampled latent codes.
|
| 420 |
+
|
| 421 |
+

|
| 422 |
+
Figure 14: Latent-guided image synthesis results of BigGAN with DiffAug on the SDI dataset and the MVTec AD dataset. We train a model for each product and generate 16 Spots images from randomly sampled latent codes.
|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
Figure 15: Latent-guided image synthesis results of StarGAN v2 on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Scratches. Note that without the style-content separation and the FG/BG disentanglement, StarGAN v2 not only fails to preserve the background from the given Source image but also fail to generates legit defects.
|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
Figure 16: Latent-guided image synthesis results of StarGAN v2 on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Spots. Note that without the style-content separation and the FG/BG disentanglement, StarGAN v2 not only fails to preserve the background from the given Source image but also fail to generates legit defects.
|
| 429 |
+
|
| 430 |
+

|
| 431 |
+
Figure 17: Latent-guided image synthesis results of DT-GAN on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Scratches. Note the our model takes input Source images as background and only synthesizes the foreground defects from randomly sampled latent code compared to StyleGAN v2 and BigGAN.
|
| 432 |
+
|
| 433 |
+

|
| 434 |
+
Figure 18: Latent-guided image synthesis results of DT-GAN on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Spots. Note the our model takes input Source images as background and only synthesizes the foreground defects from randomly sampled latent code compared to StyleGAN v2 and BigGAN.
|
| 435 |
+
|
| 436 |
+

|
| 437 |
+
Figure 19: Reference-guided image synthesis results of Mokady et al. (2020) on the SDI dataset and the MVTec AD dataset. We train a model for each product and each defect type. Then we translate Normal images to Scratches by taking the Source as background and applying the foreground defect from Reference to it.
|
| 438 |
+
|
| 439 |
+

|
| 440 |
+
Figure 20: Reference-guided image synthesis results of Mokady et al. (2020) on the SDI dataset and the MVTec AD dataset. We train a model for each product and each defect type. Then we translate Normal images to Spots by taking the Source as background and applying the foreground defect from Reference to it.
|
| 441 |
+
|
| 442 |
+

|
| 443 |
+
Figure 21: Reference-guided image synthesis results StarGAN v2 on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Scratches by taking the Source as background and applying the foreground defect from Reference to it. Note that without the style-content separation and the FG/BG disentanglement, StarGAN v2 not only fails to preserve the background from the given Source image but also fail to generates legit defects.
|
| 444 |
+
|
| 445 |
+

|
| 446 |
+
Figure 22: Reference-guided image synthesis results of StarGAN v2 on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Spots by taking the Source as background and applying the foreground defect from Reference to it. Note that without the style-content separation and the FG/BG disentanglement, StarGAN v2 not only fails to preserve the background from the given Source image but also fail to generates legit defects.
|
| 447 |
+
|
| 448 |
+

|
| 449 |
+
Figure 23: Reference-guided image synthesis results DT-GAN on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Scratches by taking the Source as background and applying the foreground defect from Reference to it.
|
| 450 |
+
|
| 451 |
+

|
| 452 |
+
Figure 24: Reference-guided image synthesis results of DT-GAN on the SDI dataset and the MVTec AD dataset. The model is trained on a joint set of aforementioned datasets and performs translation from Normal to Spots by taking the Source as background and applying the foreground defect from Reference to it.
|
parse/dev/2hMEdc35xZ6/2hMEdc35xZ6_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/2hMEdc35xZ6/2hMEdc35xZ6_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/2hMEdc35xZ6/2hMEdc35xZ6_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/3RBY8fKjHeu/3RBY8fKjHeu.md
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DayDreamer: World Models for Physical Robot Learning
|
| 2 |
+
|
| 3 |
+
# Philipp Wu\*
|
| 4 |
+
|
| 5 |
+
Alejandro Escontrela\* Danijar Hafner\*
|
| 6 |
+
|
| 7 |
+
Ken Goldberg Pieter Abbeel
|
| 8 |
+
|
| 9 |
+
University of California, Berkeley \*Equal contribution
|
| 10 |
+
|
| 11 |
+
Abstract: To solve tasks in complex environments, robots need to learn from experience. Deep reinforcement learning is a common approach to robot learning but requires a large amount of trial and error to learn, limiting its deployment in the physical world. As a consequence, many advances in robot learning rely on simulators. On the other hand, learning inside of simulators fails to capture the complexity of the real world, is prone to simulator inaccuracies, and the resulting behaviors do not adapt to changes in the world. The Dreamer algorithm has recently shown great promise for learning from small amounts of interaction by planning within a learned world model, outperforming pure reinforcement learning in video games. Learning a world model to predict the outcomes of potential actions enables planning in imagination, reducing the amount of trial and error needed in the real environment. However, it is unknown whether Dreamer can facilitate faster learning on physical robots. In this paper, we apply Dreamer to 4 robots to learn online and directly in the real world, without any simulators. Dreamer trains a quadruped robot to roll off its back, stand up, and walk from scratch and without resets in only 1 hour. We then push the robot and find that Dreamer adapts within 10 minutes to withstand perturbations or quickly roll over and stand back up. On two different robotic arms, Dreamer learns to pick and place objects from camera images and sparse rewards, approaching human-level teleoperation performance. On a wheeled robot, Dreamer learns to navigate to a goal position purely from camera images, automatically resolving ambiguity about the robot orientation. Using the same hyperparameters across all experiments, we find that Dreamer is capable of online learning in the real world, which establishes a strong baseline. We release our infrastructure for future applications of world models to robot learning. Videos are available on the project website: https://danijar.com/daydreamer
|
| 12 |
+
|
| 13 |
+

|
| 14 |
+
Figure 1: To study the applicability of Dreamer for sample-efficient robot learning, we apply the algorithm to learn robot locomotion, manipulation, and navigation tasks from scratch in the real world on 4 robots, without simulators. The tasks evaluate a diverse range of challenges, including continuous and discrete actions, dense and sparse rewards, proprioceptive and camera inputs, as well as sensor fusion of multiple input modalities. Learning successfully using the same hyperparameters across all experiments, Dreamer establishes a strong baseline for real world robot learning.
|
| 15 |
+
|
| 16 |
+
# 1 Introduction
|
| 17 |
+
|
| 18 |
+
Teaching robots to solve complex tasks in the real world is a foundational problem of robotics research. Deep reinforcement learning (RL) offers a popular approach to robot learning that enables robots to improve their behavior over time through trial and error. However, current algorithms require too much interaction with the environment to learn successful behaviors. Recently, modern world models have shown great promise for data efficient learning in simulated domains and video games (Hafner et al., 2019; 2020). Learning world models from past experience enables robots to imagine the future outcomes of potential actions, reducing the amount of trial and error in the real environment needed to learn.
|
| 19 |
+
|
| 20 |
+
While learning accurate world models can be challenging, they offer compelling properties for robot learning. By predicting future outcomes, world models allow for planning and behavior learning given only small amounts of real world interaction (Gal et al., 2016; Ebert et al., 2018). Moreover, world models summarize general dynamics knowledge about the environment that, once learned, could be reused for a wide range of downstream tasks (Sekar et al., 2020). World models also learn representations that fuse multiple sensor modalities and integrate them into latent states, reducing the need for sophisticated state estimators. Finally, world models generalize well from available offline data (Yu et al., 2021), which further accelerates learning in the real world.
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 2: Dreamer follows a simple pipeline for online learning on robot hardware without simulators. The current learned policy collects experience on the robot. This experience is added to the replay buffer. The world model is trained on replayed off-policy sequences through supervised learning. An actor critic algorithm optimizes a neural network policy from imagined rollouts in the latent space of the world model. We parallelize data collection and neural network learning.
|
| 24 |
+
|
| 25 |
+
Despite the promises of world models, learning accurate world models for the real world is a open challenge. In this paper, we leverage recent advances of the Dreamer world model for training a variety of robots in the most straight-forward and fundamental problem setting: online reinforcement learning in the real world, without simulators or demonstrations. As shown in Figure 2, Dreamer learns a world model from a replay buffer of past experience, learns behaviors from rollouts imagined in the latent space of the world model, and continuously interacts with the environment to explore and improve its behaviors. Our aim is to push the limits of robot learning directly in the real world and offer a robust platform to enable future work that develops the benefits of world models for robot learning. The key contributions of this paper are summarized as follows:
|
| 26 |
+
|
| 27 |
+
• Dreamer on Robots We apply Dreamer to 4 robots, demonstrating successful learning directly in the real world, without introducing new algorithms. The tasks cover a range of challenges, including different action spaces, sensory modalities, and reward structures.
|
| 28 |
+
• Walking in 1 Hour We teach a quadruped from scratch in the real world to roll off its back, stand up, and walk in only 1 hour. Afterwards, we find that the robot adapts to being pushed within 10 minutes, learning to withstand pushes or quickly roll over and get back on its feet.
|
| 29 |
+
• Visual Pick and Place We train robotic arms to pick and place objects from sparse rewards, which requires localizing objects from pixels and fusing images with proprioceptive inputs. The learned behavior outperforms model-free agents and approaches the performance of a human teleoperator using the same control interface as the robot.
|
| 30 |
+
• Open Source We publicly release the software infrastructure for all our experiments, which supports different action spaces and sensory modalities, offering a flexible platform for future research of world models for robot learning in the real world.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
Figure 3: Neural Network Training We leverage the Dreamer algorithm (Hafner et al., 2019; 2020) for fast robot learning in real world. Dreamer consists of two main neural network components, the world model and the policy. Left: The world model follows the structure of a deep Kalman filter that is trained on subsequences drawn from the replay buffer. The encoder fuses all sensory modalities into discrete codes. The decoder reconstructs the inputs from the codes, providing a rich learning signal and enabling human inspection of model predictions. A recurrent state-space model (RSSM) is trained to predict future codes given actions, without observing intermediate inputs.
|
| 34 |
+
|
| 35 |
+
Right: The world model enables massively parallel policy optimization from imagined rollouts in the compact latent space using a large batch size, without having to reconstruct sensory inputs. Dreamer trains a policy network and value network from the imagined rollouts and a learned reward function.
|
| 36 |
+
|
| 37 |
+
# 2 Approach
|
| 38 |
+
|
| 39 |
+
We leverage the Dreamer algorithm (Hafner et al., 2019; 2020) for online learning on physical robots, without the need for simulators. Figure 2 shows an overview of the approach. Dreamer learns a world model from a replay buffer of past experiences, uses an actor critic algorithm to learn behaviors from trajectories predicted by the learned model, and deploys its behavior in the environment to continuously grow the replay buffer. We decouple learning updates from data collection to meet latency requirements and to enable fast training without waiting for the environment. In our implementation, a learner thread continuously trains the world model and actor critic behavior, while an actor thread in parallel computes actions for environment interaction.
|
| 40 |
+
|
| 41 |
+
World Model Learning The world model is a deep neural network that learns to predict the environment dynamics, as shown in Figure 3 (left). Because sensory inputs can be large images, we predict future representations rather than future inputs. This reduces accumulating errors and enables massively parallel training with a large batch size. Thus, the world model can be thought of as a fast simulator of the environment that the robot learns autonomously, starting from a blank slate and continuously improving its model as it explores the real world. The world model is based on the Recurrent State-Space Model (RSSM; Hafner et al., 2018), which consists of four components:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
{ \begin{array} { r l r l } & { \operatorname { e n c } _ { \theta } { \big ( } s _ { t } \ { \big | } \ s _ { t - 1 } , a _ { t - 1 } , x _ { t } { \big ) } } & & { { \mathrm { D e c o d e r ~ N e t w o r k : } } \quad \operatorname* { d e c } _ { \theta } { \big ( } s _ { t } { \big ) } \approx x _ { t } } \\ & { \operatorname { d y n } _ { \theta } { \big ( } s _ { t } \ { \big | } \ s _ { t - 1 } , a _ { t - 1 } { \big ) } } & & { { \mathrm { R e w a r d ~ N e t w o r k : } } \quad \operatorname { r e w } _ { \theta } { \big ( } s _ { t + 1 } { \big ) } \approx r _ { t } } \end{array} }
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Physical robots are often equipped with multiple sensors of different modalities, such as proprioceptive joint readings, force sensors, and high-dimensional inputs such as RGB and depth camera images. The encoder network fuses all sensory inputs $x _ { t }$ together into the stochastic representations $z _ { t }$ . The dynamics model learns to predict the sequence of stochastic representations by using its recurrent state $h _ { t }$ . The decoder reconstructs the sensory inputs to provide a rich signal for learning representations and enables human inspection of model predictions. In our experiments, the robot has to discover task rewards by interacting with the real world, which the reward network learns to predict. Using manually specified rewards as a function of the decoded sensory inputs is also possible. We optimize all components of the world model jointly by stochastic backpropagation (Kingma and Welling, 2013; Rezende et al., 2014).
|
| 48 |
+
|
| 49 |
+
Actor Critic Learning While the world model represents task-agnostic knowledge about the dynamics, the actor critic algorithm learns a behavior that is specific to the task at hand. As shown in Figure 3 (right), we learn behaviors from rollouts that are predicted in the latent space of the world model, without decoding observations. This enables massively parallel behavior learning with typical batch sizes of 16K on a single GPU. The actor critic algorithm consists of an actor network $\pi ( a _ { t } | s _ { t } )$ and a critic network $v ( s _ { t } )$ .
|
| 50 |
+
|
| 51 |
+
The role of the actor network is to learn a distribution over successful actions $a _ { t }$ for each latent model state $s _ { t }$ that maximizes the sum of future predicted task rewards. The critic network learns to predict the sum of future task rewards through temporal difference learning (Sutton and Barto, 2018). This allows the algorithm to take into account rewards beyond the planning horizon of $H = 1 6$ steps to learn long-term strategies. Given a predicted trajectory of model states, the critic is trained to regress the return of the trajectory. We compute $\lambda$ -returns following Hafner et al. (2020; 2019):
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
V _ { t } ^ { \lambda } \doteq r _ { t } + \gamma \Big ( ( 1 - \lambda ) v ( s _ { t + 1 } ) + \lambda V _ { t + 1 } ^ { \lambda } \Big ) , \quad V _ { H } ^ { \lambda } \doteq v ( s _ { H } ) .
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
While the critic network is trained to regress the $\lambda$ -returns, the actor network is trained to maximize them. Different gradient estimators are available for computing the policy gradient for optimizing the actor, such as Reinforce (Williams, 1992) and the reparameterization trick (Kingma and Welling, 2013; Rezende et al., 2014) that directly backpropagates return gradients through the differentiable dynamics network (Henaff et al., 2019). Following Hafner et al. (2020), we choose reparameterization gradients for continuous control tasks and Reinforce gradients for tasks with discrete actions. In addition to maximizing returns, the actor is also incentivized to maintain high entropy to prevent collapse to a deterministic policy and maintain some amount of exploration throughout training:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { r } { \mathcal { L } ( \pi ) \doteq - \operatorname { E } \bigl [ \sum _ { t = 1 } ^ { H } \ln \pi ( a _ { t } \mid s _ { t } ) \mathrm { s g } ( V _ { t } ^ { \lambda } - v ( s _ { t } ) ) + \eta \mathrm { H } \bigl [ \pi ( a _ { t } \mid s _ { t } ) \bigr ] \bigr ] } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
We optimize the actor and critic using the Adam optimizer (Kingma and Ba, 2014). To compute the $\lambda$ -returns, we use a slowly updated copy of the critic network as common in the literature (Mnih et al., 2015; Lillicrap et al., 2015). The actor and critic gradients do not affect the world model, as this would lead to incorrect and overly optimistic model predictions. The hyperparameters are listed in Appendix D.
|
| 64 |
+
|
| 65 |
+
# 3 Experiments
|
| 66 |
+
|
| 67 |
+
We evaluate Dreamer on 4 robots, each with a different task, and compare its performance to appropriate algorithmic and human baselines. The experiments are representative of common robotic tasks, such as locomotion, manipulation, and navigation. The tasks pose a diverse range of challenges, including continuous and discrete actions, dense and sparse rewards, proprioceptive and image observations, and sensor fusion. The goal of the experiments is to evaluate whether the recent successes of learned world models enables sample-efficient robot learning directly in the real world. Specifically, we aim to answer the following research questions:
|
| 68 |
+
|
| 69 |
+
• Does Dreamer enable robot learning directly in the real world, without simulators? • Does Dreamer succeed across various robot platforms, sensory modalities, and action spaces? • How does the data-efficiency of Dreamer compare to previous reinforcement learning algorithms?
|
| 70 |
+
|
| 71 |
+
Implementation We build on the official implementation of DreamerV2 (Hafner et al., 2020). We develop an asynchronous actor and learner setup, which is essential in environments with high control rates, such as the quadruped, and also accelerates learning for slower environments, such as the robot arms. The actor thread computes online actions for the robot and sends trajectories of 128 time steps to the replay buffer. The learner thread samples data from the replay buffer, updates the world model, and optimizes the policy using imagination rollouts. Policy weights are synced from the learner to the actor every 20 seconds. We use an RSSM with 256 units to speed up the training computation. We use identical hyperparameters across all experiments, enabling off-the-shelf training on different robot embodiments.
|
| 72 |
+
|
| 73 |
+

|
| 74 |
+
Figure 4: A1 Quadruped Walking Starting from lying on its back with the feet in the air, Dreamer learns to roll over, stand up, and walk in 1 hour of real world training time, without simulators or resets. In contrast, SAC only learns to roll over but neither to stand up nor to walk. For SAC, we also had to help the robot out of a dead-locked leg configuration during training. On the right we show training curves for both SAC and Dreamer. The maximum reward is 14. The filled circles indicate times where the robot fell on its back, requiring the learning of a robust strategy for getting back up. After 1 hour of training, we start pushing the robot and find that it adapts its behavior within 10 minutes to withstand light pushes and quickly roll back on its feet for hard pushes. The graph shows a single training run with the shaded area indicating one standard deviation within each time bin.
|
| 75 |
+
|
| 76 |
+
Baselines We compare to a strong learning algorithm for each of our experimental setups. The A1 quadruped robot uses continuous actions and low-dimensional inputs, allowing us to compare to SAC (Haarnoja et al., 2018a;b), a popular algorithm for data-efficient continuous control. For the visual pick and place experiments on the XArm and UR5 robots, inputs are images and proprioceptive readings and actions are discrete, suggesting algorithms from the DQN (Mnih et al., 2015) line of work as baselines. We choose Rainbow (Hessel et al., 2018) as a powerful representative of this category, an algorithm that combines many improvements of DQN. To input the proprioceptive readings, we concatenate them as broadcasted planes to the RGB channels of the image, a common practice in the literature (Schrittwieser et al., 2019). For the UR5, we additionally compare against PPO (Schulman et al., 2017), with similar modifications for fusing image and proprioceptive readings. In addition, we compare against a human operator controlling the robot arm through the robot control interface. For the Sphero navigation task, inputs are images and actions are continuous. The state-ofthe-art baseline in this category is DrQv2 (Yarats et al., 2021), which uses image augmentation to increase sample-efficiency.
|
| 77 |
+
|
| 78 |
+
# 3.1 A1 Quadruped Walking
|
| 79 |
+
|
| 80 |
+
This high-dimensional continuous control task requires training a quadruped robot to roll over from its back, stand up, and walk forward at a fixed target velocity. Prior work in quadruped locomotion requires either extensive training in simulation under domain randomization, using recovery controllers to avoid unsafe states, or defining the action space as parameterized trajectory generators that restrict the space of motions (Rusu et al., 2016; Peng et al., 2018; Rudin et al., 2021; Lee et al., 2020; Yang et al., 2019). In contrast, we train in the end-to-end reinforcement learning setting directly on the robot, without simulators or resets. We use the Unitree A1 robot that consists of 12 direct drive motors. The motors are controlled at $2 0 \mathrm { H z }$ via continuous actions that represent motor angles that are realized by a PD controller on the hardware. Actions are filtered with a Butterworth filter to protect the motor from high-frequency actions. The input consists of motor angles, orientations, and angular velocities. Due to space constraints, we manually intervene when the robot has reached the end of the available training area, without modifying the joint configuration or orientation that the robot is in.
|
| 81 |
+
|
| 82 |
+

|
| 83 |
+
Figure 8: Within 10 minutes of perturbing the learned walking behavior, the robot adapts to withstanding pushes or quickly rolling over and back on its feet.
|
| 84 |
+
|
| 85 |
+
The reward function is the sum of five terms. An upright reward is computed from the base frame up vector $\hat { z } ^ { T }$ , terms for matching the standing pose are computed from the joint angles of the hips, shoulders, and knees, and a forward velocity term is computed from the projected forward velocity $\boldsymbol { s } _ { v } \boldsymbol { x }$ and the total velocity $s _ { v }$ . Without the reward curriculum, the agent receives spurious reward values due to the velocity estimator’s dependence on foot-ground contact events. Each of the five terms is active while its preceding terms are satisfied to at least 0.7 and otherwise set to 0:
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Figure 5: UR5 Multi Object Visual Pick and Place This task requires learning to locate three ball objects from third-person camera images, grasp them, and move them into the other bin. The arm is free to move within and above the bins and sparse rewards are given for grasping a ball and for dropping it in the opposite bin. The environment requires the world model to learn multi-object dynamics in the real world and the sparse reward structure poses a challenge for policy optimization. Dreamer overcomes the challenges of visual localization and sparse rewards on this task, learning a successful strategy within a few hours of autonomous operation.
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\begin{array} { r l } { r ^ { \mathrm { u p r } } \doteq ( \hat { z } ^ { T } [ 0 , 0 , 1 ] - 1 ) / 2 } & { { } r ^ { \mathrm { h i p } } \doteq 1 - \frac 1 4 \| q ^ { \mathrm { h i p } } + 0 . 2 \| _ { 1 } \quad r ^ { \mathrm { s h o u l d e r } } \doteq 1 - \frac 1 4 \| q ^ { \mathrm { s h o u l d e r } } + 0 . 2 \| _ { 1 } } \end{array}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r l } { r ^ { \mathrm { k n e e } } \doteq 1 - \frac 1 4 \parallel q ^ { \mathrm { k n e e } } - 1 . 0 \parallel _ { 1 } } & { { } r ^ { \mathrm { v e l o c i t y } } \doteq 5 \big ( \operatorname* { m a x } ( 0 , ^ { \mathcal { B } } v _ { x } ) / \parallel ^ { \mathcal { B } } v \parallel _ { 2 } \cdot \mathrm { c l i p } ( ^ { \mathcal { B } } v _ { x } / 0 . 3 , - 1 , 1 ) + 1 \big ) } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
As shown in Figure 4, after one hour of training, Dreamer learns to consistently flip the robot over from its back, stand up, and walk forward. In the first 5 minutes of training, the robot manages to roll off its back and land on its feet. 20 minutes later, it learns how to stand up on its feet. About 1 hour into training, the robot learns a pronking gait to walk forward at the desired velocity. After succeeding at this task, we tested the robustness of the algorithms by repeatedly knocking the robot off of its feet with a large pole, shown in Figure 8. Within 10 minutes of additional online learning, the robot adapts and withstand pushes or quickly rolls back on its feet. In comparison, SAC quickly learns to roll off its back but fails to stand up or walk given the small data budget.
|
| 99 |
+
|
| 100 |
+
# 3.2 UR5 Multi-Object Visual Pick and Place
|
| 101 |
+
|
| 102 |
+
Common in warehouse and logistics environments, pick and place tasks require a robot manipulator to transport items from one bin into another. Figure 5 shows a successful pick and place cycle of this task. The task is challenging because of sparse rewards, the need to infer object positions from pixels, and the challenging dynamics of multiple moving objects. The sensory inputs consist of proprioceptive readings (joint angles, gripper position, end effector Cartesian position) and a 3rd person RGB image of the scene. Successfully grasping one of the 3 objects, detected by partial gripper closure, results in a $+ 1$ reward, releasing the object in the same bin gives a $- 1$ reward, and placing in the opposite bin gives a $+ 1 0$ reward. We control the UR5 robot from Universal Robotics at $2 \ \mathrm { H z }$ . Actions are discrete for moving the end effector in increments along X, Y, and $\textsf { Z }$ axes and for toggling the gripper state. Movement in the Z axis is only enabled while holding an object and the gripper automatically opens once above the correct bin. We estimate human teleoperation performance by recording 3 demonstrators for 20 minutes each, controlling the UR5 with a joystick.
|
| 103 |
+
|
| 104 |
+
Dreamer reaches an average pick rate of 2.5 objects per minute within 8 hours. The robot initially struggles to learn as the reward signal is very sparse, but begins to gradually improve after 2 hours of training. The robot first learns to localize the objects and toggles the gripper when near an object. Over time, grasping becomes precise and the robot learns to push objects out of corners. Figure 5 shows the learning curves of Dreamer compared to Rainbow DQN, PPO, and the human baseline. Both Rainbow DQN and PPO only learn the short-sighted behavior of grasping and immediately dropping objects in the same bin. In contrast, Dreamer approaches human-level teleoperation performance after 8 hours. We hypothesize that Rainbow DQN and PPO fail because they require larger amounts of experience, which is not feasible for us to collect in the real world.
|
| 105 |
+
|
| 106 |
+
# 3.3 XArm Visual Pick and Place
|
| 107 |
+
|
| 108 |
+
While the UR5 robot is a high performance industrial robot, the XArm is an accessible low-cost 7 DOF manipulation, which we control at approximately $0 . 5 \ : \mathrm { H z }$ . Similar to Section 3.2, the task requires localizing and grasping a soft object and moving it from one bin to another and back, shown in Figure 6. We connect the object to the gripper with a string, which makes it less likely for the object to get stuck in corners at the cost of more complex dynamics. The sparse reward, discrete action space, and observation space match the UR5 setup except for the addition of depth image observations.
|
| 109 |
+
|
| 110 |
+

|
| 111 |
+
Figure 6: XArm Visual Pick and Place The XArm is an affordable robot arm that operates slower than the UR5. To demonstrate successful learning on this robot, we use a third-person RealSense camera with RGB and depth modalities, as well as proprioceptive inputs for the robot arm, requiring the world model to learn sensor fusion. The pick and place task uses a soft object. While soft objects would be challenging to model accurately in a simulator, Dreamer avoids this issue by directly learning on the real robot without a simulator. While Rainbow and PPO using R3M visual embeddings converge to the local optimum of grasping and ungrasping the object in the same bin, Dreamer learns a successful pick and place policy from sparse rewards in under 10 hours.
|
| 112 |
+
|
| 113 |
+
Dreamer learns a policy that enables the XArm to achieve an average pick rate of 3.1 objects per minute in 10 hours of time, which is comparable to human performance on this task. Figure 6 shows that Dreamer learns to solve the task within 10 hours, whereas the Rainbow algorithm, a top model-free algorithm for discrete control from pixels, fails to learn. We additionally compare Dreamer against a PPO baseline that utilizes R3M (Nair et al., 2022) pretrained visual embeddings for the state, but notice no improvement in performance. Interestingly, we observed that Dreamer learns to sometimes use the string to pull the object out of a corner before grasping it, demonstrating multi-modal behaviors. Moreover, we observed that when lighting conditions change drastically (such as sharp shadows during sunrise), performance initially collapses but Dreamer then adapts to the changing conditions and exceeds its previous performance after a few hours of additional training, reported in Appendix A.
|
| 114 |
+
|
| 115 |
+
# 3.4 Sphero Navigation
|
| 116 |
+
|
| 117 |
+
We evaluate Dreamer on a visual navigation task that requires maneuvering a wheeled robot to a fixed goal location given only RGB images as input. We use the Sphero Ollie robot, a cylindrical robot with two controllable motors, which we control through continuous torque commands at $2 \ : \mathrm { H z }$ Because the robot is symmetric and the robot only has access to image observations, it has to infer the heading direction from the history of observations. The robot is provided with a dense reward equal to the negative L2 distance, which is computed using a oracle vision pipeline that detects the Sphero’s position (this information is not provided to the agent). As the goal is fixed, after 100 environment steps, we end the episode and randomize the robot’s position through a sequence of high power random motor actions.
|
| 118 |
+
|
| 119 |
+
In 2 hours, Dreamer learns to quickly and consistently navigate to the goal and stay near the goal for the remainder of the episode. As shown in Figure 7, Dreamer achieves an average distance to the goal of 0.15, measured in units of the area size and averaged across time steps. We find that DrQv2, a model-free algorithm specifically designed to continuous control from pixels, achieves similar performance. This result matches the simulated experiments of Yarats et al. (2021) that showed the two algorithms to perform similarly for continuous control tasks from images.
|
| 120 |
+
|
| 121 |
+
# 4 Related Work
|
| 122 |
+
|
| 123 |
+
Existing work on robot learning commonly leverages large amounts of simulated experience before deploying to the real world (Rusu et al., 2016; Peng et al., 2018; OpenAI et al., 2018; Lee et al., 2020; Irpan et al., 2020; Kumar et al., 2021; Siekmann et al., 2021; Escontrela et al., 2022), leverage fleets of robots to collect experience datasets (Kalashnikov et al., 2018; Dasari et al., 2019; Kalashnikov et al., 2021; Ebert et al., 2021), or rely on external information such as human expert demonstrations or task priors to achieve sample-efficient learning (Xie et al., 2019; Schoettler et al., 2019; James et al., 2021; Shah and Levine, 2022; Bohez et al., 2022; Sivakumar et al., 2022). However, designing simulated tasks and collecting expert demonstrations is time-consuming. Moreover, many of these approaches require specialized algorithms for leveraging offline experience, demonstrations, or simulator inaccuracies. In contrast, our experiments show that learning end-to-end from rewards in the physical world is feasible for a diverse range of tasks through world models.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 7: Sphero Navigation This task requires the Sphero robot to navigate to a goal location given a top-down RGB image as the only input. The task requires the robot to localize itself from raw pixels, to infer its orientation from the sequence of past images because it is ambiguous from a single image, and to control the robot from under-actuated motors that require building up momentum over time. Dreamer learns a successful policy on this task in under 2 hours.
|
| 127 |
+
|
| 128 |
+
Relatively few works have demonstrated end-to-end learning from scratch in the physical world. Visual Foresight (Finn et al., 2016; Finn and Levine, 2017; Ebert et al., 2018) learns a video prediction model to solve real world tasks by online planning, but is limited to short-horizon tasks and requires generating images during planning, making it computationally expensive. Yang et al. (2019; 2022) learn quadruped locomotion through a model-based approach by predicting foot placement and leveraging a domain-specific controller to achieve them. Ha et al. (2020) learn a quadruped walking policy by relying on a scripted reset policy, so the robot does not have to learn to stand up. SOLAR (Zhang et al., 2019) learns a latent dynamics model from images and demonstrates reaching and pushing with a robot arm. Nagabandi et al. (2019) learns manipulation policies by planning through a learned dynamics model from state observations. In comparison, our experiments show successful learning across 4 challenging robot tasks that cover a wide range of challenges and sensory modalities, with a single learning algorithm and hyperparameter setting.
|
| 129 |
+
|
| 130 |
+
# 5 Discussion
|
| 131 |
+
|
| 132 |
+
We applied Dreamer to physical robot learning, finding that modern world models enable sampleefficient robot learning for a range of tasks, from scratch in the real world and without simulators. We also find that the approach is generally applicable in that it can solve robot locomotion, manipulation, and navigation tasks without changing hyperparameters. Dreamer taught a quadruped robot to roll off the back, stand up, and walk in 1 hour from scratch, which previously required extensive training in simulation followed by transfer to the real world or parameterized trajectory generators and given reset policies. We also demonstrate learning to pick and place objects from pixels and sparse rewards on two robot arms in 8–10 hours.
|
| 133 |
+
|
| 134 |
+
Limitations While Dreamer shows promising results, learning on hardware over many hours creates wear on robots that may require human intervention or repair. Additionally, more work is required to explore the limits of Dreamer and our baselines by training for a longer time. Finally, we see tackling more challenging tasks, potentially by combining the benefits of fast real world learning with those of simulators, as an impactful future research direction.
|
| 135 |
+
|
| 136 |
+
Acknowledgements We thank Stephen James and Justin Kerr for helpful suggestions and help with printing the protective shell of the quadruped robot. We thank Ademi Adeniji for help with setting up the XArm robot and Raven Huang for help with setting up the UR5 robot. This work was supported in part by an NSF Fellowship, NSF NRI #2024675, and the Vanier Canada Graduate Scholarship.
|
| 137 |
+
|
| 138 |
+
References
|
| 139 |
+
D. Hafner, T. Lillicrap, J. Ba, and M. Norouzi. Dream to control: Learning behaviors by latent imagination. arXiv preprint arXiv:1912.01603, 2019.
|
| 140 |
+
D. Hafner, T. Lillicrap, M. Norouzi, and J. Ba. Mastering atari with discrete world models. arXiv preprint arXiv:2010.02193, 2020.
|
| 141 |
+
Y. Gal, R. McAllister, and C. E. Rasmussen. Improving pilco with bayesian neural network dynamics models. In Data-Efficient Machine Learning workshop, ICML, 2016.
|
| 142 |
+
F. Ebert, C. Finn, S. Dasari, A. Xie, A. Lee, and S. Levine. Visual foresight: Model-based deep reinforcement learning for vision-based robotic control. arXiv preprint arXiv:1812.00568, 2018.
|
| 143 |
+
R. Sekar, O. Rybkin, K. Daniilidis, P. Abbeel, D. Hafner, and D. Pathak. Planning to explore via selfsupervised world models. In International Conference on Machine Learning, pages 8583–8592. PMLR, 2020.
|
| 144 |
+
T. Yu, A. Kumar, R. Rafailov, A. Rajeswaran, S. Levine, and C. Finn. Combo: Conservative offline model-based policy optimization. Advances in neural information processing systems, 34: 28954–28967, 2021.
|
| 145 |
+
D. Hafner, T. Lillicrap, I. Fischer, R. Villegas, D. Ha, H. Lee, and J. Davidson. Learning latent dynamics for planning from pixels. arXiv preprint arXiv:1811.04551, 2018.
|
| 146 |
+
D. P. Kingma and M. Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 147 |
+
D. J. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
|
| 148 |
+
R. S. Sutton and A. G. Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 149 |
+
R. J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
|
| 150 |
+
M. Henaff, A. Canziani, and Y. LeCun. Model-predictive policy learning with uncertainty regularization for driving in dense traffic. arXiv preprint arXiv:1901.02705, 2019.
|
| 151 |
+
D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 152 |
+
V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
|
| 153 |
+
T. P. Lillicrap, J. J. Hunt, A. Pritzel, N. Heess, T. Erez, Y. Tassa, D. Silver, and D. Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
|
| 154 |
+
T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018a.
|
| 155 |
+
T. Haarnoja, A. Zhou, K. Hartikainen, G. Tucker, S. Ha, J. Tan, V. Kumar, H. Zhu, A. Gupta, P. Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018b.
|
| 156 |
+
M. Hessel, J. Modayil, H. Van Hasselt, T. Schaul, G. Ostrovski, W. Dabney, D. Horgan, B. Piot, M. Azar, and D. Silver. Rainbow: Combining improvements in deep reinforcement learning. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 157 |
+
J. Schrittwieser, I. Antonoglou, T. Hubert, K. Simonyan, L. Sifre, S. Schmitt, A. Guez, E. Lockhart, D. Hassabis, T. Graepel, et al. Mastering atari, go, chess and shogi by planning with a learned model. arXiv preprint arXiv:1911.08265, 2019.
|
| 158 |
+
J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 159 |
+
D. Yarats, R. Fergus, A. Lazaric, and L. Pinto. Mastering visual continuous control: Improved data-augmented reinforcement learning. arXiv preprint arXiv:2107.09645, 2021.
|
| 160 |
+
A. A. Rusu, M. Vecerik, T. Rothörl, N. Heess, R. Pascanu, and R. Hadsell. Sim-to-real robot learning from pixels with progressive nets, 2016.
|
| 161 |
+
X. B. Peng, M. Andrychowicz, W. Zaremba, and P. Abbeel. Sim-to-real transfer of robotic control with dynamics randomization. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 1–8, May 2018. doi:10.1109/ICRA.2018.8460528.
|
| 162 |
+
N. Rudin, D. Hoeller, P. Reist, and M. Hutter. Learning to walk in minutes using massively parallel deep reinforcement learning, 2021.
|
| 163 |
+
J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning quadrupedal locomotion over challenging terrain. Science Robotics, 5(47), oct 2020. doi:10.1126/scirobotics.abc5986. URL https://doi.org/10.1126%2Fscirobotics.abc5986.
|
| 164 |
+
Y. Yang, K. Caluwaerts, A. Iscen, T. Zhang, J. Tan, and V. Sindhwani. Data efficient reinforcement learning for legged robots, 2019.
|
| 165 |
+
S. Nair, A. Rajeswaran, V. Kumar, C. Finn, and A. Gupta. R3m: A universal visual representation for robot manipulation, 2022.
|
| 166 |
+
OpenAI, M. Andrychowicz, B. Baker, M. Chociej, R. Jozefowicz, B. McGrew, J. Pachocki, A. Petron, M. Plappert, G. Powell, A. Ray, J. Schneider, S. Sidor, J. Tobin, P. Welinder, L. Weng, and W. Zaremba. Learning dexterous in-hand manipulation, 2018.
|
| 167 |
+
A. Irpan, C. Harris, J. Ibarz, K. Rao, M. Khansari, and S. Levine. Rl-cyclegan: Improving deep-rl robotics with simulation-to-real. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2020), 2020.
|
| 168 |
+
A. Kumar, Z. Fu, D. Pathak, and J. Malik. Rma: Rapid motor adaptation for legged robots, 2021.
|
| 169 |
+
J. Siekmann, K. Green, J. Warila, A. Fern, and J. Hurst. Blind bipedal stair traversal via sim-to-real reinforcement learning, 2021.
|
| 170 |
+
A. Escontrela, X. B. Peng, W. Yu, T. Zhang, A. Iscen, K. Goldberg, and P. Abbeel. Adversarial motion priors make good substitutes for complex reward functions, 2022.
|
| 171 |
+
D. Kalashnikov, A. Irpan, P. Pastor, J. Ibarz, A. Herzog, E. Jang, D. Quillen, E. Holly, M. Kalakrishnan, V. Vanhoucke, and S. Levine. Qt-opt: Scalable deep reinforcement learning for vision-based robotic manipulation, 2018.
|
| 172 |
+
S. Dasari, F. Ebert, S. Tian, S. Nair, B. Bucher, K. Schmeckpeper, S. Singh, S. Levine, and C. Finn. Robonet: Large-scale multi-robot learning, 2019.
|
| 173 |
+
D. Kalashnikov, J. Varley, Y. Chebotar, B. Swanson, R. Jonschkowski, C. Finn, S. Levine, and K. Hausman. Mt-opt: Continuous multi-task robotic reinforcement learning at scale, 2021.
|
| 174 |
+
F. Ebert, Y. Yang, K. Schmeckpeper, B. Bucher, G. Georgakis, K. Daniilidis, C. Finn, and S. Levine. Bridge data: Boosting generalization of robotic skills with cross-domain datasets, 2021.
|
| 175 |
+
A. Xie, F. Ebert, S. Levine, and C. Finn. Improvisation through physical understanding: Using novel objects as tools with visual foresight. arXiv preprint arXiv:1904.05538, 2019.
|
| 176 |
+
G. Schoettler, A. Nair, J. Luo, S. Bahl, J. A. Ojea, E. Solowjow, and S. Levine. Deep reinforcement learning for industrial insertion tasks with visual inputs and natural rewards, 2019.
|
| 177 |
+
S. James, K. Wada, T. Laidlow, and A. J. Davison. Coarse-to-fine q-attention: Efficient learning for visual robotic manipulation via discretisation, 2021.
|
| 178 |
+
D. Shah and S. Levine. Viking: Vision-based kilometer-scale navigation with geographic hints, 2022.
|
| 179 |
+
S. Bohez, S. Tunyasuvunakool, P. Brakel, F. Sadeghi, L. Hasenclever, Y. Tassa, E. Parisotto, J. Humplik, T. Haarnoja, R. Hafner, M. Wulfmeier, M. Neunert, B. Moran, N. Siegel, A. Huber, F. Romano, N. Batchelor, F. Casarini, J. Merel, R. Hadsell, and N. Heess. Imitate and repurpose: Learning reusable robot movement skills from human and animal behaviors, 2022.
|
| 180 |
+
A. Sivakumar, K. Shaw, and D. Pathak. Robotic telekinesis: Learning a robotic hand imitator by watching humans on youtube, 2022.
|
| 181 |
+
C. Finn, I. Goodfellow, and S. Levine. Unsupervised learning for physical interaction through video prediction. In Advances in neural information processing systems, pages 64–72, 2016.
|
| 182 |
+
C. Finn and S. Levine. Deep visual foresight for planning robot motion. In Robotics and Automation (ICRA), 2017 IEEE International Conference on, pages 2786–2793. IEEE, 2017.
|
| 183 |
+
Y. Yang, T. Zhang, E. Coumans, J. Tan, and B. Boots. Fast and efficient locomotion via learned gait transitions. In Conference on Robot Learning, pages 773–783. PMLR, 2022.
|
| 184 |
+
S. Ha, P. Xu, Z. Tan, S. Levine, and J. Tan. Learning to walk in the real world with minimal human effort. arXiv preprint arXiv:2002.08550, 2020.
|
| 185 |
+
M. Zhang, S. Vikram, L. Smith, P. Abbeel, M. Johnson, and S. Levine. Solar: deep structured representations for model-based reinforcement learning. In International Conference on Machine Learning, 2019.
|
| 186 |
+
A. Nagabandi, K. Konoglie, S. Levine, and V. Kumar. Deep dynamics models for learning dexterous manipulation, 2019.
|
| 187 |
+
G. I. Parisi, R. Kemker, J. L. Part, C. Kanan, and S. Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019. ISSN 0893-6080.
|
| 188 |
+
T. Miki, J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning robust perceptive locomotion for quadrupedal robots in the wild. Science Robotics, 7(62), jan 2022. doi:10.1126/ scirobotics.abk2822.
|
| 189 |
+
L. Smith, J. C. Kew, X. B. Peng, S. Ha, J. Tan, and S. Levine. Legged robots that keep on learning: Fine-tuning locomotion policies in the real world, 2021.
|
| 190 |
+
T.-Y. Yang, T. Zhang, L. Luu, S. Ha, J. Tan, and W. Yu. Safe reinforcement learning for legged locomotion, 2022. URL https://arxiv.org/abs/2203.02638.
|
| 191 |
+
S. Ha, P. Xu, Z. Tan, S. Levine, and J. Tan. Learning to walk in the real world with minimal human effort, 2020. URL https://arxiv.org/abs/2002.08550.
|
| 192 |
+
L. Smith, I. Kostrikov, and S. Levine. A walk in the park: Learning to walk in 20 minutes with model-free reinforcement learning, 2022. URL https://arxiv.org/abs/2208.07860.
|
| 193 |
+
S. Levine, P. Pastor, A. Krizhevsky, J. Ibarz, and D. Quillen. Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection. The International Journal of Robotics Research, 37(4-5):421–436, 2018.
|
| 194 |
+
L. Pinto and A. Gupta. Supersizing self-supervision: Learning to grasp from 50k tries and 700 robot hours, 2015.
|
| 195 |
+
H. Ha and S. Song. Flingbot: The unreasonable effectiveness of dynamic manipulation for cloth unfolding. Conference on Robot Learning, 2021.
|
| 196 |
+
S. James and A. J. Davison. Q-attention: Enabling efficient learning for vision-based robotic manipulation, 2021.
|
| 197 |
+
E. Tzeng, C. Devin, J. Hoffman, C. Finn, P. Abbeel, S. Levine, K. Saenko, and T. Darrell. Adapting deep visuomotor representations with weak pairwise constraints, 2015.
|
| 198 |
+
I. Akkaya, M. Andrychowicz, M. Chociej, M. Litwin, B. McGrew, A. Petron, A. Paino, M. Plappert, G. Powell, R. Ribas, et al. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019.
|
| 199 |
+
M. P. Deisenroth, G. Neumann, J. Peters, et al. A survey on policy search for robotics. Foundations and Trends in Robotics, 2(1–2):1–142, 2013.
|
| 200 |
+
K. Chua, R. Calandra, R. McAllister, and S. Levine. Deep reinforcement learning in a handful of trials using probabilistic dynamics models. In Advances in Neural Information Processing Systems, pages 4754–4765, 2018.
|
| 201 |
+
A. Nagabandi, G. Yang, T. Asmar, R. Pandya, G. Kahn, S. Levine, and R. S. Fearing. Learning image-conditioned dynamics models for control of under-actuated legged millirobots, 2017.
|
| 202 |
+
P. Becker-Ehmck, M. Karl, J. Peters, and P. van der Smagt. Learning to fly via deep model-based reinforcement learning. arXiv preprint arXiv:2003.08876, 2020.
|
| 203 |
+
F. Deng, I. Jang, and S. Ahn. Dreamerpro: Reconstruction-free model-based reinforcement learning with prototypical representations. arXiv preprint arXiv:2110.14565, 2021.
|
| 204 |
+
M. Okada and T. Taniguchi. Dreaming: Model-based reinforcement learning by latent imagination without reconstruction. In 2021 IEEE International Conference on Robotics and Automation (ICRA), pages 4209–4215. IEEE, 2021.
|
| 205 |
+
H. Bharadhwaj, M. Babaeizadeh, D. Erhan, and S. Levine. Information prioritization through empowerment in visual model-based rl. arXiv preprint arXiv:2204.08585, 2022.
|
| 206 |
+
K. Paster, L. E. McKinney, S. A. McIlraith, and J. Ba. Blast: Latent dynamics models from bootstrapping. In Deep RL Workshop NeurIPS 2021, 2021.
|
| 207 |
+
K. Hsu, M. J. Kim, R. Rafailov, J. Wu, and C. Finn. Vision-based manipulators need to also see from their hands, 2022. URL https://arxiv.org/abs/2203.12677.
|
| 208 |
+
|
| 209 |
+
# A Adaptation
|
| 210 |
+
|
| 211 |
+
Real world robot learning faces practical challenges such as changing environmental conditions and time varying dynamics. We found that Dreamer is able to adapt to the current environmental conditions with no change to the learning algorithm. This shows promise for using Dreamer in continual learning settings (Parisi et al., 2019). Adaptation of the quadruped to external perturbations is reported in Section 3.1 and Figure 8.
|
| 212 |
+
|
| 213 |
+
The XArm, situated near large windows, is able to adapt and maintain performance under the presence of changing lighting conditions. The XArm experiments were conducted after sundown to keep the lighting conditions constant throughout training. Figure A.1 shows the learning curve of the XArm. As expected, the performance of the XArm drops during sunrise. However, the XArm is able to adapt to the change in lighting conditions in about 5 hours time and recover the original performance, which is faster than it would be to train from scratch. A careful inspection of the image observations at these times, as shown in Figure A.1, reveals that the robot received observations with strong light rays covering the scene which greatly differs from the original training observations.
|
| 214 |
+
|
| 215 |
+

|
| 216 |
+
Figure A.1: The left two images are raw observations consumed by Dreamer. The leftmost image is an image observation as seen by the XArm at night, when it was trained. The next image shows an observation during sunrise. Despite the vast difference in pixel space, the XArm is able to recover, and then surpass, the original performance in approximately 5 hours. Even after 24 hours when the lighting shifts to night time conditions, the XArm is able to maintain performance.
|
| 217 |
+
|
| 218 |
+
# B Imagination
|
| 219 |
+
|
| 220 |
+

|
| 221 |
+
Figure B.1: To introspect the policy, we can roll out trajectories in the latent space of Dreamer, then decode the images to visualize the intent of the actor network. Each row is an imagined trajectory, showing every 2nd frame. Top: Latent rollouts on the UR5 environment. Multiple objects introduce more visual complexity that the network has to model. Note the second trajectory, which shows a static orange ball becoming a green ball. Bottom: Latent rollouts on the XArm environment.
|
| 222 |
+
|
| 223 |
+
# C Detailed Related Work
|
| 224 |
+
|
| 225 |
+
RL for locomotion A common approach is to train RL agents from large amounts of simulated data under domain and dynamics randomization (Peng et al., 2018; Lee et al., 2020; Rudin et al., 2021; Siekmann et al., 2021; Escontrela et al., 2022; Miki et al., 2022; Kumar et al., 2021; Rusu et al., 2016; Bohez et al., 2022), then freezing the learned policy and deploying it to the real world. Smith et al. (2021) explored pre-training policies in simulation and fine-tuning them with real world data. Yang et al. (2019) investigate learning a dynamics model using a multi-step loss and using model predictive control to accomplish a specified task. Yang et al. (2022) train locomotion policies in the real world but require a recovery controller trained in simulation to avoid unsafe states. In contrast, we use no simulators or reset policies and directly train on the physical robot. While prior work in locomotion has successfully learned walking behaviors in the real world, these works generally required several domain-specific assumptions or pretraining with simulators. Ha et al. (2020) achieved successful walking on the Minitaur robot in 90 minutes. However, the authors manually programmed a reset policy that was used when the robot fell on its back, while in our work the robot must learn to flip over and stand up. Additionally, the Minitaur robot is simpler than the A1 as it has 8 actuators compared to 12 on the A1. In recent work, Smith et al. (2022) utilize a high update-to-data ratio (UTD) RL algorithm to learn walking from 20 minutes of robot training data. However, their work assumes the availability of a reset policy and therefore comprises of a different learning problem compared to the problem we tackle of learning to flip over and walk from scratch. Additionally, we show our approach generalizes to environments with image observations and sparse rewards.
|
| 226 |
+
|
| 227 |
+
RL for manipulation Learning promises to enable robot manipulators to solve contact rich tasks in open real world environments. One class of methods attempts to scale up experience collection through a fleet of robots (Kalashnikov et al., 2018; 2021; Ebert et al., 2021; Dasari et al., 2019; Levine et al., 2018). In contrast, we only leverage one robot, but parallelize an agent’s experience by using the learned world model. Another common approach is to leverage expert demonstrations or other task priors (Pinto and Gupta, 2015; Ha and Song, 2021; Xie et al., 2019; Schoettler et al., 2019; Sivakumar et al., 2022). James and Davison (2021); James et al. (2021) leverages a few demonstrations to increase the sample-efficiency of Q learning by focusing the learner on important aspects of the scene. Other approaches, as in locomotion, first utilize a simulator, then transfer to the real world (Tzeng et al., 2015; Akkaya et al., 2019; OpenAI et al., 2018; Irpan et al., 2020). Our work focuses on single-robot environments where the agent must learn through a small amount of interaction with the world. Meanwhile, the Google Arm Farm line of work by Levine et al. leverages over $5 8 0 \mathrm { k }$ grasp attempts gathered by 7 robots and collected over 4 months. We believe that a method such as Dreamer could benefit greatly from this scale of training data, however it is unlikely that works such as MT-OPT/QT-OPT Kalashnikov et al. (2018; 2021) would work well in the low data regime that Dreamer excels in.
|
| 228 |
+
|
| 229 |
+
Model-based RL Due to its higher sample-efficiency over model-free methods, model-based RL is a promising approach to learning on real world robots (Deisenroth et al., 2013). A model based method first learns a dynamics model, which can then be used to plan actions (Nagabandi et al., 2019; Hafner et al., 2018; Chua et al., 2018; Nagabandi et al., 2017; Becker-Ehmck et al., 2020), or be used as a simulator to learn a policy network as in Dreamer (Hafner et al., 2019; 2020). One approach to tackle the high visual complexity of the world is to learn an action conditioned video prediction model (Finn and Levine, 2017; Ebert et al., 2018; Finn et al., 2016). One downside of this approach is the need to directly predict high dimensional observations, which can be computationally inefficient and easily drift. Dreamer learns a dynamics model in a latent space, allowing more efficient rollouts and avoids relying on high quality visual reconstructions for the policy. Another line of work proposes to learn latent dynamics models without having to reconstruct inputs (Deng et al., 2021; Okada and Taniguchi, 2021; Bharadhwaj et al., 2022; Paster et al., 2021), which we see as a promising approach for supporting moving view points in cluttered environments.
|
| 230 |
+
|
| 231 |
+
# D Hyperparameters
|
| 232 |
+
|
| 233 |
+
<table><tr><td rowspan=1 colspan=1>Name</td><td rowspan=1 colspan=1>Symbol</td><td rowspan=1 colspan=1>Value</td></tr><tr><td rowspan=1 colspan=3>General</td></tr><tr><td rowspan=1 colspan=1>Replay capacity (FIFO)Start learningBatch sizeBatch lengthMLP sizeActivation</td><td rowspan=1 colspan=1>BT</td><td rowspan=1 colspan=1>10610432324× 512LayerNorm+ELU</td></tr><tr><td rowspan=1 colspan=3>World Model</td></tr><tr><td rowspan=1 colspan=1>RSSM sizeNumber of latentsClasses per latentKL balancing</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>51232320.8</td></tr><tr><td rowspan=1 colspan=3>Actor Critic</td></tr><tr><td rowspan=1 colspan=1>Imagination horizonDiscountReturn lambdaTarget update interval</td><td rowspan=1 colspan=1>H?</td><td rowspan=1 colspan=1>150.950.95100</td></tr><tr><td rowspan=1 colspan=3>All Optimizers</td></tr><tr><td rowspan=1 colspan=1>Gradient clippingLearning rateAdam epsilon</td><td rowspan=1 colspan=1>E</td><td rowspan=1 colspan=1>10010-410-6</td></tr></table>
|
| 234 |
+
|
| 235 |
+
# E Environment and Hardware Details
|
| 236 |
+
|
| 237 |
+
For every robot setup that involved vision (UR5, XArm, Sphero), we used a RealSense D435 camera positioned to offer a fixed 3rd person view of the scene.
|
| 238 |
+
|
| 239 |
+
A1 We used the A1 quadrupedal robot by Unitree. The RL policy outputs actions at a frequency that is too high for the PD controller to track, which we overcome by lowpass filtering the action sequence. The joint range allows the legs to self-collide with the body, which can be damaging to the motors and increase battery consumption. We limited the joint range to decrease self-collisions. Finally, the EKF velocity estimator relies on foot-ground contact events to prevent significant drift in the estimates, so we employ a curriculum reward function that does not reward the robot for forward velocity until the robot is upright with extended legs. We also designed a shell which we 3D printed in order to better protect the cables and hardware and provide a smoother rolling over.
|
| 240 |
+
|
| 241 |
+
XArm & UR5 We utilized slanted bins to prevent objects from leaving the work area during the long-running pick and place experiments on the UR5, which is common practice Levine et al. (2018); Kalashnikov et al. (2018). We also added a partition behind the setup to keep the background constant. It would be interesting to study how a gripper-mounted camera would impact policy performance Hsu et al. (2022), however we report strong results without this design choice. For the XArm we use the uFactory xArm Gripper. For the UR5, we use the Robotiq 2F-85 parallel jaw gripper. The bin locations are predetermined and provided as part of the environment to prevent the robot from colliding with the bin. In addition, movement in the $\textsf { Z }$ axis is only enabled while holding an object and the gripper automatically opens once above the other bin.
|
| 242 |
+
|
| 243 |
+
Sphero We used a rectangular enclosure of $0 . 8 \times 0 . 8 \mathrm { { m ^ { 2 } } }$ to keep the sphero robot within the camera view. We used a simple OpenCV script to estimate the L2 distance between the Sphero and the goal position to provide a dense reward for policy optimization. This positional information was not provided to the agent, which it had to learn from the raw top-down images.
|
parse/dev/6at6rB3IZm/6at6rB3IZm.md
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Towards Understanding Grokking: An Effective Theory of Representation Learning
|
| 2 |
+
|
| 3 |
+
Ziming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud, Max Tegmark, Mike Williams Department of Physics, Institute for AI and Fundamental Interactions, MIT {zmliu,kitouni,nnolte,ericjm,tegmark,mwill}@mit.edu
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
We aim to understand grokking, a phenomenon where models generalize long after overfitting their training set. We present both a microscopic analysis anchored by an effective theory and a macroscopic analysis of phase diagrams describing learning performance across hyperparameters. We find that generalization originates from structured representations whose training dynamics and dependence on training set size can be predicted by our effective theory in a toy setting. We observe empirically the presence of four learning phases: comprehension, grokking, memorization, and confusion. We find representation learning to occur only in a “Goldilocks zone” (including comprehension and grokking) between memorization and confusion. We find on transformers the grokking phase stays closer to the memorization phase (compared to the comprehension phase), leading to delayed generalization. The Goldilocks phase is reminiscent of “intelligence from starvation” in Darwinian evolution, where resource limitations drive discovery of more efficient solutions. This study not only provides intuitive explanations of the origin of grokking, but also highlights the usefulness of physics-inspired tools, e.g., effective theories and phase diagrams, for understanding deep learning.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Perhaps the central challenge of a scientific understanding of deep learning lies in accounting for neural network generalization. Power et al. [1] recently added a new puzzle to the task of understanding generalization with their discovery of grokking. Grokking refers to the surprising phenomenon of delayed generalization where neural networks, on certain learning problems, generalize long after overfitting their training set. It is a rare albeit striking phenomenon that violates common machine learning intuitions, raising three key puzzles:
|
| 12 |
+
|
| 13 |
+
Q1 The origin of generalization: When trained on the algorithmic datasets where grokking occurs, how do models generalize at all?
|
| 14 |
+
Q2 The critical training size: Why does the training time needed to “grok” (generalize) diverge as the training set size decreases toward a critical point?
|
| 15 |
+
Q3 Delayed generalization: Under what conditions does delayed generalization occur?
|
| 16 |
+
|
| 17 |
+
We provide evidence that representation learning is central to answering each of these questions. Our answers can be summarized as follows:
|
| 18 |
+
|
| 19 |
+
A1 Generalization can be attributed to learning a good representation of the input embeddings, i.e., a representation that has the appropriate structure for the task and which can be predicted from the theory in Section 3. See Figures 1 and 2.
|
| 20 |
+
A2 The critical training set size corresponds to the least amount of training data that can determine such a representation (which, in some cases, is unique up to linear transformations).
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: Visualization of the first two principal components of the learned input embeddings at different training stages of a transformer learning modular addition. We observe that generalization coincides with the emergence of structure in the embeddings. See Section 4.2 for the training details.
|
| 24 |
+
|
| 25 |
+
A3 Grokking is a phase between “comprehension” and “memorization” phases and it can be remedied with proper hyperparmeter tuning, as illustrated by the phase diagrams in Figure 6.
|
| 26 |
+
|
| 27 |
+
This paper is organized as follows: In Section 2, we introduce the problem setting and build a simplified toy model. In Section 3, we will use an effective theory approach, a useful tool from theoretical physics, to shed some light on questions Q1 and Q2 and show the relationship between generalization and the learning of structured representations. In Section 4, we explain Q3 by displaying phase diagrams from a grid search of hyperparameters and show how we can “de-delay” generalization by following intuition developed from the phase diagram. We discuss related work in Section 5, followed by conclusions in Section 6.1
|
| 28 |
+
|
| 29 |
+
# 2 Problem Setting
|
| 30 |
+
|
| 31 |
+
Power et al. [1] observe grokking on a less common task – learning “algorithmic” binary operations. Given some binary operation ◦, a network is tasked with learning the map $( a , b ) \mapsto c$ where $c = a \circ b$ . They use a decoder-only transformer to predict the second to last token in a tokenized equation of the form “<lhs> <op> <rhs> <eq> <result> <eos>”. Each token is represented as a 256-dimensional embedding vector. The embeddings are learnable and initialized randomly. After the transformer, a final linear layer maps the output to class logits for each token.
|
| 32 |
+
|
| 33 |
+
Toy Model We primarily study grokking in a simpler toy model, which still retains the key behaviors from the setup of [1]. Although [1] treated this as a classification task, we study both regression (mean-squared error) and classification (cross-entropy). The basic setup is as follows: our model takes as input the symbols $a , b$ and maps them to trainable embedding vectors $\mathbf { E } _ { a } , \mathbf { E } _ { b } \in \mathbb { R } ^ { d _ { \mathrm { i n } } }$ . It then sums $\mathbf { E } _ { a } , \mathbf { E } _ { b }$ and sends the resulting vector through a “decoder” MLP. The target output vector, denoted $\mathbf { Y } _ { c } \in \mathbb { R } ^ { d _ { \mathrm { o u t } } }$ is a fixed random vector (regression task) or a one-hot vector (classification task). Our model architecture can therefore be compactly described as $( a , b ) \mapsto \operatorname { D e c } ( \mathbf { E } _ { a } + \mathbf { E } _ { b } )$ , where the embeddings $\mathbf { E _ { * } }$ and the decoder are trainable. Despite its simplicity, this toy model can generalize to all abelian groups (discussed in Appendix B). In sections 3-4.1, we consider only the binary operation of addition. We consider modular addition in Section 4.2 to generalize some of our results to a transformer architecture and study general non-abelian operations in Appendix H.
|
| 34 |
+
|
| 35 |
+
Dataset In our toy setting, we are concerned with learning the addition operation. A data sample corresponding to $i + j$ is denoted as $( i , j )$ for simplicity. If $i , j \in \{ 0 , \ldots , p - 1 \}$ , there are in total $p ( p + 1 ) / 2$ different samples since we consider $i + j$ and $j + i$ to be the same sample. A dataset $D$ is a set of non-repeating data samples. We denote the full dataset as $D _ { 0 }$ and split it into a training dataset $D$ and a validation dataset $D ^ { \prime }$ , i.e., $D \bigcup D ^ { \prime } = D _ { 0 } , D \bigcap D ^ { \prime } = \emptyset$ . We define training data fraction $= | D | / | D _ { 0 } |$ where $| \cdot |$ denotes the cardinality of the set.
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
Figure 2: Visualization of the learned set of embeddings $( p = 1 1 $ ) and the decoder function associated with it for the case of 2D embeddings. Axes refer to each dimension of the learned embeddings. The decoder is evaluated on a grid of points in embedding-space and the color at each point represents the highest probability class. For visualization purposes, the decoder is trained on inputs of the form $( \mathbf { E } _ { i } + \mathbf { \bar { E } } _ { j } ) / 2$ . One can read off the output of the decoder when fed the operation $i \circ j$ from this figure simply by taking the midpoint between the respective embeddings of $i$ and $j$ .
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
(d) Generalization in toy modular addition
|
| 43 |
+
|
| 44 |
+
# 3 Why Generalization Occurs: Representations and Dynamics
|
| 45 |
+
|
| 46 |
+
We can see that generalization appears to be linked to the emergence of highly-structured embeddings in Figure 2. In particular, Figure 2 (a, b) shows parallelograms in toy addition, and (c, d) shows a circle in toy modular addition. We now restrict ourselves to the toy addition setup and formalize a notion of representation quality and show that it predicts the model’s performance. We then develop a physics-inspired effective theory of learning which can accurately predict the critical training set size and training trajectories of representations. The concept of an effective theory in physics is similar to model reduction in computational methods in that it aims to describe complex phenomena with simple yet intuitive pictures. In our effective theory, we will model the dynamics of representation learning not as gradient descent of the true task loss but rather a simpler effective loss function $\ell _ { \mathrm { e f f } }$ which depends only on the representations in embedding space and not on the decoder.
|
| 47 |
+
|
| 48 |
+
# 3.1 Representation quality predicts generalization for the toy model
|
| 49 |
+
|
| 50 |
+
A rigorous definition for structure in the learned representation is necessary. We propose the following definition,
|
| 51 |
+
|
| 52 |
+
Definition 1. $( i , j , m , n )$ is a $\delta$ -parallelogram in the representation $\mathbf { R } \equiv \left[ \mathbf { E } _ { 0 } , \cdots , \mathbf { E } _ { p - 1 } \right] i f$
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
| ( \mathbf { E } _ { i } + \mathbf { E } _ { j } ) - ( \mathbf { E } _ { m } + \mathbf { E } _ { n } ) | \leq \delta .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
In the following derivations, we can take $\delta$ , which is a small threshold to tolerate numerical errors, to be zero.
|
| 59 |
+
|
| 60 |
+
Proposition 1. When the training loss is zero, any parallelogram $( i , j , m , n )$ in representation R satisfies $i + j = m + n$ .
|
| 61 |
+
|
| 62 |
+
Proof. Suppose that this is not the case, i.e., suppose $\mathbf { E } _ { i } + \mathbf { E } _ { j } = \mathbf { E } _ { m } + \mathbf { E } _ { n }$ but $i + j \neq m + n$ , then $\mathbf { Y } _ { i + j } = \bar { \mathrm { D e c } } ( \mathbf { E } _ { i } + \mathbf { E } _ { j } ) = \mathrm { D e c } ( \mathbf { E } _ { m } + \mathbf { E } _ { n } ) = \bar { \mathbf { Y } } _ { m + n }$ where the first and last equalities come from the zero training loss assumption. However, since $i + j \neq m + n$ , we have $\mathbf { Y } _ { i + j } \neq \mathbf { Y } _ { n + m }$ (almost surely in the regression task), a contradiction. □
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
Figure 3: We compute accuracy (of the full dataset) either measured empirically Acc, or predicted from the representation of the embeddings $\widehat { \mathrm { A c c } }$ . These two accuracies as a function of training data fraction are plotted in (a)(b), and their agreement is shown in (c).
|
| 66 |
+
|
| 67 |
+
It is convenient to define the permissible parallelogram set associated with a training dataset $D$ (“permissible” means consistent with $100 \%$ training accuracy) as
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
P _ { 0 } ( D ) = \{ ( i , j , m , n ) | ( i , j ) \in D , ( m , n ) \in D , i + j = m + n \} .
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
For simplicity, we denote $P _ { 0 } \equiv P _ { 0 } ( D _ { 0 } )$ . Given a representation $\mathbf { R }$ , we can check how many permissible parallelograms actually exist in $\mathbf { R }$ within error $\delta$ , so we define the parallelogram set corresponding to $\mathbf { R }$ as
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\begin{array} { r } { P ( \mathbf { R } , \delta ) = \{ ( i , j , m , n ) | ( i , j , m , n ) \in P _ { 0 } , | ( \mathbf { E } _ { i } + \mathbf { E } _ { j } ) - ( \mathbf { E } _ { m } + \mathbf { E } _ { n } ) | \leq \delta \} . } \end{array}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
For brevity we will write $P ( \mathbf { R } )$ , suppressing the dependence on $\delta$ . We define the representation quality index (RQI) as
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\mathrm { R Q I } ( \mathbf { R } ) = \frac { | P ( \mathbf { R } ) | } { | P _ { 0 } | } \in [ 0 , 1 ] .
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
We will use the term linear representation or linear structure to refer to a representation whose embeddings are of the form $\mathbf { E } _ { k } = \mathbf { a } + k \mathbf { b } \left( k = 0 , \cdots , p - 1 ; \mathbf { a } , \mathbf { b } \in \mathbb { R } ^ { d _ { \mathrm { i n } } } \right)$ . A linear representation has $\operatorname { R Q I } = 1$ , while a random representation (sampled from, say, a normal dstribution) has $\mathrm { R Q I } = 0$ with high probability.
|
| 86 |
+
|
| 87 |
+
Quantitatively, we denote the “predicted accuracy” $\widehat { \mathrm { A c c } }$ as the accuracy achievable on the whole dataset given the representation $\mathbf { R }$ (see Appendix D for the full details). In Figure 3, we see that the predicted $\widehat { \mathrm { A c c } }$ aligns well with the true accuracy Acc, establishing good evidence that structured representation of input embeddings leads to generalization. We use an example to illustrate the origin of generalization here. In the setup of Figure 2 (b), suppose the decoder can achieve zero training loss and $\mathbf { E } _ { 6 } + \mathbf { E } _ { 8 }$ is a training sample hence $\mathrm { D e c } ( { \bf E } _ { 6 } + { \bf E } _ { 8 } ) = { \bf Y } _ { 1 4 }$ . At validation time, the decoder is tasked with predicting a validation sample $\mathbf { E } _ { 5 } + \mathbf { E } _ { 9 }$ . Since $( 5 , 9 , 6 , 8 )$ forms a parallelogram such that $\mathbf { E } _ { 5 } + \mathbf { E } _ { 9 } = \mathbf { E } _ { 6 } + \mathbf { E } _ { 8 }$ , the decoder can predict the validation sample correctly because $\mathrm { D e c } ( \mathbf { E } _ { 5 } + \mathbf { E } _ { 9 } ) = \mathrm { D e c } ( \mathbf { E } _ { 6 } + \mathbf { E } _ { 8 } ) = \mathbf { Y } _ { 1 4 } ,$ .
|
| 88 |
+
|
| 89 |
+
# 3.2 The dynamics of embedding vectors
|
| 90 |
+
|
| 91 |
+
Suppose that we have an ideal model $\mathcal { M } ^ { * } = ( \mathrm { D e c } ^ { * } , { \bf R } ^ { * } )$ such that:2
|
| 92 |
+
|
| 93 |
+
• (1) ${ \mathfrak { M } } ^ { * }$ can achieve zero training loss;
|
| 94 |
+
• (2) ${ \mathfrak { M } } ^ { * }$ has an injective decoder, i.e., $\mathrm { D e c } ^ { * } ( \mathbf { x } _ { 1 } ) \neq \mathrm { D e c } ^ { * } ( \mathbf { x } _ { 2 } )$ for any $\mathbf { x } _ { 1 } \neq \mathbf { x } _ { 2 }$ .
|
| 95 |
+
|
| 96 |
+
Then Proposition 2 provides a mechanism for the formation of parallelograms.
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 4: (a) The effective theory predicts a phase transition in the probability of obtaining a linear representation around $r _ { c } = 0 . 4$ . (b) Empirical results display a phase transition of RQI around $r _ { c } = 0 . 4$ , in agreement with the theory (the blue line shows the median of multiple random seeds). The evolution of 1D representations predicted by the effective theory or obtained from neural network training (shown in (c) and (d) respectively) agree creditably well.
|
| 100 |
+
|
| 101 |
+
Proposition 2. If a training set $D$ contains two samples $( i , j )$ and $( m , n )$ with $i + j = m + n $ then ${ \mathfrak { M } } ^ { * }$ learns a representation $\mathbf { R } ^ { * }$ such that $\mathbf { E } _ { i } + \mathbf { E } _ { j } = \mathbf { E } _ { m } + \mathbf { E } _ { n }$ , i.e., $( i , j , m , n )$ forms $a$ parallelogram.
|
| 102 |
+
|
| 103 |
+
Proof. Due to the zero training loss assumption, we have $\mathrm { D e c } ^ { * } ( \mathbf { E } _ { i } + \mathbf { E } _ { j } ) = \mathbf { Y } _ { i + j } = \mathbf { Y } _ { m + n } =$ $\mathrm { D e c } ^ { * } ( \mathbf { E } _ { m } + \mathbf { E } _ { n } )$ . Then the injectivity of ${ \mathrm { D e c } } ^ { * }$ implies $\mathbf { E } _ { i } + \mathbf { E } _ { j } = \mathbf { E } _ { m } + \mathbf { \bar { E } } _ { n }$ .
|
| 104 |
+
|
| 105 |
+
The dynamics of the trained embedding vectors are determined by various factors interacting in complex ways, for instance: the details of the decoder architecture, the optimizer hyperparameters, and the various kinds of implicit regularization induced by the training procedure. We will see that the dynamics of normalized quantities, namely, the normalized embeddings at time $t$ , defined as $\begin{array} { r } { \tilde { \mathbf { E } } _ { k } ^ { ( t ) } = \frac { \mathbf { E } _ { k } ^ { ( t ) } - \mu _ { t } } { \sigma _ { t } } } \end{array}$ , where $\begin{array} { r } { \mu _ { t } = \frac { 1 } { p } \sum _ { k } \mathbf { E } _ { k } ^ { ( t ) } } \end{array}$ and $\begin{array} { r } { \sigma _ { t } = \frac { 1 } { p } \sum _ { k } | \mathbf { E } _ { k } ^ { ( t ) } - \mu _ { t } | ^ { 2 } } \end{array}$ , can be qualitatively described by a simple effective loss (in the physics effective theory sense). We will assume that the normalized embedding vectors obey a gradient flow for an effective loss function of the form
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\frac { d \tilde { \mathbf { E } } _ { i } } { d t } = - \frac { \partial \ell _ { \mathrm { e f f } } } { \partial \tilde { \mathbf { E } } _ { i } } ,
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\ell _ { \mathrm { e f f } } = \frac { \ell _ { 0 } } { Z _ { 0 } } , \quad \ell _ { 0 } \equiv \sum _ { ( i , j , m , n ) \in P _ { 0 } ( D ) } | \tilde { \mathbf { E } } _ { i } + \tilde { \mathbf { E } } _ { j } - \tilde { \mathbf { E } } _ { m } - \tilde { \mathbf { E } } _ { n } | ^ { 2 } / | P _ { 0 } ( D ) | , \quad Z _ { 0 } \equiv \sum _ { k } | \tilde { \mathbf { E } } _ { k } | ^ { 2 } ,
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $| \cdot |$ denotes Euclidean vector norm. Note that the embeddings do not collapse to the trivial solution $\mathbf { E } _ { 0 } = \cdot \cdot \cdot = \mathbf { E } _ { p - 1 } = 0$ unless initialized as such, because two conserved quantities exist, as proven in Appendix F:
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
\mathbf { C } = \sum _ { k } \mathbf { E } _ { k } , \quad Z _ { 0 } = \sum _ { k } | \mathbf { E } _ { k } | ^ { 2 } .
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
We shall now use the effective dynamics to explain empirical observations such as the existence of a critical training set size for generalization.
|
| 122 |
+
|
| 123 |
+
Degeneracy of ground states (loss optima) We define ground states as those representations satisfying $\ell _ { \mathrm { e f f } } = 0$ , which requires the following linear equations to hold:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
A ( P ) = \{ \mathbf { E } _ { i } + \mathbf { E } _ { j } = \mathbf { E } _ { m } + \mathbf { E } _ { n } | ( i , j , m , n ) \in P \} .
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
Since each embedding dimension obeys the same set of linear equations, we will assume, without loss of generality, that $d _ { \mathrm { i n } } = 1$ . The dimension of the null space of $A ( P )$ , denoted as $n _ { 0 }$ , is the number of degrees of freedom of the ground states. Given a set of parallelograms implied by a training dataset $D$ , the nullity of $A ( P ( D ) )$ could be obtained by computing the singular values $0 \leq \sigma _ { 1 } \leq \cdot \cdot \cdot \leq \sigma _ { p }$ We always have $n _ { 0 } \geq 2$ , i.e., $\sigma _ { 1 } = \sigma _ { 2 } = 0$ because the nullity of $A ( P _ { 0 } )$ , the set of linear equations given by all possible parallelograms, is $\mathrm { N u l l i t y } ( A ( P _ { 0 } ) ) = 2$ which can be attributed to two degrees of freedom (translation and scaling). If $n _ { 0 } = 2$ , the representation is unique up to translations and scaling factors, and the embeddings have the form $\mathbf { E } _ { k } = \mathbf { a } + k \mathbf { b }$ . Otherwise, when $n _ { 0 } > 2$ , the representation is not constrained enough such that all the embeddings lie on a line.
|
| 130 |
+
|
| 131 |
+
We present theoretical predictions alongside empirical results for addition $\boldsymbol { p } = 1 0 ^ { \circ } ,$ ) in Figure 4. As shown in Figure 4 (a), our effective theory predicts that the probability that the training set implies a unique linear structure (which would result in perfect generalization) depends on the training data fraction and has a phase transition around $r _ { c } = 0 . 4$ . Empirical results from training different models are shown in Figure 4 (b). The number of steps to reach $\mathrm { R Q I } > 0 . 9 5$ is seen to have a phase transition at $r _ { c } = 0 . 4$ , agreeing with the proposed effective theory and with the empirical findings in [1].
|
| 132 |
+
|
| 133 |
+
Time towards the linear structure We define the Hessian matrix of $\ell _ { 0 }$ as
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
\mathbf { H } _ { i j } = \frac { 1 } { Z _ { 0 } } \frac { \partial ^ { 2 } \ell _ { 0 } } { \partial \mathbf { E } _ { i } \partial \mathbf { E } _ { j } } ,
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
Note that $\begin{array} { r } { \ell _ { \mathrm { e f f } } = \frac { 1 } { 2 } \mathbf { R } ^ { T } \mathbf { H } \mathbf { R } } \end{array}$ , $\mathbf { R } = [ \mathbf { E } _ { 0 } , \mathbf { E } _ { 1 } , \cdots , \mathbf { E } _ { p - 1 } ]$ , so the gradient descent is linear, i.e.,
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\frac { d \mathbf { R } } { d t } = - \mathbf { H } \mathbf { R } .
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
If $\mathbf { H }$ has eigenvalues $\lambda _ { i } = \sigma _ { i } ^ { 2 }$ (sorted in increasing order) and eigenvectors $\bar { \bf v } _ { i }$ , and we have the initial condition $\begin{array} { r } { { \bf R } ( t = 0 ) = \sum _ { i } a _ { i } { \bar { \bf v } } _ { i } } \end{array}$ , then we have $\begin{array} { r } { { \bf R } ( t ) = \sum _ { i } a _ { i } \bar { \bf v } _ { i } e ^ { - \lambda _ { i } t } } \end{array}$ . The first two eigenvalues vanish and $t _ { h } = 1 / \lambda _ { 3 }$ determines the timescale for the slowest component to decrease by a factor of $e$ . We call $\lambda _ { 3 }$ the grokking rate. When the step size is $\eta$ , the corresponding number of steps is $n _ { h } = t _ { h } / \eta = 1 / ( \lambda _ { 3 } \bar { \eta _ { } } )$ .
|
| 146 |
+
|
| 147 |
+
We verify the above analysis with empirical results. Figure 4 (c)(d) show the trajectories obtained from the effective theory and from neural network training, respectively. The 1D neural representation in Figure 4 (d) are manually normalized to zero mean and unit variance. The two trajectories agree qualitatively, and it takes about $3 n _ { h }$ steps for two trajectories to converge to the linear structure. The quantitative differences might be due to the absence of the decoder in the effective theory, which assumes the decoder to take infinitesimal step sizes.
|
| 148 |
+
|
| 149 |
+
Dependence of grokking on data size Note that $\ell _ { \mathrm { e f f } }$ involves averaging over parallelograms in the training set, it is dependent on training data size, so is $\lambda _ { 3 }$ . In Figure 5 (a), we plot the dependence of $\lambda _ { 3 }$ on training data fraction. There are many datasets with the same data size, so $\lambda _ { 3 }$ is a probabilistic function of data size.
|
| 150 |
+
|
| 151 |
+
Two insights on grokking can be extracted from this plot: (i) When the data fraction is below some threshold (around 0.4), $\lambda _ { 3 }$ is zero with high probability, corresponding to no generalization. This again verifies our critical point in Figure 4. (ii) When data size is above the threshold, $\lambda _ { 3 }$ (on average) is an increasing function of data size. This implies that grokking time $t \sim 1 / \lambda _ { 3 }$ decreases as training data size becomes larger, an important observation from [1].
|
| 152 |
+
|
| 153 |
+
To verify our effective theory, we compare the grokking steps obtained from real neural network training (defined as steps to $\mathrm { R Q I } > 0 . 9 5 $ , and those predicted by our theory $\begin{array} { r } { t _ { \mathrm { t h } } \sim \frac { 1 } { \lambda _ { 3 } \eta } } \end{array}$ $\dot { \eta }$ is the embedding learning rate), shown in Figure 5 (b). The theory agrees qualitatively with neural networks, showing the trend of decreasing grokking steps as increasing data size. The quantitative differences might be explained as the gap between our effective loss and actual loss.
|
| 154 |
+
|
| 155 |
+
Limitations of the effective theory While our theory defines an effective loss based on the Euclidean distance between embeddings $\mathbf { E } _ { i } + \mathbf { E } _ { j }$ and $ { \mathbf { E } } _ { n } + { \mathbf { E } } _ { m }$ , one could imagine generalizing the theory to define a broader notion of parallogram given by some other metric on the representation space. For instance, if we have a decoder like in Figure 2 (d) then the distance between distinct representations within the same “pizza slice” is low, meaning that representations arranged not in parallelograms w.r.t. the Euclidean metric may be parallelograms with respect to the metric defined by the decoder.
|
| 156 |
+
|
| 157 |
+
# 4 Delayed Generalization: A Phase Diagram
|
| 158 |
+
|
| 159 |
+
So far, we have (1) observed empirically that generalization on algorithmic datasets corresponds with the emergence of well-structured representations, (2) defined a notion of representation quality in a toy setting and shown that it predicts generalization, and (3) developed an effective theory to describe the learning dynamics of the representations in the same toy setting. We now study how optimizer hyperparameters affect high-level learning performance. In particular, we develop phase diagrams for how learning performance depends on the representation learning rate, decoder learning rate and the decoder weight decay. These parameters are of interest since they most explicitly regulate a kind of competition between the encoder and decoder, as we elaborate below.
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 5: Effective theory explains the dependence of grokking time on data size, for the addition task. (a) Dependence of $\lambda _ { 3 }$ on training data fraction. Above the critical data fraction (around 0.4), as data size becomes larger, $\lambda _ { 3 }$ increases hence grokking time $t \sim 1 / \lambda _ { 3 }$ (predicted by our effective theory) decreases. (b) Comparing grokking steps (defined as $\mathrm { R Q I } > 0 . 9 5 ) ,$ predicted by the effective theory with real neural network results. $\eta = 1 \bar { 0 } ^ { - 3 }$ is the learning rate of the embeddings.
|
| 163 |
+
|
| 164 |
+
# 4.1 Phase diagram of a toy model
|
| 165 |
+
|
| 166 |
+
Training details We update the representation and the decoder with different optimizers. For the 1D embeddings, we use the Adam optimizer with learning rate $[ 1 0 ^ { - 5 } , 1 0 ^ { - 2 } ]$ and zero weight decay. For the decoder, we use an AdamW optimizer with the learning rate in $[ 1 0 ^ { - 5 } , 1 0 ^ { - 2 } ]$ and the weight decay in [0, 10] (regression) or $[ 0 , 2 0 ]$ (classification). For training/validation spliting, we choose 45/10 for non-modular addition $\begin{array} { r } { p = 1 0 , } \end{array}$ ) and 24/12 for the permutation group $S _ { 3 }$ . We hard-code addition or matrix multiplication (details in Appendix H) in the decoder for the addition group and the permutation group, respectively.
|
| 167 |
+
|
| 168 |
+
For each choice of learning rate and weight decay, we compute the number of steps to reach high $( 9 0 \% )$ training/validation accuracy. The 2D plane is split into four phases: comprehension, grokking, memorization and confusion, defined in Table 1 in Appendix A. Both comprehension and grokking are able to generalize (in the “Goldilocks zone”), although the grokking phase has delayed generalization. Memorization is also called overfitting, and confusion means failure to even memorize training data. Figure 6 shows the phase diagrams for the addition group and the permutation group. They display quite rich phenomena.
|
| 169 |
+
|
| 170 |
+
Competition between representation learning and decoder overfitting In the regression setup of the addition dataset, we show how the competition between representation learning and decoder learning (which depend on both learning rate and weight decay, among other things) lead to different learning phases in Figure 6 (a). As expected, a fast decoder coupled with slow representation learning (bottom right) lead to memorization. In the opposite extreme, although an extremely slow decoder coupled with fast representation learning (top left) will generalize in the end, the generalization time is long due to the inefficient decoder training. The ideal phase (comprehension) requires representation learning to be faster, but not too much, than the decoder.
|
| 171 |
+
|
| 172 |
+
Drawing from an analogy to physical systems, one can think of embedding vectors as a group of particles. In our effective theory from Section 3.2, the dynamics of the particles are described only by their relative positions, in that sense, structure forms mainly due to inter-particle interactions (in reality, these interactions are mediated by the decoder and the loss). The decoder plays the role of an environment exerting external forces on the embeddings. If the magnitude of the external forces are small/large one can expect better/worse representations.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 6: Phase diagrams of learning for the addition group and the permutation group. (a) shows the competition between representation and decoder. (b)(c)(d): each phase diagram contains four phases: comprehension, grokking, memorization and confusion, defined in Table 1. In (b)(c)(d), grokking is sandwiched between comprehension and memorization.
|
| 176 |
+
|
| 177 |
+
Universality of phase diagrams We fix the embedding learning rate to be $1 0 ^ { - 3 }$ and sweep instead decoder weight decay in Figure 6 (b)(c)(d). The phase diagrams correspond to addition regression (b), addition classification (c) and permutation regression (d), respectively. Common phenomena emerge from these different tasks: (i) they all include four phases; (ii) The top right corner (a fast and capable decoder) is the memorization phase; (iii) the bottom right corner (a fast and simple decoder) is the confusion phase; (iv) grokking is sandwiched between comprehension and memorization, which seems to imply that it is an undesirable phase that stems from improperly tuned hyperparameters.
|
| 178 |
+
|
| 179 |
+
# 4.2 Beyond the toy model
|
| 180 |
+
|
| 181 |
+
We conjecture that many of the principles which we saw dictate the training dynamics in the toy model also apply more generally. Below, we will see how our framework generalizes to transformer architectures for the task of addition modulo $p$ , a minimal reproducible example of the original grokking paper [1].
|
| 182 |
+
|
| 183 |
+
We first encode $p = 5 3$ integers into 256D learnable embeddings, then pass two integers to a decoderonly transformer architecture. For simplicity, we do not encode the operation symbols here. The outputs from the last layer are concatenated and passed to a linear layer for classification. Training both the encoder and the decoder with the same optimizer (i.e., with the same hyperparameters) leads to the grokking phenomenon. Generalization appears much earlier once we lower the effective decoder capacity with weight decay (full phase diagram in Figure 7).
|
| 184 |
+
|
| 185 |
+
Early on, the model is able to perfectly fit the training set while having no generalization. We study the embeddings at different training times and find that neither PCA (shown in Figure 1) nor t-SNE (not shown here) reveal any structure. Eventually, validation accuracy starts to increase, and perfect generalization coincides with the PCA projecting the embeddings into a circle in 2D. Of course, no choice of dimensionality reduction is guaranteed to find any structure, and thus, it is challenging to show explicitly that generalization only occurs when a structure exists. Nevertheless, the fact that, when coupled with the implicit regularization of the optimizer for sparse solutions, such a clear structure appears in a simple PCA so quickly at generalization time suggests that our analysis in the toy setting is applicable here as well. This is also seen in the evolution of the entropy of the explained variance ratio in the PCA of the embeddings (defined as $\begin{array} { r } { S = - \sum _ { i } \sigma _ { i } \log \sigma _ { i } } \end{array}$ where $\sigma _ { i }$ is the fractional variance explained by the ith principal component). As seen in Figure 7, the entropy increases up to generalization time then decreases drastically afterwards which would be consistent with the conjecture that generalization occurs when a low-dimensional structure is discovered. The decoder then primarily relies on the information in this low-dimensional manifold and essentially “prunes” the rest of the high-dimensional embedding space. Another interesting insight appears when we project the embeddings at initialization onto the principal axes at the end of training. Some of the structure required for generalization exists before training hinting at a connection with the Lottery Ticket Hypothesis. See Appendix K for more details.
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Figure 7: Left: Evolution of the effective dimension of the embeddings (defined as the exponential of the entropy) during training and evaluated over 100 seeds. Center: Effect of dropout on speeding up generalization. Right: Phase diagram of the transformer architecture. A scan is performed over the weight decay and learning rate of the decoder while the learning rate of the embeddings is kept fixed at $1 \mathrm { { 0 } ^ { - 3 } }$ (with zero weight decay).
|
| 189 |
+
|
| 190 |
+
In Figure 7 (right), we show a comparable phase diagram to Figure 6 evaluated now in the transformer setting. Note that, as opposed to the setting in [1], weight decay has only been applied to the decoder and not to the embedding layer. Contrary to the toy model, a certain amount of weight decay proves beneficial to generalization and speeds it up significantly. We conjecture that this difference comes from the different embedding dimensions. With a highly over-parameterized setting, a non-zero weight decay gives a crucial incentive to reduce complexity in the decoder and help generalize in fewer steps. This is subject to further investigation. We also explore the effect of dropout layers in the decoder blocks of the transformer. With a significant dropout rate, the generalization time can be brought down to under $1 0 ^ { 3 }$ steps and the grokking phenomenon vanishes completely. The overall trend suggests that constraining the decoder with the same tools used to avoid overfitting reduces generalization time and can avoid the grokking phenomenon. This is also observed in an image classification task where we were able to induce grokking. See Appendix J for more details.
|
| 191 |
+
|
| 192 |
+
# 4.3 Grokking Experiment on MNIST
|
| 193 |
+
|
| 194 |
+
We now demonstrate, for the first time, that grokking (significantly delayed generalization) is a more general phenomenon in machine learning that can occur not only on algorithmic datasets, but also on mainstream benchmark datasets. In particular, we exhibit grokking on MNIST in Figure 8 and demonstrate that we can control grokking by varying optimization hyperparameters. More details on the experimental setup are in Appendix J.
|
| 195 |
+
|
| 196 |
+
# 5 Related work
|
| 197 |
+
|
| 198 |
+
Relatively few works have analyzed the phenomenon of grokking. [2] describe the circuit that transformers use to perform modular addition, track its formation over training, and broadly suggest that grokking is related to the phenomenon of “phase changes” in neural network training. [3, 4] provided earlier speculative, informal conjectures on grokking [3, 4]. Our work is related to the following broad research directions:
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
Figure 8: Left: Training curves for a run on MNIST, in the setting where we observe grokking. Right: Phase diagram with the four phases of learning dynamics on MNIST.
|
| 202 |
+
|
| 203 |
+
Learning mathematical structures [5] trains a neural network to learn arithmetic operation from pictures of digits, but they do not observe grokking due to their abundant training data. Beyond arithmetic relations, machine learning has been applied to learn other mathematical structures, including geometry [6], knot theory [7] and group theory [8].
|
| 204 |
+
|
| 205 |
+
Double descent Grokking is somewhat reminiscent of the phenomena of “epoch-wise” double descent [9], where generalization can improve after a period of overfitting. [10] find that regularization can mitigate double descent, similar perhaps to how weight decay influences grokking.
|
| 206 |
+
|
| 207 |
+
Representation learning Representation learning lies at the core of machine learning [11–14]. Representation quality is usually measured by (perhaps vague) semantic meanings or performance on downstream tasks. In our study, the simplicity of arithmetic datasets allows us to define representation quality and study evolution of representations in a quantitative way.
|
| 208 |
+
|
| 209 |
+
Physics of learning Physics-inspired tools have proved to be useful in understanding deep learning from a theoretical perspective. These tools include effective theories [15, 16], conservation laws [17] and free energy principle [18]. In addition, statistical physics has been identified as a powerful tool in studying generalization in neural networks [19–22]. Our work connects a low-level understanding of models with their high-level performance. In a recent work, researchers at Anthropic [23], connect a sudden decrease in loss during training with the emergence of induction heads within their models. They analogize their work to statistical physics, since it bridges a “microscopic”, mechanistic understanding of networks with “macroscopic” facts about overall model performance.
|
| 210 |
+
|
| 211 |
+
# 6 Conclusion
|
| 212 |
+
|
| 213 |
+
We have shown how, in both toy models and general settings, that representation enables generalization when it reflects structure in the data. We developed an effective theory of representation learning dynamics (in a toy setting) which predicts the critical dependence of learning on the training data fraction. We then presented four learning phases (comprehension, grokking, memorization and confusion) which depend on the decoder capacity and learning speed (given by, among other things, learning rate and weight decay) in decoder-only architectures. While we have mostly focused on a toy model, we find preliminary evidence that our results generalize to the setting of [1].
|
| 214 |
+
|
| 215 |
+
Our work can be viewed as a step towards a statistical physics of deep learning, connecting the “microphysics” of low-level network dynamics with the “thermodynamics” of high-level model behavior. We view the application of theoretical tools from physics, such as effective theories [24], to be a rich area for further work. The broader impact of such work, if successful, could be to make models more transparent and predictable [23, 25, 26], crucial to the task of ensuring the safety of advanced AI systems.
|
| 216 |
+
|
| 217 |
+
# References
|
| 218 |
+
|
| 219 |
+
[1] Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization beyond overfitting on small algorithmic datasets. arXiv preprint arXiv:2201.02177, 2022.
|
| 220 |
+
[2] Neel Nanda and Tom Lieberum. A mechanistic interpretability analysis of grokking, 2022. URL https://www.alignmentforum.org/posts/N6WM6hs7RQMKDhYjB/ a-mechanistic-interpretability-analysis-of-grokking.
|
| 221 |
+
[3] Beren Millidge. Grokking ’grokking’. https://beren.io/ 2022-01-11-Grokking-Grokking/, 2022.
|
| 222 |
+
[4] Rohin Shah. Alignment Newsletter #159. https: //www.alignmentforum.org/posts/zvWqPmQasssaAWkrj/ an-159-building-agents-that-know-how-to-experiment-by#DEEP_LEARNING_, 2021.
|
| 223 |
+
[5] Yedid Hoshen and Shmuel Peleg. Visual learning of arithmetic operation. In AAAI, 2016.
|
| 224 |
+
[6] Yang-Hui He. Machine-learning mathematical structures. arXiv preprint arXiv:2101.06317, 2021.
|
| 225 |
+
[7] Sergei Gukov, James Halverson, Fabian Ruehle, and Piotr Sułkowski. Learning to unknot. Machine Learning: Science and Technology, 2(2):025035, 2021.
|
| 226 |
+
[8] Alex Davies, Petar Velickovi ˇ c, Lars Buesing, Sam Blackwell, Daniel Zheng, Nenad Tomašev, ´ Richard Tanburn, Peter Battaglia, Charles Blundell, András Juhász, et al. Advancing mathematics by guiding human intuition with ai. Nature, 600(7887):70–74, 2021.
|
| 227 |
+
[9] Preetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang, Boaz Barak, and Ilya Sutskever. Deep double descent: Where bigger models and more data hurt. Journal of Statistical Mechanics: Theory and Experiment, 2021(12):124003, 2021.
|
| 228 |
+
[10] Preetum Nakkiran, Prayaag Venkat, Sham Kakade, and Tengyu Ma. Optimal regularization can mitigate double descent. arXiv preprint arXiv:2003.01897, 2020.
|
| 229 |
+
[11] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8): 1798–1828, 2013.
|
| 230 |
+
[12] Yassine Ouali, Céline Hudelot, and Myriam Tami. An overview of deep semi-supervised learning. arXiv preprint arXiv:2006.05278, 2020.
|
| 231 |
+
[13] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learning. Advances in Neural Information Processing Systems, 33:21271–21284, 2020.
|
| 232 |
+
[14] Phuc H Le-Khac, Graham Healy, and Alan F Smeaton. Contrastive representation learning: A framework and review. IEEE Access, 8:193907–193934, 2020.
|
| 233 |
+
[15] James Halverson, Anindita Maiti, and Keegan Stoner. Neural networks and quantum field theory. Machine Learning: Science and Technology, 2(3):035002, 2021.
|
| 234 |
+
[16] Daniel A Roberts, Sho Yaida, and Boris Hanin. The principles of deep learning theory. arXiv preprint arXiv:2106.10165, 2021.
|
| 235 |
+
[17] Daniel Kunin, Javier Sagastuy-Brena, Surya Ganguli, Daniel LK Yamins, and Hidenori Tanaka. Neural mechanics: Symmetry and broken conservation laws in deep learning dynamics. arXiv preprint arXiv:2012.04728, 2020.
|
| 236 |
+
[18] Yansong Gao and Pratik Chaudhari. A free-energy principle for representation learning. In International Conference on Machine Learning, pages 3367–3376. PMLR, 2020.
|
| 237 |
+
|
| 238 |
+
[19] Federica Gerace, Bruno Loureiro, Florent Krzakala, Marc Mézard, and Lenka Zdeborová. Generalisation error in learning with random features and the hidden manifold model. In International Conference on Machine Learning, pages 3452–3462. PMLR, 2020.
|
| 239 |
+
|
| 240 |
+
[20] Mohammad Pezeshki, Amartya Mitra, Yoshua Bengio, and Guillaume Lajoie. Multi-scale feature learning dynamics: Insights for double descent. In International Conference on Machine Learning, pages 17669–17690. PMLR, 2022.
|
| 241 |
+
|
| 242 |
+
[21] Sebastian Goldt, Bruno Loureiro, Galen Reeves, Florent Krzakala, Marc Mezard, and Lenka Zdeborova. The gaussian equivalence of generative models for learning with shallow neural networks. In Joan Bruna, Jan Hesthaven, and Lenka Zdeborova, editors, Proceedings of the 2nd Mathematical and Scientific Machine Learning Conference, volume 145 of Proceedings of Machine Learning Research, pages 426–471. PMLR, 16–19 Aug 2022. URL https: //proceedings.mlr.press/v145/goldt22a.html.
|
| 243 |
+
|
| 244 |
+
[22] R Kuhn and S Bos. Statistical mechanics for neural networks with continuous-time dynamics. Journal of Physics A: Mathematical and General, 26(4):831, 1993.
|
| 245 |
+
|
| 246 |
+
[23] Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. In-context learning and induction heads. Transformer Circuits Thread, 2022. https://transformer-circuits.pub/2022/in-context-learning-and-inductionheads/index.html.
|
| 247 |
+
|
| 248 |
+
[24] Daniel A. Roberts, Sho Yaida, and Boris Hanin. The Principles of Deep Learning Theory. Cambridge University Press, 2022. https://deeplearningtheory.com.
|
| 249 |
+
|
| 250 |
+
[25] Deep Ganguli, Danny Hernandez, Liane Lovitt, Nova DasSarma, Tom Henighan, Andy Jones, Nicholas Joseph, Jackson Kernion, Ben Mann, Amanda Askell, et al. Predictability and surprise in large generative models. arXiv preprint arXiv:2202.07785, 2022.
|
| 251 |
+
|
| 252 |
+
[26] Jacob Steinhardt. Future ML Systems Will Be Qualitatively Different. https://www. lesswrong.com/s/4aARF2ZoBpFZAhbbe/p/pZaPhGg2hmmPwByHc, 2022.
|
| 253 |
+
|
| 254 |
+
[27] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Russ R Salakhutdinov, and Alexander J Smola. Deep sets. Advances in neural information processing systems, 30, 2017.
|
| 255 |
+
|
| 256 |
+
[28] Vardan Papyan, XY Han, and David L Donoho. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the National Academy of Sciences, 117 (40):24652–24663, 2020.
|
| 257 |
+
|
| 258 |
+
[29] Wikipedia contributors. Thomson problem — Wikipedia, the free encyclopedia. https://en.wikipedia.org/w/index.php?title $=$ Thomson_problem&oldid= 1091431454, 2022. [Online; accessed 29-July-2022].
|
| 259 |
+
|
| 260 |
+
[30] Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15750–15758, 2021.
|
| 261 |
+
|
| 262 |
+
[31] Zhi-Qin John Xu, Yaoyu Zhang, and Yanyang Xiao. Training behavior of deep neural network in frequency domain. In International Conference on Neural Information Processing, pages 264–274. Springer, 2019.
|
| 263 |
+
|
| 264 |
+
[32] Yaoyu Zhang, Zhi-Qin John Xu, Tao Luo, and Zheng Ma. A type of generalization error induced by initialization in deep neural networks. In Mathematical and Scientific Machine Learning, pages 144–164. PMLR, 2020.
|
| 265 |
+
|
| 266 |
+
[33] Ziming Liu, Eric J. Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data, 2022.
|
| 267 |
+
|
| 268 |
+
[34] Blake Woodworth, Suriya Gunasekar, Jason D. Lee, Edward Moroshko, Pedro Savarese, Itay Golan, Daniel Soudry, and Nathan Srebro. Kernel and rich regimes in overparametrized models. In Jacob Abernethy and Shivani Agarwal, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3635–3673. PMLR, 09–12 Jul 2020. URL https://proceedings.mlr.press/v125/woodworth20a. html.
|
| 269 |
+
|
| 270 |
+
# Checklist
|
| 271 |
+
|
| 272 |
+
1. For all authors...
|
| 273 |
+
|
| 274 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 275 |
+
(b) Did you describe the limitations of your work? [Yes]
|
| 276 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 277 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 278 |
+
|
| 279 |
+
2. If you are including theoretical results...
|
| 280 |
+
|
| 281 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes]
|
| 282 |
+
|
| 283 |
+
3. If you ran experiments...
|
| 284 |
+
|
| 285 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]
|
| 286 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 287 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
|
| 288 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] All experiments were run on a workstation with two NVIDIA A6000 GPUs within a few days.
|
| 289 |
+
|
| 290 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 291 |
+
|
| 292 |
+
(a) If your work uses existing assets, did you cite the creators? [N/A]
|
| 293 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 294 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 295 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 296 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 297 |
+
|
| 298 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 299 |
+
|
| 300 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 301 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 302 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/dev/6at6rB3IZm/6at6rB3IZm_content_list.json
ADDED
|
@@ -0,0 +1,1438 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Towards Understanding Grokking: An Effective Theory of Representation Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
207,
|
| 8 |
+
122,
|
| 9 |
+
790,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Ziming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud, Max Tegmark, Mike Williams Department of Physics, Institute for AI and Fundamental Interactions, MIT {zmliu,kitouni,nnolte,ericjm,tegmark,mwill}@mit.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
191,
|
| 19 |
+
224,
|
| 20 |
+
807,
|
| 21 |
+
268
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
303,
|
| 32 |
+
535,
|
| 33 |
+
320
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We aim to understand grokking, a phenomenon where models generalize long after overfitting their training set. We present both a microscopic analysis anchored by an effective theory and a macroscopic analysis of phase diagrams describing learning performance across hyperparameters. We find that generalization originates from structured representations whose training dynamics and dependence on training set size can be predicted by our effective theory in a toy setting. We observe empirically the presence of four learning phases: comprehension, grokking, memorization, and confusion. We find representation learning to occur only in a “Goldilocks zone” (including comprehension and grokking) between memorization and confusion. We find on transformers the grokking phase stays closer to the memorization phase (compared to the comprehension phase), leading to delayed generalization. The Goldilocks phase is reminiscent of “intelligence from starvation” in Darwinian evolution, where resource limitations drive discovery of more efficient solutions. This study not only provides intuitive explanations of the origin of grokking, but also highlights the usefulness of physics-inspired tools, e.g., effective theories and phase diagrams, for understanding deep learning. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
334,
|
| 43 |
+
766,
|
| 44 |
+
554
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
577,
|
| 55 |
+
310,
|
| 56 |
+
594
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Perhaps the central challenge of a scientific understanding of deep learning lies in accounting for neural network generalization. Power et al. [1] recently added a new puzzle to the task of understanding generalization with their discovery of grokking. Grokking refers to the surprising phenomenon of delayed generalization where neural networks, on certain learning problems, generalize long after overfitting their training set. It is a rare albeit striking phenomenon that violates common machine learning intuitions, raising three key puzzles: ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
608,
|
| 66 |
+
825,
|
| 67 |
+
691
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Q1 The origin of generalization: When trained on the algorithmic datasets where grokking occurs, how do models generalize at all? \nQ2 The critical training size: Why does the training time needed to “grok” (generalize) diverge as the training set size decreases toward a critical point? \nQ3 Delayed generalization: Under what conditions does delayed generalization occur? ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
191,
|
| 76 |
+
702,
|
| 77 |
+
825,
|
| 78 |
+
781
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "We provide evidence that representation learning is central to answering each of these questions. Our answers can be summarized as follows: ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
173,
|
| 87 |
+
791,
|
| 88 |
+
823,
|
| 89 |
+
819
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "A1 Generalization can be attributed to learning a good representation of the input embeddings, i.e., a representation that has the appropriate structure for the task and which can be predicted from the theory in Section 3. See Figures 1 and 2. \nA2 The critical training set size corresponds to the least amount of training data that can determine such a representation (which, in some cases, is unique up to linear transformations). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
192,
|
| 98 |
+
830,
|
| 99 |
+
825,
|
| 100 |
+
905
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/e3eaca253887fd618f7f1aec0eaf522e3e511cf97173030ad9ee56c1a327e83f.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Visualization of the first two principal components of the learned input embeddings at different training stages of a transformer learning modular addition. We observe that generalization coincides with the emergence of structure in the embeddings. See Section 4.2 for the training details. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
183,
|
| 113 |
+
90,
|
| 114 |
+
816,
|
| 115 |
+
250
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "A3 Grokking is a phase between “comprehension” and “memorization” phases and it can be remedied with proper hyperparmeter tuning, as illustrated by the phase diagrams in Figure 6. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
192,
|
| 124 |
+
338,
|
| 125 |
+
823,
|
| 126 |
+
366
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "This paper is organized as follows: In Section 2, we introduce the problem setting and build a simplified toy model. In Section 3, we will use an effective theory approach, a useful tool from theoretical physics, to shed some light on questions Q1 and Q2 and show the relationship between generalization and the learning of structured representations. In Section 4, we explain Q3 by displaying phase diagrams from a grid search of hyperparameters and show how we can “de-delay” generalization by following intuition developed from the phase diagram. We discuss related work in Section 5, followed by conclusions in Section 6.1 ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
383,
|
| 136 |
+
825,
|
| 137 |
+
481
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 Problem Setting ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
176,
|
| 147 |
+
506,
|
| 148 |
+
339,
|
| 149 |
+
523
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Power et al. [1] observe grokking on a less common task – learning “algorithmic” binary operations. Given some binary operation ◦, a network is tasked with learning the map $( a , b ) \\mapsto c$ where $c = a \\circ b$ . They use a decoder-only transformer to predict the second to last token in a tokenized equation of the form “<lhs> <op> <rhs> <eq> <result> <eos>”. Each token is represented as a 256-dimensional embedding vector. The embeddings are learnable and initialized randomly. After the transformer, a final linear layer maps the output to class logits for each token. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
542,
|
| 159 |
+
826,
|
| 160 |
+
626
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Toy Model We primarily study grokking in a simpler toy model, which still retains the key behaviors from the setup of [1]. Although [1] treated this as a classification task, we study both regression (mean-squared error) and classification (cross-entropy). The basic setup is as follows: our model takes as input the symbols $a , b$ and maps them to trainable embedding vectors $\\mathbf { E } _ { a } , \\mathbf { E } _ { b } \\in \\mathbb { R } ^ { d _ { \\mathrm { i n } } }$ . It then sums $\\mathbf { E } _ { a } , \\mathbf { E } _ { b }$ and sends the resulting vector through a “decoder” MLP. The target output vector, denoted $\\mathbf { Y } _ { c } \\in \\mathbb { R } ^ { d _ { \\mathrm { o u t } } }$ is a fixed random vector (regression task) or a one-hot vector (classification task). Our model architecture can therefore be compactly described as $( a , b ) \\mapsto \\operatorname { D e c } ( \\mathbf { E } _ { a } + \\mathbf { E } _ { b } )$ , where the embeddings $\\mathbf { E _ { * } }$ and the decoder are trainable. Despite its simplicity, this toy model can generalize to all abelian groups (discussed in Appendix B). In sections 3-4.1, we consider only the binary operation of addition. We consider modular addition in Section 4.2 to generalize some of our results to a transformer architecture and study general non-abelian operations in Appendix H. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
632,
|
| 170 |
+
825,
|
| 171 |
+
785
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Dataset In our toy setting, we are concerned with learning the addition operation. A data sample corresponding to $i + j$ is denoted as $( i , j )$ for simplicity. If $i , j \\in \\{ 0 , \\ldots , p - 1 \\}$ , there are in total $p ( p + 1 ) / 2$ different samples since we consider $i + j$ and $j + i$ to be the same sample. A dataset $D$ is a set of non-repeating data samples. We denote the full dataset as $D _ { 0 }$ and split it into a training dataset $D$ and a validation dataset $D ^ { \\prime }$ , i.e., $D \\bigcup D ^ { \\prime } = D _ { 0 } , D \\bigcap D ^ { \\prime } = \\emptyset$ . We define training data fraction $= | D | / | D _ { 0 } |$ where $| \\cdot |$ denotes the cardinality of the set. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
791,
|
| 181 |
+
825,
|
| 182 |
+
875
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "image",
|
| 188 |
+
"img_path": "images/b448f7b12d80bc5a5de6a38e337185955ee926dc22a5e7bfb1f8a7006e5d2a6f.jpg",
|
| 189 |
+
"image_caption": [
|
| 190 |
+
"",
|
| 191 |
+
"Figure 2: Visualization of the learned set of embeddings $( p = 1 1 $ ) and the decoder function associated with it for the case of 2D embeddings. Axes refer to each dimension of the learned embeddings. The decoder is evaluated on a grid of points in embedding-space and the color at each point represents the highest probability class. For visualization purposes, the decoder is trained on inputs of the form $( \\mathbf { E } _ { i } + \\mathbf { \\bar { E } } _ { j } ) / 2$ . One can read off the output of the decoder when fed the operation $i \\circ j$ from this figure simply by taking the midpoint between the respective embeddings of $i$ and $j$ . "
|
| 192 |
+
],
|
| 193 |
+
"image_footnote": [],
|
| 194 |
+
"bbox": [
|
| 195 |
+
210,
|
| 196 |
+
103,
|
| 197 |
+
464,
|
| 198 |
+
364
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 2
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "image",
|
| 204 |
+
"img_path": "images/e72e69e51ef60695b4b64c66126a4e2a24d598c9eb27d1a2a44995c7866ba4af.jpg",
|
| 205 |
+
"image_caption": [
|
| 206 |
+
"(d) Generalization in toy modular addition "
|
| 207 |
+
],
|
| 208 |
+
"image_footnote": [],
|
| 209 |
+
"bbox": [
|
| 210 |
+
537,
|
| 211 |
+
101,
|
| 212 |
+
789,
|
| 213 |
+
354
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "3 Why Generalization Occurs: Representations and Dynamics ",
|
| 220 |
+
"text_level": 1,
|
| 221 |
+
"bbox": [
|
| 222 |
+
173,
|
| 223 |
+
483,
|
| 224 |
+
709,
|
| 225 |
+
501
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 2
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "We can see that generalization appears to be linked to the emergence of highly-structured embeddings in Figure 2. In particular, Figure 2 (a, b) shows parallelograms in toy addition, and (c, d) shows a circle in toy modular addition. We now restrict ourselves to the toy addition setup and formalize a notion of representation quality and show that it predicts the model’s performance. We then develop a physics-inspired effective theory of learning which can accurately predict the critical training set size and training trajectories of representations. The concept of an effective theory in physics is similar to model reduction in computational methods in that it aims to describe complex phenomena with simple yet intuitive pictures. In our effective theory, we will model the dynamics of representation learning not as gradient descent of the true task loss but rather a simpler effective loss function $\\ell _ { \\mathrm { e f f } }$ which depends only on the representations in embedding space and not on the decoder. ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
173,
|
| 234 |
+
515,
|
| 235 |
+
826,
|
| 236 |
+
654
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "3.1 Representation quality predicts generalization for the toy model ",
|
| 243 |
+
"text_level": 1,
|
| 244 |
+
"bbox": [
|
| 245 |
+
174,
|
| 246 |
+
670,
|
| 247 |
+
656,
|
| 248 |
+
685
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "A rigorous definition for structure in the learned representation is necessary. We propose the following definition, ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
173,
|
| 257 |
+
695,
|
| 258 |
+
823,
|
| 259 |
+
724
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "Definition 1. $( i , j , m , n )$ is a $\\delta$ -parallelogram in the representation $\\mathbf { R } \\equiv \\left[ \\mathbf { E } _ { 0 } , \\cdots , \\mathbf { E } _ { p - 1 } \\right] i f$ ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
727,
|
| 269 |
+
779,
|
| 270 |
+
743
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "equation",
|
| 276 |
+
"img_path": "images/b64c0de131873fc3371a9c196107311b16acc9f198345f19a6ffaf7617556fc7.jpg",
|
| 277 |
+
"text": "$$\n| ( \\mathbf { E } _ { i } + \\mathbf { E } _ { j } ) - ( \\mathbf { E } _ { m } + \\mathbf { E } _ { n } ) | \\leq \\delta .\n$$",
|
| 278 |
+
"text_format": "latex",
|
| 279 |
+
"bbox": [
|
| 280 |
+
392,
|
| 281 |
+
750,
|
| 282 |
+
606,
|
| 283 |
+
767
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "In the following derivations, we can take $\\delta$ , which is a small threshold to tolerate numerical errors, to be zero. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
173,
|
| 292 |
+
779,
|
| 293 |
+
825,
|
| 294 |
+
809
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "Proposition 1. When the training loss is zero, any parallelogram $( i , j , m , n )$ in representation R satisfies $i + j = m + n$ . ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
173,
|
| 303 |
+
811,
|
| 304 |
+
823,
|
| 305 |
+
840
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Proof. Suppose that this is not the case, i.e., suppose $\\mathbf { E } _ { i } + \\mathbf { E } _ { j } = \\mathbf { E } _ { m } + \\mathbf { E } _ { n }$ but $i + j \\neq m + n$ , then $\\mathbf { Y } _ { i + j } = \\bar { \\mathrm { D e c } } ( \\mathbf { E } _ { i } + \\mathbf { E } _ { j } ) = \\mathrm { D e c } ( \\mathbf { E } _ { m } + \\mathbf { E } _ { n } ) = \\bar { \\mathbf { Y } } _ { m + n }$ where the first and last equalities come from the zero training loss assumption. However, since $i + j \\neq m + n$ , we have $\\mathbf { Y } _ { i + j } \\neq \\mathbf { Y } _ { n + m }$ (almost surely in the regression task), a contradiction. □ ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
173,
|
| 314 |
+
854,
|
| 315 |
+
825,
|
| 316 |
+
911
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "image",
|
| 322 |
+
"img_path": "images/d8a505118aa04e4fe7eee8c0bb3a01ebac68a692b2db9a5ad5553b7c00dbb680.jpg",
|
| 323 |
+
"image_caption": [
|
| 324 |
+
"Figure 3: We compute accuracy (of the full dataset) either measured empirically Acc, or predicted from the representation of the embeddings $\\widehat { \\mathrm { A c c } }$ . These two accuracies as a function of training data fraction are plotted in (a)(b), and their agreement is shown in (c). "
|
| 325 |
+
],
|
| 326 |
+
"image_footnote": [],
|
| 327 |
+
"bbox": [
|
| 328 |
+
178,
|
| 329 |
+
89,
|
| 330 |
+
823,
|
| 331 |
+
258
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "It is convenient to define the permissible parallelogram set associated with a training dataset $D$ (“permissible” means consistent with $100 \\%$ training accuracy) as ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
171,
|
| 340 |
+
342,
|
| 341 |
+
823,
|
| 342 |
+
371
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "equation",
|
| 348 |
+
"img_path": "images/7fa867f1cdc1bd0019ba795c4ddb07c75262c2620d55f40046c7dd8d3930f5a7.jpg",
|
| 349 |
+
"text": "$$\nP _ { 0 } ( D ) = \\{ ( i , j , m , n ) | ( i , j ) \\in D , ( m , n ) \\in D , i + j = m + n \\} .\n$$",
|
| 350 |
+
"text_format": "latex",
|
| 351 |
+
"bbox": [
|
| 352 |
+
282,
|
| 353 |
+
378,
|
| 354 |
+
714,
|
| 355 |
+
397
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "For simplicity, we denote $P _ { 0 } \\equiv P _ { 0 } ( D _ { 0 } )$ . Given a representation $\\mathbf { R }$ , we can check how many permissible parallelograms actually exist in $\\mathbf { R }$ within error $\\delta$ , so we define the parallelogram set corresponding to $\\mathbf { R }$ as ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
173,
|
| 364 |
+
404,
|
| 365 |
+
825,
|
| 366 |
+
446
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "equation",
|
| 372 |
+
"img_path": "images/b3f96f1564f4a6f78d567da6df91d6512407e51bc2a4b8bc543e48c51f00d510.jpg",
|
| 373 |
+
"text": "$$\n\\begin{array} { r } { P ( \\mathbf { R } , \\delta ) = \\{ ( i , j , m , n ) | ( i , j , m , n ) \\in P _ { 0 } , | ( \\mathbf { E } _ { i } + \\mathbf { E } _ { j } ) - ( \\mathbf { E } _ { m } + \\mathbf { E } _ { n } ) | \\leq \\delta \\} . } \\end{array}\n$$",
|
| 374 |
+
"text_format": "latex",
|
| 375 |
+
"bbox": [
|
| 376 |
+
250,
|
| 377 |
+
454,
|
| 378 |
+
748,
|
| 379 |
+
472
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "For brevity we will write $P ( \\mathbf { R } )$ , suppressing the dependence on $\\delta$ . We define the representation quality index (RQI) as ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
478,
|
| 389 |
+
823,
|
| 390 |
+
507
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "equation",
|
| 396 |
+
"img_path": "images/612893b67a60eba7b2dbb60aa0644975b0ac84a4f0603eb946186a8a77c12fb0.jpg",
|
| 397 |
+
"text": "$$\n\\mathrm { R Q I } ( \\mathbf { R } ) = \\frac { | P ( \\mathbf { R } ) | } { | P _ { 0 } | } \\in [ 0 , 1 ] .\n$$",
|
| 398 |
+
"text_format": "latex",
|
| 399 |
+
"bbox": [
|
| 400 |
+
401,
|
| 401 |
+
507,
|
| 402 |
+
596,
|
| 403 |
+
541
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "We will use the term linear representation or linear structure to refer to a representation whose embeddings are of the form $\\mathbf { E } _ { k } = \\mathbf { a } + k \\mathbf { b } \\left( k = 0 , \\cdots , p - 1 ; \\mathbf { a } , \\mathbf { b } \\in \\mathbb { R } ^ { d _ { \\mathrm { i n } } } \\right)$ . A linear representation has $\\operatorname { R Q I } = 1$ , while a random representation (sampled from, say, a normal dstribution) has $\\mathrm { R Q I } = 0$ with high probability. ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
173,
|
| 412 |
+
545,
|
| 413 |
+
825,
|
| 414 |
+
602
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "Quantitatively, we denote the “predicted accuracy” $\\widehat { \\mathrm { A c c } }$ as the accuracy achievable on the whole dataset given the representation $\\mathbf { R }$ (see Appendix D for the full details). In Figure 3, we see that the predicted $\\widehat { \\mathrm { A c c } }$ aligns well with the true accuracy Acc, establishing good evidence that structured representation of input embeddings leads to generalization. We use an example to illustrate the origin of generalization here. In the setup of Figure 2 (b), suppose the decoder can achieve zero training loss and $\\mathbf { E } _ { 6 } + \\mathbf { E } _ { 8 }$ is a training sample hence $\\mathrm { D e c } ( { \\bf E } _ { 6 } + { \\bf E } _ { 8 } ) = { \\bf Y } _ { 1 4 }$ . At validation time, the decoder is tasked with predicting a validation sample $\\mathbf { E } _ { 5 } + \\mathbf { E } _ { 9 }$ . Since $( 5 , 9 , 6 , 8 )$ forms a parallelogram such that $\\mathbf { E } _ { 5 } + \\mathbf { E } _ { 9 } = \\mathbf { E } _ { 6 } + \\mathbf { E } _ { 8 }$ , the decoder can predict the validation sample correctly because $\\mathrm { D e c } ( \\mathbf { E } _ { 5 } + \\mathbf { E } _ { 9 } ) = \\mathrm { D e c } ( \\mathbf { E } _ { 6 } + \\mathbf { E } _ { 8 } ) = \\mathbf { Y } _ { 1 4 } ,$ . ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
173,
|
| 423 |
+
608,
|
| 424 |
+
826,
|
| 425 |
+
739
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "3.2 The dynamics of embedding vectors ",
|
| 432 |
+
"text_level": 1,
|
| 433 |
+
"bbox": [
|
| 434 |
+
176,
|
| 435 |
+
756,
|
| 436 |
+
462,
|
| 437 |
+
771
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "Suppose that we have an ideal model $\\mathcal { M } ^ { * } = ( \\mathrm { D e c } ^ { * } , { \\bf R } ^ { * } )$ such that:2 ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
173,
|
| 446 |
+
781,
|
| 447 |
+
614,
|
| 448 |
+
797
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "• (1) ${ \\mathfrak { M } } ^ { * }$ can achieve zero training loss; \n• (2) ${ \\mathfrak { M } } ^ { * }$ has an injective decoder, i.e., $\\mathrm { D e c } ^ { * } ( \\mathbf { x } _ { 1 } ) \\neq \\mathrm { D e c } ^ { * } ( \\mathbf { x } _ { 2 } )$ for any $\\mathbf { x } _ { 1 } \\neq \\mathbf { x } _ { 2 }$ . ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
204,
|
| 457 |
+
809,
|
| 458 |
+
730,
|
| 459 |
+
845
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "Then Proposition 2 provides a mechanism for the formation of parallelograms. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
173,
|
| 468 |
+
857,
|
| 469 |
+
689,
|
| 470 |
+
873
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "image",
|
| 476 |
+
"img_path": "images/8682de6492ababd71a56cbc9713e1dbc840e7595ade48ed9156adc9f347f337d.jpg",
|
| 477 |
+
"image_caption": [
|
| 478 |
+
"Figure 4: (a) The effective theory predicts a phase transition in the probability of obtaining a linear representation around $r _ { c } = 0 . 4$ . (b) Empirical results display a phase transition of RQI around $r _ { c } = 0 . 4$ , in agreement with the theory (the blue line shows the median of multiple random seeds). The evolution of 1D representations predicted by the effective theory or obtained from neural network training (shown in (c) and (d) respectively) agree creditably well. "
|
| 479 |
+
],
|
| 480 |
+
"image_footnote": [],
|
| 481 |
+
"bbox": [
|
| 482 |
+
176,
|
| 483 |
+
90,
|
| 484 |
+
820,
|
| 485 |
+
234
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Proposition 2. If a training set $D$ contains two samples $( i , j )$ and $( m , n )$ with $i + j = m + n $ then ${ \\mathfrak { M } } ^ { * }$ learns a representation $\\mathbf { R } ^ { * }$ such that $\\mathbf { E } _ { i } + \\mathbf { E } _ { j } = \\mathbf { E } _ { m } + \\mathbf { E } _ { n }$ , i.e., $( i , j , m , n )$ forms $a$ parallelogram. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
339,
|
| 495 |
+
823,
|
| 496 |
+
383
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "Proof. Due to the zero training loss assumption, we have $\\mathrm { D e c } ^ { * } ( \\mathbf { E } _ { i } + \\mathbf { E } _ { j } ) = \\mathbf { Y } _ { i + j } = \\mathbf { Y } _ { m + n } =$ $\\mathrm { D e c } ^ { * } ( \\mathbf { E } _ { m } + \\mathbf { E } _ { n } )$ . Then the injectivity of ${ \\mathrm { D e c } } ^ { * }$ implies $\\mathbf { E } _ { i } + \\mathbf { E } _ { j } = \\mathbf { E } _ { m } + \\mathbf { \\bar { E } } _ { n }$ . ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
397,
|
| 506 |
+
823,
|
| 507 |
+
426
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 4
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "The dynamics of the trained embedding vectors are determined by various factors interacting in complex ways, for instance: the details of the decoder architecture, the optimizer hyperparameters, and the various kinds of implicit regularization induced by the training procedure. We will see that the dynamics of normalized quantities, namely, the normalized embeddings at time $t$ , defined as $\\begin{array} { r } { \\tilde { \\mathbf { E } } _ { k } ^ { ( t ) } = \\frac { \\mathbf { E } _ { k } ^ { ( t ) } - \\mu _ { t } } { \\sigma _ { t } } } \\end{array}$ , where $\\begin{array} { r } { \\mu _ { t } = \\frac { 1 } { p } \\sum _ { k } \\mathbf { E } _ { k } ^ { ( t ) } } \\end{array}$ and $\\begin{array} { r } { \\sigma _ { t } = \\frac { 1 } { p } \\sum _ { k } | \\mathbf { E } _ { k } ^ { ( t ) } - \\mu _ { t } | ^ { 2 } } \\end{array}$ , can be qualitatively described by a simple effective loss (in the physics effective theory sense). We will assume that the normalized embedding vectors obey a gradient flow for an effective loss function of the form ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
173,
|
| 516 |
+
440,
|
| 517 |
+
826,
|
| 518 |
+
546
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "equation",
|
| 524 |
+
"img_path": "images/a7c857a9a60847b64ea2e1ecfcdca4edddd8d88ef5504150afa30d4eab1f2d44.jpg",
|
| 525 |
+
"text": "$$\n\\frac { d \\tilde { \\mathbf { E } } _ { i } } { d t } = - \\frac { \\partial \\ell _ { \\mathrm { e f f } } } { \\partial \\tilde { \\mathbf { E } } _ { i } } ,\n$$",
|
| 526 |
+
"text_format": "latex",
|
| 527 |
+
"bbox": [
|
| 528 |
+
446,
|
| 529 |
+
553,
|
| 530 |
+
550,
|
| 531 |
+
590
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "equation",
|
| 537 |
+
"img_path": "images/f4512923e2fc038d22faf621acb71b7638e8519a046774680cf01b6f1c8338b7.jpg",
|
| 538 |
+
"text": "$$\n\\ell _ { \\mathrm { e f f } } = \\frac { \\ell _ { 0 } } { Z _ { 0 } } , \\quad \\ell _ { 0 } \\equiv \\sum _ { ( i , j , m , n ) \\in P _ { 0 } ( D ) } | \\tilde { \\mathbf { E } } _ { i } + \\tilde { \\mathbf { E } } _ { j } - \\tilde { \\mathbf { E } } _ { m } - \\tilde { \\mathbf { E } } _ { n } | ^ { 2 } / | P _ { 0 } ( D ) | , \\quad Z _ { 0 } \\equiv \\sum _ { k } | \\tilde { \\mathbf { E } } _ { k } | ^ { 2 } ,\n$$",
|
| 539 |
+
"text_format": "latex",
|
| 540 |
+
"bbox": [
|
| 541 |
+
199,
|
| 542 |
+
607,
|
| 543 |
+
777,
|
| 544 |
+
645
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "where $| \\cdot |$ denotes Euclidean vector norm. Note that the embeddings do not collapse to the trivial solution $\\mathbf { E } _ { 0 } = \\cdot \\cdot \\cdot = \\mathbf { E } _ { p - 1 } = 0$ unless initialized as such, because two conserved quantities exist, as proven in Appendix F: ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
176,
|
| 553 |
+
651,
|
| 554 |
+
826,
|
| 555 |
+
693
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "equation",
|
| 561 |
+
"img_path": "images/a4ac744d22ff186459f66ccaddae4eddd12bd1b6f97816018102518a5ea1bc9b.jpg",
|
| 562 |
+
"text": "$$\n\\mathbf { C } = \\sum _ { k } \\mathbf { E } _ { k } , \\quad Z _ { 0 } = \\sum _ { k } | \\mathbf { E } _ { k } | ^ { 2 } .\n$$",
|
| 563 |
+
"text_format": "latex",
|
| 564 |
+
"bbox": [
|
| 565 |
+
390,
|
| 566 |
+
691,
|
| 567 |
+
607,
|
| 568 |
+
726
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "We shall now use the effective dynamics to explain empirical observations such as the existence of a critical training set size for generalization. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
734,
|
| 578 |
+
823,
|
| 579 |
+
763
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "Degeneracy of ground states (loss optima) We define ground states as those representations satisfying $\\ell _ { \\mathrm { e f f } } = 0$ , which requires the following linear equations to hold: ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
171,
|
| 588 |
+
768,
|
| 589 |
+
821,
|
| 590 |
+
797
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "equation",
|
| 596 |
+
"img_path": "images/7e79e47f682c75a686eb0934e0007bdec7347837ca9f328cdd40f2a6f945258c.jpg",
|
| 597 |
+
"text": "$$\nA ( P ) = \\{ \\mathbf { E } _ { i } + \\mathbf { E } _ { j } = \\mathbf { E } _ { m } + \\mathbf { E } _ { n } | ( i , j , m , n ) \\in P \\} .\n$$",
|
| 598 |
+
"text_format": "latex",
|
| 599 |
+
"bbox": [
|
| 600 |
+
330,
|
| 601 |
+
804,
|
| 602 |
+
666,
|
| 603 |
+
821
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Since each embedding dimension obeys the same set of linear equations, we will assume, without loss of generality, that $d _ { \\mathrm { i n } } = 1$ . The dimension of the null space of $A ( P )$ , denoted as $n _ { 0 }$ , is the number of degrees of freedom of the ground states. Given a set of parallelograms implied by a training dataset $D$ , the nullity of $A ( P ( D ) )$ could be obtained by computing the singular values $0 \\leq \\sigma _ { 1 } \\leq \\cdot \\cdot \\cdot \\leq \\sigma _ { p }$ We always have $n _ { 0 } \\geq 2$ , i.e., $\\sigma _ { 1 } = \\sigma _ { 2 } = 0$ because the nullity of $A ( P _ { 0 } )$ , the set of linear equations given by all possible parallelograms, is $\\mathrm { N u l l i t y } ( A ( P _ { 0 } ) ) = 2$ which can be attributed to two degrees of freedom (translation and scaling). If $n _ { 0 } = 2$ , the representation is unique up to translations and scaling factors, and the embeddings have the form $\\mathbf { E } _ { k } = \\mathbf { a } + k \\mathbf { b }$ . Otherwise, when $n _ { 0 } > 2$ , the representation is not constrained enough such that all the embeddings lie on a line. ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
173,
|
| 612 |
+
827,
|
| 613 |
+
825,
|
| 614 |
+
912
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 4
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
90,
|
| 624 |
+
823,
|
| 625 |
+
133
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 5
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "We present theoretical predictions alongside empirical results for addition $\\boldsymbol { p } = 1 0 ^ { \\circ } ,$ ) in Figure 4. As shown in Figure 4 (a), our effective theory predicts that the probability that the training set implies a unique linear structure (which would result in perfect generalization) depends on the training data fraction and has a phase transition around $r _ { c } = 0 . 4$ . Empirical results from training different models are shown in Figure 4 (b). The number of steps to reach $\\mathrm { R Q I } > 0 . 9 5$ is seen to have a phase transition at $r _ { c } = 0 . 4$ , agreeing with the proposed effective theory and with the empirical findings in [1]. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
173,
|
| 634 |
+
138,
|
| 635 |
+
825,
|
| 636 |
+
223
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Time towards the linear structure We define the Hessian matrix of $\\ell _ { 0 }$ as ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
228,
|
| 646 |
+
661,
|
| 647 |
+
243
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "equation",
|
| 653 |
+
"img_path": "images/710f2852fcdda452d0414166012100586158db1f24bc385f00b7e401dbdc8ad4.jpg",
|
| 654 |
+
"text": "$$\n\\mathbf { H } _ { i j } = \\frac { 1 } { Z _ { 0 } } \\frac { \\partial ^ { 2 } \\ell _ { 0 } } { \\partial \\mathbf { E } _ { i } \\partial \\mathbf { E } _ { j } } ,\n$$",
|
| 655 |
+
"text_format": "latex",
|
| 656 |
+
"bbox": [
|
| 657 |
+
428,
|
| 658 |
+
247,
|
| 659 |
+
566,
|
| 660 |
+
284
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Note that $\\begin{array} { r } { \\ell _ { \\mathrm { e f f } } = \\frac { 1 } { 2 } \\mathbf { R } ^ { T } \\mathbf { H } \\mathbf { R } } \\end{array}$ , $\\mathbf { R } = [ \\mathbf { E } _ { 0 } , \\mathbf { E } _ { 1 } , \\cdots , \\mathbf { E } _ { p - 1 } ]$ , so the gradient descent is linear, i.e., ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
173,
|
| 669 |
+
287,
|
| 670 |
+
767,
|
| 671 |
+
305
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "equation",
|
| 677 |
+
"img_path": "images/c3aa6593093d402a3cba032466f3984819bede5c32c03fac13b3bb0c0bb6475f.jpg",
|
| 678 |
+
"text": "$$\n\\frac { d \\mathbf { R } } { d t } = - \\mathbf { H } \\mathbf { R } .\n$$",
|
| 679 |
+
"text_format": "latex",
|
| 680 |
+
"bbox": [
|
| 681 |
+
449,
|
| 682 |
+
310,
|
| 683 |
+
547,
|
| 684 |
+
340
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 5
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "If $\\mathbf { H }$ has eigenvalues $\\lambda _ { i } = \\sigma _ { i } ^ { 2 }$ (sorted in increasing order) and eigenvectors $\\bar { \\bf v } _ { i }$ , and we have the initial condition $\\begin{array} { r } { { \\bf R } ( t = 0 ) = \\sum _ { i } a _ { i } { \\bar { \\bf v } } _ { i } } \\end{array}$ , then we have $\\begin{array} { r } { { \\bf R } ( t ) = \\sum _ { i } a _ { i } \\bar { \\bf v } _ { i } e ^ { - \\lambda _ { i } t } } \\end{array}$ . The first two eigenvalues vanish and $t _ { h } = 1 / \\lambda _ { 3 }$ determines the timescale for the slowest component to decrease by a factor of $e$ . We call $\\lambda _ { 3 }$ the grokking rate. When the step size is $\\eta$ , the corresponding number of steps is $n _ { h } = t _ { h } / \\eta = 1 / ( \\lambda _ { 3 } \\bar { \\eta _ { } } )$ . ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
173,
|
| 693 |
+
353,
|
| 694 |
+
825,
|
| 695 |
+
426
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "We verify the above analysis with empirical results. Figure 4 (c)(d) show the trajectories obtained from the effective theory and from neural network training, respectively. The 1D neural representation in Figure 4 (d) are manually normalized to zero mean and unit variance. The two trajectories agree qualitatively, and it takes about $3 n _ { h }$ steps for two trajectories to converge to the linear structure. The quantitative differences might be due to the absence of the decoder in the effective theory, which assumes the decoder to take infinitesimal step sizes. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
173,
|
| 704 |
+
430,
|
| 705 |
+
825,
|
| 706 |
+
513
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "Dependence of grokking on data size Note that $\\ell _ { \\mathrm { e f f } }$ involves averaging over parallelograms in the training set, it is dependent on training data size, so is $\\lambda _ { 3 }$ . In Figure 5 (a), we plot the dependence of $\\lambda _ { 3 }$ on training data fraction. There are many datasets with the same data size, so $\\lambda _ { 3 }$ is a probabilistic function of data size. ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
174,
|
| 715 |
+
520,
|
| 716 |
+
825,
|
| 717 |
+
575
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 5
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "Two insights on grokking can be extracted from this plot: (i) When the data fraction is below some threshold (around 0.4), $\\lambda _ { 3 }$ is zero with high probability, corresponding to no generalization. This again verifies our critical point in Figure 4. (ii) When data size is above the threshold, $\\lambda _ { 3 }$ (on average) is an increasing function of data size. This implies that grokking time $t \\sim 1 / \\lambda _ { 3 }$ decreases as training data size becomes larger, an important observation from [1]. ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
174,
|
| 726 |
+
582,
|
| 727 |
+
825,
|
| 728 |
+
652
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 5
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "To verify our effective theory, we compare the grokking steps obtained from real neural network training (defined as steps to $\\mathrm { R Q I } > 0 . 9 5 $ , and those predicted by our theory $\\begin{array} { r } { t _ { \\mathrm { t h } } \\sim \\frac { 1 } { \\lambda _ { 3 } \\eta } } \\end{array}$ $\\dot { \\eta }$ is the embedding learning rate), shown in Figure 5 (b). The theory agrees qualitatively with neural networks, showing the trend of decreasing grokking steps as increasing data size. The quantitative differences might be explained as the gap between our effective loss and actual loss. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
174,
|
| 737 |
+
657,
|
| 738 |
+
825,
|
| 739 |
+
731
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 5
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "Limitations of the effective theory While our theory defines an effective loss based on the Euclidean distance between embeddings $\\mathbf { E } _ { i } + \\mathbf { E } _ { j }$ and $ { \\mathbf { E } } _ { n } + { \\mathbf { E } } _ { m }$ , one could imagine generalizing the theory to define a broader notion of parallogram given by some other metric on the representation space. For instance, if we have a decoder like in Figure 2 (d) then the distance between distinct representations within the same “pizza slice” is low, meaning that representations arranged not in parallelograms w.r.t. the Euclidean metric may be parallelograms with respect to the metric defined by the decoder. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
174,
|
| 748 |
+
734,
|
| 749 |
+
825,
|
| 750 |
+
820
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 5
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "4 Delayed Generalization: A Phase Diagram ",
|
| 757 |
+
"text_level": 1,
|
| 758 |
+
"bbox": [
|
| 759 |
+
173,
|
| 760 |
+
838,
|
| 761 |
+
560,
|
| 762 |
+
856
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 5
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "So far, we have (1) observed empirically that generalization on algorithmic datasets corresponds with the emergence of well-structured representations, (2) defined a notion of representation quality in a toy setting and shown that it predicts generalization, and (3) developed an effective theory to describe the learning dynamics of the representations in the same toy setting. We now study how optimizer hyperparameters affect high-level learning performance. In particular, we develop phase diagrams for how learning performance depends on the representation learning rate, decoder learning rate and the decoder weight decay. These parameters are of interest since they most explicitly regulate a kind of competition between the encoder and decoder, as we elaborate below. ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
174,
|
| 771 |
+
869,
|
| 772 |
+
823,
|
| 773 |
+
911
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 5
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "image",
|
| 779 |
+
"img_path": "images/790df465da9461408a8b7bb795949bbbd6da09d372793ab426437bf1da28416a.jpg",
|
| 780 |
+
"image_caption": [
|
| 781 |
+
"Figure 5: Effective theory explains the dependence of grokking time on data size, for the addition task. (a) Dependence of $\\lambda _ { 3 }$ on training data fraction. Above the critical data fraction (around 0.4), as data size becomes larger, $\\lambda _ { 3 }$ increases hence grokking time $t \\sim 1 / \\lambda _ { 3 }$ (predicted by our effective theory) decreases. (b) Comparing grokking steps (defined as $\\mathrm { R Q I } > 0 . 9 5 ) ,$ predicted by the effective theory with real neural network results. $\\eta = 1 \\bar { 0 } ^ { - 3 }$ is the learning rate of the embeddings. "
|
| 782 |
+
],
|
| 783 |
+
"image_footnote": [],
|
| 784 |
+
"bbox": [
|
| 785 |
+
207,
|
| 786 |
+
92,
|
| 787 |
+
790,
|
| 788 |
+
262
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 6
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "",
|
| 795 |
+
"bbox": [
|
| 796 |
+
174,
|
| 797 |
+
377,
|
| 798 |
+
825,
|
| 799 |
+
446
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "4.1 Phase diagram of a toy model ",
|
| 806 |
+
"text_level": 1,
|
| 807 |
+
"bbox": [
|
| 808 |
+
176,
|
| 809 |
+
474,
|
| 810 |
+
418,
|
| 811 |
+
489
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 6
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "Training details We update the representation and the decoder with different optimizers. For the 1D embeddings, we use the Adam optimizer with learning rate $[ 1 0 ^ { - 5 } , 1 0 ^ { - 2 } ]$ and zero weight decay. For the decoder, we use an AdamW optimizer with the learning rate in $[ 1 0 ^ { - 5 } , 1 0 ^ { - 2 } ]$ and the weight decay in [0, 10] (regression) or $[ 0 , 2 0 ]$ (classification). For training/validation spliting, we choose 45/10 for non-modular addition $\\begin{array} { r } { p = 1 0 , } \\end{array}$ ) and 24/12 for the permutation group $S _ { 3 }$ . We hard-code addition or matrix multiplication (details in Appendix H) in the decoder for the addition group and the permutation group, respectively. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
173,
|
| 820 |
+
503,
|
| 821 |
+
825,
|
| 822 |
+
602
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 6
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "For each choice of learning rate and weight decay, we compute the number of steps to reach high $( 9 0 \\% )$ training/validation accuracy. The 2D plane is split into four phases: comprehension, grokking, memorization and confusion, defined in Table 1 in Appendix A. Both comprehension and grokking are able to generalize (in the “Goldilocks zone”), although the grokking phase has delayed generalization. Memorization is also called overfitting, and confusion means failure to even memorize training data. Figure 6 shows the phase diagrams for the addition group and the permutation group. They display quite rich phenomena. ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
607,
|
| 832 |
+
825,
|
| 833 |
+
704
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 6
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "Competition between representation learning and decoder overfitting In the regression setup of the addition dataset, we show how the competition between representation learning and decoder learning (which depend on both learning rate and weight decay, among other things) lead to different learning phases in Figure 6 (a). As expected, a fast decoder coupled with slow representation learning (bottom right) lead to memorization. In the opposite extreme, although an extremely slow decoder coupled with fast representation learning (top left) will generalize in the end, the generalization time is long due to the inefficient decoder training. The ideal phase (comprehension) requires representation learning to be faster, but not too much, than the decoder. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
173,
|
| 842 |
+
710,
|
| 843 |
+
825,
|
| 844 |
+
821
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 6
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "Drawing from an analogy to physical systems, one can think of embedding vectors as a group of particles. In our effective theory from Section 3.2, the dynamics of the particles are described only by their relative positions, in that sense, structure forms mainly due to inter-particle interactions (in reality, these interactions are mediated by the decoder and the loss). The decoder plays the role of an environment exerting external forces on the embeddings. If the magnitude of the external forces are small/large one can expect better/worse representations. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
828,
|
| 854 |
+
823,
|
| 855 |
+
911
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 6
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "image",
|
| 861 |
+
"img_path": "images/9369694209dd16f219ef635b4e040381732aee4942d26c6e5b15ac545eac2aa0.jpg",
|
| 862 |
+
"image_caption": [
|
| 863 |
+
"Figure 6: Phase diagrams of learning for the addition group and the permutation group. (a) shows the competition between representation and decoder. (b)(c)(d): each phase diagram contains four phases: comprehension, grokking, memorization and confusion, defined in Table 1. In (b)(c)(d), grokking is sandwiched between comprehension and memorization. "
|
| 864 |
+
],
|
| 865 |
+
"image_footnote": [],
|
| 866 |
+
"bbox": [
|
| 867 |
+
269,
|
| 868 |
+
92,
|
| 869 |
+
725,
|
| 870 |
+
473
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 7
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Universality of phase diagrams We fix the embedding learning rate to be $1 0 ^ { - 3 }$ and sweep instead decoder weight decay in Figure 6 (b)(c)(d). The phase diagrams correspond to addition regression (b), addition classification (c) and permutation regression (d), respectively. Common phenomena emerge from these different tasks: (i) they all include four phases; (ii) The top right corner (a fast and capable decoder) is the memorization phase; (iii) the bottom right corner (a fast and simple decoder) is the confusion phase; (iv) grokking is sandwiched between comprehension and memorization, which seems to imply that it is an undesirable phase that stems from improperly tuned hyperparameters. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
565,
|
| 880 |
+
825,
|
| 881 |
+
662
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "4.2 Beyond the toy model ",
|
| 888 |
+
"text_level": 1,
|
| 889 |
+
"bbox": [
|
| 890 |
+
176,
|
| 891 |
+
678,
|
| 892 |
+
362,
|
| 893 |
+
693
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 7
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "We conjecture that many of the principles which we saw dictate the training dynamics in the toy model also apply more generally. Below, we will see how our framework generalizes to transformer architectures for the task of addition modulo $p$ , a minimal reproducible example of the original grokking paper [1]. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
704,
|
| 903 |
+
825,
|
| 904 |
+
761
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 7
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "We first encode $p = 5 3$ integers into 256D learnable embeddings, then pass two integers to a decoderonly transformer architecture. For simplicity, we do not encode the operation symbols here. The outputs from the last layer are concatenated and passed to a linear layer for classification. Training both the encoder and the decoder with the same optimizer (i.e., with the same hyperparameters) leads to the grokking phenomenon. Generalization appears much earlier once we lower the effective decoder capacity with weight decay (full phase diagram in Figure 7). ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
765,
|
| 914 |
+
825,
|
| 915 |
+
849
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 7
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Early on, the model is able to perfectly fit the training set while having no generalization. We study the embeddings at different training times and find that neither PCA (shown in Figure 1) nor t-SNE (not shown here) reveal any structure. Eventually, validation accuracy starts to increase, and perfect generalization coincides with the PCA projecting the embeddings into a circle in 2D. Of course, no choice of dimensionality reduction is guaranteed to find any structure, and thus, it is challenging to show explicitly that generalization only occurs when a structure exists. Nevertheless, the fact that, when coupled with the implicit regularization of the optimizer for sparse solutions, such a clear structure appears in a simple PCA so quickly at generalization time suggests that our analysis in the toy setting is applicable here as well. This is also seen in the evolution of the entropy of the explained variance ratio in the PCA of the embeddings (defined as $\\begin{array} { r } { S = - \\sum _ { i } \\sigma _ { i } \\log \\sigma _ { i } } \\end{array}$ where $\\sigma _ { i }$ is the fractional variance explained by the ith principal component). As seen in Figure 7, the entropy increases up to generalization time then decreases drastically afterwards which would be consistent with the conjecture that generalization occurs when a low-dimensional structure is discovered. The decoder then primarily relies on the information in this low-dimensional manifold and essentially “prunes” the rest of the high-dimensional embedding space. Another interesting insight appears when we project the embeddings at initialization onto the principal axes at the end of training. Some of the structure required for generalization exists before training hinting at a connection with the Lottery Ticket Hypothesis. See Appendix K for more details. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
174,
|
| 924 |
+
856,
|
| 925 |
+
825,
|
| 926 |
+
911
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 7
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "image",
|
| 932 |
+
"img_path": "images/f97ba3b50d927fef5d6356bddf07766187a7aa148dc09b2096966b4a90acf17f.jpg",
|
| 933 |
+
"image_caption": [
|
| 934 |
+
"Figure 7: Left: Evolution of the effective dimension of the embeddings (defined as the exponential of the entropy) during training and evaluated over 100 seeds. Center: Effect of dropout on speeding up generalization. Right: Phase diagram of the transformer architecture. A scan is performed over the weight decay and learning rate of the decoder while the learning rate of the embeddings is kept fixed at $1 \\mathrm { { 0 } ^ { - 3 } }$ (with zero weight decay). "
|
| 935 |
+
],
|
| 936 |
+
"image_footnote": [],
|
| 937 |
+
"bbox": [
|
| 938 |
+
205,
|
| 939 |
+
94,
|
| 940 |
+
792,
|
| 941 |
+
233
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 8
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "",
|
| 948 |
+
"bbox": [
|
| 949 |
+
173,
|
| 950 |
+
338,
|
| 951 |
+
825,
|
| 952 |
+
532
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "In Figure 7 (right), we show a comparable phase diagram to Figure 6 evaluated now in the transformer setting. Note that, as opposed to the setting in [1], weight decay has only been applied to the decoder and not to the embedding layer. Contrary to the toy model, a certain amount of weight decay proves beneficial to generalization and speeds it up significantly. We conjecture that this difference comes from the different embedding dimensions. With a highly over-parameterized setting, a non-zero weight decay gives a crucial incentive to reduce complexity in the decoder and help generalize in fewer steps. This is subject to further investigation. We also explore the effect of dropout layers in the decoder blocks of the transformer. With a significant dropout rate, the generalization time can be brought down to under $1 0 ^ { 3 }$ steps and the grokking phenomenon vanishes completely. The overall trend suggests that constraining the decoder with the same tools used to avoid overfitting reduces generalization time and can avoid the grokking phenomenon. This is also observed in an image classification task where we were able to induce grokking. See Appendix J for more details. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
174,
|
| 961 |
+
539,
|
| 962 |
+
825,
|
| 963 |
+
704
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 8
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "4.3 Grokking Experiment on MNIST ",
|
| 970 |
+
"text_level": 1,
|
| 971 |
+
"bbox": [
|
| 972 |
+
176,
|
| 973 |
+
722,
|
| 974 |
+
444,
|
| 975 |
+
737
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 8
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "We now demonstrate, for the first time, that grokking (significantly delayed generalization) is a more general phenomenon in machine learning that can occur not only on algorithmic datasets, but also on mainstream benchmark datasets. In particular, we exhibit grokking on MNIST in Figure 8 and demonstrate that we can control grokking by varying optimization hyperparameters. More details on the experimental setup are in Appendix J. ",
|
| 982 |
+
"bbox": [
|
| 983 |
+
174,
|
| 984 |
+
747,
|
| 985 |
+
825,
|
| 986 |
+
818
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 8
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "5 Related work ",
|
| 993 |
+
"text_level": 1,
|
| 994 |
+
"bbox": [
|
| 995 |
+
174,
|
| 996 |
+
837,
|
| 997 |
+
316,
|
| 998 |
+
854
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 8
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Relatively few works have analyzed the phenomenon of grokking. [2] describe the circuit that transformers use to perform modular addition, track its formation over training, and broadly suggest that grokking is related to the phenomenon of “phase changes” in neural network training. [3, 4] provided earlier speculative, informal conjectures on grokking [3, 4]. Our work is related to the following broad research directions: ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
176,
|
| 1007 |
+
869,
|
| 1008 |
+
825,
|
| 1009 |
+
911
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 8
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "image",
|
| 1015 |
+
"img_path": "images/ce9758fc290cfb65a5d604010e550b1f2db4f6660cf61449cd96630f3e657035.jpg",
|
| 1016 |
+
"image_caption": [
|
| 1017 |
+
"Figure 8: Left: Training curves for a run on MNIST, in the setting where we observe grokking. Right: Phase diagram with the four phases of learning dynamics on MNIST. "
|
| 1018 |
+
],
|
| 1019 |
+
"image_footnote": [],
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
205,
|
| 1022 |
+
99,
|
| 1023 |
+
795,
|
| 1024 |
+
290
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 9
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
354,
|
| 1034 |
+
823,
|
| 1035 |
+
383
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 9
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Learning mathematical structures [5] trains a neural network to learn arithmetic operation from pictures of digits, but they do not observe grokking due to their abundant training data. Beyond arithmetic relations, machine learning has been applied to learn other mathematical structures, including geometry [6], knot theory [7] and group theory [8]. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
390,
|
| 1045 |
+
825,
|
| 1046 |
+
445
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Double descent Grokking is somewhat reminiscent of the phenomena of “epoch-wise” double descent [9], where generalization can improve after a period of overfitting. [10] find that regularization can mitigate double descent, similar perhaps to how weight decay influences grokking. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
452,
|
| 1056 |
+
821,
|
| 1057 |
+
494
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 9
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Representation learning Representation learning lies at the core of machine learning [11–14]. Representation quality is usually measured by (perhaps vague) semantic meanings or performance on downstream tasks. In our study, the simplicity of arithmetic datasets allows us to define representation quality and study evolution of representations in a quantitative way. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
174,
|
| 1066 |
+
500,
|
| 1067 |
+
825,
|
| 1068 |
+
555
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 9
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Physics of learning Physics-inspired tools have proved to be useful in understanding deep learning from a theoretical perspective. These tools include effective theories [15, 16], conservation laws [17] and free energy principle [18]. In addition, statistical physics has been identified as a powerful tool in studying generalization in neural networks [19–22]. Our work connects a low-level understanding of models with their high-level performance. In a recent work, researchers at Anthropic [23], connect a sudden decrease in loss during training with the emergence of induction heads within their models. They analogize their work to statistical physics, since it bridges a “microscopic”, mechanistic understanding of networks with “macroscopic” facts about overall model performance. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
174,
|
| 1077 |
+
561,
|
| 1078 |
+
825,
|
| 1079 |
+
672
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 9
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "6 Conclusion ",
|
| 1086 |
+
"text_level": 1,
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
174,
|
| 1089 |
+
693,
|
| 1090 |
+
299,
|
| 1091 |
+
709
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 9
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "We have shown how, in both toy models and general settings, that representation enables generalization when it reflects structure in the data. We developed an effective theory of representation learning dynamics (in a toy setting) which predicts the critical dependence of learning on the training data fraction. We then presented four learning phases (comprehension, grokking, memorization and confusion) which depend on the decoder capacity and learning speed (given by, among other things, learning rate and weight decay) in decoder-only architectures. While we have mostly focused on a toy model, we find preliminary evidence that our results generalize to the setting of [1]. ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
174,
|
| 1100 |
+
724,
|
| 1101 |
+
825,
|
| 1102 |
+
821
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 9
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "Our work can be viewed as a step towards a statistical physics of deep learning, connecting the “microphysics” of low-level network dynamics with the “thermodynamics” of high-level model behavior. We view the application of theoretical tools from physics, such as effective theories [24], to be a rich area for further work. The broader impact of such work, if successful, could be to make models more transparent and predictable [23, 25, 26], crucial to the task of ensuring the safety of advanced AI systems. ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
174,
|
| 1111 |
+
828,
|
| 1112 |
+
823,
|
| 1113 |
+
911
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 9
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "References ",
|
| 1120 |
+
"text_level": 1,
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
174,
|
| 1123 |
+
90,
|
| 1124 |
+
267,
|
| 1125 |
+
106
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 10
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "[1] Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization beyond overfitting on small algorithmic datasets. arXiv preprint arXiv:2201.02177, 2022. \n[2] Neel Nanda and Tom Lieberum. A mechanistic interpretability analysis of grokking, 2022. URL https://www.alignmentforum.org/posts/N6WM6hs7RQMKDhYjB/ a-mechanistic-interpretability-analysis-of-grokking. \n[3] Beren Millidge. Grokking ’grokking’. https://beren.io/ 2022-01-11-Grokking-Grokking/, 2022. \n[4] Rohin Shah. Alignment Newsletter #159. https: //www.alignmentforum.org/posts/zvWqPmQasssaAWkrj/ an-159-building-agents-that-know-how-to-experiment-by#DEEP_LEARNING_, 2021. \n[5] Yedid Hoshen and Shmuel Peleg. Visual learning of arithmetic operation. In AAAI, 2016. \n[6] Yang-Hui He. Machine-learning mathematical structures. arXiv preprint arXiv:2101.06317, 2021. \n[7] Sergei Gukov, James Halverson, Fabian Ruehle, and Piotr Sułkowski. Learning to unknot. Machine Learning: Science and Technology, 2(2):025035, 2021. \n[8] Alex Davies, Petar Velickovi ˇ c, Lars Buesing, Sam Blackwell, Daniel Zheng, Nenad Tomašev, ´ Richard Tanburn, Peter Battaglia, Charles Blundell, András Juhász, et al. Advancing mathematics by guiding human intuition with ai. Nature, 600(7887):70–74, 2021. \n[9] Preetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang, Boaz Barak, and Ilya Sutskever. Deep double descent: Where bigger models and more data hurt. Journal of Statistical Mechanics: Theory and Experiment, 2021(12):124003, 2021. \n[10] Preetum Nakkiran, Prayaag Venkat, Sham Kakade, and Tengyu Ma. Optimal regularization can mitigate double descent. arXiv preprint arXiv:2003.01897, 2020. \n[11] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8): 1798–1828, 2013. \n[12] Yassine Ouali, Céline Hudelot, and Myriam Tami. An overview of deep semi-supervised learning. arXiv preprint arXiv:2006.05278, 2020. \n[13] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learning. Advances in Neural Information Processing Systems, 33:21271–21284, 2020. \n[14] Phuc H Le-Khac, Graham Healy, and Alan F Smeaton. Contrastive representation learning: A framework and review. IEEE Access, 8:193907–193934, 2020. \n[15] James Halverson, Anindita Maiti, and Keegan Stoner. Neural networks and quantum field theory. Machine Learning: Science and Technology, 2(3):035002, 2021. \n[16] Daniel A Roberts, Sho Yaida, and Boris Hanin. The principles of deep learning theory. arXiv preprint arXiv:2106.10165, 2021. \n[17] Daniel Kunin, Javier Sagastuy-Brena, Surya Ganguli, Daniel LK Yamins, and Hidenori Tanaka. Neural mechanics: Symmetry and broken conservation laws in deep learning dynamics. arXiv preprint arXiv:2012.04728, 2020. \n[18] Yansong Gao and Pratik Chaudhari. A free-energy principle for representation learning. In International Conference on Machine Learning, pages 3367–3376. PMLR, 2020. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
171,
|
| 1134 |
+
103,
|
| 1135 |
+
828,
|
| 1136 |
+
916
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 10
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "[19] Federica Gerace, Bruno Loureiro, Florent Krzakala, Marc Mézard, and Lenka Zdeborová. Generalisation error in learning with random features and the hidden manifold model. In International Conference on Machine Learning, pages 3452–3462. PMLR, 2020. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
171,
|
| 1145 |
+
90,
|
| 1146 |
+
823,
|
| 1147 |
+
133
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 11
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "[20] Mohammad Pezeshki, Amartya Mitra, Yoshua Bengio, and Guillaume Lajoie. Multi-scale feature learning dynamics: Insights for double descent. In International Conference on Machine Learning, pages 17669–17690. PMLR, 2022. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
171,
|
| 1156 |
+
143,
|
| 1157 |
+
821,
|
| 1158 |
+
185
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 11
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "[21] Sebastian Goldt, Bruno Loureiro, Galen Reeves, Florent Krzakala, Marc Mezard, and Lenka Zdeborova. The gaussian equivalence of generative models for learning with shallow neural networks. In Joan Bruna, Jan Hesthaven, and Lenka Zdeborova, editors, Proceedings of the 2nd Mathematical and Scientific Machine Learning Conference, volume 145 of Proceedings of Machine Learning Research, pages 426–471. PMLR, 16–19 Aug 2022. URL https: //proceedings.mlr.press/v145/goldt22a.html. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
174,
|
| 1167 |
+
195,
|
| 1168 |
+
825,
|
| 1169 |
+
280
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 11
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "[22] R Kuhn and S Bos. Statistical mechanics for neural networks with continuous-time dynamics. Journal of Physics A: Mathematical and General, 26(4):831, 1993. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
168,
|
| 1178 |
+
290,
|
| 1179 |
+
825,
|
| 1180 |
+
319
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 11
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "[23] Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. In-context learning and induction heads. Transformer Circuits Thread, 2022. https://transformer-circuits.pub/2022/in-context-learning-and-inductionheads/index.html. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
174,
|
| 1189 |
+
329,
|
| 1190 |
+
826,
|
| 1191 |
+
426
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 11
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "[24] Daniel A. Roberts, Sho Yaida, and Boris Hanin. The Principles of Deep Learning Theory. Cambridge University Press, 2022. https://deeplearningtheory.com. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
171,
|
| 1200 |
+
436,
|
| 1201 |
+
821,
|
| 1202 |
+
467
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 11
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "[25] Deep Ganguli, Danny Hernandez, Liane Lovitt, Nova DasSarma, Tom Henighan, Andy Jones, Nicholas Joseph, Jackson Kernion, Ben Mann, Amanda Askell, et al. Predictability and surprise in large generative models. arXiv preprint arXiv:2202.07785, 2022. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
173,
|
| 1211 |
+
476,
|
| 1212 |
+
821,
|
| 1213 |
+
518
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 11
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "[26] Jacob Steinhardt. Future ML Systems Will Be Qualitatively Different. https://www. lesswrong.com/s/4aARF2ZoBpFZAhbbe/p/pZaPhGg2hmmPwByHc, 2022. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
173,
|
| 1222 |
+
527,
|
| 1223 |
+
826,
|
| 1224 |
+
558
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 11
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "[27] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Russ R Salakhutdinov, and Alexander J Smola. Deep sets. Advances in neural information processing systems, 30, 2017. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
566,
|
| 1234 |
+
825,
|
| 1235 |
+
609
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 11
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "[28] Vardan Papyan, XY Han, and David L Donoho. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the National Academy of Sciences, 117 (40):24652–24663, 2020. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
173,
|
| 1244 |
+
619,
|
| 1245 |
+
825,
|
| 1246 |
+
661
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 11
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "[29] Wikipedia contributors. Thomson problem — Wikipedia, the free encyclopedia. https://en.wikipedia.org/w/index.php?title $=$ Thomson_problem&oldid= 1091431454, 2022. [Online; accessed 29-July-2022]. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
174,
|
| 1255 |
+
672,
|
| 1256 |
+
826,
|
| 1257 |
+
715
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 11
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "[30] Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15750–15758, 2021. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
174,
|
| 1266 |
+
724,
|
| 1267 |
+
826,
|
| 1268 |
+
767
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 11
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "[31] Zhi-Qin John Xu, Yaoyu Zhang, and Yanyang Xiao. Training behavior of deep neural network in frequency domain. In International Conference on Neural Information Processing, pages 264–274. Springer, 2019. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
777,
|
| 1278 |
+
823,
|
| 1279 |
+
820
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 11
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "[32] Yaoyu Zhang, Zhi-Qin John Xu, Tao Luo, and Zheng Ma. A type of generalization error induced by initialization in deep neural networks. In Mathematical and Scientific Machine Learning, pages 144–164. PMLR, 2020. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
173,
|
| 1288 |
+
830,
|
| 1289 |
+
823,
|
| 1290 |
+
872
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 11
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "[33] Ziming Liu, Eric J. Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data, 2022. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
173,
|
| 1299 |
+
883,
|
| 1300 |
+
823,
|
| 1301 |
+
911
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 11
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "[34] Blake Woodworth, Suriya Gunasekar, Jason D. Lee, Edward Moroshko, Pedro Savarese, Itay Golan, Daniel Soudry, and Nathan Srebro. Kernel and rich regimes in overparametrized models. In Jacob Abernethy and Shivani Agarwal, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3635–3673. PMLR, 09–12 Jul 2020. URL https://proceedings.mlr.press/v125/woodworth20a. html. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
174,
|
| 1310 |
+
90,
|
| 1311 |
+
826,
|
| 1312 |
+
174
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 12
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Checklist ",
|
| 1319 |
+
"text_level": 1,
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
174,
|
| 1322 |
+
200,
|
| 1323 |
+
254,
|
| 1324 |
+
217
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 12
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "1. For all authors... ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
200,
|
| 1333 |
+
227,
|
| 1334 |
+
328,
|
| 1335 |
+
241
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 12
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
240,
|
| 1344 |
+
246,
|
| 1345 |
+
825,
|
| 1346 |
+
338
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 12
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "2. If you are including theoretical results... ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
199,
|
| 1355 |
+
342,
|
| 1356 |
+
482,
|
| 1357 |
+
356
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 12
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] ",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
240,
|
| 1366 |
+
359,
|
| 1367 |
+
736,
|
| 1368 |
+
391
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 12
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "3. If you ran experiments... ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
200,
|
| 1377 |
+
395,
|
| 1378 |
+
382,
|
| 1379 |
+
410
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 12
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] All experiments were run on a workstation with two NVIDIA A6000 GPUs within a few days. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
240,
|
| 1388 |
+
414,
|
| 1389 |
+
825,
|
| 1390 |
+
545
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 12
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
192,
|
| 1399 |
+
550,
|
| 1400 |
+
812,
|
| 1401 |
+
565
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 12
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
238,
|
| 1410 |
+
569,
|
| 1411 |
+
825,
|
| 1412 |
+
690
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 12
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
199,
|
| 1421 |
+
694,
|
| 1422 |
+
692,
|
| 1423 |
+
709
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 12
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "text",
|
| 1429 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1430 |
+
"bbox": [
|
| 1431 |
+
240,
|
| 1432 |
+
713,
|
| 1433 |
+
825,
|
| 1434 |
+
803
|
| 1435 |
+
],
|
| 1436 |
+
"page_idx": 12
|
| 1437 |
+
}
|
| 1438 |
+
]
|
parse/dev/6at6rB3IZm/6at6rB3IZm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/6at6rB3IZm/6at6rB3IZm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/AXDNM76T1nc/AXDNM76T1nc_content_list.json
ADDED
|
@@ -0,0 +1,1793 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Video PreTraining (VPT): Learning to Act by Watching Unlabeled Online Videos ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
225,
|
| 8 |
+
122,
|
| 9 |
+
774,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Bowen Baker⇤† bowen@openai.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
235,
|
| 19 |
+
226,
|
| 20 |
+
372,
|
| 21 |
+
253
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Ilge Akkaya⇤† ilge@openai.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
441,
|
| 30 |
+
226,
|
| 31 |
+
560,
|
| 32 |
+
253
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Peter Zhokhov⇤† peterz@openai.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
627,
|
| 41 |
+
226,
|
| 42 |
+
761,
|
| 43 |
+
253
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Joost Huizinga⇤† joost@openai.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
233,
|
| 52 |
+
275,
|
| 53 |
+
359,
|
| 54 |
+
303
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Jie Tang⇤† jietang@openai.com ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
424,
|
| 63 |
+
275,
|
| 64 |
+
562,
|
| 65 |
+
304
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Adrien Ecoffet⇤† adrien@openai.com ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
629,
|
| 74 |
+
275,
|
| 75 |
+
764,
|
| 76 |
+
303
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Brandon Houghton⇤† brandon@openai.com ",
|
| 83 |
+
"bbox": [
|
| 84 |
+
228,
|
| 85 |
+
324,
|
| 86 |
+
379,
|
| 87 |
+
353
|
| 88 |
+
],
|
| 89 |
+
"page_idx": 0
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "text",
|
| 93 |
+
"text": "Raul Sampedro⇤† raulsamg@gmail.com ",
|
| 94 |
+
"bbox": [
|
| 95 |
+
434,
|
| 96 |
+
324,
|
| 97 |
+
581,
|
| 98 |
+
353
|
| 99 |
+
],
|
| 100 |
+
"page_idx": 0
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "text",
|
| 104 |
+
"text": "Jeff Clune⇤†‡ jclune@gmail.com ",
|
| 105 |
+
"bbox": [
|
| 106 |
+
642,
|
| 107 |
+
324,
|
| 108 |
+
769,
|
| 109 |
+
353
|
| 110 |
+
],
|
| 111 |
+
"page_idx": 0
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"text": "Abstract ",
|
| 116 |
+
"text_level": 1,
|
| 117 |
+
"bbox": [
|
| 118 |
+
462,
|
| 119 |
+
388,
|
| 120 |
+
535,
|
| 121 |
+
405
|
| 122 |
+
],
|
| 123 |
+
"page_idx": 0
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"type": "text",
|
| 127 |
+
"text": "Pretraining on noisy, internet-scale datasets has been heavily studied as a technique for training models with broad, general capabilities for text, images, and other modalities. 1–6 However, for many sequential decision domains such as robotics, video games, and computer use, publicly available data does not contain the labels required to train behavioral priors in the same way. We extend the internet-scale pretraining paradigm to sequential decision domains through semi-supervised imitation learning wherein agents learn to act by watching online unlabeled videos. Specifically, we show that with a small amount of labeled data we can train an inverse dynamics model accurate enough to label a huge unlabeled source of online data – here, online videos of people playing Minecraft – from which we can then train a general behavioral prior. Despite using the native human interface (mouse and keyboard at $2 0 \\mathrm { H z }$ ), we show that this behavioral prior has nontrivial zeroshot capabilities and that it can be fine-tuned, with both imitation learning and reinforcement learning, to hard-exploration tasks that are impossible to learn from scratch via reinforcement learning. For many tasks our models exhibit humanlevel performance, and we are the first to report computer agents that can craft diamond tools, which can take proficient humans upwards of 20 minutes (24,000 environment actions) of gameplay to accomplish. ",
|
| 128 |
+
"bbox": [
|
| 129 |
+
233,
|
| 130 |
+
420,
|
| 131 |
+
766,
|
| 132 |
+
669
|
| 133 |
+
],
|
| 134 |
+
"page_idx": 0
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"type": "text",
|
| 138 |
+
"text": "1 Introduction ",
|
| 139 |
+
"text_level": 1,
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
695,
|
| 143 |
+
310,
|
| 144 |
+
713
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Work in recent years has demonstrated the efficacy of pretraining large and general foundation models 7 on noisy internet-scale datasets for use in downstream tasks in natural language 1–4, computer vision, 5,6,8 and multi-task models. 9 For sequential decision domains (e.g. robotics, game playing, and computer usage) where agents must repeatedly act within an environment, a wealth of data also exists on the web; however, most of this data is in the form of unlabeled video (i.e. without the actions taken at each frame), making it much less straightforward to train a behavioral prior in these domains than it is in e.g. natural language. In a few rare settings, such as Chess, Go, and StarCraft, there already exist large datasets with action labels from various online platforms that researchers have used for imitation learning. 10,11 When large labeled datasets do not exist, the canonical strategy for training capable agents is reinforcement learning (RL), 12 which can be sample inefficient and expensive for hard-exploration problems. 13–19 Many virtual tasks, e.g. navigating websites, using Photoshop, booking flights, etc., can be very hard to learn with RL and do not have large, commonly available sources of labeled data. 20,21 In this paper, we seek to extend the paradigm of training large, general-purpose foundation models to sequential decision domains by utilizing freely available internet-scale unlabeled video datasets with a simple semi-supervised imitation learning method. We call this method Video PreTraining (VPT) and demonstrate its efficacy in the domain of Minecraft. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
727,
|
| 154 |
+
825,
|
| 155 |
+
810
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "",
|
| 162 |
+
"bbox": [
|
| 163 |
+
174,
|
| 164 |
+
90,
|
| 165 |
+
825,
|
| 166 |
+
229
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "Existing semi-supervised imitation learning methods aim to learn with few or no explicit action labels; however, they generally rely on the policy’s ability to explore the environment throughout training, making them susceptible to exploration bottlenecks. 22–26 Furthermore, most prior semi-supervised imitation learning work was tested in the relatively low data regime; because we experiment with far more data ( $\\mathord { \\sim } 7 0 \\mathrm { k }$ hours of unlabeled video), we hypothesize that we can achieve good performance with a much simpler method, a trend that has proven true for pretraining in other modalities such as text. 1 In particular, given a large but unlabeled dataset, we propose generating pseudo-labels by gathering a small amount of labeled data to train an inverse dynamics model (IDM) that predicts the action taken at each timestep in a video. Behavioral cloning (BC) can require a large amount of data because the model must learn to infer intent and the distribution over future behaviors from only past observations. In contrast, the inverse dynamics modeling task is simpler because it is non-causal, meaning it can look at both past and future frames to infer actions. In most settings, environment mechanics are far simpler than the breadth of human behavior that can take place within the environment, suggesting that non-causal IDMs could require far less data to train than causal BC models. Using pseudo-labels generated from the IDM, we then train a model to mimic the distribution of behavior in the previously unlabeled dataset with standard behavioral cloning at scale, which does not require any model rollouts and thus does not suffer from any potential exploration bottlenecks in the environment. Finally, we show we can fine-tune this model to downstream tasks with either behavioral cloning or reinforcement learning. ",
|
| 173 |
+
"bbox": [
|
| 174 |
+
174,
|
| 175 |
+
234,
|
| 176 |
+
825,
|
| 177 |
+
498
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "We chose to test our method in Minecraft because it (a) is one of the most actively played games in the world27 and thus has a wealth of online video data, (b) is an open-ended sandbox game with an extremely wide variety of potential things to do, build, and collect, making our results more applicable to real-world applications such as computer usage, which also tends to be varied and open-ended, and (c) has already garnered interest by the RL community as a research domain due to its complexity and correspondingly difficult exploration challenges. 28–32 In this work we use the native human interface for Minecraft so that we can (1) most accurately model the human behavior distribution and reduce domain shift between video data and the environment, (2) make data collection easier by allowing our human contractors to play the game without modification, and (3) eliminate the need to hand-engineer a custom interface for models to interact with the environment. This choice means that our models play at 20 frames per second and must use a mouse and keyboard interface to interact with human GUIs for crafting, smelting, trading, etc., including dragging items to specific slots or navigating the recipe book with the mouse cursor (Fig. 1). Compared to prior work in Minecraft that uses a lower frame rate and constructs crafting and attacking macros, 31,33–35 using the native human interface drastically increases the environment’s exploration difficulty, making most simple tasks near impossible with RL from scratch. Even the simple task of gathering a single wooden log while already facing a tree takes 60 consecutive attack actions with the human interface, meaning the chance for a naive random policy to succeed is $1 / 2 ^ { 6 0 }$ . While this paper shows results in Minecraft only, the VPT method is general and could be applied to any domain. ",
|
| 184 |
+
"bbox": [
|
| 185 |
+
174,
|
| 186 |
+
505,
|
| 187 |
+
594,
|
| 188 |
+
683
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "image",
|
| 194 |
+
"img_path": "images/9ecaae8777654a20f20ae479e79fd1eb563c824f512fc612e394f000c310a23c.jpg",
|
| 195 |
+
"image_caption": [
|
| 196 |
+
"Figure 1: Example Minecraft crafting GUI. Agents use the mouse and keyboard to navigate menus and drag and drop items. "
|
| 197 |
+
],
|
| 198 |
+
"image_footnote": [],
|
| 199 |
+
"bbox": [
|
| 200 |
+
607,
|
| 201 |
+
502,
|
| 202 |
+
821,
|
| 203 |
+
604
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "",
|
| 210 |
+
"bbox": [
|
| 211 |
+
174,
|
| 212 |
+
684,
|
| 213 |
+
825,
|
| 214 |
+
835
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "In Section 4 we show that the VPT foundation model has nontrivial zero-shot performance, accomplishing tasks impossible to learn with RL alone, such as crafting planks and crafting tables (tasks requiring a human proficient in Minecraft a median of 50 seconds or ${ \\sim } 9 7 0 $ consecutive actions). Through fine-tuning with behavioral cloning to smaller datasets that target more specific behavior distributions, our agent is able to push even further into the technology tree, crafting stone tools (taking a human a median of 2.3 minutes or ${ \\sim } 2 7 9 0$ actions). Finally, fine-tuning via RL produces the most dramatic improvements: our agent is able to craft diamond tools, an unprecedented result in Minecraft made even more challenging by using the native human interface. This task requires a proficient human a median upwards of 20 minutes or ${ \\sim } 2 4 0 0 0$ actions. The main contributions of this work are (1) we are the first to show promising results applying semi-supervised imitation learning to extremely large, noisy, and freely available video datasets for sequential decision domains, (2) we show that such pretraining plus fine-tuning enables agents to solve tasks that were otherwise impossible to learn, (3) we show that labeled contractor data is far more efficiently used within the VPT method than it would be by directly training a foundation model from it and (4) we open source our contractor data, trained model weights, and Minecraft environment for future research into learning to act via semi-supervised imitation learning at scale. ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
174,
|
| 223 |
+
842,
|
| 224 |
+
825,
|
| 225 |
+
897
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "",
|
| 232 |
+
"bbox": [
|
| 233 |
+
173,
|
| 234 |
+
90,
|
| 235 |
+
825,
|
| 236 |
+
257
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "2 Preliminaries and Related Work ",
|
| 243 |
+
"text_level": 1,
|
| 244 |
+
"bbox": [
|
| 245 |
+
176,
|
| 246 |
+
276,
|
| 247 |
+
475,
|
| 248 |
+
294
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Imitation learning methods 36–39 seek to construct a policy that accurately models the distribution of behavior in some dataset $D = \\{ ( o _ { i } , a _ { i } ) \\}$ , $i \\in \\{ 1 . . . N \\}$ of action-observation pairs. In order to roll out these policies in an environment, they must be causal, meaning they condition on observations from the current timestep $t$ and past timesteps only, i.e. $\\pi \\sim p ( \\bar { a } _ { t } | o _ { 1 } . . . o _ { t } )$ . Imitation learning is simplest when demonstrations are labeled with corresponding actions. Imitating labeled trajectories has seen success in aerial vehicles, 40,41 self-driving cars, 42,43 board games, 10,44 and video games. 11,45 ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
306,
|
| 258 |
+
825,
|
| 259 |
+
391
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "When labeled demonstrations are not available, standard behavioral cloning will not work; however, there is a large body of work in imitating behavior from unlabeled demonstrations. 23 For instance, GAIL24 constructs an adversarial objective incentivizing the trained policy to exhibit behaviors indistinguishable from those in the target dataset. Edwards et al. 46 propose to first learn a latent policy using unlabeled demonstrations and then map the learned latent actions to real actions using environment interaction. Peng et al. 47 use motion-capture methods to track agent positions in videos and then train RL agents to match these waypoints. Similarly, Behbahani et al. 48 and Aytar et al. 49 task a RL agent to match waypoints; however, their waypoints are embeddings from unsupervised feature learning models. Pathak et al. 50 and Nair et al. 51 train goal conditioned policies to take actions that move towards expert-provided goal states expressed as high dimensional visual waypoints. Most similar to our own work, Torabi et al. 25 simultaneously train (1) an inverse dynamics model (IDM), 52 which aims to uncover the underlying action between timesteps given observations of past and future timesteps, e.g. $p _ { \\mathrm { I D M } } ( a _ { t } | o _ { t } , o _ { t + 1 } )$ , and (2) a behavioral cloning (BC) model on trajectories of observations labeled with the IDM. Data to train the IDM is collected by rolling out the BC model in the target environment such that both models improve in tandem. However, at any point in training if there are sequences in the dataset that the IDM performs poorly on, it requires that the BC model perform those or similar sequences in order for the IDM to improve and correctly label them. Therefore, if the BC model does not explore efficiently, it could severely slow down learning. In order to avoid this potential issue we opted for a simpler two-stage approach: we first train an IDM on a small number of labeled trajectories collected from human contractors (they play the game as would normally as we record their keypresses and mouse movements). Because human contractors reach most relevant parts of the state space, we can hold the IDM fixed throughout BC training. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
173,
|
| 268 |
+
396,
|
| 269 |
+
826,
|
| 270 |
+
702
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "Compared to most previous work in semi-supervised imitation learning, we experiment in the much more complex and open-ended environment of Minecraft. Minecraft is a voxel-based 3D video game that, due its popularity and wide variety of mechanics, has attracted a vast amount of RL research. 28,29,31–35,53–61 A large body of work focuses on small, custom-made Minecraft worlds with tasks such as navigation, 54,61 block placing, 55,56 instruction following, 59,60 combat, 57 and others. 29,32,58 Work operating in the massive, randomly generated environments of Minecraft itself has included hill climbing, 53 automated curriculum learning31 and, most closely related to the RL experiments presented in Sec. 4.4, diamond mining. 28,33–35 However, to the best of our knowledge, there is no published work that operates in the full, unmodified human action space, which includes drag-and-drop inventory management and item crafting. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
707,
|
| 280 |
+
825,
|
| 281 |
+
845
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "3 Methods ",
|
| 288 |
+
"text_level": 1,
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
858,
|
| 292 |
+
279,
|
| 293 |
+
875
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Inverse Dynamics Models (IDM) VPT, illustrated in Figure 2, requires we first collect a small amount of labeled contractor data with which to train an inverse dynamics model $p _ { \\mathrm { I D M } } ( a _ { t } | o _ { 1 \\ldots T } )$ ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
883,
|
| 303 |
+
821,
|
| 304 |
+
911
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "image",
|
| 310 |
+
"img_path": "images/064a1527f9fa1ec271241672e70e73bab60b52c51f73a35ec94e5f1f718ad9c6.jpg",
|
| 311 |
+
"image_caption": [
|
| 312 |
+
"Figure 2: Video Pretraining (VPT) Method Overview. "
|
| 313 |
+
],
|
| 314 |
+
"image_footnote": [],
|
| 315 |
+
"bbox": [
|
| 316 |
+
173,
|
| 317 |
+
87,
|
| 318 |
+
821,
|
| 319 |
+
236
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "which seeks to minimize the negative log-likelihood of an action at timestep $t$ given a trajectory of $T$ observations $o _ { t } ~ : ~ t \\in [ 1 . . . T ]$ . In contrast to an imitation learning policy, the IDM can be non-causal, meaning its prediction for $a _ { t }$ can be a function of both past and future events, i.e. $o _ { t ^ { \\prime } > t }$ . Compared to the behavioral cloning objective of modeling the distribution of human intent given past frames only, we hypothesize that inverting environment dynamics is easier and more data efficient to learn. Indeed, Sec. 4.1 will show that the IDM objective is much easier to learn, and furthermore Sec. 4.6 will show that with very little labeled data (as few as 100 hours) we can train a fairly accurate IDM. This IDM can be used to label online videos, providing the large amount of data required for the harder task of behavioral cloning. See appendices D and B for IDM training and data collection details. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
173,
|
| 328 |
+
266,
|
| 329 |
+
826,
|
| 330 |
+
392
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Data Filtering We gather a large dataset of Minecraft videos by searching the web for related keywords (Appendix A). Online videos often (1) include overlaid artifacts, such as a video feed of the player’s face, channel logos, watermarks, etc., (2) are collected from platforms other than a computer with different gameplay, or (3) are from different game modes, e.g. in Minecraft we only want \"survival mode\" where players start from scratch and must gather or craft all their items. We call data “clean” if it does not contain visual artifacts and is from survival mode, and call all other data “unclean.” With enough data, a large enough model, and enough training compute, a BC model trained on both unclean and clean videos would likely still perform well in a clean Minecraft environment. However, for simplicity and training compute efficiency, we choose to filter out unclean segments of video (note that a video may contain both clean and unclean segments). We do this by training a model to filter out unclean segments using a small dataset (8800) of images sampled from online videos labeled by contractors as clean or unclean. We did not tune this process as it is fairly standard; see Appendix A.2 for more details and ablations showing data cleaning is beneficial. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
398,
|
| 340 |
+
825,
|
| 341 |
+
579
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "VPT Foundation Model We train a foundation model with standard behavioral cloning, i.e. minimizing the negative log-likelihood of actions predicted by the IDM on clean data. For a particular trajectory of length $T$ we minimize ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
176,
|
| 350 |
+
593,
|
| 351 |
+
825,
|
| 352 |
+
636
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "equation",
|
| 358 |
+
"img_path": "images/cfbfd741ea4af0f1d32c152b95117fc0595c9b22619cd87951e0a632b5a552d2.jpg",
|
| 359 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta } \\sum _ { t \\in [ 1 \\ldots T ] } - \\log \\pi _ { \\theta } ( a _ { t } | o _ { 1 } , \\ldots , o _ { t } ) , { \\mathrm { w h e r e ~ } } a _ { t } \\sim p _ { \\mathrm { I D M } } ( a _ { t } | o _ { 1 } , \\ldots , o _ { t } , \\ldots , o _ { T } )\n$$",
|
| 360 |
+
"text_format": "latex",
|
| 361 |
+
"bbox": [
|
| 362 |
+
240,
|
| 363 |
+
643,
|
| 364 |
+
756,
|
| 365 |
+
680
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "As we will see in the following sections, this model exhibits nontrivial zero-shot behavior and can be fine-tuned with both imitation learning and RL to perform even more complex skills. ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
694,
|
| 375 |
+
825,
|
| 376 |
+
723
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "4 Results ",
|
| 383 |
+
"text_level": 1,
|
| 384 |
+
"bbox": [
|
| 385 |
+
174,
|
| 386 |
+
742,
|
| 387 |
+
266,
|
| 388 |
+
760
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "4.1 Performance of the Inverse Dynamics Model ",
|
| 395 |
+
"text_level": 1,
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
773,
|
| 399 |
+
522,
|
| 400 |
+
790
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "The IDM architecture is comprised primarily of a temporal convolution layer, a ResNet 63 image processing stack, and residual unmasked attention layers, from which the IDM simultaneously predicts keypresses and mouse movements (see Appendix D for IDM architecture and training details). A key hypothesis behind our work is that IDMs can be trained with a relatively small amount of labeled data. While more data improves both mouse movement and keypress predictions, our best IDM trains on only 1962 hours of data (compared to the $\\mathrm { \\sim } 7 0 \\mathrm { k }$ hours of clean data we collected from the internet) and achieves $9 0 . 6 \\%$ keypress accuracy and a $0 . 9 7 ~ R ^ { 2 }$ for mouse movements evaluated on a held-out validation set of contractor-labeled data (Figure 3 left). ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
799,
|
| 410 |
+
825,
|
| 411 |
+
911
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "image",
|
| 417 |
+
"img_path": "images/4b3ea22386575829558b307187db5f20ebab1ca9a8165026d52849f357087422.jpg",
|
| 418 |
+
"image_caption": [
|
| 419 |
+
"Figure 3: (Left) IDM keypress accuracy and mouse movement $R ^ { 2 }$ (explained variance 62) as a function of dataset size. (Right) IDM vs. behavioral cloning data efficiency. "
|
| 420 |
+
],
|
| 421 |
+
"image_footnote": [],
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
89,
|
| 425 |
+
823,
|
| 426 |
+
181
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 4
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "Figure 3 (right) validates our hypothesis that IDMs are far more data efficient than BC models, likely because inverting environment mechanics is far easier than modeling the entire distribution of human behavior. The IDM is two orders of magnitude more data efficient than a BC model trained on the same data and improves more quickly with more data. This evidence supports our hypothesis that it is more effective to use contractor data within the VPT pipeline by training an IDM than it is to train a foundation model from contractor data directly (Sections 4.5 and 4.6 provide additional evidence). Due to their data efficiency, training an IDM uses a negligible fraction of the overall compute needed to train a VPT model. ",
|
| 433 |
+
"bbox": [
|
| 434 |
+
173,
|
| 435 |
+
253,
|
| 436 |
+
825,
|
| 437 |
+
364
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 4
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "4.2 VPT Foundation Model Training and Zero-Shot Performance ",
|
| 444 |
+
"text_level": 1,
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
382,
|
| 448 |
+
640,
|
| 449 |
+
397
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "image",
|
| 455 |
+
"img_path": "images/34a95ee247846f0d6edcf6bdccdb1ad4fe749757d92015a2c7b77655f520b49f.jpg",
|
| 456 |
+
"image_caption": [
|
| 457 |
+
"Figure 4: (Left) Training and validation loss on the web_clean internet dataset with IDM pseudolabels, and loss on the main IDM contractor dataset, which has ground-truth labels but is out-ofdistribution (see text). (Right) Amount a given item was collected per episode averaged over 2500 60-minute survival episodes as a function of training epoch, shaded with the standard error of the mean. Basic mining refers to collection of dirt, gravel, or sand (all materials that can be gathered without tools). Logs are obtained by repeatedly hitting trees for three seconds, a difficult feat for an RL agent to achieve as we show in Sec. 4.4. Planks can be crafted from logs, and crafting tables crafted from planks. Crafting requires using in-game crafting GUIs, and proficient humans take a median of 50 seconds (970 consecutive actions) to make a crafting table. "
|
| 458 |
+
],
|
| 459 |
+
"image_footnote": [],
|
| 460 |
+
"bbox": [
|
| 461 |
+
176,
|
| 462 |
+
417,
|
| 463 |
+
823,
|
| 464 |
+
506
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "We now explore the emergent behavior learned by a behavioral cloning policy trained on an extremely large, but noisy, internet dataset labeled with our IDM. To collect the unlabeled internet dataset, we searched for publicly available videos of Minecraft play with search terms such as “minecraft survival for beginners.” These searches resulted in ${ \\sim } 2 7 0 \\mathrm { k }$ hours of video, which we filtered down to “clean” video segments yielding an unlabeled dataset of $\\mathrm { \\sim } 7 0 \\mathrm { k }$ hours, which we refer to as web_clean (Appendix A has further details on data scraping and filtering). We then generated pseudo-labels for web_clean with our best IDM (Section 3) and then trained the VPT foundation model with behavioral cloning. Preliminary model scaling experiments suggested that our model could benefit from 30 epochs of training and that a 0.5 billion parameter model was required to stay in the efficient learning regime 64 for that training duration (Appendix H shows results comparing model size and the benefit of scaling to 0.5B parameters), which took ${ \\sim } 9$ days on 720 V100 GPUs. ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
173,
|
| 473 |
+
656,
|
| 474 |
+
825,
|
| 475 |
+
808
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "We evaluate our models by measuring validation loss (Fig. 4, left) and rolling them out in the Minecraft environment. Unless otherwise noted, in all environment evaluations we spawn agents in a standard survival mode game where they play for 60 minutes, i.e. 72000 consecutive actions, and we plot the mean and shade the standard error of the mean for various game statistics such as crafting and collection rates (Fig. 4, right). The VPT foundation model quickly learns to chop down trees to collect logs, a task we found near impossible for an RL agent to achieve with the native human interface (Sec. 4.4). It also learns to craft those logs into wooden planks and then use those planks to craft a crafting table, which are required to unlock most other technology in the game and take a human proficient in Minecraft approximately 50 seconds (970 consecutive actions) to collect. While these behaviors are fairly complex in the native human action space, the VPT foundation model crafts these items at a rate far below that of our proficient contractors, e.g. on average our contractors craft 5.44 crafting tables in 60 minutes of play versus 0.19 for the foundation model. The model also crafts a non-negligible amount of wooden sticks, which are required to make wooden tools; collects various flowers and crafts dyes from them; kills zombies that appear during the night; hunts wild animals; collects various berries and mushrooms and eats them; and finds game-generated villages from which to collect various rare items from chests. The model also learned to navigate uneven terrain, swim, and pillar jump, which involves the agent repeatedly jumping and quickly placing a block below itself such that it climbs upward by making a pillar.(iv) ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
814,
|
| 485 |
+
825,
|
| 486 |
+
911
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "",
|
| 493 |
+
"bbox": [
|
| 494 |
+
174,
|
| 495 |
+
90,
|
| 496 |
+
825,
|
| 497 |
+
243
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 5
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "While training and validation loss decrease healthily over training (Fig. 4, left), loss on our contractor dataset (which the VPT model does not train on) begins increasing after 7 epochs. Contractor data could be out-of-distribution because our contractors may have a different distribution of play or because there is some impactful visual domain shift compared to videos from the web, and we provide some evidence for this phenomenon in Appendix H. While one could have expected this would be predictive of declining evaluation performance, we do not see notable game statistics from the VPT foundation model rollouts (Figure 4, right) decrease over training, and in the next section we show that BC fine-tuning performance continually improves as the VPT foundation model trains. ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
173,
|
| 506 |
+
250,
|
| 507 |
+
825,
|
| 508 |
+
361
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 5
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "4.3 Fine-Tuning with Behavioral Cloning ",
|
| 515 |
+
"text_level": 1,
|
| 516 |
+
"bbox": [
|
| 517 |
+
176,
|
| 518 |
+
381,
|
| 519 |
+
472,
|
| 520 |
+
396
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 5
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Foundation models are designed to have a broad behavior profile and be generally capable across a wide variety of tasks. To incorporate new knowledge or allow them to specialize on a narrower task distribution, it is common practice to fine-tune these models to smaller, more specific datasets. 1 The VPT foundation model trained on the broad web_clean dataset had nontrivial zero-shot performance; it was able to craft a crafting table yet unable to go past this in the technology tree. As a case study into BC fine-tuning, we attempt to improve the VPT foundation model’s ability to collect and craft these “early game” items by fine-tuning to two narrower datasets targeted at Minecraft behavior within the first few minutes of players starting in a fresh world. In the first dataset, contractor_house, contractors have 10 minutes to build a basic house from scratch using primarily wood, sand, and dirt. Collecting contractor data can be difficult and expensive, so we also construct a dataset earlygame_keyword by searching for videos online with descriptions that match keywords such as “new world”, “let’s play episode 1”, etc.; this is a subset of web_clean and is labeled with the IDM. See Appendix B.4 and A.3 for full descriptions of both datasets. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
409,
|
| 530 |
+
825,
|
| 531 |
+
589
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 5
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "image",
|
| 537 |
+
"img_path": "images/6de54e50401bab8c4182be82806eb8a59bcf1d9c74a1f831f1c8e532f5d5450c.jpg",
|
| 538 |
+
"image_caption": [
|
| 539 |
+
"Figure 5: (Left) Collection and crafting rates for three policies: the zero-shot VPT foundation model, and the VPT foundation model BC fine-tuned to the earlygame_keyword or contractor_house datasets. BC fine-tuning to either dataset improves performance, including (for the contractor_house dataset) yielding wooden and stone tools. Proficient Minecraft players take a median of 1.2 minutes (1390 actions) to construct wooden tools and 2.3 minutes (2790 actions) to construct stone tools. (Right) Collection and crafting rates for VPT foundation model snapshots throughout training after they are BC fine-tuned to the contractor_house dataset. In general, crafting-related behaviors increase throughout foundation model training. Fig. 4 defines the other task terms (logs, planks, crafting tables, and total crafting). "
|
| 540 |
+
],
|
| 541 |
+
"image_footnote": [],
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
606,
|
| 545 |
+
821,
|
| 546 |
+
738
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 5
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "Fine-tuning to earlygame_keyword results in a large boost compared to the zero-shot foundation model: $2 . 5 \\mathrm { x }$ more crafting tables, 6.1x more planks, $4 . 3 \\mathbf { x }$ more logs, and $5 . 5 \\mathrm { x }$ more crafting overall (Fig. 5). However, when fine-tuning to this dataset we did not see any new behaviors emerge, only a refinement of existing skills. We saw an even bigger improvement when fine-tuning to the contractor_house dataset: $2 1 3 \\mathrm { x }$ more crafting tables, $5 9 \\mathrm { x }$ more wooden planks, $7 \\mathbf { x }$ more logs, and $5 9 \\mathrm { x }$ more crafting over all. In addition, we saw the emergence of crafting wooden tools, which requires placing a crafting table on the ground, opening it to reveal a new crafting interface, and then using it to craft wooden tools. This entire sequence takes a proficient human player a median of 1.2 minutes (1390 consecutive actions) to accomplish. The model goes further and collects cobblestone, which requires a wooden pickaxe to mine, and crafts stone tools, requiring it to again use a crafting table; this takes a proficient human player a median of 2.3 minutes (2790 consecutive actions). We also saw this model more frequently raiding villages that randomly spawn in the game, hunting animals for food, in addition to many behaviors we saw performed by the foundation model.(v) ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
173,
|
| 555 |
+
92,
|
| 556 |
+
825,
|
| 557 |
+
270
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 6
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "Despite the foundation model’s zero-shot rollout performance plateauing 1/3 into training (Fig. 4, right), fine-tuning performance does continue to increase throughout foundation model training (Fig. 5, right). Additionally, there is a stark difference in performance when training from scratch vs. fine-tuning from the VPT foundation model (Fig. 5 right, comparing the left and rightmost points). ",
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
277,
|
| 567 |
+
825,
|
| 568 |
+
333
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 6
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "4.4 Fine-Tuning with Reinforcement Learning ",
|
| 575 |
+
"text_level": 1,
|
| 576 |
+
"bbox": [
|
| 577 |
+
173,
|
| 578 |
+
348,
|
| 579 |
+
509,
|
| 580 |
+
363
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 6
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "image",
|
| 586 |
+
"img_path": "images/cba0e6b9fd67795bb3b4d12861ce77a9904cf7d4c4cee89a406ab396ae3a0429.jpg",
|
| 587 |
+
"image_caption": [
|
| 588 |
+
"Figure 6: Typical sequence of items for obtaining a diamond pickaxe. Below each item is the median time and number of actions contractors required to obtain that item and the percentage of contractors that got the item within 10 minutes. The median time to obtain a diamond pickaxe is unknown (except that it is $> 2 0 \\mathrm { m } ,$ ) because contractors obtained this item in less than $5 0 \\%$ of 20-minute episodes. "
|
| 589 |
+
],
|
| 590 |
+
"image_footnote": [],
|
| 591 |
+
"bbox": [
|
| 592 |
+
174,
|
| 593 |
+
378,
|
| 594 |
+
825,
|
| 595 |
+
439
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 6
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "To demonstrate the efficacy of RL fine-tuning, we chose the challenging goal of obtaining a diamond pickaxe within 10 minutes starting from a fresh Minecraft survival world. Doing so involves acquiring a sequence of difficult-to-obtain items that require complex skills like mining, inventory management, crafting with and without a crafting table, tool use, operating a furnace, and mining at the lowest depths, where many hazards like enemies and lava exist (Fig. 6). Adding to the difficulty, progress can be easily lost by dropping items, destroying items, or dying. Obtaining a diamond pickaxe more often than not takes a proficient human over 20 minutes (24,000 actions). ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
174,
|
| 604 |
+
522,
|
| 605 |
+
825,
|
| 606 |
+
619
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 6
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "Agents are rewarded for each item obtained in the sequence, with lower rewards for items that have to be collected in bulk and higher rewards for items near the end of the sequence. Agents are optimized with the phasic policy gradient 65 RL algorithm for ${ \\sim } 1 . 3$ million episodes (roughly $1 . 4 \\times 1 0 ^ { 1 0 }$ frames). Episodes last for 10 minutes. See Appendix G.1 for reward function and RL training details. Due to computational constraints, RL experiments use a $\\sim 2 4 8$ million parameter VPT model (Appendix H). ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
174,
|
| 615 |
+
626,
|
| 616 |
+
825,
|
| 617 |
+
695
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 6
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "A major problem when fine-tuning with RL is catastrophic forgetting66,67 because previously learned skills can be lost before their value is realized. For instance, while our VPT foundation model never exhibits the entire sequence of behaviors required to smelt iron zero-shot, it did train on examples of players smelting with furnaces. It therefore may have some latent ability to smelt iron once the many prerequisites to do so have been performed. To combat the catastrophic forgetting of latent skills such that they can continually improve exploration throughout RL fine-tuning, we add an auxiliary Kullback-Leibler (KL) divergence loss between the RL model and the frozen pretrained policy. 11 ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
700,
|
| 627 |
+
825,
|
| 628 |
+
799
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 6
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "Training from a randomly initialized policy fails to achieve almost any reward, underscoring how hard an exploration challenge the diamond pickaxe task is for RL in the native human action space (Fig. 7a). The model never learns to reliably collect logs, typically the first of many steps to obtaining a diamond pickaxe (Fig. 7b). RL fine-tuning from the VPT foundation model does substantially better (Fig. 7a), learning everything up to mining iron ore and crafting furnaces. (Fig. 7c). However, this agent fails at smelting an iron ingot, the next item required to get further into the tech tree, likely because the zero-shot probability that the VPT foundation model smelts an iron ingot is too low, even when given the prerequisite materials. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
804,
|
| 638 |
+
825,
|
| 639 |
+
888
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 6
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "image",
|
| 645 |
+
"img_path": "images/3465129888555f408ab610b7e6a3dbdf535575989fd849fe8c5dda363f075cfd.jpg",
|
| 646 |
+
"image_caption": [
|
| 647 |
+
"Figure 7: RL Fine-tuning results. (a) RL from a randomly initialized model fails to get almost any reward, RL fine-tuning from the VPT foundation model performs substantially better with a reward near 13, and RL fine-tuning from the early-game model performs best with a reward of 25. When training the early-game model without a KL loss to the original policy (No KL-loss) progress stalls after 100,000 episodes, suggesting that the skills necessary to make further progress have been catastrophically forgotten. (b) RL from a randomly initialized model occasionally collects sticks by breaking leaves (an easy but inefficient method of getting sticks that does not require logs or planks) and never learns to reliably collect logs. (c) RL fine-tuning from the VPT Foundation model learns everything in the curriculum up to iron ore and making furnaces, but fails to learn to use the furnace to smelt iron ingots. (d) RL fine-tuning from the early-game model learns to obtain (at human-level) all items in the sequence towards a diamond pickaxe and crafts a diamond pickaxe in $2 . 5 \\%$ of episodes. "
|
| 648 |
+
],
|
| 649 |
+
"image_footnote": [],
|
| 650 |
+
"bbox": [
|
| 651 |
+
178,
|
| 652 |
+
87,
|
| 653 |
+
816,
|
| 654 |
+
255
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 7
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "",
|
| 661 |
+
"bbox": [
|
| 662 |
+
176,
|
| 663 |
+
450,
|
| 664 |
+
823,
|
| 665 |
+
478
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 7
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "Results further improve by first BC fine-tuning the VPT Foundation Model to the earlygame_keyword dataset (the early-game model, Sec. 4.3) and then fine-tuning with RL (Fig. 7a), which in preliminary experiments we found to perform better than first fine-tuning to contractor_house followed by fine-tuning with RL (Appendix G.2). The three-phase training (pretraining, BC fine-tuning, and then RL fine-tuning) succeeds in learning extremely difficult tasks: it achieves over $8 0 \\%$ reliability on iron pickaxes, almost $2 0 \\%$ reliability on collecting diamonds, and $2 . 5 \\%$ reliability on obtaining a diamond pickaxe (Fig. 7d). For comparison, human players given the objective of obtaining a diamond pickaxe collect these items in $5 7 \\%$ , $1 5 \\%$ , and $1 2 \\%$ of episodes, respectively, meaning our model is human-level for crafting iron pickaxes and mining diamonds. Others have managed to obtain diamonds with $\\sim 0 . 1 \\%$ reliability in 15 minutes 33,34 but always with a simplified action space designed to ease exploration. To the best of our knowledge, we are the first to report non-zero success rates on crafting a diamond pickaxe. Qualitatively, the model developed useful skills for diamond mining, such as efficient mining patterns, cave exploration, returning to previously placed objects like crafting tables, and advanced techniques like using wooden pickaxes as fuel when moving on to iron tools.(vi) ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
173,
|
| 674 |
+
484,
|
| 675 |
+
825,
|
| 676 |
+
691
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 7
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "Finally, we validated the importance of the KL loss to the pretrained model during RL fine-tuning. The treatment without a KL loss obtains only items early in the sequence (logs, planks, sticks, and crafting tables) limiting its reward (Fig. 7a). This failure to progress further into the sequence is likely because, while the initial skills of chopping logs and crafting planks are being learned with RL, subsequent skills like crafting a wooden pickaxe are lost due to catastrophic forgetting. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
174,
|
| 685 |
+
699,
|
| 686 |
+
825,
|
| 687 |
+
768
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 7
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "4.5 Data Scaling Properties of the Foundation Model ",
|
| 694 |
+
"text_level": 1,
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
786,
|
| 698 |
+
553,
|
| 699 |
+
801
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 7
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "In this section we validate a core hypothesis behind this work: that it is far more effective to use labeled contractor data to train an IDM within the VPT method than it is to directly train a BC foundation model from that same small contractor dataset. If we could cheaply collect a labeled contractor dataset of a similar order of magnitude as web_clean, then this would not be important; however, collecting that scale of data would have cost millions of dollars. Figure 8 compares foundation models trained on increasing orders of magnitude of data from 1 hour up to the full ${ \\sim } 7 0 \\mathrm { k }$ web_clean dataset. Foundation models trained up to and including 1k hours are trained on the IDM contractor data, and those trained on 5k hours and above are trained on subsets of web_clean, which does not contain any IDM contractor data. Scaling training data increases log collection, mining, and crafting capabilities. The zero-shot model only begins to start crafting crafting tables at over 5000 hours of training data. When fine-tuning each foundation model to contractor_house, we see that crafting rates for crafting tables and wooden tools increase by orders of magnitude when using the entire ${ \\sim } 7 0 \\mathrm { k }$ hour web_clean dataset. We furthermore only see the emergence of crafting stone tools at the largest data scale. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
176,
|
| 708 |
+
813,
|
| 709 |
+
823,
|
| 710 |
+
882
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 7
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "image",
|
| 716 |
+
"img_path": "images/a4e776f01b9e9a1ad25c549eef4298ddfee753b2cc183af6b0d9ea8fde1fc6bf.jpg",
|
| 717 |
+
"image_caption": [
|
| 718 |
+
"Figure 8: (Left) Zero-shot rollout performance of foundation models trained on varying amounts of data. Models to the left of the dashed black line (points $\\leq 1 \\mathrm { k }$ hours) were trained on contractor data (ground-truth labels), and models to the right were trained on IDM pseudo-labeled subsets of web_clean. Due to compute limitations, this analysis was performed with smaller (71 million parameter) models except for the final point, which is the 0.5 billion parameter VPT foundation model. (Right) The corresponding performance of each model after BC fine-tuning each model to the contractor_house dataset. "
|
| 719 |
+
],
|
| 720 |
+
"image_footnote": [],
|
| 721 |
+
"bbox": [
|
| 722 |
+
174,
|
| 723 |
+
89,
|
| 724 |
+
825,
|
| 725 |
+
184
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 8
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "",
|
| 732 |
+
"bbox": [
|
| 733 |
+
173,
|
| 734 |
+
327,
|
| 735 |
+
825,
|
| 736 |
+
452
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 8
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "4.6 Effect of Inverse Dynamics Model Quality on Behavioral Cloning ",
|
| 743 |
+
"text_level": 1,
|
| 744 |
+
"bbox": [
|
| 745 |
+
176,
|
| 746 |
+
472,
|
| 747 |
+
665,
|
| 748 |
+
487
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 8
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "This section investigates how downstream BC performance is affected by IDM quality. We train IDMs on increasingly larger datasets and use each to independently label the earlygame_keyword dataset (this smaller dataset was chosen due to a limited compute budget). We then train a BC model from scratch on each dataset and report game statistics for each model as a function of IDM contractor dataset size (Fig. 9). ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
500,
|
| 758 |
+
485,
|
| 759 |
+
638
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 8
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "IDMs trained on at least 10 hours of data are required for any crafting, and the crafting rate increases quickly up until 100 hours of data, ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
174,
|
| 768 |
+
645,
|
| 769 |
+
483,
|
| 770 |
+
686
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 8
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "image",
|
| 776 |
+
"img_path": "images/555a4d47272fd3d0f24896ab4bc7825e8002ccc73861b6de1f09a96cbfe40ed5.jpg",
|
| 777 |
+
"image_caption": [
|
| 778 |
+
"Figure 9: Zero-shot performance of BC models trained from scratch on the earlygame_keyword dataset labeled with IDMs that were trained on increasing amounts of contractor data. "
|
| 779 |
+
],
|
| 780 |
+
"image_footnote": [],
|
| 781 |
+
"bbox": [
|
| 782 |
+
498,
|
| 783 |
+
500,
|
| 784 |
+
820,
|
| 785 |
+
594
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 8
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "after which there are few to no gains and differences are likely due to noise. Similarly, crafting tables are only crafted after 50 or more hours of IDM data, and again gains plateau after 100 hours. While in all previous experiments we use our best IDM trained on 1962 hours of data, these results suggest we could reduce that number to as low as 100 hours. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
174,
|
| 794 |
+
686,
|
| 795 |
+
826,
|
| 796 |
+
741
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 8
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "5 Discussion and Conclusion ",
|
| 803 |
+
"text_level": 1,
|
| 804 |
+
"bbox": [
|
| 805 |
+
176,
|
| 806 |
+
766,
|
| 807 |
+
428,
|
| 808 |
+
784
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 8
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "The results presented in this paper help pave the path to utilizing the wealth of unlabeled data on the web for many sequential decision domains. Compared to representation learning methods, e.g. generative video modeling, VPT offers the exciting possibility of directly learning to act during pretraining and using these learned behavioral priors as extremely effective exploration priors for RL. VPT could even be an effective representation learning method for downstream tasks that do not require acting, e.g. video captioning, because arguably the most important information in any given scene would be present in features trained to correctly predict the distribution over future human actions. We leave this intriguing direction to future work. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
173,
|
| 817 |
+
800,
|
| 818 |
+
825,
|
| 819 |
+
911
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 8
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Future work could improve results with more data (we estimate we could collect ${ \\bf \\Lambda } > 1 { \\bf M }$ hours) and larger, better-tuned models. Our internet data was fairly noisy and varied (players choose their own graphics settings); we hope future work will investigate even noisier sources of data, as well as how to use both first and third person demonstrations. Furthermore, all models in this work condition on past observations only; we cannot ask the model to perform specific tasks. Appendix I presents preliminary experiments on conditioning our models on closed captions (text transcripts of speech in videos), showing they become weakly steerable; we believe this a rich direction for future research. By definition behavioral priors must predict actions, and in this work we found this objective sufficient to train capable agents; however, a fruitful direction could be incorporating auxiliary representation learning objectives (e.g. contrastive losses, environment dynamics modeling, etc.) to reduce the sample complexity of both the IDM and foundation models. Similarly, it would be interesting to see if VPT could benefit from pretraining its attention layers with a language modeling task as in Li et al. 68 and Reid et al. 69 Loss was not consistently correlated with downstream evaluation metrics (Sec. 4.2), which often made progress slow. Another worthwhile future direction would be to investigate the correlation between various training metrics and downstream evaluations. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
92,
|
| 829 |
+
825,
|
| 830 |
+
297
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 9
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "For RL fine-tuning we only experimented with a standard policy gradient based RL algorithm (PPG); an interesting future direction would be to investigate how well VPT can be combined with other RL algorithms, e.g. off-policy or model based. Furthermore, we showed the efficacy of fine-tuning VPT with RL using a very difficult, albeit handcrafted, reward function aimed at crafting diamond tools. We hope future work will combine VPT with methods that can generate more generic reward functions, e.g. natural language based reward functions as proposed in MineDojo70 (released after this paper). Finally, while we do not anticipate any direct negative societal impacts from the models trained in this work, as VPT improves and expands to other domains it will be important to assess and mitigate harms that emerge with other forms of pretraining on internet datasets, such as emulating inappropriate behavior. 71 ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
305,
|
| 840 |
+
825,
|
| 841 |
+
443
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 9
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "In conclusion, VPT extends the paradigm of training large and general purpose behavioral priors to sequential decision domains that have commonly available unlabeled internet data. Our models exhibited impressive zero-shot behavior and, when fine-tuned with RL, achieved an unprecedented result of crafting a diamond pickaxe in Minecraft (all the more difficult given the human interface). We further showed that contractor data is far better used within the VPT pipeline than to train a foundation model directly and that only a small amount of contractor data (about $\\$ 2000$ USD) was required to unlock massive amounts of unlabeled online data for use in BC. Finally, learning with the human keyboard and mouse interface is highly general and allows losslessly modeling the entire distribution of human behavior. While we only experiment in Minecraft, we believe that VPT provides a general recipe for training behavioral priors in hard, yet generic, action spaces in any domain that has a large amount of freely available unlabeled data, such as computer usage. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
449,
|
| 851 |
+
825,
|
| 852 |
+
602
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 9
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "Acknowledgements ",
|
| 859 |
+
"text_level": 1,
|
| 860 |
+
"bbox": [
|
| 861 |
+
176,
|
| 862 |
+
623,
|
| 863 |
+
338,
|
| 864 |
+
640
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 9
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "We thank the following people for helpful discussions and support: Bob McGrew, Ken Stanley, Joel Lehman, Ilya Sutskever, Wojciech Zaremba, Ingmar Kanitscheider, David Farhi, Glenn Powell, Jonathan Gordon, and the OpenAI supercomputing team, especially Christian Gibson, Ben Chess, and Christopher Berner. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
656,
|
| 874 |
+
826,
|
| 875 |
+
710
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 9
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "References ",
|
| 882 |
+
"text_level": 1,
|
| 883 |
+
"bbox": [
|
| 884 |
+
174,
|
| 885 |
+
733,
|
| 886 |
+
266,
|
| 887 |
+
750
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 9
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"text": "[1] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. \n[2] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. \n[3] 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. ",
|
| 894 |
+
"bbox": [
|
| 895 |
+
178,
|
| 896 |
+
758,
|
| 897 |
+
826,
|
| 898 |
+
911
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 9
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "[4] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683, 2019. ",
|
| 905 |
+
"bbox": [
|
| 906 |
+
179,
|
| 907 |
+
90,
|
| 908 |
+
821,
|
| 909 |
+
133
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 10
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "[5] Dhruv Mahajan, Ross Girshick, Vignesh Ramanathan, Kaiming He, Manohar Paluri, Yixuan Li, Ashwin Bharambe, and Laurens Van Der Maaten. Exploring the limits of weakly supervised pretraining. In Proceedings of the European conference on computer vision (ECCV), pages 181–196, 2018. ",
|
| 916 |
+
"bbox": [
|
| 917 |
+
181,
|
| 918 |
+
142,
|
| 919 |
+
821,
|
| 920 |
+
199
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 10
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "[6] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748–8763. PMLR, 2021. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
179,
|
| 929 |
+
208,
|
| 930 |
+
826,
|
| 931 |
+
265
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 10
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "[7] Rishi Bommasani, Drew A Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, et al. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
273,
|
| 941 |
+
823,
|
| 942 |
+
318
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 10
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "[8] Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer. Scaling vision transformers. CoRR, abs/2106.04560, 2021. URL https://arxiv.org/abs/2106.04560. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
178,
|
| 951 |
+
325,
|
| 952 |
+
825,
|
| 953 |
+
356
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 10
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "[9] Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, et al. A generalist agent. arXiv preprint arXiv:2205.06175, 2022. ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
178,
|
| 962 |
+
364,
|
| 963 |
+
825,
|
| 964 |
+
406
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 10
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "[10] David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. ",
|
| 971 |
+
"bbox": [
|
| 972 |
+
174,
|
| 973 |
+
416,
|
| 974 |
+
826,
|
| 975 |
+
472
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 10
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "[11] Oriol Vinyals, Igor Babuschkin, Wojciech M Czarnecki, Michaël Mathieu, Andrew Dudzik, Junyoung Chung, David H Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350–354, 2019. ",
|
| 982 |
+
"bbox": [
|
| 983 |
+
174,
|
| 984 |
+
481,
|
| 985 |
+
823,
|
| 986 |
+
525
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 10
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "[12] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
174,
|
| 995 |
+
534,
|
| 996 |
+
825,
|
| 997 |
+
563
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 10
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "[13] Christopher Berner, Greg Brockman, Brooke Chan, Vicki Cheung, Przemysław D˛ebiak, Christy Dennison, David Farhi, Quirin Fischer, Shariq Hashme, Chris Hesse, et al. Dota 2 with large scale deep reinforcement learning. arXiv preprint arXiv:1912.06680, 2019. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
171,
|
| 1006 |
+
570,
|
| 1007 |
+
823,
|
| 1008 |
+
614
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 10
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "[14] Bowen Baker, Ingmar Kanitscheider, Todor Markov, Yi Wu, Glenn Powell, Bob McGrew, and Igor Mordatch. Emergent tool use from multi-agent autocurricula. arXiv preprint arXiv:1909.07528, 2019. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
173,
|
| 1017 |
+
623,
|
| 1018 |
+
823,
|
| 1019 |
+
666
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 10
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "[15] Max Jaderberg, Wojciech M Czarnecki, Iain Dunning, Luke Marris, Guy Lever, Antonio Garcia Castaneda, Charles Beattie, Neil C Rabinowitz, Ari S Morcos, Avraham Ruderman, et al. Human-level performance in 3d multiplayer games with population-based reinforcement learning. Science, 364(6443):859–865, 2019. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
173,
|
| 1028 |
+
675,
|
| 1029 |
+
826,
|
| 1030 |
+
731
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 10
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "[16] Adrià Puigdomènech Badia, Bilal Piot, Steven Kapturowski, Pablo Sprechmann, Alex Vitvitskyi, Zhaohan Daniel Guo, and Charles Blundell. Agent57: Outperforming the atari human benchmark. In International Conference on Machine Learning, pages 507–517. PMLR, 2020. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
173,
|
| 1039 |
+
741,
|
| 1040 |
+
825,
|
| 1041 |
+
784
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 10
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "[17] Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. Advances in neural information processing systems, 29, 2016. ",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
173,
|
| 1050 |
+
792,
|
| 1051 |
+
825,
|
| 1052 |
+
835
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 10
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "[18] Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
173,
|
| 1061 |
+
844,
|
| 1062 |
+
821,
|
| 1063 |
+
873
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 10
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "[19] Adrien Ecoffet, Joost Huizinga, Joel Lehman, Kenneth O Stanley, and Jeff Clune. First return, then explore. Nature, 590(7847):580–586, 2021. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
174,
|
| 1072 |
+
883,
|
| 1073 |
+
820,
|
| 1074 |
+
911
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 10
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "[20] Peter C Humphreys, David Raposo, Toby Pohlen, Gregory Thornton, Rachita Chhaparia, Alistair Muldal, Josh Abramson, Petko Georgiev, Alex Goldin, Adam Santoro, et al. A data-driven approach for learning to control computers. arXiv preprint arXiv:2202.08137, 2022. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
171,
|
| 1083 |
+
90,
|
| 1084 |
+
823,
|
| 1085 |
+
133
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 11
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "[21] Tianlin Shi, Andrej Karpathy, Linxi Fan, Jonathan Hernandez, and Percy Liang. World of bits: An open-domain platform for web-based agents. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3135–3144. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/shi17a.html. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
174,
|
| 1094 |
+
143,
|
| 1095 |
+
825,
|
| 1096 |
+
214
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 11
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "[22] Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. In Icml, volume 1, page 2, 2000. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
173,
|
| 1105 |
+
224,
|
| 1106 |
+
823,
|
| 1107 |
+
253
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 11
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "[23] Faraz Torabi, Garrett Warnell, and Peter Stone. Recent advances in imitation learning from observation. arXiv preprint arXiv:1905.13566, 2019. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
173,
|
| 1116 |
+
262,
|
| 1117 |
+
823,
|
| 1118 |
+
292
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 11
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "[24] Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. Advances in neural information processing systems, 29, 2016. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
171,
|
| 1127 |
+
301,
|
| 1128 |
+
825,
|
| 1129 |
+
332
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 11
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "[25] Faraz Torabi, Garrett Warnell, and Peter Stone. Behavioral cloning from observation. arXiv preprint arXiv:1805.01954, 2018. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
173,
|
| 1138 |
+
340,
|
| 1139 |
+
825,
|
| 1140 |
+
369
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 11
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "[26] YuXuan Liu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Imitation from observation: Learning to imitate behaviors from raw video via context translation. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 1118–1125. IEEE, 2018. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
176,
|
| 1149 |
+
380,
|
| 1150 |
+
823,
|
| 1151 |
+
422
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 11
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "[27] Twinfinite Staff. Most played games in 2021, ranked by peak concurrent players. Twinfinite. URL https://twinfinite.net/2021/12/ most-played-games-in-2020-ranked-by-peak-concurrent-players/. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
178,
|
| 1160 |
+
433,
|
| 1161 |
+
823,
|
| 1162 |
+
477
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 11
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "[28] William H Guss, Brandon Houghton, Nicholay Topin, Phillip Wang, Cayden Codel, Manuela Veloso, and Ruslan Salakhutdinov. Minerl: A large-scale dataset of minecraft demonstrations. arXiv preprint arXiv:1907.13440, 2019. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
486,
|
| 1172 |
+
823,
|
| 1173 |
+
529
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 11
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "[29] Chen Tessler, Shahar Givony, Tom Zahavy, Daniel Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in minecraft. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
173,
|
| 1182 |
+
537,
|
| 1183 |
+
823,
|
| 1184 |
+
582
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 11
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "[30] Christian Scheller, Yanick Schraner, and Manfred Vogel. Sample efficient reinforcement learning through learning from demonstrations in minecraft. In NeurIPS 2019 Competition and Demonstration Track, pages 67–76. PMLR, 2020. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
590,
|
| 1194 |
+
825,
|
| 1195 |
+
633
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 11
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "[31] Ingmar Kanitscheider, Joost Huizinga, David Farhi, William Hebgen Guss, Brandon Houghton, Raul Sampedro, Peter Zhokhov, Bowen Baker, Adrien Ecoffet, Jie Tang, et al. Multi-task curriculum learning in a complex, visual, hard-exploration domain: Minecraft. arXiv preprint arXiv:2106.14876, 2021. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
173,
|
| 1204 |
+
643,
|
| 1205 |
+
823,
|
| 1206 |
+
700
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 11
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "[32] Junhyuk Oh, Valliappa Chockalingam, Honglak Lee, et al. Control of memory, active perception, and action in minecraft. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2016. ",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
173,
|
| 1215 |
+
710,
|
| 1216 |
+
826,
|
| 1217 |
+
753
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 11
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "[33] Vihang P Patil, Markus Hofmarcher, Marius-Constantin Dinu, Matthias Dorfer, Patrick M Blies, Johannes Brandstetter, Jose A Arjona-Medina, and Sepp Hochreiter. Align-rudder: Learning from few demonstrations by reward redistribution. arXiv preprint arXiv:2009.14108, 2020. ",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
173,
|
| 1226 |
+
763,
|
| 1227 |
+
825,
|
| 1228 |
+
806
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 11
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "[34] Alexey Skrynnik, Aleksey Staroverov, Ermek Aitygulov, Kirill Aksenov, Vasilii Davydov, and Aleksandr I Panov. Forgetful experience replay in hierarchical reinforcement learning from demonstrations. arXiv preprint arXiv:2006.09939, 2020. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
173,
|
| 1237 |
+
815,
|
| 1238 |
+
823,
|
| 1239 |
+
859
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 11
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "[35] Zichuan Lin, Junyou Li, Jianing Shi, Deheng Ye, Qiang Fu, and Wei Yang. Juewu-mc: Playing minecraft with sample-efficient hierarchical reinforcement learning. arXiv preprint arXiv:2112.04907, 2021. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
174,
|
| 1248 |
+
869,
|
| 1249 |
+
826,
|
| 1250 |
+
911
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 11
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "[36] Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. Advances in neural information processing systems, 1, 1988. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
171,
|
| 1259 |
+
90,
|
| 1260 |
+
825,
|
| 1261 |
+
121
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 12
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "[37] Stefan Schaal. Is imitation learning the route to humanoid robots? Trends in cognitive sciences, 3(6):233–242, 1999. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
174,
|
| 1270 |
+
128,
|
| 1271 |
+
823,
|
| 1272 |
+
159
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 12
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "[38] Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
166,
|
| 1282 |
+
825,
|
| 1283 |
+
196
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 12
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "[39] Ahmed Hussein, Mohamed Medhat Gaber, Eyad Elyan, and Chrisina Jayne. Imitation learning: A survey of learning methods. ACM Computing Surveys (CSUR), 50(2):1–35, 2017. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
173,
|
| 1292 |
+
205,
|
| 1293 |
+
825,
|
| 1294 |
+
234
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 12
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "[40] Claude Sammut, Scott Hurst, Dana Kedzier, and Donald Michie. Learning to fly. In Machine Learning Proceedings 1992, pages 385–393. Elsevier, 1992. ",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
171,
|
| 1303 |
+
243,
|
| 1304 |
+
823,
|
| 1305 |
+
273
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 12
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "[42] Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
173,
|
| 1314 |
+
348,
|
| 1315 |
+
823,
|
| 1316 |
+
391
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 12
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "[43] Felipe Codevilla, Matthias Müller, Antonio López, Vladlen Koltun, and Alexey Dosovitskiy. End-to-end driving via conditional imitation learning. In 2018 IEEE international conference on robotics and automation (ICRA), pages 4693–4700. IEEE, 2018. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
173,
|
| 1325 |
+
400,
|
| 1326 |
+
823,
|
| 1327 |
+
444
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 12
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "[44] Rémi Coulom. Computing “elo ratings” of move patterns in the game of go. ICGA journal, 30 (4):198–208, 2007. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
169,
|
| 1336 |
+
452,
|
| 1337 |
+
825,
|
| 1338 |
+
481
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 12
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "[45] Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Ian Osband, et al. Deep q-learning from demonstrations. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
171,
|
| 1347 |
+
489,
|
| 1348 |
+
825,
|
| 1349 |
+
534
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 12
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "[46] Ashley Edwards, Himanshu Sahni, Yannick Schroecker, and Charles Isbell. Imitating latent policies from observation. In International conference on machine learning, pages 1755–1763. PMLR, 2019. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
173,
|
| 1358 |
+
542,
|
| 1359 |
+
825,
|
| 1360 |
+
585
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 12
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "[47] Xue Bin Peng, Angjoo Kanazawa, Jitendra Malik, Pieter Abbeel, and Sergey Levine. Sfv: Reinforcement learning of physical skills from videos. ACM Transactions On Graphics (TOG), 37(6):1–14, 2018. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
171,
|
| 1369 |
+
594,
|
| 1370 |
+
826,
|
| 1371 |
+
637
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 12
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "[48] Feryal Behbahani, Kyriacos Shiarlis, Xi Chen, Vitaly Kurin, Sudhanshu Kasewa, Ciprian Stirbu, Joao Gomes, Supratik Paul, Frans A Oliehoek, Joao Messias, et al. Learning from demonstration in the wild. In 2019 International Conference on Robotics and Automation (ICRA), pages 775–781. IEEE, 2019. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
173,
|
| 1380 |
+
646,
|
| 1381 |
+
828,
|
| 1382 |
+
704
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 12
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "[49] Yusuf Aytar, Tobias Pfaff, David Budden, Thomas Paine, Ziyu Wang, and Nando De Freitas. Playing hard exploration games by watching youtube. Advances in neural information processing systems, 31, 2018. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
171,
|
| 1391 |
+
712,
|
| 1392 |
+
825,
|
| 1393 |
+
756
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 12
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "[50] Deepak Pathak, Parsa Mahmoudieh, Guanghao Luo, Pulkit Agrawal, Dian Chen, Yide Shentu, Evan Shelhamer, Jitendra Malik, Alexei A. Efros, and Trevor Darrell. Zero-shot visual imitation. In ICLR, 2018. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
171,
|
| 1402 |
+
765,
|
| 1403 |
+
825,
|
| 1404 |
+
806
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 12
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "[51] Ashvin Nair, Dian Chen, Pulkit Agrawal, Phillip Isola, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Combining self-supervised learning and imitation for vision-based rope manipulation. pages 2146–2153, 05 2017. doi: 10.1109/ICRA.2017.7989247. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
171,
|
| 1413 |
+
816,
|
| 1414 |
+
823,
|
| 1415 |
+
859
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 12
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "[52] Duy Nguyen-Tuong, Jan Peters, Matthias Seeger, and Bernhard Schölkopf. Learning inverse dynamics: a comparison. In European symposium on artificial neural networks, number CONF, 2008. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
174,
|
| 1424 |
+
869,
|
| 1425 |
+
826,
|
| 1426 |
+
911
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 12
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "[53] David Abel, Alekh Agarwal, Fernando Diaz, Akshay Krishnamurthy, and Robert E Schapire. Exploratory gradient boosting for reinforcement learning in complex domains. arXiv preprint arXiv:1603.04119, 2016. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
171,
|
| 1435 |
+
90,
|
| 1436 |
+
823,
|
| 1437 |
+
133
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 13
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "[54] Dilip Arumugam, Jun Ki Lee, Sophie Saskin, and Michael L Littman. Deep reinforcement learning from policy-dependent human feedback. arXiv preprint arXiv:1902.04257, 2019. ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
171,
|
| 1446 |
+
142,
|
| 1447 |
+
825,
|
| 1448 |
+
171
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 13
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "[55] Alexander Trott, Stephan Zheng, Caiming Xiong, and Richard Socher. Keeping your distance: Solving sparse reward tasks using self-balancing shaped rewards. Advances in Neural Information Processing Systems, 32, 2019. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
176,
|
| 1457 |
+
179,
|
| 1458 |
+
823,
|
| 1459 |
+
222
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 13
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "[56] Stephan Alaniz. Deep reinforcement learning with model learning and monte carlo tree search in minecraft. arXiv preprint arXiv:1803.08456, 2018. ",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
171,
|
| 1468 |
+
231,
|
| 1469 |
+
825,
|
| 1470 |
+
260
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 13
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "[57] Hiroto Udagawa, Tarun Narasimhan, and Shim-Young Lee. Fighting zombies in minecraft with deep reinforcement learning. Technical report, Technical report, Technical report, Stanford University, 2016. ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
173,
|
| 1479 |
+
267,
|
| 1480 |
+
823,
|
| 1481 |
+
310
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 13
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "[58] Tianmin Shu, Caiming Xiong, and Richard Socher. Hierarchical and interpretable skill acquisition in multi-task reinforcement learning. arXiv preprint arXiv:1712.07294, 2017. ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
173,
|
| 1490 |
+
319,
|
| 1491 |
+
823,
|
| 1492 |
+
349
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 13
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "[59] Junhyuk Oh, Satinder Singh, Honglak Lee, and Pushmeet Kohli. Zero-shot task generalization with multi-task deep reinforcement learning. In International Conference on Machine Learning, pages 2661–2670. PMLR, 2017. ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
174,
|
| 1501 |
+
357,
|
| 1502 |
+
825,
|
| 1503 |
+
400
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 13
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "[60] Zhengxiang Shi, Yue Feng, and Aldo Lipani. Learning to execute or ask clarification questions. arXiv preprint arXiv:2204.08373, 2022. ",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
173,
|
| 1512 |
+
407,
|
| 1513 |
+
821,
|
| 1514 |
+
438
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 13
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "[61] Tambet Matiisen, Avital Oliver, Taco Cohen, and John Schulman. Teacher–student curriculum learning. IEEE transactions on neural networks and learning systems, 31(9):3732–3740, 2019. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
173,
|
| 1523 |
+
445,
|
| 1524 |
+
825,
|
| 1525 |
+
474
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 13
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "[62] Robert George Douglas Steel, James Hiram Torrie, et al. Principles and procedures of statistics. Principles and procedures of statistics., 1960. ",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
173,
|
| 1534 |
+
482,
|
| 1535 |
+
823,
|
| 1536 |
+
512
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 13
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "[63] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. ",
|
| 1543 |
+
"bbox": [
|
| 1544 |
+
174,
|
| 1545 |
+
520,
|
| 1546 |
+
826,
|
| 1547 |
+
563
|
| 1548 |
+
],
|
| 1549 |
+
"page_idx": 13
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"type": "text",
|
| 1553 |
+
"text": "[64] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. ",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
174,
|
| 1556 |
+
571,
|
| 1557 |
+
826,
|
| 1558 |
+
614
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 13
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "[65] Karl W Cobbe, Jacob Hilton, Oleg Klimov, and John Schulman. Phasic policy gradient. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 2020– 2027. PMLR, 18–24 Jul 2021. URL https://proceedings.mlr.press/v139/cobbe21a. html. ",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
174,
|
| 1567 |
+
622,
|
| 1568 |
+
826,
|
| 1569 |
+
693
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 13
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "text",
|
| 1575 |
+
"text": "[66] Dhireesha Kudithipudi, Mario Aguilar-Simon, Jonathan Babb, Maxim Bazhenov, Douglas Blackiston, Josh Bongard, Andrew P Brna, Suraj Chakravarthi Raja, Nick Cheney, Jeff Clune, et al. Biological underpinnings for lifelong learning machines. Nature Machine Intelligence, 4 (3):196–210, 2022. ",
|
| 1576 |
+
"bbox": [
|
| 1577 |
+
173,
|
| 1578 |
+
702,
|
| 1579 |
+
826,
|
| 1580 |
+
757
|
| 1581 |
+
],
|
| 1582 |
+
"page_idx": 13
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"type": "text",
|
| 1586 |
+
"text": "[67] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017. ",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
173,
|
| 1589 |
+
766,
|
| 1590 |
+
826,
|
| 1591 |
+
823
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 13
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "text",
|
| 1597 |
+
"text": "[68] Shuang Li, Xavier Puig, Yilun Du, Clinton Wang, Ekin Akyurek, Antonio Torralba, Jacob Andreas, and Igor Mordatch. Pre-trained language models for interactive decision-making. arXiv preprint arXiv:2202.01771, 2022. ",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
171,
|
| 1600 |
+
832,
|
| 1601 |
+
821,
|
| 1602 |
+
875
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 13
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "[69] Machel Reid, Yutaro Yamada, and Shixiang Shane Gu. Can wikipedia help offline reinforcement learning? arXiv preprint arXiv:2201.12122, 2022. ",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
173,
|
| 1611 |
+
882,
|
| 1612 |
+
820,
|
| 1613 |
+
911
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 13
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "text",
|
| 1619 |
+
"text": "[70] Linxi Fan, Guanzhi Wang, Yunfan Jiang, Ajay Mandlekar, Yuncong Yang, Haoyi Zhu, Andrew Tang, De-An Huang, Yuke Zhu, and Anima Anandkumar. Minedojo: Building open-ended embodied agents with internet-scale knowledge. arXiv preprint arXiv:2206.08853, 2022. ",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
173,
|
| 1622 |
+
90,
|
| 1623 |
+
823,
|
| 1624 |
+
133
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 14
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "[71] Emily M Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big???. In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, pages 610–623, 2021. ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
171,
|
| 1633 |
+
145,
|
| 1634 |
+
823,
|
| 1635 |
+
188
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 14
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "[72] Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, et al. Scikitlearn: Machine learning in python. the Journal of machine Learning research, 12:2825–2830, 2011. ",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
173,
|
| 1644 |
+
198,
|
| 1645 |
+
825,
|
| 1646 |
+
253
|
| 1647 |
+
],
|
| 1648 |
+
"page_idx": 14
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"type": "text",
|
| 1652 |
+
"text": "[73] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. ",
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
173,
|
| 1655 |
+
265,
|
| 1656 |
+
825,
|
| 1657 |
+
308
|
| 1658 |
+
],
|
| 1659 |
+
"page_idx": 14
|
| 1660 |
+
},
|
| 1661 |
+
{
|
| 1662 |
+
"type": "text",
|
| 1663 |
+
"text": "[74] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. ",
|
| 1664 |
+
"bbox": [
|
| 1665 |
+
174,
|
| 1666 |
+
319,
|
| 1667 |
+
825,
|
| 1668 |
+
348
|
| 1669 |
+
],
|
| 1670 |
+
"page_idx": 14
|
| 1671 |
+
},
|
| 1672 |
+
{
|
| 1673 |
+
"type": "text",
|
| 1674 |
+
"text": "[75] Yann A LeCun, Léon Bottou, Genevieve B Orr, and Klaus-Robert Müller. Efficient backprop. In Neural networks: Tricks of the trade, pages 9–48. Springer, 2012. ",
|
| 1675 |
+
"bbox": [
|
| 1676 |
+
174,
|
| 1677 |
+
358,
|
| 1678 |
+
823,
|
| 1679 |
+
388
|
| 1680 |
+
],
|
| 1681 |
+
"page_idx": 14
|
| 1682 |
+
},
|
| 1683 |
+
{
|
| 1684 |
+
"type": "text",
|
| 1685 |
+
"text": "[76] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1686 |
+
"bbox": [
|
| 1687 |
+
173,
|
| 1688 |
+
398,
|
| 1689 |
+
823,
|
| 1690 |
+
428
|
| 1691 |
+
],
|
| 1692 |
+
"page_idx": 14
|
| 1693 |
+
},
|
| 1694 |
+
{
|
| 1695 |
+
"type": "text",
|
| 1696 |
+
"text": "[77] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, highperformance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché- Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 8024–8035. Curran Associates, Inc., 2019. URL http://papers.neurips.cc/paper/ 9015-pytorch-an-imperative-style-high-performance-deep-learning-library. pdf. ",
|
| 1697 |
+
"bbox": [
|
| 1698 |
+
174,
|
| 1699 |
+
438,
|
| 1700 |
+
828,
|
| 1701 |
+
564
|
| 1702 |
+
],
|
| 1703 |
+
"page_idx": 14
|
| 1704 |
+
},
|
| 1705 |
+
{
|
| 1706 |
+
"type": "text",
|
| 1707 |
+
"text": "[78] Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional nonconvex optimization. Advances in neural information processing systems, 27, 2014. ",
|
| 1708 |
+
"bbox": [
|
| 1709 |
+
173,
|
| 1710 |
+
574,
|
| 1711 |
+
828,
|
| 1712 |
+
617
|
| 1713 |
+
],
|
| 1714 |
+
"page_idx": 14
|
| 1715 |
+
},
|
| 1716 |
+
{
|
| 1717 |
+
"type": "text",
|
| 1718 |
+
"text": "[79] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? Advances in neural information processing systems, 27, 2014. ",
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
169,
|
| 1721 |
+
627,
|
| 1722 |
+
823,
|
| 1723 |
+
659
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 14
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "text",
|
| 1729 |
+
"text": "[80] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. ",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
173,
|
| 1732 |
+
667,
|
| 1733 |
+
823,
|
| 1734 |
+
710
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 14
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "text",
|
| 1740 |
+
"text": "[81] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
171,
|
| 1743 |
+
722,
|
| 1744 |
+
823,
|
| 1745 |
+
751
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 14
|
| 1748 |
+
},
|
| 1749 |
+
{
|
| 1750 |
+
"type": "text",
|
| 1751 |
+
"text": "[82] John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015. ",
|
| 1752 |
+
"bbox": [
|
| 1753 |
+
173,
|
| 1754 |
+
762,
|
| 1755 |
+
825,
|
| 1756 |
+
804
|
| 1757 |
+
],
|
| 1758 |
+
"page_idx": 14
|
| 1759 |
+
},
|
| 1760 |
+
{
|
| 1761 |
+
"type": "text",
|
| 1762 |
+
"text": "[83] Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3):229–256, 1992. ",
|
| 1763 |
+
"bbox": [
|
| 1764 |
+
168,
|
| 1765 |
+
815,
|
| 1766 |
+
825,
|
| 1767 |
+
844
|
| 1768 |
+
],
|
| 1769 |
+
"page_idx": 14
|
| 1770 |
+
},
|
| 1771 |
+
{
|
| 1772 |
+
"type": "text",
|
| 1773 |
+
"text": "[84] Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pages 1928–1937. PMLR, 2016. ",
|
| 1774 |
+
"bbox": [
|
| 1775 |
+
174,
|
| 1776 |
+
856,
|
| 1777 |
+
826,
|
| 1778 |
+
911
|
| 1779 |
+
],
|
| 1780 |
+
"page_idx": 14
|
| 1781 |
+
},
|
| 1782 |
+
{
|
| 1783 |
+
"type": "text",
|
| 1784 |
+
"text": "[85] Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. Advances in neural information processing systems, 30, 2017. \n[86] Tom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal value function approximators. In International conference on machine learning, pages 1312–1320. PMLR, 2015. \n[87] Open Ended Learning Team, Adam Stooke, Anuj Mahajan, Catarina Barros, Charlie Deck, Jakob Bauer, Jakub Sygnowski, Maja Trebacz, Max Jaderberg, Michael Mathieu, et al. Openended learning leads to generally capable agents. arXiv preprint arXiv:2107.12808, 2021. \n[88] Jelena Luketina, Nantas Nardelli, Gregory Farquhar, Jakob Foerster, Jacob Andreas, Edward Grefenstette, Shimon Whiteson, and Tim Rocktäschel. A survey of reinforcement learning informed by natural language. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19, pages 6309–6317. International Joint Conferences on Artificial Intelligence Organization, 7 2019. doi: 10.24963/ijcai.2019/880. URL https://doi.org/10.24963/ijcai.2019/880. \n[89] DeepMind Interactive Agents Team, Josh Abramson, Arun Ahuja, Arthur Brussee, Federico Carnevale, Mary Cassin, Felix Fischer, Petko Georgiev, Alex Goldin, Tim Harley, et al. Creating multimodal interactive agents with imitation and self-supervised learning. arXiv preprint arXiv:2112.03763, 2021. \n[90] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022. \n[91] Dong Yu and Li Deng. Automatic speech recognition, volume 1. Springer, 2016. \n[92] Daulet Nurmanbetov. rpunct, May 25 2021. URL https://github.com/Felflare/rpunct. accessed 2022-04-22. \n[93] Arvind Neelakantan, Tao Xu, Raul Puri, Alec Radford, Jesse Michael Han, Jerry Tworek, Qiming Yuan, Nikolas Tezak, Jong Wook Kim, Chris Hallacy, et al. Text and code embeddings by contrastive pre-training. arXiv preprint arXiv:2201.10005, 2022. ",
|
| 1785 |
+
"bbox": [
|
| 1786 |
+
169,
|
| 1787 |
+
83,
|
| 1788 |
+
828,
|
| 1789 |
+
550
|
| 1790 |
+
],
|
| 1791 |
+
"page_idx": 15
|
| 1792 |
+
}
|
| 1793 |
+
]
|
parse/dev/AXDNM76T1nc/AXDNM76T1nc_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/AXDNM76T1nc/AXDNM76T1nc_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/Fkckkr3ya8/Fkckkr3ya8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/HtoA0oT30jC/HtoA0oT30jC.md
ADDED
|
@@ -0,0 +1,525 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NOVEL VIEW SYNTHESIS WITH DIFFUSION MODELS
|
| 2 |
+
|
| 3 |
+
Daniel Watson Google Research, Brain
|
| 4 |
+
|
| 5 |
+
William Chan Google Research, Brain
|
| 6 |
+
|
| 7 |
+
Ricardo Martin-Brualla Google Research
|
| 8 |
+
|
| 9 |
+
Jonathan Ho Google Research, Brain
|
| 10 |
+
|
| 11 |
+
Andrea Tagliasacchi Google Research, Brain
|
| 12 |
+
|
| 13 |
+
Mohammad Norouzi Google Research, Brain
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
We present 3DiM, a diffusion model for 3D novel view synthesis, which is able to translate a single input view into consistent and sharp completions across many views. The core component of 3DiM is a pose-conditional image-to-image diffusion model, which is trained to take a source view and its pose as inputs, and generates a novel view for a target pose as output. 3DiM can then generate multiple views that are approximately 3D consistent using a novel technique called stochastic conditioning. At inference time, the output views are generated autoregressively. When generating each novel view, one selects a random conditioning view from the set of previously generated views at each denoising step. We demonstrate that stochastic conditioning significantly improves 3D consistency compared to a na¨ıve sampler for an image-to-image diffusion model, which involves conditioning on a single fixed view. We compare 3DiM to prior work on the SRN ShapeNet dataset, demonstrating that 3DiM’s generated completions from a single view achieve much higher fidelity, while being approximately 3D consistent. We also introduce a new evaluation methodology, 3D consistency scoring, to quantify the 3D consistency of a generated object by training a neural field on the model’s output views. 3DiM is geometry free, does not rely on hyper-networks or test-time optimization for novel view synthesis, and allows a single model to easily scale to a large number of scenes.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Given a single input image on the left, 3DiM performs novel view synthesis and generates the four views on the right. We trained a single ${ \sim } 4 7 1 \mathrm { M }$ parameter 3DiM on all of ShapeNet (without classconditioning) and sample frames with 256 steps (512 score function evaluations with classifier-free guidance). See the Supplementary Website (https://3d-diffusion.github.io/) for video outputs.
|
| 21 |
+
|
| 22 |
+
# 1 INTRODUCTION
|
| 23 |
+
|
| 24 |
+
Diffusion Probabilistic Models (DPMs) (Sohl-Dickstein et al., 2015; Song & Ermon, 2019; Ho et al., 2020), also known as simply diffusion models, have recently emerged as a powerful family of generative models, achieving state-of-the-art performance on audio and image synthesis (Chen et al., 2020; Dhariwal & Nichol, 2021), while admitting better training stability over adversarial approaches (Goodfellow et al., 2014), as well as likelihood computation, which enables further applications such as compression and density estimation (Song et al., 2021; Kingma et al., 2021). Diffusion models have achieved impressive empirical results in a variety of image-to-image translation tasks not limited to text-to-image, super-resolution, inpainting, colorization, uncropping, and artifact removal (Song et al., 2020; Saharia et al., 2021a; Ramesh et al., 2022; Saharia et al., 2022).
|
| 25 |
+
|
| 26 |
+
One particular image-to-image translation problem where diffusion models have not been investigated is novel view synthesis, where, given a set of images of a given 3D scene, the task is to infer how the scene looks from novel viewpoints. Before the recent emergence of Scene Representation Networks (SRN) (Sitzmann et al., 2019) and Neural Radiance Fields (NeRF) (Mildenhall et al., 2020), state-of-the-art approaches to novel view synthesis were typically built on generative models (Sun et al., 2018) or more classical techniques on interpolation or disparity estimation (Park et al., 2017; Zhou et al., 2018). Today, these models have been outperformed by NeRF-class models (Yu et al., 2021; Niemeyer et al., 2021; Jang & Agapito, 2021), where 3D consistency is guaranteed by construction, as images are generated by volume rendering of a single underlying 3D representation (a.k.a. “geometry-aware” models).
|
| 27 |
+
|
| 28 |
+
Still, these approaches feature different limitations. Heavily regularized NeRFs for novel view synthesis with few images such as RegNeRF (Niemeyer et al., 2021) produce undesired artifacts when given very few images, and fail to leverage knowledge from multiple scenes (recall NeRFs are trained on a single scene, i.e., one model per scene), and given one or very few views of a novel scene, a reasonable model must extrapolate to complete the occluded parts of the scene. PixelNeRF (Yu et al., 2021) and VisionNeRF (Lin et al., 2022) address this by training NeRF-like models conditioned on feature maps that encode the novel input view(s). However, these approaches are regressive rather than generative, and as a result, they cannot yield different plausible modes and are prone to blurriness. This type of failure has also been previously observed in regression-based models (Saharia et al., 2021b). Other works such as CodeNeRF (Jang & Agapito, 2021) and LoLNeRF (Rebain et al., 2021) instead employ test-time optimization to handle novel scenes, but still have issues with sample quality.
|
| 29 |
+
|
| 30 |
+
In recent literature, geometry-free approaches (i.e., methods without explicit geometric inductive biases like those introduced by volume rendering) such as Light Field Networks (LFN) (Sitzmann et al., 2021) and Scene Representation Transformers (SRT) (Sajjadi et al., 2021) have achieved results competitive with 3D-aware methods in the “few-shot” setting, where the number of conditioning views is limited (i.e., 1-10 images vs. dozens of images as in the usual NeRF setting). Similarly to our approach, EG3D (Chan et al., 2022) provides approximate 3D consistency by leveraging generative models. EG3D employs a StyleGAN (Karras et al., 2019) with volumetric rendering, followed by generative super-resolution (the latter being responsible for the approximation). In comparison to this complex setup, we do not only provide a significantly simpler architecture, but also a simpler hyper-parameter tuning experience compared GANs, which are well-known to be notoriously difficult to tune (Mescheder et al., 2018).
|
| 31 |
+
|
| 32 |
+
Motivated by these observations and the success of diffusion models in image-to-image tasks, we introduce 3D Diffusion Models (3DiMs). 3DiMs are image-to-image diffusion models trained on pairs of images of the same scene, where we assume the poses of the two images are known. Drawing inspiration from Scene Representation Transformers (Sajjadi et al., 2021), 3DiMs are trained to build a conditional generative model of one view given another view and their poses. Our key discovery is that we can turn this image-to-image model into a model that can produce an entire set of 3D-consistent frames through autoregressive generation, which we enable with our novel stochastic conditioning sampling algorithm. We cover stochastic conditioning in more detail in Section 2.2 and provide an illustration in Figure 3. Compared to prior work, 3DiMs are generative (vs. regressive) geometry free models, they allow training to scale to a large number of scenes, and offer a simple end-to-end approach.
|
| 33 |
+
|
| 34 |
+
We now summarize our core contributions:
|
| 35 |
+
|
| 36 |
+
1. We introduce 3DiM, a geometry-free image-to-image diffusion model for novel view synthesis.
|
| 37 |
+
2. We introduce the stochastic conditioning sampling algorithm, which encourages 3DiM to generate 3D-consistent outputs.
|
| 38 |
+
3. We introduce $X$ -UNet, a new UNet architecture (Ronneberger et al., 2015) variant for 3D novel view synthesis, demonstrating that changes in architecture are critical for high fidelity results.
|
| 39 |
+
4. We introduce an evaluation scheme for geometry-free view synthesis models, $3 D$ consistency scoring, that can numerically capture 3D consistency by training neural fields on model outputs.
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
Figure 2: Pose-conditional image-to-image training – Example training inputs and outputs for pose-conditional image-to-image diffusion models, presented in Section 2.1. Given two frames from a common scene and their poses $( R , t )$ , the training task is to undo the noise added to one of the two frames. $( ^ { * } )$ In practice, our neural network is trained to predict the Gaussian noise $\epsilon$ used to corrupt the original view – the predicted view is still just a linear combination of the noisy input and the predicted $\epsilon$ .
|
| 43 |
+
|
| 44 |
+
# 2 POSE-CONDITIONAL DIFFUSION MODELS
|
| 45 |
+
|
| 46 |
+
To motivate 3DiMs, let us consider the problem of novel view synthesis given few images from a probabilistic perspective. Given a complete description of a 3D scene $s$ , for any pose $\pmb { p }$ , the view $\scriptstyle { \pmb { x } } ^ { ( { \pmb { p } } ) }$ at pose $\pmb { p }$ is fully determined from $s$ , i.e., views are conditionally independent given $s$ . However, we are interested in modeling distributions of the form $q ( \pmb { x } _ { 1 } , . . . , \pmb { x } _ { m } | \pmb { x } _ { m + 1 } , . . . , \pmb { x } _ { n } )$ without $s$ , where views are no longer conditionally independent. A concrete example is the following: given the back of a person’s head, there are multiple plausible views for the front. An image-to-image model sampling front views given only the back should indeed yield different outputs for each front view – with no guarantees that they will be consistent with each other – especially if it learns the data distribution perfectly. Similarly, given a single view of an object that appears small, there is ambiguity on the pose itself: is it small and close, or simply far away? Thus, given the inherent ambiguity in the few-shot setting, we need a sampling scheme where generated views can depend on each other in order to achieve 3D consistency. This contrasts NeRF approaches, where query rays are conditionally independent given a 3D representation $s$ – an even stronger condition than imposing conditional independence among frames. Such approaches try to learn the richest possible representation for a single scene $s$ , while 3DiM avoids the difficulty of learning a generative model for $s$ altogether.
|
| 47 |
+
|
| 48 |
+
# 2.1 IMAGE-TO-IMAGE DIFFUSION MODELS WITH POSE CONDITIONING
|
| 49 |
+
|
| 50 |
+
Given a data distribution $q ( \pmb { x } _ { 1 } , \pmb { x } _ { 2 } )$ of pairs of views from a common scene at poses $p _ { 1 } , p _ { 2 } \in \mathrm { S E } ( 3 )$ , we define an isotropic Gaussian process that adds increasing amounts of noise to data samples as the signal-to-noise-ratio $\lambda$ decreases, following Salimans & Ho (2022):
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
q ( z _ { k } ^ { ( \lambda ) } | \pmb { x } _ { k } ) : = \mathcal { N } ( z _ { k } ^ { ( \lambda ) } ; \sigma ( \lambda ) ^ { \frac { 1 } { 2 } } \pmb { x } _ { k } , \sigma ( - \lambda ) \mathbf { I } )
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where $\sigma ( \cdot )$ is the sigmoid function. We can apply the reparametrization trick (Kingma & Welling, 2013) and sample from these marginal distributions via
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
z _ { k } ^ { ( \lambda ) } = \sigma ( \lambda ) ^ { \frac { 1 } { 2 } } x _ { k } + \sigma ( - \lambda ) ^ { \frac { 1 } { 2 } } \epsilon , \quad \epsilon \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } )
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
Then, given a pair of views, we learn to reverse this process in one of the two frames by minimizing the objective proposed by $\mathrm { H o }$ et al. (2020), which has been shown to yield much better sample quality than maximizing the true evidence lower bound (ELBO):
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
L ( \theta ) = \mathbb { E } _ { q ( \pmb { x } _ { 1 } , \pmb { x } _ { 2 } ) } ~ \mathbb { E } _ { \lambda , \epsilon } ~ \| \epsilon _ { \theta } ( z _ { 2 } ^ { ( \lambda ) } , \pmb { x } _ { 1 } , \lambda , \pmb { p } _ { 1 } , \pmb { p } _ { 2 } ) - \epsilon \| _ { 2 } ^ { 2 }
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
where θ is a neural network whose task is to denoise the frame z(λ)2 given a different (clean) frame $\scriptstyle { \mathbf { { \mathscr { x } } } } _ { 1 }$ , and $\lambda$ is the log signal-to-noise-ratio. To make our notation more legible, we slightly abuse notation and from now on we will simply write $\epsilon _ { \theta } ( z _ { 2 } ^ { ( \lambda ) } , x _ { 1 } )$ . We illustrate training in Figure 2.
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
Figure 3: Stochastic conditioning sampler – We illustrate our proposed inference procedure for 3DiM, outlined in Section 2.2. There are two main components to our sampling procedure: (1) the autoregressive generation of multiple frames (illustrated vertically as “step $1 ^ { \circ }$ , “step $2 ^ { \circ }$ , etc.), and (2) the denoising process to generate each individual frame (illustrated horizontally). When generating a new frame, we select a previous frame as the conditioning frame randomly at each denoising step (illustrated with the dice). Note that this is not part of 3DiM training; also, we omit the pose inputs in the diagram to avoid overloading the figure.
|
| 72 |
+
|
| 73 |
+
# 2.2 3D CONSISTENCY VIA STOCHASTIC CONDITIONING
|
| 74 |
+
|
| 75 |
+
Motivation. We begin this section by motivating the need of our stochastic conditioning sampler. In the ideal situation, we would model our 3D scene frames using the chain rule decomposition:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
p ( \pmb { x } ) = \prod _ { i } p ( \pmb { x } _ { i } | \pmb { x } _ { < i } )
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
This factorization is ideal, as it models the distribution exactly without making any conditional independence assumptions. Each frame is generated autoregressively, conditioned on all the previous frames. However, we found this solution to perform poorly. Due to memory limitations, we can only condition on a limited number of frames in practice, (i.e., a $k$ -Markovian model). We also find that, as we increase the maximum number of input frames $k$ , the worse the sample quality becomes. In order to achieve the best possible sample quality, we thus opt for the bare minimum of $k = 2$ (i.e., an image-to-image model). Our key discovery is that, with $k = 2$ , we can still achieve approximate 3D consistency. Instead of using a sampler that is Markovian over frames, we leverage the iterative nature of diffusion sampling by varying the conditioning frame at each denoising step.
|
| 82 |
+
|
| 83 |
+
Stochastic Conditioning. We now detail our novel stochastic conditioning sampling procedure that allows us to generate 3D-consistent samples from a 3DiM. We start with a set of conditioning views $\mathcal { X } = \{ \pmb { x } _ { 1 } , . . . , \pmb { x } _ { k } \}$ of a static scene, where typically $k = 1$ or is very small. We then generate a new frame by running a modified version of the standard denoising diffusion reverse process for steps $\lambda _ { \operatorname* { m i n } } = \lambda _ { T } < \lambda _ { T - 1 } < . . . < \lambda _ { 0 } = \lambda _ { \operatorname* { m a x } }$ :
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array} { r c l } { { \hat { \pmb x } _ { k + 1 } } } & { { = } } & { { \displaystyle \frac { 1 } { \sigma ( \lambda _ { k } ) ^ { \frac { 1 } { 2 } } } \left( \pmb z _ { k + 1 } ^ { ( \lambda _ { t } ) } - \sigma ( - \lambda _ { t } ) ^ { \frac { 1 } { 2 } } \pmb \epsilon _ { \theta } ( \pmb z _ { k + 1 } ^ { ( \lambda _ { t } ) } , \pmb x _ { i } ) \right) } } \\ { { \pmb z _ { k + 1 } ^ { ( \lambda _ { t - 1 } ) } } } & { { \sim } } & { { q \left( \pmb z _ { k + 1 } ^ { ( \lambda _ { t - 1 } ) } | \pmb z _ { k + 1 } ^ { ( \lambda _ { t } ) } , \hat { \pmb x } _ { k + 1 } \right) } } \end{array}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where, crucially, $i \sim \operatorname { U n i f o r m } ( \{ 1 , . . . , k \} )$ is re-sampled at each denoising step. In other words, each individual denoising step is conditioned on a different random view from $\mathcal { X }$ (the set that contains the input view(s) and the previously generated samples). Once we finish running this sampling chain and produce a final $\mathbf { \boldsymbol { x } } _ { k + 1 }$ , we simply add it to $\mathcal { X }$ and repeat this procedure if we want to sample more frames. Given sufficient denoising steps, stochastic conditioning allows each generated frame to be guided by all previous frames. See Figure 3 for an illustration. In practice, we use 256 denoising steps, which we find to be sufficient to achieve both high sample quality and approximate 3D consistency. As usual in the literature, the first (noisiest sample) is just a Gaussian, i.e., $z _ { i } ^ { ( \lambda _ { T } ) } \sim$ $\mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ , and at the last step $\lambda _ { 0 }$ , we sample noiselessly.
|
| 90 |
+
|
| 91 |
+
We can interpret stochastic conditioning as a na¨ıve approximation to true autoregressive sampling that works well in practice. True autoregressive sampling would require a score model of the form $\nabla _ { z _ { k + 1 } ^ { ( \lambda ) } } \log q ( z _ { k + 1 } ^ { ( \lambda ) } | \pmb { x } _ { 1 } , . . . , \pmb { x } _ { k } )$ , but this would strictly require multi-view training data, while we are ultimately interested in enabling novel view synthesis with as few as two training views per scene.
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
Figure 4: X-UNet Architecture – We modify the typical UNet architecture used by recent work on diffusion models to accomodate 3D novel view synthesis. We share the same UNet weights among the two input frames, the clean conditioning view and the denoising target view. We add cross attention layers to mix information between the input and output view, illustrated in yellow.
|
| 95 |
+
|
| 96 |
+
# 2.3 X-UNET
|
| 97 |
+
|
| 98 |
+
The 3DiM model needs a neural network architecture that takes both the conditioning frame and the noisy frame as inputs. One natural way to do this is simply to concatenate the two images along the channel dimensions, and use the standard UNet architecture (Ronneberger et al., 2015; Ho et al., 2020). This “Concat-UNet” has found significant success in prior work of image-to-image diffusion models (Saharia et al., 2021b;a). However, in our early experiments, we found that the Concat-UNet yields very poor results – there were severe 3D inconsistencies and lack of alignment to the conditioning image. We hypothesize that, given limited model capacity and training data, it is difficult to learn complex, nonlinear image transformations that only rely on self-attention. We thus introduce our $X$ -UNet, whose core changes are (1) sharing parameters to process each of the two views, and (2) using cross attention between the two views. We find our X-UNet architecture to be very effective for 3D novel view synthesis.
|
| 99 |
+
|
| 100 |
+
We now describe X-UNet in detail. We follow Ho et al. (2020); Song et al. (2020), and use the UNet (Ronneberger et al., 2015) with residual blocks and self-attention.We also take inspiration from Video Diffusion Models (Ho et al., 2022) by sharing weights over the two input frames for all the convolutional and self-attention layers, but with several key differences:
|
| 101 |
+
|
| 102 |
+
1. We let each frame have its own noise level (recall that the inputs to a DDPM residual block are feature maps as well as a positional encoding for the noise level). We use a positional encoding of $\lambda _ { \mathrm { m a x } }$ for the clean frame. Ho et al. (2022) conversely denoise multiple frames simultaneously, each at the same noise level. 2. Alike Ho et al. (2020), we modulate each UNet block via FiLM (Dumoulin et al., 2018), but we use the sum of pose and noise-level positional encodings, as opposed to the noise-level embedding alone. Our pose encoding additionally differs in that they are of the same dimensionality as frames– they are camera rays, identical to those used by Sajjadi et al. (2021). 3. Instead of attending over “time” after each self-attention layer like Ho et al. (2022), which in our case would entail only two attention weights, we define a cross-attention layer and let each frame’s feature maps call this layer to query the other frame’s feature maps.
|
| 103 |
+
|
| 104 |
+
For more details on our proposed architecture, we refer the reader to the Supplementary Material (Sec.6). We also provide a comparison to the “Concat-UNet” architecture in Section 3.2.
|
| 105 |
+
|
| 106 |
+

|
| 107 |
+
Figure 5: State-of-the-art comparisons – Example input and output views of a 3DiM trained on the SRN cars dataset at the 128x128 resolution, compared to existing geometry-aware methods. Results are best appreciated in the Supplementary Website (https://3d-diffusion.github.io/).
|
| 108 |
+
|
| 109 |
+
Table 2: State-of-the-art comparisons – Results on the SRN ShapeNet benchmark comparing 3DiMs to prior work on novel view synthesis from a single image. $( ^ { * } )$ SSIM scores may not necessarily be computed with a Gaussian kernel following Wang et al. (2004) – in practice we observe this can lead to differences of up to 0.02. We report these marked numbers directly from prior work.
|
| 110 |
+
|
| 111 |
+
<table><tr><td rowspan="2"></td><td colspan="3">SRN cars</td><td colspan="3">SRN chairs</td></tr><tr><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td></tr><tr><td>Geometry-aware</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>SRN</td><td>22.25</td><td>0.88</td><td>41.21</td><td>22.89</td><td>0.89</td><td>26.51</td></tr><tr><td>PixelNeRF</td><td>23.17</td><td>0.89</td><td>59.24</td><td>23.72</td><td>0.90</td><td>38.49</td></tr><tr><td>VisionNeRF</td><td>22.88</td><td>0.90</td><td>21.31</td><td>24.48</td><td>0.92</td><td>10.05</td></tr><tr><td>CodeNeRF</td><td>23.80</td><td>*0.91</td><td></td><td>23.66</td><td>*0.90</td><td>1</td></tr><tr><td>Geometry-free</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>LFN</td><td>22.42</td><td>*0.89</td><td></td><td>22.26</td><td>*0.90</td><td></td></tr><tr><td>ENR</td><td>22.26</td><td></td><td></td><td>22.83</td><td>1</td><td></td></tr><tr><td>3DiM (ours)</td><td>21.01</td><td>0.57</td><td>8.99</td><td>17.05</td><td>0.53</td><td>6.57</td></tr></table>
|
| 112 |
+
|
| 113 |
+
# 3 EXPERIMENTS
|
| 114 |
+
|
| 115 |
+
We benchmark 3DiMs on the SRN ShapeNet dataset (Sitzmann et al., 2019) to allow comparisons with prior work on novel view synthesis from a single image. This dataset consists of views and poses of car and chair ShapeNet (Chang et al., 2015) assets, rendered at the $1 2 8 \mathrm { x } 1 2 8$ resolution.
|
| 116 |
+
|
| 117 |
+
We compare 3DiMs with Light Field Networks (LFN) (Sitzmann et al., 2021) and Equivariant Neural Rendering (ENR) (Dupont et al., 2020), two competitive geometry-free approaches, as well as geometry-aware approaches including Scene Representation Networks (SRN) (Sitzmann et al., 2019), PixelNeRF (Yu et al., 2021), CodeNeRF (Jang & Agapito, 2021) and the recent VisionNeRF (Lin et al., 2022). We include standard metrics in the literature: peak signal-to-noiseratio (PSNR), structural similarity (SSIM) (Wang et al., 2004), and the Frechet Inception Distance ´ (FID) (Heusel et al., 2017). To remain consistent with prior work, we evaluate over all scenes in the held-out dataset (each has 251 views), conditioning our models on a single view (view #64) to produce all other 250 views via a single call to our sampler outlined in Section 2.2, and then report the average PSNR and SSIM. Importantly, FID scores were computed with this same number of views, comparing the set of all generated views against the set of all the ground truth views. Because prior work did not include FID scores, we acquire the evaluation image outputs of SRN, PixelNeRF and VisionNeRF and compute the scores ourselves. We reproduce PSNR scores, and carefully note that some of the models do not follow Wang et al. (2004) on their SSIM computation (they use a uniform rather than Gaussian kernel), so we also recompute SSIM scores following (Wang et al., 2004). For more details, including hyperparameter choices, see Supplementary Material (Sec.7).
|
| 118 |
+
|
| 119 |
+
Out-of-distribution poses on SRN chairs. We note that the test split of the SRN ShapeNet chairs was unintentionally released with out-of-distribution poses compared to the train split: most test views are at a much larger distance to the object than those in the training dataset; we confirmed this via correspondence with the authors of Sitzmann et al. (2019). Because 3DiMs are geometry-free, we (unsurprisingly) observe that they do not perform well on this out-of-distribution evaluation task, as all the poses used at test-time are of scale never seen during training. However, simply merging, shuffling, and re-splitting the dataset completely fixes the issue. To maintain comparability with prior work, results on SRN chairs in Table 2 are those on the original dataset, and we denote the re-split dataset as “SRN chairs\*” (note the \*) in all subsequent tables to avoid confusion.
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
Figure 6: 3DiM samples on OOD synthetic images – We qualitatively demonstrate the text-to-3D capabilities of 3DiM by synthethizing an input view with Imagen, a text-to-image model, and then create more views with 3DiM.
|
| 123 |
+
|
| 124 |
+
State-of-the-art comparisons. While 3DiM does not necessarily achieve superior reconstruction errors (PSNR and SSIM, see Table 2), qualitatively, we find that the fidelity of our generated videos can be strikingly better. We include an example in Figure 5. The use of diffusion models allows us to produce sharp samples, as opposed to regression models that are well-known to be prone to blurriness (Saharia et al., 2021b) in spite of high PSNR and SSIM scores. This is why we introduce and evaluate FID scores. In fact, we do not expect to achieve very low reconstruction errors due to the inherent ambiguity of novel view synthesis with a single image: constructing a consistent object with the given frame(s) is acceptable, but will still be punished by said reconstruction metrics if it differs from the ground truth views (even if achieving consistency). We additionally refer the reader to Section 3.1, where we include simple ablations demonstrating how worse models can improve the different standardized metrics in the literature. E.g., we show that with regression models, similarly to the baseline samples, PSNR and SSIM do not capture sharp modes well – they scores these models as much better despite the samples looking significantly more blurry (with PixelNeRF, which qualitatively seems the blurriest, achieving the best scores).
|
| 125 |
+
|
| 126 |
+
Results on out-of-distribution images.. We additionally show qualitative results attempting to lift single images in the wild (without known poses) into 3D. To this end, we train a 471M parameter 3DiM on all of ShapeNet (except for 10 objects per class which we leave out for testing). This model has identical parameters to the 3DiM used for SRN cars. However, it differs in that we poses with relative camera extrinsics (i.e., the camera position and rotation corresponding to the noisy input frame is always the same) as we do not know the poses of images in the wild. Our qualitative results on single-image-to-3D generation include:
|
| 127 |
+
|
| 128 |
+
1. ShapeNet objects held out from the training data
|
| 129 |
+
2. Images in the wild we directly took from the internet (with a white background, minimal shadow, and corresponding to any ShapeNet class)
|
| 130 |
+
3. Images synthesized by Imagen (Saharia et al., 2022), a text-to-image diffusion model
|
| 131 |
+
|
| 132 |
+
In order to make Imagen synthesize objects with white backgrounds and minimal shadows at the $1 2 8 \mathrm { x } 1 2 8$ resolution, in addition to natural language prompting, we inpaint a 5px white border at each denoising step when generating a $6 4 \mathrm { x } 6 4$ image, and then upsample it using the second model on the Imagen cascade, i.e., a text-conditional super-resolution model. We find that this strategy is much more reliable than only relying on prompt engineering to create images with white backgrounds: this leads the text-to-image model to make the rest of background consistent with the fully white border, so the generated image results in an out-of-distribution object while maintaining an in-distribution background. We present example novel views given a ShapeNet test object in Figure 1, and given a synthetic image from Imagen in Figure 6. We include several video samples for all the cases described above in the Supplementary Website (https://3d-diffusion.github.io/).
|
| 133 |
+
|
| 134 |
+
SRN cars
|
| 135 |
+
SRN chairs\*
|
| 136 |
+
|
| 137 |
+
<table><tr><td></td><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td></tr><tr><td>3DiM</td><td>21.01</td><td>0.57</td><td>8.99</td><td>14.29</td><td>0.48</td><td>3.30</td></tr><tr><td>+ no stochastic conditioning</td><td>23.82</td><td>0.59</td><td>1.87</td><td>15.73</td><td>0.51</td><td>1.05</td></tr><tr><td>+regression</td><td>22.55</td><td>0.85</td><td>17.45</td><td>16.85</td><td>0.76</td><td>20.70</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Table 3: Ablation – study removing stochastic conditioning and diffusion altogether from 3DiM.
|
| 140 |
+
Results are included for novel view synthesis from a single image on the SRN ShapeNet benchmark.
|
| 141 |
+
$( ^ { * } )$ Re-split chairs dataset as detailed in Section 3 – not comparable to numbers in Table 2.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 7: Ablations – Example input and output views of 3DiM ablations on the SRN chairs dataset at the $1 2 8 \mathrm { x } 1 2 8$ resolution. The second “Image-to-Image” column corresponds to removing our stochastic conditioning sampler from Section 2.2. The third “Concat-UNet” column corresponds to removing our proposed architecture in Section 2.3, resorting to a UNet that concatenates both images along the channel axis instead of weight sharing over frames. The fourth “Regression” column is one-step diffusion model trained from scratch.
|
| 145 |
+
|
| 146 |
+
We now present some ablation studies on 3DiM. First, we remove our proposed sampler and use a na¨ıve image-to-image model as discussed at the start of Section 2.2. We additionally remove the use of a diffusion process altogether, i.e., a regression model that generates samples via a single denoising step. Naturally, the regression models are trained separately, but we can still use an identical architecture, always feeding white noise for one frame, along with its corresponding noise level $\lambda _ { \operatorname* { m i n } }$ . Results are included in Table 3 and samples are included in Figure 7.
|
| 147 |
+
|
| 148 |
+
Unsurprisingly, we find that both of these components are crucial to achieve good results. The use of many diffusion steps allows sampling sharp images that achieve much better (lower) FID scores than both prior work and the regression models, where in both cases, reconstructions appear blurry. Notably, the regression models achieve better PSNR and SSIM scores than 3DiM despite the severe blurriness, suggesting that these standardized metrics fail to meaningfully capture sample quality for geometry-free models, at least when comparing them to geometry-aware or non-stochastic reconstruction approaches. Similarly, FID also has a failure mode: na¨ıve image-to-image sampling improves (decreases) FID scores significantly, but severely worsens shape and texture inconsistencies between sampled frames. These findings suggest that none of these standardized metrics are sufficient to effectively evaluate geometry-free models for view synthesis; nevertheless, we observe that said metrics do correlate well with sample quality across 3DiMs and can still be useful indicators for hyperparameter tuning despite their individual failures.
|
| 149 |
+
|
| 150 |
+
Table 5: Architecture comparison – study comparing the X-UNet and Concat-UNet neural architectures. Results are included for novel view synthesis from a single image on the SRN ShapeNet benchmark, with the re-split chairs as detailed in Section 3. $( ^ { * } )$ Re-split chairs dataset as detailed in Section 3 – these numbers are not comparable to those in Table 2.
|
| 151 |
+
|
| 152 |
+
<table><tr><td rowspan="2"></td><td rowspan="2">PSNR (↑) SSIM (↑)</td><td rowspan="2">cars</td><td colspan="4">chairs*</td></tr><tr><td>FID (↓)</td><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td></tr><tr><td>Concat-UNet</td><td>17.21</td><td>0.52</td><td>21.54</td><td>12.36</td><td>0.44</td><td>5.15</td></tr><tr><td>X-UNet</td><td>21.01</td><td>0.57</td><td>8.99</td><td>14.29</td><td>0.48</td><td>3.30</td></tr></table>
|
| 153 |
+
|
| 154 |
+
# 3.2 UNET ARCHITECTURE COMPARISONS
|
| 155 |
+
|
| 156 |
+
In order to demonstrate the benefit of our proposed modifications, we additionally compare our proposed X-UNet architecture from Section 2.3 to the simpler UNet architecture following Saharia et al. (2021b;a) (which we simply call “Concat-UNet”). The Concat-UNet architecture, unlike ours, does not share weights across frames; instead, it simply concatenates the conditioning image to the noisy input image along the channel axis. To do this comparison, we train 3DiMs on the ConcatUNet architecture with the same number of hidden channels, and keep all other hyperparameters identical. Because our architecture has the additional cross-attention layer at the coarse-resolution blocks, our architecture has a slightly larger number of parameters than the Concat-UNet ${ \sim } 4 7 1 \mathrm { M }$ v.s. ${ \sim } 4 2 1 \mathrm { M }$ ). Results are included in Table 5 and Figure 7.
|
| 157 |
+
|
| 158 |
+
While the Concat-UNet architecture is able to sample frames that resemble the data distribution, we find that 3DiMs trained with our proposed X-UNet architecture suffer much less from 3D inconsistency and alignment to the conditioning frame. Moreover, while the metrics should be taken with a grain of salt as previously discussed, we find that all the metrics significantly worsen with the Concat-UNet. We hypothesize that our X-UNet architecture better exploits symmetries between frames and poses due to our proposed weight-sharing mechanism, and that the cross-attention helps significantly to align with the content of the conditioning view.
|
| 159 |
+
|
| 160 |
+
# 4 EVALUATING 3D CONSISTENCY IN GEOMETRY-FREE VIEW SYNTHESIS
|
| 161 |
+
|
| 162 |
+
As we demonstrate in Sections 3.1 and 3.2, the standardized metrics in the literature have failure modes when specifically applied to geometry-free novel view synthesis models, e.g., their inability to successfully measure 3D consistency, and the possibility of improving them with worse models. Leveraging the fact that volumetric rendering of colored density fields are 3D-consistent by design, we thus propose an additional evaluation scheme called “3D consistency scoring”. Our metrics should satisfy the following desiderata:
|
| 163 |
+
|
| 164 |
+
1. The metric must penalize outputs that are not 3D consistent.
|
| 165 |
+
2. The metric must not penalize outputs that are 3D consistent but deviate from the ground truth.
|
| 166 |
+
3. The metric must penalize outputs that do not align with the conditioning view(s).
|
| 167 |
+
|
| 168 |
+
In order to satisfy the second requirement, we cannot compare output renders to ground-truth views. Thus, one straightforward way to satisfy all desiderata is to sample many views from the geometryfree model given a single view, train a NeRF-like neural field (Mildenhall et al., 2020) on a fraction of these views, and compute a set of metrics that compare neural field renders on the remaining views. This way, if the geometry-free model outputs inconsistent views, the training of neural field will be hindered and classical image evaluation metrics should clearly reflect this. Additionally, to enforce the third requirement, we simply include the conditioning view(s) that were used to generate the rest as part of the training data. We report PSNR, SSIM and FID on the held-out views, although one could use other metrics under our proposed evaluation scheme.
|
| 169 |
+
|
| 170 |
+
We evaluate 3DiMs on the SRN benchmark, and for comparison, we additionally include metrics for models trained on (1) the real test views and (2) on image-to-image samples from the 3DiMs, i.e., without our proposed sampler like we reported in Section 3. To maintain comparability, we sample the same number of views from the different 3DiMs we evaluate in this section, all at the same poses and conditioned on the same single views. We leave out $10 \%$ of the test views (25 out of 251) from neural field training, picking 25 random indices once and maintaining this choice of indices for all
|
| 171 |
+
|
| 172 |
+
<table><tr><td rowspan="2">Training view source</td><td colspan="3">SRN cars</td><td colspan="3">SRN chairs*</td></tr><tr><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td><td>PSNR (↑)</td><td>SSIM (↑)</td><td>FID (↓)</td></tr><tr><td>Original data (3D consistent)</td><td>28.21</td><td>0.96</td><td>10.57</td><td>24.87</td><td>0.93</td><td>17.05</td></tr><tr><td>3DiM(~1.3B params)</td><td>28.48</td><td>0.96</td><td>29.55</td><td>22.90</td><td>0.86</td><td>58.61</td></tr><tr><td>3DiM(~471M params)</td><td>28.53</td><td>0.96</td><td>22.09</td><td>18.84</td><td>0.79</td><td>98.78</td></tr><tr><td>+ no stochastic conditioning</td><td>25.78</td><td>0.94</td><td>30.51</td><td>17.61</td><td>0.75</td><td>116.16</td></tr></table>
|
| 173 |
+
|
| 174 |
+
Table 6: 3D consistency scores – For neural fields trained with different view sources, we compare renders to held-out views from the same sources.
|
| 175 |
+
|
| 176 |
+
subsequent evaluations. We also train models with more parameters $( \sim 1 . 3 \mathrm { B } )$ in order to investigate whether increasing model capacity can further improve 3D consistency. See Supplementary Material (Sec.7) for more details on the neural fields we chose and their hyperparameters.
|
| 177 |
+
|
| 178 |
+
We find that our proposed evaluation scheme clearly punishes 3D inconsistency as desired – the neural fields trained on image-to-image 3DiM samples have worse scores across all metrics compared to neural fields trained on 3DiM outputs sampled via our stochastic conditioning. This helps quantify the value of our proposed sampler, and also prevents the metrics from punishing reasonable outputs that are coherent with the input view(s) but do not match the target views – a desirable property due to the stochasticity of generative models. Moreover, we qualitatively find that the smaller model reported in the rest of the paper is comparable in quality to the ${ \sim } 1 . 3 \mathrm { B }$ parameter model on cars, though on chairs, we do observe a significant improvement on 3D consistency in our samples. Importantly, 3D consistency scoring agrees with our qualitative observations.
|
| 179 |
+
|
| 180 |
+
# 5 CONCLUSION AND FUTURE WORK
|
| 181 |
+
|
| 182 |
+
We propose 3DiM, a diffusion model for 3D novel view synthesis. Combining improvements in our X-UNet neural architecture (Section 2.3), with our novel stochastic conditioning sampling strategy that enables autoregressive generation over frames (Section 2.2), we show that from as few as a single image we can generate approximately 3D consistent views with very sharp sample quality. We additionally introduce 3D consistency scoring to evaluate the 3D consistency of geometry-free generative models by training neural fields on model output views, as their performance will be hindered increasingly with inconsistent training data (Section 4). We thus show, both quantitatively and visually, that 3DiMs with stochastic conditioning can achieve approximate 3D consistency and high sample quality simultaneously, and how classical metrics fail to capture both sharp modes and 3D inconsistency.
|
| 183 |
+
|
| 184 |
+
A noteworthy limitation of 3DiM is that, due to the geometry-free setup, it can only handle distributions of poses that it is exposed to durining training. In particular, further study is required where more variations to the poses are introduced. For example, varying focal lengths, sensor widths, making the camera not look exactly at the objects, and varying the distances from the camera to the objects more aggressively. Our use of stochastic conditioning might also exacerbate the need for many denoising steps. While we believe that finding effective architectures that allow conditioning on sets of images remains an important open problem, stochastic conditioning unlocks the ability to train on examples that only have two views and helps overcome memory-intensive neural architectures. Similar approaches using randomized, sparse conditioning are already being explored in follow-up work on video generation (Davtyan et al., 2022) in order to enable efficient training when modeling the joint distribution is computationally prohibitive.
|
| 185 |
+
|
| 186 |
+
We are most excited about the possibility of applying 3DiM, which can model entire datasets with a single model, to the largest 3D datasets from the real world – though more research is required to handle noisy poses (due to the need for pose estimation) and other challenges present in this context. Developing end-to-end approaches for high-quality generation that are 3D consistent by design like more recent work (Muller et al., 2022) and that also yield high-quality 3D meshes remain important ¨ research problems. Another potentially significant application of 3DiM is its use as a prior in order to achieve 3D consistent generation via approaches that operate exclusively at sampling time (Poole et al., 2022; Zhou & Tulsiani, 2022; Xu et al., 2022) in order to enable wide adoption of similar, disruptive technologies on the 3D design industry.
|
| 187 |
+
|
| 188 |
+
# REFERENCES
|
| 189 |
+
|
| 190 |
+
Jonathan T. Barron, Ben Mildenhall, Dor Verbin, Pratul P. Srinivasan, and Peter Hedman. Mip-nerf 360: Unbounded anti-aliased neural radiance fields. CVPR, 2022.
|
| 191 |
+
|
| 192 |
+
James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http: //github.com/google/jax.
|
| 193 |
+
|
| 194 |
+
Eric R Chan, Connor Z Lin, Matthew A Chan, Koki Nagano, Boxiao Pan, Shalini De Mello, Orazio Gallo, Leonidas J Guibas, Jonathan Tremblay, Sameh Khamis, et al. Efficient geometry-aware 3d generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16123–16133, 2022.
|
| 195 |
+
|
| 196 |
+
Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
|
| 197 |
+
|
| 198 |
+
Nanxin Chen, Yu Zhang, Heiga Zen, Ron J Weiss, Mohammad Norouzi, and William Chan. Wavegrad: Estimating gradients for waveform generation. arXiv preprint arXiv:2009.00713, 2020.
|
| 199 |
+
|
| 200 |
+
Aram Davtyan, Sepehr Sameni, and Paolo Favaro. Randomized conditional flow matching for video prediction. arXiv preprint arXiv:2211.14575, 2022.
|
| 201 |
+
|
| 202 |
+
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34, 2021.
|
| 203 |
+
|
| 204 |
+
Vincent Dumoulin, Ethan Perez, Nathan Schucher, Florian Strub, Harm de Vries, Aaron Courville, and Yoshua Bengio. Feature-wise transformations. Distill, 3(7):e11, 2018.
|
| 205 |
+
|
| 206 |
+
Emilien Dupont, Miguel Bautista Martin, Alex Colburn, Aditya Sankar, Josh Susskind, and Qi Shan. Equivariant neural rendering. In International Conference on Machine Learning, pp. 2761–2770. PMLR, 2020.
|
| 207 |
+
|
| 208 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014.
|
| 209 |
+
|
| 210 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30, 2017.
|
| 211 |
+
|
| 212 |
+
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, 2021.
|
| 213 |
+
|
| 214 |
+
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.
|
| 215 |
+
|
| 216 |
+
Jonathan Ho, Tim Salimans, Alexey Gritsenko, William Chan, Mohammad Norouzi, and David J Fleet. Video diffusion models. arXiv preprint arXiv:2204.03458, 2022.
|
| 217 |
+
|
| 218 |
+
Wonbong Jang and Lourdes Agapito. Codenerf: Disentangled neural radiance fields for object categories. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 12949–12958, 2021.
|
| 219 |
+
|
| 220 |
+
Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4401–4410, 2019.
|
| 221 |
+
|
| 222 |
+
Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusionbased generative models. arXiv preprint arXiv:2206.00364, 2022.
|
| 223 |
+
|
| 224 |
+
Diederik Kingma, Tim Salimans, Ben Poole, and Jonathan Ho. Variational diffusion models. Advances in neural information processing systems, 34:21696–21707, 2021.
|
| 225 |
+
|
| 226 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 227 |
+
|
| 228 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 229 |
+
|
| 230 |
+
Kai-En Lin, Lin Yen-Chen, Wei-Sheng Lai, Tsung-Yi Lin, Yi-Chang Shih, and Ravi Ramamoorthi. Vision transformer for nerf-based view synthesis from a single input image. arXiv preprint arXiv:2207.05736, 2022.
|
| 231 |
+
|
| 232 |
+
Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for gans do actually converge? In International conference on machine learning, pp. 3481–3490. PMLR, 2018.
|
| 233 |
+
|
| 234 |
+
Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In European conference on computer vision, pp. 405–421. Springer, 2020.
|
| 235 |
+
|
| 236 |
+
Norman Muller, Yawar Siddiqui, Lorenzo Porzi, Samuel Rota Bul ¨ o, Peter Kontschieder, and \` Matthias Nießner. Diffrf: Rendering-guided 3d radiance field diffusion. arXiv preprint arXiv:2212.01206, 2022.
|
| 237 |
+
|
| 238 |
+
Thomas Muller, Alex Evans, Christoph Schied, and Alexander Keller. Instant neural graphics prim- ¨ itives with a multiresolution hash encoding. ACM Trans. Graph., 41(4):102:1–102:15, July 2022. doi: 10.1145/3528223.3530127. URL https://doi.org/10.1145/3528223. 3530127.
|
| 239 |
+
|
| 240 |
+
Michael Niemeyer, Jonathan T Barron, Ben Mildenhall, Mehdi SM Sajjadi, Andreas Geiger, and Noha Radwan. Regnerf: Regularizing neural radiance fields for view synthesis from sparse inputs. arXiv preprint arXiv:2112.00724, 2021.
|
| 241 |
+
|
| 242 |
+
Eunbyung Park, Jimei Yang, Ersin Yumer, Duygu Ceylan, and Alexander C Berg. Transformationgrounded image generation network for novel 3d view synthesis. In Proceedings of the ieee conference on computer vision and pattern recognition, pp. 3500–3509, 2017.
|
| 243 |
+
|
| 244 |
+
Ben Poole, Ajay Jain, Jonathan T Barron, and Ben Mildenhall. Dreamfusion: Text-to-3d using 2d diffusion. arXiv preprint arXiv:2209.14988, 2022.
|
| 245 |
+
|
| 246 |
+
Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical textconditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 2022.
|
| 247 |
+
|
| 248 |
+
Daniel Rebain, Mark Matthews, Kwang Moo Yi, Dmitry Lagun, and Andrea Tagliasacchi. Lolnerf: Learn from one look, 2021.
|
| 249 |
+
|
| 250 |
+
Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computerassisted intervention, pp. 234–241. Springer, 2015.
|
| 251 |
+
|
| 252 |
+
Chitwan Saharia, William Chan, Huiwen Chang, Chris A Lee, Jonathan Ho, Tim Salimans, David J Fleet, and Mohammad Norouzi. Palette: Image-to-image diffusion models. arXiv preprint arXiv:2111.05826, 2021a.
|
| 253 |
+
|
| 254 |
+
Chitwan Saharia, Jonathan Ho, William Chan, Tim Salimans, David J Fleet, and Mohammad Norouzi. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021b.
|
| 255 |
+
|
| 256 |
+
Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S Sara Mahdavi, Rapha Gontijo Lopes, et al. Photorealistic text-to-image diffusion models with deep language understanding. arXiv preprint arXiv:2205.11487, 2022.
|
| 257 |
+
|
| 258 |
+
Mehdi SM Sajjadi, Henning Meyer, Etienne Pot, Urs Bergmann, Klaus Greff, Noha Radwan, Suhani Vora, Mario Lucic, Daniel Duckworth, Alexey Dosovitskiy, et al. Scene representation transformer: Geometry-free novel view synthesis through set-latent scene representations. arXiv preprint arXiv:2111.13152, 2021.
|
| 259 |
+
|
| 260 |
+
Tim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. arXiv preprint arXiv:2202.00512, 2022.
|
| 261 |
+
|
| 262 |
+
Vincent Sitzmann, Michael Zollhofer, and Gordon Wetzstein. Scene representation networks: Con- ¨ tinuous 3d-structure-aware neural scene representations. Advances in Neural Information Processing Systems, 32, 2019.
|
| 263 |
+
|
| 264 |
+
Vincent Sitzmann, Semon Rezchikov, Bill Freeman, Josh Tenenbaum, and Fredo Durand. Light field networks: Neural scene representations with single-evaluation rendering. Advances in Neural Information Processing Systems, 34, 2021.
|
| 265 |
+
|
| 266 |
+
Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256–2265. PMLR, 2015.
|
| 267 |
+
|
| 268 |
+
Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in Neural Information Processing Systems, 32, 2019.
|
| 269 |
+
|
| 270 |
+
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020.
|
| 271 |
+
|
| 272 |
+
Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. Maximum likelihood training of scorebased diffusion models. Advances in Neural Information Processing Systems, 34:1415–1428, 2021.
|
| 273 |
+
|
| 274 |
+
Shao-Hua Sun, Minyoung Huh, Yuan-Hong Liao, Ning Zhang, and Joseph J Lim. Multi-view to novel view: Synthesizing novel views with self-learned confidence. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 155–171, 2018.
|
| 275 |
+
|
| 276 |
+
Dor Verbin, Peter Hedman, Ben Mildenhall, Todd Zickler, Jonathan T. Barron, and Pratul P. Srinivasan. Ref-NeRF: Structured view-dependent appearance for neural radiance fields. CVPR, 2022.
|
| 277 |
+
|
| 278 |
+
Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600– 612, 2004.
|
| 279 |
+
|
| 280 |
+
Dejia Xu, Yifan Jiang, Peihao Wang, Zhiwen Fan, Yi Wang, and Zhangyang Wang. Neurallift-360: Lifting an in-the-wild 2d photo to a 3d object with $3 6 0 ^ { \circ }$ views. arXiv e-prints, pp. arXiv–2211, 2022.
|
| 281 |
+
|
| 282 |
+
Alex Yu, Vickie Ye, Matthew Tancik, and Angjoo Kanazawa. pixelnerf: Neural radiance fields from one or few images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4578–4587, 2021.
|
| 283 |
+
|
| 284 |
+
Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snavely. Stereo magnification: Learning view synthesis using multiplane images. arXiv preprint arXiv:1805.09817, 2018.
|
| 285 |
+
|
| 286 |
+
Zhizhuo Zhou and Shubham Tulsiani. Sparsefusion: Distilling view-conditioned diffusion for 3d reconstruction. arXiv preprint arXiv:2212.00792, 2022.
|
| 287 |
+
|
| 288 |
+
# Novel View Synthesis with Diffusion Models
|
| 289 |
+
|
| 290 |
+
Supplementary Material
|
| 291 |
+
|
| 292 |
+
# 6 ARCHITECTURE DETAILS
|
| 293 |
+
|
| 294 |
+
In order to maximize the reproducibility of our results, we provide code in JAX (Bradbury et al., 2018) for our proposed X-UNet neural architecture from Section 2.3. Assuming we have an input batch with elements each containing
|
| 295 |
+
|
| 296 |
+
{ "z", # noisy input image (HxWx3 tensor) "x", # conditioning view (HxWx3 tensor) "logsnr", # log signal-to-noise ratio of noisy image (scalar) "t", # camera positions (two 3d vectors) "R", # camera rotations (two 3x3 matrices) "K", # camera intrinsics (a.k.a. calibration matrix) (3x3 matrix)
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
our neural network module is as follows:
|
| 300 |
+
|
| 301 |
+
from typing import Optional import flax.linen as nn import jax.numpy as jnp import numpy as onp import visu3d as v3d
|
| 302 |
+
|
| 303 |
+
nonlinearity $=$ nn.swish
|
| 304 |
+
|
| 305 |
+
def out_init_scale(): """Zeros initializer.""" return nn.initializers.variance_scaling(0.0, 'fan_in', 'truncated_normal')
|
| 306 |
+
|
| 307 |
+
def nearest_neighbor_upsample(h: jnp.ndarray): """Nearest neighbor upsampling for multiple frames.""" B, F, H, W, ${ \mathrm { ~ \small ~ \mathscr ~ { ~ C ~ } ~ } } = { \mathrm { ~ \small ~ h ~ } }$ .shape h $=$ h.reshape(B, F, H, 1, W, 1, C) h = jnp.broadcast_to(h, (B, F, H, 2, W, 2, C)) return h.reshape(B, F, H $\star$ 2, W $\star$ 2, C)
|
| 308 |
+
|
| 309 |
+
def avgpool_downsample(h: jnp.ndarray, k: int $= 2$ ): """Average pooling downsampling for multiple frames.""" return nn.avg_pool(h, (1, k, k), (1, k, k))
|
| 310 |
+
|
| 311 |
+
def posenc_ddpm(timesteps: jnp.ndarray, emb_ch: int, max_time: int $=$ 1000.0): """Positional encodings for noise levels, following DDPM.""" # 1000 is the magic number from DDPM. With different timesteps, we # normalize by the number of steps but still multiply by 1000. timesteps \*= 1000.0 / max_time half_dim $=$ emb_ch // 2 # 10000 is the magic number from transformers. emb $=$ onp.log(10000) / (half_dim - 1)
|
| 312 |
+
|
| 313 |
+
emb $=$ jnp.exp(jnp.arange(half_dim, dtype $=$ timesteps.dtype) $\star$ -emb)
|
| 314 |
+
emb $=$ emb.reshape( $\star$ ([1] $^ { \star }$ (timesteps.ndim - 1)), emb.shape[-1])
|
| 315 |
+
emb $=$ timesteps[..., None] $\star$ emb
|
| 316 |
+
emb $=$ jnp.concatenate([jnp.sin(emb), jnp.cos(emb)], axis $= - 1$ )
|
| 317 |
+
return emb
|
| 318 |
+
|
| 319 |
+
def posenc_nerf(x: jnp.ndarray, min_deg: int $\qquad = \quad 0$ , max_deg: int $= ~ \perp 5$ ): """Concatenate x and its positional encodings, following NeRF."""
|
| 320 |
+
|
| 321 |
+
if min_deg $= =$ max_deg: return x
|
| 322 |
+
scales $=$ jnp.array([2\*\*i for i in range(min_deg, max_deg)])
|
| 323 |
+
xb $=$ jnp.reshape( (x[..., None, :] $^ { \star }$ scales[:, None]), list(x.shape[:-1]) + [-1]
|
| 324 |
+
)
|
| 325 |
+
emb $=$ jnp.sin(jnp.concatenate([xb, xb $^ +$ onp.pi / 2.0], axis $: = - 1$ ))
|
| 326 |
+
return jnp.concatenate([x, emb], axis $= - 1$ )
|
| 327 |
+
|
| 328 |
+
class GroupNorm(nn.Module): """Group normalization, applied over frames."""
|
| 329 |
+
|
| 330 |
+
@nn.compact
|
| 331 |
+
|
| 332 |
+
def __call__(self, h: jnp.ndarray):B, _, H, W, ${ \mathrm { ~ \small ~ \mathscr ~ { ~ C ~ } ~ } } = { \mathrm { ~ \small ~ h ~ } }$ .shapeh $=$ nn.GroupNorm(num_groups $= 3 2$ )(h.reshape(B $\star$ 2, 2, H, W, C))return h.reshape(B, 2, H, W, C)
|
| 333 |
+
|
| 334 |
+
class FiLM(nn.Module): """Feature-wise linear modulation."""
|
| 335 |
+
|
| 336 |
+
features: int @nn.compact
|
| 337 |
+
|
| 338 |
+
def __call__(self, h: jnp.ndarray, emb: jnp.ndarray): emb $=$ nn.Dense(2 \* self.features)(nonlinearity(emb)) scale, shift $=$ jnp.split(emb, $^ 2$ , axis $= - 1$ ) return h $^ { \star }$ (1.0 $^ +$ scale) $^ +$ shift
|
| 339 |
+
|
| 340 |
+
class ResnetBlock(nn.Module): """BigGAN-style residual block, applied over frames."""
|
| 341 |
+
|
| 342 |
+
features: Optional[int] $=$ None dropout: float $= ~ 0 . 0$ resample: Optional[str] $=$ None
|
| 343 |
+
|
| 344 |
+
# @nn.compact
|
| 345 |
+
|
| 346 |
+
def __call__(self, h_in: jnp.ndarray, emb: jnp.ndarray, \*, train: bool): _, _, _, _, C $=$ h_in.shape features $=$ C if self.features is None else self.features
|
| 347 |
+
|
| 348 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ nonlinearity(GroupNorm()(h_in))
|
| 349 |
+
if self.resample is not None: updown $= \quad \left\{ \begin{array} { r l r l } \end{array} \right.$ 'up': nearest_neighbor_upsample, 'down': avgpool_downsample, }[self.resample]
|
| 350 |
+
|
| 351 |
+
$\mathrm { ~ \textit ~ { ~ h ~ } ~ } =$ updown(h) h_in $=$ updown(h_in)
|
| 352 |
+
|
| 353 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ nn.Conv(features, kernel_size $=$ (1, 3, 3), strides $=$ (1, 1, 1))(h)
|
| 354 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ FiLM(features $=$ features)(GroupNorm()(h), emb)
|
| 355 |
+
h $=$ nonlinearity(h)
|
| 356 |
+
h $=$ nn.Dropout(rate $=$ self.dropout)(h, deterministic $: =$ not train)
|
| 357 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ nn.Conv( features, kernel_size $=$ (1, 3, 3), strides $=$ (1, 1, 1), kernel_init $=$ out_init_scale(),
|
| 358 |
+
|
| 359 |
+
)(h)
|
| 360 |
+
|
| 361 |
+
if C $! =$ features: h_in $=$ nn.Dense(features)(h_in) return (h $^ +$ h_in) / onp.sqrt(2)
|
| 362 |
+
|
| 363 |
+
class AttnLayer(nn.Module):
|
| 364 |
+
|
| 365 |
+
"""Attention layer usable for self and cross attention."""
|
| 366 |
+
|
| 367 |
+
attn_heads: int $\qquad = \quad 4$
|
| 368 |
+
|
| 369 |
+
# @nn.compact
|
| 370 |
+
|
| 371 |
+
def _call__(self, \*, q: jnp.ndarray, kv: jnp.ndarray): $\mathrm { ~ C ~ } = \mathrm { ~ q ~ }$ .shape[-1] head_dim $\begin{array} { r l } { \mathbf { \Sigma } } & { { } = \mathbf { \Sigma } \subset \mathbf { \Sigma } } \end{array}$ // self.attn_heads q $=$ nn.DenseGeneral((self.attn_heads, head_dim))(q) k $=$ nn.DenseGeneral((self.attn_heads, head_dim))(kv) $\begin{array} { r l } { \mathsf { v } } & { { } = } \end{array}$ nn.DenseGeneral((self.attn_heads, head_dim))(kv) return nn.dot_product_attention(q, k, v)
|
| 372 |
+
|
| 373 |
+
class AttnBlock(nn.Module): """Attention block with skip connection."""
|
| 374 |
+
|
| 375 |
+
attn_type: str attn_heads: int $\qquad = \quad 4$
|
| 376 |
+
|
| 377 |
+
# @nn.compact
|
| 378 |
+
|
| 379 |
+
def __call__(self, h_in: jnp.ndarray): B, _, H, W, C $=$ h_in.shape
|
| 380 |
+
|
| 381 |
+
h $=$ GroupNorm()(h_in) h0 = h[:, 0].reshape(B, H \* W, C) h1 = h[:, 1].reshape(B, H $\star$ W, C) attn_layer $=$ AttnLayer(attn_heads $=$ self.attn_heads)
|
| 382 |
+
|
| 383 |
+
if self.attn_type $= =$ 'self': $\mathrm { ~ \textit ~ { ~ h ~ O ~ } ~ } =$ attn_layer( $\mathtt { q } \mathrm { = h 0 }$ , $\mathtt { k v } { = } \mathtt { h } 0$ ) $\begin{array} { r l } { \operatorname { h } 1 } & { { } = } \end{array}$ attn_layer( $\mathtt { q } \mathrm { = h 1 }$ , $\mathrm { k v } { = } \mathrm { h } 1$ )
|
| 384 |
+
elif self.attn_type $= =$ 'cross': $\mathrm { ~ \textit ~ { ~ h ~ O ~ } ~ } =$ attn_layer( $\mathtt { q } \mathrm { = h 0 }$ , $\mathrm { k v } { = } \mathrm { h } 1$ ) h1 $=$ attn_layer( $\mathtt { q } \mathrm { = h 1 }$ , $\mathtt { k v } { = } \mathtt { h } 0$ )
|
| 385 |
+
else: raise NotImplementedError(self.attn_type)
|
| 386 |
+
|
| 387 |
+
h = jnp.stack([h0, h1], axis $^ { = 1 }$ )
|
| 388 |
+
|
| 389 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ h.reshape(B, 2, H, W, $^ { - 1 }$ )
|
| 390 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ nn.DenseGeneral(C, axis $ \mathfrak { s } = ( - 2$ , -1), kernel_init $=$ out_init_scale())(h)
|
| 391 |
+
return (h $^ +$ h_in) / onp.sqrt(2)
|
| 392 |
+
|
| 393 |
+
class XUNetBlock(nn.Module): """X-UNet block."""
|
| 394 |
+
|
| 395 |
+
features: int use_attn: bool $=$ False attn_heads: int $\qquad = \quad 4$ dropout: float $= ~ 0 . 0$
|
| 396 |
+
|
| 397 |
+
# @nn.compact
|
| 398 |
+
|
| 399 |
+
def call (self, x: jnp.ndarray, emb: jnp.ndarray, $\star$ , train: bool): h $=$ ResnetBlock(features $=$ self.features, dropout $=$ self.dropout)( x, emb, train $=$ train )
|
| 400 |
+
|
| 401 |
+
if self.use_attn: h $=$ AttnBlock(attn_type $=$ 'self', attn_heads $=$ self.attn_heads)(h) h $=$ AttnBlock(attn_type $= ^ { \parallel }$ cross', attn_heads $=$ self.attn_heads)(h)
|
| 402 |
+
|
| 403 |
+
return h
|
| 404 |
+
|
| 405 |
+
class ConditioningProcessor(nn.Module): """Process conditioning inputs into embeddings."""
|
| 406 |
+
|
| 407 |
+
emb_ch: int num_resolutions: int use_pos_emb: bool $=$ True use_ref_pose_emb: bool $=$ True
|
| 408 |
+
|
| 409 |
+
@nn.compact
|
| 410 |
+
def __call__(self, batch: dict[str, jnp.ndarray], cond_mask: jnp.ndarray): B, H, W, _ $=$ batch['x'].shape # Log signal-to-noise-ratio embedding.
|
| 411 |
+
logsnr $=$ jnp.clip(batch['logsnr'], -20.0, 20.0)
|
| 412 |
+
logsnr $= \ 2 . 0 \times$ jnp.arctan(jnp.exp(-logsnr / 2.0)) / onp.pi
|
| 413 |
+
logsnr_emb $=$ posenc_ddpm(logsnr, emb_ch ${ \underline { { \mathbf { \Pi } } } } =$ self.emb_ch, max_time $^ { - 1 }$ .0) logsnr_emb $=$ nn.Dense(self.emb_ch)(logsnr_emb)
|
| 414 |
+
logsnr_emb $=$ nn.Dense(self.emb_ch)(nonlinearity(logsnr_emb))
|
| 415 |
+
|
| 416 |
+
# Pose embeddings.
|
| 417 |
+
|
| 418 |
+
world_from_cam $=$ v3d.Transform( $\mathrm { R = }$ batch['R'], t $=$ batch['t']) cam_spec $=$ v3d.PinholeCamera(resolution ${ } = { }$ (H, W), $\mathrm { K } =$ batch['K']) rays $=$ v3d.Camera(spec $=$ cam_spec, world_from_cam $\cdot ^ { = }$ world_from_cam).rays()
|
| 419 |
+
|
| 420 |
+
pose_emb_pos $=$ posenc_nerf(rays.pos, min_deg $= 0$ , max_deg $= \beth 5$ ) pose_emb_dir $=$ posenc_nerf(rays.dir, min_deg ${ \bf \bar { \theta } } = 0$ , max_deg ${ } = 8 { }$ ) pose_emb $=$ jnp.concatenate([pose_emb_pos, pose_emb_dir], axi $S { = } { - } 1$ )
|
| 421 |
+
|
| 422 |
+
# Enable classifier-free guidance over poses.
|
| 423 |
+
|
| 424 |
+
D $=$ pose_emb.shape[-1]
|
| 425 |
+
assert cond_mask.shape $= =$ (B,)
|
| 426 |
+
cond_mask $=$ cond_mask[:, None, None, None, None]
|
| 427 |
+
pose_emb $=$ jnp.where(cond_mask, pose_emb, jnp.zeros_like(pose_emb))
|
| 428 |
+
|
| 429 |
+
# Learnable position embeddings over (H, W) of frames (optional).
|
| 430 |
+
|
| 431 |
+
if self.use_pos_emb: pos_emb $=$ self.param( 'pos_emb', nn.initializers.normal(stddev $\ l = 1$ .0 / onp.sqrt(D)), (H, W, D), pose_emb.dtype, ) pose_emb $+ =$ pos_emb[None, None]
|
| 432 |
+
|
| 433 |
+
# Binary embedding to let the model distinguish frames (optional)
|
| 434 |
+
|
| 435 |
+
if self.use_ref_pose_emb: first_emb $=$ self.param( 'ref_pose_emb_first', nn.initializers.normal(stddev $^ { \cdot = 1 }$ .0 / onp.sqrt(D)), (D,), pose_emb.dtype, )[None, None, None, None] other_emb $=$ self.param( 'ref_pose_emb_other', nn.initializers.normal(stddev $\ l = 1$ .0 / onp.sqrt(D)), (D,), pose_emb.dtype, )[None, None, None, None] pose_emb $+ =$ jnp.concatenate([first_emb, other_emb], axis $^ { = 1 }$
|
| 436 |
+
|
| 437 |
+
# Downsample ray embeddings for each UNet resolution.
|
| 438 |
+
pose_embs $=$ []
|
| 439 |
+
for i_level in range(self.num_resolutions): pose_embs.append( nn.Conv( features $=$ self.emb_ch, kernel_size $=$ (1, 3, 3), strides $=$ (1, $2 \star \star$ i_level, 2\*\*i_level), )(pose_emb) )
|
| 440 |
+
|
| 441 |
+
return logsnr_emb, pose_embs class XUNet(nn.Module): """Our proposed XUNet architecture."""
|
| 442 |
+
|
| 443 |
+
ch: int $= \ 2 5 6$
|
| 444 |
+
ch_mult: tuple[int] $=$ (1, 2, 2, 4)
|
| 445 |
+
emb_ch: int $= ~ 1 0 2 4$
|
| 446 |
+
num_res_blocks: int $= 3$
|
| 447 |
+
attn_resolutions: tuple[int] $=$ (8, 16, 32)
|
| 448 |
+
attn_heads: int $\qquad = \quad 4$
|
| 449 |
+
dropout: float $= ~ 0 . 1$
|
| 450 |
+
use_pos_emb: bool $=$ True
|
| 451 |
+
use_ref_pose_emb: bool $=$ True
|
| 452 |
+
|
| 453 |
+
@nn.compact def __call__( self,
|
| 454 |
+
|
| 455 |
+
batch: dict[str, jnp.ndarray], \*, cond_mask: jnp.ndarray, train: bool, ): _, _, _, ${ \mathrm { ~ \small ~ \mathscr ~ { ~ C ~ } ~ } } =$ batch['x'].shape num_resolutions $=$ len(self.ch_mult) logsnr_emb, pose_embs $=$ ConditioningProcessor( emb_ch $=$ self.emb_ch, num_resolutions $=$ num_resolutions, use_pos_emb $=$ self.use_pos_emb, use_ref_pose_emb $=$ self.use_ref_pose_emb, )(batch, cond_mask) del cond_mask
|
| 456 |
+
|
| 457 |
+
h $=$ jnp.stack([batch['x'], batch $[ { \mathrm { ~ ~ \cdot ~ } } _ { Z } { \mathrm { ~ ~ \cdot ~ } } ] ]$ , axis $: = 1$ ) h $=$ nn.Conv(self.ch, kernel_size $=$ (1, 3, 3), strides $=$ (1, 1, 1))(h)
|
| 458 |
+
|
| 459 |
+
# Downsampling.
|
| 460 |
+
|
| 461 |
+
hs $=$ [h]
|
| 462 |
+
for i_level in self.ch_mult: emb $=$ logsnr_emb[..., None, None, :] $^ +$ pose_embs[i_level]
|
| 463 |
+
|
| 464 |
+
for in range(self.num_res_blocks): use_attn $=$ h.shape[2] in self.attn_resolutions h $=$ XUNetBlock( features $=$ self.ch $\star$ self.ch_mult[i_level], dropout $=$ self.dropout, attn_heads $=$ self.attn_heads, use_attn ${ \bf \Phi } = { \bf \Phi }$ use_attn, )(h, emb, train $=$ train) hs.append(h)
|
| 465 |
+
|
| 466 |
+
if i_level $\downarrow =$ num_resolutions - 1: emb $=$ logsnr_emb[..., None, None, :] $^ +$ pose_embs[i_level + 1] h $=$ ResnetBlock(dropout $=$ self.dropout, resample $= 1$ down')( h, emb, train ${ \bf \Phi } = { \bf \Phi }$ train ) hs.append(h)
|
| 467 |
+
|
| 468 |
+
# # Middle.
|
| 469 |
+
|
| 470 |
+
emb $=$ logsnr_emb[..., None, None, :] $^ +$ pose_embs[-1]
|
| 471 |
+
use_attn $=$ h.shape[2] in self.attn_resolutions
|
| 472 |
+
h $=$ XUNetBlock( features $=$ self.ch $\star$ self.ch_mult[i_level], dropout $=$ self.dropout, attn_heads $=$ self.attn_heads, use_attn $=$ use_attn,
|
| 473 |
+
)(h, emb, train $=$ train)
|
| 474 |
+
|
| 475 |
+
$\#$ Upsampling.
|
| 476 |
+
|
| 477 |
+
for i_level in reversed(range(num_resolutions)): emb $=$ logsnr_emb[..., None, None, :] $^ +$ pose_embs[i_level] for _ in range(self.num_res_blocks + 1): use_attn $=$ hs[-1].shape[2] in self.attn_resolutions h $=$ jnp.concatenate([h, hs.pop()], axis $= - 1$ ) h $=$ XUNetBlock(
|
| 478 |
+
|
| 479 |
+
features $=$ self.ch $\star$ self.ch_mult[i_level], dropout $=$ self.dropout, attn_heads $=$ self.attn_heads, use_attn ${ \bf \Phi } = { \bf \Phi }$ use_attn, )(h, emb, train $=$ train)
|
| 480 |
+
|
| 481 |
+
if i_level $\ : \ 0$ : emb $=$ logsnr_emb[..., None, None, :] $^ +$ pose_embs[i_level] $\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ ResnetBlock(dropout $=$ self.dropout, resample $= ^ { \parallel }$ up')( h, emb, train ${ \bf \Phi } = { \bf \Phi }$ train )
|
| 482 |
+
|
| 483 |
+
# End.
|
| 484 |
+
assert not hs
|
| 485 |
+
$\mathrm { ~ \textbar ~ { ~ h ~ } ~ } =$ nonlinearity(GroupNorm()(h))
|
| 486 |
+
return nn.Conv( C, kernel_size $=$ (1, 3, 3), strides $; =$ (1, 1, 1), kernel_init $=$ out_init_scale(),
|
| 487 |
+
)(h)[:, 1]
|
| 488 |
+
|
| 489 |
+
# 7 HYPERPARAMETERS
|
| 490 |
+
|
| 491 |
+
We now detail hyperparameter choices across our experiments. These include choices specific to the neural architecture, the training procedure, and also choices only relevant during inference.
|
| 492 |
+
|
| 493 |
+
# 7.1 NEURAL ARCHITECTURE
|
| 494 |
+
|
| 495 |
+
For our neural architecture, our main experiments use $_ { \mathrm { C h } = 2 5 6 }$ ( ${ \sim } 4 7 1 \mathrm { M }$ params), and we also experiment with $\cosh { = } 4 4 8$ $( \sim 1 . 3 \mathrm { B }$ params) in Section 4. One of our early findings that we kept throughout all experiments in the paper is that $\mathtt { c h \_ m u l t } = ( \mathtt { l } , \mathtt { \xi } _ { 2 } , \mathtt { \xi } _ { 2 } , \mathtt { \xi } _ { 4 } )$ (i.e., setting the lowest UNet resolution to 8x8) was sufficient to achieve good sample quality, wheras most prior work includes UNet resolutions up to $4 \mathbf { x } 4$ . We sweeped over the rest of the hyperparameters with the input and target views downsampled from their original $1 2 8 \mathrm { x } 1 2 8$ resolution to the $3 2 \mathrm { x } 3 2 $ , selecting values that led to the best qualitative improvements. These values are the default values present in the code we provide for the XUNet module in Section 6. We generally find that the best hyperparameter choices at low-resolution experiments transfer well when applied to the higher resolutions, and thus recommend this strategy for cheaper and more practical hyperparameter tuning.
|
| 496 |
+
|
| 497 |
+
For the ${ \sim } 1 . 3 \mathrm { B }$ parameter models, we tried increasing the number of parameters of our proposed UNet architecture through several different ways: increasing the number of blocks per resolution, the number of attention heads, the number of cross-attention layers per block, and the base number of hidden channels. Among all of these, we only found the last to provide noticeably better sample quality. We thus run 3D consistency scoring for models scaled this way, with channel sizes per UNet resolution of $4 4 8 \times [ 1 , 2 , 2 , 4 ]$ instead of $2 5 6 \times [ 1 , 2 , 2 , 4 ]$ (we could not fit $_ { \mathrm { c h } = 5 1 2 }$ in TPUv4 memory without model parallelism). On cars, we find that the smaller model reported in the rest of the paper is comparable in quality to the ${ \sim } 1 . 3 \mathrm { B }$ parameter model, though on chairs, we do observe a significant improvement on 3D consistency, both visually and quantitatively (see Table 6).
|
| 498 |
+
|
| 499 |
+
# 7.2 TRAINING
|
| 500 |
+
|
| 501 |
+
Following Equation 3 in the paper, our neural network attempts to model the noise $\epsilon$ added to a real image in order to undo it given the noisy image. Other parameterizations are possible, e.g., predicting $_ { \textbf { \em x } }$ directly rather than predicting $\epsilon$ , though we did not sweep over these choices. For our noise schedule, we use a cosine-shaped log signal to noise ratio that monotonically decreases from 20 to -20. It can be implemented in JAX as follows:
|
| 502 |
+
|
| 503 |
+
def logsnr_schedule_cosine(t, $\star$ , logsnr_min $= - 2 0$ ., logsnr_max $: = 2 0$ .): $\textrm { b } =$ onp.arctan(onp.exp(-.5 \* logsnr_max)) $\begin{array} { r l } { \exists } & { { } = } \end{array}$ onp.arctan(onp.exp(-.5 $\star$ logsnr_min)) - b return $^ { - 2 }$ . \* jnp.log(jnp.tan( $ { \sf a } \mathrm { ~ ~ \star ~ } \sf t + \mathrm { ~ ~ b ~ } )$ )
|
| 504 |
+
|
| 505 |
+
Additionally:
|
| 506 |
+
|
| 507 |
+
• We use a learning rate with peak value 0.0001, using linear warmup for the first 10 million examples (where one batch has batch_size examples), following Karras et al. (2022).
|
| 508 |
+
• We use a global batch size of 128.
|
| 509 |
+
• We train each batch element as an unconditional example $10 \%$ of the time to enable classifier-free guidance. This is done by overriding the conditioning frame to be at the maximum noise level. We note other options are possible (e.g., zeroing-out the conditioning frame), but we chose the option which is most compatible with our neural architecture.
|
| 510 |
+
• We use the Adam optimizer (Kingma & Ba, 2014) with $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9$ .
|
| 511 |
+
• We use EMA decay for the model parameters, with a half life of 500K examples (where one batch has batch_size examples) following Karras et al. (2022).
|
| 512 |
+
|
| 513 |
+
# 7.3 SAMPLING
|
| 514 |
+
|
| 515 |
+
While Ho et al. (2020) note that their ancestral sampler can be used with any variances between $\tilde { \beta } _ { t }$ (variances of $q ( \boldsymbol { z } _ { s } | \boldsymbol { z } _ { t } , \boldsymbol { x } ) )$ and $\beta _ { t }$ (variances of the underlying SDE), we simply use the former as those correspond to their ancestral sampler. We do not observe this choice to have a significant effect sample quality. All our samples are generated with 256 denoising steps. As is standard in the literature, we also clip each predicted $_ { \textbf { \em x } }$ at each denoising step to the normalized range of the images $[ - 1 , 1 ]$ .
|
| 516 |
+
|
| 517 |
+
Classifier-free guidance. Our models use classifier-free guidance (Ho & Salimans, 2021), as we find that small guidance weights help encourage 3D consistency further. All our models were trained unconditionally with a probability of $10 \%$ for each minibatch element. For unconditional examples, we zero out the (positionally encoded) pose and replace the clean frame with standard Gaussian noise (leveraging our weight-sharing architecture, see Section 2.3). We swept over various guidance weights, and simply picked those where 3D inconsistency was qualitatively least apparent on sampled videos. For SRN cars, we use a guidance weight of 3.0, while for SRN chairs we use a weight of 2.0.
|
| 518 |
+
|
| 519 |
+
# 7.4 3D CONSISTENCY SCORING
|
| 520 |
+
|
| 521 |
+
Note that traditional NeRFs (Mildenhall et al., 2020) can be 3D inconsistent as the model allows for view-dependent radiance. We thus employ a simpler and faster to train version based on instantNGP (Muller et al., 2022) without view dependent components, and with additional distortion and ¨ orientation loss terms for improved convergence (Barron et al., 2022; Verbin et al., 2022). Note that the specific implementation details of the neural field method chosen will affect the metrics considerably, so it is of utmost importance to apply the same method and hyperparameters for the neural fields to make 3D consistency scores comparable across models.
|
| 522 |
+
|
| 523 |
+
We design the neural fields as simple Multi-Layer Perceptrons (MLPs) of hidden size 64 and no skip connections. The density MLP has one hidden layer, while the MLP that predicts the color components uses 2 hidden layers. We use a learning rate of 0.01 linearly decayed to 0.001 for the first 100 steps. We use the Adam optimizer with weight decay set to 0.1 and clip gradients of norm exceeding 1.0. We only apply 1000 training steps for each scene and do not optimize camera poses. On each training step, we simply optimize over all available pixels, rather than sampling a random subset of pixels from all the training views.
|
| 524 |
+
|
| 525 |
+
To render the neural fields after training, we set near and far bounds to $\begin{array} { r } { t _ { n } = \frac { 3 r _ { \mathrm { m i n } } } { 8 } , t _ { f } = \frac { 3 r _ { \mathrm { m a x } } } { 2 } . } \end{array}$ where $r _ { \operatorname* { m i n } } , r _ { \operatorname* { m a x } }$ are the minimum and maximum distances from the camera positions to the origin (center of each object) in the corresponding dataset. All renders post-training are also performed with differentiable volume rendering.
|
parse/dev/HtoA0oT30jC/HtoA0oT30jC_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/HtoA0oT30jC/HtoA0oT30jC_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/HtoA0oT30jC/HtoA0oT30jC_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/IDwN6xjHnK8/IDwN6xjHnK8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/IDwN6xjHnK8/IDwN6xjHnK8_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/NXHXoYMLIG/NXHXoYMLIG.md
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EfficientFormer: Vision Transformers at MobileNet Speed
|
| 2 |
+
|
| 3 |
+
Yanyu Li1,2,† Geng Yuan1,2,† Yang Wen1 Ju Hu1 Georgios Evangelidis1 Sergey Tulyakov1 Yanzhi Wang2 Jian Ren1 1Snap Inc. 2Northeastern University
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Vision Transformers (ViT) have shown rapid progress in computer vision tasks, achieving promising results on various benchmarks. However, due to the massive number of parameters and model design, e.g., attention mechanism, ViT-based models are generally times slower than lightweight convolutional networks. Therefore, the deployment of ViT for real-time applications is particularly challenging, especially on resource-constrained hardware such as mobile devices. Recent efforts try to reduce the computation complexity of ViT through network architecture search or hybrid design with MobileNet block, yet the inference speed is still unsatisfactory. This leads to an important question: can transformers run as fast as MobileNet while obtaining high performance? To answer this, we first revisit the network architecture and operators used in ViT-based models and identify inefficient designs. Then we introduce a dimension-consistent pure transformer (without MobileNet blocks) as a design paradigm. Finally, we perform latencydriven slimming to get a series of final models dubbed EfficientFormer. Extensive experiments show the superiority of EfficientFormer in performance and speed on mobile devices. Our fastest model, EfficientFormer-L1, achieves $7 9 . 2 \%$ top-1 accuracy on ImageNet-1K with only $1 . 6 \mathrm { m s }$ inference latency on iPhone 12 (compiled with CoreML), which runs as fast as MobileNet ${ \tt V } 2 { \times } 1 . 4$ $\mathrm { 1 . 6 m s }$ , $7 4 . 7 \%$ top-1), and our largest model, EfficientFormer-L7, obtains $8 3 . 3 \%$ accuracy with only $7 . 0 \mathrm { m s }$ latency. Our work proves that properly designed transformers can reach extremely low latency on mobile devices while maintaining high performance1.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
The transformer architecture [1], initially designed for Natural Language Processing (NLP) tasks, introduces the Multi-Head Self Attention (MHSA) mechanism that allows the network to model long-term dependencies and is easy to parallelize. In this context, Dosovitskiy et al. $\mathbb { \left[ \sum \right] }$ adapt the attention mechanism to 2D images and propose Vision Transformer (ViT): the input image is divided into non-overlapping patches, and the inter-patch representations are learned through MHSA without inductive bias. ViTs demonstrate promising results compared to convolutional neural networks (CNNs) on computer vision tasks. Following this success, several efforts explore the potential of ViT by improving training strategies [3, 4, 5], introducing architecture changes [6, 7], redesigning attention mechanisms [8, 9], and elevating the performance of various vision tasks such as classification [10, 11, 12], segmentation [13, 14], and detection [15, 16].
|
| 12 |
+
|
| 13 |
+
On the downside, transformer models are usually times slower than competitive CNNs [17, 18]. There are many factors that limit the inference speed of ViT, including the massive number of parameters, quadratic-increasing computation complexity with respect to token length, non-foldable normalization layers, and lack of compiler level optimizations (e.g., Winograd for CNN [19]). The high latency makes transformers impractical for real-world applications on resource-constrained hardware, such as augmented or virtual reality applications on mobile devices and wearables. As a result, lightweight CNNs [20, 21, 22] remain the default choice for real-time inference.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Inference Speed vs. Accuracy. All models are trained on ImageNet-1K and measured by iPhone 12 with CoreMLTools to get latency. Compared to CNNs, EfficientFormer-L1 runs $4 0 \%$ faster than EfficientNet-B0, while achieves $2 . 1 \%$ higher accuracy. For the latest MobileViT-XS, EfficientFormer-L7 runs $0 . 2 \mathrm { m s }$ faster with $8 . 5 \%$ higher accuracy.
|
| 17 |
+
|
| 18 |
+
To alleviate the latency bottleneck of transformers, many approaches have been proposed. For instance, some efforts consider designing new architectures or operations by changing the linear layers with convolutional layers (CONV) $[ [ 2 3 ] ]$ , combining self-attention with MobileNet blocks $\pmb { \bigtriangledown } 2 4 \mathbf { \| }$ , or introducing sparse attention [25, 26, 27], to reduce the computational cost, while other efforts leverage network searching algorithm $\left. 2 8 \right.$ or pruning $[ [ 2 9 ]$ to improve efficiency. Although the computation-performance trade-off has been improved by existing works, the fundamental question that relates to the applicability of transformer models remains unanswered: Can powerful vision transformers run at MobileNet speed and become a default option for edge applications? This work provides a study towards the answer through the following contributions:
|
| 19 |
+
|
| 20 |
+
• First, we revisit the design principles of ViT and its variants through latency analysis (Sec. $3 )$ . Following existing work $\bar { \lVert 1 8 \rVert }$ , we utilize iPhone 12 as the testbed and publicly available CoreML $\pmb { \mathbb { B } } \pmb { \mathrm { O } } \Vert$ as the compiler, since the mobile device is widely used and the results can be easily reproduced. • Second, based on our analysis, we identify inefficient designs and operators in ViT and propose a new dimension-consistent design paradigm for vision transformers (Sec. 4.1). • Third, starting from a supernet with the new design paradigm, we propose a simple yet effective latency-driven slimming method to obtain a new family of models, namely, EfficientFormers (Sec. 4.2). We directly optimize for inference speed instead of MACs or number of parameters [31, 32, 33].
|
| 21 |
+
|
| 22 |
+
Our fastest model, EfficientFormer-L1, achieves $7 9 . 2 \%$ top-1 accuracy on ImageNet-1K [34] classification task with only $1 . 6 ~ \mathrm { m s }$ inference time (averaged over 1, 000 runs), which runs as fast as MobileNet $V 2 { \times } 1 . 4$ and wields $4 . 5 \%$ higher top-1 accuracy (more results in Fig. 1 and Tab. 1). The promising results demonstrate that latency is no longer an obstacle for the widespread adoption of vision transformers. Our largest model, EfficientFormer-L7, achieves $8 3 . 3 \%$ accuracy with only $7 . 0 \mathrm { m s }$ latency, outperforms ViT $\mathrm { \Phi } ^ { \prime } \times \mathrm { \Phi }$ MobileNet hybrid designs (MobileViT-XS, $7 4 . 8 \%$ , $7 . 2 \mathrm { m s }$ ) by a large margin. Additionally, we observe superior performance by employing EfficientFormer as the backbone in image detection and segmentation benchmarks (Tab. 2). We provide a preliminary answer to the aforementioned question, ViTs can achieve ultra fast inference speed and wield powerful performance at the same time. We hope our EfficientFormer can serve as a strong baseline and inspire followup works on the edge deployment of vision transformers.
|
| 23 |
+
|
| 24 |
+
# 2 Related Work
|
| 25 |
+
|
| 26 |
+
Transformers are initially proposed to handle the learning of long sequences in NLP tasks [1]. Dosovitskiy et al. $\left[ \left[ 2 \right] \right]$ and Carion et al. $\mathbb { \left. \overline { { 1 5 } } \right. }$ adapt the transformer architecture to classification and detection, respectively, and achieve competitive performance against CNN counterparts with stronger training techniques and larger-scale datasets. DeiT $\mathbb { \left[ 3 \right] }$ further improves the training pipeline with the aid of distillation, eliminating the need for large-scale pretraining [35]. Inspired by the competitive performance and global receptive field of transformer models, follow-up works are proposed to refine the architecture [36, 37], explore the relationship between CONV nets and ViT [38, 39, 40], and adapt ViT to different computer vision tasks [13, 41, 42, 43, 44, 45, 46]. Other research efforts explore the essence of attention mechanism and propose insightful variants of token mixer, e.g., local attention $\pmb { \mathbb { B } } ] \mathbf { l }$ , spatial MLP [47, 48], and pooling-mixer [6].
|
| 27 |
+
|
| 28 |
+
Despite the success in most vision tasks, ViT-based models cannot compete with the well-studied lightweight CNNs [21, 49] when the inference speed is the major concern [50, 51, 52], especially on resource-constrained edge devices [17]. To accelerate ViT, many approaches have been introduced with different methodologies, such as proposing new architectures or modules [53, 54, 55, 56, 57, 58], re-thinking self-attention and sparse-attention mechanisms [59, 60, 61, 62, 63, 64, 65], and utilizing search algorithms that are widely explored in CNNs to find smaller and faster ViTs [66, 28, 29, 67]. Recently, LeViT $\mathbb { \left[ \left. 2 3 \right] \right. }$ proposes a CONV-clothing design to accelerate vision transformer. However, in order to perform MHSA, the 4D features need to be frequently reshaped into flat patches, which is still expensive to compute on edge resources (Fig. 2). Likewise, MobileViT $\boxed { 1 8 }$ introduces a hybrid architecture that combines lightweight MobileNet blocks (with point-wise and depth-wise CONV) and MHSA blocks; the former is placed at early stages in the network pipeline to extract low-level features, while the latter is placed in late stages to enjoy the global receptive field. Similar approach has been explored by several works $ { \mathbb { P } } ^ { \smash { 2 4 , \sqrt { 2 8 } } \rvert }$ as a straightforward strategy to reduce computation.
|
| 29 |
+
|
| 30 |
+
Different from existing works, we aim at pushing the latency-performance boundary of pure vision transformers instead of relying on hybrid designs, and directly optimize for mobile latency. Through our detailed analysis $( \mathrm { S e c . } \boxed { 3 } )$ , we propose a new design paradigm (Sec. 4.1), which can be further elevated through architecture search (Sec. 4.2).
|
| 31 |
+
|
| 32 |
+
# 3 On-Device Latency Analysis of Vision Transformers
|
| 33 |
+
|
| 34 |
+
Most existing approaches optimize the inference speed of transformers through computation complexity (MACs) or throughput (images/sec) obtained from server GPU [23, 28]. While such metrics do not reflect the real on-device latency. To have a clear understanding of which operations and design choices slow down the inference of ViTs on edge devices, we perform a comprehensive latency analysis over a number of models and operations, as shown in Fig. $\bigtriangledown$ whereby the following observations are drawn.
|
| 35 |
+
|
| 36 |
+
# Observation 1: Patch embedding with large kernel and stride is a speed bottleneck on mobile devices.
|
| 37 |
+
|
| 38 |
+
Patch embedding is often implemented with a non-overlapping convolution layer that has large kernel size and stride [3, 55]. A common belief is that the computation cost of the patch embedding layer in a transformer network is unremarkable or negligible [2, 6]. However, our comparison in Fig. 2 between models with large kernel and stride for patch embedding, i.e., DeiT-S $\pmb { \mathbb { B } } \|$ and PoolFormer-S24 [6], and the models without it, i.e., LeViT-256 $\pmb { \mathbb { Z } } 3 \|$ and EfficientFormer, shows that patch embedding is instead a speed bottleneck on mobile devices.
|
| 39 |
+
|
| 40 |
+
Large-kernel convolutions are not well supported by most compilers and cannot be accelerated through existing algorithms like Winograd $\mathbb { I m }$ . Alternatively, the non-overlapping patch embedding can be replaced by a convolution stem with fast downsampling [68, 69, 23] that consists of several hardware-efficient $3 \times 3$ convolutions (Fig. 3).
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2: Latency profiling. Results are obtained on iPhone 12 with CoreML. The on-device speed for CNN (MobileNet ${ \mathrm { V } } 2 { \times } 1 . 4$ , ResNet50, and EfficientNet-B0), ViT-based models (DeiT-Small, LeViT-256, PoolFormer-S24, and EfficientFormer), and various operators are reported. The latency of models and operations are denoted with different color. ( ) is the top-1 accuracy on ImageNet-1K. †LeViT uses HardSwish which is not well supported by CoreML, we replace it with GeLU for fair comparison.
|
| 44 |
+
|
| 45 |
+
Observation 2: Consistent feature dimension is important for the choice of token mixer. MHSA is not necessarily a speed bottleneck.
|
| 46 |
+
|
| 47 |
+
Recent work extends ViT-based models to the MetaFormer architecture $\pmb { \Vert 6 \Vert }$ consisting of MLP blocks and unspecified token mixers. Selecting a token mixer is an essential design choice when building ViT-based models. The options are many—the conventional MHSA mixer with a global receptive field, more sophisticated shifted window attention $\pmb { \Vert 8 \Vert }$ , or a non-parametric operator like pooling [6].
|
| 48 |
+
|
| 49 |
+
We narrow the comparison to the two token mixers, pooling and MHSA, where we choose the former for its simplicity and efficiency, while the latter for better performance. More complicated token mixers like shifted window $\textcircled { 8 } \textcircled { 1 8 }$ are currently not supported by most public mobile compilers and we leave them outside our scope. Furthermore, we do not use depth-wise convolution to replace pooling $ { \mathbb { I } } ^ { { \mathbb { Z } } 0 \| }$ as we focus on building architecture without the aid of lightweight convolutions.
|
| 50 |
+
|
| 51 |
+
To understand the latency of the two token mixers, we perform the following two comparisons:
|
| 52 |
+
|
| 53 |
+
• First, by comparing PoolFormer-s24 $\textcircled { 6 }$ and LeViT-256 $\mathbb { \left[ \left. 2 3 \right] \right. }$ , we observe that the Reshape operation is a bottleneck for LeViT-256. The majority of LeViT-256 is implemented with CONV on 4D tensor, requiring frequent reshaping operations when forwarding features into MHSA since the attention has to be performed on patchified 3D tensor (discarding the extra dimension of attention heads). The extensive usage of Reshape limits the speed of LeViT on mobile devices (Fig. 2). On the other hand, pooling naturally suits the 4D tensor when the network primarily consists of CONV-based implementations, e.g., CONV $1 \times 1$ as MLP implementation and CONV stem for downsampling. As a result, PoolFormer exhibits faster inference speed. • Second, by comparing DeiT-Small $\textcircled { 1 3 } \textcircled { 1 }$ and LeViT-256 $\mathbb { \left[ \left. 2 3 \right] \right. }$ , we find that MHSA does not bring significant overhead on mobiles if the feature dimensions are consistent and Reshape is not required. Though much more computation intensive, DeiT-Small with a consistent 3D feature can achieve comparable speed to the new ViT variant, i.e., LeViT-256.
|
| 54 |
+
|
| 55 |
+
In this work, we propose a dimension-consistent network $( \mathsf { S e c . 4 . 1 } )$ with both 4D feature implementation and 3D MHSA, but the inefficient frequent Reshape operations are eliminated.
|
| 56 |
+
|
| 57 |
+
Observation 3: CONV-BN is more latency-favorable than LN (GN)-Linear and the accuracy drawback is generally acceptable.
|
| 58 |
+
|
| 59 |
+

|
| 60 |
+
Figure 3: Overview of EfficientFormer. The network starts with a convolution stem as patch embedding, followed by MetaBlock (MB). The $\tt M B ^ { 4 D }$ and $\mathtt { M B } ^ { 3 D }$ contain different token mixer configurations, i.e., local pooling or global multi-head self-attention, arranged in a dimension-consistent manner.
|
| 61 |
+
|
| 62 |
+
Choosing the MLP implementation is another essential design choice. Usually, one of the two options is selected: layer normalization (LN) with 3D linear projection (proj.) and CONV $1 \times 1$ with batch normalization (BN). CONV-BN is more latency favorable because BN can be folded into the preceding convolution for inference speedup, while dynamic normalizations, such as LN and GN, still collects running statistics at the inference phase, thus contributing to latency. From the analysis of DeiT-Small and PoolFormer-S24 in Fig. $\bigtriangledown$ and previous work [17], the latency introduced by LN constitutes around $1 0 \% - 2 0 \%$ latency of the whole network.
|
| 63 |
+
|
| 64 |
+
Based on our ablation study in Appendix Tab. 3, CONV-BN only slightly downgrades performance compared to GN and achieves comparable results to channel-wise LN. In this work, we apply CONVBN as much as possible (in all latent 4D features) for the latency gain with a negligible performance drop, while using LN for the 3D features, which aligns with the original MHSA design in ViT and yields better accuracy.
|
| 65 |
+
|
| 66 |
+
# Observation 4: The latency of nonlinearity is hardware and compiler dependent.
|
| 67 |
+
|
| 68 |
+
Lastly, we study nonlinearity, including GeLU, ReLU, and HardSwish. Previous work $\mathbb { \lVert 1 7 \rVert }$ suggests GeLU is not efficient on hardware and slows down inference. However, we observe GeLU is well supported by iPhone 12 and hardly slower than its counterpart, ReLU. On the contrary, HardSwish is surprisingly slow in our experiments and may not be well supported by the compiler (LeViT-256 latency with HardSwish is $4 4 . 5 \mathrm { m s }$ while with GeLU $1 1 . 9 \mathrm { m s }$ ). We conclude that nonlinearity should be determined on a case-by-case basis given specific hardware and compiler at hand. We believe that most of the activations will be supported in the future. In this work, we employ GeLU activations.
|
| 69 |
+
|
| 70 |
+
# 4 Design of EfficientFormer
|
| 71 |
+
|
| 72 |
+
Based on the latency analysis, we propose the design of EfficientFormer, demonstrated in Fig. 3. The network consists of a patch embedding (PatchEmbed) and stack of meta transformer blocks, denoted as MB:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\mathcal { Y } = \prod _ { i } ^ { m } \mathtt { M B } _ { i } \big ( \mathtt { P a t c h E m b e d } ( \mathcal { X } _ { 0 } ^ { B , 3 , H , W } ) \big ) ,
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $\mathcal { X } _ { 0 }$ is the input image with batch size as $B$ and spatial size as $[ H , W ]$ , $\mathcal { V }$ is the desired output, and $m$ is the total number of blocks (depth). MB consists of unspecified token mixer (TokenMixer) followed by a MLP block and can be expressed as follows:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\begin{array} { r } { \mathcal { X } _ { i + 1 } = \mathtt { M B } _ { i } \big ( \mathcal { X } _ { i } \big ) = \mathtt { M L P } \big ( \mathtt { T o k e n M i x e r } ( \mathcal { X } _ { i } ) \big ) , } \end{array}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where ${ \mathcal { X } } _ { i \mid i > 0 }$ is the intermediate feature that forwarded into the $i ^ { t h } \ M \mathrm { B }$ . We further define Stage (or S) as the stack of several MetaBlocks that processes the features with the same spatial size, such as $N _ { 1 } \times$ in Fig. $\textcircled { 3 }$ denoting ${ \tt S } _ { 1 }$ has $N _ { 1 }$ MetaBlocks. The network includes 4 Stages. Among each Stage, there is an embedding operation to project embedding dimension and downsample token length, denoted as Embedding in Fig. $3 .$ With the above architecture, EfficientFormer is a fully transformer-based model without integrating MobileNet structures. Next, we dive into the details of the network design, specifically, the architecture details and the search algorithm.
|
| 85 |
+
|
| 86 |
+
# 4.1 Dimension-Consistent Design
|
| 87 |
+
|
| 88 |
+
With the observations in Sec. $\textcircled { 3 }$ we propose a dimension consistent design which splits the network into a 4D partition where operators are implemented in CONV-net style $( \mathrm { M B ^ { 4 D } } )$ , and a 3D partition where linear projections and attentions are performed over 3D tensor to enjoy the global modeling power of MHSA without sacrificing efficiency $( \mathrm { M B } ^ { 3 D } )$ , as shown in Fig. 3. Specifically, the network starts with 4D partition, while 3D partition is applied in the last stages. Note that Fig. $\textcircled { 3 }$ is just an instance, the actual length of 4D and 3D partition is specified later through architecture search.
|
| 89 |
+
|
| 90 |
+
First, input images are processed by a CONV stem with two $3 \times 3$ convolutions with stride 2 as patch embedding,
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\begin{array} { r } { \mathcal { X } _ { 1 } ^ { B , C _ { j | j = 1 } , \frac { H } { 4 } , \frac { W } { 4 } } = \mathtt { P a t c h E m b e d } ( \mathcal { X } _ { 0 } ^ { B , 3 , H , W } ) , } \end{array}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $C _ { j }$ is the channel number (width) of the $j t h$ stage. Then the network starts with $\tt M B ^ { 4 D }$ with a simple Pool mixer to extract low level features,
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\begin{array} { r l } & { \mathcal { T } _ { i } = \mathrm { P o o 1 } ( \mathcal { X } _ { i } ^ { B , C _ { j } , \frac { H } { 2 ^ { j + 1 } } , \frac { W } { 2 ^ { j + 1 } } } ) + \mathcal { X } _ { i } ^ { B , C _ { j } , \frac { H } { 2 ^ { j + 1 } } , \frac { W } { 2 ^ { j + 1 } } } , } \\ & { \mathcal { X } _ { i + 1 } ^ { B , C _ { j } , \frac { H } { 2 ^ { j + 1 } } , \frac { W } { 2 ^ { j + 1 } } } = \mathrm { C o n v } _ { B } ( \mathrm { C o n v } _ { B , G } ( \mathcal { T } _ { i } ) ) + \mathcal { T } _ { i } , } \end{array}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $\mathtt { C o n v } _ { B , G }$ refers to whether the convolution is followed by BN and GeLU, respectively. Note here we do not employ Group or Layer Normalization (LN) before the Pool mixer as in $\pmb { \Vert 6 \Vert }$ , since the 4D partition is CONV-BN based design, thus there exists a BN in front of each Pool mixer.
|
| 103 |
+
|
| 104 |
+
After processing all the $\tt M B ^ { 4 D }$ blocks, we perform a one-time reshaping to transform the features size and enter 3D partition. $\mathtt { M B } ^ { 3 D }$ follows conventional ViT structure, as in Fig. $3 .$ Formally,
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\begin{array} { r l } & { \mathcal { T } _ { i } = \mathtt { L i n e a r } \big ( \mathtt { M H S A } \big ( \mathrm { L i n e a r } \big ( \mathrm { L N } \big ( \mathcal { X } _ { i } ^ { B , \frac { H W } { 4 ^ { j + 1 } } , C _ { j } } \big ) \big ) \big ) \big ) + \mathcal { X } _ { i } ^ { B , \frac { H W } { 4 ^ { j + 1 } } , C _ { j } } , } \\ & { \qquad \mathcal { X } _ { i + 1 } ^ { B , \frac { H W } { 4 ^ { j + 1 } } , C _ { j } } = \mathtt { L i n e a r } \big ( \mathrm { L i n e a r } _ { G } \big ( \mathrm { L N } ( \mathcal { T } _ { i } ) \big ) \big ) + \mathcal { T } _ { i } , } \end{array}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where Linear $G$ denotes the Linear followed by GeLU, and
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\mathtt { M H S A } ( Q , K , V ) = \mathtt { S o f t m a x } ( \frac { Q \cdot K ^ { T } } { \sqrt { C _ { j } } } + b ) \cdot V ,
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
where $Q , K , V$ represents query, key, and values learned by the linear projection, and $b$ is parameterized attention bias as position encodings.
|
| 117 |
+
|
| 118 |
+
# 4.2 Latency Driven Slimming
|
| 119 |
+
|
| 120 |
+
Design of Supernet. Based on the dimension-consistent design, we build a supernet for searching efficient models of the network architecture shown in Fig. $\textcircled { 3 }$ (Fig. $3$ shows an example of searched final network). In order to represent such a supernet, we define the MetaPath (MP), which is the collection of possible blocks:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\begin{array} { r l } & { \mathtt { M P } _ { i , j = 1 , 2 } \in \{ \mathtt { M B } _ { i } ^ { 4 D } , I _ { i } \} , } \\ & { \mathtt { M P } _ { i , j = 3 , 4 } \in \{ \mathtt { M B } _ { i } ^ { 4 D } , \mathtt { M B } _ { i } ^ { 3 D } , I _ { i } \} , } \end{array}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
where $I$ represents identity path, $j$ denotes the $j ^ { t h }$ Stage, and $i$ denotes the $i ^ { t h }$ block. The supernet can be illustrated by replacing $\tt M B$ in Fig. $3$ with MP.
|
| 127 |
+
|
| 128 |
+
As in Eqn. $^ { 7 , }$ in ${ \tt S } _ { 1 }$ and ${ \tt S } _ { 2 }$ of the supernet, each block can select from $\tt M B ^ { 4 D }$ or $I$ , while in ${ \sf S } _ { 3 }$ and ${ \tt S } _ { 4 }$ , the block can be $\mathtt { M B } ^ { 3 D }$ , $\mathtt { M B } ^ { 4 D }$ , or $I$ . We only enable $\mathtt { M B } ^ { 3 D }$ in the last two Stages for two reasons. First, since the computation of MHSA grows quadratically with respect to token length, integrating it in early Stages would largely increase the computation cost. Second, applying the global MHSA to the last Stages aligns with the intuition that early stages in the networks capture low-level features, while late layers learn long-term dependencies.
|
| 129 |
+
|
| 130 |
+
Searching Space. Our searching space includes $C _ { j }$ (the width of each Stage), $N _ { j }$ (the number of blocks in each Stage, i.e., depth), and last $\mathbb { N }$ blocks to apply $\mathtt { M B } ^ { 3 D }$ .
|
| 131 |
+
|
| 132 |
+
Searching Algorithm. Previous hardware-aware network searching methods generally rely on hardware deployment of each candidate in search space to obtain the latency, which is time consuming [71]. In this work, we propose a simple, fast yet effective gradient-based search algorithm to obtain a candidate network that just needs to train the supernet for once. The algorithm has three major steps.
|
| 133 |
+
|
| 134 |
+
First, we train the supernet with Gumbel Softmax sampling $\pmb { \mathbb { Z } 2 } \|$ to get the importance score for the blocks within each $\tt M P$ , which can be expressed as
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
\mathcal { X } _ { i + 1 } = \sum _ { n } \frac { e ^ { ( \alpha _ { i } ^ { n } + \epsilon _ { i } ^ { n } ) / \tau } } { \sum _ { n } e ^ { ( \alpha _ { i } ^ { n } + \epsilon _ { i } ^ { n } ) / \tau } } \cdot \mathtt { M P } _ { i , j } ( \mathcal { X } _ { i } ) ,
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
where $\alpha$ evaluates the importance of each block in $\tt M P$ as it represents the probability to select a block, e.g., $\mathtt { M B } ^ { 4 D }$ or $\mathtt { M B } ^ { 3 D }$ for the $i ^ { t h }$ block. $\epsilon \sim U ( 0 , 1 )$ ensures exploration, $\tau$ is the temperature, and $n$ represents the type of blocks in MP, i.e., $n \in \{ 4 D , I \}$ for ${ \tt S } _ { 1 }$ and ${ \tt S } _ { 2 }$ , and $n \in \{ 4 D , 3 D , I \}$ for ${ \tt S } _ { 3 }$ and ${ \tt S } _ { 4 }$ . By using Eqn. $\mathbb { B } ,$ the derivatives with respect to network weights and $\alpha$ can be computed easily. The training follows the standard recipe (see Sec. $\underline { { \boldsymbol { \mathsf { F . 1 } } } } \underline { { \boldsymbol { \mathsf { I } } } }$ to obtain the trained weights and architecture parameter $\alpha$ .
|
| 141 |
+
|
| 142 |
+
Second, we build a latency lookup table by collecting the on-device latency of $\tt M B ^ { 4 D }$ and $\mathtt { M B } ^ { 3 D }$ with different widths (multiples of 16).
|
| 143 |
+
|
| 144 |
+
Finally, we perform network slimming on the supernet obtained from the first step through latency evaluation using the lookup table. Note that a typical gradient-based searching algorithm simply select the block with largest $\alpha \left\| \overline { { \mathbb { Z } \mathrm { 2 } } } \right\|$ , which does not fit our scope as it cannot search the width $C _ { j }$ . In fact, constructing a multiple-width supernet is memory-consuming and even unrealistic given that each MP has several branches in our design. Instead of directly searching on the complex searching space, we perform a gradual slimming on the single-width supernet as follows.
|
| 145 |
+
|
| 146 |
+
We first define the importance score for $\mathtt { M P } _ { i }$ as ↵4D $\frac { \alpha _ { i } ^ { 4 D } } { \alpha _ { i } ^ { I } }$ and $\frac { \alpha _ { i } ^ { 3 D } + \alpha _ { i } ^ { 4 D } } { \alpha _ { i } ^ { I } }$ for $\mathtt { S } _ { 1 , 2 }$ and $\mathsf { S } _ { 3 , 4 }$ , respectively. Similarly, the importance score for each Stage can be obtained by summing up the scores for all MP within the Stage. With the importance score, we define the action space that includes three options: 1) select $I$ for the least important MP, 2) remove the first $\mathtt { M B } ^ { 3 D }$ , and 3) reduce the width of the least important Stage (by multiples of 16). Then, we calculate the resulting latency of each action through lookup table, and evaluate the accuracy drop of each action. Lastly, we choose the action based on per-latency accuracy drop $\big ( \frac { - \% } { m s } \big )$ . This process is performed iteratively until target latency is achieved. We show more details of the algorithm in Appendix.
|
| 147 |
+
|
| 148 |
+
# 5 Experiments and Discussion
|
| 149 |
+
|
| 150 |
+
We implement EfficientFormer through PyTorch 1.11 $\mathbb { \left[ \left. \left. \right. Z 3 \right] \right. }$ and Timm library $\pmb { \Vert 7 4 \Vert }$ , which is the common practice in recent arts $\boxed { 1 8 } \boxed { 6 }$ . Our models are trained on a cluster with NVIDIA A100 and V100 GPUs. The inference speed on iPhone 12 (A14 bionic chip) is measured with iOS version 15 and averaged over $1 , 0 0 0$ runs, with all available computing resources (NPU), or CPU only. CoreMLTools is used to deploy the run-time model. In addition, we provide latency analysis on Nvidia A100 GPU with batch size 64 to exploit hardware roofline. The trained PyTorch models are deployed in ONNX format and are compiled with TensorRT. We report GPU runtime that excludes preprocessing. We provide the detailed network architecture and more ablation studies in Appendix
|
| 151 |
+
|
| 152 |
+
# 5.1 Image Classification
|
| 153 |
+
|
| 154 |
+
All EfficientFormer models are trained from scratch on ImageNet-1K dataset $\pmb { \mathbb { B 4 } }$ to perform the image classification task. We employ standard image size $( 2 2 4 \times 2 2 4 )$ for both training and testing. We follow the training recipe from DeiT $\mathbb { \left[ 3 \right] }$ but mainly report results with 300 training epochs to have the comparison with other ViT-based models. We use AdamW optimizer [75, 76], warm-up training with 5 epochs, and a cosine annealing learning rate schedule. The initial learning rate is set as $1 0 ^ { - 3 } \times ( b a t c h \ : s i z e / 1 0 2 4 )$ and the minimum learning rate is $1 0 ^ { - 5 }$ . The teacher model for distillation is RegNetY-16GF [77] pretrained on ImageNet with $8 2 . 9 \%$ top-1 accuracy. Results are demonstrated in Tab. 1 and Fig. 1
|
| 155 |
+
|
| 156 |
+
Table 1: Comparison results on ImgeNet-1K. The latency results are tested on iPhone Neural Engine (NPU), iPhone CPU and Nvidia A100 GPU correspondingly. Note that for mobile speed, we report latency per frame, while on A100 GPU, we report latency per batch size 64 to maximum resource utilization. Hybrid refers to a mixture of MobileNet blocks and ViT blocks. (-) refers to unrevealed or unsupported models. †Latency measured with GeLU activation for fair comparison, the original LeViT-256 model with HardSwish activations runs at $4 4 . 5 \mathrm { m s }$ . Different training seeds lead to less than $\pm 0 . 2 \%$ fluctuation in accuracy for EfficientFormer, and the error for latency benchmark is less than $\pm 0 . 1 \mathrm { { m s } }$ .
|
| 157 |
+
|
| 158 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Type</td><td rowspan="2">Params(M)</td><td rowspan="2">GMACs</td><td rowspan="2">Train. Epoch</td><td rowspan="2">Top-1(%)</td><td colspan="3">Latency (ms)</td></tr><tr><td>NPU</td><td>CPU</td><td>A100</td></tr><tr><td>MobileNetV2×1.0</td><td>CONV</td><td>3.5</td><td>0.3</td><td>300</td><td>71.8</td><td>1.3</td><td>8.0</td><td>5.0</td></tr><tr><td>MobileNetV2×1.4</td><td>CONV</td><td>6.1</td><td>0.6</td><td>300</td><td>74.7</td><td>1.6</td><td>10.7</td><td>7.3</td></tr><tr><td>ResNet50</td><td>CONV</td><td>25.5</td><td>4.1</td><td>300</td><td>78.5</td><td>3.0</td><td>29.4</td><td>9.0</td></tr><tr><td>EfficientNet-B0</td><td>CONV</td><td>5.3</td><td>0.4</td><td>350</td><td>77.1</td><td>2.7</td><td>14.5</td><td>10.0</td></tr><tr><td>EfficientNet-B3</td><td>CONV</td><td>12.0</td><td>1.8</td><td>350</td><td>81.6</td><td>6.6</td><td>52.6</td><td>35.0</td></tr><tr><td>EffcientNet-B5</td><td>CONV</td><td>30.0</td><td>9.9</td><td>350</td><td>83.6</td><td>23.0</td><td>258.8</td><td>141.0</td></tr><tr><td>DeiT-T</td><td>Attention</td><td>5.9</td><td>1.2</td><td>300/1000</td><td>74.5/76.6</td><td>9.2</td><td>16.7</td><td>7.1</td></tr><tr><td>DeiT-S</td><td>Attention</td><td>22.5</td><td>4.5</td><td>300/1000</td><td>81.2/82.6</td><td>11.8</td><td>41.0</td><td>15.5</td></tr><tr><td>PVT-Small</td><td>Attention</td><td>24.5</td><td>3.8</td><td>300</td><td>79.8</td><td>24.4</td><td>89.5</td><td>23.8</td></tr><tr><td>T2T-ViT-14</td><td>Attention</td><td>21.5</td><td>4.8</td><td>310</td><td>81.5</td><td>-</td><td>-</td><td>21.0</td></tr><tr><td>Swin-Tiny</td><td>Attention</td><td>29</td><td>4.5</td><td>300</td><td>81.3</td><td>-</td><td>■</td><td>22.0</td></tr><tr><td>CSwin-T</td><td>Attention</td><td>23</td><td>4.3</td><td>300</td><td>82.7</td><td>-</td><td>-</td><td>28.7</td></tr><tr><td>PoolFormer-s12</td><td>Pool</td><td>12</td><td>2.0</td><td>300</td><td>77.2</td><td>6.1</td><td>59.0</td><td>14.5</td></tr><tr><td>PoolFormer-s24</td><td>Pool</td><td>21</td><td>3.6</td><td>300</td><td>80.3</td><td>6.2</td><td>126.7</td><td>28.2</td></tr><tr><td>PoolFormer-s36</td><td>Pool</td><td>31</td><td>5.2</td><td>300</td><td>81.4</td><td>6.7</td><td>192.6</td><td>41.2</td></tr><tr><td>ResMLP-S24</td><td>SMLP</td><td>30</td><td>6.0</td><td>300</td><td>79.4</td><td>7.6</td><td>40.2</td><td>17.4</td></tr><tr><td>Convmixer-768</td><td>Hybrid</td><td>21.1</td><td>20.7</td><td>300</td><td>80.2</td><td>11.6</td><td>29.3</td><td>-</td></tr><tr><td>LeViT-256</td><td>Hybrid</td><td>18.9</td><td>1.1</td><td>1000</td><td>81.6</td><td>11.9 †</td><td>13.5</td><td>4.5</td></tr><tr><td>NASViT-A5</td><td>Hybrid</td><td>-</td><td>0.76</td><td>360</td><td>81.8</td><td>-</td><td>■</td><td>-</td></tr><tr><td>MobileViT-XS</td><td>Hybrid</td><td>2.3</td><td>0.7</td><td>300</td><td>74.8</td><td>7.2</td><td>26.5</td><td>11.7</td></tr><tr><td>MobileFormer-508M</td><td>Hybrid</td><td>14.0</td><td>0.51</td><td>450</td><td>79.3</td><td>13.2</td><td>22.2</td><td>14.6</td></tr><tr><td>EfficientFormer-L1</td><td>MetaBlock</td><td>12.3</td><td>1.3</td><td>300/1000</td><td>79.2/80.2</td><td>1.6</td><td>11.5</td><td>6.2</td></tr><tr><td>EfficientFormer-L3</td><td>MetaBlock</td><td>31.3</td><td>3.9</td><td>300</td><td>82.4</td><td>3.0</td><td>28.2</td><td>13.9</td></tr><tr><td>EfficientFormer-L7</td><td>MetaBlock</td><td>82.1</td><td>10.2</td><td>300</td><td>83.3</td><td>7.0</td><td>67.7</td><td>30.7</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Comparison to CNNs. Compared with the widely used CNN-based models, EfficientFormer achieves a better trade-off between accuracy and latency. On iPhone Neural Engine, EfficientFormerL1 runs at MobileNet ${ \tt V } 2 { \times } 1 . 4$ speed while achieving $4 . 5 \%$ higher top-1 accuracy. In addition, EfficientFormer-L3 runs at a similar speed to EfficientNet-B0 while achieving relative $5 . 3 \%$ higher top-1 accuracy. For the models with high performance $( > 8 3 \%$ top-1), EfficientFormer-L7 runs more than $3 \times$ faster than EfficientNet-B5, demonstrating the advantageous performance of our models. Moreover on desktop GPU (A100), EfficientFormer-L1 runs $38 \%$ faster than EfficientNet-B0 while achieving $2 . 1 \%$ higher top-1 accuracy. EfficientFormer-L7 runs $4 . 6 \times$ faster than EfficientNet-B5. These results allow us to answer the central question raised earlier; ViTs do not need to sacrifice latency to achieve good performance, and an accurate ViT can still have ultra-fast inference speed as lightweight CNNs do.
|
| 161 |
+
|
| 162 |
+
Comparison to ViTs. Conventional ViTs are still under-performing CNNs in terms of latency. For instance, DeiT-Tiny achieves similar accuracy to EfficientNet-B0 while it runs $3 . 4 \times$ slower. However, EfficientFormer performs like other transformer models while running times faster. EfficientFormerL3 achieves higher accuracy than DeiT-Small $( 8 2 . 4 \%$ vs. $8 1 . 2 \%$ ) while being $4 \times$ faster. It is notable that though the recent transformer variant, PoolFormer $\textcircled { 6 }$ , naturally has a consistent 4D architecture and runs faster compared to typical ViTs, the absence of global MHSA greatly limits the performance upper-bound. EfficientFormer-L3 achieves $1 \%$ higher top-1 accuracy than PoolFormer-S36, while being $3 \times$ faster on Nvidia A100 GPU, $2 . 2 \times$ faster on iPhone NPU and $6 . 8 \times$ faster on iPhone CPU.
|
| 163 |
+
|
| 164 |
+
Comparison to Hybrid Designs. Existing hybrid designs, e.g., LeViT-256 and MobileViT, still struggle with the latency bottleneck of ViTs and can hardly outperform lightweight CNNs. For example, LeViT-256 runs slower than DeiT-Small while having $1 \%$ lower top-1 accuracy. For MobileViT, which is a hybrid model with both MHSA and MobileNet blocks, we observe that it is significantly slower than CNN counterparts, e.g., MobileNetV2 and EfficientNet-B0, while the accuracy is not satisfactory either $( 2 . 3 \%$ lower than EfficientNet-B0). Thus, simply trading-off MHSA with MobileNet blocks can hardly push forward the Pareto curve, as in Fig. $i _ { \cdot }$ In contrast, EfficientFormer, as pure transformer-based model, can maintain high performance while achieving ultra-fast inference speed. EfficientFormer-L1 has $4 . 4 \%$ higher top-1 accuracy than MobileViT-XS and runs much faster across different hardware and compilers ( $1 . 9 \times$ faster on Nvidia A100 GPU Computing, $2 . 3 \times$ faster on iPhone CPU, and $4 . 5 \times$ faster on iPhone NPU). At a similar inference time, EfficientFormer-L7 outperforms MobileViT-XS by $8 . 5 \%$ top-1 accuracy on ImageNet, demonstrating the superiority of our design.
|
| 165 |
+
|
| 166 |
+
Table 2: Comparison results using EfficientFormer as backbone. Results on object detection $\&$ instance segmentation are obtained from COCO 2017. Results on semantic segmentation are obtained from ADE20K.
|
| 167 |
+
|
| 168 |
+
<table><tr><td rowspan="2">Backbone</td><td colspan="5">Detection & Instance Segmentation</td><td rowspan="2">Semantic mIoU(%)</td></tr><tr><td>Apbox</td><td>AP5</td><td>APb</td><td>APmask</td><td>APmask</td></tr><tr><td>ResNet18</td><td>34.0</td><td>54.0</td><td>36.7</td><td>31.2</td><td>51.0</td><td>APmask 32.7</td><td>32.9</td></tr><tr><td>PoolFormer-S12</td><td>37.3</td><td>59.0</td><td>40.1</td><td>34.6</td><td>55.8</td><td>36.9</td><td>37.2</td></tr><tr><td>EfficientFormer-L1</td><td>37.9</td><td>60.3</td><td>41.0</td><td>35.4</td><td>57.3</td><td>37.3</td><td>38.9</td></tr><tr><td>ResNet50</td><td>38.0</td><td>58.6</td><td>41.4</td><td>34.4</td><td>55.1</td><td>36.7</td><td>36.7</td></tr><tr><td>PoolFormer-S24</td><td>40.1</td><td>62.2</td><td>43.4</td><td>37.0</td><td>59.1</td><td>39.6</td><td>40.3</td></tr><tr><td>EfficientFormer-L3</td><td>41.4</td><td>63.9</td><td>44.7</td><td>38.1</td><td>61.0</td><td>40.4</td><td>43.5</td></tr><tr><td>ResNet101</td><td>40.4</td><td>61.1</td><td>44.2</td><td>36.4</td><td>57.7</td><td>38.8</td><td>38.8</td></tr><tr><td>PoolFormer-S36</td><td>41.0</td><td>63.1</td><td>44.8</td><td>37.7</td><td>60.1</td><td>40.0</td><td>42.0</td></tr><tr><td>EfficientFormer-L7</td><td>42.6</td><td>65.1</td><td>46.1</td><td>39.0</td><td>62.2</td><td> 41.7</td><td>45.1</td></tr></table>
|
| 169 |
+
|
| 170 |
+
# 5.2 EfficientFormer as Backbone
|
| 171 |
+
|
| 172 |
+
Object Detection and Instance Segmentation. We follow the implementation of Mask-RCNN [78] to integrate EfficientFormer as the backbone and verify performance. We experiment over COCO2017 $\dot { \left[ \left| \begin{array} { l } { \overline { { 7 9 } } } \end{array} \right| \right] }$ which contains training and validations sets of 118K and 5K images, respectively. The EfficientFormer backbone is initialized with ImageNet-1K pretrained weights. Similar to prior work $\pmb { \mathbb { H } }$ , we use AdamW optimizer $\textcircled { 1 7 5 } , \textcircled { 7 6 } $ with initial learning rate of $2 \times 1 0 ^ { - 4 }$ , and train the model for 12 epochs. We set the input size as $1 3 3 3 \times 8 0 0$ .
|
| 173 |
+
|
| 174 |
+
The results for detection and instance segmentation are shown in Tab. 2. EfficientFormers consistently outperform CNN (ResNet) and transformer (PoolFormer) backbones. With similar computation cost, EfficientFormer-L3 outperforms ResNet50 backbone by 3.4 box AP and 3.7 mask AP, and outperforms PoolFormer-S24 backbone with 1.3 box AP and 1.1 mask AP, proving that EfficientFormer generalizes well as a strong backbone in vision tasks.
|
| 175 |
+
|
| 176 |
+
Semantic Segmentation. We further validate the performance of EfficientFormer on the semantic segmentation task. We use the challenging scene parsing dataset, ADE20K [80, 81], which contains 20K training images and 2K validation ones covering 150 class categories. Similar to existing work $\pmb { \mathbb { H } }$ , we build EfficientFormer as backbone along with Semantic FPN $[ \textcircled { 8 2 } ]$ as segmentation decoder for fair comparison. The backbone is initialized with pretrained weights on ImageNet-1K and the model is trained for 40K iterations with a total batch size of 32 over 8 GPUs. We follow the common practice in segmentation $[ 6 , 1 1 3 ]$ , use AdamW optimizer $\boxed { 7 5 } \boxed { 7 6 }$ , and apply a poly learning rate schedule with power 0.9, starting from a initial learning rate $2 \times 1 0 ^ { - 4 }$ . We resize and crop input images to $5 1 2 \times 5 1 2$ for training and shorter side as 512 for testing (on validation set).
|
| 177 |
+
|
| 178 |
+
As shown in Tab. 2, EfficientFormer consistently outperforms CNN- and transformer-based backbones by a large margin under a similar computation budget. For example, EfficientFormer-L3 outperforms PoolFormer-S24 by 3.2 mIoU. We show that with global attention, EfficientFormer learns better long-term dependencies, which is beneficial in high-resolution dense prediction tasks.
|
| 179 |
+
|
| 180 |
+
# 5.3 Discussion
|
| 181 |
+
|
| 182 |
+
Relations to MetaFormer. The design of EfficientFormer is partly inspired by the MetaFormer concept $\textcircled { 6 }$ . Compared to PoolFormer, EfficientFormer addresses the dimension mismatch problem, which is a root cause of inefficient edge inference, thus being capable of utilizing global MHSA without sacrificing speed. Consequently, EfficientFormer exhibits advantageous accuracy performance over PoolFormer. In spite of its fully 4D design, PoolFormer employs inefficient patch embedding and group normalization (Fig. 2), leading to increased latency. Instead, our redesigned 4D partition of EfficientFormer (Fig. 3) is more hardware friendly and exhibits better performance across several tasks.
|
| 183 |
+
|
| 184 |
+
Limitations. (i) Though most designs in EfficientFormer are general-purposed, e.g., dimensionconsistent design and 4D block with CONV-BN fusion, the actual speed of EfficientFormer may vary on other platforms. For instance, if GeLU is not well supported while HardSwish is efficiently implemented on specific hardware and compiler, the operator may need to be modified accordingly. (ii) The proposed latency-driven slimming is simple and fast. However, better results may be achieved if search cost is not a concern and an enumeration-based brute search is performed.
|
| 185 |
+
|
| 186 |
+
# 6 Conclusion
|
| 187 |
+
|
| 188 |
+
In this work, we show that Vision Transformer can operate at MobileNet speed on mobile devices. Starting from a comprehensive latency analysis, we identify inefficient operators in a series of ViTbased architectures, whereby we draw important observations that guide our new design paradigm. The proposed EfficientFormer complies with a dimension consistent design that smoothly leverages hardware-friendly 4D MetaBlocks and powerful 3D MHSA blocks. We further propose a fast latencydriven slimming method to derive optimized configurations based on our design space. Extensive experiments on image classification, object detection, and segmentation tasks show that EfficientFormer models outperform existing transformer models while being faster than most competitive CNNs. The latency-driven analysis of ViT architecture and the experimental results validate our claim: powerful vision transformers can achieve ultra-fast inference speed on the edge. Future research will further explore the potential of EfficientFormer on several resource-constrained devices.
|
| 189 |
+
|
| 190 |
+
# Acknowledgment
|
| 191 |
+
|
| 192 |
+
This work is supported in part by National Science Foundation CCF-1937500.
|
| 193 |
+
|
| 194 |
+
# References
|
| 195 |
+
|
| 196 |
+
[1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
|
| 197 |
+
[2] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021.
|
| 198 |
+
[3] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, pages 10347–10357. PMLR, 2021.
|
| 199 |
+
[4] Hugo Touvron, Matthieu Cord, and Hervé Jégou. Deit iii: Revenge of the vit. arXiv preprint arXiv:2204.07118, 2022.
|
| 200 |
+
[5] Hugo Touvron, Matthieu Cord, Alaaeldin El-Nouby, Jakob Verbeek, and Hervé Jégou. Three things everyone should know about vision transformers. arXiv preprint arXiv:2203.09795, 2022.
|
| 201 |
+
[6] Weihao Yu, Mi Luo, Pan Zhou, Chenyang Si, Yichen Zhou, Xinchao Wang, Jiashi Feng, and Shuicheng Yan. Metaformer is actually what you need for vision. arXiv preprint arXiv:2111.11418, 2021.
|
| 202 |
+
[7] Lingchen Meng, Hengduo Li, Bor-Chun Chen, Shiyi Lan, Zuxuan Wu, Yu-Gang Jiang, and Ser-Nam Lim. Adavit: Adaptive vision transformers for efficient image recognition. arXiv preprint arXiv:2111.15668, 2021.
|
| 203 |
+
[8] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10012–10022, 2021.
|
| 204 |
+
[9] Sebastian Jaszczur, Aakanksha Chowdhery, Afroz Mohiuddin, Lukasz Kaiser, Wojciech Gajewski, Henryk Michalewski, and Jonni Kanerva. Sparse is enough in scaling transformers. Advances in Neural Information Processing Systems, 34:9895–9907, 2021.
|
| 205 |
+
[10] Ze Liu, Han Hu, Yutong Lin, Zhuliang Yao, Zhenda Xie, Yixuan Wei, Jia Ning, Yue Cao, Zheng Zhang, Li Dong, et al. Swin transformer v2: Scaling up capacity and resolution. arXiv preprint arXiv:2111.09883, 2021.
|
| 206 |
+
[11] Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, and Han Hu. Video swin transformer. arXiv preprint arXiv:2106.13230, 2021.
|
| 207 |
+
[12] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9650–9660, 2021.
|
| 208 |
+
[13] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. arXiv preprint arXiv:2105.15203, 2021.
|
| 209 |
+
[14] Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask transformer for universal image segmentation. arXiv preprint arXiv:2112.01527, 2021.
|
| 210 |
+
[15] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European conference on computer vision, pages 213–229. Springer, 2020.
|
| 211 |
+
[16] Yanghao Li, Chao-Yuan Wu, Haoqi Fan, Karttikeya Mangalam, Bo Xiong, Jitendra Malik, and Christoph Feichtenhofer. Improved multiscale vision transformers for classification and detection. arXiv preprint arXiv:2112.01526, 2021.
|
| 212 |
+
[17] Xudong Wang, Li Lyna Zhang, Yang Wang, and Mao Yang. Towards efficient vision transformer inference: a first study of transformers on mobile devices. In Proceedings of the 23rd Annual International Workshop on Mobile Computing Systems and Applications, pages 1–7, 2022.
|
| 213 |
+
[18] Sachin Mehta and Mohammad Rastegari. Mobilevit: Light-weight, general-purpose, and mobile-friendly vision transformer. arXiv preprint arXiv:2110.02178, 2021.
|
| 214 |
+
[19] Xingyu Liu, Jeff Pool, Song Han, and William J Dally. Efficient sparse-winograd convolutional neural networks. arXiv preprint arXiv:1802.06367, 2018.
|
| 215 |
+
[20] Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017.
|
| 216 |
+
[21] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4510–4520, 2018.
|
| 217 |
+
[22] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1314–1324, 2019.
|
| 218 |
+
[23] Benjamin Graham, Alaaeldin El-Nouby, Hugo Touvron, Pierre Stock, Armand Joulin, Herve Jegou, and Matthijs Douze. Levit: A vision transformer in convnet’s clothing for faster inference. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 12259–12269, October 2021.
|
| 219 |
+
[24] Yinpeng Chen, Xiyang Dai, Dongdong Chen, Mengchen Liu, Xiaoyi Dong, Lu Yuan, and Zicheng Liu. Mobile-former: Bridging mobilenet and transformer. arXiv preprint arXiv:2108.05895, 2021.
|
| 220 |
+
[25] Chuhan Wu, Fangzhao Wu, Tao Qi, Binxing Jiao, Daxin Jiang, Yongfeng Huang, and Xing Xie. Smart bird: Learnable sparse attention for efficient and effective transformer. arXiv preprint arXiv:2108.09193, 2021.
|
| 221 |
+
[26] Byungseok Roh, JaeWoong Shin, Wuhyun Shin, and Saehoon Kim. Sparse detr: Efficient end-to-end object detection with learnable sparsity. arXiv preprint arXiv:2111.14330, 2021.
|
| 222 |
+
[27] Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159, 2020.
|
| 223 |
+
[28] Chengyue Gong, Dilin Wang, Meng Li, Xinlei Chen, Zhicheng Yan, Yuandong Tian, qiang liu, and Vikas Chandra. NASVit: Neural architecture search for efficient vision transformers with gradient conflict aware supernet training. In International Conference on Learning Representations, 2022.
|
| 224 |
+
[29] Arnav Chavan, Zhiqiang Shen, Zhuang Liu, Zechun Liu, Kwang-Ting Cheng, and Eric Xing. Vision transformer slimming: Multi-dimension searching in continuous optimization space. 2022.
|
| 225 |
+
[30] CoreMLTools. Use coremltools to convert models from third-party libraries to core ml., 2021.
|
| 226 |
+
[31] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Proceedings of the European conference on computer vision (ECCV), pages 116–131, 2018.
|
| 227 |
+
[32] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2820–2828, 2019.
|
| 228 |
+
[33] Hanrui Wang, Zhanghao Wu, Zhijian Liu, Han Cai, Ligeng Zhu, Chuang Gan, and Song Han. Hat: Hardware-aware transformers for efficient natural language processing. arXiv preprint arXiv:2005.14187, 2020.
|
| 229 |
+
[34] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A largescale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009.
|
| 230 |
+
[35] Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zi-Hang Jiang, Francis EH Tay, Jiashi Feng, and Shuicheng Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 558–567, 2021.
|
| 231 |
+
[36] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 568–578, 2021.
|
| 232 |
+
[37] Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve, and Hervé Jégou. Going deeper with image transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 32–42, 2021.
|
| 233 |
+
[38] Jianyuan Guo, Kai Han, Han Wu, Chang Xu, Yehui Tang, Chunjing Xu, and Yunhe Wang. Cmt: Convolutional neural networks meet vision transformers. arXiv preprint arXiv:2107.06263, 2021.
|
| 234 |
+
[39] Zihang Dai, Hanxiao Liu, Quoc V Le, and Mingxing Tan. Coatnet: Marrying convolution and attention for all data sizes. Advances in Neural Information Processing Systems, 34:3965–3977, 2021.
|
| 235 |
+
[40] Qi Han, Zejia Fan, Qi Dai, Lei Sun, Ming-Ming Cheng, Jiaying Liu, and Jingdong Wang. On the connection between local attention and dynamic depth-wise convolution. In International Conference on Learning Representations, 2021.
|
| 236 |
+
[41] Zizhao Zhang, Han Zhang, Long Zhao, Ting Chen, Sercan Arik, and Tomas Pfister. Nested hierarchical transformer: Towards accurate, data-efficient and interpretable visual understanding. 2022.
|
| 237 |
+
[42] Wenqiang Zhang, Zilong Huang, Guozhong Luo, Tao Chen, Xinggang Wang, Wenyu Liu, Gang Yu, and Chunhua Shen. Topformer: Token pyramid transformer for mobile semantic segmentation, 2022.
|
| 238 |
+
[43] Seung Hoon Lee, Seunghyun Lee, and Byung Cheol Song. Vision transformer for small-size datasets. arXiv preprint arXiv:2112.13492, 2021.
|
| 239 |
+
[44] Kwonjoon Lee, Huiwen Chang, Lu Jiang, Han Zhang, Zhuowen Tu, and Ce Liu. Vitgan: Training gans with vision transformers. arXiv preprint arXiv:2107.04589, 2021.
|
| 240 |
+
[45] Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12873–12883, 2021.
|
| 241 |
+
[46] Yanhong Zeng, Huan Yang, Hongyang Chao, Jianbo Wang, and Jianlong Fu. Improving visual quality of image synthesis by a token-based generator with transformers. Advances in Neural Information Processing Systems, 34, 2021.
|
| 242 |
+
[47] Hugo Touvron, Piotr Bojanowski, Mathilde Caron, Matthieu Cord, Alaaeldin El-Nouby, Edouard Grave, Gautier Izacard, Armand Joulin, Gabriel Synnaeve, Jakob Verbeek, et al. Resmlp: Feedforward networks for image classification with data-efficient training. arXiv preprint arXiv:2105.03404, 2021.
|
| 243 |
+
[48] Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, and Alexey Dosovitskiy. Mlp-mixer: An all-mlp architecture for vision. arXiv preprint arXiv:2105.01601, 2021.
|
| 244 |
+
[49] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pages 6105–6114. PMLR, 2019.
|
| 245 |
+
[50] Ilya O Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, et al. Mlp-mixer: An all-mlp architecture for vision. Advances in Neural Information Processing Systems, 34, 2021.
|
| 246 |
+
[51] Shoufa Chen, Enze Xie, Chongjian Ge, Ding Liang, and Ping Luo. Cyclemlp: A mlp-like architecture for dense prediction. arXiv preprint arXiv:2107.10224, 2021.
|
| 247 |
+
[52] Daquan Zhou, Bingyi Kang, Xiaojie Jin, Linjie Yang, Xiaochen Lian, Zihang Jiang, Qibin Hou, and Jiashi Feng. Deepvit: Towards deeper vision transformer. arXiv preprint arXiv:2103.11886, 2021.
|
| 248 |
+
[53] Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In ICLR. OpenReview.net, 2020.
|
| 249 |
+
[54] Chun-Fu Richard Chen, Quanfu Fan, and Rameswar Panda. Crossvit: Cross-attention multiscale vision transformer for image classification. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 357–366, 2021.
|
| 250 |
+
[55] Ali Hassani, Steven Walton, Nikhil Shah, Abulikemu Abuduweili, Jiachen Li, and Humphrey Shi. Escaping the big data paradigm with compact transformers. arXiv preprint arXiv:2104.05704, 2021.
|
| 251 |
+
[56] Mohsen Fayyaz, Soroush Abbasi Kouhpayegani, Farnoush Rezaei Jafari, Eric Sommerlade, Hamid Reza Vaezi Joze, Hamed Pirsiavash, and Juergen Gall. Ats: Adaptive token sampling for efficient vision transformers. arXiv preprint arXiv:2111.15667, 2021.
|
| 252 |
+
[57] Wei Li, Xing Wang, Xin Xia, Jie Wu, Xuefeng Xiao, Min Zheng, and Shiping Wen. Sepvit: Separable vision transformer. CoRR, abs/2203.15380, 2022.
|
| 253 |
+
[58] Cédric Renggli, André Susano Pinto, Neil Houlsby, Basil Mustafa, Joan Puigcerver, and Carlos Riquelme. Learning to merge tokens in vision transformers. CoRR, abs/2202.12015, 2022.
|
| 254 |
+
[59] Wenxiao Wang, Lu Yao, Long Chen, Binbin Lin, Deng Cai, Xiaofei He, and Wei Liu. Crossformer: A versatile vision transformer hinging on cross-scale attention. arXiv preprint arXiv:2108.00154, 2021.
|
| 255 |
+
[60] Byeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun, Junsuk Choe, and Seong Joon Oh. Rethinking spatial dimensions of vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11936–11945, 2021.
|
| 256 |
+
[61] Chun-Fu Chen, Rameswar Panda, and Quanfu Fan. Regionvit: Regional-to-local attention for vision transformers. arXiv preprint arXiv:2106.02689, 2021.
|
| 257 |
+
[62] Yawei Li, Kai Zhang, Jiezhang Cao, Radu Timofte, and Luc Van Gool. Localvit: Bringing locality to vision transformers. arXiv preprint arXiv:2104.05707, 2021.
|
| 258 |
+
[63] Xiangxiang Chu, Zhi Tian, Yuqing Wang, Bo Zhang, Haibing Ren, Xiaolin Wei, Huaxia Xia, and Chunhua Shen. Twins: Revisiting spatial attention design in vision transformers. arXiv e-prints, pages arXiv–2104, 2021.
|
| 259 |
+
[64] Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. Dynamicvit: Efficient vision transformers with dynamic token sparsification. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
|
| 260 |
+
[65] Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, and Yinxiao Li. Maxvit: Multi-axis vision transformer. CoRR, abs/2204.01697, 2022.
|
| 261 |
+
[66] Minghao Chen, Houwen Peng, Jianlong Fu, and Haibin Ling. Autoformer: Searching transformers for visual recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12270–12280, 2021.
|
| 262 |
+
[67] Qinqin Zhou, Kekai Sheng, Xiawu Zheng, Ke Li, Xing Sun, Yonghong Tian, Jie Chen, and Rongrong Ji. Training-free transformer architecture search. arXiv preprint arXiv:2203.12217, 2022.
|
| 263 |
+
[68] Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 22–31, 2021.
|
| 264 |
+
[69] Kun Yuan, Shaopeng Guo, Ziwei Liu, Aojun Zhou, Fengwei Yu, and Wei Wu. Incorporating convolution designs into visual transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 579–588, 2021.
|
| 265 |
+
[70] Asher Trockman and J Zico Kolter. Patches are all you need? arXiv preprint arXiv:2201.09792, 2022.
|
| 266 |
+
[71] Tien-Ju Yang, Andrew Howard, Bo Chen, Xiao Zhang, Alec Go, Mark Sandler, Vivienne Sze, and Hartwig Adam. Netadapt: Platform-aware neural network adaptation for mobile applications. In Proceedings of the European Conference on Computer Vision (ECCV), pages 285–300, 2018.
|
| 267 |
+
[72] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018.
|
| 268 |
+
[73] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
|
| 269 |
+
[74] Ross Wightman. Pytorch image models. https://github.com/rwightman/ pytorch-image-models, 2019.
|
| 270 |
+
[75] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 271 |
+
[76] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
|
| 272 |
+
[77] Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollár. Designing network design spaces. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10428–10436, 2020.
|
| 273 |
+
[78] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961–2969, 2017.
|
| 274 |
+
[79] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014.
|
| 275 |
+
[80] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017.
|
| 276 |
+
[81] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. International Journal of Computer Vision, 127(3):302–321, 2019.
|
| 277 |
+
|
| 278 |
+
# Checklist
|
| 279 |
+
|
| 280 |
+
1. For all authors...
|
| 281 |
+
|
| 282 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 283 |
+
(b) Did you describe the limitations of your work? [Yes]
|
| 284 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes]
|
| 285 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 286 |
+
|
| 287 |
+
2. If you are including theoretical results...
|
| 288 |
+
|
| 289 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 290 |
+
|
| 291 |
+
3. If you ran experiments...
|
| 292 |
+
|
| 293 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]
|
| 294 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 295 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
|
| 296 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]
|
| 297 |
+
|
| 298 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 299 |
+
|
| 300 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 301 |
+
(b) Did you mention the license of the assets? [Yes]
|
| 302 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 303 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 304 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 305 |
+
|
| 306 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 307 |
+
|
| 308 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 309 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 310 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/dev/NXHXoYMLIG/NXHXoYMLIG_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TQ75Md-FqQp/TQ75Md-FqQp.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TQ75Md-FqQp/TQ75Md-FqQp_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TQ75Md-FqQp/TQ75Md-FqQp_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/TQ75Md-FqQp/TQ75Md-FqQp_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z.md
ADDED
|
@@ -0,0 +1,443 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SYMBOLIC PHYSICS LEARNER: DISCOVERING GOVERNING EQUATIONS VIA MONTE CARLO TREE SEARCH
|
| 2 |
+
|
| 3 |
+
Fangzheng $\mathbf { S u n ^ { 1 } }$ , Yang $\mathbf { L i u ^ { 2 } }$ , Jian-Xun Wang3, Hao Sun4,∗
|
| 4 |
+
|
| 5 |
+
1Northeastern University, Boston, MA, USA; 2University of Chinese Academy of Sciences, Beijing, China; 3University of Notre Dame, Notre Dame, IN, USA; 4Renmin University of China, Beijing, China. Emails: sun.fa@northeastern.edu; liuyang22@ucas.ac.cn; jwang33@nd.edu; haosun@ruc.edu.cn
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Nonlinear dynamics is ubiquitous in nature and commonly seen in various science and engineering disciplines. Distilling analytical expressions that govern nonlinear dynamics from limited data remains vital but challenging. To tackle this fundamental issue, we propose a novel Symbolic Physics Learner (SPL) machine to discover the mathematical structure of nonlinear dynamics. The key concept is to interpret mathematical operations and system state variables by computational rules and symbols, establish symbolic reasoning of mathematical formulas via expression trees, and employ a Monte Carlo tree search (MCTS) agent to explore optimal expression trees based on measurement data. The MCTS agent obtains an optimistic selection policy through the traversal of expression trees, featuring the one that maps to the arithmetic expression of underlying physics. Salient features of the proposed framework include search flexibility and enforcement of parsimony for discovered equations. The efficacy and superiority of the SPL machine are demonstrated by numerical examples, compared with state-of-the-art baselines.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
We usually learn the behavior of a nonlinear dynamical system through its nonlinear governing differential equations. These equations can be formulated as $\dot { \mathbf { y } } ( t ) = d \mathbf { y } / d t = \mathcal { F } ( \mathbf { y } ( t ) )$ , where $\mathbf { y } ( t ) ~ = ~ \{ y _ { 1 } ( \hat { t } ) , y _ { 2 } ( t ) , . . . , y _ { n } ( t ) \} ^ { \hat { } } \in ~ \mathbb { R } ^ { 1 \times n _ { s } }$ denotes the system state at time $t$ , $\mathcal F ( \cdot )$ a nonlinear function set defining the state motions and $n _ { s }$ the system dimension. The explicit form of $\mathcal F ( \cdot )$ for some nonlinear dynamics remains underexplored. For example, in a mounted double pendulum system, the mathematical description of the underlying physics might be unclear due to unknown viscous and frictional damping forms. These uncertainties yield critical demands for the discovery of nonlinear dynamics given observational data. Nevertheless, distilling the analytical form of governing equations from limited noisy data, commonly seen in practice, is an intractable challenge.
|
| 14 |
+
|
| 15 |
+
Ever since the early work on the data-driven discovery of nonlinear dynamics (Džeroski & Todorovski, 1993; Dzeroski & Todorovski, 1995), many scientists have stepped into this field of study. During the recent decade, the escalating advances in machine learning, data science, and computing power have enabled several milestone efforts of unearthing the governing equations for nonlinear dynamical systems. Notably, a breakthrough model named SINDy (Sparse Identification of Nonlinear Dynamics) (Brunton et al., 2016) has shed light on tackling this achallenge. SINDy was invented to determine the sparse solution among a pre-defined basis function library recursively through a sequential threshold ridge regression (STRidge) algorithm. SINDy quickly became one of the state-of-art methods and kindled significant enthusiasm in this field of study (Rudy et al., 2017; Long et al., 2018; Champion et al., 2019; Chen et al., 2021; Sun et al., 2021; Rao et al., 2022). However, the success of this sparsity-promoting approach relies on a properly defined candidate function library that requires good prior knowledge of the system. It is also restricted by the fact that a linear combination of candidate functions might be insufficient to recover complicated mathematical expressions. Moreover, when the library size is massive, it empirically fails to hold the sparsity constraint.
|
| 16 |
+
|
| 17 |
+
At the same time, attempts have been made to tackle the nonlinear dynamics discovery problems by introducing neural networks with activation functions replaced by commonly seen mathematical operators (Martius & Lampert, 2017; Sahoo et al., 2018; Kim et al., 2019; Long et al., 2019). The intricate formulas are obtained via symbolic expansion of the well-trained network. This interpretation of physical laws results in larger candidate pools compared with the library-based representation of physics employed by SINDy. Nevertheless, since the sparsity of discovered expressions is primarily achieved by empirical pruning of the network weights, this framework exhibits sensitivity to userdefined thresholds and may fall short to produce parsimonious equations for noisy and scarce data.
|
| 18 |
+
|
| 19 |
+
Alternatively, another inspiring work (Bongard & Lipson, 2007; Schmidt & Lipson, 2009) reenvisioned the data-driven nonlinear dynamics discovery tasks by casting them into symbolic regression problems which have been profoundly resolved by the genetic programming (GP) approach (Koza & Koza, 1992; Billard & Diday, 2003). Under this framework, a symbolic regressor is established to identify the governing equations that best describe the underlying physics through free combination of mathematical operators and symbols, leading to great flexibility in model selection. One essential weakness of this early methodology is that, driven exclusively by the goal of empirically seeking the best-fitting expression (e.g. minimizing the mean-square error) in a genetic expansion process, the GP-based model usually over-fits the target system with numerous false-positive terms under data noise, even sometimes at a subtle level, causing huge instability and uncertainty. However, this ingenious idea has inspired a series of subsequent endeavors (Cornforth & Lipson, 2012; Gaucel et al., 2014; Ly & Lipson, 2012; Quade et al., 2016; Vaddireddy et al., 2020). In a more recent work, Deep Symbolic Regression (DSR) (Petersen et al., 2021; Mundhenk et al., 2021), a reinforcement learning-based model was established and generally outperformed the GP based models including the commercial Eureqa software (Langdon & Gustafson, 2010). Additionally, the AI-Feynman methods (Udrescu & Tegmark, 2020; Udrescu et al., 2020; Udrescu & Tegmark, 2021) ameliorated symbolic regression for distilling physics laws from data by combining neural network fitting with a suite of physics-inspired techniques. This approach is also highlighted by a recursive decomposition of a complicated mathematical expression into different parts on a tree-based graph, which disentangles the original problem and speeds up the discovery. It outperformed Eureqa in the uncovering Feynman physics equations (Feynman et al., 1965). However, this approach is built upon ad-hoc steps and, to some extent, lacks flexible automation in equation discovery.
|
| 20 |
+
|
| 21 |
+
The popularity of adopting the tree-based symbolic reasoning of mathematical formulas (Lample & Charton, 2019) has been rising recently to discover unknown mathematical expressions with a reinforcement learning agent (Kubalík et al., 2019; Petersen et al., 2021; Mundhenk et al., 2021). However, some former work attempting to apply the Monte Carlo tree search (MCTS) algorithm as an alternative to GP for symbolic regression (Cazenave, 2013; White et al., 2015; Islam et al., 2018; Lu et al., 2021) failed to leverage the full flexibility of this algorithm, resulting in the similar shortage that GP-based symbolic regressors possess as discussed earlier. Despite these outcomes, we are conscious of the strengths of the MCTS algorithm in equation discovery: it enables the flexible representation of search space with customized computational grammars to guide the search tree expansion. A sound mathematical underpinning for the trade-off between exploration and exploitation is remarkably advantageous as well. These features make it possible to inform the MCTS agent by our prior physics knowledge in nonlinear dynamics discovery rather than randomly searching in large spaces.
|
| 22 |
+
|
| 23 |
+
Contribution. We propose a promising model named Symbolic Physics Learner (SPL) machine, empowered by MCTS, for discovery of nonlinear dynamics. This architecture relies on a grammar composed of (i) computational rules and symbols to guide the search tree spanning and (ii) a composite objective rewarding function to simultaneously evaluate the generated equations with observational data and enforce the sparsity of the expression. Moreover, we design multiple adjustments to the conventional MCTS by: (1) replacing the expected reward in UCT score with maximum reward to better fit the equation discovery objective, (2) employing an adaptive scaling in policy evaluation which would eliminate the uncertainty of the reward value range owing to the unknown error of the system state derivatives, and (3) transplanting modules with high returns to the subsequent search as a single leaf node. With these adjustments, the SPL machine is capable of efficiently uncovering the best path to formulate the complex governing equations of the target dynamical system.
|
| 24 |
+
|
| 25 |
+
# 2 BACKGROUND
|
| 26 |
+
|
| 27 |
+
In this section, we expand and explain the background concepts brought up in the introduction to the SPL architecture, including the expression tree (parse tree) and the MCTS algorithm.
|
| 28 |
+
|
| 29 |
+
Expression tree. Any mathematical expression can be represented by a combinatorial set of symbols and mathematical operations, and further expressed by a parse tree structure (Hopcroft et al., 2006; Kusner et al., 2017) empowered by a context-free grammar (CFG). A CFG is a formal grammar characterized by a tuple comprised of 4 elements, namely, $\mathcal { G } = ( V , \Sigma , R , S )$ , where $V$ denotes a finite set of non-terminal nodes, $\Sigma$ a finite set of terminal nodes, $R$ a finite set of production rules, each interpreted as a mapping from a single non-terminal symbol in $V$ to one or multiple terminal/non-terminal node(s) in $( V \cup \Sigma ) ^ { * }$ where $^ *$ represents the Kleene star operation, and $S$ a single non-terminal node standing for a start symbol. In our work, equations are symbolized into parse trees: we define the start node as equation symbol $f$ , terminal symbols (leaf nodes) corresponding to the independent variables formulating the equation (e.g, $x , y )$ , and a placeholder symbol $C$ for identifiable constant coefficients that stick to specific production rules. The non-terminal nodes between root and leaf nodes are represented by some symbols distinct from the start and terminal nodes (i.e., $M _ { ☉ }$ ). The production rules denote the commonly seen mathematical operators: unary rules (one non-terminal node mapping to one node) for operators like $\cos ( \cdot ) , \exp ( \cdot ) , \bar { \log ( | \cdot | ) }$ , and binary rules (one non-terminal node mapping to two nodes) for operators such $\mathrm { ~ \imath s ~ } + , - , \times , \dot { \mathrm { ~ \cdot ~ } }$ . A parse tree is then generated via a pre-order traversal of production rules rooted at $f$ and terminates when all leaf nodes are entirely filled with terminal symbols. Each mathematical expression can be represented by such a traversal set of production rules.
|
| 30 |
+
|
| 31 |
+
Monte Carlo tree search. Monte Carlo tree search (MCTS) (Coulom, 2006) is an algorithm for searching optimal decisions in large combinatorial spaces represented by search trees. This technique complies with the best-first search principle based on the evaluations of stochastic simulations. It has already been widely employed in and proved the spectacular success by various gaming artificial intelligence systems, including the famous AlphaGo and AlphaZero (Silver et al., 2017) for computer Go game. A basic MCTS algorithm is composed of an iterative process with four steps:
|
| 32 |
+
|
| 33 |
+
1. Selection. The MCTS agent, starting from the root node, moves through the visited nodes of the search tree and selects the next node according to a given selection policy until it reaches an expandable node or a leaf node.
|
| 34 |
+
2. Expansion. At an expandable node, the MCTS agent expands the search tree by selecting one of its unvisited children.
|
| 35 |
+
3. Simulation. After expansion, if the current node is non-terminal, the agent performs one or multiple independent simulations starting from the current node until reaching the terminal state. In this process, actions are randomly selected.
|
| 36 |
+
4. Backpropagation. Statistics of nodes along the path from the current node to the root are updated with respect to search results (scores evaluated from the terminate states reached).
|
| 37 |
+
|
| 38 |
+
To maintain a proper balance between the less-tested paths and the best policy identified so far, the MCTS agent sticks to a trade-off between exploration and exploitation by taking action that maximizes the Upper Confidence Bounds applied for Trees (UCT), formulated as (Kocsis & Szepesvári, 2006):
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
U C T ( s , a ) = Q ( s , a ) + c \sqrt { \ln [ N ( s ) ] / N ( s , a ) }
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
where $Q ( s , a )$ is the average result/reward of playing action $a$ in state $s$ in the simulations performed in the history, encouraging the exploitation of current best child node; $N ( s )$ is number of times state $s$ visited, $N ( s , a )$ the number of times action $a$ has been selected at state $s$ , and $\sqrt { \ln [ N ( s ) ] / N ( s , a ) }$ consequently encourages exploration of less-visited child nodes. Constant $c$ controls the balance between exploration and exploitation, empirically defined upon the specific problem. Theoretical analysis of UCT-based MCTS (e.g., convergence, guarantees) is referred to Shah et al. (2019).
|
| 45 |
+
|
| 46 |
+
# 3 METHODS
|
| 47 |
+
|
| 48 |
+
Existing studies show that the MCTS agent continuously gains knowledge of specified tasks via the expansion of the search tree and, based on the backpropagation of evaluation results (i.e., rewards and number of visits), render a proper selection policy on visited states to guide the upcoming searching (Silver et al., 2017). In the proposed SPL machine, such a process is integrated with the symbolic reasoning of mathematical expressions to reproduce and evaluate valid mathematical expressions of the physical laws in nonlinear dynamics step-by-step, and then obtain a favorable selection policy pointing to the best solution. This algorithm is depicted in Figure 1 with an illustrative example and its overall training scheme is shown in Algorithm 1. Discussion of the hyperparameter setting for this algorithm is given in Appendix Section A.
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 1: Schematic architecture of the SPL machine for nonlinear dynamics discovery. The graph explains the 4 MCTS phases of one learning episode with an illustrative example.
|
| 52 |
+
|
| 53 |
+
Rewarding. To evaluate the mathematical expression $\tilde { f }$ projected from a parse tree, we define a numerical reward $r \in \mathcal { R } \subset \mathbb { R }$ based on this expression and input data ${ \mathcal { D } } = \{ { \bf Y } ; \dot { Y } _ { i } \}$ , serving as the search result of the current expansion or simulation. It is formulated as
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
r = \frac { \eta ^ { n } } { 1 + \sqrt { \frac { 1 } { N } \left. \dot { Y } _ { i } - \tilde { f } ( \mathbf { Y } ) \right. _ { 2 } ^ { 2 } } }
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
where $\mathbf { Y } = \{ \mathbf { y } _ { 1 } , \mathbf { y } _ { 2 } , . . . , \mathbf { y } _ { m } \} \in \mathbb { R } ^ { m \times N }$ is the $m$ dimensional state variables of a dynamical system, $\dot { Y } _ { i } \in \mathbb { R } ^ { 1 \times N }$ the numerically estimated state derivative for ith dimension, and $N$ the number of measurement data points. $\eta$ denotes a discount factor, assigned slightly smaller than 1; $n$ is empirically defined as the total number of production rules in the parse tree. This numerator arrangement is designated to penalize non-parsimonious solutions. This rewarding formulation outputs a reasonable assessment to the distilled equations and encourages parsimonious solution by discounting the reward of a non-parsimonious one. The rooted mean square error (RMSE) in denominator evaluates the goodness-of-fit of the discovered equation w.r.t. the measurement data.
|
| 60 |
+
|
| 61 |
+
Training scheme. A grammar $\mathcal { G } = ( V , \Sigma , R , S )$ is defined with appropriate nodes and production rules to cover all possible forms of equations. To keep track of non-terminal nodes of the parsing tree, we apply a last-in-first-out (LIFO) strategy and denote the non-terminal node placed last on the stack $N T$ as the current node. We define the action space $A = R$ and the state space $s$ as all possible traversals of complete/incomplete parse trees (i.e., production rules selected) in ordered sequences. At the current state $s _ { t } = [ a _ { 1 } , a _ { 2 } , . . . a _ { t } ]$ where $t \in \mathbb N$ is the discrete traversal step-index of the upcoming production rule, the MCTS agent masks out the invalid production rules for current non-terminal node and on that basis selects a valid rule as action $a _ { t + 1 }$ (i.e, the left-hand side of a valid production rule is the current non-terminal symbol). Consequently, the parse tree gains a new terminal/non-terminal branch in accordance with $a _ { t + 1 }$ , meanwhile the agent finds itself in a new state $s _ { t + 1 } = [ a _ { 1 } , a _ { 2 } , . . . a _ { t } , a _ { t + 1 } ]$ . The agent subsequently pops off the current non-terminal symbol from $N T$ and pushes the non-terminal nodes, if there are any, on the right-hand side of the selected rule onto the stack. Once the agent attains an unvisited node, a certain amount of simulations are performed, where the agent starts to randomly select the next node until the parse tree is completed.
|
| 62 |
+
|
| 63 |
+
1 Input: Grammar $G = ( V , \Sigma , R , S )$ , measurement data ${ \mathcal { D } } = \{ \mathbf { Y } ; { \dot { Y } } _ { i } \}$ ;
|
| 64 |
+
2 Parameters: discount/regularization factor $\eta$ , exploration rate $c$ , $t _ { m a x }$ ; # $\eta$ controls equation parsimony;
|
| 65 |
+
3 Output: Optimal governing equation $\tilde { f } ^ { \star }$ ;
|
| 66 |
+
4 for each episode do
|
| 67 |
+
5 Selection: Initialize $s _ { 0 } = \emptyset , t = 0 , N T = [ S ]$ ;
|
| 68 |
+
6 while $s _ { t }$ expandable and $t < t _ { m a x }$ do
|
| 69 |
+
7 Choose $a _ { t + 1 } = \arg \operatorname* { m a x } _ { \mathcal { A } } U C T ( s _ { t } , a )$ ;
|
| 70 |
+
8 Take action $a _ { t + 1 }$ , observe $s ^ { \prime } , N T$ ;
|
| 71 |
+
9 $s _ { t + 1 } \gets s ^ { \prime }$ note as visited, $t \gets t + 1$ ;
|
| 72 |
+
10 end
|
| 73 |
+
11 Expansion: Randomly take an unvisited path with action $a$ , observe $s ^ { \prime } , N T$ ;
|
| 74 |
+
12 $s _ { t + 1 } \gets s ^ { \prime }$ note as visited, $t \gets t + 1$ ;
|
| 75 |
+
13 if $N T = \emptyset$ then
|
| 76 |
+
14 Project $\tilde { f }$ , Backpropagate $r _ { t + 1 }$ and visited count and finish the episode;
|
| 77 |
+
15 end
|
| 78 |
+
16 Simulation: Fix the starting point $s _ { t } , N T$ ;
|
| 79 |
+
17 for each simulation do
|
| 80 |
+
18 while $s _ { t }$ non-terminal and $t < t _ { m a x }$ do
|
| 81 |
+
19 Randomly take an action $a$ , observe $s ^ { \prime } , N T$ ;
|
| 82 |
+
20 $s _ { t + 1 } \gets s ^ { \prime } , t \gets t + 1$ ;
|
| 83 |
+
21 end
|
| 84 |
+
22 if $N T = \emptyset$ then
|
| 85 |
+
23 Project $\tilde { f }$ and calculate $r _ { t + 1 }$ ;
|
| 86 |
+
24 end
|
| 87 |
+
25 end
|
| 88 |
+
26 Backpropagate simulation results;
|
| 89 |
+
27 end
|
| 90 |
+
|
| 91 |
+
The reward is calculated or the maximal size is exceeded, resulting in a zero reward. The best result from the attempts counts as the reward of the current simulation phase and backpropagates from the current unvisited node all the way to the root node.
|
| 92 |
+
|
| 93 |
+
Greedy search. Different from the MCTS-based gaming AIs where the agents are inclined to pick the action with a high expected reward (average returns), the SPL machine seeks the unique optimal solution. In the proposed training framework, we apply a greedy search heuristic to encourage the agent to explore the branch which yields the best solution in the past: $Q ( s , a )$ is defined as the maximum reward of the state-action pair, and its value is backpropagated from the highest reward in the simulations upon the selection of the pair. Meanwhile, to overcome the local minima problems due to this greedy approach in policy search, we enforce a certain level of randomness by empirically adopting the $\epsilon$ -greedy algorithm, a commonly seen approach in reinforcement learning models.
|
| 94 |
+
|
| 95 |
+
Adaptive-scaled rewarding. Owing to the unknown level of error from the numerically estimated state derivatives, the range of the RMSE in the SPL reward function is unpredictable. This uncertainty affects the scale of rewarding values thus the balance between exploration and exploitation is presented in Eq. (1). Besides adding “1” to the denominator of Eq. (2) to avoid dramatically large numerical rewards, we also apply an adaptive scale of the reward, given by
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
Q ( s , a ) = { \frac { r ^ { * } ( s , a ) } { \operatorname* { m a x } _ { s ^ { \prime } \in S , a ^ { \prime } \in A } Q ( s ^ { \prime } , a ^ { \prime } ) } }
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $r ^ { * }$ denotes the maximum reward of the state-action pair. It is scaled by the current maximum reward among all states $s$ and actions $\mathcal { A }$ to reach an equilibrium that the $Q$ -values are stretched to the scale $[ 0 , 1 ]$ at any time. This self-adaptive fashion yields a well-scaled calculation of UCT under different value ranges of rewards throughout the training.
|
| 102 |
+
|
| 103 |
+
Module transplantation. A function can be decomposed into smaller modules where each is simpler than the original one (Udrescu et al., 2020). This modularity feature, as shown in Figure 2, helps us develop a divide-and-conquer heuristic for distilling some complicated functions: after every certain amount of MCTS iterations, the discovered parse trees with high rewards are picked out and thereupon
|
| 104 |
+
|
| 105 |
+
reckoned as individual production rules and appended to the set of production rules $R$ ; accordingly, these trees are “transplanted” to the future ones as their modules (i.e, the leaves). To avoid early overfitting problem, we incrementally enlarge the sizes of such modules from a baseline length
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 2: A module transplantation process: A complete parse serves as a single production rule and is appended to the grammar pool.
|
| 109 |
+
|
| 110 |
+
to the maximum allowed size of the parse tree throughout the iterations. The augmentation part of $R$ is refreshed whenever new production rules are created, keeping only the ones engendering high rewards. This approach accelerates the policy search by capturing and locking some modules that likely contribute to, or appear as part of the optimal solution, especially in the cases of the mathematical expression containing “deep” operations (e.g., high-order polynomials) whose structures are difficult for the MCTS agent to repeatedly obtain during the selection and expansion.
|
| 111 |
+
|
| 112 |
+
# 4 SYMBOLIC REGRESSION: FINDING MATHEMATICAL FORMULAS
|
| 113 |
+
|
| 114 |
+
# 4.1 DATA NOISE & SCARCITY
|
| 115 |
+
|
| 116 |
+
Data scarcity and noise are commonly seen in measurement data and become one of the bottleneck issues for discovering the governing equations of nonlinear dynamics. Tackling the challenges in high-level data scarcity and noise situations is traditionally regarded as an essential robustness indicator for a nonlinear dynamics discovery model. To this end, we present an examination of the proposed SPL machine by an equation discovery task in the presence of multiple levels of data noise and
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 3: The effect of data noise/scarcity on recovery rate. The heatmaps demonstrate the recovery rate of GP and the SPL machine under different data conditions, summarized over 100 independent trials.
|
| 120 |
+
|
| 121 |
+
volume, comparing with a GP-based symbolic regressor (implemented with gplearn python package)1. The target equation is $f ( x ) = 0 . 3 x ^ { 3 } + 0 . 5 x ^ { 2 } + 2 x$ , and the independent variable $X$ is uniformly sampled in the given range $[ - 1 0 , 1 0 ]$ . Gaussian white noise is added to the dependent variable $Y$ with the noise level defined as the root-mean-square ratio between the noise and the exact values. For discovery, the two models are fed with equivalent search space: $\{ + , - , \times , \div , c o s t , x \}$ as candidate mathematical operations and symbols. The hyperparameters of the SPL machine are set as $\eta = 0 . 9 9$ , $t _ { m a x } = 5 0$ , and 10,000 episodes of training is regarded as one trail. For the GP-based symbolic regressor, the population of programs is set as 2,000, the number of generations as 20. The range of constant coefficient values is $[ - 1 0 , 1 0 ]$ . For 16 different data noise and scarcity levels, each model was performed 100 independent trails. The recovery rates are displayed as a $4 \times 4$ mesh grid w.r.t. different noise/scarcity levels in Figure 3. It is observed that the SPL machine outperforms the GP-based symbolic regressor in all the cases. A T-test also proves that the recovery rate of the SPL machine is significantly higher than that of GP (e.g., $p$ -value $= 1 . 0 6 \times 1 0 ^ { - 7 }$ ).
|
| 122 |
+
|
| 123 |
+
# 4.2 NGUYEN’S SYMBOLIC REGRESSION BENCHMARK
|
| 124 |
+
|
| 125 |
+
Nguyen’s symbolic regression benchmark task (Uy et al., 2011) is widely used to test the model’s robustness in symbolic regression problems. Given a set of allowed operators, a target equation, and data generated by the specified equation (see Table 1 for example), the tested model is supposed to distill the mathematical expression that is identical to the target equation, or equivalent to it (e.g., Nguyen-7 equation can be recovered as $\log ( x ^ { 3 } + x ^ { 2 } + x + 1 )$ , Nguyen-10 equation can be recovered as $\sin ( x + y )$ , and Nguyen-11 equation can be recovered as $\exp ( y \log ( x ) ) )$ . Some variants of Nguyen’s benchmark equations are also considered in this experiment. Their discoveries require numerical estimation of the constant coefficient values. Each equation generates two datasets: one for training and another for testing. The discovered equation that perfectly fits the testing data is regarded as a successful discovery (i.e., the discovered equation should be identical or equivalent to the target one). The recovery rate is calculated based on 100 independent tests for each task. In these benchmark tasks, three algorithms are tested: GP-based symbolic regressor, the neural-guided GP (NGGP) (Mundhenk et al., 2021), and the SPL machine. Note that NGGP is an improved approach over DSR (Petersen et al., 2021). They are given the same set of candidate operations: √ $\{ + , - , \times , \div , \exp ( \cdot ) , \cos ( \cdot ) , \sin ( \cdot ) \}$ for all benchmarks and $\{ { \sqrt { \cdot } } , \ln ( \cdot ) \}$ are added to the 7, 8, 11 benchmarks. The hyperparameters of the GP-based symbolic regressor are the same as those mentioned in Section 4.1; configurations of the NGGP models are obtained from its source code2; detailed setting of the benchmark tasks and the SPL model is described in Appendix Section B. The success rates are shown in Table 1. It is observed that the SPL machine and the NGGP model both produce reliable results in Nguyen’s benchmark problems and the SPL machine slightly outperforms NGGP. This experiment betokens the capacity of the SPL machine in discovery of equations with divergent forms.
|
| 126 |
+
|
| 127 |
+
Table 1: Recovery rate of three algorithms in Nguyen’s benchmark symbolic regression problems. The SPL machine outperforms the other two models in average recovery rate.
|
| 128 |
+
|
| 129 |
+
<table><tr><td>Benchmark</td><td>Expression</td><td>SPL</td><td>NGGP</td><td>GP</td></tr><tr><td>Nguyen-1</td><td>x²+x²+x</td><td>100%</td><td>100%</td><td>99%</td></tr><tr><td>Nguyen-2</td><td>x²+x²+x²+x</td><td>100%</td><td>100%</td><td>90%</td></tr><tr><td>Nguyen-3</td><td>+x4+x²+x²+x 25</td><td>100%</td><td>100%</td><td>34%</td></tr><tr><td>Nguyen-4</td><td>x+x+x4+x²+x²+x</td><td>99%</td><td>100%</td><td>54%</td></tr><tr><td>Nguyen-5</td><td>sin(x²) cos(𝑥) -1</td><td>95%</td><td>80%</td><td>12%</td></tr><tr><td>Nguyen-6</td><td>sin(x²)+sin(x+x²)</td><td>100%</td><td>100%</td><td>11%</td></tr><tr><td>Nguyen-7</td><td>ln(𝑥 +1) + ln(x²+ 1)</td><td>100%</td><td>100%</td><td>17%</td></tr><tr><td>Nguyen-8</td><td>√x</td><td>100%</td><td>100%</td><td>100%</td></tr><tr><td>Nguyen-9</td><td>sin(x) + sin(y²)</td><td>100%</td><td>100%</td><td>76%</td></tr><tr><td>Nguyen-10</td><td>2 sin(x) cos(y)</td><td>100%</td><td>100%</td><td>86%</td></tr><tr><td>Nguyen-11</td><td>xy</td><td>100%</td><td>100%</td><td>13%</td></tr><tr><td>Nguyen-12</td><td>x4-x²+¹y²-y</td><td>28%</td><td>4%</td><td>0%</td></tr><tr><td>Nguyen-1c</td><td>3.39x +2.12x² +1.78x</td><td>100%</td><td>100%</td><td>0%</td></tr><tr><td>Nguyen-2c</td><td>0.48x4 +3.39x+2.12x² +1.78x</td><td>94%</td><td>100%</td><td>0%</td></tr><tr><td>Nguyen-5c</td><td>sin(x²) cos(x) -0.75</td><td>95%</td><td>98%</td><td>1%</td></tr><tr><td>Nguyen-8c</td><td>√1.23x</td><td>100%</td><td>100%</td><td>56%</td></tr><tr><td>Nguyen-9c</td><td>sin(1.5x) + sin(0.5y²)</td><td>96%</td><td>90%</td><td>0%</td></tr><tr><td>Average</td><td></td><td>94.5%</td><td>92.4%</td><td>38.2%</td></tr></table>
|
| 130 |
+
|
| 131 |
+
Ablation Study: We consider four ablation studies by removing: (a) the adaptive scaling in reward calculation, (b) the discount factor $\eta ^ { n }$ that drives equation parsimony in Eq. (2), (c) module transplantation in tree generation, and (d) all of the above. The four models were tested on the first 12 Nguyen equations (see Appendix Section C). Results show the average recovery rates for these models are all smaller than that produced by SPL (see Appendix Table C.1), where the module transplantation brings the largest effect. Hence, these modules are critical to guarantee the proposed model efficacy.
|
| 132 |
+
|
| 133 |
+
5 PHYSICAL LAW DISCOVERY: FREE FALLING BALLS WITH AIR RESISTANCE
|
| 134 |
+
|
| 135 |
+
It is well known that, in 1589–1592, Galileo dropped two objects of unequal mass from the Leaning Tower of Pisa and drew a conclusion that their velocities were not affected by the mass. This has been well recognized globally as the “textbook” physical law for the vertical motion of a free-falling object:
|
| 136 |
+
|
| 137 |
+
Table 2: Baseline models ( $\dot { c } _ { i }$ : unknown constants).
|
| 138 |
+
|
| 139 |
+
<table><tr><td>Physics Model</td><td>Derived model expression</td></tr><tr><td>Model-1</td><td>H(t)= co+cit + c2t²+c3t3</td></tr><tr><td>Model-2</td><td>H(t)= Co +Cit + C2eCt</td></tr><tr><td>Model-3</td><td>H(t)= co + c1 log(cosh(c2t))</td></tr></table>
|
| 140 |
+
|
| 141 |
+
the height of the object is formulated as $\begin{array} { r } { H ( t ) = h _ { 0 } + v _ { 0 } t - \frac { 1 } { 2 } g t ^ { 2 } } \end{array}$ , where $h _ { 0 }$ denotes initial height, $v _ { 0 }$ the initial velocity, and $g$ the gravitational acceleration. However, this ideal situation is rarely reached in our daily life because air resistance serves as a significant damping factor that prevents the above physical law from occurring in real-life cases.
|
| 142 |
+
|
| 143 |
+
Many efforts have been made to uncover the effect of the air resistance and derive mathematical models to describe the free-falling objects with air resistance (Clancy, 1975; Lindemuth, 1971; Greenwood et al., 1986). This section provides data-driven discovery of the physical laws of relationships between height and time in the cases of free-falling objects with air resistance based on multiple experimental ball-drop datasets (de Silva et al., 2020), which contain the records of 11 different types of balls dropped from a
|
| 144 |
+
|
| 145 |
+
Table 3: Mean square error (MSE) between ball motion prediction with the measurements in the test set. The SPL machine reaches the best prediction results in most (9 out of 11) cases.
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Type</td><td>SPL</td><td>Model-1</td><td>Model-2</td><td>Model-3</td></tr><tr><td>baseball</td><td>0.3</td><td>2.798</td><td>94.589</td><td>3.507</td></tr><tr><td>blue basketball</td><td>0.457</td><td>0.513</td><td>69.209</td><td>2.227</td></tr><tr><td>green basketball</td><td>0.088</td><td>0.1</td><td>85.435</td><td>1.604</td></tr><tr><td>volleyball</td><td>0.111</td><td>0.574</td><td>80.965</td><td>0.76</td></tr><tr><td>bowling ball</td><td>0.003</td><td>0.33</td><td>87.02</td><td>3.167</td></tr><tr><td>golf ball</td><td>0.009</td><td>0.214</td><td>86.093</td><td>1.684</td></tr><tr><td>tennis ball</td><td>0.091</td><td>0.246</td><td>72.278</td><td>0.161</td></tr><tr><td>whiffle ball 1</td><td>1.58</td><td>1.619</td><td>65.426</td><td>0.21</td></tr><tr><td>whiffle ball 2</td><td>0.099</td><td>0.628</td><td>58.533</td><td>0.966</td></tr><tr><td>yellow whiffle ball</td><td>0.428</td><td>17.341</td><td>44.984</td><td>2.57</td></tr><tr><td>orange whiffle ball</td><td>0.745</td><td>0.379</td><td>36.765</td><td>3.257</td></tr></table>
|
| 148 |
+
|
| 149 |
+
bridge (see Appendix Figure D.1). For discovery, each dataset is split into a training set (records from the first 2 seconds) and a testing set (records after 2 seconds). Three mathematically derived physics models are selected from the literature as baseline models3,4,5 for this experiment (see Table 2), and the unknown constant coefficient values are estimated by Powell’s conjugate direction method (Powell, 1964). Based on our prior knowledge of the physical law that may appear in this case, we use $\{ + , - , \times , \div , \exp ( \cdot ) , \cosh ( \cdot ) , \log ( \cdot ) \}$ as the candidate grammars for the SPL discovery, with terminal nodes $\{ t , c o n s t \}$ . The hyperparameters are set as $\eta = 0 . 9 9 9 9$ , $t _ { m a x } = 2 0$ , and one single discovery is built upon 6,000 episodes of training. The physical laws distilled by SPL from training data are applied to the test data and compared with the ground truth. Their prediction errors, in terms of MSE, are presented in Table 3 (the SPL-discovered equations are shown in Appendix Table D.1). The full results can be found in Appendix Section D. It can be concluded that the data-driven discovery of physical laws leads to a better approximation of the free-falling objects with air resistance.
|
| 150 |
+
|
| 151 |
+
# 6 CHAOTIC DYNAMICS DISCOVERY: THE LORENZ SYSTEM
|
| 152 |
+
|
| 153 |
+
The first nonlinear dynamics discovery example is a 3-dimensional Lorenz system (Lorenz, 1963) whose dynamical behavior $( x , y , z )$ is governed by $\dot { x } = \sigma ( y -$ $x ) , \dot { y } = x ( \rho - z ) - y , \dot { z } = x y - \beta z$ with parameters $\sigma = 1 0$ , $\beta = 8 / 3$ , and $\rho = 2 8$ . The Lorenz attractor has two lobes and the system, starting from anywhere, makes cycles around one lobe before switching to the other and iterates repeatedly, exhibiting strong chaos. The synthetic system states $( x , y , z )$ are generated by solving the nonlinear differential equations using the Matlab ode113 (Shampine, 1975; Shampine & Reichelt, 1997) function. $5 \%$ Gaussian white noise is added to the clean data to generate noisy measurement.
|
| 154 |
+
|
| 155 |
+
Table 4: Summary of the discovered governing equations for Lonrez system. Each cell concludes if target physics terms are distilled (if yes, number of false positive terms in uncovered expression).
|
| 156 |
+
|
| 157 |
+
<table><tr><td>Model</td><td>宝</td><td>y</td><td>之</td></tr><tr><td>Eureqa</td><td>Yes (1)</td><td>Yes (3)</td><td>Yes (1)</td></tr><tr><td>pySINDy</td><td>Yes (1)</td><td>No (N/A)</td><td>Yes (2)</td></tr><tr><td>NGGP</td><td>Yes (10)</td><td>Yes (8)</td><td>Yes (16)</td></tr><tr><td>SPL</td><td>Yes (0)</td><td>Yes (0)</td><td>Yes (0)</td></tr></table>
|
| 158 |
+
|
| 159 |
+
The derivatives of the system states $( \dot { x } , \dot { y } , \dot { z } )$ are unmeasured but estimated by central difference and smoothed by the Savitzky–Golay filter (Savitzky & Golay, 1964) in order to reduce the noise effect.
|
| 160 |
+
|
| 161 |
+
In this experiment, the proposed SPL machine is compared with three benchmark methods: Eureqa, pySINDy and NGGP. For Eureqa, NGGP, and the SPL machine, $\{ + , - , \times , \div \}$ are used as candidate operations; the upper bound of complexity is set to be 50; for pySINDy, the candidate function library includes all polynomial basis of $( x , y , z )$ from degree 1 to degree 4. Appendix Table E.1 presents the distilled governing equations by each approach and Table 4 summarizes these results: the SPL machine uncovers the explicit form of equations accurately in the context of active terms, whereas Eureqa, pySINDy and NGGP yield several false-positive terms in the governing equations. In particular, although Eureqa and NGGP are capable of uncovering the correct terms, their performance is very sensitive to the measurement noise as indicated by the redundant terms (despite with small coefficients) shown in Appendix Table E.1. Overall, the baseline methods fail to handle the large noise effect, essentially limiting their applicability in nonlinear dynamics discovery. It is evident that the SPL machine is capable of distilling the concise symbolic combination of operators and variables to correctly formulate parsimonious mathematical expressions that govern the Lorenz system, outperforming the baseline methods of Eureqa, pySINDy and NGGP.
|
| 162 |
+
|
| 163 |
+
# 7 EXPERIMENTAL DYNAMICS DISCOVERY: DOUBLE PENDULUM
|
| 164 |
+
|
| 165 |
+
This section shows SPL-based discovery of a chaotic double pendulum system with experimental data (Asseman et al., 2018) as shown in Appendix Figure E.3. The governing equations are given by:
|
| 166 |
+
|
| 167 |
+
$$
|
| 168 |
+
\begin{array} { r l } & { \dot { \omega } _ { 1 } = c _ { 1 } \dot { \omega } _ { 2 } \cos ( \Delta \theta ) + c _ { 2 } \omega _ { 2 } ^ { 2 } \sin ( \Delta \theta ) + c _ { 3 } \sin ( \theta _ { 1 } ) + \mathcal { R } _ { 1 } ( \theta _ { 1 } , \theta _ { 2 } , \dot { \theta } _ { 1 } , \dot { \theta } _ { 2 } ) , } \\ & { \dot { \omega } _ { 2 } = c _ { 1 } \dot { \omega } _ { 1 } \cos ( \Delta \theta ) + c _ { 2 } \omega _ { 1 } ^ { 2 } \sin ( \Delta \theta ) + c _ { 3 } \sin ( \theta _ { 2 } ) + \mathcal { R } _ { 2 } ( \theta _ { 1 } , \theta _ { 2 } , \dot { \theta } _ { 1 } , \dot { \theta } _ { 2 } ) } \end{array}
|
| 169 |
+
$$
|
| 170 |
+
|
| 171 |
+
where $\theta _ { 1 } , \theta _ { 2 }$ denote the angular displacements; $\omega _ { 1 } = \dot { \theta } _ { 1 }$ , $\omega _ { 2 } ~ = ~ { \dot { \theta } } _ { 2 }$ the velocities; $\dot { \omega } _ { 1 } , \dot { \omega } _ { 2 }$ the accelerations; $\mathcal { R } _ { 1 }$ and $\mathcal { R } _ { 2 }$ denote the unknown damping forces. Note that $\Delta \theta = \theta _ { 1 } - \theta _ { 2 }$ .
|
| 172 |
+
|
| 173 |
+
The data source contains multiple camera-sensed datasets. Here, 5,000 denoised random sub-samples from 5 datasets are used for training, 2,000 random sub-samples from another 2 datasets for validation, and 1 dataset for testing. The derivatives of the system states are numerically estimated by the same approach discussed in the Lorenz case. Some prior physics knowledge is employed to guide the discovery: (1) the terms $\dot { \omega } _ { 2 } \cos ( \Delta \theta )$ for $\dot { \omega } _ { 1 }$ and $\dot { \omega } _ { 1 } \cos ( \Delta \theta )$ for $\dot { \omega } _ { 2 }$ are assumed to be part of the governing equations based on the Lagrange derivation; (2) the angles $( \theta _ { 1 } , \theta _ { 2 } , \Delta \theta )$ are under the trigonometric functions $\cos ( \cdot )$ and $\sin ( \cdot )$ ; (3) directions of velocities/relative velocities may appear in damping. Production rules fulfilling the above prior knowledge are exhibited in Appendix Section E.2. The hyperparameters are set as $\eta = 1$ , $t _ { m a x } = 2 0$ , and 40,000 episodes of training are regarded as one trail. 5 independent trials are performed and the equations with the highest validation scores are selected as the final results. The uncovered equations are given as follows:
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
\dot { \omega } _ { 1 } = - 0 . 0 9 9 1 \dot { \omega } _ { 2 } \cos ( \Delta \theta ) - 0 . 1 0 3 \omega _ { 2 } ^ { 2 } \sin ( \Delta \theta ) - 6 9 . 2 7 4 \sin ( \theta _ { 1 } ) + 0 . 5 1 5 \cos ( \theta _ { 1 } ) ,
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
$$
|
| 180 |
+
\begin{array} { r } { \dot { \omega } _ { 2 } = - 1 . 3 6 8 \dot { \omega } _ { 1 } \cos ( \Delta \theta ) + 1 . 3 6 3 \omega _ { 1 } ^ { 2 } \sin ( \Delta \theta ) - 9 2 . 9 1 3 \sin ( \theta _ { 2 } ) + 0 . 0 3 2 \omega _ { 1 } , } \end{array}
|
| 181 |
+
$$
|
| 182 |
+
|
| 183 |
+
where the explicit expression of physics in an ideal double pendulum system, as displayed in Eq. (5), are successfully distilled and damping terms are estimated. This set of equation is validated through interpolation on the testing set and compared with the smoothed derivatives, as shown in Appendix Figure E.4. The solution appears felicitous as the governing equations of the testing responses.
|
| 184 |
+
|
| 185 |
+
# 8 CONCLUSION AND DISCUSSION
|
| 186 |
+
|
| 187 |
+
This paper introduces a Symbolic Physics Learner (SPL) machine to tackle the challenge of distilling the mathematical structure of equations for physical systems (e.g., nonlinear dynamics) with scarce/noisy data. This framework is built upon the expression tree interpretation of mathematical operations and variables and an MCTS agent that searches for the optimistic policy to reconstruct the target mathematical formula. With some remarkable adjustments to the MCTS algorithms, the SPL model straightforwardly accepts our prior or domain knowledge, or any sort of constraints of the tasks in the grammar design while leveraging great flexibility in expression formulation. The robustness of the proposed SPL machine for complex target expression discovery within a large search space is indicated in the Nguyen’s symbolic regression benchmark problems, where the SPL machine outperforms state-of-the-art symbolic regression methods. Moreover, encouraging results are obtained in the tasks of discovering physical laws and nonlinear dynamics, based on synthetic or experimental datasets. While the proposed SPL machine shows huge potential in both symbolic regression and physical law discovery tasks, there are still some imperfections that can be improved: (i) the computational cost is high for constant coefficient value estimation due to repeated calls for an optimization process, (ii) graph modularity is underexamined, and (iii) robustness against extreme data noise and scarcity is not optimal. These limitations are further explained in Appendix Section F.
|
| 188 |
+
|
| 189 |
+
# ACKNOWLEDGMENTS
|
| 190 |
+
|
| 191 |
+
The work is supported by the National Natural Science Foundation of China (No. 92270118) and the Beijing Outstanding Young Scientist Program (No. BJJWZYJH012019100020098).
|
| 192 |
+
|
| 193 |
+
# REFERENCES
|
| 194 |
+
|
| 195 |
+
Alexis Asseman, Tomasz Kornuta, and Ahmet Ozcan. Learning beyond simulated physics. In Modeling and Decision-making in the Spatiotemporal Domain Workshop–NIPS, 2018.
|
| 196 |
+
|
| 197 |
+
L Billard and E Diday. From the statistics of data to the statistics of knowledge: symbolic data analysis. Journal of the American Statistical Association, 98(462):470–487, 2003.
|
| 198 |
+
|
| 199 |
+
Josh Bongard and Hod Lipson. Automated reverse engineering of nonlinear dynamical systems. Proceedings of the National Academy of Sciences, 104(24):9943–9948, 2007.
|
| 200 |
+
|
| 201 |
+
Steven L Brunton, Joshua L Proctor, and J Nathan Kutz. Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proceedings of the national academy of sciences, 113(15):3932–3937, 2016.
|
| 202 |
+
|
| 203 |
+
Tristan Cazenave. Monte-carlo expression discovery. International Journal on Artificial Intelligence Tools, 22(01):1250035, 2013.
|
| 204 |
+
|
| 205 |
+
Kathleen Champion, Bethany Lusch, J Nathan Kutz, and Steven L Brunton. Data-driven discovery of coordinates and governing equations. Proceedings of the National Academy of Sciences, 116(45): 22445–22451, 2019.
|
| 206 |
+
|
| 207 |
+
Zhao Chen, Yang Liu, and Hao Sun. Physics-informed learning of governing equations from scarce data. Nature Communications, 12:6136, 2021.
|
| 208 |
+
|
| 209 |
+
Laurence Joseph Clancy. Aerodynamics. John Wiley & Sons, 1975.
|
| 210 |
+
|
| 211 |
+
Theodore Cornforth and Hod Lipson. Symbolic regression of multiple-time-scale dynamical systems. In Proceedings of the 14th annual conference on Genetic and evolutionary computation, pp. 735–742, 2012.
|
| 212 |
+
|
| 213 |
+
Rémi Coulom. Efficient selectivity and backup operators in monte-carlo tree search. In International conference on computers and games, pp. 72–83. Springer, 2006.
|
| 214 |
+
|
| 215 |
+
Brian M de Silva, David M Higdon, Steven L Brunton, and J Nathan Kutz. Discovery of physics from data: universal laws and discrepancies. Frontiers in artificial intelligence, 3:25, 2020.
|
| 216 |
+
|
| 217 |
+
Saso Dzeroski and Ljupco Todorovski. Discovering dynamics: from inductive logic programming to machine discovery. Journal of Intelligent Information Systems, 4(1):89–108, 1995.
|
| 218 |
+
|
| 219 |
+
Sašo Džeroski and Ljupéo Todorovski. Discovering dynamics. In Proc. tenth international conference on machine learning, pp. 97–103, 1993.
|
| 220 |
+
|
| 221 |
+
Richard P Feynman, Robert B Leighton, and Matthew Sands. The feynman lectures on physics; vol. i. American Journal of Physics, 33(9):750–752, 1965.
|
| 222 |
+
|
| 223 |
+
Sébastien Gaucel, Maarten Keijzer, Evelyne Lutton, and Alberto Tonda. Learning dynamical systems using standard symbolic regression. In European Conference on Genetic Programming, pp. 25–36. Springer, 2014.
|
| 224 |
+
|
| 225 |
+
Margaret Stautberg Greenwood, Charles Hanna, and Rev John W Milton. Air resistance acting on a sphere: Numerical analysis, strobe photographs, and videotapes. The Physics Teacher, 24(3): 153–159, 1986.
|
| 226 |
+
|
| 227 |
+
John E Hopcroft, Rajeev Motwani, and Jeffrey D Ullman. Automata theory, languages, and computation. International Edition, 24(2), 2006.
|
| 228 |
+
|
| 229 |
+
Mohiul Islam, Nawwaf N Kharma, and Peter Grogono. Expansion: A novel mutation operator for genetic programming. In IJCCI, pp. 55–66, 2018.
|
| 230 |
+
|
| 231 |
+
Samuel Kim, Peter Lu, Srijon Mukherjee, Michael Gilbert, Li Jing, Vladimir Ceperic, and Marin Soljacic. Integration of neural network-based symbolic regression in deep learning for scientific discovery. arXiv preprint arXiv:1912.04825, 2019.
|
| 232 |
+
|
| 233 |
+
Levente Kocsis and Csaba Szepesvári. Bandit based monte-carlo planning. In European conference on machine learning, pp. 282–293. Springer, 2006.
|
| 234 |
+
|
| 235 |
+
John R Koza and John R Koza. Genetic programming: on the programming of computers by means of natural selection, volume 1. MIT press, 1992.
|
| 236 |
+
|
| 237 |
+
Jiˇrí Kubalík, Jan Žegklitz, Erik Derner, and Robert Babuška. Symbolic regression methods for reinforcement learning. arXiv preprint arXiv:1903.09688, 2019.
|
| 238 |
+
|
| 239 |
+
Matt J Kusner, Brooks Paige, and José Miguel Hernández-Lobato. Grammar variational autoencoder. In Proceedings of the 34th International Conference on Machine Learning, pp. 1945–1954. JMLR. org, 2017.
|
| 240 |
+
|
| 241 |
+
Guillaume Lample and François Charton. Deep learning for symbolic mathematics. arXiv preprint arXiv:1912.01412, 2019.
|
| 242 |
+
|
| 243 |
+
William B Langdon and Steven M Gustafson. Genetic programming and evolvable machines: ten years of reviews. Genetic Programming and Evolvable Machines, 11(3):321–338, 2010.
|
| 244 |
+
|
| 245 |
+
Jeffrey Lindemuth. The effect of air resistance on falling balls. American Journal of Physics, 39(7): 757–759, 1971.
|
| 246 |
+
|
| 247 |
+
Zichao Long, Yiping Lu, Xianzhong Ma, and Bin Dong. Pde-net: Learning pdes from data. In International Conference on Machine Learning, pp. 3208–3216. PMLR, 2018.
|
| 248 |
+
|
| 249 |
+
Zichao Long, Yiping Lu, and Bin Dong. Pde-net 2.0: Learning pdes from data with a numericsymbolic hybrid deep network. Journal of Computational Physics, 399:108925, 2019.
|
| 250 |
+
|
| 251 |
+
Edward N Lorenz. Deterministic nonperiodic flow. Journal of the atmospheric sciences, 20(2): 130–141, 1963.
|
| 252 |
+
|
| 253 |
+
Qiang Lu, Fan Tao, Shuo Zhou, and Zhiguang Wang. Incorporating actor-critic in monte carlo tree search for symbolic regression. Neural Computing and Applications, pp. 1–17, 2021.
|
| 254 |
+
|
| 255 |
+
Daniel L Ly and Hod Lipson. Learning symbolic representations of hybrid dynamical systems. The Journal of Machine Learning Research, 13(1):3585–3618, 2012.
|
| 256 |
+
|
| 257 |
+
Georg S Martius and Christoph Lampert. Extrapolation and learning equations. In 5th International Conference on Learning Representations, ICLR 2017-Workshop Track Proceedings, 2017.
|
| 258 |
+
|
| 259 |
+
T Nathan Mundhenk, Mikel Landajuela, Ruben Glatt, Claudio P Santiago, Daniel M Faissol, and Brenden K Petersen. Symbolic regression via neural-guided genetic programming population seeding. arXiv preprint arXiv:2111.00053, 2021.
|
| 260 |
+
|
| 261 |
+
Brenden K Petersen, Mikel Landajuela Larma, Terrell N Mundhenk, Claudio Prata Santiago, Soo Kyung Kim, and Joanne Taery Kim. Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients. In International Conference on Learning Representations, 2021.
|
| 262 |
+
|
| 263 |
+
Michael JD Powell. An efficient method for finding the minimum of a function of several variables without calculating derivatives. The computer journal, 7(2):155–162, 1964.
|
| 264 |
+
|
| 265 |
+
Markus Quade, Markus Abel, Kamran Shafi, Robert K Niven, and Bernd R Noack. Prediction of dynamical systems by symbolic regression. Physical Review E, 94(1):012214, 2016.
|
| 266 |
+
|
| 267 |
+
Chengping Rao, Pu Ren, Yang Liu, and Hao Sun. Discovering nonlinear PDEs from scarce data with physics-encoded learning. In International Conference on Learning Representations, pp. 1–19, 2022.
|
| 268 |
+
|
| 269 |
+
Samuel H Rudy, Steven L Brunton, Joshua L Proctor, and J Nathan Kutz. Data-driven discovery of partial differential equations. Science Advances, 3(4):e1602614, 2017.
|
| 270 |
+
|
| 271 |
+
Subham Sahoo, Christoph Lampert, and Georg Martius. Learning equations for extrapolation and control. In International Conference on Machine Learning, pp. 4442–4450, 2018.
|
| 272 |
+
|
| 273 |
+
Abraham Savitzky and Marcel JE Golay. Smoothing and differentiation of data by simplified least squares procedures. Analytical chemistry, 36(8):1627–1639, 1964.
|
| 274 |
+
|
| 275 |
+
Michael Schmidt and Hod Lipson. Distilling free-form natural laws from experimental data. science, 324(5923):81–85, 2009.
|
| 276 |
+
|
| 277 |
+
Devavrat Shah, Qiaomin Xie, and Zhi Xu. Non-asymptotic analysis of monte carlo tree search. arXiv preprint arXiv:1902.05213, 2019.
|
| 278 |
+
|
| 279 |
+
Lawrence F Shampine. Computer solution of ordinary differential equations. The initial value problem, 1975.
|
| 280 |
+
|
| 281 |
+
Lawrence F Shampine and Mark W Reichelt. The matlab ode suite. SIAM journal on scientific computing, 18(1):1–22, 1997.
|
| 282 |
+
|
| 283 |
+
David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017.
|
| 284 |
+
|
| 285 |
+
Fangzheng Sun, Yang Liu, and Hao Sun. Physics-informed spline learning for nonlinear dynamics discovery. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, pp. 2054–2061, 2021.
|
| 286 |
+
|
| 287 |
+
Silviu-Marian Udrescu and Max Tegmark. Ai feynman: A physics-inspired method for symbolic regression. Science Advances, 6(16):eaay2631, 2020.
|
| 288 |
+
|
| 289 |
+
Silviu-Marian Udrescu and Max Tegmark. Symbolic pregression: discovering physical laws from distorted video. Physical Review E, 103(4):043307, 2021.
|
| 290 |
+
|
| 291 |
+
Silviu-Marian Udrescu, Andrew Tan, Jiahai Feng, Orisvaldo Neto, Tailin Wu, and Max Tegmark. Ai feynman 2.0: Pareto-optimal symbolic regression exploiting graph modularity. arXiv preprint arXiv:2006.10782, 2020.
|
| 292 |
+
|
| 293 |
+
Nguyen Quang Uy, Nguyen Xuan Hoai, Michael O’Neill, Robert I McKay, and Edgar GalvánL��pez. Semantically-based crossover in genetic programming: application to real-valued symbolic regression. Genetic Programming and Evolvable Machines, 12(2):91–119, 2011.
|
| 294 |
+
|
| 295 |
+
Harsha Vaddireddy, Adil Rasheed, Anne E Staples, and Omer San. Feature engineering and symbolic regression methods for detecting hidden physics from sparse sensor observation data. Physics of Fluids, 32(1):015113, 2020.
|
| 296 |
+
|
| 297 |
+
David R White, Shin Yoo, and Jeremy Singer. The programming game: evaluating mcts as an alternative to gp for symbolic regression. In Proceedings of the Companion Publication of the 2015 Annual Conference on Genetic and Evolutionary Computation, pp. 1521–1522, 2015.
|
| 298 |
+
|
| 299 |
+
# APPENDIX
|
| 300 |
+
|
| 301 |
+
# A HYPERPARAMETER SETTING
|
| 302 |
+
|
| 303 |
+
We perform a parametric study on the value of discount factor $\eta$ based on Nguyen’s benchmark problems without measurement noise. Empirically, setting $\eta = 0 . 9 9 9 9$ ensures the scores of ground truth equations stand out and successfully enforces the sparsity in all experiments. For the discovery of very chaotic dynamical systems based on measurement data, we expect some physics terms from the governing equations to have a weak impact on the state variables (e.g., in the chaotic double pendulum system experiments, the effects from physics terms $\sin ( \theta _ { 1 } )$ and $\mathrm { s i n } ( \theta _ { 2 } )$ are hard to be captured), and the effect of data noise is unknown. Hence, we set $\eta = 1$ to leverage the full strength of data fitting to enable the detection of physics terms that are offset or overwhelmed by data noise but are pivotal to the systems. Nevertheless, we must acknowledge that this selection process is empirical, which depends on our desire for the degree of parsimony of the target equation(s).
|
| 304 |
+
|
| 305 |
+
As for the hyperparameters in the training schema (i.e., maximum module transplantation, episodes, maximum tree size, maximum augmented grammars), we have conducted parametric convergence tests for each experiment to ensure the learning curves (i.e., maximum scores in the history) converge. For example, as discussed in Section B, Table B.2 shows the setting of these hyperparameters.
|
| 306 |
+
|
| 307 |
+
# B NGUYEN’S BENCHMARK PROBLEMS
|
| 308 |
+
|
| 309 |
+
This section provides more detailed experiment settings for the Nguyen’s benchmark tasks that are described in Section 4.2 of the main text, where the training hyperparameters for the SPL machine in these equation discovery experiments are also listed. Table B.1 presents the candidate mathematical operations allowed for three tested models and Table B.2 displays training hyperparameters for the SPL machine in the Nguyen’s benchmark tasks.
|
| 310 |
+
|
| 311 |
+
Moreover, the utilization of CFG in the SPL machine facilitates the flexibility of applying some prior knowledge including the universal mathematical rules and constraints. This feature empirically turns out to be an accessible and scalable approach for avoiding meaningless mathematical expressions. In the Nguyen’s benchmark tasks, one or multiple mathematical constraints are given to the SPL machine. These constraints include
|
| 312 |
+
|
| 313 |
+
1. Only variables and constant values are allowed in trigonometric functions.
|
| 314 |
+
|
| 315 |
+
Table B.1: Candidate operators for each Nguyen’s benchmark task. const denotes constant values.
|
| 316 |
+
|
| 317 |
+
<table><tr><td></td><td rowspan=1 colspan=9>Benchmark Candidate Operations</td></tr><tr><td></td><td rowspan=1 colspan=7>Nguyen-1 +,-,×,÷,cos(-),sin(-),exp(·)</td><td rowspan=2 colspan=1>,sin(</td><td rowspan=17 colspan=1>+,-,×,÷,cos(-),sin(-),exp(-),log(),√+,-,×,÷,cos(-),sin(-),exp(-),log(-),√+,-,×,÷,cos(-),sin(-),exp(-),log(),√+,-,×,÷,cos(-),sin(-),exp(-),log(-),√,const</td></tr><tr><td></td><td rowspan=1 colspan=7>Nguyen-2 +,-,×,÷,cos(·),sin(.),exp()</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-3</td><td rowspan=1 colspan=4>×,÷,cos(·</td><td rowspan=1 colspan=1>,sin(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-4</td><td rowspan=1 colspan=4>X,÷,cos(</td><td rowspan=1 colspan=1>,sin(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-5</td><td rowspan=1 colspan=4>×,÷,cos(·</td><td rowspan=1 colspan=1>,sin(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-6</td><td rowspan=1 colspan=4>X,÷,cos(·</td><td rowspan=1 colspan=1>,sin(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-7</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=3>÷,cos(·</td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-8</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=3>÷,cos(·</td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-9</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=2>cos(·</td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(·</td></tr><tr><td></td><td rowspan=1 colspan=3>Nguyen-10</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=1>Cos</td><td></td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(.</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Nguyen-11</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=1>Cos</td><td></td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(.</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Nguyen-12</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=1>Cos</td><td></td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(.</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>Nguyen-1c</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=1>Cos</td><td></td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(.</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>Nguyen-2c</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=2>cos(.</td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(.</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Nguyen-5c</td><td rowspan=1 colspan=2>十,一</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=1>Cos</td><td></td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(·</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Nguyen-8c</td><td rowspan=1 colspan=2>十,一</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=1>cos</td><td></td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(.</td></tr><tr><td rowspan=1 colspan=4>Nguyen-9c</td><td rowspan=1 colspan=1>×</td><td rowspan=1 colspan=1>÷</td><td rowspan=1 colspan=2>cos(·</td><td rowspan=1 colspan=1>,sin(·</td><td rowspan=1 colspan=1>,exp(·</td></tr></table>
|
| 318 |
+
|
| 319 |
+
Table B.2: Training Hyperparameter settings for the SPL model in Nguyen’s benchmark tasks.
|
| 320 |
+
|
| 321 |
+
<table><tr><td>Benchmark</td><td>Maximum Module Transplantation</td><td>Episodes Between Module Transplantation</td><td>Maximum Tree Size</td><td>Maximum Augmented Grammars</td></tr><tr><td>Nguyen-1</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-2</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-3</td><td>20</td><td>100,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-4</td><td>20</td><td>100,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-5</td><td>20</td><td>100,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-6</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-7</td><td>20</td><td>5,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-8</td><td>20</td><td>5,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-9</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-10</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-11</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-12</td><td>20</td><td>100,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-1c</td><td>20</td><td>2,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-2c</td><td>20</td><td>10,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-5c</td><td>20</td><td>10.000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-8c</td><td>20</td><td>2,000</td><td>50</td><td>5</td></tr><tr><td>Nguyen-9c</td><td>20</td><td>1,000</td><td>50</td><td>5</td></tr></table>
|
| 322 |
+
|
| 323 |
+
Table B.3: Mathematical constraints for the SPL machine in each Nguyen’s benchmark problem.
|
| 324 |
+
|
| 325 |
+
<table><tr><td>Benchmark</td><td>Constraints Utilization</td></tr><tr><td>Nguyen-1</td><td>{1,3}</td></tr><tr><td>Nguyen-2</td><td>{1,3}</td></tr><tr><td>Nguyen-3</td><td>{1,3}</td></tr><tr><td>Nguyen-4</td><td>{1,3}</td></tr><tr><td>Nguyen-5</td><td>{2,3}</td></tr><tr><td>Nguyen-6</td><td>{2,3}</td></tr><tr><td>Nguyen-7</td><td>{2,3}</td></tr><tr><td>Nguyen-8</td><td>0</td></tr><tr><td>Nguyen-9</td><td>{2,3,4}</td></tr><tr><td>Nguyen-10</td><td>{2,3,4}</td></tr><tr><td>Nguyen-11</td><td>{2,3}</td></tr><tr><td>Nguyen-12</td><td>{1,3,4}</td></tr><tr><td>Nguyen-1c</td><td>{1,3}</td></tr><tr><td>Nguyen-2c</td><td>{1,3}</td></tr><tr><td>Nguyen-5c</td><td>{2,3}</td></tr><tr><td>Nguyen-8c</td><td>0</td></tr><tr><td>Nguyen-9c</td><td>{2,3,4}</td></tr></table>
|
| 326 |
+
|
| 327 |
+
2. Variables in trigonometric functions, logarithms and roots are up to the polynomial of 3.
|
| 328 |
+
3. Trigonometric functions, logarithms and roots are not allowed to form unreasonable composite functions with each other, such as $\sin ( \cos ( . . . ) )$ .
|
| 329 |
+
4. Some small integers (e.g. 1, 2) are used directly as leaves.
|
| 330 |
+
|
| 331 |
+
They can be easily implemented into the SPL machine by defining or adjusting non-terminal nodes or production rules in the customized CFG. Constraints adopted by each task are shown in Table B.3.
|
| 332 |
+
|
| 333 |
+
# C RESULTS OF ABLATION STUDY
|
| 334 |
+
|
| 335 |
+
We consider four ablation studies by removing the following:
|
| 336 |
+
|
| 337 |
+
(a) the adaptive scaling in reward calculation, (b) the discount factor $\eta ^ { n }$ that drives equation parsimony in Eq. (2), (c) module transplantation in tree generation, (d) all of the above three.
|
| 338 |
+
|
| 339 |
+
The resulting models are denoted with Model A, Model B, Model C, and Model D (note that Model $\mathbf { D }$ is equivalent to the vanilla MCTS). The ablation study is performed on the 12 classic Nguyen’s benchmark problems, where the recovery rate of each model is calculated. The results of the ablation study are summarized in Table C.1. It is clear that module transplantation brings the largest gain in recovery rate. All the ablated models fail to uncover the Nguyen-12 equation (the most difficult case), where the coefficient 1/2 needs to be represented by mathematical operators and symbols, e.g., $x / ( x + x )$ , $y / ( y + y )$ , etc.
|
| 340 |
+
|
| 341 |
+
# D FREE FALLING BALLS WITH AIR RESISTANCE
|
| 342 |
+
|
| 343 |
+
This appendix section reveals more details on discovering the physical laws, in the context of relationships between height and time, for the cases of free-falling objects with air resistance based on multiple experimental ball-drop datasets (de Silva et al., 2020). The datasets contain the records of 11 different types of balls, as shown in Figure D.1, dropped from a bridge, collected at a $3 0 \mathrm { H z }$ sampling rate. The time between dropping and landing varies in each case due to the fact that air resistance has different effects on these free-dropping balls and induces divergent physical laws. Consequently, we consider each ball as an individual experiment and discover the physical law for each of them. The measurement dataset of a free-dropping ball is split into a training set (records from the first 2 seconds, 60 measurements) and a testing set (records after 2 seconds).
|
| 344 |
+
|
| 345 |
+
The physical laws of the three baseline models and distilled by the SPL machine from training data are exhibited in Table D.1. These discovered physical laws are then applied to forecast the height of the balls at the time slots in the testing dataset. These predictions, in comparison with the ground truth trajectory recorded, are shown in Figure D.2. The prediction error is shown in the Table 3 of the main text.
|
| 346 |
+
|
| 347 |
+
# E NONLINEAR DYNAMICS DISCOVERY
|
| 348 |
+
|
| 349 |
+
This appendix section elaborates more details on the two governing equation discovery experiments presented in the main text, including the datasets and full results.
|
| 350 |
+
|
| 351 |
+
Table C.1: Summary of the ablation study results.
|
| 352 |
+
|
| 353 |
+
<table><tr><td>Benchmark</td><td>Expression</td><td>SPL</td><td>Model A</td><td>Model B</td><td>Model C</td><td>Model D</td></tr><tr><td>Nguyen-1</td><td>+ +x 2 2</td><td>100%</td><td>100%</td><td>100%</td><td>14%</td><td>12%</td></tr><tr><td>Nguyen-2</td><td>x4 + +x</td><td>100%</td><td>100%</td><td>100%</td><td>0%</td><td>0%</td></tr><tr><td>Nguyen-3</td><td>+x4 +x² +x 25</td><td>100%</td><td>100%</td><td>100%</td><td>0%</td><td>0%</td></tr><tr><td>Nguyen-4</td><td>+x+x4+x²+x²+x 26</td><td>99%</td><td>96%</td><td>92%</td><td>0%</td><td>0%</td></tr><tr><td>Nguyen-5</td><td>sin(𝑥²)cos(x)-1</td><td>95%</td><td>95%</td><td>92%</td><td>92%</td><td>88%</td></tr><tr><td>Nguyen-6</td><td>sin(x²)+sin(x+x²)</td><td>100%</td><td>100%</td><td>96%</td><td>100%</td><td>100%</td></tr><tr><td>Nguyen-7</td><td>ln(x +1) +ln(x² + 1)</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td></tr><tr><td>Nguyen-8</td><td>√x</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td></tr><tr><td>Nguyen-9</td><td>sin(x)+sin(y²)</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td></tr><tr><td>Nguyen-10</td><td>2 sin(x) cos(y)</td><td>100%</td><td>100%</td><td>100%</td><td>0%</td><td>0%</td></tr><tr><td>Nguyen-11</td><td>x</td><td>100%</td><td>96%</td><td>96%</td><td>92%</td><td>87%</td></tr><tr><td>Nguyen-12</td><td>x4 2 + 1 -y</td><td>28%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>Average</td><td></td><td>93.5%</td><td>90.58%</td><td>89.67%</td><td>49.83%</td><td>48.92%</td></tr></table>
|
| 354 |
+
|
| 355 |
+
Table D.1: Uncovered physics from the motions of free-falling balls by the SPL machine and three baseline models. Note that these formulas are the raw equations produced by SRL. Further simplification helps better parsimony of the formulas.
|
| 356 |
+
|
| 357 |
+
<table><tr><td>Type</td><td>Model</td><td>Expression</td></tr><tr><td>baseball</td><td>SPL Model-1 Model-2</td><td>H(t)= 47.8042 + 0.6253t- 4.5383t² H(t)= 47.682+ 1.456t- 5.629t² + 0.376t3 H(t)= 45.089- 8.156t + 5.448 exp(0t)</td></tr><tr><td>blue basketball</td><td>Model-3 SPL Model-1 Model-2</td><td>H(t)= 48.051- 183.467 log(cosh(0.217t)) H(t)= 46.4726-5.105t² + t³ -0.251t4 H(t)= 46.513-0.493t-3.912t² +0.03t H(t)= 43.522- 7.963t + 5.306 exp(0t)</td></tr><tr><td>green basketball</td><td>Model-3 SPL Model-1</td><td>H(t)= 46.402-84.791log(cosh(0.319t)) H(t)= 45.9087- 4.1465t² +log(cosh(1)) H(t)= 46.438-0.34t- 3.882t² - 0.055t3 H(t)= 43.512- 8.043t + 5.346 exp(0t)</td></tr><tr><td>volleyball</td><td>Model-2 Model-3 SPL Model-1 Model-2</td><td>H(t)= 46.391-124.424 log(cosh(0.263t)) H(t)= 48.0744-3.7772t² H(t)= 48.046+ 0.362t-4.352t² +0.218t</td></tr><tr><td>bowling ball</td><td>Model-3 SPL Model-1</td><td>H(t)= 45.32- 7.317t + 5.037exp(0t) H(t)= 48.124-107.816 log(cosh(0.27t)) H(t)= 46.1329-3.8173t² -0.2846t+4.14× 10-5 exp(20.7385t²)exp(-12.4538t3) H(t)= 46.139-0.091t-3.504t² -0.431t3</td></tr><tr><td>golf ball</td><td>Model-2 Model-3 SPL Model-1</td><td>H(t)= 43.336-8.525t + 5.676 exp(0t) H(t)= 46.342- 247.571log(cosh(0.189t)) H(t)= 49.5087-4.9633t² +log(cosh(t)) H(t)= 49.413+0.532t-5.061t²+0.102t3</td></tr><tr><td>tennis ball</td><td>Model-2 Model-3 SPL Model-1</td><td>H(t)= 46.356 -8.918t+ 5.964exp(0t) H(t)= 49.585-178.47log(cosh(0.23t)) H(t)= 47.8577-4.0574t² +log(cosh(0.121t))</td></tr><tr><td>whiffle ball</td><td>Model-2 Model-3 SPL Model-1</td><td>H(t)= 47.738+0.658t-4.901t²+0.325t H(t)= 45.016-7.717t+ 5.212 exp(0t) H(t)= 47.874- 114.19 log(cosh(0.269t)) H(t)= 4.1563t² -t + 47.0133exp(-0.1511t²) H(t)= 46.969+0.574t-4.505t²+0.522t</td></tr><tr><td>1 whiffle ball</td><td>Model-2 Model-3 SPL Model-1</td><td>H(t)= 44.259- 6.373t+ 4.689 exp(0t) H(t)= 47.062- 34.083log(cosh(0.462t)) H(t)= -18.6063 + 65.8583 exp(-0.0577t²) H(t)= 47.215+0.296t-4.379t²+0.421t3</td></tr><tr><td>2 yellow whiffle</td><td>Model-2 Model-3 SPL</td><td>H(t)= 44.443-6.744t + 4.813 exp(0t) H(t)= 47.255-38.29 log(cosh(0.447t)) H(t)= 148.9911/(log(cosh(t)) +3.065)-14.5828t²/(log(cosh(t)) +3.065)</td></tr><tr><td>ball</td><td>Model-1 Model-2 Model-3</td><td>+48.6092log(cosh(t))/(log(cosh(t)) + 3.065) H(t)= 48.613-0.047t-4.936t² +0.826t3 H(t)= 45.443- 6.789t+ 4.973exp(0t) H(t)= 48.594-12.49 log(cosh(0.86t))</td></tr><tr><td>orange whiffle ball</td><td>SPL Model-1 Model-2 Model-3</td><td>H(t)= -1.6626t + 47.8622 exp(-0.06815t²) H(t)= 47.836-1.397t-3.822t² +0.422t³ H(t)= 44.389-7.358t+ 5.152 exp(0t)</td></tr></table>
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
Figure D.1: The experimental balls that were dropped from the bridge (de Silva et al., 2020). From left to right: golf ball, tennis ball, whiffle ball 1, whiffle ball 2, baseball, yellow whiffle ball, orange whiffle ball, green basketball, and blue basketball. Volleyball is not shown here.
|
| 361 |
+
|
| 362 |
+

|
| 363 |
+
Figure D.2: Trajectories after 2 seconds predicted by uncovered physical laws.
|
| 364 |
+
|
| 365 |
+
# E.1 LORENZ SYSTEM
|
| 366 |
+
|
| 367 |
+
The 3-dimensional Lorenz system is governed by
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\begin{array} { l } { \dot { x } = \sigma ( y - x ) } \\ { \dot { y } = x ( \rho - z ) - y } \\ { \dot { z } = x y - \beta z } \end{array}
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
with parameters $\sigma = 1 0$ , $\beta = 8 / 3$ , and $\rho = 2 8$ , under which the Lorenz attractor has two lobes and the system, starting from anywhere, makes cycles around one lobe before switching to the other and iterates repeatedly. The measurement data of the Lorenz system states in this experiment contains a clean signal with $5 \%$ Gaussian white noise. The derivatives of Lorenz’s state variables are unmeasured but numerically estimated and smoothed by the Savitzky–Golay filter. The noisy synthetic measurement data and numerically obtained derivatives are shown in Figure E.1.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure E.1: Lorenz system for the experiment. Noisy measurement data and numerically estimated derivatives smoothed by Savitzky–Golay filter.
|
| 377 |
+
|
| 378 |
+
Table E.1: Discovered governing equations for the Lorenz system.
|
| 379 |
+
|
| 380 |
+
<table><tr><td>Model</td><td>Discovered Governing Equations</td></tr><tr><td>Eureqa</td><td>x= -0.56-9.02x +9.01y y= -0.047+18.79x+1.86y-0.046xy-0.74xz = -3.04-2.23z +0.88xy</td></tr><tr><td>pySINDy</td><td>x = -0.46-9.18x +9.17y y= 22.32x+0.15y-0.85xz z = 6.04-2.83z +0.15x² + 0.81xy</td></tr><tr><td>NGGP</td><td>x = 0.0047 -10.02x + 10.01y - 0.007x² + 0.007xy - 0.37x/z - 0.00074x²y +0.00063x +0.00018x²z +0.00011xy² -6.59e-5xyz -0.00011y² y = 26.36x-1.5y-0.83xz -7.20x/z + 13.08y/z + 4.52e-5x³ -0.0038xz² -44.25x/z²+0.00028x/z -0.00017xz + 5.98e 6x32 = -0.64- 0.036y - 2.64z + 1.038xy+ 0.00021xz + 0.0011yz - 0.00021x/z</td></tr><tr><td>SPL</td><td>-8.04e-8y/x + 0.00022y/z - 8.04e-8z² - 0.00021xyz +0.00021xy/z -0.001y²z-0.00021y²/z+1.17y/z²-3.89e-7yz²/x+6.66e-9z²/x x = -9.966x + 9.964y y = 27.764x - 0.942y- 0.994xz</td></tr></table>
|
| 381 |
+
|
| 382 |
+
Table E.1 presents the distilled governing equations for the Lorenz system by the SPL machine compared with 3 baseline models. It is observed that the SPL machine uncovers the explicit form of equations accurately in the context of active terms, whereas Eureqa, pySINDy and NGGP yield several false-positive terms in the underlying governing equations. The predicted system responses (starting from a different initial condition) simulated from these uncovered equations are shown in Figure E.2. Although it is hard to reproduce the most accurate coefficients due to the tremendous errors induced by numerical differentiation of noisy measurement data as depicted in Figure E.1, the SPL machine is still capable of distilling the most concise symbolic combination of operators and variables to correctly formulate the parsimonious mathematical expressions that govern the Lorenz system dynamics. The predicted responses for the governing equations unearthed by the SPL machine simulate the system in a decent manner.
|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
Figure E.2: Response prediction for 5 seconds by identified governing equations (dashed plots) under a different validation IC of Lorenz system, in comparison with the ground truth trajectory (grey).
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
Figure E.3: Double Pendulum system experiment and measurement data (Asseman et al., 2018): A. experiment setup. B. displacements of the two moving masses. C. model the system with $\theta _ { 1 }$ and $\theta _ { 2 }$ . D. angles of two masses transformed from displacements.
|
| 389 |
+
|
| 390 |
+
# E.2 MOUNTED DOUBLE PENDULUM SYSTEM
|
| 391 |
+
|
| 392 |
+
The second nonlinear dynamics discovery experiment is a chaotic double pendulum system (Asseman et al., 2018). The measured data, in form of videos, represents the chaotic motion of a double pendulum on the device shown in Figure E.3A filmed with a high-speed camera. The positional data is converted into angular form based on the geometry information (see the model shown in Figure E.3C). The governing equations can be derived using the Euler–Lagrange method, given by
|
| 393 |
+
|
| 394 |
+
$$
|
| 395 |
+
\begin{array} { r } { ( m _ { 1 } + m _ { 2 } ) l _ { 1 } \ddot { \theta } _ { 1 } + m _ { 2 } l _ { 2 } \ddot { \theta } _ { 2 } \cos ( \theta _ { 1 } - \theta _ { 2 } ) + m _ { 2 } l _ { 2 } \omega _ { 2 } ^ { 2 } \sin ( \theta _ { 1 } - \theta _ { 2 } ) + ( m _ { 1 } + m _ { 2 } ) g \sin ( \theta _ { 1 } ) = F _ { 1 } , } \\ { m _ { 2 } l _ { 2 } \ddot { \theta } _ { 2 } + m _ { 2 } l _ { 1 } \ddot { \theta } _ { 1 } \cos ( \theta _ { 1 } - \theta _ { 2 } ) - m _ { 2 } l _ { 1 } \omega _ { 1 } ^ { 2 } \sin ( \theta _ { 1 } - \theta _ { 2 } ) + m _ { 2 } g \sin ( \theta _ { 2 } ) = F _ { 2 } , } \end{array}
|
| 396 |
+
$$
|
| 397 |
+
|
| 398 |
+
which, by denoting $\omega$ as the velocity, can be converted to the following state-space form:
|
| 399 |
+
|
| 400 |
+
$$
|
| 401 |
+
\begin{array} { r l } & { \dot { \theta } _ { 1 } = \omega _ { 1 } , } \\ & { \dot { \theta } _ { 2 } = \omega _ { 2 } , } \\ & { \dot { \omega } _ { 1 } = c _ { 1 } \dot { \omega } _ { 2 } \cos ( \Delta \theta ) + c _ { 2 } \omega _ { 2 } ^ { 2 } \sin ( \Delta \theta ) + c _ { 3 } \sin ( \theta _ { 1 } ) + \mathcal { R } _ { 1 } ( \theta _ { 1 } , \theta _ { 2 } , \dot { \theta } _ { 1 } , \dot { \theta } _ { 2 } ) , } \\ & { \dot { \omega } _ { 2 } = c _ { 1 } \dot { \omega } _ { 1 } \cos ( \Delta \theta ) + c _ { 2 } \omega _ { 1 } ^ { 2 } \sin ( \Delta \theta ) + c _ { 3 } \sin ( \theta _ { 2 } ) + \mathcal { R } _ { 2 } ( \theta _ { 1 } , \theta _ { 2 } , \dot { \theta } _ { 1 } , \dot { \theta } _ { 2 } ) } \end{array}
|
| 402 |
+
$$
|
| 403 |
+
|
| 404 |
+
where $\Delta \theta = \theta _ { 1 } - \theta _ { 2 }$ , and $\mathcal { R } _ { 1 } ( \theta _ { 1 } , \theta _ { 2 } , \dot { \theta } _ { 1 } , \dot { \theta } _ { 2 } )$ and $\mathcal { R } _ { 2 } ( \theta _ { 1 } , \theta _ { 2 } , \dot { \theta } _ { 1 } , \dot { \theta } _ { 2 } )$ denote the damping terms for the last two differential equations.
|
| 405 |
+
|
| 406 |
+
The data source contains multiple video datasets. For this discovery, 5,000 denoised random subsamples from 5 datasets are used for training purposes, and 2,000 random sub-samples from another 2 datasets for validation, and 1 dataset for testing. Some prior knowledge guiding this discovery includes:
|
| 407 |
+
|
| 408 |
+
Table E.2: Discovered governing equations of the mounted double pendulum by the SPL model.
|
| 409 |
+
|
| 410 |
+
<table><tr><td>Phase</td><td>Expression</td></tr><tr><td>u1</td><td>-0.0991ω2 cos(△0) - 0.103ω2 sin(△0) - 69.274 sin(0i) + 0.515 cos(01)</td></tr><tr><td>2</td><td>-1.368ω1 c0s(△0) + 1.363ω² sin(△0) - 92.913 sin(02) + 0.032w1</td></tr></table>
|
| 411 |
+
|
| 412 |
+
1. the two terms $\dot { \omega } _ { 2 } \cos ( \Delta \theta )$ for $\dot { \omega } _ { 1 }$ and $\dot { \omega } _ { 1 } \cos ( \Delta \theta )$ for $\dot { \omega } _ { 2 }$ , which can be easily derived based on our prior knowledge on the system, are assumed known in the two governing equations. However, their coefficients are unknown and need to be estimated.
|
| 413 |
+
|
| 414 |
+
2. the remaining of the formulas are potentially comprised of the free combination of $\dot { \omega } _ { 1 } , \dot { \omega } _ { 2 }$ , $\omega _ { 1 } , \omega _ { 2 }$ , as well as the angles $( \theta _ { 1 } , \theta _ { 2 } , \Delta \theta )$ under the trigonometric functions $\cos ( \cdot )$ and $\sin ( \cdot )$ .
|
| 415 |
+
|
| 416 |
+
3. velocities and relative velocities of two masses, as well as their directions (sign function) might contribute to the damping.
|
| 417 |
+
|
| 418 |
+
Based on the above information, the candidate production rules for $\dot { \omega } _ { 1 }$ and $\dot { \omega } _ { 2 }$ equations are shown below, where non-terminal nodes are $V = \{ A , W , T , S \}$ and $C$ denotes the placeholder symbol for the constant coefficient values.
|
| 419 |
+
|
| 420 |
+
$$
|
| 421 |
+
\begin{array} { r l } & { A A + A , A A \times A , A C , A A + A , A W , } \\ & { W W \times W , W \omega _ { 1 } , W \omega _ { 2 } , W \dot { \omega } _ { 1 } , W \dot { \omega } _ { 2 } , } \\ & { A \cos ( T ) , A \sin ( T ) , T T + T , T T - T , T \theta _ { 1 } , T \theta _ { 2 } , } \\ & { A s i g n ( S ) , S S + S , S S - S , S \omega _ { 1 } , S \omega _ { 2 } , S \dot { \omega } _ { 1 } , S \dot { \omega } _ { 2 } , } \\ & { A \dot { \omega } _ { 1 } \cos ( \theta _ { 1 } - \theta _ { 2 } ) , A \dot { \omega } _ { 2 } \cos ( \theta _ { 1 } - \theta _ { 2 } ) . } \end{array}
|
| 422 |
+
$$
|
| 423 |
+
|
| 424 |
+
Note that our prior knowledge can be easily incorporated in the proposed SPL machine to improve the discovery performance, rather than relying on the free combination of mathematical operators and symbols. The hyperparameters are set as $\eta = 1$ , $t _ { m a x } = 2 0$ , and 40,000 episodes of training are regarded as one trail. 5 independent trials are performed and the equations with the highest validation scores are selected as the final result. The uncovered equations are shown in Table E.2. They are validated through interpolation on the testing set and compared with the smoothed derivatives, as shown in Figure E.4. The solution appears felicitous as the governing equations of the testing responses.
|
| 425 |
+
|
| 426 |
+
# F DISCUSSION AND FUTURE DIRECTIONS
|
| 427 |
+
|
| 428 |
+
The effectiveness of the proposed SPL machine is empowered by the following elements: (1) The use of MCTS enables the flexible representation of search space with customized computational grammars, composed of a finite set of mathematical operators and symbols, to guide the search tree expansion. (2) The exploration-exploitation trade-off nature of MCTS is remarkably useful for searching the optimal mathematical expression tree. (3) The key adjustments, including the greedy search, the adaptive-scaled rewarding, the reward regularizer, and the expression tree module transplantation, make it possible to efficiently uncover the best path to formulate complex equations. (4) The SPL machine straightforwardly accepts our prior or domain knowledge, or any sort of constraints of the tasks in the grammar design while leveraging great flexibility in expression formulation.
|
| 429 |
+
|
| 430 |
+
While SPL shows huge potential in both symbolic regression and governing equation discovery tasks, there are still some imperfections to be improved. In this appendix section, a few bottlenecks and their potential solutions are presented:
|
| 431 |
+
|
| 432 |
+
1. Computational cost. Computational cost for this framework is one of the major issues, especially when constant coefficient estimation is required. Evaluating the solution in the simulation phase happens very frequently for the MCTS algorithm where the policy selection relies heavily on a large number of historical rewards. However, the constant coefficient value estimation, which requires repeated calls for an optimization process and can be slow, is needed for evaluation purposes. In particular, the constant coefficient value is estimated via concurrently solving an optimization problem, e.g., by Powell’s conjugate direction method (Powell, 1964). For example, when the tree structure changes or is updated, the optimization of the constant coefficients should be re-performed simultaneously. The SPL machine is not the only symbolic regressor suffering from the computational cost in constant coefficient value estimation. In fact, the state-of-the-art symbolic regression model, the neural-guided GP (NGGP) (Mundhenk et al., 2021), becomes much slower in the Nguyen’s benchmark variant tasks (see Table E.3). The current implementation of the SPL machine tries to empirically avoid this issue by limiting the number of placeholders in a discovered expression and simplifying the expression before evaluation, but still cannot reach great efficiency. This bottleneck might be mitigated if parallel computing is introduced to the MCTS simulation phase.
|
| 433 |
+
|
| 434 |
+

|
| 435 |
+
Figure E.4: Discovered governing equations of the mounted double pendulum system on a different dataset in different time sections: in 2-8 seconds the two masses are in chaotic motions while in 30-36 seconds the masses tend to move periodically due to accumulative damping. $\ddot { \theta } _ { 1 }$ and ${ \ddot { \theta } } _ { 2 }$ are obtained through smoothed numerical differentiation and predicted from the discovered governing equations.
|
| 436 |
+
|
| 437 |
+
Table E.3: Average training time (in seconds) of SPL and NGGP in the Nguyen’s benchmark problems
|
| 438 |
+
|
| 439 |
+
<table><tr><td>Benchmark</td><td>SPL [s]</td><td>NGGP[s]</td></tr><tr><td>Nguyen-1</td><td>8.776</td><td>2.734</td></tr><tr><td>Nguyen-2</td><td>7.296</td><td>3.296</td></tr><tr><td>Nguyen-3</td><td>81.287</td><td>3.945</td></tr><tr><td>Nguyen-4</td><td>567.061</td><td>5.764</td></tr><tr><td>Nguyen-5</td><td>431.228</td><td>77.627</td></tr><tr><td>Nguyen-6</td><td>64.651</td><td>104.588</td></tr><tr><td>Nguyen-7</td><td>14.995</td><td>3.024</td></tr><tr><td>Nguyen-8</td><td>5.59</td><td>2.896</td></tr><tr><td>Nguyen-9</td><td>5.743</td><td>13.229</td></tr><tr><td>Nguyen-10</td><td>53.245</td><td>86.497</td></tr><tr><td>Nguyen-11</td><td>10.163</td><td>44.399</td></tr><tr><td>Nguyen-12</td><td>187.9</td><td>334.757</td></tr><tr><td>Nguyen-1c</td><td>452.734</td><td>362.075</td></tr><tr><td>Nguyen-2c</td><td>295.769</td><td>1188.215</td></tr><tr><td>Nguyen-5c</td><td>2178.891</td><td>1365.777</td></tr><tr><td>Nguyen-8c</td><td>77.892</td><td>129.349</td></tr><tr><td>Nguyen-9c</td><td>2001.402</td><td>3066.41</td></tr></table>
|
| 440 |
+
|
| 441 |
+
2. Graph modularity underexamined. The current design of the SPL training scheme does not leverage the full graph modularity: modules are reached by transforming a complete parse tree into a grammar. However, in some cases, there might be some influential modules appearing frequently as part of the tree. This type of graph modularity is described in the AIFeynman method (Udrescu et al., 2020). Deploying a more comprehensive graph modularity into the SPL machine will boost its efficacy in the complex equation and nonlinear dynamics discovery tasks.
|
| 442 |
+
|
| 443 |
+
3. Robustness against extreme data noise and scarcity. Although it is observed that this reinforcement learning-based method is able to unearth the parsimonious solution to the governing equations from synthetic or measurement data with a moderate level of noise and scarcity. It is not effective when the data condition is extreme, or if there are missing values that make it challenging to numerically calculate the state derivatives. It is reasonable to investigate the integration between the SPL framework with a differentiable surrogate model built upon neural networks (Long et al., 2018; Chen et al., 2021) or spline learning (Sun et al., 2021) for further robustness in nonlinear dynamics discovery tasks.
|
parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/ZTK3SefE8_Z/ZTK3SefE8_Z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/dev/toR64fsPir/toR64fsPir.md
ADDED
|
@@ -0,0 +1,496 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Structure-Preserving Embedding of Multi-layer Networks
|
| 2 |
+
|
| 3 |
+
Anonymous Author(s)
|
| 4 |
+
Affiliation
|
| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 This paper investigates structure-preserving embedding for multi-layer networks
|
| 11 |
+
2 with community structure. We propose a novel generative tensor-based latent space
|
| 12 |
+
3 model (TLSM) that allows heterogeneity among vertices. It embeds vertices into
|
| 13 |
+
4 a low-dimensional latent space so that vertices within the same community are
|
| 14 |
+
5 close to each other in the ambient space, and captures layer heterogeneity through
|
| 15 |
+
6 a layer-effect factor matrix. With a general and flexible tensor decomposition
|
| 16 |
+
7 on the expected network adjacency tensor, TLSM is dedicated to preserving the
|
| 17 |
+
8 original vertex relations and layer-specific effects in the network embedding. An
|
| 18 |
+
9 efficient alternative updating scheme is developed to estimate the model parameters
|
| 19 |
+
10 and conduct community detection simultaneously. Theoretically, we establish the
|
| 20 |
+
11 asymptotic consistencies of TLSM in terms of both multi-layer network estimation
|
| 21 |
+
12 and community detection. The theoretical results are supported by extensive
|
| 22 |
+
13 numerical experiments on both synthetic and real-life multi-layer networks.
|
| 23 |
+
|
| 24 |
+
# 14 1 Introduction
|
| 25 |
+
|
| 26 |
+
15 Network has arisen as one of the most common structures to represent the relations among entities.
|
| 27 |
+
16 In many complex systems, entities can be multi-relational in that they may interact with each other
|
| 28 |
+
17 under various circumstances. A multi-layer network, which consists of a common vertex set across all
|
| 29 |
+
18 network layers representing the entities and an edge set at each layer to characterize a particular type
|
| 30 |
+
19 of relation among entities, is faithful to represent these relations. Examples of multi-layer networks
|
| 31 |
+
20 include social networks of multiple interaction channels [42, 15], biological networks of different
|
| 32 |
+
21 collaboration schemes [49, 31, 29] and world trading networks [1, 37] of various goods.
|
| 33 |
+
22 In this paper, we propose a structure-preserving embedding framework for multi-layer networks
|
| 34 |
+
23 via a tensor-based latent space model. Specifically, TLSM utilizes the factorization of network
|
| 35 |
+
24 adjacency tensor as a building block, embeds the vertices into a low dimensional latent space, and
|
| 36 |
+
25 captures the heterogeneity among different layers through a layer-effect factor matrix. Consequently,
|
| 37 |
+
26 the community structure of the multi-layer network can be detected from a network embedding
|
| 38 |
+
27 perspective, such that vertices within the same community are closer to one another in the ambient
|
| 39 |
+
28 space than those in different communities. In addition, one key feature of TLSM is that it introduces
|
| 40 |
+
29 a sparsity factor into the vanilla logit transformation of the network adjacency tensor, which allows
|
| 41 |
+
30 TLSM to model sparse multi-layer networks in a more explicit fashion and accommodate relatively
|
| 42 |
+
31 sparser multi-layer networks as the ones considered in literature [22]. More importantly, this sparsity
|
| 43 |
+
32 factor can be estimated from the network adjacency tensor directly.
|
| 44 |
+
33 The main contribution of this paper is three-fold. First, the proposed TLSM is flexible and general
|
| 45 |
+
34 in that it includes many popular network models as special cases. It also relaxes the layer-wise
|
| 46 |
+
35 positive semi-definite condition that has been frequently employed in literature [6, 35]. Second, a
|
| 47 |
+
36 joint modeling framework is constructed for TLSM, consisting of the multi-layer network likelihood
|
| 48 |
+
37 and a clustering type penalty, to estimate the multi-layer network and conduct community detection
|
| 49 |
+
38 simultaneously. Its advantages are supported by extensive numerical experiments on both synthetic
|
| 50 |
+
39 and real-life multi-layer networks. Third, the asymptotic consistencies of TLSM are established in
|
| 51 |
+
40 terms of both multi-layer network estimation and community detection. Notably, the established
|
| 52 |
+
41 theoretical results imply that the proposed methods can accommodate the sparsest multi-layer
|
| 53 |
+
42 networks considered in literature.
|
| 54 |
+
43 The rest of the paper is organized as follows. The remaining of Section 1 discusses related works and
|
| 55 |
+
44 introduces necessary notations. Section 2 presents the proposed TLSM and its estimation scheme with
|
| 56 |
+
45 an efficient algorithm. In Section 3, we establish the asymptotic consistencies of TLSM. Extensive
|
| 57 |
+
46 numerical performance of TLSM on synthetic and real-life multi-layer networks as well as ablation
|
| 58 |
+
47 studies on two novel components of the proposed method are carried out in Section 4. Section 5
|
| 59 |
+
48 concludes the paper. The supplementary materials contains technique proofs and necessary lemmas,
|
| 60 |
+
49 additional simulation studies, detailed parameter tuning process, among others.
|
| 61 |
+
|
| 62 |
+
# 50 1.1 Related work
|
| 63 |
+
|
| 64 |
+
51 While there is a growing number of literature focusing on community detection in single-layer
|
| 65 |
+
52 network [48, 28, 13], community detection in multi-layer network is still in its infancy. One classical
|
| 66 |
+
53 approach is to detect community structure in each layer separately [4, 5], which fails to leverage
|
| 67 |
+
54 the homogeneity across different layers. Another approach is to aggregate multi-layer networks
|
| 68 |
+
55 into a single-layer one [41, 12, 35], which heavily relies on the assumption of homogeneous linking
|
| 69 |
+
56 pattern across multiple layers. Recently, [26] proposed to aggregate the biased-adjusted version of
|
| 70 |
+
57 the squared adjacency matrix in each layer to alleviate the information loss in aggregation. yet it
|
| 71 |
+
58 requires the average node degree to grow at a sub-optimal order.
|
| 72 |
+
59 In terms of multi-layer network generative models, [34] extended the seminal stochastic block
|
| 73 |
+
60 model (SBM; 19) to the multi-layer stochastic block model (MLSBM; 34), where the probability for
|
| 74 |
+
61 any two vertices to form an edge in a given layer depends only on their community memberships.
|
| 75 |
+
62 Clearly, MLSBM heavily relies on the assumption of homogeneous vertices within communities.
|
| 76 |
+
63 The framework of MLSBM has also been incorporated in degree-corrected network estimation [36],
|
| 77 |
+
64 spectral clustering [6, 35, 26], least square estimation [27] and likelihood-based approaches [45]. In
|
| 78 |
+
65 addition, network response regression model [46] and tensor factorization methods [8, 22] have also
|
| 79 |
+
66 been proposed to detect community structures in multi-layer networks.
|
| 80 |
+
67 To allow heterogeneous vertices, the latent space model [18] and random dot product graph model
|
| 81 |
+
68 [3] have been extended to multi-layer networks[47, 32, 2]. In addition, graph neural network and
|
| 82 |
+
69 graph convolutional networks has been extended to multi-layer network for learning the multi-layer
|
| 83 |
+
70 network embedding [14, 23, 17, 39].
|
| 84 |
+
|
| 85 |
+
# 71 1.2 Notations
|
| 86 |
+
|
| 87 |
+
72 Throughout the paper, we use boldface calligraphic Euler scripts $( A )$ to denote tensors, boldface
|
| 88 |
+
73 capital letters $( A )$ or Greece letters $( \alpha , \beta )$ to denote matrices, boldface lowercase letters $( a )$ to
|
| 89 |
+
74 denote vectors, and regular letters $( a )$ to denote scalars. For an order three tensor $\pmb { \mathcal { A } } \in \mathbb { R } ^ { I _ { 1 } \times I _ { 2 } \times I _ { 3 } }$ ,
|
| 90 |
+
75 $\mathcal { A } _ { i , . , . } \in \mathbb { R } ^ { I _ { 2 } \times I _ { 3 } } , \mathcal { A } _ { . , j , \cdot } \in \mathbb { R } ^ { I _ { 1 } \times I _ { 3 } }$ , and $\pmb { \mathscr { A } } _ { . , . , m } \in \mathbb { R } ^ { I _ { 1 } \times I _ { 2 } }$ are the $i$ -th horizontal slide, $j$ -th lateral slide
|
| 91 |
+
76 and $m$ -th frontal slide of $\mathcal { A }$ , respectively. Similarly, for a matrix $\pmb { A }$ , $A _ { i , }$ . denotes its $i$ -th row and $A _ { . , j }$
|
| 92 |
+
77 denotes its $j$ -th column. For a vector $\textbf { \em a }$ , $\mathrm { d i a g } ( a )$ stands for the diagonal matrix whose diagonal is $\textbf { \em a }$ .
|
| 93 |
+
78 We use $| | \cdot | | , | | \cdot | | _ { \infty }$ , and $| | \cdot | | _ { F }$ to denote the $l _ { 2 }$ -norm, $l _ { \infty }$ -norm of a vector, and the Frobenius norm
|
| 94 |
+
79 of matrix or tensor, respectively. For any integer $n$ , denote $[ n ] = \{ 1 , 2 , . . . , n \}$ .
|
| 95 |
+
|
| 96 |
+
80 81 1 product betsuch that its or -th $\pmb { \mathcal { A } } \in \mathbb { R } ^ { I _ { 1 } \times I _ { 2 } \times I _ { 3 } }$ an as $U \in \mathbb { R } ^ { J _ { 1 } \times I _ { 1 } }$ $\pmb { A } \times _ { 1 } \pmb { U } \in$ $\mathbb { R } ^ { J _ { 1 } \times I _ { 2 } \times I _ { 3 } }$ $( j _ { 1 } , i _ { 2 } , i _ { 3 } )$ $\begin{array} { r } { ( \pmb { \mathscr { A } } \times _ { 1 } \pmb { U } ) _ { j _ { 1 } , i _ { 2 } , i _ { 3 } } = \sum _ { i _ { 1 } = 1 } ^ { I _ { 1 } } \pmb { \mathscr { A } } _ { i _ { 1 } , i _ { 2 } , i _ { 3 } } U _ { j _ { 1 } , i _ { 1 } } } \end{array}$ The mode-2 or mode-3 product between $\pmb { A }$ and any matrix of appropriate dimension are defined 83 similarly. The CANDECOMP/PARAFAC (CP) decomposition of $\pmb { A }$ has the form
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\pmb { \mathcal { A } } = \sum _ { r = 1 } ^ { R } \pmb { a } ^ { ( r ) } \circ \pmb { b } ^ { ( r ) } \circ \pmb { c } ^ { ( r ) } ,
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where 84 $\pmb { a } ^ { ( r ) } \in \mathbb { R } ^ { I _ { 1 } }$ , $\boldsymbol { b } ^ { ( r ) } \in \mathbb { R } ^ { I _ { 2 } }$ , and $\boldsymbol { c } ^ { ( r ) } \in \mathbb { R } ^ { I _ { 3 } }$ for $r \in [ R ]$ , and $\circ$ stands for the vector outer product. The CP-rank [24] of the tensor 85 $\pmb { a } ^ { ( r ) } \circ \pmb { b } ^ { ( r ) } \circ \pmb { c } ^ { ( r ) }$ is defined to be 1, for $r \in [ R ]$ . The minimal number
|
| 103 |
+
|
| 104 |
+
86 of rank-1 tensors in the CP decomposition of $\pmb { A }$ is called the CP-rank of $\pmb { A }$ . Let $\pmb { \mathcal { T } } \in \{ 0 , 1 \} ^ { R \times R \times R }$
|
| 105 |
+
87 be the identity tensor such that $\pmb { \mathcal { T } } _ { i _ { 1 } , i _ { 2 } , i _ { 3 } } = 1$ if $i _ { 1 } = i _ { 2 } = i _ { 3 }$ and 0 otherwise, and let $\pmb { A } \in \mathbb { R } ^ { I _ { 1 } \times R }$ ,
|
| 106 |
+
88 $\boldsymbol { B } \in \mathbb { R } ^ { I _ { 2 } \times R }$ , and $C \in \mathbb { R } ^ { I _ { 3 } \times R }$ such that $\mathbf { \boldsymbol { A } } _ { \cdot , r } = \mathbf { \boldsymbol { a } } ^ { ( r ) }$ , $\mathbf { \delta } _ { B _ { \cdot , r } } = \mathbf { \delta } _ { \mathbf { \delta } } \mathbf { \delta } _ { B _ { \cdot , r } } ^ { ( r ) }$ , and $\boldsymbol { C } _ { \cdot , r } = \boldsymbol { c } ^ { ( r ) }$ . Equation (1)
|
| 107 |
+
89 then can be equivalently written as $\pmb { \mathcal { A } } = \pmb { \mathcal { T } } \times _ { 1 } \pmb { A } \times _ { 2 } \pmb { B } \times _ { 3 } \pmb { C }$ .
|
| 108 |
+
|
| 109 |
+
# 90 2 Structure-preserving embedding
|
| 110 |
+
|
| 111 |
+
91 In this paper, we consider multi-layer networks that can be represented as an undirected and un
|
| 112 |
+
92 weighted $M$ -layer graph $\mathcal { G } = ( V , \mathcal { E } )$ , where $V = [ n ]$ consists of the common $n$ vertices across
|
| 113 |
+
93 different layers, and $\mathcal { E } = \{ E ^ { ( m ) } \} _ { m = 1 } ^ { M }$ with $E ^ { ( m ) } \subset V \times V$ representing the $m$ -th relation network
|
| 114 |
+
94 among vertices. A order three adjacency tensor $\pmb { \mathcal { A } } = ( a _ { i , j , m } ) \in \{ 0 , 1 \} ^ { n \times n \times M }$ is then defined to
|
| 115 |
+
95 represent $\mathcal { G }$ with entries $a _ { i , j , m } = 1$ if $( i , j ) \in E ^ { ( m ) }$ and 0 otherwise.
|
| 116 |
+
|
| 117 |
+
# 2.1 Tensor-based latent space model
|
| 118 |
+
|
| 119 |
+
97 To fully characterize the multi-layer network structure, we propose the following generative tensor
|
| 120 |
+
8 based latent space model (TLSM). For any $i \leq j \in [ n ]$ , and $m \in [ M ]$ ,
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\begin{array} { r l } & { a _ { i , j , m } = a _ { j , i , m } \overset { i n d . } { \sim } \mathrm { B e r n o u l l i } ( p _ { i , j , m } ) , \mathrm { ~ w i t h ~ } } \\ & { \theta _ { i , j , m } = \log \Big ( \frac { p _ { i , j , m } } { s _ { n } - p _ { i , j , m } } \Big ) , \mathrm { ~ a n d ~ } } \\ & { \Theta = \mathbb { Z } \times _ { 1 } \alpha \times _ { 2 } \alpha \times _ { 3 } \beta , \alpha \in \Omega _ { \alpha } , \beta \in \Omega _ { \beta } , } \end{array}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
99 where $\boldsymbol { \mathscr { x } }$ is the order three $R$ -dimensional identity tensor. Basically, (2) follows the standard routine
|
| 127 |
+
100 in the multi-layer network literature [34, 35, 27, 22] to model that $a _ { i , j , m } = a _ { j , i , m }$ are independently
|
| 128 |
+
101 generated from a Bernoulli distribution, for $i \leq j \in [ n ]$ and $m \in [ M ]$ . Denote $\pmb { \mathcal { P } } = ( p _ { i , j , m } ) \in$
|
| 129 |
+
102 $\mathbb { R } ^ { n \times n \times M }$ as the network underlying probability tensor, and then $\Theta = ( \theta _ { i , j , m } ) \in \mathbb { R } ^ { n \times n \times M }$ is
|
| 130 |
+
103 the entry-wise transformation of $\mathcal { P }$ by (3). We call the transformation (3) as the modified logit
|
| 131 |
+
104 transformation in that the constant 1 in the standard logit transformation is replaced by a sparsity
|
| 132 |
+
105 factor $s _ { n }$ , which may vanish with $n$ and $M$ . We further assume all entries of $\mathcal { P }$ are of the order $s _ { n }$ ; that
|
| 133 |
+
106 is, there exists a constant $\textstyle { \frac { 1 } { 2 } } \leq \xi < 1$ such that $( 1 - \xi ) s _ { n } \leq p _ { i , j , m } \leq \xi s _ { n }$ , for $i , j \in [ n ]$ and $m \in [ M ]$
|
| 134 |
+
107 Thus, the in $s _ { n }$ essval $\begin{array} { r } { [ - \log \frac { \xi } { 1 - \xi } , \log \frac { \xi } { 1 - \xi } ] } \end{array}$ overall network sparsity and the entries of . More importantly, (4) models the CP d $\Theta$ are ensured toomposition of $\Theta$ cate inby the
|
| 135 |
+
109 factor matrices $\pmb { \alpha } \in \mathbb { R } ^ { n \times R }$ and $\mathbf { \boldsymbol { \beta } } \in \mathbb { R } ^ { M \times R }$ with CP-rank $R$ , which can greatly reduce the number of
|
| 136 |
+
110 free parameters from $n ( n + 1 ) M / 2$ to $( n + M ) R$ . Throughout the paper, the CP-rank $R$ is allowed
|
| 137 |
+
111 to diverge with $n$ . In the CP decomposition of $\Theta$ , $_ \alpha$ is the vertex latent position matrix with each row
|
| 138 |
+
112 $\alpha _ i , $ . serving as the embedding of vertex $i$ , and $\beta$ captures heterogeneity across different layers. Herein,
|
| 139 |
+
113 we define the constraint sets for $_ { \pmb { \alpha } }$ and $\beta$ as $\begin{array} { r } { \Omega _ { \alpha } = \{ \alpha \in \mathbb { R } ^ { n \times R } : | | \alpha _ { i , \cdot } | | \leq \sqrt { \log \frac { \xi } { 1 - \xi } } } \end{array}$ , for $i \in [ n ] \}$
|
| 140 |
+
114 and $\Omega _ { \beta } = \{ \beta \in \mathbb { R } ^ { M \times R } : | | \beta _ { \cdot , r } | | = 1 , r \in [ R ] \}$ . Note that the constraint on $\beta$ is necessary for
|
| 141 |
+
115 model identification, and detailed discussion will be presented shortly. The constraint set $\Omega _ { \alpha } \times \Omega _ { \beta }$
|
| 142 |
+
116 is sufficient to maintain the bounded condition of $\Theta$ since a general Hölder inequality yields that
|
| 143 |
+
117 $\begin{array} { r } { | \theta _ { i , j , m } | = | \pmb { \mathcal { Z } } \times _ { 1 } \pmb { \alpha } _ { i , . } ^ { T } \times _ { 2 } \pmb { \alpha } _ { j , . } ^ { T } \times _ { 3 } \beta _ { m , . } ^ { T } | \le | | \pmb { \alpha } _ { i , . } | | | | \pmb { \alpha } _ { j , . } | | | | \beta _ { m , . } | | _ { \infty } \le \log \frac { \xi } { 1 - \xi } } \end{array}$ . To conclude this
|
| 144 |
+
118 paragraph, we remake that the parameter $\xi$ is introduced for theoretical purpose and it is not treated as
|
| 145 |
+
119 a tuning parameter. One can choose $\xi$ sufficiently close to 1 in empirical studies so that the restriction
|
| 146 |
+
120 on $_ { \pmb { \alpha } }$ will be alleviated.
|
| 147 |
+
121 We make several essential observations of the proposed TLSM. First and foremost, TLSM is flexible
|
| 148 |
+
122 and general. It includes the celebrated MLSBM [34, 43, 35, 27, 26, 36, 22] as special case. Specif
|
| 149 |
+
123 ically, suppose the vertices comes form $K$ disjoint communities, the standard MLSBM assumes
|
| 150 |
+
124 that the underlying network probability tensor ${ \pmb { \mathcal { P } } } = { \pmb { \mathcal { B } } } \times _ { 1 } { \pmb { Z } } \times _ { 2 } { \pmb { Z } }$ , where $\pmb { \mathscr { B } } \in \mathbb { R } ^ { K \times K \times M }$ is a
|
| 151 |
+
125 semi-symmetric core probability tensor with $\pmb { \mathscr { B } } _ { k _ { 1 } , k _ { 2 } , m } = \pmb { \mathscr { B } } _ { k _ { 2 } , k _ { 1 } , m }$ for $k _ { 1 } , k _ { 2 } \in [ K ]$ and $m \in [ M ]$ ,
|
| 152 |
+
126 and $Z \in \{ 0 , 1 \} ^ { n \times K }$ is the community membership matrix with $Z _ { i , k } = 1$ if vertex $i$ comes from the
|
| 153 |
+
127 $k$ -th community and 0 otherwise. That is, the probability of any vertex pair to form an edge in a
|
| 154 |
+
128 particular layer depends only on their community memberships. Equivalently, under the modified
|
| 155 |
+
129 logit transformation (3), we have $\Theta = \widetilde { \pmb { \mathscr { B } } } \times _ { 1 } { Z } \times _ { 2 } { Z }$ , where $\widetilde { B }$ is the entry-wise transformation
|
| 156 |
+
130 of $_ { \pmb { B } }$ under (3). Taking $R$ to be the CP-rank of $\widetilde { B }$ , the CP-decomposition of $\widetilde { B }$ then has the form
|
| 157 |
+
131 $\widetilde { \pmb { \mathscr { B } } } = \pmb { \mathscr { T } } \times _ { 1 } \pmb { C } \times _ { 2 } \pmb { C } \times _ { 3 } \ \pmb { \beta }$ for some matrix $C \in \mathbb { R } ^ { K \times R }$ and $\beta \in \mathbb { R } ^ { M \times R }$ due to semi-symmetry.
|
| 158 |
+
132 This leads to the CP decomposition of $\Theta$ has the form (4) with $\mathbf { \alpha } _ { \alpha } = Z C$ . It is clear that MLSBM
|
| 159 |
+
133 requires vertices within the same community are homogeneous and exchangeable, while TLSM
|
| 160 |
+
134 allows vertices to have different embeddings even when they are in the same community.
|
| 161 |
+
135 Second, TLSM is identifiable when both $_ { \pmb { \alpha } }$ and $\beta$ have full column ranks. When both $_ { \pmb { \alpha } }$ and $\beta$
|
| 162 |
+
136 have full column ranks, the Kruskal’s $\mathbf { k }$ -ranks [25] of $_ { \pmb { \alpha } }$ and $\beta$ satisfy $k _ { \alpha } = k _ { \beta } = R$ , then $\Theta$ has
|
| 163 |
+
137 CP-rank $R$ . Hence, $k _ { \alpha } + k _ { \alpha } + k _ { \beta } \geq 2 R + 2$ as long as $R \geq 2$ . By Theorem 1 of [40], the fixed
|
| 164 |
+
138 column $l _ { 2 }$ -norm constraint of $\beta$ implies that the tensor factorization in (4) is unique up to column
|
| 165 |
+
139 permutations of $_ { \pmb { \alpha } }$ and $\beta$ and column sign flip of $_ \alpha$ . It is important to remark that the community
|
| 166 |
+
140 structure encoded in $_ { \pmb { \alpha } }$ remains unchanged under any column permutation or sign flip.
|
| 167 |
+
141 Third, introducing a sparsity factor $s _ { n }$ via a modified logit transformation into the TLSM is non
|
| 168 |
+
142 trivial. We take a single-layer network as an example to illustrate the limitation of the standard
|
| 169 |
+
143 logit transformation in handling sparse network. Suppose a vanilla logit link is used to connect
|
| 170 |
+
144 the network underlying probability matrix $_ { r }$ and its transformation $\Theta$ , and the latent space model
|
| 171 |
+
145 usually assumes that $\breve { \Theta } = \alpha \alpha ^ { T }$ . A sparse network requires the entries of $\Theta$ diverge to negative
|
| 172 |
+
146 infinite due to the small magnitude of edge probability, which leads to unstable estimation of $_ { \pmb { \alpha } }$ in
|
| 173 |
+
147 numerical experiments. Moreover, this may conflict with the assumption that vertices within the same
|
| 174 |
+
148 community tend to be close in the embedding space and their inner product is likely to be positive.
|
| 175 |
+
149 These difficulties can be naturally circumvented when an appropriate $s _ { n }$ is chosen in (3).
|
| 176 |
+
|
| 177 |
+
# 150 2.2 Regularized likelihood
|
| 178 |
+
|
| 179 |
+
Given a network adjacency tensor $\mathcal { A }$ and number of communities $K$ , our goal is to estimate the multi-layer network embedding $( \alpha , \beta )$ and conduct community detection on the vertices. Throughout this paper, we assume the number of potential communities $K$ is given and may diverge with $n$ . Under the TLSM framework, with slight abuse of notation, we denote the average negative log-likelihood function of the multi-layer network $\mathcal { G }$ is $\mathcal { L } ( \alpha , \beta ; \mathcal { A } ) = \mathcal { L } ( \Theta ; \mathcal { A } )$ with
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
\mathcal { L } ( \Theta ; \pmb { A } ) = \frac { 1 } { \varphi ( n , M ) } \sum _ { m = 1 } ^ { M } \sum _ { i \leq j } L ( \theta _ { i , j , m } ; a _ { i , j , m } ) ,
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
where 151 $\varphi ( n , M ) = { \textstyle { \frac { 1 } { 2 } } } n ( n { + } 1 ) M$ is the number of potential edges, and $\begin{array} { r } { L ( \theta ; a ) = \log \left( 1 + \frac { s _ { n } } { 1 - s _ { n } + e ^ { - \theta } } \right) - } \end{array}$ 152 $\begin{array} { r } { a \log \left( \frac { s _ { n } } { 1 - s _ { n } + e ^ { - \theta } } \right) } \end{array}$ is a negative log-density of a Bernoulli random variable $a$ . We now introduce a 153 novel regularization term to detect the potential communities in $\mathcal { G }$ ,
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
J ( \alpha ) = \operatorname* { m i n } _ { Z \in \Gamma , C \in \mathbb { R } ^ { K \times R } } \frac { 1 } { n } \| \alpha - Z C \| _ { F } ^ { 2 } ,
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
154 where $C$ encodes the vertex embedding centers and ${ \Gamma } ~ \subset ~ \{ 0 , 1 \} ^ { n \times K }$ is the set of all possible
|
| 192 |
+
155 community membership matrices; that is, for any $Z \in \Gamma$ , each row of $z$ consists of only one 1
|
| 193 |
+
156 indicating the community membership and all others entries being 0. This leads to the proposed
|
| 194 |
+
157 regularized cost function,
|
| 195 |
+
|
| 196 |
+
$$
|
| 197 |
+
\begin{array} { r } { \mathcal L _ { \lambda } ( \boldsymbol { \alpha } , \beta ; \boldsymbol { \mathcal { A } } ) = \mathcal L ( \boldsymbol { \alpha } , \beta ; \boldsymbol { \mathcal { A } } ) + \lambda _ { n } J ( \boldsymbol { \alpha } ) , } \end{array}
|
| 198 |
+
$$
|
| 199 |
+
|
| 200 |
+
158 where $\lambda _ { n }$ is a positive tuning parameter that strikes the balance between network estimation and
|
| 201 |
+
159 community detection in the cost function. It is clear that the embeddings of vertices with similar
|
| 202 |
+
160 linking pattern will be pushed towards the same center, and thus close to each other in the ambient
|
| 203 |
+
161 space, leading to the desired community structure in $\mathcal { G }$ .
|
| 204 |
+
|
| 205 |
+
# 2.3 Projected gradient descent algorithm
|
| 206 |
+
|
| 207 |
+
163 We develop a scalable projected gradient descent (PGD) algorithm to optimize the penalized cost
|
| 208 |
+
164 function (6), which is highly non-convex and can be solved only locally. PGD, which alternatively
|
| 209 |
+
165 conducts gradient step and projection step, is one of the most popular and computationally fast
|
| 210 |
+
166 algorithm in tackling non-convex optimization problem [7, 33, 47, 9].
|
| 211 |
+
|
| 212 |
+
To compute the gradients of 167 $_ \alpha$ and $\beta$ , we introduce the following notations. Define $\pmb { \mathcal { T } } \in \mathbb { R } ^ { n \times n \times M }$ with entries 168 $\begin{array} { r } { \pmb { \mathcal { T } } _ { i , j , m } = \frac { \exp ( - \theta _ { i , j , m } ) } { 1 - s _ { n } + \exp ( - \theta _ { i , j , m } ) } ( p _ { i , j , m } - a _ { i , j , m } ) } \end{array}$ , and $\boldsymbol { X } _ { \mathcal { T } ( 2 , 3 ) } ^ { \alpha , \beta } \in \mathbb { R } ^ { n \times R }$ whose $i$ -th row
|
| 213 |
+
|
| 214 |
+
169 170 al elements of the slic. Similarly, we define $( \mathcal { T } \times _ { 2 } \alpha ^ { T } \times _ { 3 } \beta ^ { T } ) _ { i , . , . }$ $X _ { \mathcal { T } ( 2 , 3 ) } ^ { \alpha , \beta } ( i , r ) ~ =$ $( \pmb { \mathcal { T } } \times _ { 2 } \pmb { \alpha } ^ { T } \times _ { 3 } \beta ^ { T } ) _ { i , r , r }$ $X _ { \mathcal { T } ( 1 , 2 ) } ^ { \alpha , \alpha } \in \mathbb { R } ^ { R \times M }$ $\boldsymbol { X } _ { \mathcal { T } ( 3 ) } ^ { \beta } \in \mathbb { R } ^ { n \times R }$ $X _ { T ( 1 , 2 ) } \in$ 171 $\mathbb { R } ^ { n \times M }$ , such that $X _ { \mathcal { T } ( 1 , 2 ) } ^ { \alpha , \alpha } ( r , m ) = ( \mathcal { T } \times _ { 1 } \alpha ^ { T } \times _ { 2 } \alpha ^ { T } ) _ { r , r , m }$ , $X _ { \mathcal { T } ( 3 ) } ^ { \beta } ( i , r ) = ( \mathcal { T } \times _ { 3 } \beta ^ { T } ) _ { i , i , r }$ , and 172 $X _ { \mathcal { T } ( 1 , 2 ) } ( i , m ) = \mathcal { T } _ { i , i , m }$ . Consequently, when the vertex membership matrix $z$ and the community 173 center matrix $C$ are fixed, we can derive the gradients of $\mathcal { L } _ { \lambda } ( \alpha , \beta ; \mathcal { A } )$ with respect to $_ { \pmb { \alpha } }$ and $\beta$ , as $\frac { 1 } { \varphi ( n , M ) } \big ( X _ { \mathcal { T } ( 2 , 3 ) } ^ { \alpha , \beta } + X _ { \mathcal { T } ( 3 ) } ^ { \beta } \ast \alpha \big ) + 2 \lambda _ { n } ( \alpha - Z C )$ and $\frac { 1 } { 2 \varphi ( n , M ) } \big ( ( X _ { \mathcal { T } ( 1 , 2 ) } ^ { \alpha , \alpha } ) ^ { T } + X _ { \mathcal { T } ( 1 , 2 ) } ^ { T } ( \alpha * \alpha ) \big ) ,$ 174 respectively. Herein, \* denotes the Hadamard product (entry-wise product) between two matrices.
|
| 215 |
+
|
| 216 |
+
Let 175 $( { \tilde { \alpha } } , { \tilde { \beta } } )$ denote the solution given by one-step gradient descent, we then project $( { \tilde { \alpha } } , { \tilde { \beta } } )$ onto 176 $\Omega _ { \alpha } \times \Omega _ { \beta }$ in the following steps.
|
| 217 |
+
|
| 218 |
+
Step 1. Multiply the $r$ -th column of $\tilde { \alpha } _ { . , r }$ by $| | \tilde { \beta } _ { . , r } | | ^ { 1 / 2 }$ for $r \in [ R ]$ . Denote the resultant matrix as $\tilde { \alpha } ^ { \prime }$
|
| 219 |
+
|
| 220 |
+
Step 2. Regularize each row of $_ { \pmb { \alpha } }$ as $\begin{array} { r } { \pmb { \alpha } _ { i , . } = \tilde { \pmb { \alpha } } _ { i , . } ^ { \prime } \operatorname* { m i n } \{ \sqrt { \log \frac { \xi } { 1 - \xi } } , | | \tilde { \pmb { \alpha } } _ { i , . } ^ { \prime } | | \} / | | \tilde { \pmb { \alpha } } _ { i , . } ^ { \prime } | | , \mathbf { f } } \end{array}$ or $i \in [ n ]$ .
|
| 221 |
+
|
| 222 |
+
Step 3. Normalize the columns of 179 $\beta$ as $\beta _ { . , r } = \tilde { \beta } _ { . , r } / | | \tilde { \beta } _ { . , r } | |$ , for $r \in [ R ]$ .
|
| 223 |
+
|
| 224 |
+
Next, when $( \alpha , \beta )$ are given, we apply a $( 1 + \delta )$ -approximation K-means algorithm on $\tilde { \alpha }$ to update the vertex community membership matrix $z$ and community center matrix $C$ .
|
| 225 |
+
|
| 226 |
+
182 The above steps will be alternatively conducted until convergence or reaching the maximum number
|
| 227 |
+
183 of iterations. We further summarized the developed alternative updated scheme in Algorithm 1 in
|
| 228 |
+
184 Appendix A of the supplementary materials
|
| 229 |
+
185 Several remarks on the algorithm are in order. First, Algorithm 1 can only be guaranteed to converge
|
| 230 |
+
186 to a stationary point but not any local minimizer. We hence employ a transformed higher order
|
| 231 |
+
187 orthogonal iteration (HOOI) algorithm for warm initialization in all the numerical experiments in
|
| 232 |
+
188 Section 4 and 5. Specifically, given a user-specific value $\tau$ , we define $\widetilde { \Theta }$ to mimic the magnitude
|
| 233 |
+
189 of $\Theta$ such that $\widetilde { \Theta } _ { i , j , m } = - \tau$ if $a _ { i , j , m } = 0$ and $\widetilde { \Theta } _ { i , j , m } = \tau$ otherwise. A standard HOOI algorithm
|
| 234 |
+
190 [11] is applied to $\Theta$ to obtain $\pmb { \alpha } ^ { ( 0 ) }$ and $\beta ^ { ( 0 ) }$ . We set $\tau = 1 0 0$ in all the numerical experiments.
|
| 235 |
+
191 Second, the sparsity factor $s _ { n }$ is an intrinsic quantity of the multi-layer network data, and it should be
|
| 236 |
+
192 estimated from the network directly. Note that the minimal and maximal probabilities for any vertex
|
| 237 |
+
193 pair to form an edge in any layer are $p _ { \operatorname* { m i n } } = ( 1 - \xi ) s _ { n }$ and $p _ { \operatorname* { m a x } } = \xi s _ { n }$ , respectively. Interestingly,
|
| 238 |
+
194 $p _ { \operatorname* { m i n } } + p _ { \operatorname* { m a x } } = s _ { n }$ , which does not depend on $\xi$ any more. Therefore, we propose to estimate $s _ { n }$ as
|
| 239 |
+
|
| 240 |
+
$$
|
| 241 |
+
\hat { s } _ { n } = \operatorname* { m i n } _ { i \in [ n ] } \frac { 1 } { n M } \sum _ { m = 1 } ^ { M } \sum _ { j = 1 } ^ { n } a _ { i , j , m } + \operatorname* { m a x } _ { i \in [ n ] } \frac { 1 } { n M } \sum _ { m = 1 } ^ { M } \sum _ { j = 1 } ^ { n } a _ { i , j , m } ,
|
| 242 |
+
$$
|
| 243 |
+
|
| 244 |
+
195 which is the sum of the minimal and maximal frequencies of a vertex to form edges with all other
|
| 245 |
+
196 vertices in all layers. Third, to optimally choose $\lambda _ { n }$ , we extend the network cross-validation by
|
| 246 |
+
197 edge sampling scheme in [30] to multi-layer networks. The detailed tuning procedure is relegated to
|
| 247 |
+
198 Appendix B in the supplementary materials.
|
| 248 |
+
|
| 249 |
+
# 3 Asymptotic theory
|
| 250 |
+
|
| 251 |
+
# 3.1 Consistency in estimating $\Theta ^ { * }$
|
| 252 |
+
|
| 253 |
+
201 Let $\begin{array} { r } { \lambda = \left\{ \Theta = \mathbb { Z } \times _ { 1 } { \pmb \alpha } \times _ { 2 } { \pmb \alpha } \times _ { 3 } \beta : { \pmb \alpha } \in \Omega _ { \pmb { \alpha } } , \beta \in \Omega _ { \beta } \right\} } \end{array}$ } be the parameter space of the problem and
|
| 254 |
+
202 203 $\Theta ^ { * } = \mathcal { T } \times _ { 1 } \pmb { \alpha } ^ { * } \times _ { 2 } \pmb { \alpha } ^ { * } \times _ { 3 } \beta ^ { * }$ $\begin{array} { r } { K L ( \boldsymbol { \Theta } ^ { * } | | \boldsymbol { \Theta } ) = \varphi ^ { - 1 } ( n , M ) \sum _ { m = 1 } ^ { M } \sum _ { i \leq j } E \bigl ( L ( \theta _ { i , j , m } ; a _ { i , j , m } ) - L ( \theta _ { i , j , m } ^ { * } ; a _ { i , j , m } ) \bigr ) } \end{array}$ ty tensor. Denote be the averaged
|
| 255 |
+
204 Kullback–Leibler divergence of the network generation distributions parametrized by and , for
|
| 256 |
+
205 any $\mathbf { \Theta } \Theta \in \Omega$ . The following large deviation inequality is derived to quantify the behavior of $\mathcal { L } _ { \lambda } ( \Theta ; \mathbf { \mathcal { A } } )$
|
| 257 |
+
206 for any $\Theta$ in the neighborhood of $\Theta ^ { * }$ defined by $\dot { K } L ( \Theta ^ { * } | | \Theta )$ .
|
| 258 |
+
|
| 259 |
+
Proposition 1. Suppose 207 $\lambda _ { n } J ( \alpha ^ { * } ) \leq \epsilon _ { n }$ , and $( n + M ) R \varphi ^ { - 1 } ( n , M ) \epsilon _ { n } ^ { - 1 } \log ( \epsilon _ { n } ^ { - 1 / 2 } ) \leq c _ { 1 }$ for some constant 208 $c _ { 1 }$ . Then with probability at lease $\begin{array} { r } { 1 - 2 \exp \Big ( - \frac { \varphi ( n , M ) \epsilon _ { n } } { 1 5 6 \frac { \xi } { 1 - \xi } + 2 8 \log 2 } \Big ) } \end{array}$ , we have
|
| 260 |
+
|
| 261 |
+
$$
|
| 262 |
+
\mathcal { L } _ { \lambda } ( \Theta ^ { * } ; \mathcal { A } ) \leq \operatorname* { i n f } _ { \substack { \{ \Theta \in \Omega \vert K L ( \Theta ^ { * } \vert \vert \Theta ) \geq 4 \epsilon _ { n } \} } } \mathcal { L } _ { \lambda } ( \Theta ; \mathcal { A } ) - \epsilon _ { n } .
|
| 263 |
+
$$
|
| 264 |
+
|
| 265 |
+
209 Proposition 1 basically states that any estimators with sufficiently small objective value should
|
| 266 |
+
210 be close enough to $\Theta ^ { * }$ in terms of $K \dot { L } ( \Theta ^ { * } | | \Theta )$ . We next study the asymptotic behavior of these
|
| 267 |
+
211 estimators more precisely. Let $( \hat { \alpha } , \hat { \beta } ) \in \Omega _ { \alpha } \times \Omega _ { \beta }$ be any estimator of $( \alpha ^ { * } , \beta ^ { * } )$ such that
|
| 268 |
+
|
| 269 |
+
$$
|
| 270 |
+
\begin{array} { r } { \mathcal L _ { \lambda } ( \hat { \alpha } , \hat { \beta } ; \mathcal A ) \le \mathcal L _ { \lambda } ( \alpha ^ { * } , \beta ^ { * } ; \mathcal A ) + \epsilon _ { n } , } \end{array}
|
| 271 |
+
$$
|
| 272 |
+
|
| 273 |
+
and denote 212 $\widehat { \Theta } = \mathcal { T } \times _ { 1 } \hat { \alpha } \times _ { 2 } \hat { \alpha } \times _ { 3 } \hat { \beta }$ . we have the following theorem.
|
| 274 |
+
|
| 275 |
+
Theorem 1. Under the condition of Proposition $^ { l }$ , $i f \left( { \hat { \alpha } } , { \hat { \beta } } \right)$ satisfies (8), then with probability at least $\begin{array} { r } { 1 - 2 \exp \Big ( - \frac { \varphi ( n , M ) \epsilon _ { n } } { 1 5 6 \frac { \xi } { 1 - \xi } + 2 8 \log 2 } \Big ) } \end{array}$ , we have
|
| 276 |
+
|
| 277 |
+
$$
|
| 278 |
+
\frac { 1 } { n \sqrt { M } } \| \widehat { \Theta } - \Theta ^ { * } \| _ { F } \leq \frac { 4 \sqrt { 2 } \sqrt { \epsilon _ { n } } } { ( 1 - \xi ) \sqrt { \xi s _ { n } } } .
|
| 279 |
+
$$
|
| 280 |
+
|
| 281 |
+
213 The condition that $\lambda _ { n } J ( \Theta ^ { * } ) ~ \le ~ \epsilon _ { n }$ in Proposition 1 is mild. It implies that the true em
|
| 282 |
+
214 beddings of vertices within the same community are close to one another. We remark that
|
| 283 |
+
215 $\lambda _ { n } J ( \Theta ^ { * } )$ exactly equals to zero under the MLSBM discussed in Section 2.2. The condition that
|
| 284 |
+
216 $( n + M ) R \varphi ^ { - 1 } ( n , M ) \epsilon _ { n } ^ { - 1 } \log ( \epsilon _ { n } ^ { - 1 / 2 } )$ vanishes with $n$ is also mild. When $R = O ( 1 )$ , we can take any
|
| 285 |
+
217 ϵn such that ϵn ≫ log nn min{n,M} . Consequently, to ensure $\widehat { \Theta }$ converges to $\Theta ^ { * }$ , Theorem 1 implies the
|
| 286 |
+
218 smallest sparsity factor one can take is $\begin{array} { r } { s _ { n } \gg \epsilon _ { n } \gg \frac { \log n } { n \operatorname* { m i n } \{ n , M \} } } \end{array}$ log nn min{n,M} , which means that the average degree
|
| 287 |
+
219 of a vertex in any particular layer can be as small as $n s _ { n }$ . We remark that a common assumption
|
| 288 |
+
220 $M = O ( n )$ that appears in literature, such as [27] and [22], is not necessary in our theory. If we
|
| 289 |
+
221 further assume $\bar { M } \stackrel { } { = } O ( n )$ , we find that the average degree of a vertex in any layer under the
|
| 290 |
+
222 proposed TLSM set up can be smaller than that in [27] by a factor $( M \log n ) ^ { - 1 / 2 }$ and in [22] by a
|
| 291 |
+
223 factor $( \log n ) ^ { - 3 }$ , showing that our theoretical result accommodates sparser multi-layer networks.
|
| 292 |
+
|
| 293 |
+
# 3.2 Consistency in community detection
|
| 294 |
+
|
| 295 |
+
We now turn to establish the consistency of community detection in multi-layer network $\mathcal { G }$ . Let $\psi ^ { * } : [ n ] \ \longrightarrow \ [ K ]$ be the true community assignment function such that $\begin{array} { r l } { \psi ^ { * } } & { { } = } \end{array}$ $\begin{array} { r l } & { \arg \operatorname* { m i n } _ { \psi } \operatorname* { m i n } _ { C _ { 1 } , \ldots , C _ { K } } \sum _ { i = 1 } ^ { n } \| \pmb { \alpha } _ { i } ^ { * } - C _ { \psi _ { i } } \| ^ { 2 } } \end{array}$ , and then the community detection error of any estimated community assignment function $\hat { \psi }$ can be evaluated by the minimum scaled Hamming distance between $\hat { \psi }$ and $\psi ^ { * }$ under permutations, which is defined as
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\operatorname { e r r } ( \psi ^ { * } , \hat { \psi } ) = \operatorname* { m i n } _ { \pi \in S _ { K } } \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \mathbf { 1 } \{ \psi _ { i } ^ { * } \neq \pi ( \hat { \psi } _ { i } ) \} ,
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
230 where $\mathbf { 1 } \{ \cdot \}$ is the indicator function and $S _ { K }$ is the symmetric group of degree $K$ . Such a scaled
|
| 302 |
+
231 or unscaled Hamming distance has become a popular metric in quantifying the performance of
|
| 303 |
+
232 community detection [21, 22].
|
| 304 |
+
233 Denote $N _ { k } ^ { * } = \{ i : \psi _ { i } ^ { * } = k \}$ be the $k$ -th true underlying community whose cardinality is $n _ { k }$ . Let
|
| 305 |
+
234 $C ^ { * } \in \mathbb { R } ^ { K \times R }$ be the true underlying community centers of the network embedding with $C _ { k . } ^ { * } =$
|
| 306 |
+
235 $\begin{array} { r } { \frac { 1 } { n _ { k } } \sum _ { \psi _ { i } ^ { * } = k } \alpha _ { i . } ^ { * } } \end{array}$ , and let $\pmb { \mathcal { B } } ^ { \ast } = \pmb { \mathcal { T } } \times _ { 1 } \pmb { C } ^ { \ast } \times _ { 2 } \pmb { C } ^ { \ast } \times _ { 3 } \pmb { \beta } ^ { \ast }$ . The following assumptions are made to ensure
|
| 307 |
+
236 that communities within the multi-layer networks are asymptotically identifiable.
|
| 308 |
+
|
| 309 |
+
Assumption A. Assume the difference between any two distinct horizontal slides of 37 ${ \pmb { \beta } } ^ { * }$ satisfies that
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
\operatorname* { m i n } _ { k , k ^ { \prime } \in [ K ] , k \neq k ^ { \prime } } \frac { 1 } { \sqrt { K M } } \| \pmb { \mathscr { B } } _ { k , . , . } ^ { * } - \pmb { \mathscr { B } } _ { k ^ { \prime } , . , . } ^ { * } \| _ { F } \geq \gamma _ { n } ,
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
238 where $\gamma _ { n } > 0$ may vanish with $n$
|
| 316 |
+
|
| 317 |
+
Assumption B. Assume the tuning parameter $\lambda _ { n }$ satisfies that
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\begin{array} { r } { \lambda _ { n } \epsilon _ { n } s _ { n } ^ { - 2 } ( \log s _ { n } ^ { - 1 } ) ^ { - 1 } \geq c _ { 2 } , } \end{array}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
for an absolute constant $c _ { 2 }$ that does not depend on any model parameter.
|
| 324 |
+
|
| 325 |
+
Assumption C. Denote $n _ { \mathrm { m i n } } = \mathrm { m i n } _ { k \in [ K ] } n _ { k }$ as the minimal community size. Assume
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
\frac { \gamma _ { n } n _ { \mathrm { m i n } } \sqrt { \cal K } } { n } \geq c _ { \xi } \sqrt { \frac { \epsilon _ { n } } { s _ { n } } } ,
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
where cξ =240 $\begin{array} { r } { c _ { \xi } = \frac { 4 \sqrt 2 } { ( 1 - \xi ) \sqrt \xi } + c _ { 3 } \sqrt { \frac { ( 1 + \delta ) \operatorname* { m i n } \{ M , R \} } { M } } } \end{array}$ and $c _ { 3 }$ is a constant that depends on $\xi$ only.
|
| 332 |
+
|
| 333 |
+
241 Assumption A is the minimal community separation requirement, and similar assumption has been
|
| 334 |
+
242 employed in [27] with a constant $\gamma _ { n }$ . Together with the condition $\lambda _ { n } J ( \alpha ^ { * } ) \leq \epsilon _ { n }$ in Proposition 1,
|
| 335 |
+
243 Assumption B gives a feasible interval for $\lambda _ { n }$ . Assumption $\textrm { C }$ allows for unbalanced communities
|
| 336 |
+
244 with vanishing $n _ { \mathrm { m i n } } / n$ if the network is not too sparse. Note that $c _ { \xi }$ can be further bounded by
|
| 337 |
+
245 $\begin{array} { r } { \frac { 4 \sqrt { 2 } } { ( 1 - \xi ) \sqrt { \xi } } + c _ { 3 } \sqrt { 1 + \delta } } \end{array}$ , and the first term of $c _ { \xi }$ will dominate the second term if $R = o ( M )$ .
|
| 338 |
+
|
| 339 |
+
Theorem 2. Suppose all the assumptions in Theorem $^ { l }$ as well as Assumptions $A , B$ and $C$ are satisfied, it holds true that
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
e r r ( \psi ^ { * } , \hat { \psi } ) \leq \frac { c _ { \xi } ^ { 2 } n \epsilon _ { n } } { n _ { \mathrm { m i n } } K \gamma _ { n } ^ { 2 } s _ { n } } ,
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
with probability at least 246 $\begin{array} { r } { 1 - \frac { 1 } { n ^ { 2 } } - 2 \exp \Big ( - \frac { \varphi ( n , M ) \epsilon _ { n } } { 1 5 6 \frac { \xi } { 1 - \xi } + 2 8 \log 2 } \Big ) . } \end{array}$
|
| 346 |
+
|
| 347 |
+
Theorem 2 assures that the community structure in a multi-layer network can be consistently recovered by the proposed TLSM. As a theoretical example, we consider a sparse case with $\begin{array} { r } { s _ { n } = \dot { \frac { ( \log n ) ^ { 1 + \tau _ { 1 } } } { n \operatorname* { m i n } \{ n , M \} } } } \end{array}$ , where $0 < \tau _ { 1 } < 1$ , $n _ { \mathrm { m a x } } = O ( n _ { \mathrm { m i n } } )$ , $\begin{array} { r } { \frac { 1 } { \sqrt { n } } | | \alpha ^ { * } - Z ^ { * } C ^ { * } | | _ { F } \leq ( \log n ) ^ { - 3 / 2 } } \end{array}$ , and both $\gamma _ { n }$ , $R$ and $K$ are of constant orders. With $\begin{array} { r } { \lambda _ { n } = \frac { ( \log n ) ^ { 2 + 2 \tau _ { 1 } } } { n \operatorname* { m i n } \{ n , M \} } } \end{array}$ , Theorems 1 and 2 imply that $\begin{array} { r } { \epsilon _ { n } = \frac { ( \log n ) ^ { 1 + \tau _ { 2 } } } { n \operatorname* { m i n } \{ n , M \} } } \end{array}$ with $0 < \tau _ { 2 } < \tau _ { 1 }$ and $e r r ( \psi ^ { * } , \hat { \psi } ) = o _ { p } ( 1 )$ .
|
| 348 |
+
|
| 349 |
+
# 52 4 Numerical experiments
|
| 350 |
+
|
| 351 |
+
In this section, we evaluate the numerical performance of the proposed TLSM in a variety of synthetic as well as real-life multi-layer networks, compare it against four competitors in literature, including the mean adjacency spectral embeddings (MASE; 16), least square estimation (LSE; 27), Tucker decomposition with HOSVD initialization (HOSVD-Tucker; 22), and spectral kernel (SPECK; 35), and conduct some ablation studies. The implementations of LSE and SPECK are available at the authors’ personal websites, HOSVD-Tucker is implemented in the routine “tucker" of the Python package “tensorly", and TLSM and MASE are implemented in Python by ourselves.
|
| 352 |
+
|
| 353 |
+
# 4.1 Synthetic networks
|
| 354 |
+
|
| 355 |
+
The multi-layer network $\mathcal { A } = ( a _ { i , j , m } ) \in \{ 0 , 1 \} ^ { n \times n \times M }$ is generated as follows. First, we randomly select $K = 4$ elements uniformly from $\{ 2 . 5 * ( b _ { 1 } , b _ { 2 } , \ldots , b _ { R } ) : b _ { r } \in \{ - 1 , 1 \} , r \in [ R ] \}$ as community centers, which are denoted as $c _ { k }$ , $k \in [ K ]$ . Second, the latent space embedding of vertex $i$ is generated as $\pmb { \alpha } _ { i } = \pmb { c } _ { \psi _ { i } } + \pmb { e } _ { i }$ with $\pmb { e } _ { i } \sim N ( \mathbf { 0 } _ { R } , 1 . 5 * I _ { R } )$ , and $\psi _ { i } \in [ K ]$ are independently drawn from the multinomial distribution $\mathbf { M u l t i } ( 1 ; \frac { 1 } { K } \mathbf { 1 } _ { K } )$ . Third, we generate $\beta = [ \beta _ { 1 } , \ldots , \beta _ { M } ] ^ { T }$ with $\beta _ { m , r }$ being independent standard normal random varibeles, for $m \in [ M ]$ and $r \in [ R ]$ . We then rescale the column norms of $\beta$ to be 1 for model identifiability. Finally, we generate $\mathcal { A }$ according to the proposed TLSM with $s _ { n } = 0 . 1$ . For the sake of fair comparisons, the embedding dimension $R$ is set as $K$ in all scenarios. We aim to illustrate the community detection performance of all methods as the number of vertices and number of layers increase. To this end, we consider $( n , M ) \in \{ 2 0 0 , 4 0 0 , 6 0 0 , 8 0 0 \} \times \{ 5 , 1 0 , 1 5 , 2 0 \}$ . The averaged hamming errors and their standard errors over 50 independent experiments of all methods are reported in Table 1.
|
| 356 |
+
|
| 357 |
+
273 It is evident that TLSM consistently outperforms its competitors, and the performances of LSE
|
| 358 |
+
274 and HOSVD-Tucker are better than those of MASE and SPECK. This is expected since TLSM,
|
| 359 |
+
275 LSE and HOSVD-Tucker work on the multi-layer network adjacency tensor directly, while MASE
|
| 360 |
+
276 and SPECK are matrix aggregation methods that suffer form information loss. Furthermore, as the
|
| 361 |
+
277 number of vertices and number of layers increase, the community detection errors of all methods
|
| 362 |
+
278 decrease rapidly. Notably, TLSM and LSE converge faster than the other methods, and attain stable
|
| 363 |
+
279 performance even for relatively small $n$ and $M$ . Additional simulation studies for various network
|
| 364 |
+
280 sparsity and unbalanced community sizes are relegated to Appendix C in the supplementary materials.
|
| 365 |
+
|
| 366 |
+
# 4.2 Real-life networks
|
| 367 |
+
|
| 368 |
+
282 We also apply the proposed TLSM method to analyze three real-life multi-layer networks, including
|
| 369 |
+
283 a social network in the department of Computer Science at Aarhus University (AUCS) [38], a yeast
|
| 370 |
+
284 Saccharomyces cerevisiae gene co-expression (YSCGC) network [44], and a worldwide agriculture
|
| 371 |
+
285 trading network (WAT) [10]. Specifically, we conduct community detection on the first two networks
|
| 372 |
+
286 whose vertex community memberships are available, and carry out a link prediction task on the third
|
| 373 |
+
287 network whose vertex community memberships are unavailable.
|
| 374 |
+
|
| 375 |
+
Table 1: The averaged hamming errors of various methods with their standard errors in Scenario I. The best performer in each case is bold-faced.
|
| 376 |
+
|
| 377 |
+
<table><tr><td>n</td><td>M</td><td>TLSM</td><td>LSE</td><td>MASE</td><td>HOSVD-Tucker</td><td>SPECK</td></tr><tr><td rowspan="4">200</td><td>5</td><td>0.1180(0.0147)</td><td>0.1405(0.0118)</td><td>0.5086(0.0136)</td><td>0.1623(0.0126)</td><td>0.4254(0.0138)</td></tr><tr><td>10</td><td>0.0585(0.0046)</td><td>0.0751(0.0050)</td><td>0.4949(0.0131)</td><td>0.1148(0.0106)</td><td>0.2996(0.0141)</td></tr><tr><td>15</td><td>0.0551(0.0067)</td><td>0.0593(0.0045)</td><td>0.4910(0.0176)</td><td>0.1040(0.0115)</td><td>0.2505(0.0142)</td></tr><tr><td>20</td><td>0.0510(0.0037)</td><td>0.0588(0.0043)</td><td>0.4977(0.0161)</td><td>0.1023(0.0110)</td><td>0.1942(0.0156)</td></tr><tr><td rowspan="4">400</td><td>5</td><td>0.0653(0.0066)</td><td>0.1019(0.0087)</td><td>0.3845(0.0193)</td><td>0.1220(0.0106)</td><td>0.3766(0.0195)</td></tr><tr><td>10</td><td>0.0608(0.0063)</td><td>0.0636(0.0037)</td><td>0.3859(0.0160)</td><td>0.1012(0.0092)</td><td>0.2244(0.0191)</td></tr><tr><td>15</td><td>0.0511(0.0031)</td><td>0.0595(0.0036)</td><td>0.3844(0.0221)</td><td>0.0787(0.0051)</td><td>0.1490(0.0123)</td></tr><tr><td>20</td><td>0.0536(0.0047)</td><td>0.0551(0.0036)</td><td>0.3985(0.0185)</td><td>0.0795(0.0063)</td><td>0.1409(0.0131)</td></tr><tr><td rowspan="4">600</td><td>5</td><td>0.0607(0.0029)</td><td>0.0909(0.0040)</td><td>0.3665(0.0186)</td><td>0.1221(0.0108)</td><td>0.3038(0.0193)</td></tr><tr><td>10</td><td>0.0567(0.0029)</td><td>0.0688(0.0031)</td><td>0.3726(0.0179)</td><td>0.1003(0.0081)</td><td>0.1651(0.0127)</td></tr><tr><td>15</td><td>0.0558(0.0027)</td><td>0.0630(0.0030)</td><td>0.3803(0.0167)</td><td>0.0918(0.0076)</td><td>0.1231(0.0076)</td></tr><tr><td>20</td><td>0.0548(0.0028)</td><td>0.0586(0.0029)</td><td>0.3814(0.0185)</td><td>0.0883(0.0078)</td><td>0.1150(0.0088)</td></tr><tr><td rowspan="4">800</td><td>5</td><td>0.0556(0.0056)</td><td>0.0768(0.0055)</td><td>0.3012(0.0194)</td><td>0.1003(0.0103)</td><td>0.2733(0.0171)</td></tr><tr><td>10</td><td>0.0560(0.0063)</td><td>0.0583(0.0034)</td><td>0.3004(0.0177)</td><td>0.0788(0.0065)</td><td>0.1424(0.0127)</td></tr><tr><td>15</td><td>0.0498(0.0030)</td><td>0.0539(0.0033)</td><td>0.3179(0.0195)</td><td>0.0812(0.0068)</td><td>0.1146(0.0098)</td></tr><tr><td>20</td><td>0.0485(0.0031)</td><td>0.0516(0.0032)</td><td>0.3184(0.0218)</td><td>0.0803(0.0075)</td><td>0.0979(0.0078)</td></tr></table>
|
| 378 |
+
|
| 379 |
+
The AUCS dataset is publicly available at http://multilayer.it.uu.se/datasets.html, and it is a $6 1 \times 6 1 \times 5$ multi-layer network that records pairwise relationships of 5 types among 61 persons in AUCS, including current working relationships, repeated leisure activities, regularly eating lunch together, co-authorship of a publication, and friendship on Facebook. Since 54 persons in the dataset come from 7 research groups and the other 7 persons do not belong to any group, the dataset consists of 8 communities corresponding to 7 research groups and an outlier community. Applying TLSM and its competitors to the dataset, the number of misclassified vertices by TLSM, LSE, MASE, HOSVD-Tucker and SPECK, are 8, 21, 19, 23, 18, respectively. Clearly, TLSM significantly outperforms its competitors by at least reducing $1 6 . 3 9 \%$ of community detection error.
|
| 380 |
+
|
| 381 |
+
The YSCGC dataset is publicly available at https://www.ncbi.nlm.nih.gov/pmc/articles/ $\mathtt { P M C 1 5 6 5 9 0 } /$ , and contains 205 genes of 4 functional categories, including protein metabolism and modification, carbohydrate metabolism and catabolism, nucleobase, nucleoside, nucleotide and nucleic acide metabolism, as well as transportation. We regard these four functional category labels as the community memberships of the genes. Further, the gene expression responses are measured by 20 systematic perturbations with varying genetic and environmental conditions in 4 replicated hybridizations. We thus constructed a gene co-expression network $\mathcal { A } = ( a _ { i , j , m } ) \in$ $\mathbb { R } ^ { 2 0 \bar { 5 } \times 2 0 5 \times 4 }$ based on the similarities of their expressions, where each layer represents one replicated hybridization. Specifically, the similarity between genes $i$ and $j$ in the $m$ -th replication is measured by $w _ { i , j , m } = \mathrm { e x p } \big ( - \| \pmb { x } _ { i } ^ { ( m ) } - \pmb { x } _ { j } ^ { ( m ) } \| \big )$ , where $\pmb { x } _ { i } ^ { ( m ) } \in \mathbb { R } ^ { 2 0 }$ contains the expression levels of 20 perturbations in the $m$ -th replicated hybridization for $i \in [ 2 0 5 ]$ and $m \in [ 4 ]$ . The binary value $a _ { i , j , m }$ is obtained by thresholding $w _ { i , j , m }$ with the thresholding value being the $60 \%$ quantile of all elements in $\{ w _ { i , j , m } : i \le j \in [ 2 0 5 ] , m \in [ 4 ] \}$ . Applying TLSM and its competitors to this dataset, the number of misclassified vertices by TLSM, LSE, MASE, HOSVD-Tucker and SPECK, are 6, 9, 12, 48, 13, respectively. TLSM again outperforms its competitors in this YSCGC dataset.
|
| 382 |
+
|
| 383 |
+
312 The WAT dataset is publicly available at http://www.fao.org, and includes 364 agriculture
|
| 384 |
+
313 product trading relationships among 214 countries in 2010. To process the data, we extract 130 major
|
| 385 |
+
314 countries whose average degrees are greater than 9 from the 32 densest connected agriculture product
|
| 386 |
+
315 trading relations, leading to a $1 3 0 \times 1 3 0 \times 3 2$ multi-layer network. Investigating the eigen-structure
|
| 387 |
+
316 of the mode-1 matricization of the network adjacency tensor, we identify an elbow point [20] at the
|
| 388 |
+
317 7th largest eigen-value, suggesting there are 6 potential communities among the countries, and thus
|
| 389 |
+
318 we set $K = 6$ . The corresponding eigen-value plot is attached in Appendex D of the supplementary
|
| 390 |
+
319 materials. We then randomly selected $8 0 \%$ of the entries of the adjacency tensor as the training set,
|
| 391 |
+
320 and conduct link prediction on the remaining $2 0 \%$ of the entries. Specifically, we employ TLSM
|
| 392 |
+
321 and the adaptations of its competitors to estimate the network expected tensor $\mathcal { P }$ and generate
|
| 393 |
+
322 estimations for the missing entries by independent Bernoulli random variables accordingly. The
|
| 394 |
+
323 averaged link prediction accuracy of TLSM, LSE, MASE, HOSVD-Tucker and SPECK over 50
|
| 395 |
+
324 independent replications are $7 9 . 6 0 \%$ , $7 6 . 6 6 \%$ , $7 5 . 9 6 \%$ , $7 7 . 7 8 \%$ and $7 9 . 0 8 \%$ , respectively, where the
|
| 396 |
+
325 link prediction accuracy is defined as the percentile of the correctly predicted entries. Clearly, all 5
|
| 397 |
+
326 methods are comparative in terms of link prediction, while TLSM still deliver highest averaged link
|
| 398 |
+
327 prediction accuracy.
|
| 399 |
+
|
| 400 |
+
# 328 4.3 Ablation studies
|
| 401 |
+
|
| 402 |
+
In this subsection, we carry out some ablation studies on two novel components of the proposed method, namely the sparsity factor $s _ { n }$ and the community-inducing regularizer $J ( \alpha )$ . To study the effectiveness of $s _ { n }$ , we generate a $3 0 0 \times 3 0 0 \times 5$ multi-layer network with 3 communities and the true network sparsity $s _ { n } = 0 . 3$ . The blue curve in the left panel of Figure 1 shows the average Hamming error of 50 independent replications given by the proposed method when employing $\hat { s } _ { n } \in \{ 0 . 0 5 i : i \in [ 2 0 ] \}$ in the optimization algorithm, and the red line indicates the averaged Hamming error of the proposed method with $\hat { s } _ { n }$ estimated via the proposed data-adapted estimation scheme. It is clear that the Hamming error at $s _ { n } = 1$ is much larger than that when $s _ { n }$ is close to 0.3, showing the advantages of the modified logit transformation by $s _ { n }$ over the standard logit transformation when the network indeed reveals sparse pattern. Moreover, we observe that the red line is even lower than the minimum Hamming error in the blue curve. This further confirms the effectiveness of the proposed data-adapted estimation scheme for estimating $s _ { n }$ .
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
Figure 1: Ablation studies on $s _ { n }$ (left) and community-inducing regularizer (right).
|
| 406 |
+
|
| 407 |
+
341 To study the effectiveness of the community-inducing regularizer in the proposed objective function,
|
| 408 |
+
342 we generate an $n \times n \times 5$ multi-layer network with 2 communities, for $\overline { { n } } \in \{ 5 0 , 1 0 \mathrm { { 0 } } , 2 0 0 , 4 0 0 \}$ . In
|
| 409 |
+
343 the right panel of Figure 1, the black pillars indicate the network estimation error $\frac { 1 } { n \sqrt { 5 } } \| \widehat { \Theta } - \Theta ^ { * } \| _ { F }$
|
| 410 |
+
344 given by the proposed method with $\lambda _ { n } = 0$ which corresponds to the absence of $J ( \alpha )$ , while the
|
| 411 |
+
345 red ones indicate the counterparts given by the proposed method with $\lambda _ { n }$ is selected by network
|
| 412 |
+
346 cross-validation. There is a clear improvement when the community-inducing regularizer is enforced
|
| 413 |
+
347 in all scenarios, particularly for small $n$ . This showcases the helpfulness of the community-inducing
|
| 414 |
+
348 regularizer in detecting network community structure.
|
| 415 |
+
|
| 416 |
+
# 349 5 Conclusions
|
| 417 |
+
|
| 418 |
+
50 In this paper, we propose a novel tensor-based latent space model for community detection in
|
| 419 |
+
51 multi-layer networks. The model embeds vertices into a low-dimensional latent space and views
|
| 420 |
+
52 the community structure from an network embedding perspective, so that heterogeneous structures
|
| 421 |
+
53 in different network layers can be properly integrated. The proposed model is formulated as a
|
| 422 |
+
54 regularization framework, which conducts multi-layer network estimation and community detection
|
| 423 |
+
55 simultaneously. The advantages of the proposed method are supported by extensive numerical
|
| 424 |
+
56 experiments and theoretical results. Particularly, the asymptotic consistencies of the proposed method
|
| 425 |
+
57 are established in terms of both multi-layer network estimation and community detection, even for
|
| 426 |
+
58 relatively sparse networks.
|
| 427 |
+
|
| 428 |
+
359 References [1] Luiz GA Alves, Giuseppe Mangioni, Isabella Cingolani, Francisco Aparecido Rodrigues, Pietro Panzarasa, and Yamir Moreno. The nested structural organization of the worldwide trade multi-layer network. Scientific reports, 9(1):1–14, 2019. [2] Jesús Arroyo, Avanti Athreya, Joshua Cape, Guodong Chen, Carey E Priebe, and Joshua T Vogelstein. Inference for multiple heterogeneous networks with a common invariant subspace. Journal of Machine Learning Research, 22(142):1–49, 2021. [3] Avanti Athreya, Donniell E Fishkind, Minh Tang, Carey E Priebe, Youngser Park, Joshua T Vogelstein, Keith Levin, Vince Lyzinski, and Yichen Qin. Statistical inference on random dot product graphs: a survey. The Journal of Machine Learning Research, 18(1):8393–8484, 2017. [4] Matteo Barigozzi, Giorgio Fagiolo, and Giuseppe Mangioni. Identifying the community structure of the international-trade multi-network. Physica A: statistical mechanics and its applications, 390(11):2051–2066, 2011. [5] Michele Berlingerio, Fabio Pinelli, and Francesco Calabrese. Abacus: frequent pattern miningbased community discovery in multidimensional networks. Data Mining and Knowledge Discovery, 27(3):294–320, 2013. [6] Sharmodeep Bhattacharyya and Shirshendu Chatterjee. Spectral clustering for multiple sparse networks: I. arXiv preprint arXiv:1805.10594, 2018. [7] Han Chen, Garvesh Raskutti, and Ming Yuan. Non-convex projected gradient descent for generalized low-rank tensor regression. Journal of Machine Learning Research, 20:1–37, 2019. [8] Zitai Chen, Chuan Chen, Zibin Zheng, and Yi Zhu. Tensor decomposition for multilayer networks clustering. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3371–3378, 2019. [9] Eric C Chi, Brian R Gaines, Will Wei Sun, Hua Zhou, and Jian Yang. Provable convex co-clustering of tensors. Journal of Machine Learning Research, 21(214):1–58, 2020. [10] Manlio De Domenico, Vincenzo Nicosia, Alexandre Arenas, and Vito Latora. Structural reducibility of multilayer networks. Nature communications, 6(1):1–9, 2015.
|
| 429 |
+
386 [11] Lieven De Lathauwer, Bart De Moor, and Joos Vandewalle. On the best rank-1 and rank-(r 1, r 2,..., rn) approximation of higher-order tensors. SIAM journal on Matrix Analysis and Applications, 21(4):1324–1342, 2000. [12] Xiaowen Dong, Pascal Frossard, Pierre Vandergheynst, and Nikolai Nefedov. Clustering with multi-layer graphs: A spectral perspective. IEEE Transactions on Signal Processing, 60(11):5820–5831, 2012. [13] Junxian Geng, Anirban Bhattacharya, and Debdeep Pati. Probabilistic community detection with unknown number of communities. Journal of the American Statistical Association, 114(526):893–905, 2019.
|
| 430 |
+
395 [14] Mahsa Ghorbani, Mahdieh Soleymani Baghshah, and Hamid R Rabiee. Mgcn: semi-supervised classification in multi-layer graphs with graph convolutional networks. In Proceedings of the 2019 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining, pages 208–211, 2019. [15] Derek Greene and Pádraig Cunningham. Producing a unified graph representation from multiple social network views. In Proceedings of the 5th annual ACM web science conference, pages 118–121, 2013. [16] Qiuyi Han, Kevin Xu, and Edoardo Airoldi. Consistent estimation of dynamic and multi-layer block models. In International Conference on Machine Learning, pages 1511–1520. PMLR, 2015. [17] Xin He, Qiong Liu, and You Yang. Mv-gnn: Multi-view graph neural network for compression artifacts reduction. IEEE Transactions on Image Processing, 29:6829–6840, 2020.
|
| 431 |
+
[18] Peter D Hoff, Adrian E Raftery, and Mark S Handcock. Latent space approaches to social network analysis. Journal of the American Statistical Association, 97(460):1090–1098, 2002.
|
| 432 |
+
[19] Paul W Holland, Kathryn Blackmond Laskey, and Samuel Leinhardt. Stochastic blockmodels: First steps. Social networks, 5(2):109–137, 1983.
|
| 433 |
+
[20] Pengsheng Ji and Jiashun Jin. Coauthorship and citation networks for statisticians. The Annals of Applied Statistics, 10(4):1779–1812, 2016.
|
| 434 |
+
[21] Jiashun Jin. Fast community detection by score. Ann. Statist., 43(1):57–89, 02 2015.
|
| 435 |
+
[22] Bing-Yi Jing, Ting Li, Zhongyuan Lyu, and Dong Xia. Community detection on mixture multilayer networks via regularized tensor decomposition. The Annals of Statistics, 49(6):3181– 3205, 2021.
|
| 436 |
+
[23] Muhammad Raza Khan and Joshua E Blumenstock. Multi-gcn: Graph convolutional networks for multi-view networks, with applications to global poverty. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 606–613, 2019.
|
| 437 |
+
[24] Tamara G. Kolda and Brett W. Bader. Tensor decompositions and applications. SIAM Review, 51:455–500, 2009.
|
| 438 |
+
[25] Joseph B Kruskal. Three-way arrays: rank and uniqueness of trilinear decompositions, with application to arithmetic complexity and statistics. Linear algebra and its applications, 18(2):95– 138, 1977.
|
| 439 |
+
[26] Jing Lei. Tail bounds for matrix quadratic forms and bias adjusted spectral clustering in multi-layer stochastic block models. arXiv preprint arXiv:2003.08222, 2020.
|
| 440 |
+
[27] Jing Lei, Kehui Chen, and Brian Lynch. Consistent community detection in multi-layer network data. Biometrika, 107(1):61–73, 2020.
|
| 441 |
+
[28] Jing Lei and Alessandro Rinaldo. Consistency of spectral clustering in stochastic block models. The Annals of Statistics, 43(1):215–237, 2015.
|
| 442 |
+
[29] Dong Li, Zhisong Pan, Guyu Hu, Graham Anderson, and Shan He. Active module identification from multilayer weighted gene co-expression networks: a continuous optimization approach. IEEE/ACM transactions on computational biology and bioinformatics, 2020.
|
| 443 |
+
[30] Tianxi Li, Elizaveta Levina, and Ji Zhu. Network cross-validation by edge sampling. Biometrika, 107(2):257–276, 2020.
|
| 444 |
+
[31] Xueming Liu, Enrico Maiorino, Arda Halu, Kimberly Glass, Rashmi B Prasad, Joseph Loscalzo, Jianxi Gao, and Amitabh Sharma. Robustness and lethality in multilayer biological molecular networks. Nature communications, 11(1):1–12, 2020.
|
| 445 |
+
[32] Zhongyuan Lyu, Dong Xia, and Yuan Zhang. Latent space model for higher-order networks and generalized tensor decomposition. arXiv preprint arXiv:2106.16042, 2021.
|
| 446 |
+
[33] Zhuang Ma, Zongming Ma, and Hongsong Yuan. Universal latent space model fitting for large networks with edge covariates. Journal of Machine Learning Research, 21(4):1–67, 2020.
|
| 447 |
+
[34] Subhadeep Paul and Yuguo Chen. Consistent community detection in multi-relational data through restricted multi-layer stochastic blockmodel. Electronic Journal of Statistics, 10(2):3807–3870, 2016.
|
| 448 |
+
[35] Subhadeep Paul and Yuguo Chen. Spectral and matrix factorization methods for consistent community detection in multi-layer networks. Ann. Statist., 48(1):230–250, 02 2020.
|
| 449 |
+
[36] Subhadeep Paul and Yuguo Chen. Null models and community detection in multi-layer networks. Sankhya A, pages 1–55, 2021.
|
| 450 |
+
[37] Zhuo-Ming Ren, An Zeng, and Yi-Cheng Zhang. Bridging nestedness and economic complexity in multilayer world trade networks. Humanities and Social Sciences Communications, 7(1):1–8, 2020.
|
| 451 |
+
[38] Luca Rossi and Matteo Magnani. Towards effective visual analytics on multiplex and multilayer networks. Chaos, Solitons & Fractals, 72:68–76, 2015.
|
| 452 |
+
[39] Uday Shankar Shanthamallu, Jayaraman J Thiagarajan, Huan Song, and Andreas Spanias. Gramme: Semisupervised learning using multilayered graph attention models. IEEE transactions on neural networks and learning systems, 31(10):3977–3988, 2019.
|
| 453 |
+
[40] Nicholas D Sidiropoulos and Rasmus Bro. On the uniqueness of multilinear decomposition of n-way arrays. Journal of Chemometrics: A Journal of the Chemometrics Society, 14(3):229–239, 2000.
|
| 454 |
+
[41] Wei Tang, Zhengdong Lu, and Inderjit S Dhillon. Clustering with multiple graphs. In 2009 Ninth IEEE International Conference on Data Mining, pages 1016–1021. IEEE, 2009.
|
| 455 |
+
[42] Edwin JCG Van Den Oord and Ronan Van Rossem. Differences in first graders’ school adjustment: The role of classroom characteristics and social structure of the group. Journal of School Psychology, 40(5):371–394, 2002.
|
| 456 |
+
[43] James D Wilson, John Palowitch, Shankar Bhamidi, and Andrew B Nobel. Community extraction in multilayer networks with heterogeneous community structure. The Journal of Machine Learning Research, 18(1):5458–5506, 2017.
|
| 457 |
+
[44] Ka Yee Yeung, Mario Medvedovic, and Roger E Bumgarner. Clustering gene-expression data with repeated measurements. Genome biology, 4(5):1–17, 2003.
|
| 458 |
+
[45] Yubai Yuan and Annie Qu. Community detection with dependent connectivity. The Annals of Statistics, 49(4):2378–2428, 2021.
|
| 459 |
+
[46] Jingfei Zhang, Will Wei Sun, and Lexin Li. Network response regression for modeling population of networks with covariates. arXiv preprint arXiv:1810.03192, 2018.
|
| 460 |
+
[47] Xuefei Zhang, Songkai Xue, and Ji Zhu. A flexible latent space model for multilayer networks. In International Conference on Machine Learning, pages 11288–11297. PMLR, 2020.
|
| 461 |
+
[48] Yunpeng Zhao, Elizaveta Levina, and Ji Zhu. Consistency of community detection in networks under degree-corrected stochastic block models. The Annals of Statistics, 40(4):2266–2292, 2012.
|
| 462 |
+
[49] Wei Zheng, Dingjie Wang, and Xiufen Zou. Control of multilayer biological networks and applied to target identification of complex diseases. BMC bioinformatics, 20(1):1–12, 2019.
|
| 463 |
+
|
| 464 |
+
# Checklist
|
| 465 |
+
|
| 466 |
+
1. For all authors...
|
| 467 |
+
|
| 468 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See the abstract and the third paragrath of the introduction.
|
| 469 |
+
(b) Did you describe the limitations of your work? [Yes] The optimization algorithm can only be guaranteed to converge to a stationary point.
|
| 470 |
+
(c) Did you discuss any potential negative societal impacts of your work? [No] There should be no negative societal impacts.
|
| 471 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 472 |
+
|
| 473 |
+
2. If you are including theoretical results...
|
| 474 |
+
|
| 475 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 3. (b) Did you include complete proofs of all theoretical results? [Yes] All technical proofs are provided in Appendix E of the supplementary materials.
|
| 476 |
+
|
| 477 |
+
3. If you ran experiments...
|
| 478 |
+
|
| 479 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] The URLs for data are included in Section 4.2, and codes with instructions are included in the supplementary materials.
|
| 480 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 2.3 and Appendix B in the supplementary materials.
|
| 481 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We show the standard erros in Table 1 and $9 5 \%$ confident intervals of additional simulation studies in Appendix C in the supplementary materials.
|
| 482 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [No]
|
| 483 |
+
|
| 484 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 485 |
+
|
| 486 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] We used publicly available datasets and cite the creators.
|
| 487 |
+
(b) Did you mention the license of the assets? [Yes] All datasets we used are publicly available.
|
| 488 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No]
|
| 489 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No]
|
| 490 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] All data we used do not contains personally identifiable information or offensive content.
|
| 491 |
+
|
| 492 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 493 |
+
|
| 494 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 495 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 496 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/1ODSsnoMBav/1ODSsnoMBav_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89db136b58a44761841daec3d5eb73e8e66b34e7ef3a2ad72157a1565e550652
|
| 3 |
+
size 1207256
|
parse/train/1ODSsnoMBav/1ODSsnoMBav_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95db94b36e70e5e5a2b7916aa1836564ff18c4ad5c70d02c3234fd256cd92943
|
| 3 |
+
size 1055851
|
parse/train/1ODSsnoMBav/1ODSsnoMBav_span.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e798ff1fea211d9452f231c0d88cacaeb28b663bf43648ec148647593c1c9849
|
| 3 |
+
size 1215864
|
parse/train/3FK30d5BZdu/3FK30d5BZdu_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b0b3738e67ca85d4178c29677b049c7668b81aa3aed71bdb174cdf735f63777
|
| 3 |
+
size 2443045
|
parse/train/3FK30d5BZdu/3FK30d5BZdu_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a28e6386b4e12c301d18e8b79116b0be134e5c6a3e57d7e6d9005b7e9c342c21
|
| 3 |
+
size 2210785
|
parse/train/3FK30d5BZdu/3FK30d5BZdu_span.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ebd08cbe7877804a602d5c8beba08bb6b8369f75745e85b000880f980a02604
|
| 3 |
+
size 2446894
|
parse/train/8hGabvaV2GQ/8hGabvaV2GQ_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d9bdb77aaa928922c71e6765d8418d244bb9e9aa472585d2a76708b4abc6bb8
|
| 3 |
+
size 2031423
|
parse/train/8hGabvaV2GQ/8hGabvaV2GQ_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ef1d1fe50a62f0053a3819ea00c9e4e52412446c7108243838f6508142060b8
|
| 3 |
+
size 1857370
|
parse/train/8hGabvaV2GQ/8hGabvaV2GQ_span.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c6568eea3c89884b5985f3205462af114985484d1a4151980aba13fea75281c
|
| 3 |
+
size 2061950
|
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5c9625023755105e6f8c29f208d38f006b4bde5d13ec0ab1c8134c4ca96ee5c
|
| 3 |
+
size 1951383
|
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fafa2bf06762160ff872c013422f8b18e3579e3c05b9afcbaa36eb6357994172
|
| 3 |
+
size 1651889
|
parse/train/9z_dNsC4B5t/9z_dNsC4B5t_span.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b275ab0e7f6341af009499280e3cf039dc3752895367a83cd7d835a84625ae0f
|
| 3 |
+
size 1953057
|
parse/train/AHm3dbp7D1D/AHm3dbp7D1D_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c57ea605c785e82983a78cfd250b23f203bb43bd8cbf446574e37e831449c7ad
|
| 3 |
+
size 1119780
|
parse/train/AHm3dbp7D1D/AHm3dbp7D1D_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:965788b21136a9a4b30048d4c640346cca2a4dc6b238b299c5a008c670f59d0b
|
| 3 |
+
size 817074
|
parse/train/AHm3dbp7D1D/AHm3dbp7D1D_span.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3366c15af56afdf03c2f7275e255a25453f54e59cb68a6a6c9087384ef379d51
|
| 3 |
+
size 1128340
|
parse/train/B17JTOe0-/B17JTOe0-_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66468ac1bf136e2392a64e8d4b19aeb3ff1e61c3cea54435a6b1fdfea8204b38
|
| 3 |
+
size 12439009
|
parse/train/B17JTOe0-/B17JTOe0-_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f16fb9bc9091c7ccb89e0f0e2b3194a4a66d2ff6eec282d950a341c260410bb
|
| 3 |
+
size 12295776
|
parse/train/B17JTOe0-/B17JTOe0-_span.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bcee1a0195d0cba2f5628f3f1b5fd2cf68ce9bdb1dade742a2c38cffd1746ba
|
| 3 |
+
size 12437002
|
parse/train/B1al7jg0b/B1al7jg0b_layout.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fb33ddfaf62cacd11159269fa67df6db0f61d368d807d7c59344aabe6d8dd6d
|
| 3 |
+
size 2691219
|