Outlier Detection for Robust Multi-dimensional Scaling

Leonid Blouvshtein, Daniel Cohen-Or · DOI

Introduction

Multi-Dimensional Scaling (MDS) is a fundamental technique in data science for dimensionality reduction and visualization. By taking a matrix of pairwise distances, MDS attempts to find a configuration of points in low-dimensional space (typically 2D or 3D) that preserves these distances. However, standard MDS algorithms, such as SMACOF, are notoriously sensitive to outliers. Because these algorithms minimize a "stress" function based on squared errors, even a single erroneous distance—whether too large or too small—can significantly distort the entire embedding, pulling valid inlier points out of position. While robust MDS variants exist, they often require manual hyperparameter tuning or prior knowledge of the outlier count, limiting their practical utility.

Methodology: Triangle MDS (TMDS)

This paper introduces TMDS (Triangle MDS), a robust pre-filtering technique designed to identify and remove outlier distances before the MDS optimization begins. The core innovation lies in leveraging a fundamental geometric principle: the triangle inequality. In any Euclidean space, for any three points, the sum of two side lengths must be greater than or equal to the third ($d_{12} + d_{23} \ge d_{13}$).

The TMDS algorithm proceeds in four primary steps:

  1. Triangle Counting: The dataset is treated as a complete graph. For every edge (distance), the algorithm examines the $N-2$ triangles it forms with all other points in the set.
  2. Identifying "Broken" Triangles: A triangle is flagged as "broken" if it violates the triangle inequality. While noise might cause an inlier edge to participate in a few broken triangles, an outlier edge—representing a fundamentally inconsistent distance—will participate in many.
  3. Histogram-Based Filtering: The algorithm constructs a histogram of the number of broken triangles per edge. A parameter-free heuristic is then used to determine a threshold $\phi$, above which edges are classified as outliers.
  4. Weighted MDS: Flagged edges are assigned a weight of zero, and a standard weighted MDS is performed on the remaining "clean" data.
Figure 3: Visualization of broken triangles. As the number of broken triangles increases, the geometric inconsistency of the red dashed edge becomes more apparent.

To maintain efficiency, the authors demonstrate that subsampling a constant number of triangles per edge is sufficient. This reduces the computational complexity from $O(N^3)$ to $O(N^2)$, making it comparable to standard MDS.

Key Insights and Results

The effectiveness of TMDS stems from the structural difference between inliers and outliers in the geometric domain. The histogram of broken triangles typically exhibits a sharp peak at low values for inliers and a sparse "long tail" for outliers. This clear separation allows for reliable, automated thresholding.

Figure 5: Histogram showing the distribution of broken triangles for a dataset with 40 points and 20 outliers. The separation between the majority of edges (low counts) and outliers (high counts) is evident.

Experimental results across synthetic and real-world datasets (including geographic, protein sequence, and 3D mesh data) highlight several key advantages:

  • Robustness to Diverse Outliers: Unlike many methods that only handle "long" outliers, TMDS effectively identifies "short" outliers because both types are equally likely to violate geometric constraints.
  • High Breakdown Point: The method remains effective until the outlier rate reaches approximately 22%, at which point the "majority-valid" assumption begins to degrade.
  • Superior Accuracy: On the Protein and MPEG7 datasets, TMDS outperformed both standard SMACOF and state-of-the-art robust methods (like FG12) in clustering metrics such as the Adjusted Rand Index (ARI).
  • Parameter-Free Operation: The heuristic thresholding worked consistently across various data types without manual adjustment.

Conclusion

TMDS offers a mathematically grounded and computationally efficient solution to the outlier problem in MDS. By shifting the focus from robust optimization to geometric pre-filtering, it avoids the local minima and parameter-tuning issues common in previous approaches. While the method may face challenges in datasets with high collinearity or extremely high outlier densities (>25%), its performance on standard benchmarks suggests it is a powerful tool for robust dimensionality reduction. Future work may extend this geometric reasoning to non-Euclidean manifolds and Minkowski distances.

Summary updated

BibTeX
@article{blouvshtein2018outlier,
  author = {Leonid Blouvshtein and Daniel Cohen-Or},
  title = {{Outlier Detection for Robust Multi-dimensional Scaling}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  doi = {10.1109/tpami.2018.2851513},
}
Figure