Udacity ML lecture explaining the Curse of Dimensionality: as features grow, the data needed to generalize grows exponentially, making distance-based methods hard.
Key Takeaways
- Adding features increases the data needed for accurate generalization exponentially, so more features is not automatically better
- Distance-based methods like k-NN suffer when many features are irrelevant because they treat all dimensions as equally important
- Feature selection and relevance assessment are critical before relying on similarity measures in high-dimensional spaces
What the video covers
- Introduces the Curse of Dimensionality as the problem that data requirements grow exponentially as the number of features/dimensions increases
- Explains that exponential growth is effectively untenable in computer science, so more features cannot be simply added without consequences
- Criticizes the popular press's loose use of the word 'exponentially' to mean simply 'a lot'
- Describes the instinct in machine learning to keep adding features (sensors, GPS, time of day) and sort out importance later
- Argues that each added dimension multiplies the amount of data needed to generalize accurately
- Notes that distance or similarity functions assume all features are equally relevant, which is often false
- Points out that irrelevant features wash out distance measures, requiring much data to discover which features matter
- Relates the problem to the difficulties of k-nearest neighbors (k-NN)
- The speaker promises to draw a picture to build intuition for the concept
Chapters
- 00:00Introducing the Curse of Dimensionality
- 00:10Defining exponential data growth with more features
- 00:16Exponential as a meaningful term vs. popular misuse
- 00:36Why more features are a problem in machine learning
- 00:54Irrelevant features and distance functions in k-NN
- 00:59Transition to drawing an illustrative picture
Full Transcript — Download SRT & Markdown
Speaker A
Okay, Michael. So this notion of having different features or different dimensions throw us off has a name and it's called the Curse of Dimensionality.
Speaker A
Oh, nice audio effect. I did like that effect in post-production. And it refers to well, a very particular thing. So let me just read out what it refers to. As the number of features or equivalently ,uh, dimensions grows that
Speaker A
is as we add more and more features we go x of 1, x of two then we add x of three, add more and more of these features. As those features grows or as the number of dimensions grow ,the amount of data ,that we
Speaker A
need to generalize accurately also grows exponentially. Now this is a problem of course because Exponentially means, bad in computer science land because when things are exponential they're effectively untenable.
Speaker A
You just, you just, you sort of can't win. I think everybody knows that in the sense that if you look, I've done this experiment actually, if you look in the popular press like, you know, Time Magazine Or New York Times, USA Today. People will use
Speaker A
the word exponentially sometimes to mean exponentially, and sometimes to mean, a lot. Yeah that's actually a pet peeve of mine.
Speaker A
The whole notion of, Me too. Oh, it's exponentially bigger. No, that's, that's not meaningful. If you're saying I have one point. And then I have another point, and I want to say this one point is exponentially bigger than this one. That's
Speaker A
meaningless! It's also liberally bigger than that one. Exponentially refers to a trend. Again, their,their,their not talking about the mathematical relationship. They just mean a lot.
Speaker A
Okay, so they're wrong. And it bothers me deeply but I'm willing to accept it for the purposes of this discussion. Okay.
Speaker A
Exponentially means bad. It means that we need more, and more, and more, and more data as we add features and dimensions. Now as a machine learning person this is a real problem right, because What you want to do,
Speaker A
or like what your instinct tells you to do is, oh ,we've got this problem, we've got a bunch of data, we're not sure what's important. So why don't we just keep adding more and more and more features. You know, we've got all these sensors and we'll just add this
Speaker A
little bit and this little bit, and we'll keep track of GPS location and we'll see the time of the day and we'll just keep adding stuff and then we'll figure out which ones are important. But the curse of dimensionality says that every time you add another one
Speaker A
of these features. You add another dimension, to your input space, you're going to need exponentially more data, as you add those features, in order to be able to generalize accurately.
Speaker A
Mm. This is a very serious problem, and it sort of captures, a little bit of what the difficulties are in k and n. If you have a di, if you have distance function or a similarity function, that assumes that
Speaker A
everything is Relevant, or equally relevant, or important, and some of them aren't. You're going to have to see a lot of data before you can figure that out, sort of before it washes itself away.
Speaker A
[CROSSTALK] Yeah, that makes a lot of sense. Yeah, it seems a little scary. So, you know, I think you can say these words, and the words sort of make sense, but I think it helps to kind of draw a picture,
Speaker A
and so I'm going to draw a little picture. Okay? Yeah. All right.
Topics:curse of dimensionalitymachine learningfeature selectionk-nearest neighborsgeneralizationhigh-dimensional datadistance functionUdacityGeorgia Tech











