DCVLR
Data Curation for Visual-Language Reasoning, a pipeline that generates synthetic multimodal question-answer pairs with reasoning steps and uses them to fine-tune Qwen2.5-VL.
What it is
DCVLR, short for Data Curation for Visual-Language Reasoning, is about the training data rather than the model. A vision-language model can often produce the right answer about an image without working through the image at all. Training examples that spell out the intermediate steps give it something better to imitate.
So I built a pipeline that writes its own training set: synthetic question-answer pairs about images, each carrying the reasoning steps that lead from the image to the answer.
What I built
The pipeline runs in the stages shown in the diagram:
- Start from a pool of source images.
- Synthesize a question about each image.
- Generate the intermediate reasoning steps.
- Generate the final answer.
- Filter the generated samples.
- Collect what passes into a dataset.
- Fine-tune a model on that dataset.
Running it end to end produced DCVLR_10K, a dataset of 10,000 samples, and I fine-tuned Qwen2.5-VL on it.
What a sample looks like
image a photo of a desk with three pencils and two pens
question How many writing tools are on the desk?
reasoning 1. Count the pencils: 3.
2. Count the pens: 2.
3. Add them: 3 + 2 = 5.
answer 5
Each real sample has the same parts: an image, a question about it, the steps in between, and the answer.
Result
DCVLR_10K, 10,000 synthetic samples with reasoning steps, is public on Hugging Face, and the pipeline code is on GitHub. Qwen2.5-VL was fine-tuned on the dataset. Both links are below.