acceptodds
Published as a conference paper at NeurIPS 2026

Order Matters: Competition-Guided Query Ordering for RNN-Based Object Detection

Shengjian Wu, Li Sun, Yu Shangguan, Qingli Li

Abstract

DETR-style detectors use one-to-one bipartite matching during training to assign object queries to ground-truth objects, enabling end-to-end set prediction without non-maximum suppression (NMS). However, without an explicit de-duplication procedure, multiple queries can still produce highly similar hypotheses for the same object, making training unstable and predictions less decisive. Inspired by the sequential ordering of NMS, we propose DETRNN, a plug-and-play module that turns unordered object queries into a competition-aware sequence for recurrent refinement. DETRNN builds an explicit confidence-and-similarity based order from prior predictions, then refines queries with an RNN along this order to model competition inside the decoder. This ordered recurrent refinement reduces redundant predictions, stabilizes optimization, and improves final detection accuracy. Experiments on multiple DETR-style detectors show consistent gains with comparable efficiency. Code will be released on GitHub.

Keywords:
Sydney

Reviews

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

This paper proposes DETRNN, a plug-and-play query interaction module for DETR-style object detectors. The main idea is to make the implicit competition among object queries explicit by first constructing a competition-guided query order and then refining the ordered query sequence using a bidirectional RNN-style module. Specifically, the proposed CGQO procedure ranks queries by confidence, groups close competitors based on box and class-score similarity, and uses the resulting order as the input sequence for recurrent query refinement. The authors argue that this ordering mimics the ranking-and-grouping behavior of NMS while keeping all queries and performing de-duplication inside the decoder. Experiments on several DETR-style baselines show consistent AP improvements, and the paper further provides analyses on de-duplication behavior, training dynamics, ordering variants, RNN variants, and NMS sensitivity.

Strengths and weaknesses

Strengths:

  1. The paper studies an important and practically relevant problem. Although one-to-one matching enables NMS-free prediction in DETR-style detectors, duplicate or highly competing queries can still appear and may make optimization less stable. The proposed formulation of query competition as an ordering problem is intuitive and provides a clear motivation for recurrent refinement.

  2. The proposed method is conceptually simple and easy to understand. CGQO constructs a competition-aware query order based on confidence and similarity, and the Bi-RNN module then refines queries along this order. This design provides a clear connection between NMS-like competition ordering and learnable decoder-internal de-duplication.

  3. The experimental section is reasonably comprehensive. The authors evaluate the method on multiple DETR-style baselines and report consistent gains. The de-duplication analysis is also useful: the one-decoder stress test, the reduced AP gain from applying NMS, and the larger Top1–Top2 score gap all support the claim that the proposed module helps suppress redundant competitors.

  4. The ablation studies are well aligned with the core claim. In particular, the results showing that Bi-RNN alone or CGQO alone brings little improvement, while their combination is effective, help justify the interaction between explicit ordering and sequential refinement. The ordering-variant and RNN-variant studies further support the importance of competition-aware ordering and show that the effect is not tied to a single recurrent architecture.

  5. The paper is generally well written and easy to follow. The motivation, method, and experimental logic are presented clearly, and the authors provide several diagnostic experiments beyond simply reporting final AP.

Weaknesses:

  1. The novelty and insight of the paper are somewhat limited. The method can be viewed as converting an NMS-like confidence/similarity grouping heuristic into a query sequence and then applying an RNN-style interaction module. This is a reasonable design, but the conceptual contribution is not very strong, especially given prior work on query competition, relation-aware decoders, query pruning, and NMS-like mechanisms in DETR. The paper demonstrates that this design works empirically, but the method remains largely heuristic: it hand-designs an NMS-like ordering rule and couples it with recurrent refinement. As a result, it does not fully establish a principled or mechanism-level understanding of how query competition should be modeled in DETR-style decoders.

  2. The experimental coverage may overstate the generality of the method. Among the four main baselines, Deformable DETR and DINO are strong and representative, but MS-DETR is less commonly used as a standard baseline, and LoRA-DETR is not yet as widely established as standard baselines such as Deformable DETR or DINO. Since the paper claims that DETRNN is plug-and-play and broadly transferable, it would be important to evaluate it on more recent and practically important DETR-style detectors such as RT-DETR, D-FINE, or DEIM.

  3. The de-duplication evidence, while useful, is still somewhat indirect. The one-decoder comparisons, the reduction in NMS gain, and the increase in Top1–Top2 score gap are consistent with better de-duplication, but they do not directly analyze whether the proposed CGQO ordering indeed captures meaningful query competition. Since CGQO explicitly forms pivot-based groups, more direct statistics about the grouping behavior would make the mechanism more convincing. For example, the authors could report the number of CGQO groups per image, the distribution of group sizes, the relationship between the number of groups and the number of ground-truth objects, and whether large groups actually correspond to duplicated predictions around the same object or crowded local regions. Note that these examples are not meant to prescribe the only or necessarily the best additional experiments; rather, I just illustrate the type of more direct evidence that would help substantiate the claimed connection between CGQO grouping and object-level query competition.

  4. The necessity of using an RNN-style sequential module is not fully established. The paper compares different RNN variants and shows that the ordering matters, but it does not compare against simpler alternatives that could also exploit the same CGQO order. For example, one could imagine ordered local attention, windowed attention along the CGQO sequence, 1D convolution over the ordered sequence, or a lightweight MLP-based neighbor interaction. Such comparisons would help clarify whether the key contribution is recurrent sequential modeling itself, or more generally the introduction of an ordered local competition structure. The listed alternatives are not intended to be exhaustive or necessarily optimal baselines. They are meant to illustrate the kind of control experiments that could help disentangle the contribution of recurrence from the contribution of the CGQO-induced order.

  5. Some reported gains are relatively modest, especially on stronger or competition-aware baselines. While the improvements are consistent, several gains are around +0.3 to +0.5 AP. Given the heuristic nature of the ordering rule and the lack of extensive seed-variance analysis, it is not fully clear how robust these smaller improvements are.

Questions
  1. Can the authors evaluate DETRNN on at least one recent strong DETR-style detector such as RT-DETR, D-FINE, or DEIM? This would substantially strengthen the plug-and-play and generality claims.

  2. Can the authors provide more direct duplicate-prediction statistics, beyond NMS gain and Top1–Top2 score gap? As illustrated in Weakness 3.

  3. Can the authors compare CGQO + Bi-RNN with simpler ordered interaction modules? As illustrated in Weakness 4.

Limitations

The authors include a limitations and broader impact discussion, but I do not think it fully covers the main limitations of the work. In particular, the paper could more explicitly discuss the limited coverage of recent strong DETR-style detectors, since the current main experiments do not include practical modern frameworks such as RT-DETR, D-FINE, or DEIM. The authors should also acknowledge that the proposed ordering rule is largely heuristic and depends on hand-designed confidence/similarity grouping, whose failure cases and applicability beyond the evaluated settings are not fully analyzed. In addition, several reported gains on stronger baselines are relatively small, so a more complete discussion of seed variance and robustness would be helpful.

Paper formatting concerns

No.

Final justification

I have raised my overall score from 3 to 4 after considering the rebuttal and the additional experimental evidence.

  • Issues substantially resolved: The new DEIM-RT-DETRv2-L results alleviate my concern about applicability to modern real-time DETRs. The direct CGQO grouping analysis provides much stronger evidence that the constructed groups correspond to meaningful object-level query competition. The comparisons with causal attention and 1D convolution help clarify that the CGQO-induced order can be exploited by different order-sensitive interaction modules, while Bi-RNN performs best among the tested alternatives. The multi-seed results also substantially address my concern about the robustness of the relatively modest gains.

  • Issues that remain: I find the paper’s identification of query competition to be conceptually meaningful and valuable. My reservation lies primarily in the proposed solution: although empirically effective, it feels more engineered than conceptually inevitable, and does not fully meet my expectations for methodological elegance and architectural coherence in a NeurIPS submission. I remain unsure whether explicitly coupling DETR with an RNN is the most intrinsic realization of the underlying insight.

  • Final weighting: The rebuttal does not fundamentally change my reservations regarding the methodological elegance and architectural coherence of the proposed solution. However, it convincingly strengthens the empirical support, robustness, and scope of the proposed method. The paper has also provided me with a useful new perspective on explicit ordering and query competition in DETR decoders. I therefore believe that the reasons to accept now slightly outweigh my remaining reservations, leading to a final rating of 4.

1 comment

We thank the reviewer for the constructive comments. We address the main concerns on modern-detector coverage, direct CGQO evidence, simpler ordered modules, and robustness/scope below.


1. Modern DETR Coverage (W2, Q1)

We clarify that LoRA-DETR is not merely an arXiv preprint, but an AAAI-26 paper. We selected it because it represents a recent strong baseline in the conventional DETR family, following the unified training setting of Def-DETR++/DINO-style detectors. RT-DETR/DEIM-style detectors are another important real-time DETR family, but they use substantially different recipes, e.g., much longer schedules and different optimization settings.

To address the reviewer's concern, we further tested DETRNN on a recent real-time detector, DEIM-RT-DETRv2-L.

Standard setting.

MethodParamsEpochsAPAP50AP75
Baseline (self-attn)42M6054.372.358.8
CGQO + Bi-RNN43M5054.472.359.1

In the standard long-schedule setting, DETRNN reaches comparable or slightly better accuracy with fewer epochs. The gain is modest, likely because long training and stronger decoding already reduce residual duplicates, consistent with Fig. 3(b).

1-Decoder stress setting. We also follow the 1-decoder stress setting used in Tab. 1(a), where duplicate suppression must be handled with limited decoder refinement:

SettingMethodAPAP50AP75
1-decoderBaseline50.368.155.2
1-decoderCGQO + Bi-RNN51.970.356.7

Under this stress setting, DETRNN improves AP by +1.6. These results show that DETRNN can be adapted to modern real-time DETRs, with clearer benefits when the detector has fewer decoder stages to resolve residual duplicate predictions internally. We will clarify this scope in the revision.


2. Novelty and Mechanistic Evidence (W1, W3, Q2)

Direct CGQO grouping analysis.

Setup. We analyze the first 1600 COCO val images using the final CGQO grouping from the 1× Def-DETRNN++ model.

Definitions. For query ii, let bib_i and sis_i denote its predicted box and class-score vector. For GT object gg, let bgb_g and ygy_g denote its box and class label. Let m(g)m(g) be the Hungarian-matched query for gg, and P(i)P(i) be the CGQO group containing query ii. We define the foreground competitors of gg as queries with IoU(bi,bg)≥0.5\mathrm{IoU}(b_i,b_g)\ge0.5 and GT-class score si(yg)≥0.05s_i(y_g)\ge0.05. Each image has only 7.3 GT objects on average but 900 object queries, so all-group statistics are dominated by background predictions. We therefore focus on foreground-related groups, i.e., CGQO groups that contain at least one foreground competitor.

  • Object-level grouping. The number of foreground-related groups has a strong correlation with the number of GT objects (Pearson $r=$0.863), indicating that CGQO groups follow object-level structure rather than arbitrary query partitions.

  • Reliable pivot. In 89.24% of cases, the matched query m(g)m(g) is the pivot of its group P(m(g))P(m(g)), showing that the group usually starts from the best prediction for the object.

  • Competitor coverage. The matched group P(m(g))P(m(g)) covers 78.85% of the foreground competitors for the same GT, showing that most duplicated/competing predictions around the object are grouped together.

  • Target-GT purity. Within P(m(g))P(m(g)), 49.10% of members are competitors only for this GT, 1.72% are shared with another GT, and only 0.51% are competitors only for other GTs; the rest are background queries. Thus, the foreground competitors inside a matched group are overwhelmingly associated with the target GT, with very little mixing from other objects.

Together, these statistics provide direct mechanism-level evidence that CGQO usually forms object-centered competition groups: it starts from the best prediction, gathers most same-object competitors, and rarely groups competitors from other objects.

Interpretation, novelty, and scope.

We agree that CGQO uses an explicit confidence/similarity prior, and we will clarify this heuristic nature and possible failure cases in the limitations. Still, combining CGQO with RNN-style query interaction is a meaningful attempt to make recurrence useful inside DETR decoders for learnable de-duplication. Moreover, our large-query profiling in Tables 11–12 shows clear time/memory advantages over attention when the query number becomes very large, suggesting a promising direction beyond this specific heuristic.


3. Ordering vs. Recurrence (W4, Q3)

We thank the reviewer for suggesting simpler ordered interaction modules. We add controlled comparisons under the same DINO/R50/1× setting, where all variants use the same CGQO order and replace only the query-interaction module.

MethodParamsAPAP50AP75
Baseline (self-attn)47.5M49.066.653.5
CGQO + causal attn47.5M49.467.353.7
CGQO + 1D Conv47.7M49.567.353.8
CGQO + Bi-RNN47.6M50.068.154.0

This comparison shows two points. First, CGQO also improves simpler non-recurrent modules, e.g., causal attention and 1D Conv improve AP from 49.0 to 49.4/49.5, confirming that the competition-aware order itself is useful. Second, Bi-RNN performs best with comparable parameters, suggesting that recurrent state propagation more fully exploits the ordered competition sequence.


4. Robustness and Expanded Limitations (W5, Limitations)

We agree that the modest gains on stronger baselines require additional variance evidence and a clearer discussion of the method's scope.

Multi-seed results. We conduct three runs on four representative R50/1x settings:

DetectorBaseline APSeed 1Seed 2Seed 3MeanStd
Def-DETRNN++47.648.748.948.648.730.15
DINO-RNN49.050.050.049.849.930.12
MS-DETRNN50.050.550.350.550.430.12
LoRA-DETRNN52.553.053.052.952.970.06

Finding. Although the gains on stronger baselines are modest, all individual runs improve over their corresponding baselines, and the observed standard deviations are substantially smaller than the improvements. This supports that these are stable gains rather than single-run fluctuations.

Revision. We will expand the Limitations section to explicitly acknowledge:

  • Detector coverage. The current evaluation does not include recent practical frameworks such as RT-DETR, D-FINE. Generalization to these detector families remains to be verified, and gains may be smaller on already strong or competition-aware baselines.
  • Heuristic ordering. CGQO uses a non-differentiable, hand-designed confidence/similarity grouping rule rather than a learned ordering objective.
  • Scope of analysis. More exhaustive tests under unusually large or chain structured competition custers, extreme query distributions, and broader detector or task settings remain future work and will be explicitly discussed as limitations.
Reviewer_vmisOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
2
Read review
Summary

This paper proposes DETRNN, a plug-and-play decoder module for DETR-style object detectors that makes query competition explicit. The core idea is to replace order-agnostic self-attention with a competition-guided query ordering step, which ranks queries by confidence and groups likely duplicates using a confidence-similarity criterion, followed by a Bi-RNN refinement stage that processes queries sequentially along this order. The authors argue that this ordered recurrent refinement better internalizes de-duplication than standard parallel attention. Experiments on MS-COCO and CrowdHuman, across several DETR-family baselines including Def-DETR++, DINO, MS-DETR, and LoRA-DETR, show consistent AP gains with small parameter overhead.

Strengths and weaknesses

This is a well-motivated and generally convincing paper. The central observation is: DETR-style detectors still produce redundant predictions The paper translates the NMS into a learnable sequential refinement mechanism instead of applying hard post-processing. The ablation study shows it yields gains. The method is still fairly heuristic: CGQO depends on hand-designed confidence/similarity ordering, a pivot-and-group procedure, and thresholding choices, so the mechanism is not yet explained why sequential refinement should work. The gains are also uneven across settings, the strongest baselines only improve by a small margin. Finally, the main paper could be more explicit about failure modes and the practical limits of the approach, especially when the prior predictions used to build the order are noisy.

Questions

How sensitive are the main results to the exact CGQO design, especially the confidence/similarity weighting and the density-adaptive threshold?

Can the authors compare Bi-RNN against a unidirectional recurrent refinement with the same ordering?

How much of the gain comes from the explicit ordering itself versus the IOF-based positional cue and stage-placement choices?

The strongest results appear on crowded scenes and weaker baselines. Can the authors clarify whether the method still provides meaningful gains when the baseline already has strong competition-aware decoding

Limitations

The appendices do address threshold sensitivity, stage placement, scaling, and profiling. But I would still like to see a short, explicit limitations discussion in the main paper covering: dependence on prior prediction quality, smaller gains on stronger baselines, and the possibility that the sequential ordering may matter less once a detector is already highly optimized.

Paper formatting concerns

No major formatting concerns.

Final justification

Thank you to the authors for their rebuttal. I will keep my original score of 4.

1 comment

1. Sensitivity to CGQO Design (Q1)

CGQO remains stable across a broad range of hyperparameter settings.

In Appendix B, Fig. 6(a) varies the similarity weight α\alpha, while Fig. 6(b) varies the saturation constant KK; both cause only minor AP changes, mostly within 0.1–0.2 AP around the default setting. Fig. 7(a,b) similarly shows that varying τmin⁡\tau_{\min} and τmax⁡\tau_{\max} changes AP by at most 0.1 AP for DINO-RNN and 0.2 AP for MS-DETRNN. Fig. 7(c) further shows that the density-adaptive threshold outperforms fixed thresholds by 0.1–0.3 AP.

These results indicate that CGQO does not rely on fragile hyperparameter choices. We will make this analysis more visible in the main paper.


2. Unidirectional vs. Bidirectional RNN (Q2)

We thank the reviewer for this useful suggestion. We add a controlled ablation under the same DINO-/R50/1× setting, where the CGQO order is fixed and only the recurrent refinement direction is changed.

MethodParamsAPAP50AP75
Baseline (self-attn)47.5M49.066.653.5
CGQO + Uni-RNN47.6M49.667.554.2
CGQO + Bi-RNN47.6M50.068.154.0

The unidirectional variant already improves the baseline from 49.0 to 49.6 AP, showing that the ordered recurrent refinement is effective even with one-way propagation. The bidirectional variant further improves AP to 50.0, suggesting that using context from both directions better exploits the competition sequence.


3. Contribution of Ordering, IOF Cue, and Stage Placement (Q3)

We further summarize the contribution of different components on Def-DETRNN++/R50/1×:

VariantCGQO + Bi-RNNSelected StageIOF-PEAP
Baseline (self-attn)✗✗✗47.6
Ordered recurrent refinement✓✗✗48.2 (+0.6)
+ IOF-PE✓✗✓48.4 (+0.8)
+ Selected Stage✓✓✗48.6 (+1.0)
Full DETRNN✓✓✓48.7 (+1.1)

This shows that the main gain comes from the CGQO-ordered recurrent refinement itself. The IOF-PE provides a smaller additional gain (+0.2 AP in this setting), while choosing a better insertion stage further improves the result (+0.1 AP).

We do not list “CGQO alone” as a separate component here because CGQO is an ordering operator rather than an interaction module. As shown in Tab. 4, applying CGQO without recurrent interaction does not bring clear gains. In contrast, Tab. 5 compares different orders under the same RNN module and shows that the CGQO order consistently outperforms other orders, directly supporting the importance of explicit ordering.


4. Strong Competition-Aware Baselines (Q4)

We agree that DETRNN has smaller gains when the detector already includes strong competition-aware decoding. This is expected because both lines of work share a common objective: mitigating query redundancy and duplicate competition.

However, DETRNN addresses this challenge from a fundamentally different paradigm:

  • Prior Competition-Aware Designs rely on modifying parallel self-attention via complex pairwise spatial/relation attention priors or applying hard, multi-stage query pruning.

  • DETRNN (Ours) reformulates query competition into an explicit, ordered recurrent sequence refinement, leveraging sequence ordering and recurrent state propagation to softly suppress duplicates inside the decoder.

As shown in Tab. 8, when directly replacing these tailored competition modules with DETRNN under a strictly matched recipe, we can achieve:

  • Better Accuracy. DETRNN consistently outperforms all three strong baselines (+0.3 AP over EASE-, +0.5 AP over Relation-, and +0.4 AP over DDQ-), proving that ordered recurrent refinement resolves competition more effectively than complex attention priors or pruning.

  • Higher Efficiency. DETRNN achieves higher throughput (e.g., 16 →\rightarrow 19 FPS on Relation-DETR; 15 →\rightarrow 17 FPS on DDQ) by replacing multi-stage attention/pruning operations with a lightweight, single-stage recurrent refinement.

Thus, even on highly optimized, competition-aware baselines, DETRNN is not merely an incremental add-on—it serves as a conceptually novel, higher-performing, and more efficient alternative. This demonstrates our core perspective that query competition can be modeled through ordered recurrent refinement, rather than only through attention-prior design.


5. Additional Mechanistic and Robustness Evidence (Weaknesses)

We agree that the main paper should explain more directly why the heuristic sequence is meaningful and how it behaves when prior predictions are noisy.

Direct grouping evidence. In our response to Reviewer K9UV, under "Novelty and Mechanistic Evidence," we directly analyze the final CGQO groups on 1,600 COCO val images. The number of foreground-related groups strongly correlates with the number of GT objects (Pearson r=0.863r=0.863); the Hungarian-matched query is the group pivot in 89.24% of cases; and its group covers 78.85% of the same-GT competitors, while only 0.51% of group members are competitors exclusively for other GTs. These statistics show that CGQO usually constructs object-centered competition sequences rather than arbitrary query permutations.

Robustness to noisy prior predictions. In our response to Reviewer 6Ef8, under "Early-Training Lock-in and Ordering Evolution," the pivot-match rate (matched query selected as pivot) rises from 40.28% at step 100 to 83.78% by step 4,000 of the first epoch, and reaches 89.24% in the final model. Thus, noisy early predictions can weaken the initial order, but the ordering improves rapidly rather than remaining fixed.


6. Expanded Limitations

We will add a concise and explicit limitations discussion in the main paper covering:

  • Heuristic ordering. CGQO is a hand-designed similarity grouping rule rather than a learned ordering objective.
  • Dependence on prior predictions. Inaccurate boxes or poorly calibrated scores can reduce ordering quality, particularly early in training or under distribution shifts, although CGQO is dynamically recomputed and improves as predictions become more reliable.
  • Smaller gains on strong baselines. The benefit can become smaller when a detector already contains highly optimized or competition-aware query interaction, where sequential ordering may provide less additional information.
  • Scope of the diagnostic analysis. We will incorporate the new diagnostics on early ordering quality, long-distance competitors, and crowded scenes. More extreme cases, including very large or chain-structured competition clusters, severely miscalibrated scores, and unusual query-density distributions, remain insufficiently explored.
Reviewer_6Ef8OpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

DETRNN reframes duplicate suppression in DETR decoders as a sequential refinement problem. It (1) sorts object queries into an explicit competition order via CGQO (confidence c=max(s) + IoU/cosine similarity with a density-adaptive threshold), and (2) replaces decoder self-attention with a bidirectional RNN (mainly Mamba) that refines queries along this order. Inserted in the last 1–2 decoder stages, it reports +0.3–1.1 AP across Def-DETR++, DINO, MS-DETR, and LoRA-DETR on COCO/CrowdHuman, with comparable FLOPs/FPS.

Strengths and weaknesses

Strengths

  1. Casting NMS's "rank-and-group then suppress" as an in-decoder, learnable sequential refinement is a fresh and intuitive perspective, and to my knowledge among the first to use an RNN for query–query interaction in DETR decoders.
  2. Gains appear across four baselines, two backbones (R50, Swin-L), two datasets, and multiple RNN families (Mamba/RWKV/xLSTM/TTT), suggesting the effect is not tied to one specific sequential operator.
  3. FLOPs are essentially unchanged and FPS is comparable; module-level profiling shows favorable memory scaling at very large query counts, and in some cases throughput even improves after replacing heavier query-interaction modules.
  4. The 1-decoder stress test and the ∆AP-after-NMS proxy are sensible attempts to measure decoder-internal de-duplication beyond final AP.

Weaknesses

  1. The gain is not shown to come from sequential modeling specifically. Missing controls: (a) injecting the same CGQO order into self-attention (as a rank bias) under matched parameters, and (b) a head-to-head with EASE-/Relation-DETR's attention-prior mechanism under a shared recipe. The improvement may stem from competition-aware priors any operator could use.
  2. Many results are +0.3–0.5 AP, but only LoRA-DETRNN uses 3 seeds; all others are single runs with no variance, so gains may lie within noise.
  3. All baselines are adapted under a unified recipe and EASE-DETR is self-reimplemented (no official code); given the small margins, mild under-tuning could explain them. No comparison to original reported numbers.
  4. "Replacing self-attention" overstates the result, and capacity is uncontrolled. Tab. 9 shows replacing self-attention in all layers is worse than only the last 1–2 (48.4 vs 48.7 AP, 18 vs 20 FPS), i.e., the Bi-RNN does not fully substitute for self-attention. Separately, Mamba adds parameters + bidirectionality + IOF-PE, yet no parameter-matched self-attention baseline is given.
  5. CGQO is non-differentiable and its failure modes are untested. Ordering uses discrete, gradient-stopped operations, so the RNN cannot fix a poor order (the random-order drop in Tab. 5 confirms this sensitivity). No stress test of worst cases (large or chain-structured competition clusters, or competitors placed far apart in the sequence).
Questions
  1. When same-object competitors are far apart in the CGQO sequence, does suppression degrade with hop count? A distance-bucketed diagnostic vs. self-attention would help.
  2. Set-to-sequence effects. At group boundaries, do adjacent queries from different objects interfere through the hidden state?
  3. Can a poor early-training order lock in a wrong winner? How does ordering quality evolve?
Limitations

Appendix notes slightly higher per-module latency, 2D-only evaluation, and many-query regimes needing validation. The dataset scope is also narrow given the motivation: despite targeting de-duplication under heavy competition, broader benchmarks such as Objects365 (large-vocabulary) and WiderPerson (crowded) are not explored, though some cited competitors already report on them. The discussion also omits the most decision-relevant points: CGQO's non-differentiability, the lack of significance for small gains, and that "replacing self-attention" applies only to the last 1–2 layers.

Paper formatting concerns

None

Final justification

Given that the requested controls and statistical support have been provided and the results are consistent, I am raising my score to 4 (borderline accept).

1 comment

1. Ordered Interaction Controls (W1)

(a) Order-aware Self-attention

We thank the reviewer for suggesting this important control. We add a parameter-matched order-aware self-attention baseline on DINO/R50/1×. Specifically, after CGQO orders the queries, we encode the relative rank distance between each query pair and project it into an attention bias added to the self-attention matrix.

MethodParamsAPAP50AP75
Baseline self-attn47.5M49.066.653.5
CGQO + rank-bias attn47.7M49.667.554.2
CGQO + Bi-RNN47.6M50.068.154.0

This result further validates the effectiveness and extensibility of CGQO, showing that the competition-aware order can also benefit attention when injected as a rank bias. Meanwhile, under comparable parameters, Bi-RNN still achieves higher AP, suggesting that recurrent state propagation provides additional benefit beyond simply injecting the rank prior.

(b) Competition-aware Baselines

We clarify that Tab. 8 compares against the numbers reported in the original papers of EASE-, Relation-, and DDQ-. For each method, we keep its detector setting fixed and replace its original attention-prior / competition-aware interaction module with CGQO + Bi-RNN.

Therefore, the comparison does NOT rely on under-tuned baselines, but evaluates whether DETRNN can replace existing competition-aware modules under matched settings. The gains are modest because these baselines already contain strong competition-aware priors, but DETRNN still remains competitive as an alternative query-interaction module.


2. Baseline Fairness (W3)

We apologize if the current wording caused confusion. In Tab.1 and Tab. 8, we use the original reported or officially matched results available, and compare each DETRNN variant with its corresponding baseline under matched settings. These baselines are NOT obtained by under-tuning them under our own recipe. Thus, the reported gains do not come from weakening the baseline recipe. We will clarify this in the revision.


3. Distance-Bucketed Suppression Diagnostic (W5, Q1)

To directly test whether same-object suppression weakens over long sequence distances, we conduct a distance-bucketed diagnostic.

Setup. We analyze the first 1,600 COCO val images using Def-DETRNN++/R50/1x and its self-attention baseline, with the same CGQO construction and filtering criteria.

Pair construction. For each GT object gg, foreground competitors satisfy IoU(bi,bg)≥0.5\mathrm{IoU}(b_i,b_g)\geq 0.5 and si(yg)≥0.05s_i(y_g)\geq 0.05. We use the pivot of the CGQO group containing the Hungarian-matched query m(g)m(g) and pair it with every same-GT competitor. The hop distance is their absolute positional distance in the CGQO sequence.

Metrics. The first column groups pivot–competitor pairs into hop-distance buckets. For each bucket, we report their mean GT-class scores and the pivot–competitor margin. Higher pivot score, lower competitor score, and larger margin indicate stronger suppression.

Hop-distance bucketMethodPivot score ↑Competitor score ↓Margin ↑
1–16Attn0.4410.1250.316
DETRNN0.4550.1180.337
17–64Attn0.3770.1430.234
DETRNN0.3910.1360.255
65–256Attn0.4100.1060.304
DETRNN0.4190.1050.314
257-900Attn0.4560.0960.360
DETRNN0.4590.0920.367

Finding. DETRNN's suppression does not weaken as hop distance increases, and it outperforms self-attention in every bucket.


4. Early-Training Lock-in and Ordering Evolution (W5, Q3)

To test whether a poor early order can lock in a wrong winner, we examine both CGQO's mechanism and its ordering evolution during the first epoch.

Mechanism. CGQO only reorders queries: it neither forces the pivot to be Hungarian-matched nor removes non-pivot queries. All queries still participate in matching and loss computation, and CGQO is recomputed from the current predictions at every inserted decoder layer.

Diagnostic. Using the same model and data setting as the "Distance-Bucketed Suppression Diagnostic", we measure the pivot-match rate, i.e., the percentage of GT objects whose Hungarian-matched query is also the pivot of its CGQO group. A higher rate indicates more reliable pivot selection. The first epoch contains 7,393 training steps.

Training stepPivot-match rate ↑
10040.28%
50054.52%
1,00057.81%
2,00080.86%
4,00083.78%

Finding. The pivot-match rate rises rapidly from 40.28% to 80.86% within the first 2,000 steps and reaches 83.78% by step 4,000. Since CGQO dynamically recomputes the order without discarding queries, early ordering errors are corrected rather than locked in.


5. Group-Boundary Effects (W5, Q2)

Using the same experimental setup as the preceding “Distance-Bucketed Suppression Diagnostic,” we examine group boundaries from two complementary perspectives: whether they are distinguishable in the recurrent input, and whether they cause measurable degradation of the following group pivot.

Boundary cue. CGQO forms a piecewise-continuous sequence: queries remain similar within a competition group, while each new group starts from the strongest remaining query as its pivot. This structure is intentional. A purely spatial ordering could avoid explicit group boundaries, but it would not explicitly organize confidence-ranked queries around their competing duplicates, which is central to our de-duplication objective.

To test whether the resulting group transition is visible in the query features, we compare the cosine similarity of the last within-group adjacent pair (tail-1 vs. tail) with that of the adjacent pair across the boundary (tail vs. next pivot).

Compared queriesMean similarity25th-percentile similarity75th-percentile similarity
tail-1 vs. tail0.7340.6100.906
tail vs. next pivot0.3300.1330.486

The mean cosine similarity drops by 0.404 at group boundaries. Moreover, the 25th-percentile cosine similarity for tail-1 vs. tail remains higher than the 75th-percentile cosine similarity for tail vs. next pivot. This clear feature change lets the recurrent module recognize that a new competition group has started, rather than treating it as part of the previous group.

Empirical effect. If hidden-state carryover caused systematic cross-group interference, the following group pivot should be the first query to degrade. However, in the preceding "Distance-Bucketed Suppression Diagnostic," DETRNN maintains pivot-competitor margins of 0.337, 0.255, 0.314, and 0.367 across all hop-distance buckets, consistently larger than those of self-attention. Moreover, in "Early-Training Lock-in and Ordering Evolution," the pivot-match rate rises to 83.78% by step 4,000 of the first epoch and reaches 89.24% in the final model (in our response to Reviewer 6Ef8) .

Conclusions. Together, the boundary is clearly visible in the recurrent input, while the following pivots remain strong in the output. The boundary is therefore not simply an undesirable discontinuity, but a useful cue introduced by the competition-centered grouping: it separates successive object groups without causing systematic cross-group interference.


6. Seed Robustness (W2)

We agree that small gains should be checked with multiple seeds. We therefore add 3-seed results on four representative R50/1× settings:

DetectorBaseline APSeed 1Seed 2Seed 3MeanStd
Def-DETRNN++47.648.748.948.648.730.15
DINO-RNN49.050.050.049.849.930.12
MS-DETRNN50.050.550.350.550.430.12
LoRA-DETRNN52.553.053.052.952.970.06

All individual runs outperform their corresponding baselines, and the standard deviations are small. The gains on stronger baselines are indeed more modest, but these results suggest that they are stable rather than artifacts of a single run. We will include these multi-seed results in the revision.

7. Broader Crowded Benchmark (Limitations)

We agree that broader crowded benchmarks are useful for evaluating de-duplication. Note that Tab. 6 already includes CrowdHuman, a standard crowded pedestrian benchmark, where DETRNN improves Def-DETR++ by +1.1 AP. Following the suggestion, we additionally evaluate on WiderPerson.

We use the same Def-DETR++/R50/1× setting and evaluate both the baseline and DETRNN with the same AP metrics:

MethodAPAP50AP75
Def-DETR++47.275.749.6
Def-DETRNN++48.276.650.6

DETRNN improves AP by +1.0, consistent with the improvement observed on CrowdHuman. These results further support that DETRNN is helpful in crowded scenarios with stronger duplicate competition.

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

This paper introduces DETRNN, a plug-and-play module designed to address the issue of redundant predictions in DETR-style object detectors. While these detectors use one-to-one bipartite matching to avoid post-processing like Non-Maximum Suppression (NMS), they still struggle with multiple queries producing highly similar hypotheses for the same object, especially in dense scenes. The authors identify that an explicit sequential order is a missing but vital cue for organizing competition among duplicates in end-to-end detection. This paper proposes a novel module that combines CGQO for structuring queries and a Bi-RNN for sequential interaction, turning de-duplication into a learnable internal process. Extensive experiments on multiple detectors (including DINO, MS-DETR, and LoRA-DETR) demonstrate that DETRNN consistently improves accuracy (mAP) and reduces redundancy with efficiency comparable to standard self-attention. The module demonstrates better memory scaling than standard self-attention when the number of object queries increases, as it avoids the O(N2N^2) memory cost of large attention maps.

Strengths and weaknesses

This paper addresses a fundamental bottleneck in DETR-style object detectors: the persistent issue of redundant predictions despite the use of one-to-one bipartite matching. The authors present DETRNN, a novel "plug-and-play" module that replaces the standard parallel self-attention in the decoder with a learnable, sequential refinement process. The core insight is that the unordered nature of queries in standard Transformers lacks the explicit competition cues necessary to effectively suppress duplicates. To solve this, the authors propose Competition-Guided Query Ordering (CGQO) to structure queries into a meaningful sequence, followed by a Bi-directional RNN to model their interaction.

[Strengths]

  1. DETRNN significantly reduces redundant predictions internal to the decoder. In "stress tests" using only a single decoder stage, the module achieved large AP gains and dramatically reduced the residual redundancy that typically requires post-processing NMS to fix.
  2. The module is highly transferable, providing consistent accuracy improvements across various DETR-style architectures, including DINO, MS-DETR, Def-DETR++, and LoRA-DETR. It also showed improvements when replacing more complex competition-specific components in other SOTA models.
  3. While standard self-attention suffers from O(N2N^2 ) memory growth due to large attention maps, DETRNN scales much more efficiently. At 5,000 queries, it uses only 164.1 MB of peak memory compared to 1545.4 MB for standard self-attention.

[Weaknesses]

  1. At common query counts (e.g., 900 queries), the sequential reordering (CGQO) and recurrent interaction add a slight runtime overhead compared to parallel self-attention. For example, the module-level runtime increases from 0.2ms to 0.9ms at 900 queries.
  2. The authors found that the optimal placement of the module varies; weaker baselines benefit from insertion in the last two decoder stages, while stronger baselines perform best with insertion only in the final stage.
  3. The ordering mechanism (CGQO) relies on the quality of bounding boxes and confidence scores generated by encoder proposals or previous decoder stages. If these initial predictions are poor, the resulting competition sequence may be less effective.
  4. Compared to the standard Transformer decoder, DETRNN requires additional steps for sorting, grouping, and assembling query clusters, which is more complex to implement than order-agnostic parallel attention.
Questions
  1. Given that the isolated module runtime increases from 0.2ms to 0.9ms at 900 queries, what specific parts of the CGQO process (e.g., the O(N2N^2) pairwise similarity or the grouping logic) contribute most to this overhead?
  2. The current CGQO similarity metric relies heavily on geometric overlap (IoU) of bounding boxes; how would this mechanism adapt to tasks where bounding boxes are less representative, such as instance segmentation?
  3. The authors currently use a "rule-of-thumb" for stage placement, inserting the module in the last two stages for weaker baselines and only the last stage for stronger ones. Is there a more systematic metric (e.g., measuring the entropy of the one-to-one matching) that can predict the optimal insertion point?
Limitations

yes

Paper formatting concerns

In the references, some conference names are abbreviated while others are not. Authors should carefully review them and ensure consistent formatting.

1 comment

1. Runtime Breakdown and Implementation Cost (W1, W4, Q1)

Profiling setup. Following Appendix F, we benchmark the full CGQO and a similarity-only CUDA variant at 900 queries with identical inputs and hyperparameters. After 128 warm-up calls, latency is averaged over 8000 timed calls using synchronized CUDA events. The remaining latency estimates the grouping and order-construction overhead.

ComponentRuntimeApprox. share
Pairwise similarity0.09 ms19%
Grouping and order construction~0.39 ms~81%
Full CGQO0.48 ms100%

Although pairwise similarity has O(N2)O(N^2) complexity, it is implemented as dense GPU operations over compact box and class-score tensors and takes only 0.09 ms at 900 queries. Most of the overhead comes from the subsequent grouping stage. These operations involve dependent control flow and irregular index updates, making them less GPU-friendly than dense similarity computation.


2. Beyond Box-Based Similarity (Q2)

CGQO is metric-agnostic and relies solely on pairwise candidate similarity. For task like instance segmentation, the box-IoU term can be naturally replaced by mask IoU, while the pivot-and-group procedure remain unchanged. Extending CGQO to mask-level similarity is an important future direction.


3.Robustness to Imperfect Predictions (W3)

We clarify that CGQO does not require highly accurate initial predictions.

Mechanism. Crucially, the pivot query chosen during CGQO is not required to be the one matched to the ground-truth box in the subsequent Hungarian matching. As long as queries in the same local region are grouped adjacently, the Bi-RNN can effectively model relative competition and suppress duplicate hypotheses along the sequence, regardless of absolute initial box quality. Moreover, CGQO is mainly applied in later decoder layers and is recomputed from current predictions, so the order can improve as predictions become more reliable.

Ordering evidence. In the “Early-Training Lock-in and Ordering Evolution” (response to Reviewer 6Ef8) , the pivot-match rate (matched query selected as pivot) increases from 40.28% at step 100 to 83.78% by step 4,000 of the first epoch. It further reaches 89.24% in the final model(response to Reviewer K9UV under “Novelty and Mechanistic Evidence”). Poor early predictions can temporarily reduce ordering quality, but the order improves rapidly rather than remaining fixed or locking in an early error.


4. Toward Systematic Stage Placement (W2, Q3)

Early decoder stages likely need to retain candidate redundancy for recall, while later stages resolve residual competition; inserting sequential ordering too early may prematurely suppress viable hypotheses, especially for baselines with built-in one-to-many supervision.

We measured layer-wise AP/AR100 for the original Def-DETR++ and MS-DETR baselines:

BaselineMetricStage 4Stage 5Stage 6
Def-DETR++AP47.147.447.6
AR10067.467.767.6
MS-DETRAP49.149.550.0
AR10072.773.072.6

AR100 saturates by decoder stage 4 (within 0.3 of its peak at stage 5) while AP still gains 0.5-0.9 points through stage 6, indicating that object coverage stabilizes early and later layers mainly resolve residual query competition, which is consistent with placing sequential refinement in late stages only.

This recall-saturation signal identifies the right late-layer region; we are exploring further diagnostics (layer-wise CGQO group statistics, NMS-gain curves) and will note this as an open direction in the revision.

Comments on the paper

1 comment
Meta-review

Based on suggestions from several reviewers, this paper lacks some key experiments to verify whether the improvement of the proposed method truly comes from the order itself. Furthermore, the authors need to address reviewers' concerns regarding importance and originality. Additionally, while this paper is similar in approach to recurrent DETR (IEEE Access 2023) but has entirely different objectives (this paper uses it to remove duplicate predictions, while recurrent DETR uses it to identify highly overlapping targets), a separate discussion of COCO and CrowdHuman would be an interesting analysis.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.