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...
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.)
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.
> 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.
This kinda falls apart when coupled with undefined behavior, JIT optimizations and lazy evaluation. Various programming languages permit both for things to happen even when not specified by code, and for things specified in code to not happen, at the discretion of the compiler and the runtime environment. And these compilers still have this property of preserving the overall algorithm that AIs lack, and that I'm looking for a better name for.
Usually, when people use the word "semantics" when talking about code, they do it to explicitly highlight they're talking about the opposite of the precise nature of the code as written. Especially as an adjective "semantically". For example, HTTP ETag is semantically the identifier of a particular version of a document. Semantically it's used to conditionally refetch the document if cache is stale. But in actual code, there are no versions, and ETag is basically a secondary cookie with lifetime tied to cache entry, that can contain an arbitrary string that may or may not have anything to do with the requested document. In actual code, presence of ETag enables the use of status code 304 and that's it, the rest is just a convention. Hulu famously ignored the intended semantics and used ETags for user tracking.
Funnily enough, Wikipedia article on ETag contains the word "semantically" used in this meaning, talking about a different aspect of ETag: "A weakly validating ETag match only indicates that the two representations are *semantically* equivalent, meaning that for practical purposes they are interchangeable and that cached copies can be used. However, the resource representations are not necessarily byte-for-byte identical, and thus weak ETags are not suitable for byte-range requests."[0] Just to show I'm not pulling it out of my ass.
All this considered, while I can see why you'd call this thing "semantics", I don't think it would be a useful term in practice, pretty much for the same reasons why determinism isn't.
Ah, I think I see. You mistook my statement for "a program fully specifies its exact behavior in all details". I can see why. I worded it too broadly. You are right, there is a bunch of room for uncertainty in internal details. But the key point is that those details are independent of the language semantics. As long as the semantics are observed, the details are allowed to vary. But that's my point: the language has semantics. They exist separately of code execution.
You can examine code to see whether it's correct and complete. You might be able to examine a natural language prompt to find incorrect portions, but you'll never know that it's sufficient to generate a system with all the properties you need before you run it. And that's not because of nondeterminism, it's because natural language doesn't work that way.
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.
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)
Replies (1)
But that's all besides the point. Predictability is a bad term for what compilers have that AIs don't.
Replies (1)
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.)
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.
Replies (1)
This kinda falls apart when coupled with undefined behavior, JIT optimizations and lazy evaluation. Various programming languages permit both for things to happen even when not specified by code, and for things specified in code to not happen, at the discretion of the compiler and the runtime environment. And these compilers still have this property of preserving the overall algorithm that AIs lack, and that I'm looking for a better name for.
Usually, when people use the word "semantics" when talking about code, they do it to explicitly highlight they're talking about the opposite of the precise nature of the code as written. Especially as an adjective "semantically". For example, HTTP ETag is semantically the identifier of a particular version of a document. Semantically it's used to conditionally refetch the document if cache is stale. But in actual code, there are no versions, and ETag is basically a secondary cookie with lifetime tied to cache entry, that can contain an arbitrary string that may or may not have anything to do with the requested document. In actual code, presence of ETag enables the use of status code 304 and that's it, the rest is just a convention. Hulu famously ignored the intended semantics and used ETags for user tracking.
Funnily enough, Wikipedia article on ETag contains the word "semantically" used in this meaning, talking about a different aspect of ETag: "A weakly validating ETag match only indicates that the two representations are *semantically* equivalent, meaning that for practical purposes they are interchangeable and that cached copies can be used. However, the resource representations are not necessarily byte-for-byte identical, and thus weak ETags are not suitable for byte-range requests."[0] Just to show I'm not pulling it out of my ass.
All this considered, while I can see why you'd call this thing "semantics", I don't think it would be a useful term in practice, pretty much for the same reasons why determinism isn't.
[0] https://en.wikipedia.org/wiki/HTTP_ETag
Replies (1)
You can examine code to see whether it's correct and complete. You might be able to examine a natural language prompt to find incorrect portions, but you'll never know that it's sufficient to generate a system with all the properties you need before you run it. And that's not because of nondeterminism, it's because natural language doesn't work that way.
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.