English

Nearest Neighbor Complexity and Boolean Circuits

Computational Complexity 2024-05-24 v2

Abstract

A nearest neighbor representation of a Boolean function ff is a set of vectors (anchors) labeled by 00 or 11 such that f(x)=1f(\vec{x}) = 1 if and only if the closest anchor to x\vec{x} is labeled by 11. This model was introduced by Hajnal, Liu, and Tur\'an (2022), who studied bounds on the number of anchors required to represent Boolean functions under different choices of anchors (real vs. Boolean vectors) as well as the more expressive model of kk-nearest neighbors. We initiate the study of the representational power of nearest and kk-nearest neighbors through Boolean circuit complexity. To this end, we establish a connection between Boolean functions with polynomial nearest neighbor complexity and those that can be efficiently represented by classes based on linear inequalities -- min-plus polynomial threshold functions -- previously studied in relation to threshold circuits. This extends an observation of Hajnal et al. (2022). We obtain exponential lower bounds on the kk-nearest neighbors complexity of explicit nn-variate functions, assuming kn1ϵk \leq n^{1-\epsilon}. Previously, no superlinear lower bound was known for any k>1k>1. Next, we further extend the connection between nearest neighbor representations and circuits to the kk-nearest neighbors case. As a result, we show that proving superpolynomial lower bounds for the kk-nearest neighbors complexity of an explicit function for arbitrary kk would require a breakthrough in circuit complexity. In addition, we prove an exponential separation between the nearest neighbor and kk-nearest neighbors complexity (for unrestricted kk) of an explicit function. These results address questions raised by Hajnal et al. (2022) of proving strong lower bounds for kk-nearest neighbors and understanding the role of the parameter kk. Finally, we devise new bounds on the nearest neighbor complexity for several explicit functions.

Keywords

Cite

@article{arxiv.2402.06740,
  title  = {Nearest Neighbor Complexity and Boolean Circuits},
  author = {Mason DiCicco and Vladimir Podolskii and Daniel Reichman},
  journal= {arXiv preprint arXiv:2402.06740},
  year   = {2024}
}

Comments

Minor corrections

R2 v1 2026-06-28T14:44:34.804Z