Live data from Hacker News

Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

arxiv.org

161–170 of 177 posts

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#161

Earlier quoted context omitted.

ML researchers saying they need "category theory" sounds like a way to try to convince mathematicians that their work is cool. You absolutely do not need category theory. Math is just models? Lol!

The parent didn't say category theory is necessary to conducting ML research, just that it could be useful. This point isn't particularly controversial. If you're interested in this niche of the field, I find Tai-Danae Bradley's work to be pretty cool! She has a site: https://www.math3ma.com/

Thanks for the reply. I'm glad my comment is no longer flagged.

What do you mean that "this point isn't particularly controversial?" If you just mean that "X may be useful", then of course. But the particular X matters, and "could be useful" is much different than "is useful".

People who like category theory want it everywhere. I don't know your mathematical background, but spend any time in a math department, or even classes, and you'll find people ready to explain any topic in the language of CT.

The may be useful, but it has to be justified. It's clear in some mathematical contexts, but definitely not in ML (yet alone analysis).

ML has a problem in that no one knows what certain methods work. Just look at something like batch normalization: I can think of at least 3 different "explanations" on why it works.

ML people want explanations, and mathematicians need work. Category theorists therefore have work. But I don't think you should mistake this as being an explanation. You just get a nice get a "cleaner way" to present concepts.

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#162

Earlier quoted context omitted.

Between 0% and idk 70%? depending on what you're doing.

Looking at the theory as a whole it’s a very small minority. I’m trying to think if it’s 0 percent outside of backprop… Arguably high school math gets you quite a bit of understanding. After that in descending order I’d guess Linear Algebra, Statistics/Probability, Basic Calculus, Partial Derivatives… In other words it’s not all or nothing. The easiest stuff gets you a lot of bang for your buck.

Are you a researcher in ML? What is your focus? I'm in image synthesis/explicit density modeling.

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#163

Earlier quoted context omitted.

That answer isn't very compelling as it is one of the most well known equations in ML. There are some very minor errors but nothing that changes the overall meaning. But you even seem to agree with me in your followup: don't rely on it, but use it. I'm only slightly stronger than you. And stop all this 3.5 vs 4 nonesense. We all know 4 is much better. But there's plenty of literature that shows its limits, especially…

You also don't understand stochastic parrots You have a parrot that can paint original pictures, compose original songs and essays, and translate math into both English and program code? I would like to buy your parrot. I'll keep it in my Chinese room. There used to be a guy in there, but he ran away screaming something about a basilisk.

> You have a parrot that can paint original pictures, compose original songs and essays, and translate math into both English and program code?

Kinda, kinda, yes, and yes.

I think there's far less originality than most people think. But it's not surprising when your job isn't leading you to look at thousands of pictures a day. I have yet to see a generative model that isn't pulling heavily towards the training data and you might be noticing the memorization rates are getting higher. But yes, a stochastic parrot doesn't mean memorization, it is about generalization and the stability around the p-norm ball around the training data.

Btw, what's wrong with a stochastic parrot? They are absolutely fucking useful. I use them every day. Hell, I even use things that are complete memorizations and all compression every day. What's with everyone equating powerful statistical systems with uselessness. Anyone saying that they aren't extremely useful is pulling wool over their eyes (but the same is true for anyone claiming baby AGI).

I'd also appreciate it if you discussed in good faith. The snarkiness is not appreciated.

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#164

Earlier quoted context omitted.

ML researchers saying they need "category theory" sounds like a way to try to convince mathematicians that their work is cool. You absolutely do not need category theory. Math is just models? Lol!

The parent didn't say category theory is necessary to conducting ML research, just that it could be useful. This point isn't particularly controversial. If you're interested in this niche of the field, I find Tai-Danae Bradley's work to be pretty cool! She has a site: https://www.math3ma.com/

There's also the cats.for.ai group and this nice github: https://github.com/bgavran/Category_Theory_Machine_Learning

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#165

Earlier quoted context omitted.

The parent didn't say category theory is necessary to conducting ML research, just that it could be useful. This point isn't particularly controversial. If you're interested in this niche of the field, I find Tai-Danae Bradley's work to be pretty cool! She has a site: https://www.math3ma.com/

Thanks for the reply. I'm glad my comment is no longer flagged. What do you mean that "this point isn't particularly controversial?" If you just mean that "X may be useful", then of course. But the particular X matters, and "could be useful" is much different than "is useful". People who like category theory want it everywhere. I don't know your mathematical background, but spend any time in a math department, or eve…

> I'm glad my comment is no longer flagged.

FYI, I flagged you because the comment does not live up to the HN community standards[0]. A new account with just a comment to me made shortly after my comment was made just to say something sarcastic and does not contribute to the conversation. I decided to flag instead of commenting and continuing an unproductive exchange.

> People who like category theory want it everywhere.

This isn't surprising. It is an attempt at further generalization of mathematics. Albeit it can get annoying, it isn't wrong because cat theory is about looking from the high abstract level and making connections between differing branches of mathematics. If you don't see it everywhere you either don't have an understanding or have discovered something those people would really like to know. From personal experience, it can be a quite useful tool to describe things because of this.

> The may be useful, but it has to be justified.

The former begets the latter.

> Just look at something like batch normalization: I can think of at least 3 different "explanations" on why it works.

Are those the same thing? What are those?

> But I don't think you should mistake this as being an explanation. You just get a nice get a "cleaner way" to present concepts.

The latter is de facto the former.

And yes, math is just models. Or as Poincaré said, math is the study of relationship between numbers. One might also say "the map is not the territory" and you can find several math theorems making this point explicitly about math. You may even find one by reading my username with a little care. More than one if you take more care.

[0] https://news.ycombinator.com/newsguidelines.html

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#166

Is anyone using any of this math? My guess is no. At best it provides "moral support" for deep learning researchers who want to feel reassured that what they are attempting to do is not impossible. Glad to be proven wrong, though.

There's something I tell my students. You don't need math to make good models, but you do need to know math to know why your models are wrong. So yes, math is needed. If you don't have math you're going to hoodwink yourself into thinking you can get to AGI by scale alone. You'll just use transformers everywhere because that's what everyone else does and you'll get confused between activation functions. You'll make mo…

>If you don't have math you're going to hoodwink yourself into thinking you can get to AGI by scale alone.

There are many researchers who "have math" and still believe this.

Appeal to Authority is a fallacy at the best of times but it's usually a convincing one. Not so much when the authority hasn't formed consensus on the appeal.

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#167

Earlier quoted context omitted.

You also don't understand stochastic parrots You have a parrot that can paint original pictures, compose original songs and essays, and translate math into both English and program code? I would like to buy your parrot. I'll keep it in my Chinese room. There used to be a guy in there, but he ran away screaming something about a basilisk.

> You have a parrot that can paint original pictures, compose original songs and essays, and translate math into both English and program code? Kinda, kinda, yes, and yes. I think there's far less originality than most people think. But it's not surprising when your job isn't leading you to look at thousands of pictures a day. I have yet to see a generative model that isn't pulling heavily towards the training data a…

I'm not being snarky! I genuinely feel I'm the one being gaslighted, by people telling me I shouldn't be utterly blown away by answers like the earlier example, or the one I just received:

https://i.imgur.com/JSWLFOi.png

I regularly get downvoted and criticized for suggesting this tool to other students, in defiance of what I can clearly see happening with my own eyes. I see a tool that, if developed further, will answer much deeper questions, including original ones, just as accurately and effectively. One that appears capable of taking humanity to the next level so fast it will make the monolith in 2001 look like an abacus by comparison.

Meanwhile, you tell me, "Don't suggest this to other students, it might hallucinate." Other people say, "Shut this down at once (or nerf it beyond any possibile utility), it might hurt somebody's feelings." Another contingent warns, "Shut this down at once, it might start a nuclear war." Still other people say, "Shut this down at once, it violates copyright law." The objections just get dumber from there, yet gain traction by the day.

There's never been a time when standing in the way of something like this was right. Why should I think it's time to do so now? (And yes, I acknowledge that you're not personally 'standing in the way', but it really bugs me when people who claim they aren't 'standing in the way' of the technology tell other people not to use it.)

I have yet to see a generative model that isn't pulling heavily towards the training data

When's the last time you saw a human mind that didn't work that way? (Or, for that matter, a parrot's mind.) The real truth behind the stochastic-parrot metaphor is that parrots, stochastic or otherwise, are nothing all that special, and neither are we. We're just better at using tools than the birds are, that's all.

Or at least we were up until now. But muh COPYRITE!!!11! ...

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#168

Earlier quoted context omitted.

I only skimmed but I get the impression that sort of thing is common in the text. I think it's got the problem that deep learning "isn't really math" - in the sense that deep learning using indeed very elaborate computational structures that can be specified mathematically but it doesn't prove theorems about them - not theorems that characterize what's happening. The theorems are just hints about what might be happen…

> The theorems are just hints about what might be happening. Isn't this true everywhere? Certainly it is just, in the words of Asimov, the relativity of wrongness. I mean even physics is "just a hint" despite being an incredibly strong one. I think maybe a lot of people might not agree but I think a lot of people aren't as aware of all the research that still goes on in every day physics. Like studying ocean waves/cu…

> > The theorems are just hints about what might be happening.

> Isn't this true everywhere? Certainly it is just, in the words of Asimov, > the relativity of wrongness. I mean even physics is "just a hint" despite > being an incredibly strong one.

Well, sure, there is a relativity wrongness but the relativity to a context and in a given context, an agent (say you or I) has to judge whether the relative difference in the wrongness of two things means they're the same or they are different. In the context of the ideal, the laws of physics are limited. Relative astrology or other new age theories they're essentially true.

So, expanding my point, relative to many contexts, the distinction between a system you can reason about and one you can't tends to be a big distinction, even if you have mathematical analogies. A rocket can be send to the moon because we can reason about the laws of physics. A self-driving car, after also many years of trying and an interactive map etc, can often but not always get to the other side of town.

>...where I've given up trying to publish in Normalizing Flows because reviewers will ask why my works are not better than GANs...

Your efforts seem like the exception that proves the rule.

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#169

Earlier quoted context omitted.

Thanks for the reply. I'm glad my comment is no longer flagged. What do you mean that "this point isn't particularly controversial?" If you just mean that "X may be useful", then of course. But the particular X matters, and "could be useful" is much different than "is useful". People who like category theory want it everywhere. I don't know your mathematical background, but spend any time in a math department, or eve…

> I'm glad my comment is no longer flagged. FYI, I flagged you because the comment does not live up to the HN community standards[0]. A new account with just a comment to me made shortly after my comment was made just to say something sarcastic and does not contribute to the conversation. I decided to flag instead of commenting and continuing an unproductive exchange. > People who like category theory want it everywh…

> If you don't see it everywhere you either don't have an understanding or have discovered something those people would really like to know. From personal experience, it can be a quite useful tool to describe things because of this.

Get off your high horse. I've had my share of Mac Lane. If you can describe something in terms of CT, you can talk to mathematicians who care about CT. I don't see why this helps ML.

> The may be useful, but it has to be justified. "May be useful" does not beget "justified." CT may be useful in all areas if you ask a CT theorist. I fail to see how CT helps me build a car.

>The latter is de facto the former.

No it's not. You can take you favorite analysis topic and find a suitable category to view your topic from a CT perspective, but this won't tell you how to prove anything. If you did the CT correct you can now make some analogies, but it won't tell you anything specific.

> And yes, math is just models. Or as Poincaré said, math is the study of relationship between numbers. One might also say "the map is not the territory" and you can find several math theorems making this point explicitly about math.

How do you square "math is the study of relationship between numbers" with CT? You can diagram chase without seeing a single number. I have no idea what mathematical theorem you are referring to, but if you're extrapolating philosophical points from a mathematical theorem, you're doing it wrong

> You may even find one by reading my username with a little care. More than one if you take more care.

Ok I'll bite. You seem to be into Normalizing Flows. How does CT explain it being useful?

Re: Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory

#170

Earlier quoted context omitted.

if you have no mathematical background at all this isn’t the book for you i think. that is not really advanced mathematics although a little notationally dense. there are many good materials such as the fantastic fast.ai course that don’t require such mathematical background. if you are motivated to learn about ML, then studying the topic can gradually be a route in to more mathematical knowledge so that equations li…

all I am saying is every deep learning book I have ever opened is filled with mathematical stuff like this. I want to learn the mathematics for it but I need a starting point. Isnt there atleast one book in the entire world written with this in mind?

"Dive Into Deep Learning" may be good in that it usually has code alongside any mathematical notation: https://d2l.ai/index.html

I have not actually looked at it in detail, but the legendary Gilbert Strang, in addition to his classic linear algebra course, also has a course that aims to teach enough linear algebra to explain deep learning called "Linear Algebra and Learning From Data". Maybe this is also helpful.

Post reply on HN