Live data from Hacker News

LLMs, Theory of Mind, and Cheryl's Birthday

github.com

101–110 of 150 posts

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#101
post #76

Earlier quoted context omitted.

How can one / should one combine the concepts of a dinosaur and monetary policy of the Ottoman Empire? What differentiates verbal reasoning from logic? I don’t know that either of those can be solved well with formal languages or logic.

Yeah but the Cheryl's birthday problem doesn't have any ambiguity like that. It's all in very simple language, the only complexity is keeping track of states of mind, which is easy to abstract away from the language

That is exactly the point I was making in my comment above. This type of unambiguous problem is best solved using formal languages - something more like quantitative reasoning. But stuff like prolog or classical automated reasoning approaches are quite brittle. They break down quickly when you start to introduce ambiguity and noise. Statistical approaches like hidden markov models that people used in these instances were the precursor to the LLMs we have today.

But I was going down a rabbit hole there. My main point is that trying to use LLMs to solve logic puzzles - that can easily be solved in prolog - is a waste of time and a failure of the imagination. The applications that should be explored and would be most fruitful are those where there is ambiguity and contradiction.

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#102
post #89

Earlier quoted context omitted.

> if you don't spot the change you fail But that's exactly how real world works too.

Most people with theory of mind can’t trivially solve this problem though. So the test doesn’t disprove ToM in general, just that it memorizes some results.

People are capable of theory of mind. That does not mean they're using it. Same is true for reasoning.

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#103
post #92

I tried to replicate this and Claude 3.5 Sonnet got it correct on the first try. It generated a second set of dates which contained no solution so I asked it to write another python program that generates valid date sets. Here's the code it generated: https://gist.github.com/tel/8e126563d2d5fb13e7d53cf3adad862e To my test, it has absolutely no trouble with this problem and can correctly translate the "theory of mind"…

[deleted]

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#104
post #70

Gp1-o1 preview solves this puzzle correctly in 13 seconds and has a thorough logical deduction in the comments and explanation. I think it’s a bit unfair on llm to ask it to retrieve the puzzle definition from its training data. I posted the info on the puzzle from his notebook. https://chatgpt.com/share/670103ae-1c18-8011-8068-dd21793727...

The question is to get it to write generic code

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#105
post #92

I tried to replicate this and Claude 3.5 Sonnet got it correct on the first try. It generated a second set of dates which contained no solution so I asked it to write another python program that generates valid date sets. Here's the code it generated: https://gist.github.com/tel/8e126563d2d5fb13e7d53cf3adad862e To my test, it has absolutely no trouble with this problem and can correctly translate the "theory of mind"…

>> I tried to replicate this and Claude 3.5 Sonnet got it correct on the first try. It generated a second set of dates which contained no solution so I asked it to write another python program that generates valid date sets.

That's good but no cigar and it certainly didn't get it "correct on the first try". First it generated a partially correct solution. Then you had to prompt it again to generate a new program. You were only able to do that because you know what the right answer looks like in the first place. The second program is missing a second set of dates so it's not clear if it really gets it right the second time or just reproducing a different program from its training set without understanding the problem and what's wrong with the first program and just because you asked it to do so instead.

>> I feel confident he found that his tests failed, but to disprove his thesis (at least as is internally consistent with his experiment) we just need to find a single example of an LLM writing Python code that realizes the answer. I found that on the first try.

That's not how testing LLM code generation is done in practice, exactly because of the variance that can be expected in generated results. To properly test an LLM (which I would agree Norvig's experiment falls a little short off) one has to run multiple experiments and evaluate all the results in aggregate in some form. The usual way to do it is to draw k samples from the LLM's distribution and check whether the correct answer is generated at least n times (k@n metric). That's an awful metric because it's basically allowing arbitrary "guesses" until the LLM code generator gets it right. A simpler test is to generate k programs, check whether each program is right or wrong, and assign 1 for each correct answer and 0 for each incorrect answer, then average over all answers. It's an open question whether to count a partial answer as a 0, or 0.5.

So if we took the total failure in Norvig's experiment and the only partial success in yours, and allowing for the most charitable aggregation of results, we have something like 0.25 accuracy, which is not that impressive. Not least because it's evaluated on just two test samples.

Also, please don't underestimate the knowledge of experts like Peter Norvig.

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#106

Earlier quoted context omitted.

Is this really verbal reasoning? It's just a logic problem.

How can one / should one combine the concepts of a dinosaur and monetary policy of the Ottoman Empire? What differentiates verbal reasoning from logic? I don’t know that either of those can be solved well with formal languages or logic.

Follow up in this one… I asked an LLM to give me the funniest way to combine the concepts of a dinosaur and monetary policy of the Ottoman Empire. This was the answer.

Imagine a “Dinoflationosaurus”: a giant dinosaur who has the job of overseeing the monetary policy of the Ottoman Empire. However, this dinosaur is hopelessly behind the times, using outdated gold coins that are buried in random locations, like a prehistoric central bank.

Instead of regulating currency or adjusting interest rates, the Dinoflationosaurus spends its days stomping around, either hoarding or releasing massive piles of treasure based on whether it sees its shadow, causing huge economic fluctuations. Merchants and citizens scramble to predict where the dinosaur will dig next, turning the entire economy into a game of dinosaur-sized hide-and-seek with inflation spikes tied to the beast’s mood swings.

The Ottoman economists, dressed in traditional robes, nervously try to explain to the sultan that no one knows when the giant lizard will “stimulate the economy” by smashing a treasury vault open.

Try to code something like that up in prolog!

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#107
post #92

I tried to replicate this and Claude 3.5 Sonnet got it correct on the first try. It generated a second set of dates which contained no solution so I asked it to write another python program that generates valid date sets. Here's the code it generated: https://gist.github.com/tel/8e126563d2d5fb13e7d53cf3adad862e To my test, it has absolutely no trouble with this problem and can correctly translate the "theory of mind"…

He also did not test o1-preview which I feel would do well on this class of problem.

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#108
post #92

I tried to replicate this and Claude 3.5 Sonnet got it correct on the first try. It generated a second set of dates which contained no solution so I asked it to write another python program that generates valid date sets. Here's the code it generated: https://gist.github.com/tel/8e126563d2d5fb13e7d53cf3adad862e To my test, it has absolutely no trouble with this problem and can correctly translate the "theory of mind"…

They could have just put the correct result into claude in the time since he wrote this (Sept 25th).

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#109
post #99

Earlier quoted context omitted.

> if you don't spot the change you fail But that's exactly how real world works too.

No it doesn't. You'd get the answer to a riddle wrong or miss something and nobody would start assuming that means you lack a fundamental understanding of how the world works. There's entire fields that look into how and why we make various mistakes and riddles and puzzles designed specifically to trip people up. If you want to test if these models can solve riddles, or where they make mistakes go right ahead that's…

>> You'd get the answer to a riddle wrong or miss something and nobody would start assuming that means you lack a fundamental understanding of how the world works. There's entire fields that look into how and why we make various mistakes and riddles and puzzles designed specifically to trip people up.

That's because with humans we assume a certain level of competency and intellectual ability. We cannot make the same assumption when testing AI systems like LLMs because their level of competency and intellectual ability is exactly the question we are trying to answer in the first place.

Note that getting an answer a little wrong, because the question looks like a question you already know the answer to, can be catastrophic in real world conditions. Tipping a frying pan over a plate on a table to serve an omelette when you've learned to do the same thing to serve a cooked shrimp works just fine and shows everyone how smart you are and how well you generalise to novel situations, right up to the point where the contents of the frying pan are on fire and you still tip them over a plate, on a table. Made of flammable wood. Oops.

Also note: a human may be confused by the Tsathoggua-Cthuga-Cxaxukluth river-crossing riddle but they'd never be confused about the danger of a frying pan on fire.

Re: LLMs, Theory of Mind, and Cheryl's Birthday

#110

The majority of humans in flesh can't solve the problem - so we need alternate measures for judging theory of mind capabilities in LLMs

Well the majority of trained neural network models fail to solve most problems they're tested on, also. When you pick up a neural net paper (or really any machine learning paper) and look at the results of experiments the authors will invariably list the results of their best-performing model, chosen by careful cross-validation over multiple random seeds.

The point of this testing is to estimate the true learning ability of a system by looking at what it can do in the best case scenario. Nobody reports the worst-case scenario, otherwise deep neural nets would look a lot less impressive than they do.

Post reply on HN