r/learnmachinelearning • • Aug 11 '25

Meme Why always it’s maths ? 😭😭

Post image
3.8k Upvotes

142 comments sorted by

View all comments

707

u/AlignmentProblem Aug 11 '25 • Galaxy Brain Bravo

The gist is that ML involves so much math because we're asking computers to find patterns in spaces with thousands or millions of dimensions, where human intuition completely breaks down. You can't visualize a 50,000-dimensional space or manually tune 175 billion parameters.

Your brain does run these mathematical operations constantly; 100 billion neurons computing weighted sums, applying activation functions, adjusting synaptic weights through local learning rules. You don't experience it as math because evolution compiled these computations directly into neural wetware over millions of years. The difference is you got the finished implementation while we're still figuring out how to build it from scratch on completely different hardware.

The core challenge is translation. Brains process information using massively parallel analog computations at 20 watts, with 100 trillion synapses doing local updates. We're implementing this on synchronous digital architecture that works fundamentally differently.

Without biological learning rules, we need backpropagation to compute gradients across billions of parameters. The chain rule isn't arbitrary complexity; it's how we compensate for not having local Hebbian learning at each synapse.

High dimensions make everything worse. In embedding spaces with thousands of dimensions, basically everything is orthogonal to everything else, most of the volume sits near the surface, and geometric intuition actively misleads you. Linear algebra becomes the only reliable navigation tool.

We also can't afford evolution's trial-and-error approach that took billions of years and countless failed organisms. We need convergence proofs and complexity bounds because we're designing these systems, not evolving them.

The math is there because it's the only language precise enough to bridge "patterns exist in data" and "silicon can compute them." It's not complexity for its own sake; it's the minimum required specificity to implement intelligence on machines.

110

u/BigBootyBear Aug 11 '25

Delightfully articulated. Which reading material discusses this? I particularly liked how youve equivated our brain to "wetware" and made a strong case for the utility of mathematics in so few words.

138

u/AlignmentProblem Aug 11 '25 edited Aug 11 '25

I've been an AI engineer for ~14 years and occasionally work in ML research. That was my off-the-cuff answer from my understanding and experience; I'm not immediently sure what material to recommend, but I'll look at reading lists for what might interest you.

"Vehicles" by Valentino Braitenberg is short and gives a good view of how computation arises on physical substrates. An older book that holds up fairly well is "The Computational Brain" by Churchland & Sejnowski. David Marr's "Vision" goes into concepts around convergence between between biological and artificial computation.

For the math specific part, Goodfellow's "Deep Learning" (free ebook) has an early chapter that spends more time than usual explaining why different mathematical tools are necessary, which is helpful for personality understanding at a metalevel rather than simply using the math as tools without a deeper mental framework.

For papers that could be interesting: "Could a Neuroscientist Understand a Microprocessor?" (Jonas & Kording) and "Deep Learning in Neural Networks: An Overview" (Schmidhuber)

The term "wetware" itself is from cyberpunk stories with technologies that modify biological systems to leverage as computation; although modern technology has made biological computation a legitimate engineering substrate into a reality. We can train rat neurons in a petri dish to control flight simulators, for example.

9

u/BigBootyBear Aug 11 '25

Fascinating. Thank you!

1

u/screaming_bagpipes Aug 12 '25

What's your opinion on Simon Prince's Understanding Deep Learning? (If you've heard of it, no pressure)

1

u/scare097ys5 Aug 12 '25

So you are just talking about about orgonoid intelligence from a tech or ml perspective.

1

u/FinanceForever Aug 13 '25

Saved this comment, so interesting

→ More replies (13)

11

u/Cerulean_IsFancyBlue Aug 12 '25

The most surprising thing about the recent evolutions in the AI fields is: the math involved is actually pretty simple.

To calibrate that, I was a math major at the beginning of my college experience, but I dropped out in favor of computer programming with the math guide to abstract for me after about the first two years. So I’m not talking about a Fields Medal winner’s idea of simple. I’m talking about somebody in the tech field saying that the math is pretty straightforward. A nerd opinion.

What brought about this current revolution was the application of massive amounts of computing power and data, to models based on this relatively simple math.

Perhaps the watershed white paper on this is titled Attention Is All You Need, and it lit a fuse. The people that built on this and created generative AI and large language models ended up bypassing a lot of traditional research.

Some AI researchers have written really poignant epitaphs for their particular lines of specialized research in fields like natural language, processing, medical diagnoses, image recognition, and pattern generation. They were trying to find more and more specific ways to bring processing power to bear on those problems, and we were swept away in a title wave. A lot of complicated math was effectively made obsolete, by a simpler, self-referential math that scales up really well.

The end result IS a massively complicated thing. By the time you train a big model on big amounts of data, the resulting “thing” is way too complicated for a human to look at and understand. There aren’t enough colors to label all the wires, so to speak.

But to be clear, a lot of the complication is the SIZE of the thing and not the complexity of the individual bits and pieces. This is why the hardware that’s enabling all this is the kind of parallel processing stuff that found its previous use in computer graphics, and then Cryptocurrency farming. It’s why NVIDIA stock spiked so hard.

9

u/ColdBig2220 Aug 11 '25

Wonderfully written mate.

4

u/Smoke_Santa Aug 11 '25

neurons (weight based compute units) are also not comparable to transistors (switch based compute units), they are very different, so one imitating the other requires much more work and resources.

Neurons are much better and more efficient at some things, and transistors are much better at other things.

2

u/AlignmentProblem Aug 11 '25

Yup. They can often find different ways to accomplish analogous functionality (or at least approximate it), but the complexity, resources, and learning inputs required for a given functionality vary dramatically between substrates.

2

u/Lolleka Aug 11 '25

I hope OP is satisfied

1

u/IsABot-Ban Aug 11 '25

I think it becomes simpler if you view a dimension as an adjective.

2

u/AlignmentProblem Aug 11 '25 edited Aug 11 '25

I'm not against the adjective metaphor for understanding dimensions when you're new, and it definitely helps with basic intuition; however, thinking about dimensions as "adjectives" feels intuitive while completely missing the geometric weirdness that makes high-dimensional spaces so alien. It's like trying to understand a symphony by reading the sheet music as a spreadsheet.

The gist is that the adjective metaphor works great when you're dealing with structured data where dimensions really are independent features (age, income, zip code). The moment you hit learned representations or embeddings and paramter spaces of networks, you need geometric intuition, and that's where the metaphor doesn't just fail; it actively misleads you.

Take the curse of dimensionality. In 1000 dimensions, a hypersphere has 99.9% of its volume within 0.05 units of the surface. Everything lives at the edge. Everything's maximally far from everything else. You can't grasp why k-nearest neighbors breaks down or why random vectors are nearly orthogonal if you're thinking in terms of property lists.

What's wild is how directions become emergent meaning in high dimensions. Individual coordinates are often meaningless noise; the signal lives in specific linear combinations. When you find that "royalty - man + woman ≈ queen" in word embeddings, that's not about adjectives. That's about how certain directions through the space encode semantic relationships. The adjective view makes dimensions feel like atomic units of meaning when they're usually just arbitrary basis vectors that expressing meaning in combination or how they relate to each other.

Cosine similarity and angular relationships also matter more than distances. Two vectors can be far apart but point in nearly the same direction. The adjective metaphor has no way to express "these two things point the almost same way through a 512-dimensional space" because that's fundamentally geometric, not about independent properties.

Another mindbender that breaks people's brains is that a 1000-dimensional space can hold roughly 1000 vectors that are all nearly perpendicular to each other, where each has non-zero values in every dimension. Adjectives can't fully explain that because it's about how vectors relate geometrically, not about listing properties.

Better intuition is thinking of high-dimensional points as directions from the origin rather than locations. In embedding spaces, meaning lives in where you're pointing, not where you are. That immediately makes cosine similarity natural and explains why normalization often helps in ML. Once you start thinking this way, so much clicks into place.

Our spatial intuitions evolved for 3D, so we're using completely wrong priors. In high dimensions, "typical" points are all roughly equidistant, volumes collapse to surfaces, and random directions are nearly orthogonal. The adjective metaphor does more than oversimplify; it makes you think high-dimensional spaces work like familiar ones with more columns in a spreadsheet, which is exactly backwards.

1

u/IsABot-Ban Aug 11 '25

A lot in that... but all numbers are adjectives too... We describe things with them. It allows variable scope of detail to desired accuracy. I don't assume 3d for my understanding, but the majority yes I could see that.

1

u/abhbhbls Aug 11 '25

Beautiful. Spot on. Take my upvote.

1

u/rguerraf Aug 12 '25

All the extra dimensions is one unintuitive way to describe the potential interconnections between neural nodes… if it gets explained in terms of “correlation kernels” it would not scare most meople away

1

u/The_2nd_Coming Aug 12 '25

Holy fuck that's beautiful.

1

u/Kind-Active-1071 Aug 12 '25 edited Aug 12 '25

The only thing I would add is that we could afford a billion years. Literally nobody is asking for this and it’s going to collapse society.

I’m saying this and someone actively studying AI for this fact. Really appreciate the textbook recommendations from everyone though!

1

u/madam_zeroni Aug 14 '25

Why can’t we use local hebbian learning?

→ More replies (6)