Curse of Dimensionality

The curse of dimensionality is the set of problems that appear as the number of features grows. Volume grows exponentially with , so a fixed number of samples covers the space more and more thinly. Richard Bellman named the effect in 1957. Take data spread uniformly over the unit cube . A sub-cube that captures a fraction of the data needs edge length

where (ESL section 2.5). With , capturing of the data takes of each feature’s range, and capturing takes . Distances also lose contrast. Beyer et al. (1999) studied the distance from a query to a random data point. If its relative spread shrinks to zero, then

Here and are the largest and smallest distances from the query to the data points. The relative spread does shrink when the coordinates are independent and identically distributed. The main effects of high dimension are:

  • Volume near the boundary: the inner cube holds a fraction of the volume. For and , that is .
  • Volume in the corners: the inscribed ball holds a fraction of the cube. This is for and for .
  • Sparse samples: keeping the spacing between samples fixed takes samples where suffice in one dimension. Matching in ten dimensions the density of points in one takes points.
  • Distant neighbors: nearest-neighbor methods average over neighborhoods that span most of each feature’s range, so their estimates become biased.
  • Empty cells: a histogram with bins per feature has cells, and almost all of them stay empty.

Models can still learn in high dimensions when the data have structure. One common structure is a low intrinsic dimension, meaning the data lie near a surface of few dimensions. Others are a smooth target function and a target that depends on few features. PCA, regularization and convolutional networks all exploit such structure.

Intuition

The name comes from Bellman’s work on dynamic programming, where a grid over state variables needs exponentially many cells. In machine learning, every method that learns from nearby examples faces the same exponential count. In one dimension, samples on sit about apart. In ten dimensions, the same samples leave most of the cube far from every sample. A method that averages nearby examples then has none nearby. Its neighbors differ from the query in many features at once.

Geometry in many dimensions also differs from geometry in two or three. Almost all the volume of a cube sits in its corners and near its faces. Random points lie at nearly equal distances from each other. Methods that rely on a meaningful notion of “close” then work poorly. Examples are k-nearest neighbors and Gaussian kernels with a fixed width. Real data suffer less from these effects, because they do not fill the space. Photos of faces have millions of pixel values, but they vary in far fewer ways.

Properties

(Neighbors Are Far Away) Among uniform points in a ten-dimensional ball, the point nearest the center typically lies past the halfway mark.

Draw points uniformly in the unit ball of . ESL section 2.5 gives the median distance from the origin to the closest one:

With , it is for , for and for . ESL concludes that most data points are closer to the boundary than to any other data point. Predictions near the boundary extrapolate from neighbors that all lie on one side. A k-nearest-neighbor estimate in high dimensions therefore has large bias even with . Shrinking the neighborhood lowers the bias but leaves fewer points inside it, so the variance grows. Keeping both small takes exponentially more data (see 2.3.1. Bias-Variance Decomposition).

(Distances Concentrate) For independent uniform coordinates, the spread of squared distances relative to their mean shrinks like .

The squared distance between two random points adds independent terms . The Hard example computes their mean, , and variance, . The squared distance therefore has mean and standard deviation , a ratio of . With , it is , and with it is . By the central limit theorem, its distribution is close to a narrow Gaussian. Ranking points by distance then depends on small differences, which noise in a few features can reverse. Data with clusters or low intrinsic dimension fail the condition of Beyer et al., and their distances keep their contrast.

The left panel shows distances from a random query to 200 uniform points as grows. The right panel shows the edge a sub-cube needs to hold of the data.

\usepackage{tikz}
\usetikzlibrary{animations, arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\newcommand{\br}[3]{\filldraw[draw=black, fill=cold] (#1,0) rectangle (#2,#3);}
\newcommand{\cd}[1]{\filldraw[draw=black, fill=hot] (#1) circle (2pt);}
\begin{tikzpicture}[font=\small, >={Stealth[length=2.2mm]}]
\draw (0.90,0.00) -- (6.50,0.00);
\draw (0.90,0.00) -- (0.90,3.60);
\draw (0.90,0.00) -- (0.90,-0.08) node[below] {\footnotesize $0$};
\draw (3.70,0.00) -- (3.70,-0.08) node[below] {\footnotesize $0.5$};
\draw (6.50,0.00) -- (6.50,-0.08) node[below] {\footnotesize $1$};
\draw (0.90,0.00) -- (0.82,0.00) node[left] {\footnotesize $0$};
\draw (0.90,1.29) -- (0.82,1.29) node[left] {\footnotesize $50$};
\draw (0.90,2.57) -- (0.82,2.57) node[left] {\footnotesize $100$};
\node at (3.70,-0.62) {\footnotesize distance to the query $/$ largest distance};
\node[anchor=west] at (0.00,3.95) {$200$ uniform points in $[0,1]^d$};
\node[rotate=90] at (-0.05,1.80) {\footnotesize count};
\node[anchor=east] at (1.90,3.50) {$d$};
\node[anchor=east] at (3.75,3.50) {$\frac{\max - \min}{\min}$};
\draw (9.00,0.00) -- (14.40,0.00);
\draw (9.00,0.00) -- (9.00,3.75);
\draw[mid, dashed] (9.00,3.60) -- (14.40,3.60);
\draw (9.00,0.00) -- (9.00,-0.08) node[below] {\footnotesize $1$};
\draw (10.14,0.00) -- (10.14,-0.08) node[below] {\footnotesize $5$};
\draw (11.56,0.00) -- (11.56,-0.08) node[below] {\footnotesize $10$};
\draw (12.98,0.00) -- (12.98,-0.08) node[below] {\footnotesize $15$};
\draw (14.40,0.00) -- (14.40,-0.08) node[below] {\footnotesize $20$};
\draw (9.00,0.00) -- (8.92,0.00) node[left] {\footnotesize $0$};
\draw (9.00,1.80) -- (8.92,1.80) node[left] {\footnotesize $0.5$};
\draw (9.00,3.60) -- (8.92,3.60) node[left] {\footnotesize $1$};
\node at (11.70,-0.62) {\footnotesize dimension $d$};
\node[anchor=west] at (8.50,4.15) {edge $r^{1/d}$ of a sub-cube holding $r = 10\%$};
\begin{scope}[]
\node[anchor=east] at (1.90,3.05) {$2$};
\node[anchor=east] at (3.75,3.05) {$8.41$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.4s = "true", 25.04s = "true", repeats}}}]
\node[anchor=east] at (1.90,2.60) {$10$};
\node[anchor=east] at (3.75,2.60) {$2.05$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.8s = "true", 25.04s = "true", repeats}}}]
\node[anchor=east] at (1.90,2.15) {$100$};
\node[anchor=east] at (3.75,2.15) {$0.31$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10.2s = "true", 25.04s = "true", repeats}}}]
\node[anchor=east] at (1.90,1.70) {$1000$};
\node[anchor=east] at (3.75,1.70) {$0.12$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 13.2s = "true", 25.04s = "true", repeats}}}]
\br{5.66}{5.94}{0.03}
\br{5.94}{6.22}{1.80}
\br{6.22}{6.50}{3.32}
\node[anchor=east] at (6.50,3.95) {$d = 1000$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 2.8s = "false", 25.04s = "false", repeats}}}]
\br{1.46}{1.74}{0.21}
\br{1.74}{2.02}{0.10}
\br{2.02}{2.30}{0.15}
\br{2.30}{2.58}{0.26}
\br{2.58}{2.86}{0.13}
\br{2.86}{3.14}{0.33}
\br{3.14}{3.42}{0.31}
\br{3.42}{3.70}{0.41}
\br{3.70}{3.98}{0.41}
\br{3.98}{4.26}{0.33}
\br{4.26}{4.54}{0.54}
\br{4.54}{4.82}{0.39}
\br{4.82}{5.10}{0.46}
\br{5.10}{5.38}{0.36}
\br{5.38}{5.66}{0.26}
\br{5.66}{5.94}{0.23}
\br{5.94}{6.22}{0.15}
\br{6.22}{6.50}{0.10}
\node[anchor=east] at (6.50,3.95) {$d = 2$};
\node[anchor=west] at (0.0,-1.15) {$d = 2$: distances from a random query to $200$ uniform points spread widely.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.8s = "true", 3s = "false", 25.04s = "false", repeats}}}]
\br{1.46}{1.74}{0.17}
\br{1.74}{2.02}{0.09}
\br{2.02}{2.30}{0.13}
\br{2.30}{2.58}{0.22}
\br{2.58}{2.86}{0.11}
\br{2.86}{3.14}{0.29}
\br{3.14}{3.42}{0.27}
\br{3.42}{3.70}{0.38}
\br{3.70}{3.98}{0.39}
\br{3.98}{4.26}{0.37}
\br{4.26}{4.54}{0.54}
\br{4.54}{4.82}{0.43}
\br{4.82}{5.10}{0.50}
\br{5.10}{5.38}{0.40}
\br{5.38}{5.66}{0.29}
\br{5.66}{5.94}{0.30}
\br{5.94}{6.22}{0.17}
\br{6.22}{6.50}{0.09}
\node[anchor=west] at (0.0,-1.15) {$d = 2$: distances from a random query to $200$ uniform points spread widely.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 3.2s = "false", 25.04s = "false", repeats}}}]
\br{1.46}{1.74}{0.10}
\br{1.74}{2.02}{0.05}
\br{2.02}{2.30}{0.08}
\br{2.30}{2.58}{0.13}
\br{2.58}{2.86}{0.08}
\br{2.86}{3.14}{0.18}
\br{3.14}{3.42}{0.18}
\br{3.42}{3.70}{0.30}
\br{3.70}{3.98}{0.35}
\br{3.98}{4.26}{0.45}
\br{4.26}{4.54}{0.55}
\br{4.54}{4.82}{0.53}
\br{4.82}{5.10}{0.59}
\br{5.10}{5.38}{0.49}
\br{5.38}{5.66}{0.36}
\br{5.66}{5.94}{0.44}
\br{5.94}{6.22}{0.22}
\br{6.22}{6.50}{0.08}
\node[anchor=west] at (0.0,-1.15) {$d = 2$: distances from a random query to $200$ uniform points spread widely.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.2s = "true", 3.4s = "false", 25.04s = "false", repeats}}}]
\br{1.46}{1.74}{0.03}
\br{1.74}{2.02}{0.02}
\br{2.02}{2.30}{0.02}
\br{2.30}{2.58}{0.04}
\br{2.58}{2.86}{0.04}
\br{2.86}{3.14}{0.07}
\br{3.14}{3.42}{0.09}
\br{3.42}{3.70}{0.22}
\br{3.70}{3.98}{0.30}
\br{3.98}{4.26}{0.53}
\br{4.26}{4.54}{0.56}
\br{4.54}{4.82}{0.62}
\br{4.82}{5.10}{0.68}
\br{5.10}{5.38}{0.58}
\br{5.38}{5.66}{0.43}
\br{5.66}{5.94}{0.58}
\br{5.94}{6.22}{0.26}
\br{6.22}{6.50}{0.06}
\node[anchor=west] at (0.0,-1.15) {$d = 2$: distances from a random query to $200$ uniform points spread widely.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.4s = "true", 6.2s = "false", 25.04s = "false", repeats}}}]
\br{2.58}{2.86}{0.03}
\br{2.86}{3.14}{0.03}
\br{3.14}{3.42}{0.05}
\br{3.42}{3.70}{0.18}
\br{3.70}{3.98}{0.28}
\br{3.98}{4.26}{0.57}
\br{4.26}{4.54}{0.57}
\br{4.54}{4.82}{0.67}
\br{4.82}{5.10}{0.72}
\br{5.10}{5.38}{0.62}
\br{5.38}{5.66}{0.46}
\br{5.66}{5.94}{0.64}
\br{5.94}{6.22}{0.28}
\br{6.22}{6.50}{0.05}
\node[anchor=east] at (6.50,3.95) {$d = 10$};
\node[anchor=west] at (0.0,-1.15) {$d = 10$: every point is between $33\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 6.4s = "false", 25.04s = "false", repeats}}}]
\br{2.58}{2.86}{0.02}
\br{2.86}{3.14}{0.02}
\br{3.14}{3.42}{0.04}
\br{3.42}{3.70}{0.15}
\br{3.70}{3.98}{0.24}
\br{3.98}{4.26}{0.48}
\br{4.26}{4.54}{0.48}
\br{4.54}{4.82}{0.56}
\br{4.82}{5.10}{0.61}
\br{5.10}{5.38}{0.55}
\br{5.38}{5.66}{0.53}
\br{5.66}{5.94}{0.85}
\br{5.94}{6.22}{0.50}
\br{6.22}{6.50}{0.12}
\node[anchor=west] at (0.0,-1.15) {$d = 10$: every point is between $33\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.4s = "true", 6.6s = "false", 25.04s = "false", repeats}}}]
\br{2.58}{2.86}{0.01}
\br{2.86}{3.14}{0.01}
\br{3.14}{3.42}{0.03}
\br{3.42}{3.70}{0.09}
\br{3.70}{3.98}{0.14}
\br{3.98}{4.26}{0.28}
\br{4.26}{4.54}{0.28}
\br{4.54}{4.82}{0.33}
\br{4.82}{5.10}{0.36}
\br{5.10}{5.38}{0.41}
\br{5.38}{5.66}{0.67}
\br{5.66}{5.94}{1.30}
\br{5.94}{6.22}{0.96}
\br{6.22}{6.50}{0.26}
\node[anchor=west] at (0.0,-1.15) {$d = 10$: every point is between $33\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.6s = "true", 6.8s = "false", 25.04s = "false", repeats}}}]
\br{2.58}{2.86}{0.00}
\br{2.86}{3.14}{0.00}
\br{3.14}{3.42}{0.01}
\br{3.42}{3.70}{0.03}
\br{3.70}{3.98}{0.04}
\br{3.98}{4.26}{0.09}
\br{4.26}{4.54}{0.09}
\br{4.54}{4.82}{0.10}
\br{4.82}{5.10}{0.11}
\br{5.10}{5.38}{0.27}
\br{5.38}{5.66}{0.81}
\br{5.66}{5.94}{1.75}
\br{5.94}{6.22}{1.43}
\br{6.22}{6.50}{0.40}
\node[anchor=west] at (0.0,-1.15) {$d = 10$: every point is between $33\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.8s = "true", 9.6s = "false", 25.04s = "false", repeats}}}]
\br{5.10}{5.38}{0.21}
\br{5.38}{5.66}{0.87}
\br{5.66}{5.94}{1.95}
\br{5.94}{6.22}{1.65}
\br{6.22}{6.50}{0.46}
\node[anchor=east] at (6.50,3.95) {$d = 100$};
\node[anchor=west] at (0.0,-1.15) {$d = 100$: every point is between $77\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 9.8s = "false", 25.04s = "false", repeats}}}]
\br{5.10}{5.38}{0.17}
\br{5.38}{5.66}{0.74}
\br{5.66}{5.94}{1.65}
\br{5.94}{6.22}{1.67}
\br{6.22}{6.50}{0.91}
\node[anchor=west] at (0.0,-1.15) {$d = 100$: every point is between $77\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.8s = "true", 10s = "false", 25.04s = "false", repeats}}}]
\br{5.10}{5.38}{0.10}
\br{5.38}{5.66}{0.44}
\br{5.66}{5.94}{0.99}
\br{5.94}{6.22}{1.72}
\br{6.22}{6.50}{1.89}
\node[anchor=west] at (0.0,-1.15) {$d = 100$: every point is between $77\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10s = "true", 10.2s = "false", 25.04s = "false", repeats}}}]
\br{5.10}{5.38}{0.03}
\br{5.38}{5.66}{0.14}
\br{5.66}{5.94}{0.33}
\br{5.94}{6.22}{1.78}
\br{6.22}{6.50}{2.87}
\node[anchor=west] at (0.0,-1.15) {$d = 100$: every point is between $77\%$ and $100\%$ of the largest distance.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10.2s = "true", 13.2s = "false", 25.04s = "false", repeats}}}]
\br{5.66}{5.94}{0.03}
\br{5.94}{6.22}{1.80}
\br{6.22}{6.50}{3.32}
\node[anchor=east] at (6.50,3.95) {$d = 1000$};
\node[anchor=west] at (0.0,-1.15) {$d = 1000$: between $89\%$ and $100\%$. The nearest point is barely nearer than the farthest.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 13.2s = "true", 15.6s = "false", 25.04s = "false", repeats}}}]
\cd{9.00,0.36}
\draw[thick] (12.20,0.85) -- (13.65,0.85);
\draw[hot, line width=3pt] (12.20,0.85) -- (12.34,0.85);
\node[anchor=north] at (12.92,0.70) {\footnotesize length $0.10$};
\node[anchor=west] at (0.0,-1.15) {Sub-cube holding $10\%$ of uniform data, $d = 1$: an interval of length $0.10$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 15.6s = "true", 18s = "false", 25.04s = "false", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14);
\cd{9.00,0.36}
\cd{9.28,1.14}
\draw[thick] (12.20,0.35) rectangle (13.65,1.80);
\filldraw[draw=black, fill=hot] (12.20,0.35) rectangle (12.66,0.81);
\node[anchor=east] at (12.15,0.58) {\footnotesize $0.32$};
\node[anchor=west] at (0.0,-1.15) {$d = 2$: a square needs edge $\sqrt{0.1} = 0.32$ to hold $10\%$ of the area.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 18s = "true", 20.4s = "false", 25.04s = "false", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14) -- (9.57,1.67);
\cd{9.00,0.36}
\cd{9.28,1.14}
\cd{9.57,1.67}
\draw[dashed] (12.20,0.35) -- (12.71,0.65);
\draw[dashed] (12.71,0.65) -- (13.90,0.65);
\draw[dashed] (12.71,0.65) -- (12.71,1.84);
\filldraw[draw=black, fill=hot] (12.20,0.35) -- (12.75,0.35) -- (12.75,0.90) -- (12.20,0.90) -- cycle;
\filldraw[draw=black, fill=hot] (12.20,0.90) -- (12.75,0.90) -- (12.99,1.04) -- (12.44,1.04) -- cycle;
\filldraw[draw=black, fill=hot] (12.75,0.35) -- (12.99,0.49) -- (12.99,1.04) -- (12.75,0.90) -- cycle;
\draw[thick] (12.20,0.35) -- (13.39,0.35) -- (13.39,1.54) -- (12.20,1.54) -- cycle;
\draw[thick] (12.20,1.54) -- (12.71,1.84) -- (13.90,1.84) -- (13.90,0.65) -- (13.39,0.35);
\draw[thick] (13.39,1.54) -- (13.90,1.84);
\node[anchor=east] at (12.15,0.63) {\footnotesize $0.46$};
\node[anchor=west] at (0.0,-1.15) {$d = 3$: a cube needs edge $0.1^{1/3} = 0.46$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 20.4s = "true", 20.66s = "false", 25.04s = "false", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14) -- (9.57,1.67) -- (9.85,2.02) -- (10.14,2.27) -- (10.42,2.45);
\cd{9.00,0.36}
\cd{9.28,1.14}
\cd{9.57,1.67}
\cd{9.85,2.02}
\cd{10.14,2.27}
\cd{10.42,2.45}
\node[anchor=west] at (0.0,-1.15) {The needed edge $r^{1/d}$ climbs toward $1$ as $d$ grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 20.66s = "true", 20.92s = "false", 25.04s = "false", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14) -- (9.57,1.67) -- (9.85,2.02) -- (10.14,2.27) -- (10.42,2.45) -- (10.71,2.59) -- (10.99,2.70) -- (11.27,2.79) -- (11.56,2.86);
\cd{9.00,0.36}
\cd{9.28,1.14}
\cd{9.57,1.67}
\cd{9.85,2.02}
\cd{10.14,2.27}
\cd{10.42,2.45}
\cd{10.71,2.59}
\cd{10.99,2.70}
\cd{11.27,2.79}
\cd{11.56,2.86}
\node[anchor=west] at (0.0,-1.15) {The needed edge $r^{1/d}$ climbs toward $1$ as $d$ grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 20.92s = "true", 21.18s = "false", 25.04s = "false", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14) -- (9.57,1.67) -- (9.85,2.02) -- (10.14,2.27) -- (10.42,2.45) -- (10.71,2.59) -- (10.99,2.70) -- (11.27,2.79) -- (11.56,2.86) -- (11.84,2.92) -- (12.13,2.97) -- (12.41,3.02) -- (12.69,3.05) -- (12.98,3.09);
\cd{9.00,0.36}
\cd{9.28,1.14}
\cd{9.57,1.67}
\cd{9.85,2.02}
\cd{10.14,2.27}
\cd{10.42,2.45}
\cd{10.71,2.59}
\cd{10.99,2.70}
\cd{11.27,2.79}
\cd{11.56,2.86}
\cd{11.84,2.92}
\cd{12.13,2.97}
\cd{12.41,3.02}
\cd{12.69,3.05}
\cd{12.98,3.09}
\node[anchor=west] at (0.0,-1.15) {The needed edge $r^{1/d}$ climbs toward $1$ as $d$ grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 21.18s = "true", 21.44s = "false", 25.04s = "false", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14) -- (9.57,1.67) -- (9.85,2.02) -- (10.14,2.27) -- (10.42,2.45) -- (10.71,2.59) -- (10.99,2.70) -- (11.27,2.79) -- (11.56,2.86) -- (11.84,2.92) -- (12.13,2.97) -- (12.41,3.02) -- (12.69,3.05) -- (12.98,3.09) -- (13.26,3.12) -- (13.55,3.14) -- (13.83,3.17) -- (14.12,3.19) -- (14.40,3.21);
\cd{9.00,0.36}
\cd{9.28,1.14}
\cd{9.57,1.67}
\cd{9.85,2.02}
\cd{10.14,2.27}
\cd{10.42,2.45}
\cd{10.71,2.59}
\cd{10.99,2.70}
\cd{11.27,2.79}
\cd{11.56,2.86}
\cd{11.84,2.92}
\cd{12.13,2.97}
\cd{12.41,3.02}
\cd{12.69,3.05}
\cd{12.98,3.09}
\cd{13.26,3.12}
\cd{13.55,3.14}
\cd{13.83,3.17}
\cd{14.12,3.19}
\cd{14.40,3.21}
\node[anchor=west] at (0.0,-1.15) {The needed edge $r^{1/d}$ climbs toward $1$ as $d$ grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 21.44s = "true", 25.04s = "true", repeats}}}]
\draw[hot, very thick] (9.00,0.36) -- (9.28,1.14) -- (9.57,1.67) -- (9.85,2.02) -- (10.14,2.27) -- (10.42,2.45) -- (10.71,2.59) -- (10.99,2.70) -- (11.27,2.79) -- (11.56,2.86) -- (11.84,2.92) -- (12.13,2.97) -- (12.41,3.02) -- (12.69,3.05) -- (12.98,3.09) -- (13.26,3.12) -- (13.55,3.14) -- (13.83,3.17) -- (14.12,3.19) -- (14.40,3.21);
\cd{9.00,0.36}
\cd{9.28,1.14}
\cd{9.57,1.67}
\cd{9.85,2.02}
\cd{10.14,2.27}
\cd{10.42,2.45}
\cd{10.71,2.59}
\cd{10.99,2.70}
\cd{11.27,2.79}
\cd{11.56,2.86}
\cd{11.84,2.92}
\cd{12.13,2.97}
\cd{12.41,3.02}
\cd{12.69,3.05}
\cd{12.98,3.09}
\cd{13.26,3.12}
\cd{13.55,3.14}
\cd{13.83,3.17}
\cd{14.12,3.19}
\cd{14.40,3.21}
\draw[mid, dashed, thick] (11.56,0.00) -- (11.56,2.86) -- (9.00,2.86);
\filldraw[draw=black, fill=hot] (11.56,2.86) circle (3.2pt);
\node[anchor=north west, fill=white, inner sep=1pt] at (11.68,2.74) {$d = 10$: edge $0.79$};
\node[anchor=west] at (0.0,-1.15) {At $d = 10$, a sub-cube needs edge $0.79$ to hold $10\%$ of the data. It spans $79\%$ of each axis.};
\end{scope}
\end{tikzpicture}
\end{document}

(Gaussian Mass on a Shell) A standard Gaussian in dimensions puts almost all of its mass near the sphere of radius .

If , then has a chi-squared distribution with mean and variance . The norm has a standard deviation close to for every large . With , samples have norm , although the density is highest at the origin. A sample near the mode is therefore very unlikely. The midpoint of two independent samples has norm near , about four standard deviations inside the shell. A straight line between two samples passes through a region where samples rarely fall.

(Slow Rates for Smooth Targets) No method can learn every smooth function in dimensions faster than in mean squared error.

Stone (1982) proved this optimal rate for nonparametric regression. Here counts the derivatives of the target, and is the sample size. For , the exponent is in one dimension and in ten. Halving the error then takes times more data in one dimension. It takes times more in ten, and times more in . The rate is a lower bound over the whole class of smooth functions. Faster learning needs stronger assumptions about the target.

(Structure Lowers the Cost) A correct parametric model avoids the exponential cost, and data of low intrinsic dimension reduce it.

Suppose the true model is linear with noise variance . ESL section 2.5 shows that least squares then has expected test error about . The excess error grows only linearly in . The price is bias whenever the linear model is wrong. Local methods can adapt to the data instead. Kpotufe (2011) studied the convergence rate of k-nearest-neighbor regression. The rate depends on the local intrinsic dimension of the data, which can be far below . Images, audio and text have low intrinsic dimension relative to their raw size. Convolutional networks add the assumptions of locality and translation equivariance, which shrink the set of candidate functions.

Examples

(Easy) How Big Is a Neighborhood?

A music app describes each song by features scaled to , and the songs are spread roughly uniformly. To recommend songs, it searches a cube around a song that holds of the catalog.

(Medium) Testing Every Combination

A chemist studies a process with adjustable settings. She wants to test levels of each setting, and each run takes one minute.

(Hard) Distances in a Sensor Database

A database stores readings, each a vector of features drawn independently and uniformly from . A query is a new reading drawn the same way.

See Also