Lab notebook · AI and food chemistry · B16
Does an AI model know how much free glutamate is in a food?
- Verdict
- Dead It failed the rule set in advance. That's a result, not a gap.
- How far it got
- Pilot: A second, stricter test of a scout that passed.
- Rule set first
- Dead if the primary gain in R² (baseline plus Haiku estimate, minus baseline) on the post-cutoff test set is below 0.05 or its Holm-adjusted CI includes 0; parked if the test set has fewer than 40 samples after 3 pilot runs.
- Written down
- Rule Nov 13, 2026, lab commit
8b4968a. Result Nov 13, 2026, commitca615a0. - Data
- Human Flavorome Project table (our own data); Europe PMC open-access papers, Aug to Nov 2026 (11 CC BY 4.0, 1 CC BY-NC 4.0, 2 CC BY-NC-ND 4.0; no values quoted); USDA FoodData Central SR Legacy (CC0)
- Runs
- 4 runs, about $6.24 of compute
What we asked
An earlier lab question found that small text models add nothing beyond food category, dry matter and the plain words in a name when predicting free glutamate. A large language model has read composition tables and papers, so it might know more. If you just ask it “how much free glutamate is in X?”, does its answer help?
The catch is memorization. A model that has read the tables can recall them. So the real test had to use measurements published after the model’s training data.
The rule we set first
The scout plan was committed in 8b4968a before the model answered anything. After the scout passed, the pilot plan was committed in ca615a0, before any pilot code ran. The test set was frozen (2d05fae) and the models’ blind answers committed (3a9476f) before the comparison.
The pilot rule: Dead if the gain in R² from adding the Haiku model’s estimate to the baseline, on the new measurements, is below 0.05 or its Holm-adjusted interval includes 0. Parked, not dead, if the new set couldn’t reach 40 samples.
The positive control: The same setup re-run on our Flavorome table, where the values are long published. We also shuffled the model’s answers within the test set.
What we did
- Asked Claude Haiku 5.5 blind, given only ingredient names, for free glutamate and protein in 353 Flavorome ingredients, and compared against a baseline of category, dry matter and name words.
- Built a test set from open-access papers first published August 1 to November 13, 2026: 83 samples from 14 papers, every value checked against its source table.
- Asked Haiku and the larger Claude Opus 5.5 blind about the test samples, using only the papers’ sample descriptions with no numbers.
- Ran the pre-written test with a paper-level bootstrap, Holm correction and a within-paper ranking check.
What we found
On the published Flavorome table, the models looked great. Haiku lifted held-out R² from 0.43 to 0.72, a gain of +0.279 [+0.082, +0.475]. Opus did better: Glutamate ρ +0.90 and a gain of +0.365 [+0.130, +0.598]. A second Haiku pass agreed with the first at ρ +0.958, so this wasn’t a lucky draw.
On the new measurements, most of that edge disappeared. The baseline alone gave R² +0.331. Haiku added +0.039 [−0.467, +0.613], Holm p 0.80. That’s below the 0.05 rule, so the question is dead. Opus added +0.236 [−0.132, +0.605], Holm p 0.33, not significant.
Neither model could rank samples within a paper, where the same food differs by diet, strain or storage (within-paper ρ: Haiku +0.14, Opus −0.09). The real answers did beat shuffled ones by a wide margin.
From what we can tell, this fits recall of published values plus rough food-level knowledge, not reasoning about specific samples.
What this doesn’t show
It doesn’t prove the models know nothing beyond recall. The test is underpowered: 14 papers, with intervals about 1.0 wide. Opus’s +0.24 could be real with more data. The test foods are mostly meat, dairy and drinks, with a narrow range.
Not checked: The plan’s protein control on the test set (few papers report protein), about 120 candidate papers never fetched, and whether the August 1 cutoff truly postdates the models’ training data.
Where a human lab could take this
- Measure samples no model has seen. The cleanest test is fresh measurements: An analytical lab running free amino acids (HPLC or an amino acid analyzer) on foods that vary by process, aging or ferment time within one food. That’s exactly the within-food ranking both models failed, and it removes the memorization question.
- Wait and re-test with more papers. We logged a follow-on (B19): A post-cutoff set of 30 or more papers, sized to detect a gain of about 0.2, with Opus as the primary model. That needs about six more months of publications, not new skills.
- Honest call: Don’t use these models’ glutamate guesses as data. They track the published tables they’ve read, and on new samples they add little that category and name don’t already give you.
Data and code
- Human Flavorome Project ingredient table, our own data (only aggregate statistics are reported here).
- Europe PMC open-access papers first published August 1 to November 13, 2026: 11 under CC BY 4.0, 1 under CC BY-NC 4.0, 2 under CC BY-NC-ND 4.0. No per-sample values are reproduced here.
- USDA FoodData Central SR Legacy, for moisture where a paper gave none (CC0).
Code lives in the lab repo under projects/B16-llm-glutamate/code/. The pilot test is pilot_test.py; the scout is scout.py.
Lab entries are exploratory research, not professional advice for a specific product, and not medical, legal or regulatory advice. Spot a mistake? Email me, and I'll post the correction here with a date.