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.)
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.
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.
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...
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.
Taking this seriously... Human communication in natural language does not have the kind of precise semantics needed to unambiguously convey the entire behavior of a program. That's why programming languages were invented in the first place.
The problem is more subtle than just having a specification. Code is a complete positive and negative specification. It conveys exactly what a program will do and will not do, with a combination of presence and omission. Natural language communication does not work that way. It involves implicit shorthand everywhere. Details omitted are left to the receiver to infer, and there are lots of social rules in place about how to do that in good faith. But even in good faith, there are options that have different sets of cascading consequences in software.
As an example: Say a web app needs to take an email address as user input, and the validation process is unspecified. Do you make email validation interstitial, where the process can't proceed until the user has received an email from your system at the specified address? Do you let the process proceed to collect other information, but defer completion of whatever your app does until the address is validated? Both of those are completely reasonable, but the latter requires architecturally allowing unverified users to participate in lots of functionality, but not all. The former only requires unverified users to be allowed to become verified. This architectural choice cascades through your software, as the policies and data structures shape everything your program does.
Natural language specifications are filled with thousands of small ambiguities like that. Code... just says what to do. Precisely.
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.
I see what you're going for. Unfortunately, "chaotic" is already a common term in information theory, and the assembly output of an optimizing compiler definitely counts as chaotic, since small changes in source code can often result in rewriting half of executable (e.g. adding an extra field to some struct, a one-line change, can change the decisions about packing, reordering stack, repurposing padding bytes, inlining, function order in file and split between pages, and other unpredictable downstream effects, including 2nd and 3rd order effects from the changes mentioned). But despite the chaos, an optimizing compiler still has the property of preserving algorithms.
I think that prompts are many orders of magnitude more chaotic than inputs to a compiler in that a single character change is likely to result in a new output that shares 0% overlap with the original output.
But I see your point that compilers can also be described as chaotic even if it is to a lesser degree.
Maybe lawless is a better word to describe the lack of any formal properties that are preserved.
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.
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.
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.)
Replies (3)
Replies (2)
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.
Replies (3)
Replies (2)
Replies (1)
Continue this thread (1 replies) →
Replies (1)
Replies (1)
Replies (1)
The problem is more subtle than just having a specification. Code is a complete positive and negative specification. It conveys exactly what a program will do and will not do, with a combination of presence and omission. Natural language communication does not work that way. It involves implicit shorthand everywhere. Details omitted are left to the receiver to infer, and there are lots of social rules in place about how to do that in good faith. But even in good faith, there are options that have different sets of cascading consequences in software.
As an example: Say a web app needs to take an email address as user input, and the validation process is unspecified. Do you make email validation interstitial, where the process can't proceed until the user has received an email from your system at the specified address? Do you let the process proceed to collect other information, but defer completion of whatever your app does until the address is validated? Both of those are completely reasonable, but the latter requires architecturally allowing unverified users to participate in lots of functionality, but not all. The former only requires unverified users to be allowed to become verified. This architectural choice cascades through your software, as the policies and data structures shape everything your program does.
Natural language specifications are filled with thousands of small ambiguities like that. Code... just says what to do. Precisely.
Continue this thread (1 replies) →
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.
Replies (1)
Replies (1)
But I see your point that compilers can also be described as chaotic even if it is to a lesser degree.
Maybe lawless is a better word to describe the lack of any formal properties that are preserved.
The same way as it happens for a double pendulum.