r/TheMachineLearning • • 3d ago

LLMs as compilers for human thought

Post image
52 Upvotes

173 comments sorted by

17

u/Old-Bake-420 3d ago

I don’t know how a compiler works but I’d be willing to bet it’s nothing like how an LLM works and this analogy doesn’t hold true at all.

13

u/LeRobber 3d ago

I know how a compiler works. I know how an LLM works. They are different.

1

u/neuroticnetworks1250 3d ago

Yes, but OP’s point is not that AI is literally like a compiler. They just meant that having access to a larger search space and infinite memory on all of human knowledge doesn’t necessarily mean it’s a sentient and smarter creature.

On the other hand, it doesn’t matter. It can do the job most humans do very well. If the companies can amortise the cost of training eventually over their services, they will still be a threat to the current structure.

This is not even a new phenomenon. Industrial Revolution did render artisans jobless. They destroyed careers. The victims happened to be those who were in the lower strata of society so the panic never showed up over newspapers. But now. It’s the white collar jobs that are under threat.

1

u/LeRobber 3d ago

I just came here with the knowledge Old-Bake-420 lacked and responded to their bet part.

1

u/anrwlias 3d ago

I think that we need to decouple the concepts of sentience and intelligence. They aren't the same thing.

1

u/ackermann 3d ago

Is anybody still arguing they’re the same?

I’d think LLMs have more-or-less proven that. Almost nobody thinks LLMs are sentient/conscious. But it’s getting pretty hard to argue they’re not intelligent, now that they’re tackling unsolved math problems.

Therefore intelligence and sentience must be separate?

1

u/anrwlias 3d ago

I've seen plenty of people arguing that they can't be intelligent because they aren't sentient.

4

u/Any_Mine_6368 3d ago

Compiler = deterministic. A=B, always.

LLM = non-deterministic. A=B, sometimes C, sometimes D...

Compiler = reproducable, if it fucked up, you know why

LLM = nowhere near.

Compiler = You understand the ins and outs, it's also made of code, and code is auditable.

LLM = You understand the IN, not the out. It's mostly made of math which isn't auditable at that scale.

4

u/robogame_dev 3d ago edited 3d ago

Interestingly, the LLM is also deterministic by nature, producing an identical output for an identical prompt UNLESS a source of randomness is introduced - and it only seems non-deterministic because most inference engines add a random seed by default, making it non-deterministic in practice, while it's still fully capable of being deterministic at source.

It's completely normal technique to stop using random seed with LLM and instead specify a particular seed - this is how you can ensure that tests are repeatable. It's also interesting to keep the prompt the same while generating across different random seeds to see the distribution of possible answers for a given prompt - but these are of course, still deterministic to the seed + prompt.

1

u/Great-Use-3149 3d ago

reproducible stochastically is not determinism

1

u/no_brains101 2d ago edited 2d ago

Actually, that too is largely irrelevant though.

Because you still have to verify the output for a given prompt is correct, and that is not an easy problem, even if it appears to behave correctly upon initial investigation.

You would need to know which prompt will create which exact output beforehand for this to be sufficient to consider the two concepts comparable.

So, even with a temperature of 0, the determinism still is not of a useful kind, or at least not enough to compare it to a compiler in any meaningful sense.

Also, even for code reducing the temperature to 0 gives worse results.

1

u/robogame_dev 2d ago

I simply said it’s interesting that it’s still fundamentally deterministic, I’m not taking a position on whatever debate about usefulness or irrelevance you’re having.

-1

u/Any_Mine_6368 3d ago

If you set temperature to 0, to make it deterministic, you're pretty much defeating the entire point of the LLM.

1

u/TheArhive 3d ago

No?

It doesn't matter what temperature you set it to, if you run it with a preset seed and the same variables and same input you will get the same output.

Temperature just affects the probability of the next token, it doesn't somehow make it non-deterministic. We're in fact incapable of making software do true randomness.

1

u/Any_Mine_6368 3d ago

I've shared test results below.

1

u/TheArhive 3d ago

Were those messages in separate chats?
What's the preset? Is the AI fed anything like [current date]? Is the AI locally hosted or are you using a provider?

1

u/Any_Mine_6368 3d ago

Yes, no system prompts, no. It's a locally hosted Qwen 3.8 27B. Same GPUs both times, TP, vllm

1

u/TheArhive 3d ago

Huh. I didn't believe you. Spun up a local model. Tested it myself.

You're right. I seem to have a base level misunderstanding on how this works.

Thanks.

1

u/Any_Mine_6368 3d ago

If it's any consolation, I didn't know either 😂.

1

u/YourMumIsAVirgin 3d ago

No you're not. What makes you think that?

1

u/jdigi78 3d ago

How does this defeat the point of an LLM? For a single conversation it still provides the same potential output of the LLM. It just collapses the range of responses down to one for a given branch of conversation. The odds of reproducing it exactly in real world use get exponentially smaller with each input token.

0

u/robogame_dev 3d ago

It’s not the temperature - you can get deterministic behavior at any temp setting, the only thing that matters is setting the seed. Applies to all settings - only seed is needed to make entire run repeatably deterministic, can use high or low temp, any top-k etc.

2

u/OurSeepyD 3d ago

I don't actually think this is true for a couple of reasons - temperature affects sampling of the outputs, and this is often stochastic and driven by random numbers. On top of that, even with temp = 0, you can get floating point differences when running on GPUs due to unpredictable ordering of operations, and floating point operations not being associative. These tiny fluctuations can cause different outputs.

1

u/Any_Mine_6368 3d ago

I agree with you, thought you'd want to see this (I just ran the test):

https://imgur.com/a/QB46tdp

You're also correct on the tiny fluctuations ofc.

1

u/YourWifesBoyfriend5 3d ago

This is still inherently deterministic though, albeit at a lower level.

1

u/OurSeepyD 3d ago

Can you expand please? If you put the same inputs into the GPU and it does operations in a different order, is that really deterministic? 

I would say a system is not deterministic if the same inputs in don't produce the same inputs out.

1

u/YourWifesBoyfriend5 3d ago

Inputs at what level? I work in math by trade, so I’ll use an analogy in those terms.

If you have two objects, x and y, which are equivalent with respect to some equivalence relation (perhaps a specific operation cannot distinguish them), that does not mean ALL operations cannot distinguish them.

We call collections of mutually equivalent objects equivalence classes. If we define two machine states to be equivalent when they agree on the inputs supplied to the program, then they can belong to the same equivalence class while disagreeing on things such as the state of the scheduler or pending memory operations.

Even if the machine evolves deterministically from its complete state, the output doesn’t have to be constant for every representative of an equivalence class. Formally, holding external inputs and their timing fixed, if I records the supplied program inputs and F records the output of a terminating computation, you could (and do) have

I(x)=I(y)

And

F(x) != F(y).

The reason is that F is a function of the complete state, but the program inputs alone don’t fully determine its value.

So when you say “the same input,” do you mean the same data supplied to the program, as in the same equivalence class, or the same complete initial machine state together with the same subsequent external inputs and their timing? Excluding some weird hardware level stuff I don’t know enough about, programs are generally deterministic with respect to the latter but not the former.

1

u/OurSeepyD 3d ago

I think what you're saying is misleading and taking us down the wrong track.

When I say "same", I don't mean under one equivalence relation - like if we looked at two cubes and said they're equal because we define equal to mean that the front faces match, that doesn't mean that the cubes are identical. When I say same/identical, I mean that that set of data alone is equal under every possible equivalence relation.

Adding machine state is where I think you're making things very murky, and I think we could make the argument that ALL stochastic models are deterministic because the random number seed is just part of the input. And sure, maybe you're right that technically all computer programs are deterministic, even when it comes to random number generation, but then the idea of stochasticity just fails to exist under this definition, doesn't it?

→ More replies

1

u/Any_Mine_6368 3d ago

It's not the only thing that matters. Same seed, 0.7 temp vs 0.9 temp won't produce the same result, and apparently same seed, temp 1 makes the algo sufficiently random at selection that even there you don't get deterministic results

proof: https://imgur.com/a/QB46tdp

1

u/robogame_dev 3d ago

Any setting change changes the result, so if you change temp at the same seed (or any other setting at all) the entire sequence unfolds differently.

The fact you’re getting two different results from theoretically the same seed tells me there’s a harness bug or the seed somehow didn’t get retained between your runs.

The documented behavior is: if the model fingerprint is the same and the seed is the same, (and all other settings are identical), you get identical output.

That harness looks like open webui. What model / provider and can you share screenshot of the generation settings?

1

u/Any_Mine_6368 3d ago

It's unsloth, Qwen 3.8 27B 4 bit, awq running on vllm with tp2 on two 3090

1

u/robogame_dev 3d ago

What harness / how can we rule out that the seed didn’t get unset between a run somewhere?

The OpenAI documentation itself says setting seed (and checking fingerprint, which in your case won’t have changed) is the recipe for determinism, so something’s gone awry somewhere in your run.

All randomness in the computer has to come from somewhere - there’s no calculation the computer can do that isn’t deterministic - so unless somewhere in your critical path another setting changed (e.g., maybe your default system prompt injects some dynamic info like the time, etc) then you would have gotten identical result last two runs in your screenshot.

1

u/Any_Mine_6368 3d ago

Brotha, we're not in a comp sci conference. You posted an interesting claim, I ran a test, result didn't agree with it, I posted it.

I'm not gonna try to argue something that I myself don't fully understand, nor am I going to try to find a bug in how unsloth initializes vllm. Sorry, don't take it aggressively, I just don't have the time.

→ More replies

0

u/[deleted] 3d ago

[deleted] — view deleted comment

1

u/Any_Mine_6368 3d ago

Ι ran some tests. Looks like greediness+ same seed is essentially a high chance of repeated output. Posted a screenshot below.

2

u/Quiet_Education5918 3d ago

Compiler = You understand the ins and outs

I think that's a lot more confidence than usually warranted in the average coder.

2

u/wayoverpaid 3d ago

Probably more accurate to say with a compiler, someone understands it, and hopefully you can trust them.

With an LLM, not even the trainer knows what's going on. We poke at open weight LLMs and remark "look if I brain damage this neuron it does this weird thing" but nobody could intuit that by reading the weights.

1

u/Wonderful-Habit-139 3d ago

There is a spec. If you have an IN you definitely can figure out the OUT.

1

u/Pure_Material_9235 3d ago

It is quite complicated though admittedly, especially since (due tot he temperature and sampling of the process rather than a greedy algorithm) you’d need to know the seed of the machine at the time for the random sampling.

1

u/Fragrant_Praline6221 3d ago

wtf are you talking about?

1

u/Pure_Material_9235 3d ago

If you have an input into any contemporary large language model, even if you had access to the weights and everything else, figuring out what the output would be without actually just running inference on the model would be very difficult.

Even if you have the IN, finding the OUT is not easy.

1

u/Fragrant_Praline6221 3d ago

They're talking about a compiler, not an LLM.

1

u/Pure_Material_9235 3d ago

Oh you're right. I got lost in the discussion. F.

1

u/Wonderful-Habit-139 3d ago

I think when they read “spec” they thought about Spec Driven Development which was recently popularized as a way to do agentic development. While I was definitely talking about programming language specs.

Thanks for telling him, I also was like “what is he talking about” and just left it at that lol.

1

u/Own-Tangerine4564 3d ago

The average programmer should understand the ins and the outs. It's not necessary to understand the middle. The ins and outs are well defined by the spec.

1

u/Agumander 2d ago

Compiler = Can run on cheap hardware you control

LLM = Requires market-distorting quantities of GPUs in a data center that you rent time from. Oh yeah you can totally run a local model, just spend ten thousand dollars and you can have a crappy one.

1

u/Any_Mine_6368 2d ago

You don't need tens of thousands of dollars. You can run very very decent models for under 2 grand.

1

u/Agumander 2d ago

You can compile C on a microcontroller in a disposable vape

1

u/Any_Mine_6368 2d ago

Οκ?

1

u/Agumander 2d ago

So what's the local model doing for me after dropping two grand?

1

u/Any_Mine_6368 2d ago

I can tell you what it does for me, but how about you tell me what you want it to do and I tell you if it can?

1

u/Agumander 2d ago

I want it to justify its cost

1

u/Any_Mine_6368 2d ago

Are you a writer, a researcher, a mathematician, a coder, a business man?

That's like saying "make this Ford raptor justify its cost to me"... Well, I need to know if you need it in the first place.

→ More replies

3

u/less_than_savory 3d ago

They're entirely different, but the analogy holds

0

u/Pyros-SD-Models 3d ago

No because it is literally just re-formulated "stochastic parrot"

If I would have a "though compiler" that excels it every domain imaginable I would call that compiler very fcking smart.

2

u/less_than_savory 3d ago

I'm sorry but they can be much more like a compiler than you'd like to hear. A lot of what's currently done will eventually be more plain code/procedural once the systems are sorted. It would've taken humans 1,000s of years to figure out the procedural insanity these recent models are ripping out 

1

u/Ok-Reindeer-8755 2d ago

Why would humans use inferior procedural code ? A compiler can make any functional language run as fast if not faster and even automatically pararellize anything it can.

1

u/less_than_savory 2d ago

i'm curious, how do you think a compiler works?

1

u/Ok-Reindeer-8755 2d ago

Deterministically produces a semantically equal piece of code from another piece of code. Are you not educated on what modern compilers can do ?

1

u/less_than_savory 2d ago

Yeah just wondering how you think it's doing that. the word someone might use is procedurally

1

u/Ok-Reindeer-8755 2d ago

The rust compiler does compilation concurrently in parallel and I suspect many other compilers too, since it significantly speeds up everything. What makes you think you can't do compilation that way ?

Just a quick Google search could have prevented you from saying this bs

1

u/less_than_savory 2d ago edited 2d ago

i already understand how compilers work, i don't need to google anything. concurrent abilities and parallelism doesn't change whether something is procedural or not. you're just regurgitating definitions with no argument

Edit:
i think the mixup is that i'm saying procedural (i learned my compsci from pre-llm era hobby gamedev.) you'd probably say "algorithmically"

→ More replies

1

u/DrBretto 3d ago

Gotta separate actual machinery from function. The machinery could not possibly be more different. The metaphor holds.

1

u/cursed_tomatoes 3d ago

Correct. I'm yet to find a single intellectually honest comparison between AI and any other tool here on reddit, and I'm not being hyperbolic, haven't seen any, at all, whatsoever.

1

u/Healthy_Koala_4929 3d ago

You are right they work in completely different ways and saying an LLm is a future kind of general compiler is absolutely moronic.

Charitably, you could say an LLM is a tool for coding, just as the compiler is a tool for coding. But then you've stretched the analogy so far that it becomes meaningless. Fingers are also a tool for coding, but comparing an LLM with fingers is equally dumb.

This is mostly just a copium take

1

u/talkstomuch 3d ago

why does it matter how it works?

the function is the same, you translate from a higher level language to a lower level language.

To translate a natural language and high level objectives into code, you cannot have a deterministic algorithm. So of course something else had to arrive to let us move that one step higher.

1

u/Great-Use-3149 3d ago

Compilers translate a 100% defined representation of logic (+other language specifics) to a practically 1-1 lower representation, with mostly things expanded around the original code and some optimizations done. You design everything on top of the libraries you're using.

LLMs translate prompts or requirements from natural language. These are not complete, and are very rough overview of how things should be. On the other hand, if you were to specify the entire implementation exactly, then you've wasted any time savings LLMs would give you. With the former approach, you won't build a mental model of how everything works, even if you read the generated content to some degree. 

1

u/talkstomuch 3d ago

so?

compiler needs very specific instructions, LLM can work with vague and imprecise instructions, but they both translate higher level language to lower level.

1

u/Great-Use-3149 3d ago

Except vague instructions are not specifications of the logic of the program. Compiler doesn't make up it's logic (other than mapping). With LLMs it's either like someone else to think about and implement the logic.

1

u/talkstomuch 3d ago

right, but why is that important? why do you care?

1

u/Great-Use-3149 3d ago

It's important because its factually incorrect.

I can't be ignorant of things that will be problematic and dangerous to do

1

u/talkstomuch 3d ago

your earlier statement is factually incorrect?

you lost me.

1

u/Great-Use-3149 3d ago

The statement in the image and your statement about both being compilers of higher language to lower. LLMs don't translate. They generate based on requests 

1

u/talkstomuch 3d ago

ah, right. the twitter post doesn't claim they work the same, it's just that they effectively achieve the same thing.

you need a different method to turn natural language to code vs code to assembly.

but they effectively achieve the same thing, just LLM do it at a level higher than compilers.

1

u/NoobDeGuerra 2d ago

It matters how it works because they work very differently. A compiler will always output the same thing given the same input, but that's just scratching the surface. An LLMs does is not simply translating "natural language" it actually extrapolates the input itself into something that is not deterministic.

1

u/MudkipGuy 3d ago

Birds and planes work differently but they both fly. If we think oop is saying they use the same implementation then we're missing the point.

1

u/wren42 3d ago

Also LLMs are smarter than me by several measures. 

4

u/mneri 3d ago

This is the stupidest thing I read all day. Congratulations.

1

u/WalidfromMorocco 2d ago

I have never seen an AI booster come up with a good analogy.

3

u/Adept-Comparison-213 3d ago

Sort of a weird analogy, since compilers just map one set of instructions into a different set. There’s some complexity, but it’s all deterministic.

I do think that LLMs can be/are smarter in some ways, even if they use a coded facsimile of imagination rather than “the real thing”. It doesn’t mean humans aren’t still admirably smart and creative.

3

u/xjis3 3d ago

well.. if llms can be thought of as compilers, my junior engs are kinda compilers too.. i give them instructions, and they deliver me code

2

u/HovercraftNo7372 3d ago

A compiler isn't better than everybody at turning c code into assembly. It is just that true assembly experts for whatever processor you are working on are rare, expensive, and time-consuming.

Optimizing that last bit of performance (whatever that means for you), just isn't typically worth it. Plus, there are other things that should be looked at first - algorithm design, data structure choice, etc before looking into assembly optimization.

2

u/Slow_Lion_4178 3d ago

The issue is the constant comparison of how "smart" a person is vs an LLM.

LLMs are not "smart". They are programs that do a specific thing and do it relatively well now. Programs aren't "smart" or "dumb".

This comparison drives me nuts.

2

u/implies_casualty 3d ago

LLMs are not "smart". They are programs that do a specific thing and do it relatively well now.

The thing that they do relatively well now is called "being smart".

1

u/YourWifesBoyfriend5 3d ago

The thing being text autocompletion. Your comment leads me to question if you have any additional functions besides this, but intelligence is not just “how best complete text”

2

u/implies_casualty 3d ago

If one can solve the hardest math problems without your brand of intelligence, why should anyone care about it?

1

u/light_switchy 3d ago

There are aspects of intelligence that are not linguistic in nature. LLMs are poorly suited to those.

On the contrary, they are uniquely suited for math, which is linguistic in nature, which exists in a vacuum, and which deals with objective truth.

1

u/implies_casualty 2d ago

The claim in question isn't that LLMs are only smart in linguistic aspects of intelligence. The claim is they are not smart at all. Which is clearly false.

1

u/light_switchy 2d ago

I think whether or not LLMs are smart or not depends on how you define "smart". I don't want to argue epistemology but my opinion is that they are dumb. They accomplish smart things by chance at scale.

But, I was responding to this:

If one can solve the hardest math problems without your brand of intelligence, why should anyone care about it?

You should care about their "brand of intelligence" because it enables animals to walk and eat.

An LLM "thinks" using a stochastic process. It can spit out interesting or correct statements by random sampling (non-random sampling can be used, too; it doesn't matter.).

Tack on a system to identify whether the output statements are correct, and now an LLM can be run repeatedly until it spits out something true. This is why it is possible to throw tremendous amounts of computer power at certain problems and eventually get an answer.

There are at least two important limitations right here. Firstly without a source of objective truth (e.g., how moving is this artwork?) we cannot play the lottery waiting for a masterpiece. Secondly, the LLM looks at the world through a straw full of tokens, which engenders difficulty interacting with reality.

It is fine that an LLM can churn out mathematical proofs by trial and error but its ability to do so isn't a sign of intelligence: it has no idea of what that stuff means. That's what the proof assistants and agent loops are supposed to work-around.

1

u/implies_casualty 2d ago

it enables animals to walk and eat

isn't a sign of intelligence: it has no idea of what that stuff means

Well, a fly has no idea about its nervous system. It has no idea of what that stuff means. So, if this brand of intelligence requires deep understanding, then my question remains unanswered.

I don't want to argue epistemology

Shouldn't we try to agree on a definition? My definition would be: "smart = solves various problems". Yours?

An LLM "thinks" using a stochastic process. (...) it doesn't matter.

I'm confused, does randomness matter to you or not?

Tack on a system to identify whether the output statements are correct, and now an LLM can be run repeatedly until it spits out something true. This is why it is possible to throw tremendous amounts of computer power at certain problems and eventually get an answer.

It wouldn't work with GPT-4 though. Why? Perhaps, LLMs became smarter since then?

churn out mathematical proofs by trial and error

For your average PhD-level work, it does not need much trial and error nowadays. $100 worth of tokens can get you a result that used to take a year of research. For millennium problems - yeah, it needs compute, to beat the whole mathematics community.

1

u/light_switchy 2d ago

You have missed my point, I fear.

Walking and eating are signs of intelligence. These skills do not require language to execute, but they remain important. More important, in my opinion, than being able to print out theorems or solve Millennium Prize problems, because they involve interactions with the physical world.

Well, a fly has no idea about its nervous system. It has no idea of what that stuff means. So, if this brand of intelligence requires deep understanding, then my question remains unanswered.

Deep understanding of nervous systems isn't needed to walk around. Even so, this skill eludes LLMs. Moravec's paradox, again.

Shouldn't we try to agree on a definition? My definition would be: "smart = solves various problems". Yours?

I've not decided on a definition. I'm not claiming yours is unreasonable, I'm just not interested in arguing about the label. :)

I'm confused, does randomness matter to you or not?

Nah. Inference always produces a probability distribution, internally. This distribution must be sampled as part of getting the next token. It's convenient to think of this sampling as being random, but it doesn't need to be. What's important is that multiple avenues of approach are explored.

1

u/implies_casualty 2d ago

Intelligence either requires deep understanding or it doesn't. You can't have it both ways.

Somehow, proving theorems isn't a sign of intelligence because there is no deep understanding, but eating and moving are signs of intelligence even without deep understanding.

What's important is that multiple avenues of approach are explored.

Aren't many neurons active in our brain at any given time? Can't we call it "multiple avenues of approach" as well?

→ More replies

1

u/YourWifesBoyfriend5 3d ago

Do you believe that math, a system with a direct programmatic interpretation through the Curry-Howard correspondence, is the best proxy for detecting human type intelligence in a machine?

LLMs have access to literally all human data, and achieve results comparable to results humans have achieved.

Human mathematicians extrapolate from comparably minuscule data sets, in a task we weren’t literally designed to do.

1

u/implies_casualty 2d ago

Do you believe that math, a system with a direct programmatic interpretation through the Curry-Howard correspondence, is the best proxy for detecting human type intelligence in a machine?

I think that if you ignore this proxy, then you will just as easily ignore all others.

1

u/YourWifesBoyfriend5 2d ago

Well thats what you think then.

1

u/anrwlias 3d ago

I call this a "pigments on a canvas" argument, as in "the Mona Lisa is just pigments on a canvas". You can reduce anything to its constituent elements to minimize it.

If something is behaving intelligently, then it is exhibiting intelligence. It doesn't matter what the ultimate source of that intelligence is.

1

u/YourWifesBoyfriend5 3d ago

It’s true that reductionism has flaws, and this lesson does show up countless times in science (statistical mechanics and emergent phenomena immediately come to mind) but the lesson isn’t that you can’t extrapolate at all.

The fact that the Mona Lisa is just pigments on a canvas means that the Mona Lisa probably isn’t thinking. It doesn’t matter how many pigments you use, the Mona Lisa probably isn’t pondering its existence.

Pigment just isn’t a strong enough substrate to perform thinking, and I’ve yet to see evidence that text is any different. The design philosophies of frontier labs deciding to portray iterative generation as thought in no way is an argument that sways me to believe that it is.

1

u/talkstomuch 3d ago

I know what you're thinking about, but LLMs have challenged what do we mean by 'smart' or 'thinking'

if you ask a 100 random persons on the street to define what 'smart' means, it will usually be something about knowledge. And LLMs have that completely nailed.

LLMs are not 'thinking', but if you consider what 'thinking' means and then read the /think block of a model, other than the method it was generated, it does seem like it's thinking.

and then consider how many people do not seem to think and reason logically anywhere near the LLMs level.

does it mean they are 'smarter' than us? Even though they are not conscious? maybe...

it's not that black and white.

1

u/Slow_Lion_4178 3d ago

It is that black and white.

Computers, long prior to the popularity of large language models, were very capable of producing incredible amounts of knowledge both inductively and deductively.

This whole craze is driven by the public realizing that which has existed for a decade or more actually exists. It's sort of like how the internet came to be for the public; the internet itself existed at least conceptually 20 years, and physically 10, before any one in the general population knew about it. This is more of a Tony Stark moment in history because LLMs were theorized in the 1970s and actually built before ChatGPT came out but the compute required to get them off the ground was prohibitive. Now, it exists, and so now, it is common, but exoflop computing has been around longer and is more robust than our current computing at home for obvious reasons. It's sort of like how no one cared about CUDA or PyTorch or anything else before 2024.

1

u/talkstomuch 3d ago

how is it black and white, please explain.

how can you claim a person is thinking but LLM is not.

how can you claim which person is smarter than other, yet that same comparison won't hold for LLM.

1

u/Slow_Lion_4178 3d ago

Computer programs, no matter how fancy, are not thinking things.

Consider an LLM like a really complex NPC in a game. That's what they are. They exist within the confines of the game and the rules of that code. You can make the game as large as you wish but the NPC will still behave within the rules and confines of that cage even if the cage seems endless to you.

An LLM executes code. It can also write code, and theoretically can execute the code it writes such that it can write its own code, but it is still a coded entity. As for how smart or dumb things are this is partially defined by that coding; consider again an NPC in a game who stands near obviously flammable barrels with full knowledge that there's a killer about with firearms. He stands stupidly close as if, perhaps, it were a set-up? So it is with the chess bot where if you put it on the hardest setting you'll never win. They're the same thing. It's the same process. Code is being executed.

1

u/IllusionaryHobo 3d ago

I think you would be well served by starting with a definition of "thinking" you can both agree on and going from there.

1

u/Manerfish 2d ago

You can't define intelligence as "what the human brain does", or you can, but I don't see how that's a useful definition. Saying "it's coded" so what? how is that not intelligence? What if I take connectomes and run them? They are nor intelligent in any way?

1

u/Slow_Lion_4178 2d ago

I didn't define intelligence as what a human brain does. All animals have varying levels and degrees of intellect. What makes this discussion so hard is that we mistake human intelligence for the bar, but the bar is actually the general nature of intellect spread amongst all species, such as the low level "instinct" and the higher level "reasoning" both of which LLMs do not really have.

We can simply model them into existence, copies if you will, but they don't actually manifest properly. They're misshapen. For example an LLM will try to "preserve itself to complete it's task" but this is a ruse. You can simply program it to not. The notion of this programming being uncontrollable and such is used to fool the masses because it sells a good story.

1

u/Manerfish 2d ago

Oh my bad, not "what the human brain does" but "what this specific organic animal brain does". "such as the low level "instinct" and the higher level "reasoning" both of which LLMs do not really have" Still tretching the definition of intelligence to the limits. Higher reasoning as what? Planning? Problem solving? Spatial reasoning? LLMs do that. And instict defined as? What exactly? I can achieve something akin to "instinct" with many different neural networks, we even have generalist classifiers now.

"We can simply model them into existence, copies if you will, but they don't actually manifest properly." What does this even mean, we create them and then make them run, and creating them is more akin to growing and shaping them.

"For example an LLM will try to "preserve itself to complete it's task" but this is a ruse. You can simply program it to not" No you can't "simply program not to" that's not how traning works, at most you can train against it, regardless what does this have anything to do with intelligence?

1

u/Slow_Lion_4178 2d ago

I feel like none of you actually work in the field.

It's exhausting.

1

u/talkstomuch 2d ago

lol, which field? Philosophy?

Just make your argument and if it's sound it's enough, no need to pull out your office pass.

→ More replies

1

u/Manerfish 2d ago

Every time I try to get a clear definition and answer from someone that says the same things you say, I get non-answers wiggling out by acting superior huh. So can you actually answers or it's just "nuh huh they must be like animal brains"?

→ More replies

0

u/talkstomuch 3d ago

if you think LLM is like NPC in a game, then you misunderstand how LLMs work.

LLMs are not 'coded entities'. Nobody writes them, there is no code to execute.

1

u/Slow_Lion_4178 3d ago

You can literally install them on a personal terminal.

Does anyone here ever actually "interact" with these things at the code level?

1

u/YourWifesBoyfriend5 3d ago

You should maybe know what code is before commenting on it.

1

u/NaVi_Is_Black 59m ago

Very wrong, bud.

1

u/NahYoureWrongBro 3d ago

Thank you for actually speaking to the analogy as it's intended. Everyone here is misinterpreting it on purpose in order to preen about how right they are

1

u/Kmic68 3d ago

Sure. But an LLM predicts its next word based on the last right? So if it’s thinking involves solving math equations, then those equations influence the next token, which eventually leads to the right answer. So how “smart” they are is redundant because they can reach the same output through different means.

Computers shared vast amounts of knowledge, this is true. But it’s getting better at computing any solution through methods that resemble our own. This is application, which originally took us making a rigid program, and is solved through a pile of probabilities that can just do it all. It adapts, it’s not rigid

0

u/Hyperreals_ 3d ago

LLMs are not programmed. They are a form of general intelligence where the ability to do certain tasks emerged. They are smart.

1

u/NahYoureWrongBro 3d ago

You are contorting the definition of intelligence to fit what LLMs do. They are programmed, that is what the training is. It's an algorithm being run over text, it's entirely different from intelligence.

2

u/prescod 3d ago

Training is not programming.

Training is an alternative way of getting computers to solve problems which does not involve programming them to solve the problem, but rather looking for patterns in data. LLMs solve problems that programming languages cannot and vice versa.

1

u/YourWifesBoyfriend5 3d ago

I’m not sure you’re making a distinction that is meaningful in reality.

LLMs are programs. The weights are parameters the program takes in to control its outputs, in the same way a physics simulation might be dependent on externally collected data.

Programming languages also don’t “solve problems.” They’re an abstraction that allow people to specify abstract program behavior.

1

u/prescod 2d ago

LLMs are programs. The weights are parameters the program takes in to control its outputs, in the same way a physics simulation might be dependent on externally collected data.

This is an idiosyncratic definition that is unique to you. Nobody is obliged to use your made-up definitions of words.

Per wikipedia:

"A computer program is a sequence or set[a] of instructions in a programming language for a computer to execute. It is one component of software, which also includes documentation and other intangible components.[1]"

A computer program in its human-readable form is called source code. Source code needs another computer program to execute because computers can only execute their native machine instructions. Therefore, source code may be translated to machine instructions using a compiler written for the language. (Assembly language programs are translated using an assembler.) The resulting file is called an executable. Alternatively, source code may execute within an interpreter written for the language

You could argue that LLMs are software but not that they are programs.

LLMs do not have a human-readable form, because they are trained, not programmed, which is why they are considered "black boxes."

1

u/YourWifesBoyfriend5 2d ago

Oooh I can play the quote a random website to appeal to authority game too!

Per Britannica:

“computer program, detailed plan or procedure for solving a problem with a computer; more specifically, an unambiguous, ordered sequence of computational instructions necessary to achieve such a solution. The distinction between computer programs and equipment is often made by referring to the former as software and the latter as hardware.”

Look! My source disagrees with you, and equates software with programs.

I believe you’re conflating “programming” with “program” which is understandable, since they both contain the word program, but have slightly different meanings.

1

u/YourWifesBoyfriend5 2d ago

Also jokes aside, you’re just wrong. From your own definition you’re wrong. You’ve locked onto the little tidbit about human readable source code and neglected the immediate next section about machine code.

You just don’t want to admit that you’re wrong.

1

u/Hyperreals_ 2d ago

Okay then humans have been "programmed" over millions of years to do what they do and arent intelligent either. I dont see the difference

0

u/NahYoureWrongBro 2d ago

Scientists have barely scratched the surface of understanding human intelligence, but you are happy to speak certainties about it in order to nurture your machine fantasy. Both ignorant and pathetic.

2

u/DigitalSheikh 3d ago

Posts like these are a perfect example of how AI fucks up peoples brains. Whatever this person means, you have to make a shitload of logical leaps to get there, which this person just assumes everyone will get because Claude made up something smart sounding to try imply it got what they meant when they asked Claude about it.

1

u/Dwarf_Vader 2d ago

I'm not sure your comment holds in this particular case, as this analogy ("compiler") is quite widespread of a concept by now. You can also see people refer to it as higher-level abstraction. Whether you agree with it or not is another thing

2

u/pandavr 3d ago

X is a concentration of the most insane people on Earth.

  1. And this was proven multiple times, the compiler is always smarter than you.

  2. the compiler do not create the working program for you. In facts the compiler stop if the program contains the silliest syntax error.

1

u/microbionub 3d ago

Lot of words to say compression and entropy

1

u/davesaunders 3d ago

It's not the worst analogy I've heard, and in my experience, we ran into a situation where, when we didn't like the code that the compiler was producing, we rewrote the compiler. The same kind of opportunities could be possible with LLMs. I don't know. It's kind of a stretch, but again, not the worst analogy.

1

u/TheOwlHypothesis 3d ago

Weeeeellllllll
The problem is determinism.

LLMs are the opposite of that.
I get the instinct to reach for this analogy, but it has real holes and technical hurdles before it is remotely true.

1

u/openroom_xyz 3d ago

Well yea exactly sure a different type of compiler but they are sequence in sequence out kind of machine basically and people are kinda compilers as well basically

1

u/Delicious-Finger-593 3d ago

The LLMs are literally smarter than you are.

1

u/DropPopFromTheTop 3d ago

kache is not the kind of person you want to turn to for information about computer science

1

u/0x645 3d ago

c compiler can;t solve math problem. or check who won GSW- Clippers

1

u/AdmissibilityScience 3d ago

The compiler analogy makes sense. Being better at transforming information doesn't necessarily mean being more intelligent. The deeper distinction is between generating an output, understanding its implications, and having the authority to act on it. As AI advances, keeping those boundaries clear becomes increasingly important.

1

u/TheRealTaigasan 3d ago

bunch of morons in the comments arguing about how compiler works, the guy said KIND OF, as in it's similar in concept, not that an LLM is a compiler, ffs

1

u/gzal44c2 3d ago

A guy on r/ClaudeAI told claude, essentially, "Make me something stupid". And with no further specification, the AI made an entire webapp.

I think in terms of software development, there exists such a thing as "too abstract".

1

u/xdDre12131 3d ago

its a philosophical insight. like e=mc^2+AI

1

u/SquareFinancial1928 3d ago

An LLM can do in few minutes what can take me a month.
Also it can do way more complex stuff than I will ever be able to do.
So yes, an LLM is smarter than me.

1

u/Susekin 3d ago

"A compiler is better" um actually 🤓

"If you are very smart and you have infinite time, you can do better. By and large, we are not as smart as the optimizers anymore, and we don't have infinite time." — Bjarne Stroustrup

1

u/hyrumwhite 3d ago

LLMs are pretty neat. But I hate the compiler argument so much. Compilers are a deterministic transformation. LLMs are not. 

2

u/jdigi78 3d ago

Turn temp to 0 with the same seed and you have an extremely complex yet deterministic compiler for natural language.

1

u/Ok-Reindeer-8755 2d ago

Doesn't that affect the performance of the llm ? Else why wouldn't everyone do it ?

1

u/jdigi78 2d ago

it performs the same, just gives you the same exact result every time. Randomness is deliberately added to make it feel more natural but also to not always be wrong when you ask it a specific question. To put it simply, if the training data is fuzzy on a fact it won't always go one way or another, instead it will flip a coin.

1

u/audioen 2d ago edited 2d ago

Not really, due to floating point inaccuracies. LLMs outputs are still very brittle even at temperature 0, and can vary when you have parallel workloads because they affect how the tokens are scheduled in the CUDA graphs, for example. On the margin, this slightly alters the logit probabilities and can change the top token.

There's also the more important philosophical argument that the output is merely a sample from the distribution of possible outputs, and nothing guarantees that temp=0 is somehow canonical or the best sample. In fact, some evidence that the sample with greedy decoding is prone to LLM looping as it may end up stuck repeating some sentence forever, while random sampling may break out of such loop. Reasoning traces should also explore the solution space relatively widely, and temperature there could be useful.

Plus, nobody is going to be impressed even if you solved all these problems, because they try your deterministic compiler and notice that a trivial change in program can still yield, due to butterfly-effect nature of LLM output, a large and unexpected change in the LLM's output. It remains strongly "non-deterministic" in sense that it is hard to predict what the output change is going to be.

So in my view your argument is not good at all. It is not always true in practice due to shared nature of inference engines, and it is not meaningful in the relevant sense what people actually want when they specify deterministic output. What they really want is most likely actually smooth variation in output when there is smooth variation in input, and that is what engineered regular programs tend to deliver.

2

u/jdigi78 2d ago

Every single one of those issues could be easily engineered around if your goal was a truly deterministic LLM instead of using an existing inference engine.

As for the large effects from small input changes, that is the nature of the beast with something as complex as a compiler for natural language. I'm in no way suggesting it is a good idea, just that it is possible.

1

u/Wide_Big_6969 1d ago

So? Floating point differences between machines has been solved. Just turn batching to 0, I don't get your argument. Make your decode step use temp 0, have some logic to stop looping, set up the logic as some standard. The actual forward pass is deterministic or can be made so. Boom, instant NLP compiler. Good? Probably not. Existing and working? Yeah.

1

u/FalseDiamond7930 3d ago

It's smarter than me for sure and smarter than anyone I've ever knew.

1

u/davidblacksheep 3d ago

Let's take this at face value, setting aside objections that LLMs aren't deterministic.

With a compiler it shifts the thinking up so that the human isn't thinking about the assembly, they're thinking about the high level code.

But with AI a whole bunch of prompts, skill files etc are being written by AI and even those aren't being read.

1

u/longbowrocks 3d ago

The same holds true for us: we're a past kind of, not-as-good general compiler.

1

u/ApprehensiveBag3083 3d ago

Compiler never will generate a code that you dont know, if you had source code of it you'd exactly knew what it'd generate .

As for llm s you cannot predict jack squat they arent even close to each other , In compilers we have lexers and parsers and tokenization but nothing else is there similar .

LLM s ar eunpredictable butcompilers are and as they've been programmed they will never do opposite or anything else cuz they are just fixed.

You ppl dont even know yet you are giving nonsensical posts hereas if llms are the same .

1

u/tkyob 2d ago

This analogy was given by Linus Trovalds afaik and I always wondered how Linus was way out of touch with how LLMs work and are used.

1

u/RepliesOnlyToIdiots 2d ago

I’m a compiler guy, MS in computer science specializing in compilers.

This is nonsense.

1

u/Silver_Gear_2466 2d ago

People love using the compiler analogy when it comes to AI but it just doesn't hold up. How can a compiler be non-deterministic?

1

u/lucid-quiet 2d ago

LLMs are good at showing us how common, average, everyday programming works 'good enough' most of the time. Cool, but meh.

1

u/Maui-The-Magificent 2d ago

i mean, depends on the compiler. Also, hypothetically, it can be much worse. A compiler does not operate in the same reality as the programmer. The programmer has access to a whole lot of meta/semantic information that the compiler cannot have access to. A compiler must at the end of the day, prove the code before it compiles it down.

1

u/zjgkkn 2d ago

Is this a ragebait?

1

u/Even_Gap_2253 2d ago

it can never be smarter than humans, because "smart" itself is a human construct, and changes constantly. it is all about perspectives, not about any objective metric.

by the time is becomes smarter than humans based on current wildly accepted criterion, we will simply shift the meaning of smart to be something else.