Response (cont'd)
__W3. Ablation study on the RoI adjusting mechanism__
We have included the ablation study on the RoI adjuting mechanism from two aspects in Table 3 (b) and Table 3 (c) in the submission paper.
We repeat these two tables here.
| method | SF | ViT/32 | ViT/32* | conv×4 | swin |
|-----------|------|--------|---------|--------|------|
| top-1 acc | 81.0 | 72.8 | 74.3 | 79.4 | 79.7 |
| GFLOPs | 2.0 | 1.4 | 1.7 | 2.2 | 2.0 |
Table 3 (b) shows the effectiveness of the focusing transformer to adjust RoIs and extract features to build 49 tokens, compared with the dense counterparts to produce 49 tokens.
All entries in the table use the same cortex transformer configuration.
The 'ViT/32' produces 49 tokens simply by patchifying an image into $32\times32$ patches, rather than using the focusing transformer.
The 'ViT/32*' add two more transformer blocks to 'ViT/32'.
The 'conv×4' uses 4 convolution+relu after the early convolution, where each convolution is with stride 2 and doubled output channel to produce 49 tokens.
The 'swin' exploit the shifted local attention used in [4] to produce 49 tokens, similar to the 'conv×4'.
The focusing transformer shows its importance to adjust RoIs to prioritize foregrounds and exclude backgrounds, and therefore enables SparseFormer to perform more accurate recognition with fewer latent tokens, compared with dense counterparts to produce tokens.
| $L_f$ | top-1 | GFLOPs |
|-------|-------|--------|
| nil | 77.8 | 1.6 |
| 1 | 79.7 | 1.7 |
| 4 | 81.0 | 2.0 |
| 8 | 81.0 | 2.5 |
Table 3 (c) studies the number of iteration of the focusing transformer to adjust RoIs, $L_f$.
The 'nil' stands for the token RoIs are just learnable parameters of the model and do not adapt to different image content.
In other words, the RoI for a token does not adjust at all and keeps the same for all images in the 'nil' entry, and as expected, it is with an inferior result.
We can see that the iteration number is vital to the final performance, as the focusing transformer with the insufficient iteration may not effectively adjust tokens to foregrounds.
[1] Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. Token merging: Your vit but faster. ICLR 2023.
[2] Andreas Steiner, Alexander Kolesnikov, Xiaohua Zhai, Ross Wightman, Jakob Uszkoreit, and Lucas Beyer. How to train your vit? data, augmentation, and regularization in vision transformers. Trans. Mach. Learn. Res., 2022,
[3] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. ECCV, 2020.
[4] 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. CVPR, 2021