UniME-R1 is an
EmbedderโAdviser
framework that learns to reason over
retrieved candidates
(not the query alone) and generate
Retrieval-Centric Chain-of-Thought (RC-CoT)
to correct retrieval failures. This repository ships the
4B-scale
pair: a Qwen3-VL-4B dual-mode Embedder and the Qwen3-VL-4B retrieval-aware Adviser โ the best-performing configuration in the paper.
๐ก Highlights
Retrieval-Centric CoT (RC-CoT)
โ The Adviser analyzes the
actual
top-k retrieved candidates to diagnose model-specific confusion, then emits
<cot_focus>
(which discriminative cues are missing) and
<cot_answer>
(a concise corrected query) to redirect retrieval.
Dual-Mode Embedder
โ A single VLM backbone produces two embeddings via special tokens:
<dis_emb>
for fast discriminative retrieval and
<gen_emb>
for RC-CoT-enhanced re-retrieval. Candidates are encoded
once
with
<dis_emb>
and reused across both paths โ no candidate-side CoT, no index rebuilding.
Adaptive Rerank-or-Retrieve
โ The Adviser predicts whether a match exists in the top-k set. If yes, it reranks; if not, it appends RC-CoT to the query and re-retrieves over the full corpus.
Retrieval-Oriented GRPO
โ The Adviser is optimized with a 4-component reward (format / NDCG rerank / CoT-embedding quality / judge decision) that calls a
frozen Embedder API
to score the Adviser's CoT against mined hard negatives, so the RL signal reflects real end-to-end retrieval quality.
The Embedder is released as a
PEFT/LoRA adapter
โ load it on top of
Qwen/Qwen3-VL-4B-Instruct
. The two special tokens (
<dis_emb>
=151670,
<gen_emb>
=151669) and their embeddings are provided via
added_tokens.json
+
new_token_embeddings.pt
.
UniME-R1 achieves the best overall performance at both model scales. Notably, the 2B model already outperforms all medium-size (4Bโ7B) baselines, indicating the gains stem from the framework rather than model scale alone.
๐ Zero-shot General Retrieval
๐๏ธ Citation
If you find this repository useful, please use the following BibTeX entry for citation.
@misc{unimer1,
title={Learning from Failures: Retrieval-Centric CoT via Hard Negatives for Unified Multimodal Retrieval},
author={Zelong Sun and Jun Wang and Kaicheng Yang and Tiancheng Gu and Ziyong Feng and Zhiwu Lu},
year={2026},
eprint={2608.06060},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2608.06060},
}
โญ Don't forget to star this repository if you find it helpful!
Runs of DeepGlint-AI UniME-R1-4B on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About UniME-R1-4B huggingface.co Model
UniME-R1-4B huggingface.co is an AI model on huggingface.co that provides UniME-R1-4B's model effect (), which can be used instantly with this DeepGlint-AI UniME-R1-4B model. huggingface.co supports a free trial of the UniME-R1-4B model, and also provides paid use of the UniME-R1-4B. Support call UniME-R1-4B model through api, including Node.js, Python, http.
UniME-R1-4B huggingface.co is an online trial and call api platform, which integrates UniME-R1-4B's modeling effects, including api services, and provides a free online trial of UniME-R1-4B, you can try UniME-R1-4B online for free by clicking the link below.
DeepGlint-AI UniME-R1-4B online free url in huggingface.co:
UniME-R1-4B is an open source model from GitHub that offers a free installation service, and any user can find UniME-R1-4B on GitHub to install. At the same time, huggingface.co provides the effect of UniME-R1-4B install, users can directly use UniME-R1-4B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.