LGCTDec 27, 2023

Using Enriched Category Theory to Construct the Nearest Neighbour Classification Algorithm

arXiv:2312.16529v21 citationsh-index: 1
Originality Incremental advance
AI Analysis

This work provides a foundational approach for explaining and generalizing machine learning algorithms, though it is incremental in applying category theory to a specific algorithm.

The paper tackles the problem of constructing machine learning algorithms using enriched category theory, resulting in a novel derivation of the nearest neighbors algorithm and its enriched variant, which enables soft classification boundaries and dependent classifications.

This paper is the first to construct and motivate a Machine Learning algorithm solely with Enriched Category Theory, supplementing evidence that Category Theory can provide valuable insights into the construction and explainability of Machine Learning algorithms. It is shown that a series of reasonable assumptions about a dataset lead to the construction of the Nearest Neighbours Algorithm. This construction is produced as an extension of the original dataset using profunctors in the category of Lawvere metric spaces, leading to a definition of an Enriched Nearest Neighbours Algorithm, which, consequently, also produces an enriched form of the Voronoi diagram. Further investigation of the generalisations this construction induces demonstrates how the $k$ Nearest Neighbours Algorithm may also be produced. Moreover, how the new construction allows metrics on the classification labels to inform the outputs of the Enriched Nearest Neighbour Algorithm: Enabling soft classification boundaries and dependent classifications. This paper is intended to be accessible without any knowledge of Category Theory.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes