cs.CVAug 27, 2026

Variable-Granularity Tokenization for High-Resolution Object Detection

Authors: Khayrul Islam

Organizations: Lawrence Livermore National Laboratory 7000 East Ave, Livermore, CA 94550

Abstract

ViT detectors fix a uniform token grid before any learned stage. A native-resolution aerial detector must then choose between resolving few-pixel objects and staying inside compute and memory limits. We introduce VGTok, a training-free tokenizer that sets patch granularity per region from pixels, ahead of the encoder. VGTok scores each region by multi-scale morphological top-hat separability from its surround, then thresholds those scores at a per-image percentile, which fixes the token budget. A structure-tensor gate (λmin⁡λ_{\min}) refines only where two-dimensional object structure supports it, leaving one-dimensional clutter coarse. The resulting token set is a strict partition of the image. In a Co-DETR detector with an EVA-02 ViT-L encoder, VGTok clears every published VisDrone-val AP and APS_S at every budget from 40% to 100% of tokens. At 40% it records 44.22 AP with three fifths of the sequence discarded before the first transformer block; dense, it reaches 48.38 AP, 6.086.08 above the strongest published entry. VGTok transfers to AI-TOD-v2 untouched, same scorer and same rank, and sets a new state of the art at 37.27 AP and 19.51 APvt_{vt}. As a pure drop-in into a frozen checkpoint it reaches 36.29 AP at 78.5% of tokens, above every published entry, where our 376.3M-parameter detector clears a 3.0B multi-expert model. We show that a token budget fixed before the backbone, from local separability and structure geometry alone, holds accuracy on the tiny-object regimes that dominate aerial detection, at 3.1×3.1\times less encoder compute and 1.9×1.9\times less encoder memory. Code and models are available at github.com/khayrulbuet13/vgtok and huggingface.co/khayrulbuet13/vgtok.

Figures & tables

Explore similar work

CardsList
  1. Subtoken Vision Transformer for Fine-grained Recognition

    Jul 10, 2026Jie Zhu, Ivy Zhang, Minchul Kim +1Vision TransformerVisual Tokenization

  2. SPAR: Single-Pass Any-Resolution ViT for Open-vocabulary Segmentation

    Apr 2, 2026Naomi Kombol, Ivan Martinović, Siniša Šegvić +1Vision TransformerEfficient ViTs

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

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