Live data from Hacker News

He asked AI to count carbs 27000 times. It couldn't give the same answer twice

diabettech.com

271–280 of 329 posts

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#271

Earlier quoted context omitted.

But I don't see them using those commercial services in this study - instead, they're using frontier model companies? Is Gemini advertising that you get a realistic calorie count from a picture? Maybe so - in which case i'd take it back!

The commercial services likely also have frontier model dependencies... The opening to the actual paper is quite explicit that (i) other studies have already tested commercial apps with with unimpressive results and (ii) a popular open source app for carb counting directly relies on API calls from these frontier models, and this research batch tested the images used the exact same models and prompts as the popular op…

A carb counting app might use API calls to these frontier models and then do some kind of analysis. It could see if different models agree or not, or multiple calls, and with how much variance.

So it would be more accurate to test the apps rather than the APIs, unless the goal is to warn people that just open chatgpt and ask there.

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#272
post #169

Earlier quoted context omitted.

From the text of the article I believe the author is implying there are apps doing exactly this, and so this is why it was studied that way. Had the author written the article themselves rather than an LLM their motivation probably would have been clearer.

The author uses the prompts and method from an open-source app that connects to insulin pump, a medical device. I think AI food identification is an experimental feature in the app. > The prompt was adapted from the one used in the iAPS open-source automated insulin delivery system — it’s a real production prompt, not a toy example. https://github.com/Artificial-Pancreas/iAPS I think these are the prompts in the app:…

True, but I'm working on a product that's "adjacent to" this sort of thing, and we also have a "food recognition" feature that's marked as experimental. Our users are using it, and now I plan to push fairly hard on at least measuring the accuracy and hopefully exposing those results to our users regardless of how well it performs.

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#273

Earlier quoted context omitted.

The obvious meme to invoke here is: - AI will solve all of our problems - No not like that! Are the trillion dollars sloshing around the AI economy well-invested if the refrain is always “you’re holding it wrong”? So we’re trying to define, through trial and error, what problems “AI” will actually solve, and this paper is one of the many cobblestones on that road.

i mean it's more like "AI can solve this one problem, but it needs X, Y, Z, because it's not a omnipotent god entity" "I tried it without any of those things and it didn't work - this is worthless tech!" I don't know if more accurate calorie counting using AI exists - but it's like being upset that the screwdriver isn't gluing wood. AI is far more than frontier LLMs.

In this case, what is the 'X, Y, Z' that the apps are providing that the model is not?

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#275
post #258

Earlier quoted context omitted.

But why would the same llm give you wildly different answers EACH TIME you ask?

There is a parameter in LLMs called temperature that controls creativity/randomness. If you set it to 0 it makes the model deterministic. I think some LLMs expose this as a tunable parameter.

The study used a temperature of 0.01.

> "Thirteen food photographs were each submitted 495–561 times to four LLM vision APIs (GPT-5.4, Claude Sonnet 4.6, Gemini 2.5 Pro, Gemini 3.1 Pro Preview) using an identical structured prompt adapted from the iAPS automated insulin delivery system (26,904 total queries, temperature 0.01)"

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#276
post #6

It’s just an impossible problem. Photons don’t provide sufficient information to determine calories (at least not in any way they could practically be captured). Inside that sandwich could be drenched with olive oil or it could be hollow cheese with lettuce. It’s impossible to tell.

It is and it isn't. If you ask a human how many calories (or carbs) are in that sandwich, they can give you a qualified guess based on how a sandwich like that is typically constructed. They may not know the calories for a slice of bread or a slice of cheese by heart, but if you give them a food database, they can look it up. They absolutely won't be 100% correct (bread sizes e.g. are going to be an estimate), but un…

And furthermore, once the person has "determined" how many calories the sandwich contains, they are likely to give you the same answer next time you ask instead of randomly changing their minds.

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#277
post #36

Earlier quoted context omitted.

Then it should refuse to answer 100% of time.

I don't think refusal is the right approach. I would much prefer that it respond with something like: > There is not enough information to make an accurate estimate, but if you'd like, I can take a stab at it. If so, how much effort to put into it? > Yes, go ahead and spend up to 5mins and $1 to analyze it. > Done, I've had 100 subagents analyze the image and have arrived at a 95% confidence interval of the portion c…

I know this is just an example but my eyes kind of bugged out thinking about paying $1 every time I want to estimate the calories in my sandwich.

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#278

Earlier quoted context omitted.

i mean it's more like "AI can solve this one problem, but it needs X, Y, Z, because it's not a omnipotent god entity" "I tried it without any of those things and it didn't work - this is worthless tech!" I don't know if more accurate calorie counting using AI exists - but it's like being upset that the screwdriver isn't gluing wood. AI is far more than frontier LLMs.

> "AI can solve this one problem, but it needs X, Y, Z, because it's not a omnipotent god entity" 0 advertisements from openai or anthropic say this. They all sell you an omnipotent god entity.

Skill issue in thinking.

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#279

Earlier quoted context omitted.

> There's an incredibly serious lack of education with how LLMs & carb-counting works Oh! Do the vendors offer trainings to make sure the users understand how LLMs work? If not, surely, the LLM itself is trained to know its limitations and politely decline in situations like that?... The #1 use case for this tech is "here's a problem I don't feel like solving, let's have a computer do magic ". It's how it's advertise…

yes - the vast majority of labs offer a whole host of training material for users to understand how LLMs work. There's entire course websites created by each of the major vendors specifically to understand how LLMs work. Here's a couple of examples: https://academy.openai.com/public/content https://www.commonsense.org/education/articles/practical-tip... Quote >Getting the most out of generative AI depends on what you…

I expect crickets to your response.

Re: He asked AI to count carbs 27000 times. It couldn't give the same answer twice

#280

Earlier quoted context omitted.

Because that's how they work? They aren't knowledge machines, they are random generators.

They're next word predictors. They explicitly add in randomness at various stages of the transformer itself, otherwise it'd be too obvious it's not actually intelligent and just a next word predictor

No that's not why.
Post reply on HN