cs.CVOct 29, 2026

BiHashFormer: Hash-Driven Dual-Branch Transformer for Efficient Object Detection in HRW Shots

Authors: Jingchen Huang, Wenxi Li, Chenyang Lyu, Moran Liu, Haozhe Lin, Yuchen Guo

Organizations: AI Business, Alibaba International Digital Commerce, Hangzhou, China · Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing, China

Abstract

Recent advances in gigapixel-level imaging have brought High-Resolution Wide shots to the forefront of research. However, these images present significant challenges: extreme sparsity of foreground, gigapixel-level resolutions and interleaving of foreground and background. This causes traditional detectors and attention mechanisms to be hindered by background, resulting in inefficiency and inaccuracy. To tackle this problem, we propose BiHashFormer, a dual sparsified branch transformer built on hashing. RoI Selector will predict the foreground proportion for top-k selecting target-containing windows. The compression branch processes windows selected and refines attention into HashAttention by discarding half of the key-value pairs, reducing cost and improving efficiency. The compensation branch uses HashMiner to perform low-cost hash searches in the remaining regions, recovering features of missed objects. Experiments confirm that the selection relationship in HashAttention is one-way and reveal the preference of different queries for keys. In experiments on the gigapixel benchmark PANDA, BiHashFormer reduces 37.5% backbone FLOPs while improving AP50 to 81.0%. Moreover, this parallel dual-branch structure allows the model to avoid inference delays caused by inter-branch dependencies, while achieving much greater stability than single-branch models, specially with low rates of RoI selection.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ElasticFormer: Detecting Objects in HRW Shots via Elastic Computing Vision Transformer

    Oct 29, 2026Wenxi Li, Jingchen Huang, Chenyang Lyu +4Object DetectionEfficient Object Detection

  2. Beyond Post-Quantization: Native Hash Learning with a Dedicated HASH Token

    Jul 3, 2026Xinze Liu, Ding Wang, Hengjie Zhu +1Vision TransformerImage Retrieval

  3. ARTA: Adaptive Mixed-Resolution Token Allocation for Efficient Dense Feature Extraction

    Mar 27, 2026David Hagerman, Roman Naeem, Erik Brorsson +2Efficient ViTsVision Transformer