Datasets:
Add comprehensive dataset card for ReasonMap-Plus
Browse filesThis PR adds a comprehensive dataset card for the `ReasonMap-Plus` dataset.
Key additions and improvements include:
- Populating relevant metadata, including `task_categories` (`image-text-to-text`, `visual-question-answering`), `language` (`en`), and relevant `tags` (`visual-question-answering`, `multimodal`, `reinforcement-learning`, `visual-reasoning`, `spatial-reasoning`, `transit-maps`).
- A concise introductory description of the dataset, derived from the paper's abstract.
- Links to the associated paper, project page, and GitHub repository.
- A detailed "Sample Usage" section, directly incorporating code snippets from the GitHub README for dependency installation, dataset download, data preparation for SFT, a data format example, and a training command.
- The official BibTeX citation for the paper.
This update significantly improves the discoverability and usability of the `ReasonMap-Plus` dataset on the Hugging Face Hub.
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- image-text-to-text
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- visual-question-answering
|
| 9 |
+
- multimodal
|
| 10 |
+
- reinforcement-learning
|
| 11 |
+
- visual-reasoning
|
| 12 |
+
- spatial-reasoning
|
| 13 |
+
- transit-maps
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# ReasonMap-Plus Dataset
|
| 17 |
+
|
| 18 |
+
The **ReasonMap-Plus** dataset is an extended dataset introduced in the paper [RewardMap: Tackling Sparse Rewards in Fine-grained Visual Reasoning via Multi-Stage Reinforcement Learning](https://huggingface.co/papers/2510.02240). It addresses the challenge of sparse rewards in fine-grained visual reasoning for multimodal large language models (MLLMs), particularly in structured and information-rich settings like transit maps. ReasonMap-Plus achieves this by introducing dense reward signals through Visual Question Answering (VQA) tasks, which enables effective cold-start training of fine-grained visual understanding skills. This repository contains the `ReasonMap-Plus` data for evaluation and `ReasonMap-Train` for RewardMap training.
|
| 19 |
+
|
| 20 |
+
- **Paper:** [RewardMap: Tackling Sparse Rewards in Fine-grained Visual Reasoning via Multi-Stage Reinforcement Learning](https://huggingface.co/papers/2510.02240)
|
| 21 |
+
- **Project Page:** https://fscdc.github.io/RewardMap
|
| 22 |
+
- **Code:** https://github.com/fscdc/RewardMap
|
| 23 |
+
|
| 24 |
+
## Sample Usage
|
| 25 |
+
|
| 26 |
+
To get started with the `ReasonMap-Plus` dataset, follow these steps to install dependencies, download the data, and prepare it for training.
|
| 27 |
+
|
| 28 |
+
### 1. Install dependencies
|
| 29 |
+
|
| 30 |
+
If you face any issues with the installation, please feel free to open an issue on the GitHub repository.
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
pip install -r requirements.txt
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
### 2. Download the dataset
|
| 37 |
+
|
| 38 |
+
You can download [ReasonMap-Plus](https://huggingface.co/datasets/FSCCS/ReasonMap-Plus) (for evaluation) and [ReasonMap-Train](https://huggingface.co/datasets/FSCCS/ReasonMap-Train) (for RewardMap training) from Hugging Face or by running the following command:
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
python utils/download_dataset.py
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Then, put the data under the folder `data`.
|
| 45 |
+
|
| 46 |
+
### 3. Prepare data for Supervised Fine-Tuning (SFT)
|
| 47 |
+
|
| 48 |
+
If you plan to use tools like [LLaMA-Factory](https://github.com/hiyouga/LLaMA-Factory) for SFT training, first prepare the datasets by running the following command:
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
python utils/prepare_data_for_sft.py --dataset_dir path/to/your_data
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
### 4. Data Format Example
|
| 55 |
+
|
| 56 |
+
Your data will be transferred into a format similar to this for SFT:
|
| 57 |
+
|
| 58 |
+
```json
|
| 59 |
+
{
|
| 60 |
+
"conversations": [
|
| 61 |
+
{
|
| 62 |
+
"from": "human",
|
| 63 |
+
"value": "<image> Please solve the multiple choice problem and put your answer (one of ABCD) in one \"\\boxed{}\". According to the subway map, how many intermediate stops are there between Danube Station and lbn Battuta Station (except for this two stops)? \
|
| 64 |
+
A) 8 \
|
| 65 |
+
B) 1 \
|
| 66 |
+
C) 25 \
|
| 67 |
+
D) 12 \
|
| 68 |
+
"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"from": "gpt",
|
| 72 |
+
"value": "B"
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"images": [
|
| 76 |
+
"./maps/united_arab_emirates/dubai.png"
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
### 5. Training Example
|
| 82 |
+
|
| 83 |
+
You can train the `RewardMap` model using the provided scripts:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
# RewardMap training
|
| 87 |
+
bash scripts/reward_map.sh
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
## Citation
|
| 91 |
+
|
| 92 |
+
If you find this paper useful in your research, please consider citing our paper:
|
| 93 |
+
|
| 94 |
+
```bibtex
|
| 95 |
+
@article{feng2025rewardmap,
|
| 96 |
+
title={RewardMap: Tackling Sparse Rewards in Fine-grained Visual Reasoning via Multi-Stage Reinforcement Learning},
|
| 97 |
+
author={Feng, Sicheng and Tuo, Kaiwen and Wang, Song and Kong, Lingdong and Zhu, Jianke and Wang, Huan},
|
| 98 |
+
journal={arXiv preprint arXiv:2510.02240},
|
| 99 |
+
year={2025}
|
| 100 |
+
}
|
| 101 |
+
```
|