- Rating
- 3
- Clarity
- 2
- Confidence
- 3
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
This work addresses the central challenge of High-Resolution Wide (HRW) object detection by introducing BiHashFormer, a dual-branch transformer architecture. To handle the extreme foreground sparsity of gigapixel images, a dual-branch framework is proposed where a compression branch featuring "HashAttention" (which maps queries and keys into a low-dimensional Hamming space to aggressively prune attention pairs), and a compensation branch that uses "HashMiner" to recover missed small targets via learned binarized prototype codes. Empirical results show efficiency and accuracy gains over SoTA on several benchmarks.
Strengths and weaknesses
Strengths:
The dual-branch framework provides a practical solution to the foreground sparsity and compute-scaling problems in HRW scenarios. The architecture demonstrates compelling efficiency and accuracy gains on several benchmarks, outperforming some SoTA methods.
Weaknesses:
The claims of the paper regarding the innovation of "HashAttention" are heavily undermined by recent literature. The core mechanism of mapping tokens to a 1-bit Hamming space for efficient distance-based attention pruning has been established in recent works (such as HashAttention https://arxiv.org/html/2412.14468v2 and BinaryFormer https://ieeexplore.ieee.org/document/10531134). Major revisions seems needed to appropriately contextualize the work within the current landscape of binary attention mechanisms.
While the proposed "HashMiner" seems like classical clustering methods in Machine Learning, which has limited novelty.
Questions
Can you give some intuition why the foreground proportion /rho can be predicted? It is mentioned "The model consists of four stages, with the number of Hash Blocks in each stage set to [2,2,6,2]." How is this parameter chosen?
Limitations
No. It seems the answer to Question 2 (limitations) in the Checklist only points out an interesting visual pattern that requires further study ("The reason behind a pattern in section 4.4 need further investigation").
Paper formatting concerns
Many citations in the manuscript should use \citep
Final justification
Thanks for the clarifications. I have raised my rating a bit.
We thank the reviewer for raising this important novelty concern. Our contribution is not binary or Hamming-space attention itself, but its unified use in HRW detection to refine within-window token interactions and efficiently retrieve missed small objects from non-RoI regions.
We acknowledge HashAttention [1] and BinaryFormer [2] as important prior work and will cite both explicitly.
BinaryFormer [2] focuses on numerical efficiency: it binarizes ViT weights and switches between binary attention modes to replace expensive matrix operations with additions and bit operations. BiHashFormer does not binarize Transformer weights or the retained attention computation. It uses binary codes only to decide which tokens should interact, then computes attention with the original key-value features. BinaryFormer reduces the numerical cost of an existing interaction pattern; our method learns a query-dependent sparse interaction pattern. It also does not search rejected image regions for missed objects.
HashAttention [1] is closer to our compression branch because it also maps queries and keys into Hamming space for token retrieval. We acknowledge it as prior art for this general mechanism. However, it is a post-training sparse-inference module for pretrained autoregressive LLMs. Its mappings learn to reproduce pivotal-token labels derived from full attention, with the goal of approximating the pretrained model while reducing KV-cache access. In contrast, our Hamming projectors are trained end-to-end with the detection backbone, without full-attention top-k labels or a teacher attention matrix. The interaction graph is therefore learned directly for HRW detection.
More importantly, our purpose is not merely to approximate dense attention. Large HRW windows contain strongly interleaved foreground and background tokens. Dense attention forces every query to aggregate from all tokens, allowing background evidence to dilute foreground features. We instead retain the closest 50% of keys for each query in the learned Hamming space and perform full-precision attention only on these interactions.
Evidence already reported in the submitted main paper (Table 2):
Our routing reduces compression-branch computation by 52.4% and improves AP50 by 1.3 points. Thus, the removed interactions are not simply an approximation loss accepted for speed; removing background-dominated interactions improves the attention result.
The routing direction also matters. A query represents the information a token requires, whereas a key represents the information another token provides. Reversing Q→50 to K→50 lowers AP50 from 0.810 to 0.785, while measured computation differs by only 0.02 GFLOPs. The gain therefore comes from query-conditioned interaction rather than generic binary clustering.
The key problem addressed by HashMiner is efficient recovery, not data clustering. HRW images contain an enormous non-RoI region: aggressive RoI selection saves computation, but small or difficult objects may be routed into this region. Running dense attention over all rejected windows would negate most of the savings. HashMiner instead turns this expensive missed-object search into a small number of Hamming-distance decisions.
Specifically, it reuses the key projector learned by the compression branch to map every non-RoI token into the same 32-bit semantic space. A token is recovered when its binary code falls within radius r of a learned target prototype:
Xcomp={x,∣,minidH!(bK(x),ci)≤r}.
Only retrieved tokens receive additional feature extraction. The compensation branch can therefore search the much larger non-RoI region using inexpensive binary comparisons, while reserving costly feature extraction for a small set of likely missed targets.
HashMiner also differs fundamentally from conventional clustering. It does not iteratively assign non-RoI samples to clusters or recompute centroids, either during training or inference. Its prototypes are trainable binary codes learned end-to-end through the task-specific loss
Lproto=Lintra+Lcross.
Lintra learns target-related prototypes from the target-rich keys selected by the compression branch, while Lcross separates the prototypes so that their Hamming-radius coverage does not collapse or overlap. At inference, the prototypes are fixed and used only for fast radius tests. HashMiner is therefore a learned retrieval mechanism tied to the detection objective and the shared feature space of the two branches, rather than a post-hoc clustering algorithm.
The 32-bit space and the three prototypes have complementary roles. The Hamming space preserves fine-grained differences among categories, instances, and object parts, whereas the prototypes compactly anchor reusable target structures. They are not three class centers and do not perform classification; the detector head remains responsible for category prediction. Figure 3 supports this organization: head queries retrieve keys across the whole object, while body and background queries emphasize foreground-background boundaries.
The submitted main paper already validates this design in Tables 3 and 4. A 32-dimensional space gives the best AP50 (0.810 versus 0.801 for 16 dimensions and 0.805 for 64), while three prototypes give the best APsmall (0.591 versus 0.498 with one prototype and 0.582 with five). These results show that the selected configuration balances semantic capacity and compact retrieval rather than assigning one prototype to each category.
Evidence already reported in the submitted supplementary material (Table X3):
The proposed branch raises APsmall from 0.287 to 0.591 and outperforms generic attention while using 37.6% fewer compensation GFLOPs. As reported in Section 4.3 of the submitted main paper, it searches approximately 85% of all windows but accounts for only 17.9% of the two branches' computation. These results directly support our objective: efficiently finding small targets that would otherwise be missed in the vast HRW background.
This recovery principle is transferable: any detector that prunes windows, patches, proposals, or tokens faces the same recall-efficiency trade-off. A learned Hamming retrieval branch can search the rejected region without restoring dense processing over the full image.
We will revise the paper to position the contribution as an HRW-specific dual-branch framework that uses Hamming space both to refine foreground-window interactions and to recover missed small objects, rather than as the first binary or Hamming-space attention method.
This configuration is not a searched hyperparameter or a claimed contribution. We follow the standard Swin-T depths
[2, 2, 6, 2][3], also used by SparseFormer [4], to keep the four-stage allocation and total of 12 blocks fixed. This controls backbone capacity so that the comparison reflects our routing and interaction mechanisms rather than a depth difference. We will state this fair-comparison rationale explicitly.References
[1] Aditya Desai et al. HashAttention: Semantic Sparsity for Faster Inference. ICML 2025.
[2] Miaohui Wang, Zhuowei Xu, Bin Zheng, and Wuyuan Xie. BinaryFormer: A Hierarchical-Adaptive Binary Vision Transformer (ViT) for Efficient Computing. IEEE Transactions on Industrial Informatics, 20(8):10657–10668, 2024.
[3] Ze Liu et al. Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. ICCV 2021.
[4] Wenxi Li et al. SparseFormer: Detecting Objects in HRW Shots via Sparse Vision Transformer. ACM Multimedia 2024.