The Curse of Dimensionality

Imagine you want to estimate a function by averaging nearby training examples, the way k-Nearest Neighbors does. In one dimension, "nearby" is easy. A handful of points bracket any query. In one hundred dimensions, the same strategy fails catastrophically. Almost every point in the space ends up far from almost every other point. This is not a quirk of one algorithm. It is a structural fact about high-dimensional geometry. This fact quietly sabotages nearest-neighbor methods, kernel machines, density estimation, and even the intuitions we bring from low-dimensional plots. The phrase "curse of dimensionality" names phenomena that make learning harder as input features grow. Data becomes exponentially sparse. Distances between points stop being informative. The volume of space to be explained grows far faster than any realistic dataset can cover. These effects matter in real systems constantly. Recommender systems with thousands of item features face this problem. So do genomics datasets with tens of thousands of genes. Image models with millions of raw pixel dimensions confront it too, before any modeling choice is even made. The big picture is that dimensionality is not free. Every additional feature can, in principle, add information. But it also expands the space of possibilities that a finite dataset must cover. It can bury a small signal in a stack of irrelevant coordinates. Successful high-dimensional learning does not fight the curse by brute force. It fights it by imposing structure instead. Assumptions, smoothness, sparsity, or the right geometry effectively shrink the space the model needs to search. This article makes the curse precise. It covers how volume and sparsity scale with dimension, and why distances concentrate. It explains what this does to nearest-neighbor and density-based methods. It shows how the same reasoning explains why bias and regularization become essential, rather than optional, in high dimensions. It closes by connecting the curse to the tools built to survive it — Regularization, dimensionality reduction, and principled Model Selection.

Key takeaways
  • High-dimensional spaces have volume that grows exponentially with dimension, making fixed-size datasets exponentially sparse.
  • Pairwise distances between random points concentrate: the ratio of farthest to nearest distance tends to 1 as dimension grows.
  • Nearest-neighbor and kernel methods degrade because "local" neighborhoods must span an ever-larger fraction of each axis to contain enough points.
  • Many real datasets are high-dimensional in appearance but low-dimensional in structure — the manifold hypothesis exploits this gap.
  • The curse forces a shift from flexible, assumption-free estimators toward biased, regularized, or dimension-reducing methods.
  • Understanding the curse explains, mathematically, why Regularization and careful Model Selection are unavoidable at scale.
The core insight

As dimensionality increases, data becomes exponentially sparse and distances between points stop discriminating near from far, so purely local, assumption-free learning breaks down and must be replaced by structure and regularization.

The idea

The curse of dimensionality refers to the ways that data analysis and learning degrade as the number of features dd grows, holding the amount of training data nn fixed. The term was coined by Richard Bellman in the context of dynamic programming, where the cost of gridding a dd-dimensional state space grows exponentially in dd, but the phenomenon reaches far beyond optimization: it governs nonparametric statistics, machine learning, geometry, and even our intuitions about "typical" points in a space. Three distinct but related effects are usually bundled under this name. Volume growth: the volume of a dd-dimensional cube or ball grows exponentially with dd, so a fixed number of samples covers an ever-shrinking fraction of the space. Sparsity: to maintain the same sample density (points per unit volume) as dimension increases, the number of samples needed grows exponentially — a fact that makes "enough data" in high dimensions essentially unattainable for naive coverage-based estimators. Distance concentration: for many natural distributions, as d→∞d \to \infty the distances between random pairs of points become nearly equal, so the notions of "nearest" and "farthest" neighbor lose their discriminative meaning. These effects interact with the concepts of Generalization and The Bias-Variance Tradeoff in a direct way. A low-bias, high-variance estimator like nearest-neighbor regression relies on having many training points within a small neighborhood of any query point to control variance. In high dimensions, no realistic sample size achieves this, forcing either enormous bias (using very large neighborhoods) or unmanageable variance (using neighborhoods that are "small" in the sense of containing few points but geometrically span most of the space). The resolution is not to abandon flexible models, but to inject structure — smoothness assumptions, sparsity assumptions, or a lower-dimensional latent geometry — that lets the model generalize without needing to see every corner of the space.

How it works

We build the argument in layers: first pure geometry (volume and sparsity), then a probabilistic argument (distance concentration), then the consequence for a concrete algorithm (k-nearest-neighbor regression), and finally the escape routes.

Step 1 — Volume growth. Consider the unit hypercube [0,1]d[0,1]^d. To cover a fraction pp of the volume with a sub-cube of side length rr (so rd=pr^d = p), we need

r=p1/d.r = p^{1/d}.

Even for p=0.01p = 0.01 (covering only 1% of the volume) and d=100d = 100, r=0.011/100≈0.955r = 0.01^{1/100} \approx 0.955. To cover just 1% of the volume, the sub-cube must span 95.5% of each axis. "Local" neighborhoods stop being local in any single coordinate; they must be almost the entire range of every feature to contain a meaningful fraction of the data.

Step 2 — Sparsity. Suppose you want the same sample density in dd dimensions as you had in 11 dimension, where n1n_1 points sufficed to cover the unit interval with spacing δ\delta. To keep the same spacing δ\delta along every axis of a dd-dimensional cube requires roughly

nd≈n1dn_d \approx n_1^{d}

points. Data requirements grow exponentially in dd. No dataset of modest size can densely populate a high-dimensional feature space; the data is always sparse relative to the volume, no matter how large nn is in absolute terms.

Step 3 — Distance concentration. This is the sharpest and most surprising consequence. Let X1,…,XnX_1, \dots, X_n be i.i.d. random points in Rd\mathbb{R}^d with i.i.d. coordinates of finite variance σ2\sigma^2. Consider the squared Euclidean distance from the origin to a random point XX:

∥X∥2=∑i=1dXi2.\|X\|^2 = \sum_{i=1}^d X_i^2.

This is a sum of dd i.i.d. random variables, so by the law of large numbers,

∥X∥2d→E[X12]=σ2almost surely as d→∞.\frac{\|X\|^2}{d} \to \mathbb{E}[X_1^2] = \sigma^2 \quad \text{almost surely as } d \to \infty.

Meanwhile the standard deviation of ∥X∥2\|X\|^2 grows only like d\sqrt{d} (from the central limit theorem), so the relative spread

std(∥X∥2)E[∥X∥2]=O ⁣(dd)=O ⁣(1d)→0.\frac{\text{std}(\|X\|^2)}{\mathbb{E}[\|X\|^2]} = O\!\left(\frac{\sqrt{d}}{d}\right) = O\!\left(\frac{1}{\sqrt{d}}\right) \to 0.

In words: the distance from a random point to the origin concentrates tightly around σd\sigma\sqrt{d}, with relative fluctuations vanishing as dd grows. The same argument applies to pairwise distances between two random points. A well-known consequence, formalized by Beyer, Goldstein, Ramakrishnan, and Shaft (1999), is that under broad conditions,

distmax⁡−distmin⁡distmin⁡→0in probability as d→∞,\frac{\text{dist}_{\max} - \text{dist}_{\min}}{\text{dist}_{\min}} \to 0 \quad \text{in probability as } d \to \infty,

where distmax⁡\text{dist}_{\max} and distmin⁡\text{dist}_{\min} are the maximum and minimum distances from a query point to nn data points. When the farthest neighbor and the nearest neighbor are (relatively) the same distance away, the entire concept of "nearest neighbor" becomes numerically meaningless — the ranking of neighbors is dominated by noise rather than signal.

Step 4 — Consequence for k-NN regression. Consider estimating f(x)=E[Y∣X=x]f(x) = \mathbb{E}[Y \mid X = x] by averaging the kk nearest training responses. To keep the estimator's bias small, the neighborhood radius rr must shrink to 0. To keep variance small, the neighborhood must contain enough points, i.e., n⋅rdn \cdot r^d must stay bounded away from 0. These two requirements collide as dd grows: for fixed nn, shrinking rr enough to control bias empties the neighborhood, and widening rr enough to fill the neighborhood destroys locality (and hence increases bias). This is exactly a restatement of the bias-variance tradeoff, but the curse of dimensionality shows that in high dimensions the achievable tradeoff curve itself becomes unfavorable — no choice of rr or kk gives both low bias and low variance simultaneously without an impractically large nn. ``` ALGORITHM: k-Nearest-Neighbor regression, with a note on dimensionality INPUT: training set D = {(x_1, y_1), ..., (x_n, y_n)}, x_i in R^d query point q, neighbor count k OUTPUT: predicted value y_hat 1. for i = 1 to n: compute dist_i = ||x_i - q|| # Euclidean distance 2. sort training points by dist_i ascending 3. let N_k = the k points with smallest dist_i 4. y_hat = (1 / k) * sum_{i in N_k} y_i 5. return y_hat

# Correctness / degradation note:

# - Step 1 costs O(n*d): each distance computation touches all d coordinates.

# - As d grows, dist_i for ALL i become nearly equal (distance concentration),

# so the "k smallest" in step 2 are barely smaller than the rest:

# the sorted order becomes dominated by noise, not by true proximity to q.

# - Consequently N_k is no longer a meaningful "local" neighborhood of q,

# and the average in step 4 incurs bias that does not vanish as n grows,

# unless d is controlled or an appropriate metric/structure is imposed. ```

Step 5 — Escape routes. Every practical fix works by reducing the effective dimensionality the estimator must contend with, rather than fighting the geometry head-on:

  • Assume smoothness or low-order interactions. Additive models, shallow decision trees, and linear models restrict the hypothesis class so that the "effective" search does not require covering the full dd-dimensional volume.
  • Impose sparsity. If only s≪ds \ll d features matter, methods like Lasso can achieve sample complexity that scales with log⁡d\log d rather than dd, provided sparsity holds.
  • Exploit low-dimensional structure in the data. The manifold hypothesis posits that high-dimensional data (images, audio) often lies near a much lower-dimensional manifold; techniques like PCA, autoencoders, and manifold learning recover this intrinsic dimension.
  • Use a better metric or a learned representation. Replacing raw Euclidean distance in pixel space with distance in a learned embedding space (as in deep metric learning) can restore meaningful locality.
  • Regularize. Penalizing model complexity directly trades bias for variance in a controlled way, compensating for the unfavorable geometry — this is the direct link to Regularization as a general-purpose antidote.
Figure
Volume concentrates near the boundary as dimension grows: an inscribed ball versus its bounding cube
Volume ratio: ball inscribed in cube, side 2 d = 2 ratio ≈ 0.785 d = 5 ratio ≈ 0.164 d = 10 ratio ≈ 0.0025 d = 20 ≈ 2.5×10⁻⁸ Volume(ball) / Volume(cube) = π^(d/2) / (2^d · Γ(d/2+1)) → 0 as d → ∞ Almost all of the cube's volume sits in the corners, far from the center — "nearby" samples drawn uniformly are almost never actually near the center.

Complexity & correctness

Geometric claim (volume ratio). The volume of a dd-ball of radius rr is

Vball(r)=πd/2Γ(d/2+1)rd,V_{\text{ball}}(r) = \frac{\pi^{d/2}}{\Gamma(d/2+1)} r^d,

while the volume of the bounding cube of side 2r2r is Vcube=(2r)dV_{\text{cube}} = (2r)^d. Their ratio is

VballVcube=πd/22d Γ(d/2+1).\frac{V_{\text{ball}}}{V_{\text{cube}}} = \frac{\pi^{d/2}}{2^d\, \Gamma(d/2+1)}.

Using Stirling's approximation, Γ(d/2+1)\Gamma(d/2+1) grows super-exponentially in dd (roughly like (d/2e)d/2(d/2e)^{d/2}), which dominates the exponential 2d2^d and the polynomial-in-exponent πd/2\pi^{d/2}. The ratio therefore decays to 00 faster than any fixed exponential rate — concretely, it is O ⁣((c/d)d)O\!\big((c/\sqrt d)^d\big) for a constant cc, meaning it vanishes super-exponentially in dd. This proves rigorously that almost all the volume of a high-dimensional cube lies outside its inscribed ball, i.e., in the corners.

Sample complexity for uniform coverage. To guarantee, with high probability, that every axis-aligned cell of side ϵ\epsilon in [0,1]d[0,1]^d contains at least one sample under a uniform distribution, a coupon-collector-style argument shows the required sample size is

n=Θ ⁣(1ϵdlog⁡1ϵd),n = \Theta\!\left(\frac{1}{\epsilon^d}\log \frac{1}{\epsilon^d}\right),

exponential in dd. This formalizes "sparsity": no polynomial-size (in dd) dataset can achieve fixed-resolution coverage once dd is even moderately large.

Distance concentration (proof sketch). Let X=(X1,…,Xd)X = (X_1,\dots,X_d) have i.i.d. coordinates with E[X12]=σ2<∞\mathbb E[X_1^2] = \sigma^2 < \infty and Var(X12)=τ2<∞\text{Var}(X_1^2) = \tau^2 < \infty. By the weak law of large numbers,

1d∥X∥2=1d∑i=1dXi2→pσ2.\frac{1}{d}\|X\|^2 = \frac{1}{d}\sum_{i=1}^d X_i^2 \xrightarrow{p} \sigma^2.

By Chebyshev's inequality applied to the sum ∑Xi2\sum X_i^2 (i.i.d. terms, variance τ2\tau^2 each),

Var ⁣(1d∥X∥2)=τ2d→0,\text{Var}\!\left(\frac{1}{d}\|X\|^2\right) = \frac{\tau^2}{d} \to 0,

so ∥X∥2/d\|X\|^2/d converges to a constant with vanishing relative variance. Since ∥X∥=d⋅∥X∥2/d\|X\| = \sqrt d \cdot \sqrt{\|X\|^2/d}, and the square root is a smooth function locally around σ2>0\sigma^2 > 0, a delta-method argument gives ∥X∥/d→σ\|X\|/\sqrt d \to \sigma in probability, with fluctuations of order Θ(1/d)\Theta(1/\sqrt d) relative to the mean. Applying this to differences X−qX - q for a fixed query qq (assuming i.i.d.-like coordinatewise structure) shows every training point's distance to qq concentrates around the same value, which is precisely the Beyer et al. instability result: (distmax⁡−distmin⁡)/distmin⁡→0(\text{dist}_{\max} - \text{dist}_{\min})/\text{dist}_{\min} \to 0.

Consequence for k-NN's statistical rate. Classical nonparametric theory (Stone's theorem) shows that under Hölder smoothness of order β\beta, the minimax rate for estimating f:Rd→Rf: \mathbb R^d \to \mathbb R from nn samples is

MSE=Θ ⁣(n−2β2β+d).\text{MSE} = \Theta\!\left(n^{-\frac{2\beta}{2\beta + d}}\right).

The exponent 2β/(2β+d)→02\beta/(2\beta+d) \to 0 as d→∞d \to \infty for fixed β\beta: the convergence rate degrades toward the trivial rate n0n^0, meaning more data barely helps once dd is large relative to the smoothness β\beta. This is the precise, provable form of the curse of dimensionality for nonparametric regression, and it is why purely local, model-free methods cannot scale to high-dimensional problems without additional structural assumptions.

Honesty about tradeoffs. The curse is a statement about worst-case, structure-free high-dimensional spaces. It does not mean high-dimensional learning is hopeless — it means unstructured, purely local learning is hopeless. If the true function has low effective dimension (few relevant features, additive structure, or lies near a low-dimensional manifold), the effective dd in Stone's rate can be far smaller than the ambient dimension, and learning remains tractable. This is exactly why feature selection, regularization, and representation learning are not optional refinements but mathematically necessary responses to the geometry of high-dimensional spaces.

Worked example

Consider n=1000n = 1000 points drawn uniformly at random from the unit hypercube [0,1]d[0,1]^d, and examine how the expected distance to the nearest neighbor of a fixed query point changes as dd grows. Using the volume-coverage relation, the expected nearest-neighbor distance under a uniform density scales approximately as

E[distmin⁡]≈(1n)1/d⋅cd,\mathbb E[\text{dist}_{\min}] \approx \left(\frac{1}{n}\right)^{1/d} \cdot c_d,

where cdc_d is a dimension-dependent constant of order 1. The table below traces this quantity, together with the volume-ratio effect and the concentration ratio, across increasing dd, holding n=1000n = 1000 fixed.

ddradius to cover 1% of volume, 0.011/d0.01^{1/d}approx. nearest-neighbor distance (n=1000)(distmax⁡−distmin⁡)/distmin⁡(\text{dist}_{\max}-\text{dist}_{\min})/\text{dist}_{\min} (simulated, uniform cube)
10.010≈ 0.001large (≈ 5–10)
20.100≈ 0.018≈ 2.5
50.398≈ 0.14≈ 0.9
100.631≈ 0.35≈ 0.4
500.912≈ 0.75≈ 0.08
1000.955≈ 0.86≈ 0.04

Reading the table left to right shows three simultaneous, reinforcing effects. First, the radius needed to capture even 1% of the total volume balloons from essentially a point (d=1d=1) to nearly the full range of every axis (d=100d = 100) — locality in the geometric sense disappears. Second, the expected distance from a query point to its single nearest training neighbor grows toward the same order of magnitude as the distance to a typical (not nearest) point, meaning "nearest" stops being special. Third, the relative gap between the closest and farthest neighbor — the quantity that any distance-based ranking depends on — collapses toward zero, confirming the theoretical concentration result. The practical upshot: a k-NN classifier trained on 10001000 labeled examples in d=2d = 2 dimensions can produce a highly accurate, genuinely local decision boundary, because each query point has truly close neighbors. The same classifier, applied naively to d=100d = 100 raw features (e.g., 100 loosely related sensor readings), effectively averages over neighbors that are barely closer than random points, and its accuracy collapses toward that of a global average predictor — unless the effective dimensionality is reduced first, e.g., via feature selection or a learned embedding that concentrates the relevant signal into far fewer effective dimensions.

Common pitfalls & traps

PitfallWhy it happensConsequence
Assuming "more features can only help"More raw features seem like more informationIrrelevant features inflate dd, worsening sparsity and distance concentration without adding signal
Using Euclidean k-NN on raw high-dimensional dataTreating all coordinates as equally informative and locally meaningfulNeighbor rankings become noise-dominated; predictions regress toward a global average
Believing "big data" always solves the curseConfusing large absolute nn with high sample densityRequired nn for fixed coverage grows exponentially in dd; even huge nn is sparse in high dd
Ignoring intrinsic (manifold) dimensionOnly counting ambient/raw feature dimensionOverestimates the true severity of the curse; PCA/embeddings often reveal low effective dd
Tuning bandwidth/`k` without adjusting for ddReusing hyperparameters tuned in low-dimensional pilot experimentsKernel or k-NN estimator is badly biased or badly noisy once deployed in higher-dimensional feature space
Skipping regularization "because the model fits training data well"Confusing low training error with genuine generalizationHigh-dimensional models with no regularization overfit sparsely-populated regions of feature space

Pioneers & history

Origins · 1 minRichard Ernest Bellman and how this was discovered
RE
Richard Ernest Bellman
1920–1984 · American applied mathematician, RAND Corporation and University of Southern California, developer of dynamic programming

Bellman coined "the curse of dimensionality" in the preface to his 1957 book Dynamic Programming, describing how the computational cost of solving multistage optimization problems by discretizing the state space explodes exponentially as the number of state variables grows. Though his original context was optimal control and dynamic programming grids rather than statistical learning, the same exponential-volume argument was later recognized to govern nonparametric statistics, density estimation, and machine learning broadly — any method that tries to cover or grid a high-dimensional space with finite resources runs into the same wall.

History
1957
— Richard Bellman coins "curse of dimensionality" in Dynamic Programming, describing exponential blowup of state-space grids.
1977
— Charles Stone proves minimax convergence rates for nonparametric regression, formally quantifying how estimation rates degrade with dimension.
1994
— Jerome Friedman analyzes the impact of dimensionality on nearest-neighbor methods and proposes local adaptive metrics as a remedy.
1999
— Beyer, Goldstein, Ramakrishnan, and Shaft formalize distance concentration, proving nearest-neighbor queries become meaningless in broad high-dimensional settings.
2000
s — manifold learning (Isomap, LLE, t-SNE) and sparse methods (Lasso) emerge as principled responses that exploit low intrinsic dimensionality.

Where this matters

Recommender systems routinely operate over thousands of sparse user/item features; naive similarity search in raw feature space fails exactly as the theory predicts, which is why production systems use learned low-dimensional embeddings (matrix factorization, two-tower neural networks) rather than raw-feature distance. Genomics and bioinformatics pipelines that measure tens of thousands of gene expression levels per sample face an extreme version of the curse — sample sizes in the hundreds are dwarfed by feature counts in the tens of thousands — motivating heavy use of sparsity-inducing regularization (Lasso, elastic net) and dimensionality reduction (PCA, factor models) as a prerequisite to any downstream modeling. Computer vision historically confronted the curse directly: raw pixel space for even a small image has tens of thousands of dimensions, making naive nearest-neighbor image classifiers essentially useless. Convolutional neural networks succeed in part because their architecture encodes strong assumptions (locality, translation invariance) that implicitly reduce the effective search space, letting the network exploit the fact that natural images occupy a comparatively low-dimensional manifold within pixel space. Approximate nearest-neighbor search systems used in large-scale retrieval (vector databases, semantic search) explicitly grapple with distance concentration by relying on learned embeddings with better-behaved geometry rather than raw high-dimensional features. Any discussion of why practical machine learning systems lean so heavily on Regularization and careful Model Selection ultimately traces back to this same geometric fact: unconstrained high-dimensional learning is not merely hard — it is provably, exponentially data-starved.

Ask the tutor: How does the intrinsic (manifold) dimension of a dataset change the effective severity of the curse of dimensionality compared to its raw feature count?

Does the curse of dimensionality mean high-dimensional machine learning is doomed to fail?

No. The curse describes worst-case, structure-free settings where a model must cover the whole space using purely local information. Real high-dimensional data — images, text, genomics — usually has far lower intrinsic dimensionality than its ambient feature count, a phenomenon called the manifold hypothesis. Deep networks, PCA, sparse regression, and other structured methods succeed precisely by discovering and exploiting that lower-dimensional structure rather than treating every raw feature as equally informative. The curse is a warning against naive, assumption-free approaches, not a verdict against high-dimensional learning in general.

How is the curse of dimensionality related to the bias-variance tradeoff?

They describe the same underlying tension from different angles. The bias-variance tradeoff says flexible, low-bias estimators need enough nearby data to control variance. The curse of dimensionality shows that in high-dimensional spaces, "enough nearby data" requires either a huge neighborhood (which reintroduces bias) or an exponentially large sample size (which is usually infeasible). The curse is, in effect, a statement that the achievable bias-variance tradeoff curve becomes strictly worse as dimension grows, for any nonparametric, locally-averaging estimator.

Why does adding more features sometimes make a model worse, not better?

Extra features increase the ambient dimensionality that a model must reason about, even if some features carry weak or no signal. This dilutes distance-based similarity, increases the variance of estimators that must be fit over a larger effective parameter space, and gives flexible models more opportunities to fit noise. Unless a new feature carries strong, non-redundant signal relative to the added dimensionality, it can hurt generalization. This is precisely why feature selection and regularization frequently improve real-world model performance despite discarding information.

Is the curse of dimensionality only a problem for nearest-neighbor and kernel methods?

It is most vivid there because those methods rely explicitly on distance and locality, but the underlying geometric fact — exponential volume growth and vanishing coverage — affects any method that implicitly needs to "see" representative examples across the whole input space. Density estimation, histogram-based methods, and even the sample complexity bounds for some parametric models are affected. Methods with strong structural assumptions (linear models, additive models, convolutional architectures) are less vulnerable because they never attempt to cover the full ambient space in the first place.

What is the "manifold hypothesis" and how does it relate to escaping the curse?

The manifold hypothesis states that real-world high-dimensional data — such as natural images or audio waveforms — tends to concentrate near a much lower-dimensional manifold embedded in the high-dimensional ambient space, rather than filling it uniformly. If this holds, the "effective dimension" relevant to Stone's minimax rate is the manifold's intrinsic dimension, not the raw feature count, so learning can be far easier than the ambient dimensionality would suggest. Techniques like PCA, autoencoders, Isomap, and t-SNE attempt to discover or exploit this lower-dimensional structure directly.

Can regularization fully eliminate the curse of dimensionality?

Regularization does not change the geometry of high-dimensional space, but it changes what the learning algorithm is allowed to fit, effectively trading variance for bias in a controlled way. Sparsity-inducing regularization (like Lasso) can make the sample complexity depend on the number of truly relevant features rather than the full ambient dimension, which is a genuine escape from the worst-case curse — but only if the sparsity assumption actually holds in the data. Regularization is a principled response to the curse, not a repeal of it.

How would I detect that the curse of dimensionality is hurting my model in practice?

Warning signs include: nearest-neighbor or kernel-based models whose accuracy barely beats a constant baseline predictor, validation performance that degrades as more raw features are added despite each feature seeming individually relevant, and unstable predictions that change drastically with small perturbations to the feature set. A useful diagnostic is to compare model performance on the raw feature space versus a reduced-dimension embedding (via PCA or feature selection); if accuracy improves substantially after reduction, distance-based instability from high dimensionality is a likely culprit.

Before this

Where this leads