In the ideal world of kernel methods, a similarity function acts like a bridge, connecting different data points by revealing their shared structure. However, when dealing with high-dimensional, sparse, or complex structured data—such as text, time-series, and graphs—this bridge often collapses. Instead of a rich map of relationships, the kernel matrix $K$ begins to resemble the identity matrix $I$.
This phenomenon is known as diagonal dominance. It occurs when the "self-similarity" of an object (the diagonal entry $K_{i,i}$) is orders of magnitude larger than its similarity to any other object ($K_{i,j}$). When this happens, machine learning models lose their ability to generalize, effectively treating every data point as a unique island with no neighbors.
The Geometry of Orthogonality
Why does diagonal dominance emerge so frequently? The root cause often lies in the "curse of dimensionality." As Jagadeesh Jagarlamudi and colleagues observe in Kernelized Sorting for Natural Language Processing, high-dimensional feature vectors in NLP tend to be nearly orthogonal. In a space where every vector is at a right angle to every other vector, the dot product (similarity) between distinct points drops to near zero, while the dot product of a vector with itself remains high.
This problem is exacerbated in structured domains:
- Text and Graphs: When kernels require exact matches between complex structures—like the ordered neighborhoods in KONG by Moez Draief et al.—the probability of two different instances sharing that exact structure is vanishingly small.
- Time-Series: As Ian En-Hsu Yen notes in Random Warping Series, many time-series kernels suffer from an imbalance where the alignment of a sequence to itself masks the subtle similarities between different sequences.
The Consequence: The Identity Trap
When a kernel matrix is diagonally dominant, it loses its discriminative power. Derek Greene and Padraig Cunningham demonstrated in Practical solutions to the problem of diagonal dominance in kernel document clustering that this causes algorithms like kernel $k$-means to get "stuck." Because every point is vastly more similar to itself than to any cluster center, the algorithm cannot find a reason to move points between clusters, resulting in a model that simply mirrors its initial random state.
Similarly, in biological sequences, Alan Nawzad Amin and Debora Susan Marks argue that "thin-tailed" similarity decay turns models into mere lookup tables. Instead of learning the underlying logic of a protein sequence, the model only recognizes sequences it has seen before.
Strategies for Restoring Similarity
Researchers have developed several distinct "fixes" to dampen the diagonal and amplify the signal in the off-diagonal entries.
1. Rescaling and Smoothing
One of the most direct ways to combat dominance is to transform the scale of the similarity scores. Marco Cuturi and his co-authors in A kernel for time series based on global alignments suggest logarithmic rescaling. By taking the log of the kernel values, the exponential gap between self-similarity and cross-similarity is compressed, mapping the scores into a range where optimization algorithms can actually function.
2. Diagonal Manipulation and Normalization
If the diagonal is the problem, one can simply remove it. Boris Landa and Yuval Kluger show in Doubly-Stochastic Normalization of the Gaussian Kernel is Robust to Heteroskedastic Noise that setting diagonal elements to zero before applying doubly-stochastic normalization is essential. This prevents the self-similarity terms from "absorbing" the normalization weights, ensuring the resulting affinity matrix reflects the relationships between distinct points.
3. Random Feature Embeddings
A more modern approach involves bypassing the full kernel matrix entirely. Methods like Random Warping Series (RWS) by Ian En-Hsu Yen and Random String Embeddings (RSE) by Lingfei Wu project complex objects into a fixed-length vector space using distances to random "anchor" objects. By comparing sequences to a shared set of random references rather than directly to each other, these methods naturally avoid the identity-matrix collapse while reducing computational complexity from quadratic to linear.
Theoretical Foundations
Beyond practical fixes, researchers like Nils M. Kriege have sought to identify the mathematical properties that prevent this collapse from the start. In On Valid Optimal Assignment Kernels, Kriege shows that using "strong" base kernels can ensure that optimal assignments remain valid and discriminative, providing a theoretical path to kernels that are both mathematically sound and practically useful.