r/programmingmemes 14d ago

tITLES

Post image
303 Upvotes

43 comments sorted by

View all comments

48

u/SKRyanrr 14d ago

Tell me you know nothing about LLMs without telling me

-1

u/ZEI_GAMES 13d ago

The Neurons in AI actually do kind of behave like if elses based on their weights and some other factors.

But they are not just literal code comprised of if else conditions.

5

u/cowlinator 13d ago

They do not, because if/else is binary on/off, and the neuron activation function is a gradient.

1

u/USERNAME123_321 13d ago

Actually, the simplest form of a perceptron neuron activation, the Heaviside step function, is essentially a binary if-else statement. The reason we moved away from that if-else structure is for trainability. Because the step function is discontinuous, it has no meaningful derivative, which makes it impossible to use gradient-based optimization like backpropagation.

1

u/x0wl 12d ago edited 12d ago

This is not entirely true, e.g. ReLU also has no derivative at 0, and is widely used with backpropagation. In practice, we often just set ReLU'(0) = 0 and carry on.

ReLU-like functions that are actually differentiable everywhere (e.g GELU, SwiGLU etc) became popular only fairly recently (and honestly for reasons other than differentiability, see https://arxiv.org/pdf/1606.08415).

0

u/ZEI_GAMES 13d ago

Well that depends on how you see it. This a methaphor we are talking about. In its simplest form both are conditional based outcomes. Be it binary, a gradient, or even multi dimensional.

2

u/cowlinator 13d ago

if-else's are all conditionals, but not all conditionals are if-else's

And i can't imagine a gradient activation function being described as "behaves like if-else's" since they have so little in common. Though I suppose that is a matter of opinion.

2

u/ZEI_GAMES 13d ago

if-else's are all conditionals, but not all conditionals are if-else's

This is literally my point. What they have in common their conditional based behavior. Not that they have the same capabilities.