Hacker News new | ask | show | jobs
by mjewkes 796 days ago
My current favorite “LLM breaker” below. GPT4, Claude, and this all fail.

—-

Apples are better than bananas. Cherries are worse than apples. Are cherries better than bananas?

2 comments

FWIW, Claude Opus (the paid model) gets the correct answer, and explains it well:

Based on the information provided, we cannot definitively determine whether cherries are better than bananas. The statements given only provide relative comparisons between apples and bananas, and apples and cherries, but do not directly compare cherries and bananas.

Here's what we know: 1. Apples are better than bananas. 2. Cherries are worse than apples.

However, these statements do not necessarily imply a transitive relation. In other words, just because A is better than B, and C is worse than A, it doesn't always mean that C is worse than B.

For example, if we assign numerical values to represent the quality of each fruit (higher numbers indicate better quality), we could have a scenario like this:

- Apples: 8 - Bananas: 6 - Cherries: 7

In this case, apples (8) are better than bananas (6), and cherries (7) are worse than apples (8), but cherries (7) are still better than bananas (6).

Therefore, more information would be needed to determine the relative quality of cherries compared to bananas.

To be fair, a lot of humans fail that. Including people that should know better.
For sure. It's not a fair prompt at all. I'm super bullish on LLMs and am using GPT-4 in production right now. This stuff is magic.

It's actually hard to find short, simple, "plain english" failure cases like the above.

The "chain of reasoning" that the modern models deploy before the fail is funny too. This is GPT-4:

---

To determine the relationship between cherries and bananas based on your statements, let's break it down:

  1. Apples are better than bananas.
  2. Cherries are worse than apples.
From statement 1, we know apples rank higher than bananas. Statement 2 tells us cherries rank lower than apples. By this logic, since cherries are lower than apples, which are higher than bananas, it follows that cherries are also lower than bananas.

Therefore, based on these comparisons, cherries are not better than bananas.

Notably, if you ask it to transform the statements to formal logic, you get a correct response! This stuff is truly magic.

https://chat.openai.com/share/81e45fef-a72b-4258-98d6-5c8190...

This makes sense to me. If you think about the training data, texts working through problems using formal predicate logic are likely to be correct, and much more likely to be precise about what information is (or isn’t) contained in the propositions. So if you formulate the problem in this language, you’re prompting the model to sample from patterns that are more likely to give you the result you want. Whereas if you use regular English, it could be sampling from cooking blogs or who knows what.