Hacker News new | ask | show | jobs
by pie_flavor 113 days ago
> On two occasions I have been asked, – "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.

He clearly didn't know enough about vector embeddings.

1 comments

Unironically, LLM is absolutely amazing at giving you the right answers when you put in wrong input, compared to every other algorithm ever invented.
I was hoping a lossy semantic reasoning machine would put to bed words such as "right" and "wrong" outside of formal logic, but apparently this fight has just begun
Yeah they solved the main issue I had with Google. "I remember this exact thing, but not exactly how it was phrased..."

Except not as much as I'd like... they often also don't know what the hell I'm talking about, and it still takes them twenty minutes of Googling to find the right page!

I regularly ask Claude to find that one book, that one short story, that one meme, you know the one, it had the guy and the thing, no not quite like that...

It nearly always works.

That’s one of the properties that distinguishes intelligence from traditional deterministic algorithms.
I feel like I'm fighting a losing battle but I don't see why so many people consider LLMs innately non-deterministic, an LLM running on a CPU with greedy decoding would be 100% deterministic and still have the intelligence we associate with LLMs
> I feel like I'm fighting a losing battle but I don't see why so many people consider LLMs innately non-deterministic ...

Because LLMs are artificial neural networks[0] (ANN), which are statistical in nature, and thus intrinsically non-deterministic. Pretty much every AI algorithm has randomness involved in its definition and many (most?) incorporate probabilities.

0 - https://en.wikipedia.org/wiki/Neural_network_(machine_learni...

Now that you mention it, I think "statistical" might be a good word choice as it probably closely matches what people mean when they say an LLM is nondeterministic. However, on a technical level, neural network inference truly is inherently deterministic. The only nondeterminism in LLMs is parallelism-dependency in the way floating point operations are carried out and in the decoding strategy
> The only nondeterminism in LLMs is parallelism-dependency in the way floating point operations are carried out and in the decoding strategy

This assertion is "oddly" similar to the GPT answer "neural network inference determinism" produced:

  Neural network inference is often non-deterministic due to 
  factors like floating-point arithmetic and concurrent 
  execution, which can lead to variations in output even with 
  the same input.
Surely this is but a coincidence.

Regarding your previous statement:

> However, on a technical level, neural network inference truly is inherently deterministic.

This holds for a vanishingly small set of conditions, none of which include randomness, nor when context and transformers are involved, let alone underlying model evolution (thus making model use over time non-deterministic).

only if you bias your "random sampling of the distributions it gives"

Fixing the seed is still intentional bias. Or you could force it to always take the one token with the highest probability, but that is still biased sampling. Deterministic, sure, but intentionally wrong just to avoid a technically

Valid point, it’s why I included the word “traditional”, to try to qualify that.

What I meant is something more like explicitly programmed vs. learned. Intelligence can result from learned behavior, but not from explicit programming of rules by humans.

An aspect of this is that “learning” is unpredictable - we can’t predict in advance exactly how the resulting model will behave, except broadly. It seems non-deterministic if only by virtue of its complexity, which is beyond anything we’re able to predictively model.

> Intelligence can result from learned behavior, but not from explicit programming of rules by humans.

This is incorrect.

Simulated intelligence can and has been encoded explicitly by humans defining rules programmatically in the form of expert systems[0].

0 - https://en.wikipedia.org/wiki/Expert_system

I've worked on expert systems. I don't agree that they achieve "simulated intelligence". They're preprogrammed with a set of domain-specific rules that are trivially simple by comparison to even relatively simple and small neural networks.
I've seen this debate several times and often there's a terminology issue, where the same word isn't being interpreted the same way by different sides.

Often it's a difference between repeatable versus predictable, or whether a system has chaotic aspects like the configurations of a double-pendulum or weather-forecasting.

Sometimes it's the difference between determinism in-theory versus in-practice, especially when various optimizations are being applied to save money.

Also, people seem to not realize that chaos can be 100% deterministic. Consider Mandelbrot or Conway's Game of Life.

The LLM inference process can be 100% deterministic but the weights can still make the end result quite chaotic. Just because temperature>0 improves results doesn't mean its an innate part of the mechanism. Just because scale-out architectures introduce jitter in communication doesn't mean that's an innate part of the mechanism.

deterministic but completely unpredictable is not really any more useful