arXiv:2610.20813cs.DSOct 2026

Manuscript Offprint

arXiv:2610.20813

Tolerant Testers for Subgraph-Freeness

Reut Levi, Jonathan Meiri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this paper we study the problem of tolerantly testing the property of being H-free (which also implies distance approximation from being H-free).

In the general-graphs model, we show that tolerant KkK_k-freeness testing can be achieved with query complexity that is polynomial in the arboricity of the input graph GG, arb(G)\text{arb}(G), and independent of the size of GG (for graphs in which the average degree is Ω(1)\Omega(1)).

Specifically for triangles, our algorithm distinguishes graphs which are ϵ\epsilon-close to being triangle-free from graphs that are 3ϵ(1+η)3\epsilon(1+\eta)-far from being triangle-free with expected query complexity which is O~(arb3(G))\tilde{O}(\text{arb}^3(G)) (for constant η\eta and ϵ\epsilon).

For general k-cliques our algorithm distinguishes graphs which are ϵ\epsilon-close to being KkK_k-free from graphs which are (k2)ϵ(1+η)\binom{k}{2}\epsilon(1+\eta)-far from being KkK_k-free with expected query complexity which is polynomial in kk, 1/ϵ1/\epsilon, 1/η1/\eta and arb(G)\text{arb}(G).

We then generalize our result and provide a similar result for any motif H which is 2-connected and has radius 1. This includes for example the wheel graph.

Finally, we show that our tester can be applied to the bounded-degree model for tolerantly testing H-freeness for any motif H. The query complexity of the algorithm is polynomial in the degree bound, d, improving the previous state-of-the-art by Marko and Ron (TALG 2009) that obtained quasi-polynomial query complexity in d.

Keywords: tolerant testing, property testing, subgraph freeness, distance approximation, arboricity.

1 Introduction

The problem of testing H-freeness, where H is a small motif (namely, of size which is independent of the input graph), has received a lot of attention due to its fundamental importance for various fields including biology, sociology and network science. Detecting specific patterns, such as subgraphs, can reveal community structures, vulnerabilities, or anomalous behavior.

In the realm of property testing the decision problem is relaxed such that we are only aiming to distinguish graphs which are H-free from graphs that are far from being H-free (according to some predetermined distance measure). However, handling real-world data often means dealing with noise, incompleteness, or small errors. In these scenarios, tolerant testing (introduced by Parnas, Ron and Rubinfeld [15]) for H-freeness becomes crucial, as it allows us to distinguish graphs that are nearly H-free from those that are far from being H-free, thereby bypassing the problem of imperfections in the data. More specifically, a tolerant property testing algorithm is required to distinguish objects that are ϵ1\epsilon_1-close to having a given property P\mathcal{P} from objects that are ϵ2\epsilon_2-far from having P\mathcal{P}, for some parameters 0≤ϵ1<ϵ2≤10 \leq \epsilon_1 < \epsilon_2 \leq 1. Clearly, by definition, tolerant testing is at least as hard as testing. In fact, the separation between tolerant and non-tolerant

*A preliminary version of this paper appeared in the proceedings of the 33rd Annual European Symposium on Algorithms (ESA 2025).

†^{\dagger}Efi Arazi School of Computer Science, Reichman University, Israel. Email: reut.levi1@idc.ac.il. Supported by the Israel Science Foundation under Grant 1867/20.

‡^{\ddagger}Efi Arazi School of Computer Science, Reichman University, Israel. Email: jonathan.meiri@post.runi.ac.il. Supported by the Israel Science Foundation under Grant 1867/20.

testing can be very dramatic [8]. Another benefit of tolerant testing is that it implies (by a simple reduction) distance approximation where the ratio of approximation depends on the parameters ϵ1\epsilon_{1}, ϵ2\epsilon_{2} (see more details in [15]). Therefore, whenever feasible, we should aim to develop tolerant testers, ideally without incurring a significant overhead in query complexity.

One of the early works on tolerant testing by Marko and Ron [13] showed that it is possible to tolerantly test H-freeness in the bounded-degree model [9] for any motif H with query complexity that is quasi-polynomial in the degree bound and independent of the size of the graph.

In the regime of non-tolerant testers, Levi [12] showed that it is possible to test triangle-freeness with query complexity that depends linearly on the arboricity of the graph (which is tight for graphs with arboricity O(n)O(\sqrt{n})) and is independent of the size of the graph (assuming the average degree is Ω(1)\Omega(1)). Since graphs of bounded degree have bounded arboricity, this result applies to a broader family of graphs. However, this tester is not tolerant.

One natural question is whether the result in [12] can be extended to show that tolerant testing of triangle-freeness (and ideally other motifs) is possible in the general-graphs model with query complexity that depends only on the arboricity of the graph. Such a result would also generalize [13] (since bounded-degree graphs inherently have bounded arboricity). Another important question is whether the query complexity of subgraph freeness in the bounded-degree model can be improved to be polynomial in the degree bound (rather than quasi-polynomial). In this paper, we answer both questions affirmatively.