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

Mehak Preet Dhaliwal, Andong Hua, Laya Pullela, Ryan Burke, Yao Qin

TL;DR

Researchers have introduced NutriBench, the first public benchmark for estimating nutrition—specifically carbohydrates, proteins, fats, and calories—directly from natural language meal descriptions. Their study reveals that top-tier Large Language Models (LLMs) like GPT-4o not only match the accuracy of professional nutritionists but do so significantly faster, potentially offering a life-changing tool for individuals managing conditions like Type 1 Diabetes.

Introduction

Accurate dietary tracking is a cornerstone of chronic disease management, yet it remains notoriously difficult. Current methods usually fall into two camps: cumbersome tabular database searches (which require exact matches for every ingredient) or image-based estimation (which struggles with obscured ingredients and privacy concerns).

Natural language—simply describing what you ate—is the most flexible and user-friendly interface. However, until now, there was no standardized way to evaluate how well AI can translate a sentence like "I had a slice of pepperoni pizza and a small chocolate milk" into precise macronutrient counts. The lack of a high-quality, human-verified dataset has stalled progress in using LLMs for automated nutritional coaching.

Methods

The authors evaluated 12 state-of-the-art LLMs (including the GPT-4, Llama 3.1, Qwen 2, and Gemma 2 families) using four distinct prompting strategies:

  1. Base: Simple zero-shot estimation.
  2. Chain-of-Thought (CoT): Forcing the model to "think" by parsing the meal into components and calculating values step-by-step.
  3. Retrieval-Augmented Generation (RAG): Providing the model with external context from a nutritional database (RETRI-DB).
  4. RAG + CoT: Combining external data with step-by-step reasoning.
Prompting strategies for nutrition estimation

Beyond standard benchmarks, the team conducted a human study with three professional nutritionists and a real-world risk assessment using a blood glucose simulator to see how LLM errors would actually affect a patient with Type 1 Diabetes.

The NutriBench Dataset

The core contribution is NutriBench, a dataset of 11,857 meal descriptions.

  • Source: Derived from real-world dietary data across 11 countries (via the USDA’s WWEIA and FAO/WHO GIFT).
  • Generation: The authors used GPT-4o-mini to turn raw intake logs into natural-sounding descriptions, which were then human-verified to ensure no "hallucinations" occurred during the translation.
  • Labels: Each entry is annotated with carbohydrates, proteins, fats, and total calories.

Key Insights

  • The "CoT" Superpower: Chain-of-Thought prompting is essential. By forcing models to break a meal down into individual items before summing the totals, errors were significantly reduced, especially for complex meals with many ingredients.
  • LLMs vs. Humans: In a head-to-head matchup, LLMs were comparable to (and sometimes better than) professional nutritionists at estimating carbs for complex, multi-component meals. Crucially, LLMs processed 72 queries in 2 minutes, while humans took an average of 43 minutes.
  • The Metric Bias: Interestingly, the GPT family performed better when meals were described in metric units (grams), likely because their training data included more technical nutritional tables. Conversely, most open-source models performed better with "natural" units (e.g., "a cup of rice").
  • Cultural Disparities: The models showed varying accuracy across different cuisines. Errors were lowest for Nigerian meals and highest for Sri Lankan meals, suggesting that LLMs still have "blind spots" regarding global culinary diversity.

Key Results

  • Top Performer: GPT-4o with CoT achieved the highest accuracy (66.82% within a 7.5g margin of error) and a near-perfect answer rate.
Model performance vs. Human Nutritionists
  • Fine-Tuning Wins: By fine-tuning a smaller model (Gemma2-27B) on nutritional data, the researchers boosted its accuracy from 45.6% to 61.7%, nearly reaching GPT-4o levels.
  • Clinical Impact: In simulations for Type 1 Diabetes, LLM-based estimates helped "virtual patients" maintain blood glucose within safe ranges (70-180 mg/dL) more effectively than estimates from some of the human nutritionists in the study.

Limitations and Future Work

While promising, the paper notes that RAG (Retrieval) didn't always help. This was often due to "alignment" issues—the database might list values for "100g of pizza," but the user described "one slice," and the model struggled to bridge that gap without better scaling factors.

Future work will likely focus on improving RAG performance by augmenting databases with more "natural" serving sizes and addressing the performance gap in non-Western cuisines to ensure these tools are equitable for global users.

Summary updated

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