TL;DR
Large Language Models (LLMs) often fail at basic nutritional math, exhibiting a "flat-slope syndrome" where they overestimate small portions and underestimate large ones. This study reveals that while models internally "know" the correct energy densities for foods, they struggle to apply them proportionally to specific weights, suggesting that food-logging tools should perform calculations externally rather than relying on direct LLM estimates.
What Problem Does This Paper Address?
As LLMs are increasingly integrated into health and nutrition apps, users expect them to accurately translate food descriptions into caloric data. For a user who weighs their food, an estimate is only useful if it scales linearly: 200g of chicken should have exactly twice the calories of 100g.
Previous research on image-based nutrition estimation noted that models tend to cluster estimates around "typical" serving sizes. However, it was unclear if this was a vision failure (misjudging the weight from pixels) or a reasoning failure (incorrectly calculating energy from a known weight). This paper isolates the problem by providing exact weights in text, testing whether LLMs can maintain "proportional scaling" across a wide range of portion sizes.
Methods
The authors conducted a "dose-response" evaluation using seven open-weight LLMs (including Llama 3.1/3.3, Phi-4, and Mistral Small). They selected 168 foods from the USDA FNDDS database and prompted the models to estimate energy at nine different weights, ranging from 0.25x to 4x the database's "default" serving size.
The primary metric was elasticity ($\beta$): the proportional change in the energy estimate relative to the change in stated weight. A perfect model would have an elasticity of 1.0. The researchers also tested a "two-step" approach: asking the model for the energy density (kcal/100g) first, then performing the multiplication externally.
Datasets
- USDA Food and Nutrient Database for Dietary Studies (FNDDS) 2021–2023: Used to source 168 foods across seven categories (e.g., mixed dishes, grains, vegetables) along with their reference energy densities and default portion sizes.
Key Insights and Ideas
- The "Typical Serving" Prior: Models act as if they have a strong internal "prior" for what a food portion should be. When asked about an unusually small or large amount, the model's answer is "pulled" toward this typical value.
- Knowledge vs. Application: Surprisingly, the models are actually quite good at identifying energy density when asked directly (median errors of 9–21%). The failure isn't a lack of knowledge; it's a failure to apply that knowledge to the arithmetic of scaling.
- Flat-Slope Syndrome: This behavior perfectly mirrors a known human bias in dietary recall, where people habitually over-report small intakes and under-report large ones.
- Arithmetic is the Bottleneck: Supplying the energy density directly in the prompt fixed the scaling issue for most models, proving that the "compression" happens during the final energy calculation step.
Key Results
- Universal Compression: All seven models failed to scale proportionally ($\beta < 1$). Four models showed "severe" compression with elasticities as low as 0.548 (Llama-3.1-8B).
- Massive Errors at Extremes: For the severe compressors, a quarter-portion (0.25x) was overestimated by 47% to 130%, while a quadruple-portion (4x) was underestimated by 20% to 34%.
- The Two-Step Fix: Using the model's own stated density and multiplying it by the weight in code (the "two-step estimate") significantly improved accuracy, reducing the typical error factor at extreme weights from ~2.4x down to ~1.3x.
- Reasoning Helps: The reasoning-capable model (gpt-oss-20b) and the largest model (Llama-3.3-70B) performed better than smaller, non-reasoning counterparts, but still didn't achieve perfect scaling.
Limitations and Future Work
The study focused exclusively on open-weight models to ensure reproducibility; hosted commercial models (like GPT-4o or Claude 3.5) were not tested. Additionally, the prompts were limited to single-food entries in English.
The authors suggest that future evaluations of nutrition AI must move beyond testing "typical" portions and instead use dose-response probes to uncover these systematic scaling errors. For developers, the takeaway is clear: don't ask an LLM "How many calories are in X grams of Y?"; ask for the density of Y and do the math yourself.
Summary updated