Robustness of Nearest-Neighbor Classifiers to Irrelevant Features

Authors

  • Costantino Schiavo Department of Electrical Engineering and Computer Science, University of Missouri, Columbia, MO, USA. Author

Keywords:

nearest-neighbor classification; irrelevant features; distance concentration; feature weighting; metric learning; robustness

Abstract

Nearest-neighbor classifiers are attractive because they require few structural assumptions, yet their decisions are mediated entirely by a distance function. When a data set contains features that are statistically unrelated to the class label, the geometry of the feature space can change even though the Bayes-optimal partition in the relevant subspace remains unchanged. This article develops a theoretical and methodological account of the robustness of nearest-neighbor classification to such irrelevant features. The analysis separates squared distance into relevant and irrelevant contributions, characterizes the concentration of pairwise distances as the number of weighted dimensions grows, and links concentration to neighborhood contamination and excess risk. A bias-variance interpretation explains why irrelevant features can simultaneously inflate the effective neighborhood radius and increase vote noise. The manuscript then examines feature selection, feature weighting, and metric learning as robustness mechanisms and formulates a regularized weighting objective that penalizes unnecessary dimensions. Sensitivity and probability bounds are derived to show how weight magnitude, feature variance, and the number of irrelevant coordinates govern the stability of neighbor sets. The resulting framework clarifies when nearest-neighbor classifiers are intrinsically robust, when they fail because irrelevant coordinates dominate the metric, and which design choices reduce that failure. The conclusions are analytical and are intended to guide feature engineering, metric design, and evaluation practice for nearest-neighbor methods in high-dimensional settings.

References

1. Cover, T. M., & Hart, P. E. (1967). Nearest neighbor pattern classification. IEEE Transactions on Information Theory, 13(1), 21–27.

2. Fix, E., & Hodges, J. L. (1951). Discriminatory analysis, nonparametric discrimination: Consistency properties (Report No. 4). USAF School of Aviation Medicine.

3. Stone, C. J. (1977). Consistent nonparametric regression. The Annals of Statistics, 5(4), 595–620.

4. Devroye, L., Györfi, L., & Lugosi, G. (1996). A probabilistic theory of pattern recognition. Springer.

5. Beyer, K., Goldstein, J., Ramakrishnan, R., & Shaft, U. (1999). When is "nearest neighbor" meaningful? In Proceedings of the 7th International Conference on Database Theory (pp. 217–235). Springer.

6. Aggarwal, C. C., Hinneburg, A., & Keim, D. A. (2001). On the surprising behavior of distance metrics in high dimensional space. In Proceedings of the 8th International Conference on Database Theory (pp. 420–434). Springer.

7. Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.). Springer.

8. Bishop, C. M. (2006). Pattern recognition and machine learning. Springer.

9. Duda, R. O., Hart, P. E., & Stork, D. G. (2001). Pattern classification (2nd ed.). Wiley.

10. Guyon, I., & Elisseeff, A. (2003). An introduction to variable and feature selection. Journal of Machine Learning Research, 3, 1157–1182.

11. Blum, A. L., & Langley, P. (1997). Selection of relevant features and examples in machine learning. Artificial Intelligence, 97(1–2), 245–271.

12. Weinberger, K. Q., & Saul, L. K. (2009). Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research, 10, 207–244.

13. Kohavi, R., & John, G. H. (1997). Wrappers for feature subset selection. Artificial Intelligence, 97(1–2), 273–324.

14. Liu, H., & Motoda, H. (1998). Feature selection for knowledge discovery and data mining. Springer.

15. Friedman, J. H. (1994). Flexible metric nearest neighbor classification (Technical Report). Department of Statistics, Stanford University.

16. Domeniconi, C., Peng, J., & Gunopulos, D. (2002). Locally adaptive metric nearest-neighbor classification. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(9), 1281–1285.

17. Vapnik, V. N. (1998). Statistical learning theory. Wiley.

18. Shalev-Shwartz, S., & Ben-David, S. (2014). Understanding machine learning: From theory to algorithms. Cambridge University Press.

19. Kpotufe, S. (2011). k-NN regression adapts to local intrinsic dimension. In Advances in Neural Information Processing Systems 24 (pp. 729–737).

20. von Luxburg, U., & Bousquet, O. (2004). Distance-based classification with Lipschitz functions. Journal of Machine Learning Research, 5, 669–695.

Downloads

Published

2023-03-29