Energy estimates of open-weight large language models across stated food weights: a dose-response evaluation

Donato Riccio, Fabrizio Maturo, Iulia BrezeanuarXiv 2026

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.

Table 1: Models. Parameters are total (active per token for mixture-of-experts models). Sampling gives temperature T, nucleus probability p and top-k (k = 0: off). Revisions are in Supplementary File 1.

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.
Table 2: Scaling and density knowledge by model on 168 foods. β: elasticity of the energy estimate with respect to the stated weight (1: proportional), with 95% CI from the food bootstrap. Ratio: geometric mean over foods of estimate / reference energy at a stated weight of 0.25q, q and 4q. Greedy: elasticity of the greedy responses. Density: the model’s answer to the density question against the FNDDS value, as the median ratio and the median absolute percentage error (MdAPE) over foods. Valid: share of the 9,408 designed responses that parsed. Density statistics of Gemma-4-26B-A4B use 166 foods, which gave a valid density answer.

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

Abstract

We tested whether energy estimates of open-weight large language models (LLMs) scale proportionally with an exactly stated food weight, and whether computing energy density times weight removes the error. Under a prespecified protocol, seven open-weight LLMs estimated the energy of 168 randomly drawn foods from the USDA Food and Nutrient Database for Dietary Studies at nine stated weights, from 0.25 to 4 times the default amount. The primary outcome was the elasticity of the estimate with respect to weight (1: proportional scaling). A two-step estimate multiplied each model's own stated energy density by the weight in code. All seven models compressed their estimates, with elasticities from 0.548 to 0.979 (every 95% CI below 1); four compressed severely (0.548 to 0.709). These four overestimated a quarter of the default amount by 47% to 130% and underestimated four times it by 20% to 34%. Supplying the density restored near-proportional scaling in three of the four, and the two-step estimate cut the typical error factor at these extremes from 1.47-2.43 to 1.20-1.38. Compression persisted at full precision and grew in five of seven models under a plain question. The models hold the energy densities needed for proportional scaling and answer near a typical serving, reproducing the flat-slope syndrome of dietary recall. Accuracy at usual portions does not reveal it. Food-logging tools should compute the energy of weighed entries as density times weight, and evaluations should test fixed foods across stated weights.
BibTeX
@misc{riccio2026energy,
  author = {Donato Riccio and Fabrizio Maturo and Iulia Brezeanu},
  title = {{Energy estimates of open-weight large language models across stated food weights: a dose-response evaluation}},
  year = {2026},
  eprint = {2611.25976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25976},
}
Figure