Boggy666 commited on
Commit
671e2cc
·
verified ·
1 Parent(s): 260de61

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +50 -42
README.md CHANGED
@@ -18,14 +18,20 @@ size_categories:
18
  viewer: false
19
  ---
20
 
21
- # Trident-Train
22
 
23
- Training data for the paper **[Chaos in the Text: Revealing the Modality Preference in Mixed-Modality Retrievers](https://arxiv.org/abs/2610.11816)**.
 
 
24
 
25
- - 📄 Paper: [arXiv:2610.11816](https://arxiv.org/pdf/2610.11816)
26
- - 💻 Code: [OpenBMB/Trident](https://github.com/OpenBMB/Trident)
27
- - 🧪 Evaluation data: [OpenBMB/Trident-Eval](https://huggingface.co/datasets/OpenBMB/Trident-Eval)
28
- - 🤗 Model: [OpenBMB/Trident-Qwen3VL-2B](https://huggingface.co/OpenBMB/Trident-Qwen3VL-2B)
 
 
 
 
29
 
30
  ## Overview
31
 
@@ -33,21 +39,21 @@ Dense retrievers tend to assign higher similarity scores to *text* representatio
33
 
34
  Every training instance pairs one query with **three co-equal positive views** of the same document:
35
 
36
- | View | Content | How it is built |
37
- |---|---|---|
38
- | **Text** | A detailed description of the document image | Generated by [Qwen3-VL-235B-A22B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct) |
39
- | **Image** | The original document image | Original image |
40
- | **Fused** | A short summary **+** the original image | Summary generated by Qwen3-VL-235B-A22B-Instruct |
41
 
42
  The three views are optimized jointly with the Multi-Positive View InfoNCE loss (see the [paper](https://arxiv.org/abs/2610.11816) and the [code](https://github.com/OpenBMB/Trident)).
43
 
44
  Three training files are provided:
45
 
46
- | File | Domain | Source | #Queries |
47
- |---|---|---|---|
48
- | `train_vdoc.jsonl` | Visual documents | OpenDocVQA | ~41K |
49
- | `train_nature.jsonl` | Natural images | MMEB training sets | ~170K |
50
- | `train_all.jsonl` | Visual documents + natural images | Union of the two files above | ~211K |
51
 
52
  `train_all.jsonl` is the data used to train the released [Trident-Qwen3VL-2B](https://huggingface.co/OpenBMB/Trident-Qwen3VL-2B). The two domain files can be used to train domain-specific retrievers.
53
 
@@ -89,19 +95,19 @@ data/
89
 
90
  ### Image archives
91
 
92
- | Archive | Source dataset |
93
- |---|---|
94
- | `aokvqa.tar.gz` | A-OKVQA |
95
- | `docvqa.tar.gz` | DocVQA |
96
- | `dude.tar.gz` | DUDE |
97
- | `fvqa.tar.gz` | FVQA |
98
- | `infovqa.tar.gz` | InfographicVQA |
99
- | `mscoco.tar.gz` | MSCOCO |
100
- | `openwikitable.tar.gz` | OpenWikiTable |
101
  | `render_images.tar.gz` | Rendered images generated for the training data |
102
- | `visualmrc.tar.gz` | VisualMRC |
103
- | `visualnews.tar.gz` | VisualNews |
104
- | `wiki.tar.gz` | Wikipedia images |
105
 
106
  Each archive extracts into `images/` and keeps its own sub-folder, so image paths in the `.jsonl` files resolve as `data/Train/images/<path>`.
107
 
@@ -163,23 +169,23 @@ Every `.jsonl` file contains one JSON object per line. Image paths are **relativ
163
  ```json
164
  {"query": [{"text": "How many stores did Saint Laurent operate in Western Europe in 2020?"}],
165
  "positive": [{"text": "<detailed description>", "id": "d1_text"},
166
- {"image": "chartqa/d1.png", "id": "d1_image"},
167
- {"text": "<short summary>", "image": "chartqa/d1.png", "id": "d1_fused"}],
168
  "doc_id": "d1", "query_id": "q1", "task": "default"}
169
  ```
170
 
171
- | Field | Description |
172
- |---|---|
173
- | `query` | A list with the query content (`text` and/or `image`). |
174
- | `positive` | Exactly three positive views of the same document, **always in the order text → image → fused**. Each view carries its own `id`. |
175
- | `doc_id`, `query_id` | Identities of the document and the query. Used to mask false negatives inside a batch. |
176
- | `task` | Task tag (`"default"`). |
177
  | `positive_ids`, `group_id` | *Optional.* Extra identity fields for false-negative masking. Missing ids fall back to content hashes. |
178
 
179
- | View | Fields present |
180
- |---|---|
181
- | Text | `id`, `text` |
182
- | Image | `id`, `image` |
183
  | Fused (summary + image) | `id`, `text`, `image` |
184
 
185
  See [`src/mmemb/data/schema.py`](https://github.com/OpenBMB/Trident/blob/main/src/mmemb/data/schema.py) in the code repository for all supported fields.
@@ -188,14 +194,16 @@ See [`src/mmemb/data/schema.py`](https://github.com/OpenBMB/Trident/blob/main/sr
188
 
189
  ## Construction
190
 
191
- Following Section 4.1 of the paper, we build training instances from OpenDocVQA (visual documents) and the MMEB training sets (natural images). For every image document, Qwen3-VL-235B-A22B-Instruct generates (i) a detailed description (Text view) and (ii) a short summary that is paired with the image (Fused view). The original image is kept as the Image view, so each document is represented by three equally weighted positive views.
192
 
193
  ## License
194
 
195
- The annotations released here are under the MIT License. The images originate from third-party datasets (see [Image archives](#image-archives)) and remain subject to their **original licenses**; please make sure your use complies with them.
196
 
197
  ## Citation
198
 
 
 
199
  ```bibtex
200
  @article{trident2026chaos,
201
  title = {Chaos in the Text: Revealing the Modality Preference in Mixed-Modality Retrievers},
 
18
  viewer: false
19
  ---
20
 
21
+ <h1 align="center">Trident-Train</h1>
22
 
23
+ <p align="center">
24
+ Official training data for <a href="https://arxiv.org/abs/2610.11816"><i>Chaos in the Text: Revealing the Modality Preference in Mixed-Modality Retrievers</i></a>
25
+ </p>
26
 
27
+ <p align="center">
28
+ <a href="https://arxiv.org/abs/2610.11816"><img src="https://img.shields.io/badge/arXiv-2610.11816-b31b1b.svg" alt="arXiv"></a>
29
+ <a href="https://github.com/OpenBMB/Trident"><img src="https://img.shields.io/badge/GitHub-OpenBMB%2FTrident-blue.svg" alt="Code"></a>
30
+ <a href="https://huggingface.co/OpenBMB/Trident-Qwen3VL-2B"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Model-Trident--Qwen3VL--2B-yellow.svg" alt="Model"></a>
31
+ <a href="https://huggingface.co/datasets/OpenBMB/Trident-Train"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Data-Trident--Train-orange.svg" alt="Train data"></a>
32
+ <a href="https://huggingface.co/datasets/OpenBMB/Trident-Eval"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Data-Trident--Eval-orange.svg" alt="Eval data"></a>
33
+ <a href="https://github.com/OpenBMB/Trident/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
34
+ </p>
35
 
36
  ## Overview
37
 
 
39
 
40
  Every training instance pairs one query with **three co-equal positive views** of the same document:
41
 
42
+ | View | Content | How it is built |
43
+ | --------- | -------------------------------------------- | ------------------------------------------------------------ |
44
+ | **Text** | A detailed description of the document image | Generated by [Qwen3-VL-235B-A22B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct) |
45
+ | **Image** | The original document image | Original image |
46
+ | **Fused** | A short summary **+** the original image | Summary generated by [Qwen3-VL-235B-A22B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct) |
47
 
48
  The three views are optimized jointly with the Multi-Positive View InfoNCE loss (see the [paper](https://arxiv.org/abs/2610.11816) and the [code](https://github.com/OpenBMB/Trident)).
49
 
50
  Three training files are provided:
51
 
52
+ | File | Domain | Source | #Queries |
53
+ | -------------------- | --------------------------------- | ---------------------------- | -------- |
54
+ | `train_vdoc.jsonl` | Visual documents | OpenDocVQA | ~41K |
55
+ | `train_nature.jsonl` | Natural images | MMEB training sets | ~170K |
56
+ | `train_all.jsonl` | Visual documents + natural images | Union of the two files above | ~211K |
57
 
58
  `train_all.jsonl` is the data used to train the released [Trident-Qwen3VL-2B](https://huggingface.co/OpenBMB/Trident-Qwen3VL-2B). The two domain files can be used to train domain-specific retrievers.
59
 
 
95
 
96
  ### Image archives
97
 
98
+ | Archive | Source dataset |
99
+ | ---------------------- | ----------------------------------------------- |
100
+ | `aokvqa.tar.gz` | A-OKVQA |
101
+ | `docvqa.tar.gz` | DocVQA |
102
+ | `dude.tar.gz` | DUDE |
103
+ | `fvqa.tar.gz` | FVQA |
104
+ | `infovqa.tar.gz` | InfographicVQA |
105
+ | `mscoco.tar.gz` | MSCOCO |
106
+ | `openwikitable.tar.gz` | OpenWikiTable |
107
  | `render_images.tar.gz` | Rendered images generated for the training data |
108
+ | `visualmrc.tar.gz` | VisualMRC |
109
+ | `visualnews.tar.gz` | VisualNews |
110
+ | `wiki.tar.gz` | Wikipedia images |
111
 
112
  Each archive extracts into `images/` and keeps its own sub-folder, so image paths in the `.jsonl` files resolve as `data/Train/images/<path>`.
113
 
 
169
  ```json
170
  {"query": [{"text": "How many stores did Saint Laurent operate in Western Europe in 2020?"}],
171
  "positive": [{"text": "<detailed description>", "id": "d1_text"},
172
+ {"image": "docvqa/d1.png", "id": "d1_image"},
173
+ {"text": "<short summary>", "image": "docvqa/d1.png", "id": "d1_fused"}],
174
  "doc_id": "d1", "query_id": "q1", "task": "default"}
175
  ```
176
 
177
+ | Field | Description |
178
+ | -------------------------- | ------------------------------------------------------------ |
179
+ | `query` | A list with the query content (`text` and/or `image`). |
180
+ | `positive` | Exactly three positive views of the same document, **always in the order text → image → fused**. Each view carries its own `id`. |
181
+ | `doc_id`, `query_id` | Identities of the document and the query. Used to mask false negatives inside a batch. |
182
+ | `task` | Task tag (`"default"`). |
183
  | `positive_ids`, `group_id` | *Optional.* Extra identity fields for false-negative masking. Missing ids fall back to content hashes. |
184
 
185
+ | View | Fields present |
186
+ | ----------------------- | --------------------- |
187
+ | Text | `id`, `text` |
188
+ | Image | `id`, `image` |
189
  | Fused (summary + image) | `id`, `text`, `image` |
190
 
191
  See [`src/mmemb/data/schema.py`](https://github.com/OpenBMB/Trident/blob/main/src/mmemb/data/schema.py) in the code repository for all supported fields.
 
194
 
195
  ## Construction
196
 
197
+ Following Section 4.1 of the paper, we build training instances from OpenDocVQA (visual documents) and the MMEB training sets (natural images). For every image document, [Qwen3-VL-235B-A22B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-235B-A22B-Instruct) generates (i) a detailed description (Text view) and (ii) a short summary that is paired with the image (Fused view). The original image is kept as the Image view, so each document is represented by three equally weighted positive views.
198
 
199
  ## License
200
 
201
+ The annotations released here are under the [MIT License](https://github.com/OpenBMB/Trident/blob/main/LICENSE). The images originate from third-party datasets (see [Image archives](#image-archives)) and remain subject to their **original licenses**; please make sure your use complies with them.
202
 
203
  ## Citation
204
 
205
+ If you find this work useful, please cite:
206
+
207
  ```bibtex
208
  @article{trident2026chaos,
209
  title = {Chaos in the Text: Revealing the Modality Preference in Mixed-Modality Retrievers},