Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The difference lies in one’s ability to reliably reason about the relation between the input and the output behavior.

With the classical abstractions, you can predict with high precision which changes in the input (source code) will map to which changes in the behavior of the output. You can play through different modifications of that input in your mind, knowing what they will mean for the output.

With LLMs, you can only vaguely and unreliably predict what any given prompt, or modifications in a prompt, will map to in the output. It has some aspects of a slot machine. This significantly curtails one’s ability to reason about that input-output relation, and to reliably predict properties of the output.

(This isn’t about determinism. A deterministic LLM still cannot be usefully reasoned about, while a compiler outputting machine code with random variations that however maintain the programming-language semantics can. LLMs don’t have well-defined language semantics, and also don’t reliably adhere to natural-language semantics even when it’s clear.)

 help



I think 'determinism' is fine. You yourself say it's about the slot machine aspect. People (us nerds especially) get hung up on literal meanings, but language is flexible and fuzzy like that, and it's for the better. And yes, a deterministic LLM would be less annoying than the ones we have today, but it still "accumulates" indeterminism during the training phase, which then manifests at inference time.

This is why I've stopped talking about "determinism" and started talking about the transparent homomorphism between input to a compiler and what the resultant program actually does. Something that LLMs lack, especially if they live in someone's proprietary cloud.

I think the mathematically correct world and also what people actually mean in these conversations is that inference is chaotic. A tiny variance in the input (just temperature, or a single changes word even if only in the system prompt) can drastically change the output, or in case of agents the whole flow/actions.

The same way as it happens for a double pendulum.


If I was someone trigerred by incorrect use of the word "determinism" when talking about AI, I would be so much more triggered by "transparent homomorphism".

Nevertheless, we do need a word for the property of guaranteeing preservation of the encoded algorithm, and we need it fast. I don't know what that word might be. Definitely not homomorphism, though.


"Semantics". Programming languages have semantics. LLMs do not. You really don't need to go deeper.

Do humans have semantics? My first instinct is to say yes, and that would imply AIs can also theoretically gain semantics one day without being compiler-like.

I use chaotic for the general term and prompt instability to refer to the specific issue.

I think chaotic works well because it captures the problem that very small changes to input produce very large changes to output and not in a way that you can easily reason about.


Predictable.

AI is very predictably doing things it wasn't asked for. Not a good choice of word.

In that sense, nothing is unpredictable. Earthquakes predictably happen on an unpredictable schedule. So they are predictable. The outcome of a dice throw predictably will be between 1 and 6, and furthermore predictably unpredictable which of those numbers. What could be more predictable than a dice throw, I now wonder...

The kind of thing the AI will do based on a prompt can be easily predicted based on which model was used and what the prompt was - even if the result isn't what the prompt asked for. Not everything has this property. You can't predict if the dice will roll 6 based on where it was bought and how the throw was made. You can predict GPT will tell you GDP of USA when the prompt said "which country has highest GDP" unless the prompt also specifies to give very short answers.

But that's all besides the point. Predictability is a bad term for what compilers have that AIs don't.


> the kind of thing the AI will do based on a prompt can be easily predicted

Sure, in the same way "the kind of thing" a dice will do when you throw it can be easily predicted. You are trying to tease out subtle details that don't actually exist. 'Predictable' is perfectly fine. So is 'deterministic'. People will get your gist, according to the depth of their understanding of the subject, as is the case always.

AFAIK there are a couple of sources of indeterminism in modern LLMs. One has its source in the nitty-gritty of computation pipelines in servers. This one can be avoided by paying a price in resources (time and memory). Then there's 'temperature', which is a purposefully introduced (pseudo-)randomness, which helps the net avoid getting stuck in local minima. This can be set to zero, which degrades the model's general usefulness/accuracy but removes some of the unpredictability.

But the main source of indeterminism is accumulated during training. This is the one people miss, because they are thinking of the model as a completed artifact. But because we use these models with a new input pretty much every time, we are always encountering this last form of indeterminism. I think this is why people get confused about the right word to describe what's happening.

Sabine Hossenfelder put out a video a few days ago on just this subject, it's worth a watch: https://www.youtube.com/watch?v=-MiM5xfAe2c (and yeah, she's using those stodgy old words without complaint: 'predictable', 'random' etc.)


Neither predictable nor deterministic nor homomorphic is fine. People will not understand what you mean, and will argue to death that compilers are just as deterministic/unpredictable/nonmonomorhic as AIs, and they'd be literally right. "You know what I mean" can get us only so far.

The only people who will "not understand" will be pedants who don't understand that language is fuzzy and ever-changing, and that that's a feature of language, not a bug. Granted, these people are over-represented on this site, but they are still a tiny and inconsequential minority. The vast majority will be (and are) just fine.

Apparently the language ever-changed from underneath me so fast I didn't even notice engineers are called pedants now. Of course engineers - who are vastly overrepresented on this site - like precise terminology. It makes our job so much easier. We have words like constant, static and immutable. In common speech, all three mean the same thing and can be used interchangably, and even if they don't quite fit, you can say "you know what I mean" and the issue disappears. In programming, it makes a world of difference whether a value is constant or static (or static constant), constant or immutable (or immutable constant), and so on. We must be able to differentiate between these 3 synonyms or we wouldn't be able to do our job efficiently.

Predictable already means something. In a technical discussion, it would be very annoying if it suddenly grew a whole other unrelated meaning. "The predictable mode produces unpredictable ordering in high traffic, and that hurts our cache hit rate. We're going to use this new module to predict traffic spikes and switch to unpredictable mode to keep output predictable" - actual lines that I'd have to say at some point in the future if your idea took hold. And yes, it's perfectly understandable what I mean. But it's still annoying.


reason-able

Could be easily confused with ability to reason (which compilers DON'T have).

It's a lot like having a direct report.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: