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

Spatial Verification as a Few-Round Hypothesis Game

Image search systems usually summarize each picture as one fixed-length vector built from pooled color, texture or deep-network statistics. That summary throws away where things are. Two images with the same "ingredients" in different arrangements, or a small object pasted into an unrelated background, can look identical to it. The standard repair is to re-check the top candidates by exchanging hundreds or thousands of local keypoints and fitting a geometric transform. This proposal argues that both choices sit at the extremes of a trade-off that nobody has measured. A global descriptor is a one-round message of fixed size. Keypoint re-checking is an interactive exchange with very large messages. Between them lies a family of short, adaptive dialogues in which the query and the candidate image trade a few small messages about where the object might be. That family should resolve most spatial confusions at a small fraction of the bits.

The design for these dialogues comes from circuit complexity. There, Kozachinskiy and Podolskii showed that collective decisions such as majority votes are captured by multiparty "hypotheses games": a Learner proposes several guesses about a hidden input, and Nature refutes or hints. Such games compile into shallow threshold circuits (Multiparty Karchmer-Wigderson Games and Threshold Circuits). We use that game structure directly. The query acts as the Learner and proposes a handful of compact location-and-scale hypotheses. The candidate image acts as Nature, split into regions that each answer a few bits. A match is declared when enough regions confirm, which is a threshold decision. A non-match is declared when a common refutation is found. The deliverable is a measured curve of retrieval accuracy against bits exchanged and number of rounds, plus a protocol that sits above both existing extremes on that curve.

Core Claim

Spatial ambiguity in retrieval is concentrated and adaptive. Most candidate images are easy to accept or reject, and the hard ones are hard because of one or two ambiguous regions. A one-round descriptor must pay the same bit cost for every candidate. A dialogue in which the candidate's reply chooses what the query sends next can spend bits only where the ambiguity is.

We therefore claim the following. On the Revisited Oxford/Paris Hard splits and on Reddit Photoshop Battles donor recall, a two- to four-round hypothesis protocol, matched on the average bits per query-candidate pair, will beat the best single-round spatial descriptor. It will also approach geometric re-ranking while sending one to two orders of magnitude fewer bits.

The multiparty structure matters for a specific reason. The query sends several hypotheses at once, and the candidate's regions answer jointly through a threshold rule. This is what lets the protocol handle non-rigid and partially occluded objects, which break single-transform verifiers.

We are careful about where this claim can fail, and we state it up front. If the pasted object can be arbitrary and the background adversarial, deciding whether the query object appears in the candidate contains a set-disjointness-style problem. No number of rounds beats linear communication on such a problem. The claim is therefore about the structured distribution of real images, and the theory section says exactly which structures separate rounds.

Where This Sits Relative to Prior Work

Three retrieval lines motivate the gap.

None of these papers measures bits or rounds. Our proposal differs from all three in kind: it makes the exchange itself the object of design and evaluation.

Older region-based descriptors play a different role. The multi-precision grids of Özsu et al. ( An Extendible Hash for Multi-Precision Similarity Querying of Image Databases), the five-region layout in Region Division for Large-scale Image Retrieval, and the distance-aware co-occurrence histograms of Object Recognition with Color Cooccurrence Histograms supply our region vocabulary and our cheapest baselines. They also constrain us: fixed partitions fragment objects that cross boundaries. This is why our hypotheses are query-driven locations rather than fixed tiles.

What matters for Representation Alignment: Global Information or Spatial Structure? supplies one technique we reuse. It shows that subtracting the global mean from patch features preserves local contrast, so we encode region messages relative to the image mean.

From circuit complexity, the hypotheses game in Multiparty Karchmer-Wigderson Games and Threshold Circuits supplies the protocol template. It also supplies its compilation result: an $r$-round protocol becomes a threshold circuit of depth proportional to $r$. That lets us turn a trained dialogue into a fixed-depth verifier. The same paper explains why two-party games are not enough. The classical two-party Karchmer–Wigderson game, where Alice and Bob search for a coordinate on which their inputs differ, cannot express threshold gates. A threshold output is decided collectively, not by one wire, and region consensus is exactly such a collective decision.

Computing Majority by Constant Depth Majority Circuits with Low Fan-in Gates acts as a constraint. Depth-2 majority circuits that are correct on 2/3 of inputs need fan-in $\Theta(\sqrt{n})$. This warns that very shallow, narrow aggregation of many region votes cannot reproduce a consensus rule. The Narrow Gate is an empirical cousin of this concern: collapsing visual tokens into one register makes Chameleon-7B captioning fall from 0.48 to 0.04 CIDEr when that token is knocked out. We treat this as motivation only, since soft attention is not a Boolean majority gate.

Research Program

The protocol. The query image $Q$ holds local features. The candidate image $D$ is split into $k$ overlapping regions, and each region acts as one party. In round $j$, the query sends $h$ hypotheses. Each hypothesis is a short code: a quantized position and scale relative to the query object's center, plus a compressed descriptor of the query patch expected there, encoded relative to the image mean. Each region of $D$ answers in a few bits whether it confirms, refutes, or points to a better-matching offset.

The protocol stops in one of two ways. It accepts once at least $t$ distinct regions have confirmed hypotheses that are mutually consistent in their relative layout, a threshold test in the sense of $\text{THR}^k_t$ (a gate that fires when at least $t$ of its $k$ inputs are 1). It rejects once some hypothesis set is refuted by all regions, the analogue of the common-zero certificate in the $Q_k$ game. If the round budget $r$ runs out, it scores by partial confirmations.

The cost we report for each query-candidate pair is

$$B(Q,D) = \sum_{j=1}^{r(Q,D)} \big(h\, b_{\text{hyp}} + k\, b_{\text{ans}}\big),$$

where $r(Q,D)$ is the number of rounds actually used, $b_{\text{hyp}}$ is the bits per hypothesis, and $b_{\text{ans}}$ is the bits per region answer. We always compare methods at equal mean $B$ over the evaluation set, and report total latency separately.

Hypothesis policies. We will build two. The first is hand-designed: the query proposes positions by voting from its strongest local matches, as in OS2OS but without the rigid angle check. The second is learned: a small network trained on landmark training data to choose the next hypotheses from the replies so far. Region answers come from a frozen local-feature backbone (DELF or SIFT, matching prior work) followed by a tiny scorer.

Compilation. Following the hypotheses-game-to-circuit equivalence, we will unroll the hand-designed policy into a fixed-depth verifier built from layers of small-fan-in threshold units over region votes. We then check whether its accuracy-versus-depth curve tracks the protocol's accuracy-versus-rounds curve. This is the concrete payoff of borrowing the multiparty framework rather than a generic cascade.

Theory. We aim for two modest, checkable results.

The positive result is a separation. Consider "adjacency-chain collisions": images assembled from $m$ tiles with identical tile multisets, so every pooled statistic is identical. The images differ only along a chain of $r$ neighbor relations whose start depends on the other image's content. We will show that an $r$-round protocol verifies such a chain with $O(r \log m)$ bits, while $(r-1)$-round protocols need far more. The argument follows the standard round-hierarchy approach, and Topological RANSAC's saccade stitching is a natural instance of chain-following.

The negative result is a reduction from set disjointness. It will show that unconstrained splice detection has no interactive advantage in the worst case. Together, the two results say which spatial structures make rounds valuable. They are not lower bounds on real retrieval, and we will not present them as such.

Baselines

The naive reference is a plain global descriptor: pooled backbone features with no spatial component, ranked by cosine similarity. It costs one round at a fixed bit size and anchors the bottom of the curve.

The strongest single-round competitor is SpCa, run from its released code Zy-Zhang/SpCa with the R101 backbone. It is the strongest because it is the only method in the file that explicitly claims re-ranking is unnecessary once spatial structure is embedded. Its reported figure is 65.85 mAP on ROxford Hard at about 153 ms (Learning Spatial-context-aware Global Visual Feature Representation for Instance Image Retrieval). We will re-run it on our hardware, and we will sweep its descriptor dimension and quantization so it can be compared at every bit budget we test. Beating it means higher ROxford/RParis Hard mAP at equal mean bits per pair.

The strongest verification competitors are OS2OS and Topological RANSAC.

Both verifiers re-rank the same top-$K$ shortlist produced by the same global descriptor that our protocol starts from, using the same local features, and we log their implicit bit cost (all transmitted keypoints and coordinates). Beating them means matching their mAP or donor recall within one point while sending at least ten times fewer bits. Exceeding their accuracy is not required.

Three ablations isolate the key ingredients:

  • Rounds collapsed (a single round, $r=1$, with all hypotheses sent at once), equal bits. This tests whether interaction matters.
  • One hypothesis per round ($h=1$, the two-party analogue), which tests whether multiple simultaneous hypotheses matter.
  • Fixed cascade, where the query sends predetermined grid regions in later rounds regardless of the candidate's replies. This tests whether candidate-directed adaptivity matters.

All learned components share one training set, one compute budget, and the same hyperparameter-search budget.

Why not just…?

Why not just send a bigger single-round descriptor, such as concatenated grid regions or a larger SpCa vector? This is the most serious threat. If spatial information simply needs more bits rather than adaptivity, a larger one-round code should match us at equal mean bits. Our bet rests on ambiguity being concentrated in a few candidates: a one-round code pays its full size on every candidate, while the protocol pays extra only on hard ones. The equal-bit sweep against SpCa and against grid concatenation (in the style of Özsu et al. and Region Division for Large-scale Image Retrieval) settles this directly. If one-round codes match us across the whole curve, the core claim is false and we will report it.

Why not just run a two-stage cascade: global vector first, then regional descriptors for the top-K? A cascade is already a two-round protocol, and it may capture most of the gain. What it lacks is candidate-directed choice: in a cascade, the query decides in advance what to send. The fixed-cascade ablation is exactly this alternative under our cost accounting. If it matches the adaptive protocol, the useful contribution reduces to the bit-accounting methodology plus the theory, and we will say so.

Why not just use OS2OS or RANSAC on the shortlist? They are accurate but bit-hungry, and they assume rigid or planar geometry. Topological RANSAC's authors document the planar and repeated-pattern failures, and OS2OS's authors document brittleness under non-rigid deformation. Our threshold-of-regions acceptance rule does not fit a single transform, so we expect gains specifically on articulated or occluded objects. We will measure this on Woody-doll-style flexing and on Reddit composites. If they win on accuracy, our claim is restricted to the bits-for-accuracy frontier.

Why not just a two-party game? Two-party Karchmer–Wigderson games cannot express threshold decisions (Multiparty Karchmer-Wigderson Games and Threshold Circuits), and region consensus is a threshold decision. Empirically, the one-hypothesis-per-round ablation tests whether this matters for images.

Proposed Experiments

Main comparison. We run ROxford and RParis (Medium and Hard, plus the +1M distractor variants) and report mAP against mean bits per pair, with separate curves for $r = 1, 2, 3, 4$. All methods share one shortlist size so that latency is comparable. We also run Reddit Photoshop Battles (51,245 images, 185 threads) and NIST MFC2018 for donor recall against bits. Paris 6K serves as a sanity check against OS2OS's reported 86.7 mAP.

Controlled collision benchmark. We build it from ROxford images by permuting tiles so that every pooled statistic is preserved, at chain lengths 1 through 4. This tests the theory's prediction: accuracy at a fixed bit budget should jump when the round budget reaches the chain length, and not before. A Woody-doll-style articulation subset, built from turntable-like multi-view captures as in Object Recognition with Color Cooccurrence Histograms, tests the non-rigid claim. No quantitative result for that dataset appears in the file, so we will establish our own baselines on it.

Compilation test. We compare the unrolled threshold verifier against the live protocol at matched depth and rounds. As a secondary check, motivated by the Kulikov–Podolskii fan-in bound, we shrink each threshold unit's fan-in below about $\sqrt{k}$ and test whether consensus accuracy on the collision benchmark degrades sharply.

Decisive outcomes. The proposal succeeds if three things hold:

  • At equal mean bits, the adaptive multi-hypothesis protocol beats both re-tuned SpCa and the fixed cascade on ROxford Hard and on donor recall.
  • It reaches within one point of the better geometric verifier with at least ten times fewer bits.
  • The collision benchmark shows the predicted round-dependent jump.

It fails, and the fix is to report the frontier rather than a method, if the one-round or cascade baselines track it at every budget.