Datasets:
File size: 7,050 Bytes
797e9be 49654fc 797e9be 49654fc 797e9be 49654fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | ---
pretty_name: MIPR
license: apache-2.0
language:
- zh
size_categories:
- 10K<n<100K
task_categories:
- text-retrieval
tags:
- image
- text
- multimodal-retrieval
- e-commerce
- intent-understanding
- multi-category
- benchmark
configs:
- config_name: queries
default: true
data_files:
- split: test
path: data/mipr_query.jsonl
- config_name: corpus
data_files:
- split: test
path: data/mipr_corpus.jsonl
- config_name: qrels
data_files:
- split: test
path: data/mipr_annotation.jsonl
---
# MIPR: A Benchmark for Reasoning-Intensive Multimodal Intent-to-Product Retrieval with Multi-Category Solutions
This repository contains the dataset, evaluation code and construction pipeline for **MIPR**, a benchmark for multimodal intent-to-product retrieval in Chinese e-commerce.
## Overview
Real-world shopping queries often describe a problem without naming the product that would solve it. MIPR pairs a situational image with a free-form question and asks models to retrieve products that satisfy the underlying need. The image need not show the desired product, and valid solutions can span multiple product categories.
Built from real Taobao search queries and product listings, MIPR evaluates intent reasoning, product relevance and coverage of different solution categories. Queries and products are in Chinese.
| Item | Count |
|---|---|
| Queries (image + question) | 3,522 |
| Unique query images | 3,013 |
| Products in the shared corpus | 30,731 |
| Query–product relevance judgments | 447,809 |
| Relevance levels | 5 |
MIPR is an evaluation benchmark with no predefined training split. The three Hugging Face configurations—`queries`, `corpus` and `qrels`—expose its component tables under the `test` split.
## Relevance Labels
| Label | Meaning |
|---|---|
| **L1** | Optimal solution: satisfies the underlying need and its key constraints |
| **L2** | Suboptimal solution: relevant but only partially satisfies the need |
| **N1** | Constraint-violating: appears applicable but violates a critical constraint |
| **N2** | Related non-solution: related by category or appearance but does not solve the need |
| **N3** | Irrelevant |
## Dataset Structure
```text
data/
├── mipr_query.jsonl
├── mipr_corpus.jsonl
├── mipr_annotation.jsonl
├── images/
│ ├── query_images/
│ └── product_images/
└── baseline/
├── qwen3_vl_embedding_8b_top50.json
└── qwen3_vl_reranker_8b_top50.json
```
All three data tables use JSON Lines. `idx` joins queries to qrels, and `item_id` joins qrels to the product corpus. Product IDs are hashed and query IDs are renumbered.
**Queries** (`queries`):
```json
{"idx": "1", "query": "表面的老垢用啥清洗剂除", "image_url": "1.jpg"}
```
**Products** (`corpus`):
```json
{"item_id": "4f0114c9a825e418", "title": "凯易牌除垢剂水垢清除剂制冰机专用KAY除垢剂商用去垢清洁剂", "pict_url": "4f0114c9a825e418.jpg", "treecate_full_path": "家清-环境清洁-清洁剂-除垢剂"}
```
**Relevance judgments** (`qrels`, shortened example):
```json
{"idx": "1", "items": [{"item_id": "4f0114c9a825e418", "final_grade": "L1"}]}
```
Each qrels row contains all judged products for one query; the 447,809 judgments are nested in 3,522 rows. `image_url` and `pict_url` are local filenames under `data/images/query_images/` and `data/images/product_images/`, respectively. They are not remote URLs. `treecate_full_path` provides the leaf category used for solution-category evaluation.
## Getting Started
Download the repository and run commands from its root. To load the tables locally with Hugging Face Datasets:
```bash
pip install datasets
```
```python
from datasets import load_dataset
queries = load_dataset("json", data_files={"test": "data/mipr_query.jsonl"}, split="test")
corpus = load_dataset("json", data_files={"test": "data/mipr_corpus.jsonl"}, split="test")
qrels = load_dataset("json", data_files={"test": "data/mipr_annotation.jsonl"}, split="test")
```
### Evaluate the bundled rankings
The saved rankings allow evaluation without model inference or extra dependencies:
```bash
python evaluation/evaluate.py data/baseline/qwen3_vl_embedding_8b_top50.json
python evaluation/evaluate.py data/baseline/qwen3_vl_reranker_8b_top50.json --rerank
```
| System | nDCG@10 | R-L1@10 | Hit-L1@1 | Hit-L1@10 | SC-R-L1@10 | SC-R-L1@10* |
|---|---|---|---|---|---|---|
| Qwen3-VL-Embedding-8B | 49.23 | 53.98 | 47.02 | 85.63 | 61.33 | 55.86 |
| Qwen3-VL-Reranker-8B | 60.11 | 66.00 | 59.26 | 91.25 | 71.52 | 67.00 |
| Candidate-pool Oracle | 86.04 | 78.95 | 94.97 | 94.97 | 82.80 | 80.22 |
Scores are multiplied by 100. nDCG uses gains L1=2 and L2=1; R-L1 measures recall of judged L1 products; Hit-L1 measures whether an L1 product is retrieved; SC-R-L1 measures coverage of judged L1 leaf categories. The starred metric uses the 2,664 queries with at least two L1 categories. Reranking and the Oracle operate on the embedding model's top-50 candidates.
### Evaluate your own model
```bash
pip install -r requirements.txt
python evaluation/embedding.py --model Qwen/Qwen3-VL-Embedding-8B --out runs/embedding
python evaluation/retrieval.py --embed-dir runs/embedding --output runs/retrieval.json
python evaluation/evaluate.py runs/retrieval.json
```
Custom runs are JSON arrays with one entry per query:
```json
[{"qid": "1", "ranked": [{"did": "4f0114c9a825e418", "score": 0.87}]}]
```
All queries must appear exactly once, ranked product IDs must belong to the shared corpus, and scores are optional. For reranking, preserve the baseline candidate pool. See the [evaluation guide](evaluation/README.md) for reranker commands, supported models and analysis metrics.
## Construction and Scope
Construction combines query filtering and intent analysis, two-round product-term generation, multi-route retrieval, deduplication, three-model relevance labeling with Sonnet adjudication, and retrieval-based pooling. The [construction code](construction/README.md) includes the prompts and stage commands; source data, model services and the retrieval backend must be supplied separately.
Relevance judgments cover the discovered and pooled candidates rather than every possible query–product pair. Unjudged pairs receive zero gain during evaluation. The benchmark reflects Chinese e-commerce queries and the supplied product corpus; its solution categories are the annotated categories, not an exhaustive list of all possible solutions.
## Citation
If you use MIPR, please cite:
```bibtex
@misc{li_mipr,
title = {MIPR: A Benchmark for Reasoning-Intensive Multimodal Intent-to-Product Retrieval with Multi-Category Solutions},
author = {Qiang Li and Xuan Lu and Jian Ruan and Manxi Lin and Jiacheng Chen and Wen Shen and Zhihua Wei and Xiaoyu Shen and Dan Ou and Xiangheng Kong and Junjun Zheng}
}
```
## License
The dataset and code are released under the [Apache License 2.0](LICENSE).
|