Papers › PMatch: Paired Masked Image Modeling for Dense Geometric Matching

PMatch: Paired Masked Image Modeling for Dense Geometric Matching

30 Mar 2023CVPR 2023 1arXiv:2303.17342archive 2025-07-28

Shengjie Zhu, Xiaoming Liu

Dense geometric matching determines the dense pixel-wise correspondence between a source and support image corresponding to the same 3D structure. Prior works employ an encoder of transformer blocks to correlate the two-frame features. However, existing monocular pretraining tasks, e.g., image classification, and masked image modeling (MIM), can not pretrain the cross-frame module, yielding less optimal performance. To resolve this, we reformulate the MIM from reconstructing a single masked image to reconstructing a pair of masked images, enabling the pretraining of transformer module. Additionally, we incorporate a decoder into pretraining for improved upsampling results. Further, to be robust to the textureless area, we propose a novel cross-frame global matching module (CFGM). Since the most textureless area is planar surfaces, we propose a homography loss to further regularize its learning. Combined together, we achieve the State-of-The-Art (SoTA) performance on geometric matching. Codes and models are available at https://github.com/ShngJZ/PMatch.

PaperPDFConference PDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 21 code samples harvested from 1 repository linked to this paper: 15 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 3 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 21 samples from 1 repository, 15 ran (12 with no instrument failure; 3 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

shngjz/pmatch officialmentioned in papermentioned on GitHubpytorchSyntology: 21 samples, 15 ran (3 instrument-failed) · 6 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested: 15 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 3 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · our draft was wrong
1ran; the contract check could not run
12ran
6unverified

Licence: 21 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from shngjz/pmatch. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

shngjz/pmatch official repository 21 samples, 15 ran (3 instrument-failed) · 6 unverified
CAB in 6 papers PMatch/PMatch/models/pmatch.py ran · metamorphic tier: well formed no licence file found · pointer only · 7a16afb355653e12 · report fixture: signature x:tuple/1/Tensor · returned Tensor · level recorded 2026-09-22
DFN PMatch/PMatch/models/pmatch.py ran no licence file found · pointer only · babf93469d127ce6 · report fixture: signature embeddings:Tensor/2/float, feats:Tensor/2/float, context:Tensor/2/float · returned tuple · level recorded 2026-09-24
GP in 5 papers PMatch/PMatch/models/pmatch.py ran no licence file found · pointer only · b36fd6d3ea325a2b · report fixture: signature sim_matrix:Tensor/3/float, b:int/0/int, h:int/0/int, w:int/0/int · returned Tensor · level recorded 2026-09-24
PositionEncodingSine PMatch/PMatch/models/pmatch.py ran · metamorphic tier: invariant no licence file found · pointer only · f5d738fa2de8f36c · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded 2026-09-22
RRB PMatch/PMatch/models/pmatch.py ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · d4ecbc7c731291ab · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded 2026-09-22
ToTensorScaled PMatch/PMatch/models/pmatch.py ran · metamorphic tier: well formed no licence file found · pointer only · 8114c24b493bd6f8 · report fixture: signature im:Image/0/? · returned Tensor · level recorded 2026-09-22
ToTensorUnscaled PMatch/PMatch/models/pmatch.py ran · metamorphic tier: well formed no licence file found · pointer only · c61ecc97ea7ee175 · report fixture: signature im:Image/0/? · returned Tensor · level recorded 2026-09-22
TupleCompose PMatch/PMatch/models/pmatch.py ran · metamorphic tier: deterministic no licence file found · pointer only · 2168e2f71cd93edf · report fixture: signature im_tuple:list/1/Tensor · returned list · level recorded 2026-09-22
TupleNormalize PMatch/PMatch/models/pmatch.py ran · metamorphic tier: well formed no licence file found · pointer only · 4e2e411dae35e79d · report fixture: signature im_tuple:list/1/Tensor · returned list · level recorded 2026-09-22
TupleResize PMatch/PMatch/models/pmatch.py ran · metamorphic tier: well formed no licence file found · pointer only · f72f4f70cf5da05f · report fixture: signature im_tuple:list/1/Image · returned list · level recorded 2026-09-22
TupleToTensorScaled PMatch/PMatch/models/pmatch.py ran · metamorphic tier: deterministic no licence file found · pointer only · 4347f118211f1976 · report fixture: signature im_tuple:tuple/1/Image · returned list · level recorded 2026-09-22
TupleToTensorUnscaled PMatch/PMatch/models/pmatch.py ran · metamorphic tier: well formed no licence file found · pointer only · 906f8baa705381c8 · report fixture: signature im_tuple:tuple/1/Image · returned list · level recorded 2026-09-22
kde in 6 papers PMatch/PMatch/models/pmatch.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · 50ff7bbc1a8ffd18 · report fixture: signature x:ndarray/2/float, std:float/0/float · returned Tensor · level recorded 2026-09-22
local_correlation PMatch/PMatch/models/pmatch.py ran · our draft was wrong no licence file found · pointer only · f16dcf38e54e87f2 · report fixture: signature feature0:Tensor/4/float, feature1:Tensor/4/float, local_radius:int/0/int, padding_mode:str/0/str, flow:NoneType/0/? · returned Tensor · level recorded 2026-09-22
lower_config in 5 papers PMatch/PMatch/models/pmatch.py ran · our draft was wrong no licence file found · pointer only · 616a327f53231192 · report fixture: signature yacs_cfg:dict/0/? · returned dict · level recorded 2026-09-22
ConvRefiner PMatch/PMatch/models/pmatch.py unverified no licence file found · pointer only · 9d79df33e76c4667 · report
Decoder in 210 papers PMatch/PMatch/models/pmatch.py unverified no licence file found · pointer only · ebe4ac0c04defee7 · report
LoFTR PMatch/PMatch/models/pmatch.py unverified no licence file found · pointer only · 9fe2662843a9abdb · report
PMatch PMatch/PMatch/models/pmatch.py unverified no licence file found · pointer only · 67caf3386e8cb186 · report
build_backbone in 29 papers PMatch/PMatch/models/pmatch.py unverified no licence file found · pointer only · bcc3bfa51d551dd7 · report
get_tuple_transform_ops PMatch/PMatch/models/pmatch.py unverified no licence file found · pointer only · 85a76414e468c146 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for PMatch (graph method: PMatch). 21 bricks; individually on a fixture: 15 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 3 where Syntology's instrument failed) · 6 unverified. The assembly has not been run end-to-end.

  1. PMatch entry · level 0 · unverified · 67caf3386e8cb186
  2. Decoder model · level 0 · unverified · ebe4ac0c04defee7
  3. LoFTR model · level 0 · unverified · 9fe2662843a9abdb
  4. get_tuple_transform_ops helper · level 0 · unverified · 85a76414e468c146
  5. kde helper · level 1 · ran; the contract check could not run (RAISES) · 50ff7bbc1a8ffd18
  6. CAB helper · level 1 · ran · 7a16afb355653e12
  7. ConvRefiner helper · level 0 · unverified · 9d79df33e76c4667
  8. DFN helper · level 1 · ran · babf93469d127ce6
  9. GP helper · level 1 · ran · b36fd6d3ea325a2b
  10. RRB helper · level 1 · ran · d4ecbc7c731291ab
  11. PositionEncodingSine helper · level 1 · ran · f5d738fa2de8f36c
  12. build_backbone helper · level 0 · unverified · bcc3bfa51d551dd7
  13. TupleCompose helper · level 1 · ran · 2168e2f71cd93edf
  14. TupleNormalize helper · level 1 · ran · 4e2e411dae35e79d
  15. TupleResize helper · level 1 · ran · f72f4f70cf5da05f
  16. TupleToTensorScaled helper · level 1 · ran · 4347f118211f1976
  17. TupleToTensorUnscaled helper · level 1 · ran · 906f8baa705381c8
  18. local_correlation helper · level 1 · ran · our draft was wrong · f16dcf38e54e87f2
  19. ToTensorScaled helper · level 1 · ran · 8114c24b493bd6f8
  20. ToTensorUnscaled helper · level 1 · ran · c61ecc97ea7ee175
  21. lower_config helper · level 1 · ran · our draft was wrong · 616a327f53231192

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2303.17342") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

DecoderGeometric MatchingImage Classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

MIM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections