potentialpaper

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

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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%.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
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.

Final justification

All three reviewers converged on 4/5/4 (mean 4.3) post-rebuttal, up uniformly from 3.3, with no remaining reject. The rebuttal directly resolved the shared decisive weakness, single-dataset evaluation, by adding DOTA-v1.0 (+1.3 mAP at 63% fewer GFLOPs), and answered every other prioritized concern: Dynamic Top-k calibration, wall-clock latency and memory including union-find overhead, and keep-ratio robustness. The residual novelty objection is a fair characterization of a combination-of-known-ideas contribution, but the strong, now-generalized accuracy–efficiency Pareto carries clear practical value. Acceptance is conditioned on the promised DOTA, calibration, latency, and label-perturbation results appearing in the camera-ready.

Area Chair g8W1 · Meta-reviewOpenReview ↗
Read meta-review
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.

Final justification

All three reviewers converged on 4/5/4 (mean 4.3) post-rebuttal, up uniformly from 3.3, with no remaining reject. The rebuttal directly resolved the shared decisive weakness, single-dataset evaluation, by adding DOTA-v1.0 (+1.3 mAP at 63% fewer GFLOPs), and answered every other prioritized concern: Dynamic Top-k calibration, wall-clock latency and memory including union-find overhead, and keep-ratio robustness. The residual novelty objection is a fair characterization of a combination-of-known-ideas contribution, but the strong, now-generalized accuracy–efficiency Pareto carries clear practical value. Acceptance is conditioned on the promised DOTA, calibration, latency, and label-perturbation results appearing in the camera-ready.

1 comment
Authors · CommentOpenReview ↗

Response to the Initial Meta-Review: additional evidence and experiments

Dear Area Chair,

We thank the reviewers for recognizing SpanFormer's clear motivation and coherent design (Reviewers Rq9o, CqgR, and N57G), its strong accuracy–efficiency trade-off (Reviewers Rq9o, CqgR, and N57G), and the effectiveness of its ablations (Reviewers Rq9o, CqgR, and N57G). We are also encouraged that Reviewer N57G found our additional experiments and robustness analysis addressed their main concerns and has increased their score.

Thank you for the clear summary and guidance. We have addressed each point raised in the initial meta-review through new experiments and analyses:

  • Generalization: We added results on DOTA-v1.0, a second HRW benchmark with a different domain and task; see Rq9o Comment 1 (“W2. Only PANDA”), CqgR Comment 1 (“1. Generalization beyond PANDA”), and N57G Comment 1 (“W1. Only one benchmark”).
  • Direct validation of Dynamic Top-k: We report full-validation-set MAE, Pearson and Spearman correlations between the predicted ratio r and GT foreground fraction r*, together with density-quartile analysis; see CqgR Comment 1 (“2(a). Calibration”), Rq9o Comment 2 (“Q3(a). Does the predicted ratio track density?”), and N57G Comment 2 (“W4. Robustness under noisy annotations”).
  • Efficiency beyond FLOPs: We report wall-clock latency, peak memory, a module-wise breakdown, and the isolated similarity/union-find cost; see CqgR Comment 2 (“3. Efficiency beyond backbone FLOPs”), Rq9o Comment 2 (“Q1. Latency added by CMA”), and N57G Comment 2 (“Q1. Were other variables controlled?”).
  • Annotation robustness: We perturb the predicted ratio with zero-mean random errors and systematic biases, reporting both ΔAP50 and realized compute; see CqgR Comment 1 (“2(b). Sensitivity to an inaccurate ratio”), Rq9o Comment 2 (“Q3(b). What happens when it is wrong?”), and N57G Comment 2 (“W4. Robustness under noisy annotations”).

We thank the AC and reviewers for helping us strengthen the paper.

Reviewer N57GOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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.

Formatting concerns

NO

3 comments
Authors · CommentOpenReview ↗

Response to Reviewer N57G (1/2): DOTA benchmark, leave-one-out ablation, novelty and token-compression baselines

We thank the reviewer. Three of the four weaknesses asked for evidence we had not measured, and we ran those experiments; the remaining one is a fair reading of our ablation design, which we have extended.

W1. Only one benchmark

We added DOTA-v1.0, the second HRW benchmark used by SparseFormer, which differs in domain (aerial), task (oriented boxes), category count and foreground density. We keep SparseFormer's setup (RoI-Transformer, keep ratio 0.7 for the fixed-ratio baseline) and swap only the backbone; mAP at IoU 0.5.

Method mAP GFLOPs
RoI-Transformer (R-101) 69.56 296.74
Oriented RepPoints (Swin-T) 77.63 221.32
RoI-Trans + SparseFormer 77.94 174.31
RoI-Trans + SpanFormer (ours) 79.2 63.89

SpanFormer gains +1.3 mAP with 63% fewer GFLOPs, and +1.6 mAP over the strongest oriented detector at a third of its compute. Retained compute is 36.7% of the baseline on DOTA against 23.2% on PANDA: Dynamic Top-k spends proportionally more on the denser aerial imagery without dataset-specific retuning, which tests the mechanism in a new domain rather than re-confirming it. We will add this table and scope our claims to both.

W2. The ablation only adds components sequentially

This is fair for the modules, and we have run the complementary leave-one-out design:

Variant Prototype Routing Dynamic Top-k CMA AP50
Baseline (SparseFormer) ✗ ✗ ✗ 78.0
w/o Prototype Routing ✗ ✓ ✓ 79.8
w/o Dynamic Top-k ✓ ✗ ✓ 79.1
w/o CMA ✓ ✓ ✗ 79.4
Full SpanFormer ✓ ✓ ✓ 80.3

Together with the sequential Table 2a this covers six of the eight cells of the full 2³ design; the two remaining cells (Dynamic Top-k alone, CMA alone) need separate training runs, which we will add for the camera-ready. The leave-one-out view is informative in itself: the drops of 0.5 / 1.2 / 0.9 AP50 do not sum to the +2.3 over the baseline, so the modules interact rather than stack — Prototype Routing changes which windows are kept, hence what Dynamic Top-k can prune, hence the clusters CMA sees.

On the loss terms, Table 2b is not sequential: it reports all four combinations of the two auxiliary losses (full, w/o L_bal, w/o L_dynk, w/o both), a complete factorial. Table 3 additionally sweeps the four CMA hyperparameters one axis at a time.

W3 and Q2. Novelty, and the advantage over token-compression methods

Our novelty is a fully learned, image-adaptive sparsity policy for the gigapixel regime: >95% of an HRW frame is background and its foreground-window fraction varies by two orders of magnitude across frames, so which windows to compute, how many, and what context survives pruning are the whole problem — and every gigapixel sparse detector to date fixes all three by hand. Each of our choices is dictated by those statistics rather than ported from a general-purpose version:

  • Selection becomes semantic instead of texture-driven, and the prototype pair needs the anti-collapse hinge: without it the pair drifts to one mode and the foregroundness logit degenerates to noise (−0.4 AP50, Table 2b).
  • The keep ratio is conditioned per image on the GT foreground-window fraction, a quantity that swings by two orders of magnitude across HRW scenes but barely varies in the benchmarks where general adaptive-token methods can afford a fixed global schedule.
  • Our memory attention is asymmetric: each cluster sibling contributes one representative token to K/V, not the full W²=49, and W_K, W_V are shared with the local branch, so the extra reach adds no projection parameter. All modules together add <1% of backbone parameters.

To answer Q2 directly, we compared against three token-compression methods in the same pipeline (DINO head + SparseFormer-Tiny) at matched budget. VisionZip and DivPrune replace our window selection by attention-centrality ranking and farthest-point sampling; ToMe merges similar token pairs inside each global block.

Keep ratio ToMe VisionZip DivPrune
0.1 n/a † 75.2 76.9
0.3 n/a † 75.9 77.9
0.5 78.9 76.0 78.2
0.7 78.0 76.7 78.4

† ToMe merges pairs between two halves of the sequence, so at most half the tokens are removable; budgets <0.5 are not expressible. Our own ratio is predicted, not set: realized mean ≈0.16 (17.53 vs 75.71 GFLOPs), so our 80.3 sits far below the 0.7 row.

SpanFormer is +1.4 AP50 above their best number at any expressible budget, at a quarter of the compute. The advantage has two sources. First, none of their criteria targets objectness: ToMe selects by similarity, VisionZip by attention saliency (which favours textured but empty regions, as variance does), and DivPrune by feature coverage (which in a >95%-background image spends budget on background). Second, all three fix the reduction ratio globally, which is why a 7× budget increase buys them only ≈1.5 AP50.

Authors · CommentOpenReview ↗

Response to Reviewer N57G (2/2): annotation noise, controlled efficiency protocol, other backbones

W4. Robustness under noisy annotations

We first checked that the supervised quantity is actually learned. On the full validation set (3,285 images × 4 stages = 13,140 pairs), the predicted keep ratio r against the GT foreground-window fraction r* gives per-stage MAE 0.117–0.146, Pearson 0.32–0.45 and Spearman 0.35–0.43 (all p < 1e-75). Binned by density quartile, the mean prediction rises monotonically at every stage (stage 0 shown):

Density quartile of r* mean r* mean predicted r
Q1 (near-empty) 0.000 0.149
Q2 0.012 0.162
Q3 0.091 0.178
Q4 (crowded) 0.266 0.205

We then perturbed the predicted r at inference, which is the channel through which annotation noise would act, and report differences (ΔAP50).

Perturbation of r ΔAP50 Realized keep ratio
random, zero-mean, σ = 10 / 20 / 30% (rel.) +0.0 / +0.1 / +0.0 1.00×
random, zero-mean, σ = 50% −0.1 1.01×
systematic bias −0.15 −1.8 0.24×
systematic bias +0.15 +0.8 2.02×

Random error is absorbed almost completely, because perturbing r moves only the cut position in an otherwise unchanged prototype ranking. Only a systematic one-sided bias matters, and asymmetrically: under-estimation shrinks the budget to a quarter of nominal for 1.8 AP50, while over-estimation only spends compute. Two structural properties support this. The supervision target r* is an image-level statistic, the fraction of positive windows, not a per-box target, so dropping or jittering a few boxes in a crowded scene barely moves it; and a window counts as positive if its centre falls in any box or its overlap exceeds α=0.1 of the window area, so small coordinate errors rarely flip a label. We will additionally report direct label-perturbation retraining in the camera-ready and state this asymmetry in the limitations.

Q1. Were other variables controlled in the efficiency evaluation?

Yes, and we will state the protocol explicitly in the revision. All sparse-processing rows use the same detector head (DINO, 900 queries, 6+6 layers), the same backbone geometry (SparseFormer-Tiny: depths [2, 2, 6, 2], embedding 96, 7×7 windows), the same 1280×800 patches, and the same optimizer, schedule and epoch budget as in Sec. 4.1; the baseline is the k=0.7 setting of the SparseFormer paper applied uniformly to all four stages. FLOPs are per-image backbone FLOPs from the same tool, and for the sparse baselines we follow their original measurement protocol so the published numbers remain comparable.

For the new latency and memory numbers, all variants are timed on one RTX 3090 at the same batch size on identical real evaluation patches, with the data preprocessor outside the timed region and one batch resident at a time, and every SpanFormer number includes the routing and clustering overhead rather than only counted operations. On that protocol (backbone only, per image):

Batch Baseline (k=0.7) w/o CMA SpanFormer Speedup Peak memory
3 23.6 ms 13.3 ms 14.9 ms 1.58× 1306 → 1194 MB
8 22.6 ms 12.0 ms 13.0 ms 1.74× 2988 → 2684 MB
16 (≈1 frame) 22.2 ms 11.7 ms 12.5 ms 1.78× 5671 → 5051 MB

At batch 16 the module-wise breakdown attributes −0.4 ms to Prototype Routing, −10.1 ms to Dynamic Top-k and +0.8 ms to CMA, of which the similarity and union-find step alone is 0.18 ms.

Q3. Does the method generalize to backbones other than SparseFormer?

The three modules only touch the window-scoring and attention paths, never the FFN or the patch-merging hierarchy, so they transfer to any hierarchical window-based backbone that scores windows and prunes them. Prototype Routing needs only a per-window representative, Dynamic Top-k needs only a pooled image descriptor, and CMA needs a local attention branch whose W_K, W_V it can share. Two consequences are concrete. First, Prototype Routing and Dynamic Top-k also apply to the ConvNet variant of this family (SparseNet), where the scoring step exists but local attention does not; CMA is the one module that requires attention. Second, our modifications are orthogonal to GigaMoE, which keeps the same selection front-end and replaces the FFN with a mixture of experts: the two act on different parts of the block and can therefore be composed, and we would expect the compute saving of Dynamic Top-k to carry over directly since it reduces the number of windows those experts are dispatched on. We already report every configuration under two different detector heads (DINO and Dynamic-Head).

Reviewer N57G · CommentOpenReview ↗

Thank you for the authors' detailed response. 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, and I wish the authors good luck with the paper.

Reviewer CqgROpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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.

Formatting concerns

Not Applicable

3 comments
Authors · CommentOpenReview ↗

Response to Reviewer CqgR (1/2): DOTA generalization and direct validation of Dynamic Top-k

We thank the reviewer for a detailed and constructive review. All three points asked for evidence we had not measured, and we ran the corresponding experiments during the discussion period.

1. Generalization beyond PANDA

We added DOTA-v1.0, the second HRW benchmark used by SparseFormer, which differs in domain (aerial), task (oriented boxes), category count (15) and foreground density. We keep SparseFormer's setup (RoI-Transformer, keep ratio 0.7 for the fixed-ratio baseline) and swap only the backbone; mAP is at IoU 0.5.

Method Backbone mAP GFLOPs
RoI-Transformer R-101 69.56 296.74
Oriented RepPoints Swin-T 77.63 221.32
RoI-Trans + SparseFormer SparseFormer 77.94 174.31
RoI-Trans + SpanFormer (ours) SpanFormer 79.2 63.89

SpanFormer gains +1.3 mAP over the SparseFormer backbone with 63% fewer GFLOPs, and +1.6 mAP over the strongest oriented detector at under a third of its compute. Retained compute is 36.7% of the SparseFormer baseline on DOTA against 23.2% on PANDA, i.e. Dynamic Top-k spends proportionally more on the denser aerial imagery without any dataset-specific retuning, which is a direct check on the mechanism in a new domain. We will add this table and scope our claims to both benchmarks.

2. Direct validation and sensitivity of Dynamic Top-k

(a) Calibration. On the full validation set (3,285 images × 4 stages = 13,140 pairs) we compare the predicted keep ratio r with the ground-truth foreground-window fraction r*, computed with the same criterion used for supervision:

Stage MAE Pearson Spearman
0 0.117 0.452 0.430
1 0.118 0.354 0.394
2 0.124 0.359 0.383
3 0.146 0.318 0.367

All correlations are significant (p < 1e-75). Binned by density quartile, the mean prediction rises monotonically at every stage (stage 0 shown):

Density quartile of r* mean r* mean predicted r
Q1 (near-empty) 0.000 0.149
Q2 0.012 0.162
Q3 0.091 0.178
Q4 (crowded) 0.266 0.205

So the predictor does order scenes by density, in both the sparse and the crowded regime. The mapping is deliberately compressed rather than one-to-one: r is trained to land on a good compute/accuracy operating point, not to regress r* exactly, and a conservative floor on near-empty images protects recall there. We will add the scatter plots and this table to the appendix.

(b) Sensitivity to an inaccurate ratio. We perturb the predicted r at inference, which is the channel through which annotation noise acts, and report both axes the reviewer asks about. Accuracy is given as ΔAP50 and cost as the realized keep ratio relative to the unperturbed model, which is what the backbone cost scales with.

Perturbation of r ΔAP50 Realized keep ratio
random, zero-mean, σ = 10 / 20 / 30% (rel.) +0.0 / +0.1 / +0.0 1.00×
random, zero-mean, σ = 50% −0.1 1.01×
systematic bias −0.15 −1.8 0.24×
systematic bias +0.15 +0.8 2.02×

Random error is absorbed almost completely, because perturbing r moves only the cut position in an otherwise unchanged prototype ranking, so the highest-scoring windows are still selected. Only a systematic one-sided bias matters, and it is asymmetric: under-estimating shrinks the budget to a quarter of nominal at a cost of 1.8 AP50, while over-estimating only spends compute (+0.8 AP50 at twice the budget). Errors in r therefore trade compute smoothly rather than breaking accuracy, and we will state this asymmetry in the limitations discussion. We will additionally report label-perturbation retraining in the camera-ready.

Authors · CommentOpenReview ↗

Response to Reviewer CqgR (2/2): wall-clock latency, peak memory, and module-wise CMA overhead

3. Efficiency beyond backbone FLOPs

All numbers below are measured on one RTX 3090 with the trained checkpoints and identical real evaluation patches. Every SpanFormer number includes the routing, similarity and union-find clustering overhead the reviewer is concerned about, since we time the full backbone forward rather than counting operations.

Module-wise breakdown (backbone only, batch 16, each variant from its own trained checkpoint):

Variant Realized keep ratio ms / image Peak memory
Baseline (variance scoring, fixed 0.7) 0.700 22.2 5671 MB
+ Prototype Routing (fixed 0.7) 0.700 21.8 5671 MB
+ Dynamic Top-k 0.162 11.7 5010 MB
+ CMA (full SpanFormer) 0.162 12.5 5050 MB

Wall-clock latency and peak memory (backbone only, per image; the w/o CMA column isolates the CMA overhead):

Batch Baseline (k=0.7) w/o CMA SpanFormer Speedup Peak memory
3 23.6 ms 13.3 ms 14.9 ms 1.58× 1306 → 1194 MB
8 22.6 ms 12.0 ms 13.0 ms 1.74× 2988 → 2684 MB
16 (≈1 frame) 22.2 ms 11.7 ms 12.5 ms 1.78× 5671 → 5051 MB

CMA therefore costs +1.6 / +1.0 / +0.8 ms per image at batch 3 / 8 / 16, i.e. ≈11% / 7% / 7% of SpanFormer's backbone latency, plus +8 / +21 / +41 MB. Its share falls with batch size because the clustering and gathering are batched GPU operations over the kept windows only. We report these batch sizes because HRW inference is inherently batched: our 165 test frames slice into 3,285 patches, 16–35 per frame, so batch 16 is one complete frame for most of them.

End to end. With the DINO head included, at batch 3 latency per image drops from 61.1 ms to 54.2 ms (1.13×) and peak memory from 1306 MB to 1194 MB. The end-to-end margin is necessarily smaller than the backbone's, because the head is unchanged and dominates: roughly 38 of the baseline's 61.1 ms per image are spent after the backbone, which bounds what any backbone-side method can deliver end to end.

The similarity and union-find step in isolation. Timing that step alone at the real per-stage grid sizes and typical kept counts, summed over the four stages:

Batch Clustering, ms / image Share of SpanFormer's backbone
3 0.99 6.6%
8 0.35 2.7%
16 0.18 1.4%

So the pairwise similarity and union-find the reviewer asks about account for 1–7% of backbone latency, and they are already inside every SpanFormer number above. We agree this belongs in the paper: we will add the latency, peak-memory and module-wise tables to the revision, and scope the generalization claim to the two benchmarks we evaluate.

Reviewer CqgR · CommentOpenReview ↗

Thank you for the detailed response. The authors have addressed my main concerns, and I have raised my score accordingly. I encourage the authors to revise the final version to incorporate the additional analyses discussed during the rebuttal, particularly the results on the new dataset, as also suggested by multiple reviewers.

Reviewer Rq9oOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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

Final justification

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

Formatting concerns

N/A

2 comments
Authors · CommentOpenReview ↗

Response to Reviewer Rq9o (1/2): novelty, second benchmark (DOTA), comparisons with token-reduction methods

We thank the reviewer for the constructive comments, and address each point below.

W1. Novelty

Our contribution is a fully learned, image-adaptive sparsity policy for the gigapixel regime, and the regime is what makes it new: >95% of a PANDA frame is background and its foreground-window fraction varies by two orders of magnitude across frames. Under those statistics three decisions are the whole problem — which windows to compute, how many, and what context survives pruning — and every gigapixel sparse detector to date fixes all three by hand. SpanFormer learns all three, each dictated by HRW statistics rather than transplanted from a general recipe.

  • Prototype Routing makes selection semantic. Sparse HRW backbones rank windows by variance — texture energy, not objectness — so foliage and patterned facades outrank pedestrians (Fig. 1b). We learn a foreground/background prototype pair under an anti-collapse hinge and score windows by their similarity margin — objectness-driven selection, which no prior work in this line does. The hinge is load-bearing: without it the pair drifts to one mode and the logit degenerates to noise (−0.4 AP50, Table 2b).
  • Dynamic Top-k conditions the budget on the image. Prior adaptive-token work (DynamicViT, A-ViT, AdaViT, DiffRate) affords a global schedule because foreground occupancy is nearly constant in their benchmarks; in HRW it is not, so we predict the keep ratio per image, supervised by the GT foreground-window fraction. That converts adaptivity into savings: the realized ratio falls to ≈0.16 while AP50 rises, which no fixed ratio attains at any setting (W3).
  • CMA restores the context pruning destroys. Pruning this aggressive severs the relations HRW depends on: a crowd spans dozens of windows. CMA union-finds the kept windows by representative cosine similarity and Chebyshev radius (s_ij>τ AND d_ij≤R), and augments each window's K/V with up to M_max sibling representatives, one token per sibling rather than its full W²=49; W_K, W_V are shared with the local branch, so the reach costs no projection parameter and ≈7% of backbone latency (Q1).

The three are co-designed, not stacked: routing changes which windows survive, hence what Dynamic Top-k can prune, hence the clusters CMA sees. Together they add <1% of backbone parameters and reach an operating point the hand-crafted recipe cannot: +2.3 AP50 at ≈4× fewer FLOPs and 1.78× lower latency (W2 shows it transfers).

W2. Only PANDA

We added DOTA-v1.0, the second HRW benchmark used by SparseFormer (aerial, oriented boxes). We keep its setup (RoI-Transformer, keep ratio 0.7) and swap only the backbone; mAP at IoU 0.5.

Method mAP GFLOPs
RoI-Transformer (R-101) 69.56 296.74
Oriented RepPoints (Swin-T) 77.63 221.32
RoI-Trans + SparseFormer 77.94 174.31
RoI-Trans + SpanFormer (ours) 79.2 63.89

SpanFormer gains +1.3 mAP with 63% fewer GFLOPs, and +1.6 mAP over the strongest oriented detector at a third of its compute. Retained compute is 36.7% of the baseline on DOTA against 23.2% on PANDA: Dynamic Top-k spends proportionally more on denser imagery without retuning. We will add this table and scope our claims to both.

W3. Missing comparisons

Gigapixel sparse-backbone detection is a narrow line of work: GigaMoE (AAAI 2026, two months before submission) was its state of the art and SparseFormer (MM 2024) our base, both on the same sparse-window front-end with comparable FLOPs accounting. Table 1 further reports 18 baseline rows under two heads, including the adaptive-computation method DGE (NeurIPS 2021); we would gladly add any newer gigapixel detector the reviewer suggests.

Sec. 2 claims without measuring it that general token-reduction methods do not transfer, so we measured them in our pipeline (DINO head + SparseFormer-Tiny) at matched budget: VisionZip and DivPrune replace our window selection by attention-centrality ranking and farthest-point sampling, ToMe merges similar token pairs per global block.

Keep ratio ToMe VisionZip DivPrune
0.1 n/a † 75.2 76.9
0.3 n/a † 75.9 77.9
0.5 78.9 76.0 78.2
0.7 78.0 76.7 78.4

† ToMe merges pairs between two halves of the sequence, so at most half the tokens are removable; budgets <0.5 are not expressible. Our own ratio is predicted, not set: realized mean ≈0.16 (17.53 vs 75.71 GFLOPs), so our 80.3 sits far below the 0.7 row.

SpanFormer is +1.4 AP50 above their best number at any expressible budget, at a quarter of the compute of the baseline they build on. None of their criteria targets objectness: ToMe selects by similarity, VisionZip by attention saliency (which favours textured but empty regions, as variance does), and DivPrune by feature coverage (which in a >95%-background image spends budget on background). All three fix the ratio globally, so a 7× budget increase buys them only ≈1.5 AP50.

Authors · CommentOpenReview ↗

Response to Reviewer Rq9o (2/2): prototype visualization and evolution, CMA latency, union-find vs kNN, annotation quality

W4. Prototype visualization

This visualization is already in the submission. Figure 1(b) (page 2) plots per-window similarity to the two learned prototypes for five HRW patches, red for foreground-like and blue for background-like: foliage and patterned facades are blue despite being high-variance, pedestrians red. Figure 1(c) shows which windows survive Dynamic Top-k, tinted by cluster id, so the reddest windows in (b) are the nearest windows requested. We would ask the reviewer to revisit Figure 1 and its caption.

Prototype evolution: the per-prototype responsibility q_m of Eq. 5, the share of window mass per prototype (q_1+q_2=1), is logged every 50 iterations; for stage 0 it reads (.542, .458) / (.546, .454) / (.559, .441) / (.564, .436) at iterations 50 / 9.2k / 18.4k / 36.7k. Neither share collapses towards zero and the smaller stays near .44, above the ρ=0.35 hinge floor, while the slow drift towards background is the asymmetry the hinge deliberately permits (Sec. 3.1). Table 2b is the complement of this trajectory: the margin exists because the constraint is present, and removing it collapses the pair (−0.4 AP50).

Q1. Latency added by CMA

Measured on one RTX 3090 with the trained checkpoints and real patches, timing the backbone only to match Table 1's accounting. HRW inference is inherently batched: our 165 test frames slice into 3,285 patches, 16–35 per frame (mean 20), so batch 16 is one full frame for most.

Batch Baseline (k=0.7) w/o CMA SpanFormer Speedup Peak memory
3 23.6 ms 13.3 ms 14.9 ms 1.58× 1306 → 1194 MB
8 22.6 ms 12.0 ms 13.0 ms 1.74× 2988 → 2684 MB
16 (≈1 frame) 22.2 ms 11.7 ms 12.5 ms 1.78× 5671 → 5051 MB

Latency is per image, so at batch 16 a frame's backbone pass drops from 355 ms to 200 ms. CMA costs +1.6 / +1.0 / +0.8 ms per image at batch 3 / 8 / 16, i.e. ≈11% / 7% / 7% of SpanFormer's backbone latency, plus +8 / +21 / +41 MB; its share falls with batch size because clustering and gathering are batched GPU operations on the kept windows only (≈16%).

The similarity and union-find step alone, summed over the four stages, is 0.99 / 0.35 / 0.18 ms per image at batch 3 / 8 / 16 — 1–7% of backbone latency.

Q2. Union-find rather than kNN

  • Fixed-k kNN adds compute where we save it. It gives every kept window exactly k memory tokens, so the branch always costs K·k; under union-find it is |C(i)|−1, capped at M_max and zero for isolated windows, the common case in sparse scenes. M_max is a cap, not a quota, which is why CMA costs only ≈7–11% of backbone latency (Q1).
  • Cluster size should follow content: a fixed k pads isolated windows with irrelevant memory and truncates crowds.
  • A partition gives mutually consistent context, whereas a kNN graph is asymmetric and non-transitive; and our rule s_ij>τ AND d_ij≤R encodes a spatial prior kNN cannot express: two distant crowds look alike but should not exchange memory.

τ and R already interpolate between no grouping and loose, kNN-like grouping: accuracy stays within 0.9 AP50 over τ∈{0.80, 0.85, 0.90, 0.95} and R∈{1, 2} (Table 3), and that axis's degenerate end is w/o CMA at 79.4. Having a memory is worth +0.9 AP50 whereas the selection rule is a ±0.5 effect; we will still run a fixed-k variant for the camera-ready if the reviewer considers it decisive.

Q3. Annotation quality

(a) Does the predicted ratio track density? On the full validation set (3,285 images × 4 stages = 13,140 pairs), r against the GT foreground-window fraction r* gives per-stage MAE 0.117–0.146, Pearson 0.32–0.45 and Spearman 0.35–0.43 (all p < 1e-75), and the mean prediction rises monotonically with density quartile at every stage: for stage 0, r* = 0.000 / 0.012 / 0.091 / 0.266 gives r̄ = 0.149 / 0.162 / 0.178 / 0.205. The mapping is deliberately compressed, since r is trained to land on a good compute/accuracy point rather than to regress r*.

(b) What happens when it is wrong? We perturb the predicted r at inference, the channel through which annotation noise acts, reporting ΔAP50 and the realized keep ratio relative to the unperturbed model.

Perturbation of r ΔAP50 Realized keep ratio
random, zero-mean, σ = 10/20/30% (rel.) +0.0 / +0.1 / +0.0 1.00×
random, zero-mean, σ = 50% −0.1 1.01×
systematic bias −0.15 −1.8 0.24×
systematic bias +0.15 +0.8 2.02×

Random error is absorbed because perturbing r moves only the cut position in an unchanged prototype ranking; only a systematic one-sided bias matters, and even a quarter budget costs 1.8 AP50, without a cliff. We expect the same under noisy labels: r* is an image-level statistic, not a per-box target, and a window is positive if its centre falls in any box or overlaps it by α=0.1 of the window area, so small box errors rarely flip a label. We will still retrain with jittered and dropped GT boxes for the camera-ready.

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

Missing a submission?

Loading the discussion…