acceptodds
Published as a conference paper at NeurIPS 2026

SpanFormer: Multi-Level Adaptive Sparsity for Object Detection in High-Resolution Wide Shots

Xiang Li, Chen Zhang, Wenxi Li, Yuetong Wang, Chenyang Lyu, Haozhe Lin, Fan Zhang, guiguang ding, Yuchen Guo

Abstract

Object detection in high-resolution wide (HRW) shots, where a single image can span gigapixel resolutions and kilometre-scale fields of view, suffers from extreme foreground sparsity, dramatically varying foreground density from sparse to crowded scenes, and object clusters whose spatial extent ranges from dozens to thousands of pixels within the same dataset. State-of-the-art sparse vision transformers for gigapixel detection select a fixed top-k fraction of windows by hand-crafted variance scores, which over-promote textured but object-free background such as foliage and patterned facades, cannot adapt the keep ratio to the wide range of crowd density, and confine each kept window to a 7x7 receptive field that is far smaller than the spatial extent of many real-world object clusters. We propose SpanFormer, a sparse vision transformer that broadens the computational span at three complementary granularities: (i) Prototype Routing replaces variance with learnable foreground/background prototypes regularised by a balance constraint that prevents prototype collapse, widening the semantic span of the scoring criterion; (ii) Dynamic Top-k predicts a per-image keep ratio with a lightweight selector, making the compute span elastic so that crowded scenes receive proportionally more compute while near-empty scenes are skipped; (iii) Cluster Memory Attention performs union-find clustering over the kept windows by joint cosine similarity and Chebyshev spatial radius and augments each window's K and V with cross-window memory drawn from its cluster, extending the attention span beyond the local window with all projection parameters shared with the local branch and therefore no added projection cost. On the PANDA gigapixel benchmark, SpanFormer improves AP50 from 78.0% to 80.3% over the SparseFormer baseline while reducing backbone FLOPs by over 75%.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_N57GOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
2
Significance
2
Read review
Summary

This paper proposes SpanFormer for object detection in high-resolution wide shots, where foreground objects are sparse, scene-dependent, and vary greatly in scale. It broadens the computational span at three complementary granularities: Prototype Routing for HRW window scoring, Dynamic Top-K for image-adaptive sparsity, and Cluster Memory Attention (CMA) for cross-window context. It achieves favorable accuracy and efficiency on the PANDA gigapixel benchmark.

Strengths and weaknesses

Strengths:

  1. The paper is well motivated, with a coherent design across three complementary granularities.
  2. It improves over the baselines with clear efficiency gains, and the ablation studies validate the effectiveness of the proposed components and losses.
  3. The paper is generally well written, and most implementation details and hyperparameters are clearly explained.

Weaknesses:

  1. The biggest concern is that the primary experiments are conducted only on the PANDA gigapixel pedestrian-detection benchmark, which provides only preliminary evidence of effectiveness. More datasets should be considered.
  2. For the ablation study in Table 2, the authors only evaluate the sequential addition of the three components and the three loss terms.
  3. The technical novelty is limited. Most components, such as routing, Top-K selection, and memory attention, are existing techniques widely used in many areas. The paper mainly combines these ideas rather than proposing a fundamentally new mechanism.
  4. The method relies on several forms of ground-truth supervision during training, such as foreground-fraction supervision. The authors should discuss its robustness under noisy annotations.
Questions
  1. In the efficiency evaluation, did the authors strictly control all other variables to ensure a fair comparison?
  2. When comparing with baseline methods, did the authors include comparisons with other token compression-based approaches? What is the main advantage of the proposed method over such token compression methods?
  3. Can this method generalize to backbones other than SparseFormer?
Limitations

The method relies heavily on ground-truth annotations, but the impact of annotation robustness on its performance remains unclear. In addition, the evaluation scenarios are limited, as the method is tested on only one benchmark.

Paper formatting concerns

NO

Final justification

I appreciate the additional experiments on other datasets and the further analysis of the model's robustness, which effectively address my main concerns. I have decided to increase my score.

Reviewer_CqgROpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes SpanFormer, a sparse vision transformer for object detection in gigapixel-scale high-resolution wide-shot images. The paper points out the limitations of prior methods that rely on hand-crafted variance scores, fixed top-k ratios, and local window attention. To address these limitations, SpanFormer introduces prototype-based window scoring, image-adaptive Dynamic Top-k, and cluster-level memory attention. Empirically, the paper reports higher AP50 and lower backbone FLOPs than existing sparse-processing detectors on the PANDA benchmark.

Strengths and weaknesses

Strengths

  1. The paper clearly identifies the key challenges of HRW object detection, including foreground sparsity, large variation in scene density, and the limited context of local window attention. The proposed modules are naturally connected to these limitations.
  2. The reported accuracy-efficiency trade-off is strong. On the PANDA benchmark, SpanFormer achieves higher AP50 than SparseFormer and GigaMoE while substantially reducing backbone FLOPs. In particular, compared with DINO+SparseFormer, AP50 improves from 78.0 to 80.3, while backbone FLOPs decrease from 75.71G to 17.53G.
  3. The ablation study is useful and aligned with the method design. It shows the incremental effect of Prototype Routing, Dynamic Top-kk, and CMA, and helps clarify how each component contributes to either accuracy or efficiency.

Weaknesses

  1. The evaluation is limited to the PANDA benchmark. While the paper motivates SpanFormer as a general approach for gigapixel-scale high-resolution wide-shot detection, the main experiments are centered on PANDA pedestrian detection. This is an important benchmark, but it is still unclear whether the proposed method generalizes to other HRW datasets, object categories, or imaging conditions. Additional experiments on another dataset would make the generalization claim more convincing.
  2. The Dynamic Top-kk ratio prediction is not directly validated. A central idea of Dynamic Top-kk is to predict the keep ratio according to the foreground density of each image. However, the paper mainly demonstrates its effect indirectly through AP and FLOPs improvements. It does not clearly show how well the predicted keep ratio rr matches the ground-truth foreground fraction r⋆r^\star, or whether the prediction is well calibrated for both sparse and crowded scenes. A simple analysis such as MAE/correlation between rr and r⋆r^\star, a scatter plot, or density-binned results would make this component more convincing.
  3. The efficiency claim is mainly supported by backbone FLOPs. SpanFormer reports much lower backbone FLOPs than SparseFormer and GigaMoE, but practical deployment also depends on end-to-end latency and memory usage. In particular, Cluster Memory Attention computes pairwise cosine similarity and spatial distance among kept windows and performs union-find clustering, which may introduce routing or clustering overhead not fully reflected in FLOPs. Reporting wall-clock inference latency, GPU memory usage, and module-wise overhead for CMA would strengthen the efficiency claim.
Questions
  1. Generalization beyond PANDA. The main experiments are conducted on the PANDA pedestrian detection benchmark. Can the authors provide additional results on another HRW dataset, object category, or imaging condition? This would help clarify whether SpanFormer generalizes beyond PANDA.
  2. Direct validation and sensitivity of Dynamic Top-kk. Dynamic Top-kk predicts an image-adaptive keep ratio rr based on the estimated foreground density, supervised by the ground-truth foreground fraction r⋆r^\star. However, the current evaluation mainly shows its effect indirectly through AP and FLOPs. Can the authors provide a more direct analysis of whether the predicted keep ratio is appropriate for each image? In addition, it would be useful to analyze how sensitive the final detection performance and computational cost are when the predicted ratio is inaccurate. This would clarify whether Dynamic Top-kk is robust to errors in density estimation, or whether small errors in rr can significantly affect AP and FLOPs.
  3. Efficiency beyond backbone FLOPs. The paper reports strong reductions in backbone FLOPs, but practical efficiency also depends on end-to-end latency, GPU memory usage, and routing overhead. In particular, Cluster Memory Attention computes pairwise similarity, spatial distance, and union-find clustering among kept windows, which may not be fully captured by FLOPs. Can the authors provide wall-clock inference latency, peak memory usage, and module-wise overhead for Prototype Routing, Dynamic Top-kk, and CMA under the same hardware and batch size?
Limitations

Partially.

The authors acknowledge some limitations, including the single-dataset evaluation and the studied hyperparameter ranges. However, I think the limitation discussion could be strengthened. Since the paper mainly evaluates SpanFormer on the PANDA benchmark, it should more clearly discuss how well the method is expected to generalize to other HRW datasets, object categories, or imaging conditions. In addition, Dynamic Top-kk is central to the method, but the paper could more explicitly discuss the risk of inaccurate keep-ratio prediction and its possible impact on both AP and FLOPs. Finally, the efficiency discussion would be stronger if it considered practical costs beyond backbone FLOPs, such as end-to-end latency, memory usage, and the routing/clustering overhead of CMA.

Paper formatting concerns

Not Applicable

Final justification

The additional experiments and analyses provided in the rebuttal adequately address my main concerns. In particular, the results on the additional dataset provide stronger support for the generalizability of the proposed method. I have therefore increased my score by one level.

Reviewer_Rq9oOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This work addresses the challenge of efficient object detection in gigapixel high-resolution wide-shot imagery, where foreground objects are extremely sparse while object density varies significantly across images. The paper introduces three modifications to SparseFormer: 1) Prototype Routing for semantic window scoring, 2) Dynamic Top-k for adaptive computation, and 3) Cluster Memory Attention for cross-window context. The claims of the paper are that these modules jointly improve detection accuracy while substantially reducing computation, achieving a new Pareto frontier on PANDA.

Strengths and weaknesses

Strengths:

  1. Clear motivation. The paper identifies three genuine limitations of SparseFormer: 1) hand-crafted vaiance scoring, 2) fixed keep ratio, and 3) limited local receptive field. These motivations are easy to understand and well connected to the proposed modules.
  2. Incremental improvements are well aligned. Each module targets exactly one limitation.
  3. Strong efficiency gains. Reducing backbone FLOPs by roughly 4× while increasing AP is a meaningful practical contribution. The ablation also demonstrates that Dynamic Top-k is largely responsible for compute reduction.

Weaknesses:

  1. Novelty is somewhat limited. This is probably my biggest concern. None of the three modules is fundamentally new. The novelty mainly lies in adapting these ideas to SparseFormer rather than introducing a fundamentally new attention mechanism.
  2. Evaluation is too narrow. Everything is evaluated only on PANDA. This is a serious weakness. The paper repeatedly claims "general HRW detection“, but experiments are limited to s single dataset. I would expect evaluation on at least one additional gigapixel benchmark.
  3. Missing comparisons. The comparisons are almost entirely against SparseFormer and GigaMoE. The paper should discuss why newer sparse ViT methods cannot be applied, or compare against stronger adaptive-computation baselines.
  4. The paper claims prototypes learn semantic foreground/background representations. However there is no visualization of learned prototype embeddings, nearest windows, and prototype evolution. Such analysis would strengthen the paper considerably.
Questions
  1. How much wall-clock latency does CMA add?
  2. Why choose union-find instead of kNN graph attention?
  3. How sensitive is Dynamic Top-k to annotation quality?
Limitations

yes

Paper formatting concerns

N/A

Final justification

Thank you for the detailed rebuttal. My primary concerns have been addressed with an increased score.

Comments on the paper

1 comment
Meta-review

SpanFormer augments SparseFormer with three modules — Prototype Routing, Dynamic Top-k, and Cluster Memory Attention — each mapped to a named failure mode of prior sparse gigapixel detectors. Reviews split 3/4/3: all three reviewers credit the clear motivation, the strong accuracy–efficiency trade-off, and well-aligned ablations. The reservations are largely shared.

Generalization. Every result is on PANDA, yet the paper claims general HRW detection. Either add preliminary results on one additional gigapixel/HRW setting, or explicitly scope the claims to PANDA-style pedestrian detection. Dynamic Top-k validation. Show directly that predicted keep ratio r tracks ground-truth foreground fraction r* (scatter/MAE/correlation, ideally density-binned). This is central to the method yet currently shown only through AP/FLOPs. Efficiency beyond FLOPs. Report wall-clock latency and peak memory, including CMA's similarity/union-find overhead, which backbone FLOPs do not capture. Annotation-noise robustness. Since r* derives from GT boxes, a brief label-perturbation experiment would show whether the method degrades gracefully.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.