Quality control in sublinear time: a case study via random graphs
arXiv:2508.16531
Abstract
Many algorithms are designed to work well on average over inputs. But when such an algorithm is run on an arbitrary input, the question arises: Can we trust the algorithm on this input? This question is especially relevant in network science, where algorithms for theoretical random graph models are often applied to individual real-world networks. We identify a new class of algorithmic problems addressing this, which we call "Quality Control Problems." These problems are specified by a "quality function" and a distribution such that, with high probability, a sample drawn from is "high quality," meaning its -value is near . The goal is to accept most inputs and reject potentially adversarially generated inputs with far from . In this work, we consider the sublinear version of the quality control problem, where and the goal is to solve the -quality problem with queries and time. As a case study, we consider random graphs, i.e., (and ), and the -clique count function , where is the number of -cliques in . In suitable parameter ranges, worst-case approximate -clique counting requires queries. In contrast, we show that the quality control problem for (with for some constant ) with respect to can be tested with queries and time, showing quality control is provably superpolynomially more efficient in this setting. More generally, for a motif of maximum degree , we show that the corresponding quality control problem can be solved with queries and running time.
arXiv comment84 pages. FOCS 2026