News for hackers. Stuff that matters.
Re:Chatbot Software Begins to Face Fundamental Limitations by geoffhill on Sunday February 02, 2025 @12:01AM (#42905986)
Idk, `o3-mini-high` was able to pop this Prolog code out in about 20 seconds:

  solve(WaterDrinker, ZebraOwner) :-
      % H01: Five houses with positions 1..5.
      Houses = [ house(1, _, norwegian, _, _, _),  % H10: Norwegian lives in the first house.
                 house(2, blue, _, _, _, _),       % H15: Since the Norwegian lives next to the blue house,
                 house(3, _, _, milk, _, _),        %       and house1 is Norwegian, house2 must be blue.
                 house(4, _, _, _, _, _),
                 house(5, _, _, _, _, _) ],
  
      % H02: The Englishman lives in the red house.
      member(house(_, red, englishman, _, _, _), Houses),
      % H03: The Spaniard owns the dog.
      member(house(_, _, spaniard, _, dog, _), Houses),
      % H04: Coffee is drunk in the green house.
      member(house(_, green, _, coffee, _, _), Houses),
      % H05: The Ukrainian drinks tea.
      member(house(_, _, ukrainian, tea, _, _), Houses),
      % H06: The green house is immediately to the right of the ivory house.
      right_of(house(_, green, _, _, _, _), house(_, ivory, _, _, _, _), Houses),
      % H07: The Old Gold smoker owns snails.
      member(house(_, _, _, _, snails, old_gold), Houses),
      % H08: Kools are smoked in the yellow house.
      member(house(_, yellow, _, _, _, kools), Houses),
      % H11: The man who smokes Chesterfields lives in the house next to the man with the fox.
      next_to(house(_, _, _, _, _, chesterfields), house(_, _, _, _, fox, _), Houses),
      % H12: Kools are smoked in a house next to the house where the horse is kept.
      next_to(house(_, _, _, _, horse, _), house(_, _, _, _, _, kools), Houses),
      % H13: The Lucky Strike smoker drinks orange juice.
      member(house(_, _, _, orange_juice, _, lucky_strike), Houses),
      % H14: The Japanese smokes Parliaments.
      member(house(_, _, japanese, _, _, parliaments), Houses),
      % (H09 is built in: Milk is drunk in the middle house, i.e. house3.)
      
      % Finally, find out:
      % Q1: Who drinks water?
      member(house(_, _, WaterDrinker, water, _, _), Houses),
      % Q2: Who owns the zebra?
      member(house(_, _, ZebraOwner, _, zebra, _), Houses).
  
  right_of(Right, Left, Houses) :-
      nextto(Left, Right, Houses).
  
  next_to(X, Y, Houses) :-
      nextto(X, Y, Houses);
      nextto(Y, X, Houses).
Seems ok to me.

   ?- solve(WaterDrinker, ZebraOwner).
   WaterDrinker = norwegian,
   ZebraOwner = japanese .
Re:Chatbot Software Begins to Face Fundamental Limitations by simonw on Sunday February 02, 2025 @12:08AM (#42906041)
Solving it with Prolog is neat, and a very realistic way of how LLMs with tools should be expected to handle this kind of thing.
Re:Chatbot Software Begins to Face Fundamental Limitations by EdwardDiego on Sunday February 02, 2025 @12:45AM (#42906271)
I would've been very surprised if Prolog to solve this wasn't something that the model had already ingested.

Early AI hype cycles, after all, is where Prolog, like Lisp, shone.

Re:Chatbot Software Begins to Face Fundamental Limitations by plasticeagle on Sunday February 02, 2025 @01:43AM (#42906572)
Re:Chatbot Software Begins to Face Fundamental Limitations by simonw on Sunday February 02, 2025 @01:45AM (#42906581)
I'm certain models like o3-mini are capable of writing Prolog of this quality for puzzles they haven't seen before - it feels like a very straight-forward conversion operation for them.
Re:Chatbot Software Begins to Face Fundamental Limitations by sitkack on Sunday February 02, 2025 @02:41AM (#42906908)
My comment got eaten by HN, but I think LLMs should be used as the glue between logic systems like prolog, with inductive, deductive and abductive reasoning being handed off to a tool. LLMs are great at pattern matching, but forcing them to reason seems like an out of envelope use.

Prolog would be how I would solve puzzles like that as well. It is like calling someone weak for using a spreadsheet or a calculator.

Abductive Commonsense Reasoning Exploiting Mutually Exclusive Explanations https://arxiv.org/abs/2305.14618

Re:Chatbot Software Begins to Face Fundamental Limitations by nithril on Sunday February 02, 2025 @05:03AM (#42907623)
It seems quite logical to me as well. An LLM is not a logical computing system but it has the knowledge on how to do a multiplication
Re:Chatbot Software Begins to Face Fundamental Limitations by unification_fan on Sunday February 02, 2025 @07:23AM (#42908216)
I've been saying this ever since GPT 3 came out and I started toying with it.

It's unfortunate that for all the people who work in AI most of them barely even know what Prolog is.

Re:Chatbot Software Begins to Face Fundamental Limitations by astrange on Monday February 03, 2025 @07:55AM (#42917727)
I actually coincidentally tried this yesterday on variants of the "surgeon can't operate on boy" puzzle. It didn't help, LLMs still can't reliably solve it.

(All current commercial LLMs are badly overfit on this puzzle, so if you try changing parts of it they'll get stuck and try to give the original answer in ways that don't make sense.)

Re:Chatbot Software Begins to Face Fundamental Limitations by sitkack on Monday February 03, 2025 @10:00AM (#42918809)
What do you mean by you tried it?
Re:Chatbot Software Begins to Face Fundamental Limitations by astrange on Monday February 03, 2025 @04:26PM (#42923428)
Generated some Prolog programs and looked at them and they were wrong.

Specifically, it usually decides it knows what the answer is (and gets it wrong), then optimizes out the part of the program that does anything.

Re:Chatbot Software Begins to Face Fundamental Limitations by baq on Sunday February 02, 2025 @03:05AM (#42907020)
I’ve used DeepSeek for verifying a couple gnarly boolean conditions in home assistant with z3 and it did a good job, though it didn’t one shot it.
Re:Chatbot Software Begins to Face Fundamental Limitations by TypingOutBugs on Sunday February 02, 2025 @06:05AM (#42907889)
I used a Knights and Knaves puzzle generator last month to test 4o / Claude 3.5 and all failed on novel puzzles
Re:Chatbot Software Begins to Face Fundamental Limitations by optimalsolver on Tuesday February 04, 2025 @07:19AM (#42931405)
Hey, I'm interested in the details of this. How many persons in the puzzle? Did it include nested statements, conditionals and such?

If the puzzle generator is hosted anywhere, I'd love to have a look at it.

Re:Chatbot Software Begins to Face Fundamental Limitations by lsy on Sunday February 02, 2025 @12:55AM (#42906332)
If the LLM’s user indicates that the input can and should be translated as a logic problem, and then the user runs that definition in an external Prolog solver, what’s the LLM really doing here? Probabilistically mapping a logic problem to Prolog? That’s not quite the LLM solving the problem.
Re:Chatbot Software Begins to Face Fundamental Limitations by xyzzy123 on Sunday February 02, 2025 @01:11AM (#42906394)
Do you feel differently if it runs the prolog in a tool call?
Re:Chatbot Software Begins to Face Fundamental Limitations by layer8 on Sunday February 02, 2025 @07:15PM (#42913314)
Not the user you’re replying to, but I would feel differently if the LLM responded with “This is a problem I can’t reliably solve by myself, but there’s a logic programming system called Prolog for which I could write a suitable program that would. Do you have access to a Prolog interpreter, or could you give me access to one? I could also just output the Prolog program if you like.”

Furthermore, the LLM does know how Prolog’s unification algorithm works (in the sense that it can provide an explanation of how Prolog and the algorithm works), yet it isn’t able to follow that algorithm by itself like a human could (with pen and paper), even for simple Prolog programs whose execution would fit into the resource constraints.

This is part of the gap that I see to true human-level intelligence.

Re:Chatbot Software Begins to Face Fundamental Limitations by baq on Sunday February 02, 2025 @03:06AM (#42907024)
But the problem is solved. Depends what you care about.
Re:Chatbot Software Begins to Face Fundamental Limitations by endofreach on Sunday February 02, 2025 @12:59AM (#42906350)
Psst, don't tell my clients that it's not actually me but the languages syntax i use, that's solving their problem.
Re:Chatbot Software Begins to Face Fundamental Limitations by echelon on Sunday February 02, 2025 @12:57AM (#42906339)
The LLM doesn't understand it's doing this, though. It pattern matched against your "steering" in a way that generalized. And it didn't hallucinate in this particular case. That's still cherry picking, and you wouldn't trust this to turn a $500k screw.

I feel like we're at 2004 Darpa Grand Challenge level, but we're nowhere near solving all of the issues required to run this on public streets. It's impressive, but leaves an enormous amount to be desired.

I think we'll get there, but I don't think it'll be in just a few short years. The companies hyping that this accelerated timeline is just around the corner are doing so out of existential need to keep the funding flowing.

Re:Chatbot Software Begins to Face Fundamental Limitations by orbital-decay on Sunday February 02, 2025 @01:12AM (#42906399)
That's because it uses a long CoT. The actual paper [1] [2] talks about the limitations of decoder-only transformers predicting the reply directly, although it also establishes the benefits of CoT for composition.

This is all known for a long time and makes intuitive sense - you can't squeeze more computation from it than it can provide. The authors just formally proved it (which is no small deal). And Quanta is being dramatic with conclusions and headlines, as always.

[1] https://arxiv.org/abs/2412.02975

[2] https://news.ycombinator.com/item?id=42889786

Re:Chatbot Software Begins to Face Fundamental Limitations by antirez on Sunday February 02, 2025 @03:07AM (#42907026)
LLMs using CoT are also decoder-only, it's not a paradigm shift like people want to claim now to don't say they were wrong: it's still next token prediction, that is forced to explore more possibilities in the space it contains. And with R1-Zero we also know that LLMs can train themselves to do so.
Re:Chatbot Software Begins to Face Fundamental Limitations by mycall on Sunday February 02, 2025 @03:03AM (#42907015)
This doesn't include Encoder-Decoder Transformer Fusion for machine translation, or Encoder-Only like text classification, named entity recognition or BERT.
Re:Chatbot Software Begins to Face Fundamental Limitations by teruakohatu on Sunday February 02, 2025 @03:12AM (#42907056)
gpt-4o, asked to produce swi-prolog code, gets the same result using a very similar code. gpt4-turbo can do it with slightly less nice code. gpt-3.5-turbo struggled to get the syntax correct but I think with some better prompting could manage it.

COT is defiantly optional. Although I am sure all LLM have seen this problem explained and solved in training data.

Re:Chatbot Software Begins to Face Fundamental Limitations by leonidasv on Sunday February 02, 2025 @01:56AM (#42906655)
Also, notice that the original study is from 2023.
Re:Chatbot Software Begins to Face Fundamental Limitations by janalsncm on Sunday February 02, 2025 @05:27AM (#42907743)
That’s a different paper than the one this article describes. The article describes this paper: https://arxiv.org/abs/2305.18654
Re:Chatbot Software Begins to Face Fundamental Limitations by usaar333 on Sunday February 02, 2025 @11:12AM (#42909516)
A paper that came out 15 months ago?
Re:Chatbot Software Begins to Face Fundamental Limitations by mkl on Monday February 03, 2025 @03:24AM (#42916101)
Yes! That one's linked in paragraph three.
Re:Chatbot Software Begins to Face Fundamental Limitations by mkl on Monday February 03, 2025 @03:26AM (#42916112)
The article describes both papers.
Re:Chatbot Software Begins to Face Fundamental Limitations by tuatoru on Sunday February 02, 2025 @01:15AM (#42906418)

    solve (make me a sandwich)
Moravec's Paradox is still a thing.
Re:Chatbot Software Begins to Face Fundamental Limitations by est on Sunday February 02, 2025 @01:54AM (#42906639)
I'd say not only LLM stuggle with these kind of problems, 99% of humans do.
Re:Chatbot Software Begins to Face Fundamental Limitations by intended on Sunday February 02, 2025 @03:20AM (#42907087)
Science is not in the proving of it.

It’s in the disproving of it, and in the finding of the terms that help others understand the limits.

I dont know why it took me so long to come to that sentence. Yes, everyone can trot out their core examples that reinforce the point.

The research is motivated by these examples in the first place.

Re:Chatbot Software Begins to Face Fundamental Limitations by Agraillo on Sunday February 02, 2025 @03:53AM (#42907266)
Good point. LLMs can be treated as "theories" and then they definitely meet falsifiability [1] allowing researchers finding "black swans" for years to come. Theories in this case can be different. But if the theory is of logical or symbolic solver then Wolfram's Mathematica may be struggle with understanding the human language as an input, but when evaluating the results, well, I think Stephen (Wolfram) can sleep soundly, at least for now

[1] https://en.wikipedia.org/wiki/Falsifiability

Re:Chatbot Software Begins to Face Fundamental Limitations by choeger on Sunday February 02, 2025 @04:52AM (#42907575)
So you asked an LLM to translate. It excells in translation. But ask it to solve and it will, inevitably, fail. But that's also expected.

The interesting question is: Given a C compiler and the problem, could an LLM come up with something like Prolog on its own?

Re:Chatbot Software Begins to Face Fundamental Limitations by charlieyu1 on Sunday February 02, 2025 @05:43AM (#42907808)
I think it could even solve, these kinds of riddles are heavily trained
Re:Chatbot Software Begins to Face Fundamental Limitations by n144q on Sunday February 02, 2025 @06:37AM (#42908020)
Then what about new, unseen riddles that don't have a similar pattern to existing ones? That's the question people are asking.
Re:Chatbot Software Begins to Face Fundamental Limitations by Borealid on Sunday February 02, 2025 @07:23AM (#42908211)
If an LLM can solve a riddle of arbitrary complexity that is not similar to an already-solved riddle, have the LLM solve the riddle "how can this trained machine-learning model be adjusted to improve its riddle-solving abilities without regressing in any other meaningful capability".

It's apparent that particular riddle is not presently solved successfully by LLMs, as if it were solved, humans would be having LLMs improve themselves in the wild.

So, constructively, there exists at least one riddle that doesn't have a pattern similar to existing ones, where that riddle is unsolvable by any existing LLM.

If you present a SINGLE riddle an LLM can solve, people will reply that particular riddle isn't good enough. In order to succeed they need to solve all the riddles, including the one I presented above.

Re:Chatbot Software Begins to Face Fundamental Limitations by fragmede on Sunday February 02, 2025 @01:32PM (#42910600)
Unfortunately, that's a "could an omipotent god create a boulder so heavy he can't move it" level of "logic puzzle" and does your argument no favors.
Re:Chatbot Software Begins to Face Fundamental Limitations by Borealid on Sunday February 02, 2025 @03:38PM (#42911564)
It's quite the opposite. Converting to words like yours, the argument is "could a powerful but not omnipotent god make themself more powerful", and the answer is "probably".

If the god cannot grant themself powers they're not very powerful at all, are they?

Re:Chatbot Software Begins to Face Fundamental Limitations by AtlasBarfed on Sunday February 02, 2025 @01:02PM (#42910373)
Can it port sed to java? I just tried to do that in chatgippity and it failed