English

Learning and Testing Convex Functions

Data Structures and Algorithms 2025-11-17 v1 Machine Learning

Abstract

We consider the problems of \emph{learning} and \emph{testing} real-valued convex functions over Gaussian space. Despite the extensive study of function convexity across mathematics, statistics, and computer science, its learnability and testability have largely been examined only in discrete or restricted settings -- typically with respect to the Hamming distance, which is ill-suited for real-valued functions. In contrast, we study these problems in high dimensions under the standard Gaussian measure, assuming sample access to the function and a mild smoothness condition, namely Lipschitzness. A smoothness assumption is natural and, in fact, necessary even in one dimension: without it, convexity cannot be inferred from finitely many samples. As our main results, we give: - Learning Convex Functions: An agnostic proper learning algorithm for Lipschitz convex functions that achieves error ε\varepsilon using nO(1/ε2)n^{O(1/\varepsilon^2)} samples, together with a complementary lower bound of npoly(1/ε)n^{\mathrm{poly}(1/\varepsilon)} samples in the \emph{correlational statistical query (CSQ)} model. - Testing Convex Functions: A tolerant (two-sided) tester for convexity of Lipschitz functions with the same sample complexity (as a corollary of our learning result), and a one-sided tester (which never rejects convex functions) using O(n/ε)nO(\sqrt{n}/\varepsilon)^n samples.

Keywords

Cite

@article{arxiv.2511.11498,
  title  = {Learning and Testing Convex Functions},
  author = {Renato Ferreira Pinto and Cassandra Marcussen and Elchanan Mossel and Shivam Nadimpalli},
  journal= {arXiv preprint arXiv:2511.11498},
  year   = {2025}
}

Comments

43 pages