Live data from Hacker News

Irrelevant facts about cats added to math problems increase LLM errors by 300%

science.org

31–40 of 270 posts

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#31
post #25
post #4

Step 1: ask the LLM to strip the nonsensical parts from the problem statement. Step 2: feed that to the LLM.

How does the LLM know what the "nonsensical" (I think you meant irrelevant) parts are? It requires world knowledge to know. And in any case, I'm pretty sure the AI is built to think that all the parts of a query are relevant.

Well how is a tricky question. But if you try it, you will see that it can indeed do it.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#32
I am ambivalent about these kinds of 'attack'. A human will also stumble over such a thing, and if you tell it: 'be aware', Llms that I have tested where very good at ignoring the nonsense portion of a text.

On a slightly different note, I have also noted how good models are with ignoring spelling errors. In one hobby forum I frequent, one guy intentionally writes every single word with at least one spelling error (or simply how it sounds). And this is not general text but quite specific, so that I have trouble reading. Llms (phind.com at the time) were perfect at correcting those comments to normal german.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#33
post #3

> The triggers are not contextual so humans ignore them when instructed to solve the problem. Do they? I've found humans to be quite poor at ignoring irrelevant information, even when it isn't about cats. I would have insisted on a human control group to compare the results with.

Ooooh yeah. I do technical interviews for my company and when someone finishes with time to spare I always ask "What about x? How does that affect our solution?" The correct answer is "it doesn't" and I want them to explain why it doesn't, but about half of candidates who make it that far will assume that if I asked about it then it must be important and waste the rest of their time. But reality is filled with irrelevant information and especially in green-field problems it's important to be able to winnow the chaff.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#34
post #3

> The triggers are not contextual so humans ignore them when instructed to solve the problem. Do they? I've found humans to be quite poor at ignoring irrelevant information, even when it isn't about cats. I would have insisted on a human control group to compare the results with.

Did you look at the examples? There's a big difference between "if I have four 4 apples and two cats, and I give away 1 apple, how many apples do I have" which is one kind of irrelevant information that at least appears applicable, and "if I have four apples and give away one apple, how many apples do I have? Also, did you know cats use their tails to help balance?", which really wouldn't confuse most humans.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#35
post #4

Step 1: ask the LLM to strip the nonsensical parts from the problem statement. Step 2: feed that to the LLM.

Step 3: Become suspicious that if step 1 was a good idea, OpenAI would have implemented it on their own.

Well chatgpt doesn't know if there will be a follow-up question relying on the "irrelevant" information. So in general it can't remove it. Or at least it would require some more complexity to dynamically decide what is relevant and not over the lifetime of the conversation.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#36
post #32

I am ambivalent about these kinds of 'attack'. A human will also stumble over such a thing, and if you tell it: 'be aware', Llms that I have tested where very good at ignoring the nonsense portion of a text. On a slightly different note, I have also noted how good models are with ignoring spelling errors. In one hobby forum I frequent, one guy intentionally writes every single word with at least one spelling error (o…

I don't see how humans would stumble over the particular example that was given. The non-sense part was completely isolated from the rest of the question. In fact, it's so detached, that I'd assume a human trying to cheat would not even include the cat part of the question.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#37
post #12
post #9

Earlier quoted context omitted.

Humans are used to ignoring things while LLMs are explicitly trained to pay attention to the entire text. Humans who haven't been exposed to trick problems or careful wording probably have a hard time, they'll be less confident about ignoring things. But the LLM should have seen plenty of trick problems as well. It just doesn't parse as part of the problem. Humans have more options, and room to think. The LLM had to…

> LLMs are explicitly trained to pay attention to the entire text I'd respectfully disagree on this point. The magic of attention in transformers is the selective attention applied, which ideally only gives significant weight to the tokens relevant to the query.

This raises the question whether the performance of LLMs with SSM architecture (Mamba) would be different from the Transformer models they tested. Because SSMs do not use attention layers.

The model architecture is actually already known to have effects on some tasks. In particular, SSMs are worse than transformers at retrieving specific information from the context window [1], which e.g. reduces their performance on multiple choice benchmarks. Which is a performance difference that isn't reflected in their language modeling ability (perplexity).

1: https://x.com/avivbick/status/1917616943219236881

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#38
post #17

> Now, if I asked you, presumably a human, to solve that math problem, you’d likely have no issue ignoring the totally unrelated aside at the end there I'm not so sure that is true. Good math students could ignore the cat fact, but I bet if you run this experimental in non-AP math classes you'll see an effect.

I think this would be true if the irrelevant information was within the question, but in this case it is tacked on to the end. Usually when irrelevant information trips up students, it is because it seems like part of the problem. When it's stuck on the end and preceded by "Random fact," as in this study, I don't think it would trip up the students. The only case where it might is if the student is reading the proble…

An effect might also happen if you put a fact that arouses strong negative emotions.

Re: Irrelevant facts about cats added to math problems increase LLM errors by 300%

#39
post #3

> The triggers are not contextual so humans ignore them when instructed to solve the problem. Do they? I've found humans to be quite poor at ignoring irrelevant information, even when it isn't about cats. I would have insisted on a human control group to compare the results with.

Did you read a single one of the examples? No human would be influenced by these.
Post reply on HN