Papers › AutoFocusFormer: Image Segmentation off the Grid

AutoFocusFormer: Image Segmentation off the Grid

24 Apr 2023CVPR 2023 1arXiv:2304.12406archive 2025-07-28

Chen Ziwen, Kaushik Patnaik, Shuangfei Zhai, Alvin Wan, Zhile Ren, Alex Schwing, Alex Colburn, Li Fuxin

Real world images often have highly imbalanced content density. Some areas are very uniform, e.g., large patches of blue sky, while other areas are scattered with many small objects. Yet, the commonly used successive grid downsampling strategy in convolutional deep networks treats all areas equally. Hence, small objects are represented in very few spatial locations, leading to worse results in tasks such as segmentation. Intuitively, retaining more pixels representing small objects during downsampling helps to preserve important information. To achieve this, we propose AutoFocusFormer (AFF), a local-attention transformer image recognition backbone, which performs adaptive downsampling by learning to retain the most important pixels for the task. Since adaptive downsampling generates a set of pixels irregularly distributed on the image plane, we abandon the classic grid structure. Instead, we develop a novel point-based local attention block, facilitated by a balanced clustering module and a learnable neighborhood merging module, which yields representations for our point-based versions of state-of-the-art segmentation heads. Experiments show that our AutoFocusFormer (AFF) improves significantly over baseline models of similar sizes.

PaperPDFConference PDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

apple/ml-autofocusformer officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Image SegmentationInstance SegmentationPanoptic SegmentationSegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Instance Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) AP50 74.2 #4 of 17 Archive leaderboard report
Instance Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) mask AP 46.2 #4 of 17 Archive leaderboard report
Instance Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) AP50 72.8 #8 of 17 Archive leaderboard report
Instance Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) mask AP 44.0 #8 of 17 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) AP 46.2 #9 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) PQ 67.7 #9 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) PQst 71.5 #9 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) PQth 62.5 #9 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Base (single-scale, point-based Mask2Former) mIoU 83.0 #9 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) AP 44.2 #14 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) PQ 66.9 #14 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) PQst 70.8 #14 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) PQth 61.5 #14 of 37 Archive leaderboard report
Panoptic Segmentation Cityscapes val AFF-Small (single-scale, point-based Mask2Former) mIoU 82.2 #14 of 37 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections