machine learning

Learning and Testing Convex Functions

arXiv:2511.11498

summary

The paper investigates how to learn and test real-valued convex functions under the Gaussian distribution, providing algorithms with explicit sample‑complexity bounds assuming the functions are Lipschitz.

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 using samples, together with a complementary lower bound of 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 samples.

43 pages; presentation improvements and minor corrections. To appear at RANDOM 2026

Topics & keywords

#convex functions#gaussian measure#learning theory#property testing#sample complexityagnostic proper learningLipschitz convexcorrelational statistical querytolerant testingone-sided tester