ReMatch: Boosting Representation through Matching for Multimodal Retrieval
This repository contains the official implementation of
ReMatch
, accepted to
CVPR 2026
.
ReMatch turns a multimodal large language model into a stronger multimodal retriever by adding a chat-style generative matching objective during training. The same MLLM learns to judge query-document relevance from both raw multimodal inputs and projected embeddings, complementing standard contrastive learning with instance-wise supervision on hard negatives. ReMatch also augments each input with multiple learnable representation tokens and fuses them into an efficient single-vector embedding for retrieval.
๐ฅ Authors
Qianying Liu
*, Xiao Liang*, Zhiqiang Zhang#, Yibo Chen, Xu Tang, Zhongfei Qing, Fengfan Zhou, Yao Hu, Paul Henderson
University of Glasgow, Xiaohongshu Inc., Huazhong University of Science and Technology
* Equal contribution. # Project leader.
๐ Method
ReMatch is built around two core ideas:
Query-Document Matching
: an additional autoregressive matching stage that predicts relevance from the query, document, and their projected embeddings.
Learnable Multi-Token Embeddings
: multiple learnable tokens capture fine-grained contextual signals; an orthogonality regularizer encourages complementary representations, and the fused output remains a standard dense embedding.
๐ฅ News
2026-05
: ReMatch code, the
ReMatch-3B
checkpoint, and evaluation scripts are released.
2026-02
: ReMatch is accepted to
CVPR 2026
.
2025-11
: The ReMatch technical report is available on arXiv.
flash-attn
can be sensitive to CUDA, PyTorch, and compiler versions. If installation fails, install the wheel matching your environment from the official FlashAttention release instructions, then rerun the remaining dependencies.
๐ค Checkpoints
We release
ReMatch-3B
, a Qwen2.5-VL-3B based checkpoint trained with the ReMatch recipe:
In addition to mmE5, please follow the original
VLM2Vec
data preparation instructions to download the corresponding MMEB training and evaluation data used by the public configs in this repository.
The default script trains a Qwen2.5-VL-3B based ReMatch model with LoRA, 16 learnable query tokens, residual average fusion, orthogonal regularization, and the matching objective enabled. You can override common paths without editing the script:
Please prepare the MMEB evaluation data following the original
VLM2Vec
instructions, then set
DATA_BASEDIR
to the directory containing the downloaded evaluation files.
Note:
Evaluation scores may vary slightly across environments, as different PyTorch, CUDA, and
flash-attn
versions can introduce small numerical differences.
For checkpoints produced by this repository, we recommend using
eval_all.py
. It reads the experiment name and automatically matches the evaluation configuration used by ReMatch, including backbone type, target-side instruction prefix, chat template, learnable query tokens, and residual embedding fusion. For example, an experiment name containing
Qwen2.5vl
,
TgtInstruction
,
Queries16
,
ResidualAvg
, and
ChatTemplate
will be evaluated with the corresponding
qwen2_5_vl
, target instruction, 16 learnable tokens, average residual fusion, and chat-template settings.
If no arguments are provided,
eval_all.py
scans
outputs/<model_name>/<checkpoint_name>/
, evaluates every checkpoint directory, and writes summaries to:
This codebase is built on top of
VLM2Vec
. We sincerely thank the VLM2Vec authors for releasing their training and evaluation infrastructure for massive multimodal embedding tasks.
We also thank the authors of Qwen2.5-VL, MMEB, and mmE5 for their open models, benchmarks, and data resources.
๐ Citation
@article{liu2025rematch,
title={ReMatch: Boosting Representation through Matching for Multimodal Retrieval},
author={Liu, Qianying and Liang, Xiao and Zhang, Zhiqiang and Chen, Yibo and Tang, Xu and Qing, Zhongfei and Zhou, Fengfan and Hu, Yao and Henderson, Paul},
journal={arXiv preprint arXiv:2511.19278},
year={2025}
}
Runs of FireRedTeam ReMatch-3B on huggingface.co
23
Total runs
0
24-hour runs
0
3-day runs
9
7-day runs
23
30-day runs
More Information About ReMatch-3B huggingface.co Model
ReMatch-3B huggingface.co is an AI model on huggingface.co that provides ReMatch-3B's model effect (), which can be used instantly with this FireRedTeam ReMatch-3B model. huggingface.co supports a free trial of the ReMatch-3B model, and also provides paid use of the ReMatch-3B. Support call ReMatch-3B model through api, including Node.js, Python, http.
ReMatch-3B huggingface.co is an online trial and call api platform, which integrates ReMatch-3B's modeling effects, including api services, and provides a free online trial of ReMatch-3B, you can try ReMatch-3B online for free by clicking the link below.
FireRedTeam ReMatch-3B online free url in huggingface.co:
ReMatch-3B is an open source model from GitHub that offers a free installation service, and any user can find ReMatch-3B on GitHub to install. At the same time, huggingface.co provides the effect of ReMatch-3B install, users can directly use ReMatch-3B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.