NutriBench: A Dataset for Evaluating Large Language Models in Carbohydrate Estimation from Meal Descriptions

Andong Hua, Mehak Preet Dhaliwal, Ryan Burke, Yao Qin · OpenReview

Abstract

Accurate nutrition estimation helps people make informed dietary choices and is essential in the prevention of serious health complications. We present NutriBench, the first publicly available natural language meal description nutrition benchmark. NutriBench consists of 11,857 meal descriptions generated from real-world global dietary intake data. The data is human-verified and annotated with macro-nutrient labels, including carbohydrates, proteins, fats, and calories. We conduct an extensive evaluation of NutriBench on the task of carbohydrate estimation, testing twelve leading Large Language Models (LLMs), including GPT-4o, Llama3.1, Qwen2, Gemma2, and OpenBioLLM models, using standard, Chain-of-Thought and Retrieval-Augmented Generation strategies. Additionally, we present a study involving professional nutritionists, finding that LLMs can provide more accurate and faster estimates. Finally, we perform a real-world risk assessment by simulating the effect of carbohydrate predictions on the blood glucose levels of individuals with diabetes. Our work highlights the opportunities and challenges of using LLMs for nutrition estimation, demonstrating their potential to aid professionals and laypersons and improve health outcomes.

Introduction

Accurate nutrition tracking is a cornerstone of managing chronic diseases like obesity, heart disease, and diabetes. However, current tools are often "high-friction." Tabular databases, such as the USDA’s, require users to search for exact food names and portions, which is time-consuming and often inaccurate for complex meals. While image-based systems are promising, they face challenges regarding privacy and "hidden" ingredients like oils or sugars in sauces.

The most natural way for a human to log food is through descriptive language (e.g., "I had a slice of pepperoni pizza and a small chocolate milk"). Until now, there was no standardized way to measure how well Large Language Models (LLMs) understand these messy, natural language descriptions to provide accurate nutrient counts. NutriBench fills this gap by providing a rigorous framework to test AI's "nutritional literacy."

Methodology and Dataset

The researchers evaluated 12 leading LLMs (including GPT-4o, Llama 3.1, and OpenBioLLM) across four different prompting strategies designed to test different levels of reasoning and grounding:

  1. Base: A simple instruction to estimate carbohydrates.
  2. Chain-of-Thought (CoT): Encouraging the model to break the meal down into components and calculate them step-by-step.
  3. Retrieval-Augmented Generation (RAG): Providing the model with snippets from a verified nutrition database (USDA FDC) to ground its answers.
  4. RAG + CoT: Combining both external data and step-by-step reasoning.
Comparison of prompting strategies: LLM, CoT, RAG, and RAG+CoT for a meal description.

The NutriBench dataset comprises 11,857 meal descriptions sourced from real-world dietary intake data from 11 countries, including the US, Italy, India, and Nigeria. Every description was human-verified to ensure it matched the underlying nutritional labels. The dataset includes both "metric" descriptions (using grams) and "natural" descriptions (using terms like "a tablespoon" or "half a cup") to mimic real-world user behavior.

Key Results and Insights

The evaluation revealed that Chain-of-Thought (CoT) prompting was the single most effective way to boost accuracy. By forcing the model to "show its work"—listing each ingredient and its estimated carb count before summing them up—errors were significantly reduced, especially in complex meals.

Performance of various LLMs and strategies on carbohydrate estimation accuracy ([email protected]) vs. answer rate.

GPT-4o with CoT achieved the highest accuracy, hitting the "correct" range (within 7.5g of the truth) 66.82% of the time. In a head-to-head comparison with three professional nutritionists, LLMs were not just faster (completing in 2 minutes what took humans 43 minutes), but often more accurate on complex, multi-component meals. Humans tended to perform better only on simple, traditional meals without specific brand information.

Surprisingly, RAG did not always help. The researchers identified a "unit mismatch" bottleneck: the retrieval database was mostly in 100g metric servings, while user queries were in natural units (like "slices"). LLMs struggled to bridge this gap without specific alignment. Furthermore, models performed better on low-carbohydrate diets; meals from countries with high-carb staples (like Sri Lanka) showed higher error rates, suggesting inherent cultural biases based on training data.

Clinical Impact and Future Work

To validate real-world utility, the researchers ran 44,800 blood glucose simulations to see how AI-estimated insulin doses would affect a virtual patient with Type 1 diabetes. GPT-4o-based carbohydrate estimation led to a 69.88% "Time in Range" for blood glucose, outperforming the estimates provided by the professional nutritionists in the study.

While the results are impressive, several hurdles remain. LLMs can still "hallucinate" nutritional values for obscure or branded foods. Future work is needed to move beyond text-only inputs to multi-modal systems and to better align retrieval databases with natural language serving sizes. The authors emphasize that while LLMs show potential, they should currently be viewed as assistive tools for professionals rather than standalone medical advice.

Summary updated

BibTeX
@inproceedings{hua2025nutribench,
  author = {Andong Hua and Mehak Preet Dhaliwal and Ryan Burke and Yao Qin},
  title = {{NutriBench: A Dataset for Evaluating Large Language Models in Carbohydrate Estimation from Meal Descriptions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=6LtdZCyuZR},
}
Figure