NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Letting the Query Decide Where the Satellite Map Stays Sharp

Finding a specific object in a large satellite image comes up in drone navigation and ground-to-map localization. A user clicks a car park in a drone photo or a doorway in a street photo, and the system must find that object in a top-down satellite image. Current systems do this with a Transformer, a neural network whose attention layers compare every piece of one image with every piece of the other. That all-to-all comparison costs time and memory proportional to the product of the two images' token counts, where a token is one small patch's feature vector. The satellite side is where the cost grows: doubling the search area's side length quadruples its tokens. The standard ways to cut this cost come from single-image models. They merge or drop patches the image itself finds unimportant. For cross-view matching this uses the wrong notion of importance, because what matters in a satellite map depends on what the query shows.

We propose query-guided token allocation. The satellite image is first summarized into a few hundred coarse "cluster" tokens, groups of patches with similar content. The drone or ground query then scores each cluster by how distinctively it matches. Only the top-scoring clusters are expanded back to full-resolution patches for fine matching. The remaining clusters stay in the computation as coarse context tokens rather than being deleted, so the model can still see the road layout and neighbouring buildings. It needs that context to tell a target roof from an identical roof two blocks away. The claim is that, at a fixed attention budget, this beats self-guided compression, attention-score pruning, and simple zoom-in cascades. The advantage should widen as the satellite search area grows and as look-alike distractors multiply.

Core Claim

In asymmetric cross-view matching, the resolution budget on the reference side should be set by cross-view semantic correspondence, not by within-image salience. The routing score must also be robust to repeated patterns, or the router will send its budget to the wrong look-alike.

This claim draws on three directions, each in a different role. Cross-view object localization is the application. Object-Level Cross-View Geolocalization With Location Enhancement and Multihead Cross Attention (OCGNet) localizes click-prompted objects in satellite images using full multi-head cross-attention over feature grids. It is our strongest baseline, and its all-to-all cross-attention is exactly the cost we attack. Quadratic attention cost is the constraint that motivates the design.

Semantic feature alignment supplies the routing score. The Contextual Loss for Image Transformation with Non-aligned Data matches features without shared coordinates. It uses a cosine similarity normalized against each feature's best match among all candidates, so a feature that matches many candidates about equally well spreads its weight rather than committing. We reuse that normalization as the router. It is deliberately a soft score. The hard argmax rearrangement in Eye-for-an-eye, which matches diffusion features by cosine similarity and takes the single best match, is the design we avoid. That argmax is documented as fragile under repetition and symmetry, which is the normal state of urban rooftops.

Relation to Prior Work

Two single-image backbones already cut attention cost by adapting token granularity. SG-Former keeps fine tokens where its own self-attention "significance map" is high and pools the rest into coarse tokens. TCFormer merges tokens by density-peak clustering on feature similarity, which gives irregular, content-shaped regions. We reuse their mechanisms: TCFormer-style clustering builds our coarse satellite tokens, and SG-Former's idea of keeping coarse tokens instead of deleting them preserves context. We change what drives allocation. In both papers the signal comes from the image alone, and both were evaluated only on single-domain tasks. We condition allocation on the other view, and our experiments pit their self-guided signal directly against ours at equal budget.

Cross-view methods motivate the problem but do not solve it. FSRA groups drone and satellite patches into regions by attention heat for retrieval, but its backbone still runs full attention. Cross-view Geo-localization with Evolving Transformer (EgoTR) explicitly reports that quadratic attention causes high GPU memory use. SUES-200 measures a ViT taking about 2.45 times longer than a ResNet baseline. InfoGeo decomposes scenes into object slots and distills into a dense DINOv2 backbone, and it reports that the number of visible objects explodes at high altitude. That finding is a warning for any fixed-capacity token scheme.

Coarse-to-fine matchers are the closest structural relatives. XoFTR matches RGB to thermal images on a 1/8-resolution grid and then refines. Its coarse stage is still quadratic in that grid, and every grid cell is refined, not a query-selected subset. Homography-based registration in AirLock+ and GeoWarp assumes a flat scene. Our method assumes no global warp and uses coarse context tokens as a weak, learned substitute for layout constraints.

Research Program

The model keeps OCGNet's query encoder and click-point encoding so that only the reference-side attention changes. The satellite image of $N_s$ patch tokens is clustered into $K \ll N_s$ coarse tokens $c_k$, each the average of its member patches.

For each query token $q_i$ and cluster $c_k$, let $d_{ik}$ be their cosine distance. The router computes the contextual-style affinity

$$a_{ik} = \frac{\exp\!\big((1 - d_{ik}/(\min_{k'} d_{ik'} + \epsilon))/h\big)}{\sum_{k''} \exp\!\big((1 - d_{ik''}/(\min_{k'} d_{ik'} + \epsilon))/h\big)},$$

where $h$ is a bandwidth and $\epsilon$ a small constant. The normalization rewards clusters that are clearly the best match for a query token. Each cluster's relevance is $r_k = \sum_i a_{ik}$, weighted toward query tokens near the click point. The top $m$ clusters are expanded to their member patches. Cross-attention then runs from the query tokens to the union of the expanded patches and the $K - m$ unexpanded coarse tokens.

With $\bar{s}$ the mean cluster size, the cost per layer drops from $O(N_q N_s)$ to

$$O\big(N_q K + N_q\, m\,\bar{s}\big),$$

where $N_q$ is the number of query tokens. For fixed $K$ and $m$, this grows only with cluster size, not with the whole map. This holds as long as clusters stay roughly equal in size as the search area grows.

To make routing trainable end to end, we train with a Gumbel top-$m$ relaxation. We also add an auxiliary loss that asks the ground-truth cluster to rank within the top $m$, which gives the router a direct target rather than relying on the localization loss alone. Two design choices are fixed in advance so that ablations can isolate them: routing is driven by the query, and unexpanded clusters are kept as context.

Baselines

The naive reference point is OCGNet run as published, with full cross-attention at native resolution. We also run it on uniformly downsampled satellite inputs whose token count matches our budget. The native run tells us what accuracy full attention buys. The downsampled run tells us what plain budget matching costs.

The strongest existing method is OCGNet itself. Object-Level Cross-View Geolocalization With Location Enhancement and Multihead Cross Attention reports the following on CVOGL, at about 16 ms inference:

We will retrain it under our pipeline and report our reproduction beside the published figures. On native CVOGL inputs, beating OCGNet means matching its accuracy within about one point while cutting attention FLOPs and memory substantially. We do not expect large accuracy gains there, because full attention is already affordable at that size. On the enlarged search areas described below, beating it means strictly higher [email protected] at equal or lower latency.

The allocation baselines share our encoder, training data, epochs, and hyperparameter search budget, and use the same token count at attention time:

  • SG-Former-style self-significance allocation;
  • TCFormer-style clustering with no query conditioning, where every cluster is expanded in proportion to its size;
  • attention-score Top-K pruning of satellite tokens in the style of An Image is Worth 1/2 Tokens After Layer 2;
  • a two-pass crop cascade. It runs OCGNet on a downsampled map, crops around the predicted box, and reruns at full resolution. Its crop size is tuned so its total FLOPs equal ours.

Two ablations isolate the key ingredients. The first replaces the contextual normalization with raw maximum cosine similarity, and then with argmax routing. The second deletes the unexpanded clusters instead of keeping them as context.

Why not just…?

Why not just run full attention with memory-efficient kernels? Memory-efficient attention kernels reduce memory but not the quadratic arithmetic, so latency still grows with the square of the satellite token count. The mosaic scaling experiment below measures wall-clock latency for full attention against our method as the search area grows from one to sixteen tiles. If full attention stays under real-time limits at the largest size we test, the efficiency argument weakens. The claim would then rest on the accuracy gain under distractors.

Why not just zoom in with a two-stage crop cascade? This is the most serious threat, because it is simple and roughly as cheap as our method. It fails in one specific way: when the low-resolution first pass chooses the wrong look-alike, the high-resolution pass never sees the correct region. It also throws away context outside the crop. Our method keeps routing soft over many clusters and keeps all context tokens. We therefore stratify results by the number of visually similar distractors in the search area. If the cascade matches us across the strata, the clustering machinery is unnecessary, and we would report that result.

Why not just prune low-attention tokens? AgilePruner shows that attention-only Top-K pruning loses diversity and hurts when informative content sits in low-attention background patches. Road and building layout, which GeoDTR+ shows is central to cross-area robustness, lives in exactly such patches. The context-deletion ablation tests this directly inside our own model. Which Tokens to Use? finds Top-K a resilient accelerator in general, so we treat it as a real competitor rather than a straw man.

Why not just use self-guided compression such as SG-Former? SG-Former's reported gains, 84.7% Top-1 on ImageNet-1K and 51.2 bbAP on COCO, come from single images, where the image's own salience is the right signal. In a satellite map the salient objects, such as stadiums or large roofs, are often not the queried target. The equal-budget comparison measures how often the ground-truth region lands among the fine tokens under each allocation rule, which tests this argument directly.

Why not just use global DINOv2 descriptors? For retrieval benchmarks such as University-1652 this is reasonable. There, InfoGeo reports 95.07% R@1 transferring to SUES-200, and dense cross-attention is not needed. Object-level localization needs a box inside the map, not a ranking of maps, so a single global vector does not answer the task. We therefore do not claim gains on retrieval.

Proposed Experiments

The main benchmark is CVOGL for both drone and ground queries, plus CVOGL-fewshot to check that routing learned on seen classes transfers to unseen targets.

To make the quadratic cost actually matter, we build enlarged search areas by tiling each target's satellite image into 2×2, 3×3, and 4×4 mosaics. The other tiles are satellite images of other CVOGL locations. They are chosen at random in one split, and in a second split they are the images nearest in DINOv2 feature space, as hard distractors. For each method and mosaic size we report [email protected], [email protected], attention FLOPs, peak memory, and latency.

Beyond these metrics, three checks are designed to settle the claim:

  • Router recall. We measure how often the ground-truth region falls in the top $m$ clusters under query-guided versus self-guided routing. If query guidance does not raise router recall, the core claim fails regardless of end accuracy.
  • Degradation with distractors. We plot accuracy against distractor count for our method, the crop cascade, and full attention. The prediction is that the cascade degrades fastest in the hard-distractor mosaics and that keeping context tokens accounts for most of our advantage.
  • Real terrain. We use the geo-referenced tiles of the AirLock+ dataset, which reports a mean target error of 20.23 m and a 95th-percentile error of 39.48 m. We replace its homography matching stage with our router and measure localization error on hilly segments, where its planar assumption is weakest. This last test is exploratory. It shows whether the idea survives outside curated benchmarks, but it does not decide the main claim.