cs.DSAug 22, 2025

Quality control in sublinear time: a case study via random graphs

Authors: Cassandra Marcussen, Ronitt Rubinfeld, Madhu Sudan

Organizations: School of Engineering and Applied Sciences, Harvard University, Cambridge, Massachusetts, USA. · Computer Science and Artificial Intelligence Laboratory, MIT, Cambridge, Massachusetts, USA.

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 DD such that, with high probability, a sample drawn from DD is "high quality," meaning its ρρ-value is near 11. The goal is to accept most inputs x∼Dx \sim D and reject potentially adversarially generated inputs xx with ρ(x)ρ(x) far from 11. In this work, we consider the sublinear version of the quality control problem, where D∈Δ({0,1}N)D \in Δ(\{0,1\}^N) and the goal is to solve the (D,ρ)(D,ρ)-quality problem with o(N)o(N) queries and time. As a case study, we consider random graphs, i.e., D=Gn,pD = G_{n,p} (and N=(n2)N = \binom{n}2), and the kk-clique count function ρk:=Ck(G)/EG′∼Gn,p[Ck(G′)]ρ_k := C_k(G)/\mathbb{E}_{G' \sim G_{n,p}}[C_k(G')], where Ck(G)C_k(G) is the number of kk-cliques in GG. In suitable parameter ranges, worst-case approximate kk-clique counting requires p−Ω(k2)p^{-Ω(k^2)} queries. In contrast, we show that the quality control problem for Gn,pG_{n,p} (with n≥p−ckn\geq p^{-ck} for some constant cc) with respect to ρkρ_k can be tested with p−O(k)p^{-O(k)} queries and time, showing quality control is provably superpolynomially more efficient in this setting. More generally, for a motif HH of maximum degree Δ(H)Δ(H), we show that the corresponding quality control problem can be solved with p−O(Δ(H))p^{-O(Δ(H))} queries and running time.

Figures & tables

Explore similar work

CardsList
  1. Quality Control Algorithms for Pattern Counting

    Aug 4, 2026Cassandra Marcussen, Ronitt Rubinfeld, Madhu SudanQuery Complexity

  2. Correlation Clustering with Random Partial Information

    Aug 17, 2026Rajath Rao K. N., Jens Schlöter, Sami Davies +2ClusteringGraph Clustering

  3. Clustering with Non-adaptive Subset Queries

    Sep 17, 2024Hadley Black, Euiwoong Lee, Arya Mazumdar +1Query ComplexityClustering