Any-to-Any
Transformers
Safetensors
English
qwen3_vl
text-generation
chaxjli commited on
Commit
575293d
Β·
verified Β·
1 Parent(s): f10eb3b

upload figures and README

Browse files
.gitattributes CHANGED
@@ -34,3 +34,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ figures/global_pool.png filter=lfs diff=lfs merge=lfs -text
38
+ figures/local_pool.png filter=lfs diff=lfs merge=lfs -text
39
+ figures/zero_shot_image.png filter=lfs diff=lfs merge=lfs -text
40
+ figures/zero_shot_video.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,113 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - Qwen/Qwen2-VL-7B-Instruct
4
+ datasets:
5
+ - TIGER-Lab/M-BEIR
6
+ language:
7
+ - en
8
+ license: apache-2.0
9
+ pipeline_tag: any-to-any
10
+ library_name: transformers
11
+ ---
12
+
13
+ ## U-MARVEL: Unveiling Key Factors for Universal Multimodal Retrieval via Embedding Learning with MLLMs
14
+
15
+ This repository contains the official model checkpoints and inference code for **U-MARVEL**, presented in the paper [U-MARVEL: Unveiling Key Factors for Universal Multimodal Retrieval via Embedding Learning with MLLMs](https://huggingface.co/papers/2507.14902).
16
+
17
+ Universal multimodal retrieval (UMR) addresses complex retrieval tasks involving diverse modalities for both queries and candidates. Despite the success of state-of-the-art methods based on multimodal large language models (MLLMs) using contrastive learning principles, the mechanisms underlying their retrieval capabilities remain largely unexplored. This gap potentially leads to suboptimal performance and limited generalization ability.
18
+
19
+ In this study, we systematically analyze the key factors driving effective embedding learning for UMR using MLLMs. We implement a general MLLM-based embedding learning pipeline and investigate contributors to high-performing universal retrieval systems. Our analysis covers various aspects of embedding generation and training strategies, including progressive transition, hard negative mining, and re-ranker distillation. Our findings reveal that often-overlooked factors can significantly impact model performance.
20
+
21
+ Building on these insights, we introduce U-MARVEL (Universal Multimodal Retrieval via Embedding Learning), a unified framework that outperforms state-of-the-art competitors on the M-BEIR benchmark in supervised settings and demonstrates strong zero-shot performance on tasks such as composed image retrieval and text-to-video retrieval. These results highlight the generalization potential of our framework across various embedding-based retrieval tasks, providing valuable insights for future research.
22
+
23
+ ## Model Checkpoints
24
+
25
+ ```
26
+ β”œβ”€β”€ checkpoints
27
+ β”‚ β”œβ”€β”€ hf_models
28
+ β”‚ β”‚ └── Qwen2-VL-7B-Instruct
29
+ β”‚ β”‚ └── Qwen3-VL-4B-Instruct
30
+ β”‚ └── U-MARVEL-Qwen2VL-7B-Instruct
31
+ β”‚ └── U-MARVEL-Qwen3VL-4B-Instruct
32
+ ```
33
+
34
+ - [U-MARVEL-Qwen2VL-7B-Instruct](https://huggingface.co/TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct) πŸ€—
35
+ - [U-MARVEL-Qwen3VL-4B-Instruct](https://huggingface.co/TencentBAC/U-MARVEL-Qwen3VL-4B-Instruct) πŸ€—
36
+ - Inference code available at: [U-MARVEL-inference](https://github.com/chaxjli/U-MARVEL)
37
+ ## Requirements
38
+
39
+ To install requirements:
40
+
41
+ ```setup
42
+ pip install -r requirements.txt
43
+ ```
44
+
45
+ ### Data Preparation
46
+
47
+ Download Qwen2-VL-7B and place it in `./checkpoints/hf_models/Qwen2-VL-7B-Instruct`
48
+
49
+ Download Qwen3-VL-4B and place it in `./checkpoints/hf_models/Qwen3-VL-4B-Instruct`
50
+
51
+ For NLI dataset, please refer to [link](https://huggingface.co/datasets/princeton-nlp/datasets-for-simcse)
52
+
53
+ For multimodal instruction tuning datset, please refer to [M-BEIR](https://huggingface.co/datasets/TIGER-Lab/M-BEIR)
54
+
55
+ After downloading all of them, organize the data as follows in `./data`
56
+
57
+ ```
58
+ β”œβ”€β”€ data
59
+ β”‚ β”œβ”€β”€ M-BEIR
60
+ β”‚ β”œβ”€β”€ nli_for_simcse.csv
61
+ β”‚ β”œβ”€β”€ rerank_data_for_training
62
+ β”‚ β”œβ”€β”€ flickr
63
+ β”‚ β”œβ”€β”€ coco
64
+ β”‚ β”œβ”€β”€ sharegpt4v
65
+ β”‚ β”œβ”€β”€ Urban1K
66
+ β”‚ β”œβ”€β”€ circo
67
+ β”‚ β”œβ”€β”€ genecis
68
+ β”‚ β”œβ”€β”€ vist
69
+ β”‚ β”œβ”€β”€ visdial
70
+ β”‚ β”œβ”€β”€ ccneg
71
+ β”‚ β”œβ”€β”€ sugar-crepe
72
+ β”‚ β”œβ”€β”€ MSVD
73
+ β”‚ └── msrvtt
74
+ ```
75
+
76
+ ## Evaluation
77
+
78
+ To evaluate our model on M-BEIR, run:
79
+
80
+ ```bash
81
+ python scripts/vtools_eval_mbeir_model.py # Evaluate locally
82
+ sh scripts/eval_mbeir_global.sh # Evaluate globally
83
+ sh scripts/eval_zeroshot.sh # Evaluate zero-shot
84
+ ```
85
+
86
+ ## Model Performance
87
+
88
+ The proposed U-MARVEL framework establishes new state-of-the-art performance across both
89
+ single-model architectures and recall-then-rerank approaches on M-BEIR benchmark.
90
+
91
+ <img src="./figures/local_pool.png" alt="M-BEIR-Local" width="700" height="auto">
92
+
93
+ <img src="./figures/global_pool.png" alt="M-BEIR-Global" width="700" height="auto">
94
+
95
+ <img src="./figures/zero_shot_image.png" alt="M-BEIR-Zero-shot_image" width="700" height="auto">
96
+
97
+ <img src="./figures/zero_shot_video.png" alt="M-BEIR-Zero-shot_video" width="700" height="auto">
98
+
99
+
100
+ ## Acknowledgements
101
+
102
+ Many thanks to the code bases from **[LamRA](https://github.com/Code-kunkun/LamRA)** .
103
+
104
+ ## Citation
105
+ If you use this code for your research or project, please cite:
106
+ ```latex
107
+ @article{li2025umarvel,
108
+ title={U-MARVEL: Unveiling Key Factors for Universal Multimodal Retrieval via Embedding Learning with MLLMs},
109
+ author={Li, Xiaojie and Li, Chu and Chen, Shi-Zhe and Chen, Xi},
110
+ journal={arXiv preprint arXiv:2507.14902},
111
+ year={2025}
112
+ }
113
+ ```
figures/global_pool.png ADDED

Git LFS Details

  • SHA256: 874e20812c2cf30356b21038fad7c69624d236d09f851ac7d78193799f63f851
  • Pointer size: 131 Bytes
  • Size of remote file: 249 kB
figures/local_pool.png ADDED

Git LFS Details

  • SHA256: 82f173b1c69a5354579e2ab3573274279a95d24ef969df7cd2c3ae2ab8e1930f
  • Pointer size: 131 Bytes
  • Size of remote file: 261 kB
figures/zero_shot_image.png ADDED

Git LFS Details

  • SHA256: 92b2ed30bba7e219bec916cbec903563a60f594bccfbc3446bb3737bc17a7e10
  • Pointer size: 131 Bytes
  • Size of remote file: 270 kB
figures/zero_shot_video.png ADDED

Git LFS Details

  • SHA256: f7e5b410d5012ad60f557892bbaa85210803bb6cd523398f2ab805187b58ee03
  • Pointer size: 131 Bytes
  • Size of remote file: 214 kB