News for hackers. Stuff that matters.
Re:Chemical knowledge and reasoning of large language models... by PlasmonOwl on Monday June 16, 2025 @07:40AM (#44288640)
Ok so I am always interested in these papers as a chemist. Often, we find that the LLM are terrible at chemistry. This is because the lived experience of a chemist is fundamentally different from the education they receive. Often, a masters student takes 6 months to become productive at research in a new sub field. A PhD, around 3 months.

Most chemists will begin to develop an intuition. This is where the issues develop.

This intuition is a combination of the chemists mental model, and how the sensory environment stimulates that. As a polymer chemist in a certain system maybe brown means I see scattering hence particles. My system is supposed to be homogeneous so I bin the reaction.

It is often known that good grades don’t make good researchers. That’s because researchers aren’t doing rote recall.

So the issue is this: we ask the LLM how many proton environment in this nmr?

We should ask: I’m intercalating Li into a perovskite using BuLi. Why does the solution turn pink?

Re:Chemical knowledge and reasoning of large language models... by Workaccount2 on Monday June 16, 2025 @09:56AM (#44289528)
I think a huge reason why LLMs are so far ahead in programming is because programming exists entirely in a known and totally severed digital environment outside our own. To become a master programmer all you need is a laptop and an internet connection. The nature of it existing entirely in a parallel digital universe just lends itself perfectly to training.

All of that is to say that I don't think the classic engineering fields have some kind of knowledge or intuition that is truly inaccessible to LLMs, I just think that it is in a form that is too difficult right now to train on. However if you could train a model on them, I strongly suspect they would get to the same level they are at today with software.

Re:Chemical knowledge and reasoning of large language models... by alganet on Monday June 16, 2025 @11:36AM (#44290591)
> I think a huge reason why LLMs are so far ahead in programming

Are they? Last time I checked (couple of seconds ago), they still made silly mistakes and hallucinated wildly.

Example: https://imgur.com/a/Cj2y8km (AI teaching me about the Coltrane operator, that obviously does not exist).

Re:Chemical knowledge and reasoning of large language models... by gcanko on Monday June 16, 2025 @11:57AM (#44290807)
You're using the worst model when it comes to programming, not sure what point you're trying prove here. That's why when someone starts ranting how useless ai models are when it comes to coding I always assume they're just using inferior models.
Re:Chemical knowledge and reasoning of large language models... by alganet on Monday June 16, 2025 @12:04PM (#44290861)
My question was very simple. Suitable for a simpler model.

I can come up with prompts that make better models hallucinate (see post below).

I don't understand your objection. This is a known fact, LLMs hallucinate shit regardless of the model size.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Monday June 16, 2025 @12:36PM (#44291118)
LLMs are getting better. Are you?

Nothing matters in this business except the first couple of time derivatives.

Re:Chemical knowledge and reasoning of large language models... by alganet on Monday June 16, 2025 @12:48PM (#44291223)
Maybe I'm not.

However, I'm discussing this within the context of the study presented in the paper, not some future yet-to-be-achieved performance expectation.

If we step outside the context of the paper (not advised), I think any average developer is better than an LLM at energy efficiency. LLMs cheat by consuming more resources than a human. "Better" is quite relative. So, let's keep reasonable.

Re:Chemical knowledge and reasoning of large language models... by aoeusnth1 on Monday June 16, 2025 @11:44AM (#44290681)
Are you intentionally sandbagging the LLMs to prove a point, or do you really think 4o-mini is good enough for programming?

Even 2.5 flash easily gets this https://imgur.com/a/OfW30eL

Re:Chemical knowledge and reasoning of large language models... by alganet on Monday June 16, 2025 @11:55AM (#44290783)
The point is that I can make them hallucinate quite easily. And they don't demonstrate knowing their own limitations.

For example, 2.5 Flash fails to explain the difference between the short ternary operator (null coalescing) and the Elvis operator.

https://imgur.com/a/xKjuoqV

Even when I specify a language (therefore clearing the confusion, supposedly), it still fails to even recognize the Elvis operator by its toupe, and mixes it up the explanation (it doesn't even understand what I asked).

https://imgur.com/a/itr87hM

So, the point I'm trying to make is that they're not any better for programming than they're for chemistry.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Monday June 16, 2025 @12:21PM (#44291003)
Flash is the wrong model for questions like that -- not that you care -- but if you'd like to share the actual prompt you gave it, I'll try it in 2.5 Pro.
Re:Chemical knowledge and reasoning of large language models... by alganet on Monday June 16, 2025 @12:37PM (#44291128)
"explain me the difference between the short ternary operator and the Elvis operator"

When it failed, I replied: "in PHP".

You don't seem to understand what I'm trying to say and instead is trying to defend LLMs for a fault that is a fact known in the industry at large.

I'm sure that in short time, I could make 2.5 Pro hallucinate as well. If not on this question, on others.

This behavior is inline with the paper conclusions:

> many models are not able to reliably estimate their own limitations.

(see Figure 3, they tested a variety of models of different qualities).

This is the kind of question a junior developer can answer with simple google searches, or by reading the PHP manual, or just by testing it on a REPL. Why do we need a fancy model in order to answer such a simple inquiry? Would a beginner know that the answer is incorrect and he should use a different model?

Also, from the paper:

> For very relevant topics, the answers that models provide are wrong.

> Given that the models outperformed the average human in our study, we need to rethink how we teach and examine chemistry.

That's true for programming as well. It outperforms the average human, but then it makes silly mistakes that could confuse beginners. It displays confidence in being plain wrong.

The study also used manually curated questions for evaluation, so my prompt is not some dirty trick. It's totally inline with the context of this discussion.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Monday June 16, 2025 @12:57PM (#44291278)
It's better than it was a year ago, as you'd have discovered for yourself if you used current models. Nothing else matters.

See if this looks any better (I don't know PHP): https://g.co/gemini/share/7849517fdb89

If it doesn't, what specifically is incorrect?

Re:Chemical knowledge and reasoning of large language models... by alganet on Monday June 16, 2025 @03:06PM (#44292470)
What I expect from a human is to ask "in which language?", because it makes a difference. If no language was supplied, I expect a brief summary of null coalescing and shorthand ternary options with useful examples in the most popular languages.

--

The JavaScript example should have mentioned the use of `||` (or operator) to achieve the same effect of a shorthand ternary. It's common knowledge.

In PHP specifically, `??` allows you to null coalesce array keys and other types of complex objects. You don't need to write `isset($arr[1]) ? $arr[1] : "ipsum"`, you can just `$arr[1] ?? "ipsum"`. TypeScript has it too and I would expect anyone answering about JavaScript to mention that, since it's highly relevant for the ecosystem.

Also in PHP, there is the `?:` that is similar to what `||` does in JavaScript in an assignment context, but due to type juggling, it can act as a null coalesce operator too (although not for arrays or complex types).

The PHP example they present, therefore, is plain wrong and would lead to a warning for trying to access an unset array key. Something that the `??` operator (not mentioned in the response) would solve.

I would go as far as explaining null conditional acessors as well `$foo?->bar` or `foo?.bar`. Those are often called Elvis operators coloquially and fall within the same overall problem-solving category.

The LLM answer is a dangerous mix of incomplete and wrong. It could lead a beginner to adopt an old bad practice, or leave a beginner without a more thorough explanation. Worst of all, the LLM makes those mistakes with confidence.

--

What I think is going on is that null handling is such a basic task, that programmers learn it in the first few years of their careers and almost never write about it. There's no need to. I'm sure a code-completion LLM can code using those operators effectively, but LLMs cannot talk about them consistently. They'll only get better at it if we get better at it, and we often don't need to write about it.

In this particular elvis operator thing, there has been no significant improvement in the correctedness of the answer in __more than 2 whole years__. Samples from ChatGPT in 2023 (note my image date): https://imgur.com/UztTTYQ https://imgur.com/nsqY2rH.

So, _for some things_, contrary to what you suggested before, LLMs are not getting that much better.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Monday June 16, 2025 @06:35PM (#44294011)
Having read the reply in 2.5 Pro, I have to agree with you there. I'm surprised it whiffed on those details. They are fairly basic and rather important. It could have provided a better answer (I fed your reply back to it at https://g.co/gemini/share/7f87b5e9d699 ), but it did a crappy job deciding what to include in its initial response.

I don't agree that you can pick one cherry example and use it to illustrate anything general about the progress of the models in general, though. There are far too many counterexamples to enumerate.

(Actually I suspect what will happen is that we'll change the way we write documentation to make it easy for LLMs to assimilate. I know I'm already doing that myself.)

Re:Chemical knowledge and reasoning of large language models... by alganet on Tuesday June 17, 2025 @12:07AM (#44295666)
> I don't agree that you can pick one cherry example

Benchmarks and evaluations are made of cherry picked examples. What makes my example invalid, and benchmark prompts valid? (it's a rethorical question, you don't need to answer).

> write documentation to make it easy for LLMs to assimilate.

If we ever do that, it means LLMs failed at their job. They are supposed to help and understand us, not the other way around.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Tuesday June 17, 2025 @01:09PM (#44301347)
If we ever do that, it means LLMs failed at their job. They are supposed to help and understand us, not the other way around.

If you buy into the whole AGI thing, I guess so, but I don't. We don't have a good definition of intelligence, so it's a meaningless question.

We do know how to make and use tools, though. And we know that all tools, especially the most powerful and/or hazardous ones, reward the work and care that we put into using them. Further, we know that tool use is a skill, and that some people are much better at it than others.

What makes my example invalid, and benchmark prompts valid?

Your example is a valid case of something that doesn't work perfectly. We didn't exactly need to invent AI to come up with something that didn't work perfectly. I have examples of using LLMs to generate working, useful code in advanced, specialized disciplines, code that I frankly don't understand myself and couldn't have written without months of study, but that I can validate.

Just one of those examples is worth a thousand examples like yours, in my book. I can now do things that were simply impossible for me before. It would take some nerve to demand godlike perfection on top of that, or to demand useful results with little or no effort on my part.

Re:Chemical knowledge and reasoning of large language models... by alganet on Tuesday June 17, 2025 @02:15PM (#44302088)
> We do know how to make and use tools

It's the same principle. A tool is supposed to assist us, not the other way around.

An LLM, "AGI magic" or not, is supposed to write for me. It's a tool that writes for me. If I am writing for the tool, there's something wrong with it.

> I have examples [...] Just one of those examples is worth a thousand examples like yours

Please, share them. I shared my example. It can be a very small "bug report", but it's real and reproducible. Other people can build on it, either to improve their "tool skills" or to improve LLMs themselves.

An example that is shared is worth much more than an anectode.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Tuesday June 17, 2025 @04:16PM (#44303461)
It's hard to get too specific without running afoul of NDAs and such, since most of my work is for one customer or another, but the case that really blew me away was when I needed to find a way to correct an oscillator that had inherent stability problems due to a combination of a very good crystal and very poor thermal engineering on the OEM's part. The customer uses a lot of these oscillators, and they are a massive pain point in production test because they often perform so much worse than they should.

I started out brainstorming with o1-pro, trying to come up with ways to anticipate drift on multiple timescales, from multiple influences with differing lag times, and correct it using temperature trends measured a couple of inches away on a different component. It basically said, "Here, train this LSTM model to predict your drift observations from your observed temperature," and spewed out a bunch of cryptic-looking PyTorch code. It would have been familiar enough to an ML engineer, I'm sure, but it was pretty much Perl to me.

I was like, Okaaaaayyy....? but I tried it anyway, suggested hyperparameters and all, and it was a real road-to-Damascus moment. Again, I can't share the plots and they wouldn't make sense anyway without a lot of explanation, but the outcome of my initial tests was freakishly good.

Another model proved to be able to translate the Python to straight C for use by the onboard controller, which was no mean feat in itself (and also allowed me to review it myself), and now that problem is just gone. Basically for free. It was a ridiculous, silly thing to try, and it worked.

When this tech gets another 10x better, the customer won't need me anymore... and that is fucking awesome.

Re:Chemical knowledge and reasoning of large language models... by alganet on Tuesday June 17, 2025 @04:48PM (#44303787)
I too have all sorts of secret stuff that I wouldn't share. I'm not asking for that. Isolating and reproducing example behavior is different from sharing your whole work.

> It would have been familiar enough to an ML engineer, I'm sure, but it was pretty much Perl to me.

How can you be sure that the solution doesn't have obvious mistakes that an ML engineer would spot right away?

> When this tech gets another 10x better

A chainsaw is way better than a regular saw, but it's also more dangerous. Learning to use it can be fun. Learning not to cut your toes is also important.

I am looking for ways in which LLMs could potentially cut people's toes.

I know you don't want to hear that your favorite tool can backfire, and you're still skeptic despite having experienced the example I gave you firsthand. However, I was still hopeful that you could understand my point.

Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Monday June 16, 2025 @11:54AM (#44290778)
They aren't getting any better at programming, so they naturally assume the LLMs aren't, either.
Re:Chemical knowledge and reasoning of large language models... by CamperBob2 on Monday June 16, 2025 @12:10PM (#44290905)
Just out of curiosity (not knowing anything about butyllithium other than what I've read on 'Things I Won't Work With'), is this answer from o3-pro even close?

https://chatgpt.com/share/685041db-c324-800b-afc6-5cb2c5ef31...

Re:Chemical knowledge and reasoning of large language models... by fuzzfactor on Monday June 16, 2025 @03:13PM (#44292532)
>using BuLi. Why does the solution turn pink?

I would say odds are because of an impurity. My first guess might be the solvent if there is more in action than reagents or reactants. Maybe could be confirmed or denied by some carefully figured filtration beforehand, which might not even be that difficult. I doubt I would try much further than that unless it was a bad problem.

Although for instance an alternate simple purification like distillation is pretty much routine for pure aniline to get some colorless material, and that's some pretty rough stuff to handle.

Now I once was a young chemist facing AI, I ended up highly focused on going forward in ways that would not be "taken over" by AI, and I knew I couldn't be slow or recession still might catch up with me, plus the 1990's were approaching fast ;)

By the mid 1990's I figured there's no way the stuff they have in this paper had not been well investigated.

I always knew it would take people that had way more megabytes than I could afford.

Sheesh, did I overestimate the progress people were making when I wasn't looking.

Re:Chemical knowledge and reasoning of large language models... by CGMthrowaway on Monday June 16, 2025 @03:36PM (#44292710)
>the lived experience of a chemist is fundamentally different from the education they receive. Most chemists will begin to develop an intuition.

Is this a documentation problem? The LLMs are only trained on what is written down. Seems to track with another comment further down quoting:

"Models are limited in ability to answer knowledge-intensive questions, probably because the required knowledge cannot easily be accessed via papers but rather by lookup in specialized databases, which the humans used to answer such questions"