arXiv:2610.30799cs.CVOct 2026

Manuscript Offprint

arXiv:2610.30799

WovenAnchor Matcher: Specialized Intra- and Inter-Image Context Modeling for Feature Matching

Zhiyang Li, Ruijiang Jin, Thibaut Klenke, Yusuke Sekikawa, Nakamasa Inoue

Abstract

Semi-dense local feature matching commonly aggregates contextual information before coarse-to-fine correspondence estimation. However, intra-image and inter-image aggregation serve different roles: the former should propagate spatial evidence within each image while retaining structured two-dimensional dependencies, whereas the latter should gather information from plausible corresponding regions while limiting noise from unrelated locations. We propose WovenAnchor Matcher (WAM), a semi-dense matching framework based on role-specialized context aggregation. WAM introduces two complementary operators. WovenMamba performs intra-image aggregation through horizontal-then-vertical state-space propagation, allowing vertical updates to operate on horizontally contextualized features and thereby encouraging a structured two-dimensional receptive-field bias. AnchorCrossAttention performs inter-image aggregation by using cross-attention to gather context from plausible corresponding regions across the image pair. It performs this exchange over local representative anchors that aggregate feature evidence within each window. On MegaDepth, WAM achieves 66.1 pose AUC@5°, improving on the JamMa baseline by 2.0 AUC points under the same evaluation setup. Ablations show that removing or replacing either specialized component reduces accuracy, providing evidence that intra-image propagation and inter-image retrieval benefit from role-specific aggregation designs. Code and pretrained weights are available at https://github.com/mmaiLab/WovenAnchorMatcher.

1 Introduction

Local feature matching is a core component of visual localization, structure-from-motion, SLAM, and image alignment [1–5]. Modern semi-dense matchers estimate many correspondences from learned feature maps and commonly follow a coarse-to-fine pipeline [6–8]. Before coarse matching, a context aggregation block updates descriptors using information from both the same image and the paired image.

These two sources of context are not interchangeable. Intra-image aggregation should propagate spatial evidence while respecting the image's two-dimensional layout. Inter-image aggregation should instead gather evidence from plausible corresponding regions and avoid contaminating descriptors with visually similar but unrelated content. This matters because dense affinities can be unreliable under repetition, viewpoint changes, and local ambiguity.

Existing matchers only partially encode this asymmetry. LoFTR-style methods explicitly separate self-attention and cross-attention, but both rely on attention-based token interaction as a generic aggregation primitive [6, 9–12]. JamMa improves efficiency by replacing attention-heavy aggregation with Mamba-based sequence modeling, but its JointMamba block applies a closely related sequence-modeling bias to within-image propagation and cross-image interaction [7]. These de-

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

signs are effective, but do not fully tailor their aggregation structures to the distinct requirements of intra-image propagation and inter-image retrieval.

We propose WovenAnchor Matcher (WAM), a semi-dense matcher that makes this operator-level asymmetry explicit. WAM keeps the standard coarse-to-fine matching framework but replaces the generic context block with a role-specialized WovenAnchorModule. For intra-image aggregation, WovenMamba applies horizontal state-space propagation followed by vertical propagation. Since the vertical stage operates on horizontally contextualized features, the operator encourages composed two-dimensional dependencies rather than an additive combination of independent directional scans. We analyze this bias with a simplified linear model on a finite grid. This structured receptive field is important because intra-image context should preserve where supporting evidence appears, not only whether similar evidence exists somewhere in the image.

Figure

Figure 1: Relative pose AUC@5° vs. runtime on MegaDepth. Runtime is measured on a single NVIDIA H100 GPU.

For inter-image aggregation, AnchorCrossAttention uses cross-attention to gather context from plausible corresponding regions, but performs this exchange over local representative anchors instead of dense point-wise tokens [13–15]. Multiple anchors are formed within each local neighborhood, allowing different structures in the same area to receive different cross-image updates. This design aims to reduce reliance on ambiguous token-level affinities by aggregating local evidence before cross-image retrieval.

Experiments support the value of this role-specialized design. On MegaDepth, WAM improves over JamMa under our setup, increasing pose AUC@5° from 64.1 to 66.1. Component-removal and operator-replacement ablations show that removing or substituting either WovenMamba or AnchorCrossAttention lowers accuracy. Shared/reversed-role experiments further support the proposed assignment of WovenMamba to intra-image propagation and AnchorCrossAttention to inter-image retrieval.

Our contributions are threefold. First, we formulate semi-dense context aggregation as two roles with different inductive biases: spatially structured intra-image propagation and correspondence-aware inter-image retrieval. Second, we introduce WovenMamba, a horizontal-then-vertical SSM composition whose simplified receptive field exhibits direction- and distance-dependent two-dimensional support. Third, we introduce AnchorCrossAttention, a cross-attention operator that retrieves cross-image context through locally grouped anchors.

References (32)