betaFeedback

WorksComputer Science

WinARDet: Compressed Window Auto-Regression for Long-Horizon Vision-Language Grounding

Abstract

MLLM-based detectors formulate vision-language grounding as autoregressive coordinate generation, yet in dense scenes, they often collapse into a box repetition loop, repeatedly emitting identical boxes until the decoding budget is exhausted. We trace this failure to historical-answer attention takeover: Under full-history autoregression, repeated coordinate tokens in the growing answer history attract disproportionate attention, crowding out the attention sinks needed to attend to new visual evidence. % To break this loop, in this paper, we propose Compressed Window Auto-Regression (WinAR). This new mechanism partitions a long answer sequence into consecutive generation windows and restricts full token-level autoregression to the current window only while compressing each previous window into a fixed set of latent tokens that condition subsequent decoding. This design reduces the repeated exposure to raw historical coordinates that triggers the attention takeover, yet preserves cross-window dependencies essential for coherent multi-object generation. On RSDense, which contains 200-2,000 objects per image, our model WinARDet improves RexOmni F1-score (IoU=0.5) from 32.16 to 39.36 over the baseline, while reducing the redundancy rate from 35.48% to 13.00%. WinARDet also generalizes across decoding strategies and output formats, including parallel box decoding and polygon generation, providing a practical paradigm for long-horizon vision-language grounding across scene densities.

Introduction

Modern MLLM-based detectors, such as RexOmni [13] and LocateAnything [30], formulate object detection as autoregressive next-token prediction, enabling flexible vision-language grounding under complex instructions beyond the fixed prediction interfaces of conventional detectors [21, 7, 29]. However, extending this autoregressive formulation to dense visual scenes introduces a fundamental long-horizon grounding challenge [32, 11]. When hundreds or even thousands of objects must be generated within a single response, the model must continuously discover previously uncovered objects while keeping track of those already localized. Since autoregressive inference operates under a finite and costly decoding budget, every redundant prediction consumes generation steps that could otherwise be used to recover new objects. Sustaining new-object discovery throughout a long decoding horizon is therefore critical to both detection accuracy and inference efficiency.

Our empirical investigation reveals that MLLM-based detectors under the Full-History Auto-Regression (FHAR) paradigm, where each prediction conditions on the complete history of generated answer tokens, progressively lose their ability to sustain new-object discovery over extended decoding horizons. In dense configurations, we observe that a supervised fine-tuned RexOmni model [13] under the FHAR paradigm initially yields valid detections, yet eventually deteriorates into a pathological box repetition loop, wherein identical or nearly identical bounding boxes are emitted repeatedly (Figure 1 (middle, top)). This decoding collapse is quantitatively characterized in Figure 2(a): Over the initial 400 box predictions, the redundancy rate escalates from apapproximately 10% to near 100%, while the rate of discovering novel objects concomitantly plummets from roughly 16% to nearly zero. Consequently, a substantial portion of the remaining decoding budget is expended on redundant box predictions rather than on unaccounted objects, causing recall to saturate while inference latency continues to accumulate. Ultimately, this degenerative process substantially undermines both the detection accuracy and the overall inference efficiency.

WinARDet overview

Figure 1. WinARDet overview. Grounding Performance across Densities(Left): WinARDet out-performs the baseline across benchmarks of varying scene densities([18, 32, 6, 11]), with increasingly pronounced gains in denser scenes. Breaking Box Repetition Loop(Middle): WinARDet breaks the box repetition loop, suppressing repeated predictions and recovering substantially more distinct objects. Beyond Bounding Boxes(Right): WinARDet generalizes to polygon detection, extending beyond bounding-box.

Redundancy and New-Object Discovery over Decoding and Attention Dynamics over Decoding

Figure 2. (a) Metrics are averaged over intervals of 100 predicted boxes on RSDense(§ 4). FHAR(left) rapidly accumulates redundant predictions as new-object discovery collapses, whereas WinAR(right) suppresses redundancy and sustains the discovery of new objects. (b) The onset of the box repetition loop coincides with historical-answer attention takeover and reduced system-token attention in FHAR(left), while WinAR(right) maintains a more stable attention allocation.

Our attention analysis links this degeneration to a progressive historical-answer attention takeover. Specifically, we partition the conditioning context into system, visual, prompt, and historical-answer regions, and track the softmax-normalized attention mass assigned to each region by coordinate-token queries throughout decoding. As shown in Figure 2(b), attention to the historical answer grows steadily with the decoding horizon and rises sharply near the onset of the repetition loop, accompanied by a pronounced reduction in attention to the initial system tokens. This redistribution is particularly revealing because prior studies ([33, 22]) have shown that a small set of initial system tokens often serves as attention sinks, absorbing excess attention during autoregressive decoding. In dense grounding, however, the expanding raw answer history progressively displaces this sink allocation with explicit and increasingly repetitive coordinate patterns. Once these raw coordinates dominate the conditioning context, the decoder becomes increasingly biased toward previously generated locations. Each duplicated box is then appended back to the history, further strengthening this bias and ultimately forming a self-reinforcing box repetition loop.

To break this loop, we propose Compressed Window Auto-Regression (WinAR), an alternative autoregressive paradigm for long-horizon structured generation. WinAR follows a simple principle: remember compactly and generate locally. In contrast to FHAR, which retains every previous coordinate token, WinAR preserves exact token-level history only within the current window and represents each previous completed window with a fixed number of latent tokens by a Window History Compressor. During training, preceding windows appear only through their compact latent tokens, and cross-entropy supervision is applied to the current window. During inference, each completed window is compressed before generation proceeds to the next. WinAR therefore changes how autoregressive context is carried across a long answer: local generation remains exact, while cross-window dependencies pass through a compact history. By limiting repeated exposure to raw coordinate patterns without eliminating historical conditioning, WinAR mitigates historical-answer attention takeover and preserves the decoding budget for discovering new objects.

Experiments show that the benefit of WinAR becomes increasingly pronounced as scene density grows ([32, 6]). On RSDense benchmark, which contains 200–2,000 objects per image, integrating WinAR into RexOmni reduces the mean prediction redundancy rate from 35.48% to 13.00% and improves F1 @IoU = 0.5 from 32.16 to 39.36. It also generalizes to the parallel box decoding framework of LocateAnything ([30]) and improves F1 from 26.15 to 27.54 and reduces mean redundancy from 14.89% to 2.13% on RSDense. WinAR also extends to structured outputs such as polygons and substantially reduces peak training memory. When training LocateAnything, WinAR reduces peak GPU memory consumption by 34.1%, enabling training on 8 NVIDIA A40 GPUs(48 GB) without MagiAttention ([34]). These results establish WinAR as a general and practical paradigm for accurate and efficient vision-language grounding across varying scene densities. Our contributions are threefold:

  • We identify a long-horizon failure mode in MLLM-based detectors, where Full-History Auto-Regression progressively triggers historical-answer attention takeover and a self-reinforcing box repetition loop.

  • We propose Compressed Window Auto-Regression (WinAR), which preserves exact autoregression within local windows while compressing completed windows into compact latent tokens, mitigating repetition without discarding cross-window dependencies.

  • Extensive experiments across scene densities, decoding strategies, and structured output formats demonstrate that WinAR consistently improves detection accuracy, substantially reduces prediction redundancy, and lowers training memory for long-sequence grounding.

Related Work

Regression-based Object Detection ([25, 2, 3, 35, 24, 8 }) is built upon a discriminative classification and regression paradigm. They typically extract multi-scale feature maps with a backbone ({citep}]Dosovitskiy, 2020; Simeoni et al., 2025) and a feature pyramid network ({citep}Lin et al., 2017a), instantiate candidate proposals in the form of anchors ({citep}Ren et al., 2016), points ({citep}Tian et al., 2019), or learnable object queries ({citep}Carion et al., 2020), assign foreground and background samples via label assignment strategy ({citep}Zhang et al., 2020; Wang et al., 2025a), optimize semantic recognition and geometric localization with classification ({citep}Lin et al., 2017b) and regression losses ({citep}Li et al., 2020), respectively. Motivated by large-scale contrastive vision-language pre-training such as CLIP ({citep}Radford et al., 2021), open-vocabulary detectors ({citep}Li et al., 2022; Liu et al., 2024) further align category names or textual prompts with regional visual features, extending detection beyond fixed class IDs. However, their language understanding remains limited by relatively lightweight text encoders ({citep}Devlin et al., 2019`) and a narrow supervision interface dominated by region–text matching with category names or short noun phrases. As a result, they struggle to exploit heterogeneous vision-language supervision and remain limited in complex language instruction understanding and reasoning tasks.

MLLM-based Object Detection ([5, 31, 12, 1, 16, 17, 13, 30]) leverages pretrained large language models to unify heterogeneous vision-language tasks under a shared generative objective, enabling detection conditioned on complex semantics and language instructions. As an early precursor, Pix2Seq ([4]) quantizes object categories and box coordinates into discrete tokens and casts detection as auto-regressive sequence prediction. This formulation is also extended to MLLMs, allowing object detection, pointing, OCR, keypoint localization, and other vision-language tasks to be expressed through a shared generative interface. RexOmni ([13]) represents geometric relations using special coordinate tokens and adopts large-scale supervised fine-tuning followed by geometry-aware GRPO post-training to improve localization accuracy and mitigate coordinate drift and duplicate predictions. LocateAnything Wang et al. [30] further introduces parallel box decoding, which treats each bounding box or point as an atomic geometric unit, preserving intra-box coherence while reducing the serial latency of token-by-token coordinate generation. Despite these advances, these works still preserve the ever-growing raw answer history during auto-regressive generation and do not explicitly address long-horizon dense grounding, where accumulated coordinate tokens can dominate subsequent predictions and induce self-reinforcing box repetition loop.

Method

We propose Compressed Window Auto-Regression (WinAR), a simple and efficient paradigm for long-horizon vision-language grounding that replaces Full-History Autoregression with windowed generation conditioned on compact historical context. Section 3.1 introduces the preliminaries of autoregressive vision-language grounding based on RexOmni Jiang et al. [13] and LocateAnything Wang et al. [30], followed by a detailed description of WinAR in § 3.2.

Preliminaries

MLLM-based detectors are built upon pretrained multimodal large language models, such as Qwen2.5-VL-3B. Given an image II and a natural-language prompt PP, the model encodes II into visual tokens V\mathbf{V} using a visual encoder Dosovitskiy [10], while the system instruction and prompt are tokenized and mapped into text embeddings. The resulting system, visual, and prompt tokens are concatenated to form the multimodal prefix X=[S;V;P]\mathbf{X} = [\mathbf{S}; \mathbf{V}; \mathbf{P}]. Under Full-History Auto-Regression, the target answer Y=(y1,…,yT)\mathbf{Y} = (y_1, \ldots, y_T) is generated through next-token prediction conditioned on the multimodal prefix X\mathbf{X} and the complete raw answer history:

pθ(Y∣X)=∏t=1Tpθ(yt∣X,Y<t),(1)p_{\theta}(\mathbf{Y} \mid\mathbf{X}) = \prod_{t=1}^{T} p_{\theta}(y_t \mid\mathbf{X}, \mathbf{Y}_{<t}), \tag*{(1)}

where Y<t\mathbf{Y}_{<t} denotes all previously generated answer tokens. During supervised fine-tuning, the ground-truth answer is appended to the multimodal prefix X\mathbf{X} and optimized with cross-entropy loss under a causal attention mask. At inference time, the model first prefills the multimodal prefix X\mathbf{X} into the KV cache, and then autoregressively generates answer tokens while incrementally updating the cache until an end-of-sequence token or the maximum decoding length is reached.

To adapt the general MLLM generation paradigm to object detection, RexOmni Jiang et al. [13] and LocateAnything Wang et al. [30] recast object detection as structured sequence prediction over category and coordinate tokens. Both methods encode spatial locations using quantized relative coordinates. Horizontal and vertical pixel coordinates are normalized by the image width and height, respectively, and uniformly quantized into 1,000 discrete bins. The final 1,000 entries of the language-model vocabulary, denoted by ⟨0⟩\langle0\rangle through ⟨999⟩\langle999\rangle, are repurposed as coordinate tokens, allowing a bounding box [x0,y0,x1,y1][x_0, y_0, x_1, y_1] to be represented by four coordinate tokens. As illustrated in Figure 3, RexOmni further uses the original structural tokens of Qwen2.5-VL-3B, such as

Figure 3. Illustration of the serialized response formats and compression granularities for RexOmni and LocateAnything. RexOmni represents the answer as a flat token sequence and generates it through next-token prediction, whereas LocateAnything organizes the answer into box-aligned blocks and predicts the coordinate tokens within each block in parallel. Accordingly, WinAR partitions RexOmni outputs into fixed-length token windows (e.g., every 300 tokens), while forming windows from a fixed number of complete blocks (e.g., every 50 blocks) for LocateAnything.

<|object_ref_start|> and <|box_end|>, to delimit each category phrase and its associated boxes, and serializes the complete answer into a flat sequence for standard next-token prediction. LocateAnything instead reorganizes the response into fixed-length atomic blocks of six tokens to support parallel box decoding. Different block types are used to represent category phrases and box outputs, while unused positions are padded with <null> tokens to maintain a uniform block length. Under this formulation, each box can be decoded in parallel within a single forward pass, reducing decoding latency while ensuring box-aligned and structural outputs.

Compressed Window Auto-Regression

Motivated by the historical-answer attention takeover and box repetition loop analyzed in § 1, WinAR replaces the ever-growing raw answer history of FHAR with windowed generation conditioned on compact historical context. As illustrated in Figure 4(a), WinAR follows a simple principle: remember compactly and generate locally. Given a target answer Y=(y1,…,yT)\mathbf{Y} = (y_1, \ldots, y_T) of length TT and a predefined window length LL, we partition Y\mathbf{Y} into K=⌈T/L⌉K = \lceil T/L \rceil consecutive windows, where each window contains LL tokens except the last:

Figure 4. Overview of the proposed Compressed Window Auto-Regression. (a) A long answer is partitioned into consecutive windows and processed sequentially. Preceding windows are compressed into memory and combined with the multimodal prefix to condition the current window, on which cross-entropy loss is applied. (b) Structure of the Window History Compressor.

Y=[Y(1);Y(2);…;Y(K)],(2)\mathbf{Y} = [\mathbf{Y}^{(1)}; \mathbf{Y}^{(2)}; \ldots; \mathbf{Y}^{(K)}], \tag*{(2)}

where Y(k)\mathbf{Y}^{(k)} denotes the kk-th window. Before generating the kk-th window, each completed window is independently transformed by the Window History Compressor into latent tokens:

H(i)=Cϕ(Y(i)),i<k,(3)\mathbf{H}^{(i)} = C_{\phi}\left(\mathbf{Y}^{(i)}\right), \qquad i < k, \tag*{(3)}

where CϕC_{\phi} denotes the Window History Compressor, which is detailed in the following paragraph. The resulting generation process is then formulated as:

pθ(Yt(k)∣X)=∏t=1Tkpθ(yt(k)∣X,H<k,Y<t(k)),(4)p_{\theta}\left(\mathbf{Y}_{t}^{(k)} \mid\mathbf{X}\right) = \prod_{t=1}^{T_k} p_{\theta}\left(y_t^{(k)} \mid\mathbf{X}, \mathbf{H}_{<k}, \mathbf{Y}_{<t}^{(k)}\right), \tag*{(4)}

where only the local history Y<t(k)\mathbf{Y}_{<t}^{(k)} of the current window remains explicitly visible. The original multimodal prefix X\mathbf{X} is retained throughout generation, while the answer context grows only through compact latent tokens rather than raw coordinate token sequences.

Window History Compressor transforms each completed answer window of length LL into a compact set of latent tokens. Since fixed-length windowing may split a category phrase or a geometric structure at the window boundary, we preserve BB tokens at both ends of the window to retain their exact local context. Thus the kk-th window is decomposed as Y(k)=[yfront(k);ymid(k);yback(k)]\mathbf{Y}^{(k)} = \left[\mathbf{y}_{\mathrm{front}}^{(k)}; \mathbf{y}_{\mathrm{mid}}^{(k)}; \mathbf{y}_{\mathrm{back}}^{(k)}\right], where the front and back portions each contain BB boundary tokens and are passed directly to the output without compression, while the middle portion contains the remaining Lmid=L−2BL_{\mathrm{mid}} = L - 2B tokens and is the only part processed by the compressor. As illustrated in Figure 4(b), given a predefined number of compressed latent tokens NN, the middle tokens are processed through two complementary branches. In the first branch, the (L−2B)(L - 2B) middle tokens are uniformly partitioned into NN contiguous intervals, and each interval is average-pooled to initialize one query. This content-aware initialization provides each query with a localized summary of a distinct portion of the window, rather than relying on randomly initialized queries. To enable equal partitioning, the hyperparameters LL, BB, and NN are chosen such that L−2BL - 2B is divisible by NN. In the second branch, learnable window-local positional embeddings are added to preserve relative order within the window, followed by a linear projection that produces the keys and values for cross-attention.

The queries are then refined through stacked cross-attention and feed-forward layers. The resulting tokens are normalized and passed through an output projection consisting of two linear layers with a GELU activation in between. Finally, the compressed latent tokens are concatenated with the front tokens yfront(k)\mathbf{y}_{\mathrm{front}}^{(k)} and back tokens yback(k)\mathbf{y}_{\mathrm{back}}^{(k)}. The compressor thus reduces an LL-token window to 2B+N2B + N latent tokens, preserving exact boundary context while compactly summarizing the middle portion.

Training and Inference. During training, the ground-truth answer is processed window by window. For the kk-th training stage, all preceding windows are represented solely by H<k\mathbf{H}_{<k}, while cross-entropy supervision is applied only to the current target window. Raw windows can be discarded after compression, avoiding the need to retain full-sequence activations throughout training and thereby substantially reducing GPU memory consumption. As illustrated in Figure 3, windows are formed using a fixed number of answer tokens for RexOmni, whereas for LocateAnything, window boundaries are aligned with complete atomic blocks.

At inference time, the model first generates Y(1)\mathbf{Y}^{(1)} from the multimodal prefix X\mathbf{X}. Once the current window is completed, it is compressed into H(1)\mathbf{H}^{(1)} and removed from the explicit answer context. The model then generates the next window conditioned on the original prefix, the accumulated memory tokens, and the locally generated tokens within the current window. This process repeats until an end-of-sequence token or the maximum decoding budget is reached.

Experiment

Training Details and Evaluation Setup

Training Details. For RexOmni, all variants are trained for 4 epochs with a per-device batch size of 1 and 16 gradient-accumulation steps. The base learning rate is 4×10−54 \times10^{-5}, with a vision-tower learning rate of 4×10−64 \times10^{-6}. RexOmni-WinAR additionally optimizes the Window History Compressor with a learning rate of 4×10−44 \times10^{-4} and adopts token-level windowing with L=300L = 300, preserving B=6B = 6 tokens at each boundary and compressing the remaining tokens into N=8N = 8 latent tokens. For polygon detection, we use a larger window configuration with L=400L = 400, B=8B = 8, and N=12N = 12. To control for the reduced exposure of long samples introduced by windowing during training, we further construct a RexOmni-FHAR* baseline, where a sample containing TT answer tokens is oversampled approximately ⌈T/L⌉\lceil T/L \rceil times, matching both the effective sample exposure and the total number of optimizer updates of RexOmni-WinAR. We also conduct GRPO experiments following the reward design of RexOmni, training for one epoch on the subset of training samples containing more than 200 objects. For LocateAnything, we adopt the same optimization settings as RexOmni and construct corresponding FHAR* and WinAR variants. Since LocateAnything operates on box-aligned atomic blocks, LocateAnything-WinAR adopts block-level windowing with L=50L = 50 blocks (300 tokens), preserves B=1B = 1 block (6 tokens) at each boundary, and compresses the remaining blocks into N=2N = 2 latent blocks (12 tokens). All FHAR-based experiments are conducted on eight NVIDIA H100 GPUs, whereas all WinAR experiments are conducted on eight NVIDIA A40 GPUs. More implementation details are provided in Section A.2.

Evaluation Setup. We conduct experiments on DOTA2 (Xia et al., [32]) and SODA-A (Cheng et al., [6]), jointly training on the union of their training sets and evaluating on the union of their validation sets, denoted as DOTA2 & SODA-A. Following RexOmni (Jiang et al., [13], we report category-averaged Recall, Precision, and F1F_1 score at an IoU threshold of 0.5. For polygon detection, we train separate models on the DOTA2 and SODA-A training sets and evaluate them on their corresponding validation sets. To further evaluate performance under extremely dense conditions, we select all evaluation images in DOTA2 & SODA-A containing more than 200 objects to construct the RSDense subset and report image-averaged Recall, Precision, and F1 score at an IoU threshold of 0.5. To quantify prediction redundancy, we further report the duplicate rate Rdup=Ndup/NpredR_{\mathrm{dup}} = N_{\mathrm{dup}}/N_{\mathrm{pred}} and the over-prediction rate Rover=(Npred−Ngt)/NgtR_{\mathrm{over}} = (N_{\mathrm{pred}} - N_{\mathrm{gt}})/N_{\mathrm{gt}}, where NdupN_{\mathrm{dup}}, NpredN_{\mathrm{pred}}, and NgtN_{\mathrm{gt}} denote the numbers of duplicate predictions, total predictions, and ground-truth objects, respectively. RdupR_{\mathrm{dup}} measures the fraction of redundant predictions caused by box repetition, while RoverR_{\mathrm{over}} measures the relative excess of the total prediction count over the ground-truth count. Both metrics are computed per image and then averaged over the evaluation set, denoted as Mean RdupR_{\mathrm{dup}} and Mean RoverR_{\mathrm{over}}. More details on dataset settings and evaluation protocols are provided in Sections A.1 and A.3.

Main Results

Dense Grounding and Box Repetition Suppression. Table 1 reports the main results, where the advantage of WinAR becomes increasingly pronounced as scene density increases. On RexOmni, WinAR improves Recall from 66.94 to 68.32 over the FHAR* baseline on DOTA2 & SODA-A, while reducing Mean RdupR_{\mathrm{dup}} from 2.43% to 1.26% and Mean RoverR_{\mathrm{over}} from 1.39 to 0.51. The improvement becomes substantially more pronounced on RSDense: WinAR increases Recall from 36.82 to 45.23 and F1 from 32.16 to 39.36, while reducing Mean RdupR_{\mathrm{dup}} from 35.48% to 13.00% and Mean RoverR_{\mathrm{over}} from 3.14 to 0.87. The same trend is particularly evident for densely populated categories.

MethodModeDOTA2 & SODA-ARSDense
R@IoU↑ 0.5P@IoU↑ 0.5F1@IoU↑ 0.5Mean RdupR_{\mathrm{dup}} ↓Mean RoverR_{\mathrm{over}} ↓R@IoU↑ 0.5P@IoU↑ 0.5F1@IoU↑ 0.5Mean RdupR_{\mathrm{dup}} ↓Mean RoverR_{\mathrm{over}} ↓
RexOmni ([13])
BaselineNTP54.9062.5658.48––17.3221.6812.69––
FHARNTP63.8661.6662.744.58%3.2423.3924.9916.5758.74%5.85
FHAR*NTP<u>66.94</u>68.26<u>67.59</u><u>2.43%</u><u>1.39</u>36.8237.9232.1635.48%3.14
FHAR*-GRPONTP66.61<u>67.77</u>67.182.31%1.71<u>37.27</u>37.2431.9835.05%3.11
WinARNTP68.3267.6367.971.26%0.5145.2338.9039.3613.00%0.87
Locate Anything ([30])
BaselineNTP27.6846.3734.66––8.2532.4110.52––
FHAR*NTP<u>68.96</u>71.5270.34<u>0.23%</u><u>0.19</u>53.8757.8854.87<u>5.90%</u>0.21
WinARNTP69.98<u>68.08</u><u>69.01</u>0.01%0.1755.42<u>56.22</u><u>54.40</u>0.49%<u>0.20</u>
BaselinePBD16.4519.2517.74––1.0110.971.54––
FHAR*PBD<u>59.98</u>69.02<u>64.18</u><u>0.79%</u><u>0.39</u>23.79<u>32.47</u><u>26.15</u><u>14.89%</u><u>0.84</u>
WinARPBD60.60<u>68.74</u>64.410.35%0.1523.9834.4427.542.13%0.02
BaselineHybrid26.4836.4930.69––6.9725.398.23––
FHAR*Hybrid<u>67.95</u><u>70.99</u><u>69.38</u><u>0.57%</u><u>0.24</u>43.9855.2749.76<u>10.60%</u><u>0.53</u>
WinARHybrid68.4471.3769.870.29%0.2144.1159.9450.821.75%0.16

Table 1. Comparison on DOTA2 & SODA-A and the extremely dense RSDense subset. R, P, and F1 denote recall, precision, and F1 score at an IoU threshold of 0.5. Mean RdupR_{\mathrm{dup}} and Mean RoverR_{\mathrm{over}} measure duplicate predictions and over-prediction, respectively. The best and second-best results within each comparison group are highlighted in bold and <u>underline</u>, respectively. NTP denotes next token prediction, PBD denotes parallel box decoding, and Hybrid denotes a mixed decoding mode combining NTP and PBD. See Locate Anything ([30]) for details.

As shown in Table 2, WinAR improves the Recall of Ship from 57.13 to 65.35 and that of Small Vehicle from 22.65 to 30.06 on RSDense, with their F1 scores increasing from 51.71 to 61.74 and from 19.94 to 26.96, respectively. These improvements are also reflected in the qualitative comparisons in Figure 1(middle), where WinAR suppresses repeated boxes and recovers substantially more distinct objects. As shown in Figure 2(b), compressing the historical answer mitigates the progressive concentration of attention on the answer history and maintains more stable conditioning throughout decoding. Consequently, WinAR suppresses the box repetition loop and preserves more of the finite decoding budget for discovering new objects, thereby sustaining object discovery over long decoding horizons. More experimental results across additional datasets are provided in Section A.4.

RexOmnibox / s↑valid box / s↑Training Peak GPU Memory (GB)↓ShipSmall Vehicle
R@IoU↑ 0.5P@IoU↑ 0.5F1@IoU↑ 0.5R@IoU↑ 0.5P@IoU↑ 0.5F1@IoU↑ 0.5
FHAR*6.053.5757.6257.1347.2351.7122.6517.8019.94
WinAR6.685.4042.9765.3558.5061.7430.0624.4526.96

Table 2. Comparison of inference speed on RSDense and performance on two extremely dense categories. Boxes/s denotes the average number of predicted boxes per image per second, reflecting the decoding throughput. Valid Boxes/s measures the throughput after removing redundant boxes. Inference speed is measured on eight NVIDIA H100 GPUs.

Generalization across Decoding Paradigms. WinAR also generalizes to the parallel box decoding framework of LocateAnything, as shown in Table 1. Across NTP, PBD, and Hybrid decoding, WinAR consistently suppresses redundant predictions while maintaining comparable or improved grounding accuracy. This effect is particularly evident on the RSDense benchmark. Under NTP, WinAR reduces Mean RdupR_{\mathrm{dup}} from 5.90% to 0.49% on RSDense, while achieving comparable F1 (54.87 vs. 54.40) and improving Recall from 53.87 to 55.42. Under PBD, WinAR improves F1 from 26.15 to 27.54, while reducing Mean RdupR_{\mathrm{dup}} from 14.89% to 2.13% on RSDense. This demonstrates that WinAR is not tied to token-by-token box generation and can also effectively control historical-answer accumulation when geometric outputs are decoded in parallel.

Generalization to Other Structured Geometric Outputs. Table 3 evaluates whether WinAR generalizes beyond bounding boxes to polygon detection, where each object is represented by a longer sequence of interdependent coordinates (eight coordinate tokens per polygon). Compared with the exposure-matched FHAR* baseline, WinAR improves F1 from 47.25 to 48.93 on DOTA2, while reducing Mean RdupR_{\mathrm{dup}} from 6.34% to 2.46% and Mean RoverR_{\mathrm{over}} from 4.99 to 0.89. The improvement is more pronounced on SODA-A, which contains generally denser scenes: Recall, Precision, and F1 increase from 54.45, 34.71, and 38.64 to 55.35, 39.38, and 44.00, respectively, while Mean RdupR_{\mathrm{dup}} decreases from 3.72% to 1.93% and Mean RoverR_{\mathrm{over}} from 3.27 to 0.75. These results demonstrate that WinAR is not specific to fixed-length bounding-box sequences, but also effectively controls historical-answer accumulation when generating more complex structured geometric outputs.

MethodDOTA2SODA-A
R@IoU↑ 0.5P@IoU↑ 0.5F1@IoU↑ 0.5Mean Rdup↓R_{\mathrm{dup}} \downarrowMean Rover↓R_{\mathrm{over}} \downarrowR@IoU↑ 0.5P@IoU↑ 0.5F1@IoU↑ 0.5Mean Rdup↓R_{\mathrm{dup}} \downarrowMean Rover↓R_{\mathrm{over}} \downarrow
Baseline2.493.062.44––1.952.272.03––
FHAR46.7941.8239.678.93%8.0347.4827.1932.787.16%6.32
FHAR*51.2047.9847.256.34%4.9954.4534.7138.643.72%3.27
WinAR52.0449.3048.932.46%0.8955.3539.3844.001.93%0.75

Table 3. Polygon detection results on DOTA2 and SODA-A. The Baseline is RexOmni model.

Training and Inference Efficiency. WinAR substantially reduces the memory requirement during training. In our training setup, the peak GPU memory of RexOmni-FHAR* reaches 57.62 GB, whereas RexOmni-WinAR requires only 42.97 GB. This reduction stems from the window-wise training formulation, where completed answer windows are compressed and their raw token-level representations and associated activations can be discarded, substantially reducing the per-GPU memory budget and enabling all WinAR experiments to be conducted on 48 GB NVIDIA A40 GPUs. Table 2 also evaluates the inference efficiency of WinAR on RSDense. WinAR does not consistently improve raw throughput due to the additional overhead of history compression and KV-cache prefilling at window boundaries. However, by substantially reducing redundant predictions, it uses the decoding budget more effectively and increases Valid Boxes/s from 3.57 to 5.40 on Rex-Omni. Overall, WinAR improves both training scalability and effective inference throughput by replacing ever-growing raw answer histories with compact window-level representations.

Ablation Study

Compression Configuration. Table 4 studies different compression configurations by varying the window length LL, boundary size BB, and number of compressed tokens NN. Since a smaller window length naturally induces more window-wise training instances, the L=100L = 100 configuration receives a larger oversampling weight. To ensure a fair comparison, we apply the same oversampling weight to the L=200L = 200 and L=300L = 300 configurations, thereby matching their effective sample exposure. We make two main observations. First, more frequent compression consistently suppresses redundant generation, but introduces a trade-off with grounding accuracy. Reducing LL from 300 to 100 decreases Mean RdupR_{\mathrm{dup}} from 5.38% to 0.89% and Mean RoverR_{\mathrm{over}} from 0.66 to 0.32 on RSDense, indicating that more frequent compression more effectively limits the accumulation of raw answer history. However, the corresponding F1 decreases from 44.78 to 43.71, with both Recall and Precision slightly reduced. This suggests that overly short windows, while effective at suppressing repetition, provide less exact local context for subsequent generation. Second, preserving exact boundary tokens is important for maintaining grounding performance. With the same window length L=200L = 200, removing boundary preservation (B=0B = 0) and increasing the number of compressed tokens to N=20N = 20 reduces F1 from 67.22 to 64.82 on DOTA2 & SODA-A and, more substantially, from 44.56 to 32.47 on RSDense compared with (B,N)=(4,6)(B, N) = (4, 6). This degradation occurs despite the considerably larger compressed-token budget, indicating that simply allocating more latent tokens cannot compensate for the loss of exact local information around window boundaries. Overall, (L,B,N)=(300,6,8)(L, B, N) = (300, 6, 8) achieves the best grounding accuracy while still substantially suppressing redundant generation, and is therefore adopted as our default configuration.

WinARDOTA2 & SODA-ARSDense
LLBBNNRR@IoU↑\uparrow 0.5PP@IoU↑\uparrow 0.5F1F1@IoU↑\uparrow 0.5Mean Rdup↓R_{\mathrm{dup}} \downarrowMean Rover↓R_{\mathrm{over}} \downarrowRR@IoU↑\uparrow 0.5PP@IoU↑\uparrow 0.5F1F1@IoU↑\uparrow 0.5Mean Rdup↓R_{\mathrm{dup}} \downarrowMean Rover↓R_{\mathrm{over}} \downarrow
3006868.6768.4168.491.21%0.4848.5942.8244.785.38%0.66
2004667.39<u>67.61</u><u>67.22</u>0.65%0.42<u>47.93</u><u>42.60</u><u>44.56</u>4.21%0.57
20002063.4067.1664.82<u>0.28%</u>0.1827.9639.5932.47<u>2.59%</u>0.04
10024<u>68.40</u>66.1567.040.12%<u>0.27</u>47.0441.4143.710.89%<u>0.32</u>

Table 4. Ablation study of WinAR with different window length LL, boundary size BB, and number of compressed memory tokens NN.

Compressor Depth. Table 5 studies the effect of the depth in the Window History Compressor. A shallow 4-layer compressor is less effective at preserving informative historical context in extremely dense scenes. Increasing the depth to 6 layers improves the overall compression quality, yielding the best F1 on both DOTA2 & SODA-A (67.97) and RSDense (39.36), while also achieving the lowest Mean RdupR_{\mathrm{dup}} of 13.00% on RSDense. Further increasing the depth to 8 layers slightly improves Recall on RSDense from 45.23 to 45.75, but decreases Precision from 38.90 to 38.23 and increases Mean RdupR_{\mathrm{dup}} from 13.00% to 16.87%, resulting in a slightly lower F1 of 39.32. These results suggest that insufficient depth limits the compressor’s capacity to retain useful historical information, whereas additional layers beyond six provide little overall benefit and may introduce unnecessary transformations. We therefore adopt a 6-layer Window History Compressor by default.

Compressor LayersDOTA2 & SODA-ARSDense
RR@IoU↑\uparrow 0.5PP@IoU↑\uparrow 0.5F1F1@IoU↑\uparrow 0.5Mean Rdup↓R_{\mathrm{dup}} \downarrowMean Rover↓R_{\mathrm{over}} \downarrowRR@IoU↑\uparrow 0.5PP@IoU↑\uparrow 0.5F1F1@IoU↑\uparrow 0.5Mean Rdup↓R_{\mathrm{dup}} \downarrowMean Rover↓R_{\mathrm{over}} \downarrow
866.1763.1464.62<u>1.31%</u><u>0.66</u>45.7538.2339.3216.87%1.28
668.3267.6367.97<u>1.26%</u><u>0.51</u><u>45.23</u>38.9039.3613.00%<u>0.87</u>
4<u>66.57</u><u>64.45</u><u>65.49</u>1.23%0.4443.6038.2037.73<u>15.64%</u>0.78

Table 5. Ablation study on the number of layers in the Window History Compressor.

Conclusions

In this work, we identify a critical long-horizon failure mode of MLLM-based detectors in dense vision-language grounding, where generation progressively collapses into a self-reinforcing box repetition loop. To address this issue, we propose Compressed Window Auto-Regression (WinAR), which preserves exact autoregression within the current window while representing completed windows with compact latent tokens, thereby limiting repeated exposure to raw historical coordinates without discarding cross-window dependencies. Experiments show that WinAR increasingly benefits denser scenes. WinAR further generalizes across decoding paradigms and structured geometric outputs, while improving effective detection efficiency and reducing training memory for long sequences. These results establish compressed window autoregression as a practical paradigm for reliable long-horizon vision-language grounding.

Appendix

Benchmark Details

In this section, we summarize the datasets and benchmark settings used throughout our experiments. We evaluate WinAR from three complementary perspectives. First, we use DOTA2 & SODA-A ([32]; [6]), RSDense, and SKU110K ([11]) to assess performance in dense and extremely dense scenes across both remote-sensing and general visual domains. Second, we construct DOTA2-Poly ([32]) and SODA-A-Poly ([6]) to evaluate long-horizon structured generation with quadrilateral outputs, where each object requires twice as many coordinate tokens as a standard bounding box. Finally, we use COCO ([18]) to verify that the improvements of WinAR in dense scenes do not compromise performance in ordinary visual scenarios.

  • DOTA2 & SODA-A: DOTA2 ([32]) and SODA-A ([6]) are both remote-sensing object detection datasets with closely aligned scene domains and a substantial number of densely populated images. We therefore combine the two datasets to construct a unified training and evaluation benchmark for studying dense vision-language grounding across different scene densities. For DOTA-v2.0, we follow the official single-scale preprocessing and evaluation protocol. Specifically, the original high-resolution images are cropped into 1024×10241024 \times1024 patches with an overlap of 200 pixels between adjacent patches. The resulting training split, containing 13,447 images, is included in the unified training set, while the validation split, containing 4,053 images, is used as part of the unified test set. For SODA-A, we follow the official preprocessing setting and crop the original images into 800×800800 \times800 patches with a stride of 650 pixels. We merge its training and validation splits, yielding 32,181 images for training, while the test split, containing 14,654 images, is included in the unified test set. After preprocessing, the DOTA2 and SODA-A training data are jointly used for model training, while the DOTA2 validation split and the SODA-A test split are combined to form the DOTA2 & SODA-A evaluation benchmark used throughout this work.

  • RSDense: To specifically evaluate WinAR in highly dense visual scenes, we construct RSDense from the DOTA2 ([32]) & SODA-A ([6]) evaluation set by selecting images containing more than 200 objects. RSDense consists of 712 images, with an average of 412 objects per image, providing a challenging benchmark for long-horizon dense grounding. Among all categories, Ship and Small Vehicle exhibit the highest object densities and therefore serve as two representative dense categories in our analysis.

  • DOTA2-Poly and SODA-A-Poly: We evaluate WinAR on the oriented-box annotations of DOTA2 ([32]) and SODA-A ([6]) to assess its generalization to quadrilateral geometric outputs. Unlike a standard horizontal box, which is represented by four coordinate tokens, an oriented box is described by four vertices and therefore requires eight coordinate tokens. For the same number of objects, this doubles the output length and substantially extends the decoding horizon, imposing greater demands on long-range autoregressive modeling and historical-context management. This setting therefore provides a more challenging test of WinAR under longer and more complex structured generation. In these experiments, we train and evaluate on the two datasets separately rather than combining them. For DOTA2-Poly, we use the oriented-box annotations of DOTA2, train on

its training split, and evaluate on the corresponding validation split. For SODA-A-Poly, we use the oriented-box annotations of SODA-A, merge its training and validation splits for training, and evaluate on the test split. All other preprocessing and training settings are kept consistent with their horizontal-box counterparts, with only the output representation changed from 4-token box coordinates to 8-token quadrilateral coordinates.

  • SKU110K: The SKU110K dataset (Goldman et al. [11]) is a large-scale object detection dataset focused on densely packed retail products on supermarket shelves, representing a challenging dense-scene setting in general visual domains. We use its training split, containing 8,769 images, for model training and evaluate on the test split, which contains 2,920 images. This benchmark is used to assess whether WinAR generalizes beyond remote-sensing imagery to dense object detection in every scenes.

  • COCO: To verify that the gains of WinAR in dense scenes do not come at the expense of performance in ordinary visual scenarios, we further evaluate it on the widely used COCO (Lin et al. [18]) benchmark. Following standard practice (Jiang et al. [13]), we train on the COCO training set and evaluate on the validation set. This setting allows us to assess whether WinAR preserves competitive grounding performance under typical scene densities while improving robustness in highly dense scenes.

Dataset#Images#AnnotationsMin / ImageMax / ImageAvg. / Image
DOTA2 & SODA-A45,6281,493,99112,83132.74
DOTA2-Poly13,447473,54812,83135.22
SODA-A-Poly32,1811,020,44312,65331.71
SKU110K8,7691,293,7241718147.53
COCO117,266860,0011937.33

Table 6. Detailed statistics of the training datasets used in our experiments.

Dataset#Images#AnnotationsMin Objects/ImageMax Objects/ImageAvg. Objects/Image
DOTA2 & SODA-A18,707656,70612,30535.14
RSDense712293,3712012,305412.04
SKU110K2,920429,41120533147.06
DOTA2-Poly4,053140,10312,30734.57
SODA-A-Poly14,654517,09911,69235.29
COCO4,95236,7811637.43

Table 7. Detailed statistics of the test datasets used in our experiments.

Additional Implementation Details

Table 8 summarizes the training configurations for RexOmni (Jiang et al. [13]) and LocateAnything (Wang et al. [30]). A key consideration in our comparison is that window-wise training in WinAR naturally increases both the number of optimizer updates and the effective exposure of long-answer samples. To disentangle the benefit of WinAR from that of additional training exposure, we carefully construct three training settings:

  • RexOmni-FHAR. We first reproduce the original Full-History Auto-Regression (FHAR) training protocol of RexOmni. The model is trained for 4 epochs with a per-device batch size of 1 and 16 gradient-accumulation steps, resulting in 1,424 optimizer updates. We use AdamW with a base learning rate of 4×10−54 \times10^{-5}, a MM-projector learning rate of 4×10−54 \times10^{-5}, and a vision-tower learning rate of 4×10−64 \times10^{-6}. The learning rate follows a cosine schedule with a warmup ratio of 0.05. We set the weight decay to 0.05, the maximum gradient norm to 1.0, and the maximum sequence length to 20,000 tokens. Each training sample is exposed once per epoch, regardless of its answer length.

  • RexOmni-WinAR. RexOmni-WinAR follows the same optimization settings as RexOmni-FHAR, while additionally optimizing the Window History Compressor with a learning

rate of 4×10−44 \times10^{-4}. WinAR adopts a window size of L=300L = 300 and decomposes each long answer into multiple consecutive windows that are optimized separately. Consequently, long-answer samples receive proportionally more training exposure than under conventional FHAR. Specifically, a sample containing TT answer tokens contributes approximately ⌈T/L⌉\lceil T/L \rceil window-level training instances; for example, an answer of 3,000 tokens is divided into 10 windows when L=300L = 300. This window-wise formulation therefore implicitly over-samples long samples and increases the number of training iterations within each epoch. With our training set, RexOmni-WinAR performs 1,864 optimizer updates over 4 epochs.

  • RexOmni-FHAR*. To isolate the effect of compressed window autoregression from the additional sample exposure introduced by window-wise training, we construct an exposure-matched FHAR* baseline. FHAR* retains the original full-history autoregressive training objective, but modifies data sampling such that a sample with TT answer tokens is repeated approximately ⌈T/L⌉\lceil T/L \rceil times, matching the effective exposure assigned to that sample by RexOmni-WinAR. This results in the same 1,864 optimizer updates as WinAR over 4 epochs, while preserving the FHAR decoding context during training. All remaining optimization hyperparameters are kept identical to RexOmni-FHAR.

  • RexOmni-FHAR* -GRPO. Post-training with GRPO is an important component of RexOmni for improving detection quality. In our experiments, GRPO is applied to the RexOmni baseline for comparison with the original RexOmni training recipe. We initialize the policy from the SFT checkpoint of RexOmni-FHAR* and perform GRPO post-training for one epoch on the subset of the joint DOTA2 and SODA-A training set containing more than 200 objects per image. Training is distributed over 8 NVIDIA H100 GPUs. For each rollout iteration, we sample a batch of 8 prompts and generate 4 rollouts for each prompt. The four candidate trajectories associated with the same prompt form a response group for group-relative reward comparison in GRPO, resulting in 32 sampled responses per rollout batch. The actor is optimized with a global batch size of 8.

  • LocateAnything-FHAR*. We follow the same training strategy as RexOmni-FHAR*. To account for the increased sample exposure introduced by window-wise training in LocateAnything-WinAR, we oversample the corresponding training samples to match its effective sample exposure and number of training iterations. All other optimization hyperparameters are kept consistent with those used for RexOmni.

  • LocateAnything-WinAR. LocateAnything-WinAR follows the same training strategy as RexOmni-WinAR, except that windows are constructed over box-aligned atomic blocks rather than individual tokens. Specifically, each long answer is partitioned into consecutive block-level windows, which generates additional training instances and consequently increases both the number of iterations per epoch and the exposure frequency of samples spanning multiple windows. The remaining optimization settings, including the learning rate of the Window History Compressor, are kept consistent with RexOmni-WinAR.

Therefore, FHAR* matches WinAR in both the total number of optimizer updates and the effective exposure of long-answer samples, while differing only in how the historical answer is represented during autoregressive training. This controlled comparison allows us to distinguish the effect of WinAR from gains that may arise simply from increased training exposure.

Evaluation Protocol

In the main paper, we follow the protocol adopted by RexOmni [13] and use Recall, Precision, and F1 score as the primary evaluation metrics at an IoU threshold of 0.5. We retain the top 100 predictions for each predicted category in each image. For each category, predictions from all evaluation images are then aggregated and matched against the corresponding ground-truth boxes to compute Recall and Precision, from which the F1 score is obtained as their harmonic mean. The final Recall, Precision, and F1 are averaged across categories. For DOTA2 & SODA-A, we adopt the same category-wise evaluation procedure, but follow the standard DOTA2 [32] setting and retain up to 1,000 predictions per category for each image. For RSDens, however, the severe category imbalance makes category-averaged evaluation less representative of performance in extremely dense scenes. We therefore evaluate all predicted boxes and perform class-agnostic matching within each image. Recall, Precision, and F1 score are computed independently for each image and then averaged over all images in RSDense. The evaluation prompt contains only the ground-truth categories present in each image.

HyperparameterRO-FHARRO-FHAR*RO-WinARLA-FHAR*LA-WinAR
Training Epochs44444
OversampleFalseTrueTrueTrueTrue
Optimize Steps1,4241,8641,8642,0042,004
Per-device Batch Size11111
Gradient Accumulation Steps1616161616
Base Learning Rate4×10−54 \times10^{-5}4×10−54 \times10^{-5}4×10−54 \times10^{-5}4×10−54 \times10^{-5}4×10−54 \times10^{-5}
MM Projector Learning Rate4×10−54 \times10^{-5}4×10−54 \times10^{-5}4×10−54 \times10^{-5}4×10−54 \times10^{-5}4×10−54 \times10^{-5}
Vision Tower Learning Rate4×10−64 \times10^{-6}4×10−64 \times10^{-6}4×10−64 \times10^{-6}4×10−64 \times10^{-6}4×10−64 \times10^{-6}
Window History Compressor LR––4×10−44 \times10^{-4}–4×10−44 \times10^{-4}
OptimizerAdamWAdamWAdamWAdamWAdamW
LR ScheduleCosineCosineCosineCosineCosine
Warmup Ratio0.050.050.050.050.05
Weight Decay0.050.050.050.050.05
Max Gradient Norm1.01.01.01.01.0
Max Sequence Length20,00020,00020,00020,00020,000
Trainng NVIDIA GPUs(8)H100(80GB)H100(80GB)A40(48GB)H100(80GB)A40(48GB)

Table 8. Training hyperparameters for RexOmni and LocateAnything. RO and LA denote RexOmni and LocateAnything, respectively.

Capped evaluation alone does not fully characterize the generation behavior of autoregressive detectors. For conventional detectors, predictions beyond the top-KK limit are typically removed only during evaluation, whereas every prediction generated by an autoregressive detector has already consumed decoding steps and computational budget. This distinction is particularly important in dense scenes, where a model may enter a box repetition loop and continue producing large numbers of redundant predictions after most objects have already been covered. Under top-KK evaluation, many of these late predictions can be excluded from the final metrics, obscuring the actual redundancy and termination behavior of the model. The truncation may also alter the observed Recall–Precision trade-off: valid detections beyond the cap can be discarded, limiting Recall, while redundant late predictions can be filtered out at the same time, potentially yielding an overly optimistic Precision relative to the model’s complete output. Therefore, although capped evaluation is useful for maintaining comparability with existing benchmarks, it provides only a partial view of long-horizon autoregressive detection, where the ability to terminate generation after sufficiently covering the scene is itself an important aspect of both detection quality and inference efficiency.

To complement the standard protocol, we further report an all-prediction evaluation in the supplementary material, where all predictions generated by the model are retained without imposing an additional per-image prediction cap. We otherwise follow the same category-wise evaluation procedure: predictions of each category are aggregated across all evaluation images to compute Recall and Precision, F1 is obtained as their harmonic mean, and the final metrics are averaged across categories. This protocol is not intended to replace the standard evaluation, but rather to provide a more complete characterization of object discovery, prediction redundancy, and generation termination behavior. This evaluation is particularly relevant to WinAR, whose objective is not only to improve recall in dense scenes, but also to suppress the box repetition loop and allocate the finite decoding budget more effectively to discovering new objects.

More Experiments

Additional Results on More Datasets. Table 9 reports the results under the all-prediction evaluation setting, where every generated prediction is included without imposing a per-image prediction cap. WinAR consistently improves F1 over the exposure-matched FHAR* baseline across all evaluated datasets, while the gains become substantially larger as scene density increases. On COCO, WinAR preserves performance in ordinary scenes, improving F1 from 65.48 to 66.04. Similar improvements are observed on DOTA2 & SODA-A and SKU110K, where F1 increases by 0.75 and 0.48 points, respectively. The advantage is most pronounced on RSDense: WinAR improves Recall from 38.95 to 47.69 (+8.74) and F1 from 45.91 to 50.37 (+4.46), despite a moderate decrease in Precision. These results further show that the benefit of WinAR is not an artifact of prediction truncation during evaluation. Instead, by suppressing redundant long-horizon generation, WinAR enables the autoregressive detector to allocate more of its decoding budget to previously uncovered objects, yielding increasingly pronounced gains in dense scenes while maintaining performance under ordinary scene densities.

Table 9: Performance comparison between RexOmni-FHAR∗^{*} and RexOmni-WinAR on COCO, DOTA2 & SODA-A, RSDense, and SKU110K under the all-prediction evaluation setting. RexOmni-FHAR∗^{*} denotes the RexOmni-FHAR baseline trained with long-sample oversampling.

DatasetMethod[email protected]↑\uparrow[email protected]↑\uparrow[email protected]↑\uparrow
COCOFHAR∗^{*}63.2867.8465.48
COCOWinAR64.31 (+1.03)67.87 (+0.03)66.04 (+0.56)
DOTA2 & SODA-AFHAR∗^{*}62.0866.9464.42
DOTA2 & SODA-AWinAR62.79 (+0.71)68.40 (+1.46)65.17 (+0.75)
SKU110KFHAR∗^{*}53.8981.7564.96
SKU110KWinAR54.93 (+1.04)80.94 (−0.81)65.44 (+0.48)
RSDenseFHAR∗^{*}55.9038.9545.91
RSDenseWinAR53.36 (−2.54)47.69 (+8.74)50.37 (+4.46)

Table 9.

Training and Inference Efficiency. Table 10 evaluates the training memory and inference efficiency of WinAR. WinAR substantially reduces peak GPU memory during training. On RexOmni, peak memory decreases from 57.62 GB with FHAR∗^{*} to 42.97 GB with WinAR, corresponding to a 25.4% reduction. The reduction is even larger on LocateAnything, from 67.38 GB to 44.43 GB (34.1%). This benefit stems from the window-wise training formulation: once a completed answer window is compressed, its raw token-level representations and associated activations can be discarded, substantially reducing the per-GPU memory requirement and allowing WinAR to fit within the 48 GB memory budget of NVIDIA A40 GPUs. At inference time, WinAR does not consistently improve raw prediction throughput because history compression and KV-cache prefiling introduce additional overhead at window boundaries. Nevertheless, WinAR consistently improves effective throughput by suppressing redundant predictions. On RexOmni, Valid Boxes/s increases from 3.57 to 5.40. For LocateAnything, Valid Boxes/s improves from 5.14 to 5.37 under NTP and from 24.63 to 25.61 under PBD, despite slight decreases in raw Boxes/s. Overall, WinAR substantially improves training scalability while allocating a larger fraction of the decoding budget to non-redundant predictions during inference.

Table 10: Comparison of inference throughput and training peak GPU memory. Boxes/s denotes the average number of predicted boxes per image per second, while Valid Boxes/s measures the throughput after removing redundant predictions. Inference speed is measured on eight NVIDIA H100 GPUs.

MethodModeBoxes/s↑\uparrowValid Boxes/s↑\uparrowTraining Peak GPU Memory (GB)↓\downarrow
RexOmni–FHAR∗^{*}NTP6.053.5757.62
RexOmni-WinARNTP6.685.4042.97
Locate Anything–FHAR∗^{*}NTP5.465.1467.38
Locate Anything-WinARNTP5.405.3744.43
Locate Anything-FHAR∗^{*}PBD29.0324.6367.38
Locate Anything-WinARPBD26.1525.6144.43

Table 10.

Qualitative Comparison. The visualization results further demonstrate the effectiveness of WinAR in long-horizon dense grounding. Compared with FHAR∗^{*}, WinAR produces substantially fewer repeated predictions and recovers more distinct objects in crowded scenes. For polygon detection, WinAR also yields more complete and spatially consistent predictions, indicating that its benefit extends beyond axis-aligned boxes to more general geometric outputs.

Visualization comparison in dense scenes

Figure 5. Visualization Comparison in Dense Scenes.

Visualization comparison in dense scenes

Figure 6. Visualization Comparison in Dense Scenes.

Visualization comparison in polygon detection

Figure 7. Visualization Comparison in Polygon Detection.

Visualization comparison in polygon detection

Figure 8. Visualization Comparison in Polygon Detection.

References

  1. [1]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025.arxiv.org/abs/2511.21631
  2. [2]Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 6154–6162, 2018.arxiv.org/abs/1712.00726
  3. [3]Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European conference on computer vision, pp. 213–229. Springer, 2020.arxiv.org/abs/2005.12872
  4. [4]Ting Chen, Saurabh Saxena, Lala Li, David J Fleet, and Geoffrey Hinton. Pix2seq: A language modeling framework for object detection. arXiv preprint arXiv:2109.10852, 2021.arxiv.org/abs/2109.10852
  5. [5]Zhe Chen, Jiannan Wu, Wenhai Wang, Weijie Su, Guo Chen, Sen Xing, Muyan Zhong, Qinglong Zhang, Xizhou Zhu, Lewei Lu, et al. Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. arXiv preprint arXiv:2312.14238, 2023.
  6. [6]Gong Cheng, Xiang Yuan, Xiwen Yao, Kebing Yan, Qinghua Zeng, Xingxing Xie, and Junwei Han. Towards large-scale small object detection: Survey and benchmarks. IEEE transactions on pattern analysis and machine intelligence, 45(11):13467–13488, 2023.DOI
  7. [7]Tianheng Cheng, Lin Song, Yixiao Ge, Wenyu Liu, Xinggang Wang, and Ying Shan. Yolo-world: Real-time open-vocabulary object detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 16901–16911, 2024.arxiv.org/abs/2401.17270
  8. [8]Xiyang Dai, Yinpeng Chen, Bin Xiao, Dongdong Chen, Mengchen Liu, Lu Yuan, and Lei Zhang. Dynamic head: Unifying object detection heads with attentions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7373–7382, June 2021.
  9. [10]Alexey Dosovitskiy. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
  10. [11]Eran Goldman, Roei Herzig, Aviv Eisen schat, Jacob Goldberger, and Tal Hassner. Precise detection in densely packed scenes. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 5227–5236, 2019.arxiv.org/abs/1904.00853
  11. [12]Dong Guo, Faming Wu, Feida Zhu, Fuxing Leng, Guang Shi, Haobin Chen, Haoqi Fan, Jian Wang, Jianyu Jiang, Jiawei Wang, et al. Seed1. 5-vl technical report. arXiv preprint arXiv:2505.07062, 2025.arxiv.org/abs/2505.07062
  12. [13]Qing Jiang, Junan Huo, Xingyu Chen, Yuda Xiong, Zhaoyang Zeng, Yihao Chen, Tianhe Ren, Junzhi Yu, and Lei Zhang. Detect anything via next point prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 25472–25483, 2026.arxiv.org/abs/2510.12798
  13. [16]Yuxuan Li, Yicheng Zhang, Wenhao Tang, Yimian Dai, Ming-Ming Cheng, Xiang Li, and Jian Yang. Visual instruction pretraining for domain-specific foundation models. arXiv preprint arXiv:2509.17562, 2025. 3arxiv.org/abs/2509.17562
  14. [17]Yuxuan Li, Yuming Chen, Yunheng Li, Ming-Ming Cheng, Xiang Li, and Jian Yang. Unifying heterogeneous multi-modal remote sensing detection via language-pivoted pretraining. In ICML, 2026. 3arxiv.org/abs/2603.01758
  15. [18]Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pp. 740–755. Springer, 2014. 2, 13, 14arxiv.org/abs/1405.0312
  16. [21]Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuан Li, Jianwei Yang, Hang Su, et al. Grounding dino: Marrying dino with grounded pre-training for open-set object detection. In European conference on computer vision, pp. 38–55. Springer, 2024. 1, 3arxiv.org/abs/2303.05499
  17. [22]Zihan Qiu, Zekun Wang, Bo Zheng, Zeyu Huang, Kaiyue Wen, Songlin Yang, Rui Men, Le Yu, Fei Huang, Suozhi Huang, et al. Gated attention for large language models: Non-linearity, sparsity, and attention-sink-free. Advances in Neural Information Processing Systems, 38:100092–100118, 2026. 2arxiv.org/abs/2505.06708
  18. [24]Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 779–788, 2016. 3arxiv.org/abs/1506.02640
  19. [25]Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE transactions on pattern analysis and machine intelligence, 39(6):1137–1149, 2016. 3DOI
  20. [29]Chenxu Wang, Yuxuan Li, Yunheng Li, Xiang Li, Jingyuan Xia, and Qibin Hou. Slip-rs: Structured-attribute language-image pre-training for remote sensing object detection. arXiv preprint arXiv:2605.23144, 2026a. 1arxiv.org/abs/2605.23144
  21. [30]Shihao Wang, Shilong Liu, Yuanguo Kuang, Xinyu Wei, Yangzhou Liu, Zhiqi Li, Yunze Man, Guo Chen, Andrew Tao, Guilin Liu, et al. Locateanything: Fast and high-quality vision-language grounding with parallel box decoding. arXiv preprint arXiv:2605.27365, 2026b. 1, 2, 3, 4, 7, 14arxiv.org/abs/2605.27365
  22. [31]Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. Internvl3. 5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025b. 3arxiv.org/abs/2508.18265
  23. [32]Gui-Song Xia, Xiang Bai, Jian Ding, Zhen Zhu, Serge Belongie, Jiebo Luo, Mihai Datcu, Marcello Pelillo, and Liangpei Zhang. Dota: A large-scale dataset for object detection in aerial images. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3974–3983, 2018. 1, 2, 6, 13, 15arxiv.org/abs/1711.10398
  24. [33]Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In International Conference on Learning Representations, volume 2024, pp. 21875–21895, 2024. 2arxiv.org/abs/2309.17453
  25. [34]Tao Zewei and Huang Yunpeng. Magiattention: A distributed attention towards linear scalability for ultra-long context, heterogeneous mask training, 2025. 3
  26. [35]Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159, 2020. 3arxiv.org/abs/2010.04159

Paper details

vlnc:W_x8tw7zpt
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents