id
stringlengths 1
2
| image
imagewidth (px) 1.28k
3.02k
| descriptive_q
stringlengths 16
60
| descriptive_a
stringlengths 1
8
| reasoning_q
stringlengths 32
134
| reasoning_a
stringlengths 1
13
|
---|---|---|---|---|---|
0 | What's the amount of iron per serving? | 1.1mg | How many servings of this product do I need to fulfill the daily value of Cholesterol? | 2 |
|
1 | What's the value of added sugar per serving? | 22g | What's the percentage of added sugar over total sugar? | 84.60% |
|
2 | What's the weight of sugar per serving? | 1g | Which nutrient has higher than 20% DV? | Sodium |
|
3 | What's the total fat per serving? | 90mg | How many capsules per container? | 56 |
|
4 | Does this food contains oyster? | Yes | Which nutrient of this food should I care the most for my health? | Sodium |
|
5 | Is this food a good source of dietary fiber? | No | What's the difference between Cholesterol and Sodium in amount? | 75mg |
|
6 | What's the amount of Monounsaturated Fat per serving? | 4g | How many bags of this food do I need to serve 28 persons? | 4 |
|
7 | How many servings per container? | 13 | What's the total weight of this food in grams in each container? | 442g |
|
8 | Does this product contain Vitamin A? | No | Which nutrient is none-zero for this product? | Sodium |
|
9 | What's the net weight in oz? | 9.8oz | Given the information on the label, can you calculate the suggested daily fat in grams for a person? | 77.8g |
|
10 | What's the amount of Cholesterol per serving? | 10mg | What are the total calories per container? | 875 |
|
11 | What's the weight one piece in grams? | 85g | Exclude fat, carbs, and protein, what is the sum of the other nutrient in grams for one piece? | 38.5g |
|
12 | What's the DV percentage of Potas? | 2% | What's the sum of fiber and added sugar? | 19g |
|
13 | What's the serving size? | 36g | How many calories will I get if I have 3 servings? | 450 |
|
14 | What's the weight of 1 bar in grams? | 24g | If I take 10 bars, will I exceed my daily value of sugar? | Yes |
|
15 | What's the only nutrient for this food? | Carb | If I take ten servings of this food, will I exceed my DV of carbs? | No |
|
16 | What's the total fat per serving? | 0 | If I take two servings daily, how many days can one container last? | 34 |
|
17 | Does this drink contains any trans fat? | No | I have diabetes, and my doctor suggests my daily value of sugar is half of a normal person's. Can I drink two cans of this in one day? | No |
|
18 | Where is this product made? | Korea | Which nutrient has higher than 10% DV? | Sodium |
|
19 | What is the DV (%) of protein for each package? | 17% | What's the total of calcium, iron and potassium in mg for one package? | 260.7mg |
|
20 | Is this gluten free? | Yes | If I take three bottles of this, do I need other sources of Vitamin C? | No |
|
21 | What's the amount of potassium per cup in mg? | 240mg | I have taken 1000mg sodium today, can I eat this without exceeding suggested daily value? | No |
|
22 | What's the calorie per kg? | 823 kcal | How many cans can I feed everday for an adult cat of 14 lbs? | 6 |
|
23 | How many servings per container? | 35 | How many oz of cold milk to I need for three servings? | 24 oz |
|
24 | Does the sodium exceed the advised daily value? | Yes | How many grams can I take without exceeding the advised DV of sodium? | 44.4g |
|
25 | What's the amount of Vitamin D? | 0% | I have a family of four. If I serve each person twice a day. How many containers should I prepare for one week? | 5 |
|
26 | Which state is this product from? | CA | How many nutrients exceed the 30% Daily Value? | 2 |
|
27 | What's the total carb in grams? | 73g | Will it be healthy to me if I take two bags a day? | No |
|
28 | Does this contain any fat? | No | Are all sugar in this product from added sugar? | Yes |
|
29 | How much fat is in one bag? | 28g | How many pieces are there in one container? | 84 |
|
30 | Is this gluten free? | Yes | How many cups do I need to drink daily to get all the calcium I need? | 5 |
|
31 | Is this drink sugar-free? | Yes | What's the only non-zero nutrient? | Sodium |
|
32 | What's the DV percentage of Zinc per serving (without milk)? | 20% | How many calories will 1 cup of milk add? | 80 |
|
33 | How many cups per serving? | 3 | How many calories can I get if I take the whole bag? | 772 |
|
34 | How many servings per container? | 38 | Is it true that sodium is the only nutrient that is non-zero? | Yes |
|
35 | Does this snack contain peanuts? | Yes | Which nutrient has the highest daily value in this snack? | Saturated Fat |
|
36 | What's the total carb per serving in g? | 2g | I opened it three days ago and left it on my kitchen counter. Can I eat it? | No |
|
37 | What's the sodium per serving in mg? | 310mg | I am allergy to nuts. Can I eat this? | No |
|
38 | What's the net weight in g? | 90g | Exclude carbs, what's the weight of remaining elements in one serving? | 1g |
|
39 | Does this product contain cane sugar? | Yes | What's the sum of fat and sugar in grams in one cup? | 42g |
|
40 | How much protein in one serving? | 4g | Today is 2024/07/21. Can I eat this food? | No |
|
41 | Is this organic? | Yes | Which nutrient has the highest amount in this food? | Carbs |
|
42 | Dose this food contains calcium? | Yes | What's the sum of calcium and potassium per serving? | 250 mg |
|
43 | What's the added sugar per serving? | 3g | If I take four spoons of this, will it exceed my daily value of sodium? | Yes |
|
44 | Is the protein less than 1g per serving? | Yes | Are all sugar in this product from added sugar? | Yes |
|
45 | Can I feed this to the infant? | No | Which of all the vitamins has the highest amount in this product? | Vitamin A |
|
46 | What's the percentage of Vitamin A? | 5% | Which element has the highest percentage? | Carbohydrate |
|
47 | Is there any added sugar? | No | What's the amount of other fat except saturated fat per serving? | 1.5g |
|
48 | How much fat does one spoon of this oil contain in grams? | 14g | What's the only non-zero nutrient? | Fat |
|
49 | What's the amount of Cholesterol per serving? | 0mg | I bought one bag of this. If I must eat one cup a day, how many days can I eat this? | 9 days |
Introduction
NutritionQA is a novel benchmark for understanding photos of nutrition labels, with practical applications like aiding users with visual impairments. NutritionQA contains 50 photos of nutrition labels, each photo is paired with a descriptive question and a reasoning question (requires multi-hop reasoning). The figure below shows that open VLMs perform poorly on NutritionQA, even after training on millions of images. Our code-guided synthetic data generation system can create targeted data (synthetic nutrition labels) to fine-tune VLMs, which achieves competitive performance with significantly less data.

Evaluation
To compute the metrics, please use the following script:
def score(question: str, target: str, prediction: str) -> bool:
prompt = f"""You are tasked with evaluating a model's prediction for a question-answering task. Your goal is to determine if the model's prediction is correct based on its meaning, not necessarily exact wording.
Here is the question that was asked:
<q>
{question}
</q>
The ground-truth answer to this question is:
<gt>
{target}
</gt>
The model's prediction for this question is:
<pred>
{prediction}
</pred>
To evaluate the model's prediction, follow these steps:
1. Carefully read the question, correct answer, and model's prediction.
2. Compare the meaning of the model's prediction to the correct answer, not just the exact wording.
3. Consider if the model's prediction accurately answers the question, even if it uses different phrasing or includes additional information.
4. Determine if any discrepancies between the prediction and correct answer are significant enough to consider the prediction incorrect.
5. For numerical answers, consider if the prediction is within a reasonable range (5%) of the correct answer.
Please answer with yes or no to indicate if the model's prediction is correct based on the question and correct answer provided.
"""
response = get_chat_response(prompt=prompt,
api_key=os.getenv("OPENAI_API_KEY"),
model="gpt-4o-mini-2024-07-18")
response = response.lower().strip()
if "yes" in response:
return True
elif "no" in response:
return False
else:
return False
Citation
Please cite our papers if you use this model in your work:
@article{yang2025scaling,
title={Scaling Text-Rich Image Understanding via Code-Guided Synthetic Multimodal Data Generation},
author={Yue Yang and Ajay Patel and Matt Deitke and Tanmay Gupta and Luca Weihs and Andrew Head and Mark Yatskar and Chris Callison-Burch and Ranjay Krishna and Aniruddha Kembhavi and Christopher Clark},
journal={arXiv preprint arXiv:2502.14846},
year={2025}
}
@article{deitke2024molmo,
title={Molmo and pixmo: Open weights and open data for state-of-the-art multimodal models},
author={Deitke, Matt and Clark, Christopher and Lee, Sangho and Tripathi, Rohun and Yang, Yue and Park, Jae Sung and Salehi, Mohammadreza and Muennighoff, Niklas and Lo, Kyle and Soldaini, Luca and others},
journal={arXiv preprint arXiv:2409.17146},
year={2024}
}
- Downloads last month
- 141