Skip to main content
QUICK REVIEW

[Paper Review] Nearest Neighbor Classifiers over Incomplete Information: From Certain Answers to Certain Predictions

Bojan Karlaš, Peng Li|arXiv (Cornell University)|May 11, 2020
Data Quality and ManagementDecision Sciences22 references7 citations
TL;DR

This paper introduces 'Certain Predictions' (CP) to assess the impact of data incompleteness on machine learning models, particularly for nearest neighbor classifiers. By formalizing when predictions are guaranteed across all possible data imputations, the authors develop efficient algorithms to check CP status and count supporting classifiers, enabling a data-cleaning framework (CPClean) that significantly improves model accuracy with minimal manual effort.

ABSTRACT

Machine learning (ML) applications have been thriving recently, largely attributed to the increasing availability of data. However, inconsistency and incomplete information are ubiquitous in real-world datasets, and their impact on ML applications remains elusive. In this paper, we present a formal study of this impact by extending the notion of Certain Answers for Codd tables, which has been explored by the database research community for decades, into the field of machine learning. Specifically, we focus on classification problems and propose the notion of "Certain Predictions" (CP) -- a test data example can be certainly predicted (CP'ed) if all possible classifiers trained on top of all possible worlds induced by the incompleteness of data would yield the same prediction. We study two fundamental CP queries: (Q1) checking query that determines whether a data example can be CP'ed; and (Q2) counting query that computes the number of classifiers that support a particular prediction (i.e., label). Given that general solutions to CP queries are, not surprisingly, hard without assumption over the type of classifier, we further present a case study in the context of nearest neighbor (NN) classifiers, where efficient solutions to CP queries can be developed -- we show that it is possible to answer both queries in linear or polynomial time over exponentially many possible worlds. We demonstrate one example use case of CP in the important application of "data cleaning for machine learning (DC for ML)." We show that our proposed CPClean approach built based on CP can often significantly outperform existing techniques in terms of classification accuracy with mild manual cleaning effort.

Motivation & Objective

  • To formalize the impact of incomplete data on machine learning predictions using the concept of 'Certain Predictions' (CP).
  • To develop efficient algorithms for two core queries: CP checking and prediction counting over incomplete data worlds.
  • To apply CP to data cleaning for machine learning (DC for ML), reducing manual effort while improving model accuracy.
  • To demonstrate that CP-based cleaning outperforms existing methods in both accuracy and efficiency.

Proposed method

  • Extends the database concept of 'Certain Answers' from Codd tables to machine learning, defining 'Certain Predictions' (CP) as predictions that remain consistent across all possible data imputations.
  • Proposes two fundamental queries: (Q1) CP checking — determining if a test example is predictably certain; (Q2) counting — computing the number of classifiers supporting each label.
  • Develops linear- and polynomial-time algorithms for nearest neighbor classifiers over exponentially large possible worlds, leveraging geometric and combinatorial properties.
  • Designs a novel data-cleaning framework, CPClean, that uses CP to prioritize which training examples to clean based on their impact on validation set certainty.
  • Employs a validation set to identify examples that, when cleaned, make the most validation instances CP’ed, minimizing required cleaning effort.
  • Uses a human-in-the-loop oracle to validate and apply repairs, guided by CP analysis to maximize accuracy gain per cleaning step.

Experimental results

Research questions

  • RQ1Can we formally define when a machine learning prediction is guaranteed despite data incompleteness?
  • RQ2Can we efficiently answer whether a test example is predictably certain (CP’ed) across all possible data imputations?
  • RQ3Can we efficiently count how many possible classifiers support each prediction label for an uncertain example?
  • RQ4Can CP-based data cleaning outperform random or heuristic-based cleaning strategies in terms of accuracy and effort?

Key findings

  • CPClean requires only 15% of training examples cleaned on the Supreme dataset to make all validation examples CP’ed, while RandomClean requires nearly all examples.
  • With 50% of data cleaned on the Bank dataset, CPClean closes nearly 100% of the accuracy gap, compared to only 65% closed by RandomClean.
  • The size of the validation set affects cleaning efficiency and accuracy gap closure, but a 1K validation set is sufficient to achieve stable performance.
  • The proposed CP framework enables efficient, scalable analysis of incomplete data impact for nearest neighbor classifiers, with polynomial-time solutions over exponentially many possible worlds.
  • The CP-based cleaning approach significantly outperforms BoostClean and ActiveClean under the same repair space, demonstrating superior accuracy gains with less manual effort.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.