Semirandom Planted Bipartite Subgraphs
Abstract
There have been many recent works studying planted subgraphs problems. The semirandom planted bipartite subgraph problem is defined as follows. Starting with a vertex set , an arbitrary subset of size is chosen, then an arbitrary bipartite graph is added on . After this between each pair of vertices in an edge is added independently with probability , then an arbitrary graph is added on . The analogous semirandom planted clique problem, where forms a clique, has been studied starting with the work of Fiege and Kilian [6]; recent work by [3, 11] gave an algorithm for this problem when . We give an algorithm for semirandom planted bipartite subgraph problem when and the two color classes are roughly balanced.
Our algorithms are essentially the same as the elegant greedy algorithm of [3]. We generalize their idea to our setting. Handling the arbitrary nature of the bipartite graph requires some new technical ideas and is our main technical contribution.
Keywords and phrases:
Semirandom Models, Spectral Algorithms, Planted Subgraphs, Random Graphs, Approximate Recovery AlgorithmsFunding:
Anand Louis: Supported in part by SERB Award CRG/2023/002896 and the Walmart Center for Tech Excellence at IISc (CSR Grant WMGT-23-0001).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Graph algorithms analysis ; Theory of computation Approximation algorithms analysisEditor:
Pierre FraigniaudSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
One of the well known NP-Hard problem in computer science is the problem of finding the maximum independent set (MIS) in a graph. Consider a graph then unless , [12] showed that for every it is hard to approximate MIS within . Another such problem which is known to be NP-Hard [18] is to find the largest induced bipartite subgraph of the graph .
A series of works on semirandom models have partially explained the tractability of finding the maximum clique problem. An instance of the planted clique problem is sampled as follows: we start with the set of vertices from which we choose an arbitrary subset of vertices and add a clique on them, for any pair of vertices, both of them simultaneously, not in we add an edge independently with probability (e.g. ). [2] designed a spectral algorithm to find the planted clique when but the spectral algorithm is not robust to the significant change in the edges outside of the clique. To study the robustness of clique finding algorithms, Feige and Kilian [6] introduced an insightful and influential semirandom model. In one version of this model, the edges between and (where is the set of vertices), also known as cut edges or , are added independently with probability , and the edges within can be configured adversarially with access to the random edges between and . In this model cannot be uniquely recovered since can have cliques of size whose cut edges are drawn independently with probability . The problem of finding a small list (of size ) of cliques of size in which the planted clique is present has been studied in [6, 5, 16, 4, 3, 11]. [3] gave an algorithm for this problem that works with probability at least over the input when . [11] gave an algorithm for this problem that works with probability 0.99 over the input when . [17] proved that it is information-theoretically impossible to recover the planted clique when
[15] considered the problem of finding an arbitrary planted -colorable size subgraph of on vertices such that the edges with both endpoints contained in are sampled independently with probability , and the edges between and can be configured adversarially with access to random edges contained in . This work designed a polynomial time algorithm to find a subgraph of of size at most whose intersection with is at least whenever . Their proof follows by showing that for a novel SDP relaxation of the problem, for which most of the mass is supported on . Their results also hold in the presence of monotone adversary, i.e., adversary who can arbitrary add edges in .
[9] considers the model in which an arbitrary bipartite subgraph on is planted and the graph on is arbitrary, and then the edges between and are sampled independently at random with probability . Note that the model considered by [9] is different from the model proposed by [6] since in this model, adversary doesn’t have access to the random edges between and . [9] gave an algorithm for the problem when is a bipartite graph of size and recovered a bipartite graph of size whenever .
In this paper inspired from [6], we consider the model when the cut edges between the -colorable graph and the rest of graph are sampled uniformly and independently at random with probability . The recent progress on the random planted -colorable graph problem naturally motivates us to study the Semirandom Planted Bipartite subgraph (SRPB) problem and Semirandom Planted Tripartite subraph (SRPT) problem mentioned below.
Definition 1 (Semirandom Planted Bipartite Graph, SRPB(,,,)).
(See figure 1) To an empty graph with vertex set :
-
1.
Plant a bipartite graph : Plant a bipartite graph on a random subset of vertices with , where and are two independent disjoint components of in which .
-
2.
Include cut edges at random: Add each edge to independently with probability .
-
3.
Choose the rest of the edges adversarially: Adaptively choose any induced graph on .
Our main results are following:
Theorem 2.
There exists a polynomial time algorithm such that for every and , given an instance of SRPB, the algorithm outputs a size list of graphs which contains a subgraph of such that and whenever with probability over the instance of SRPB.
Theorem 3.
There exists a polynomial time algorithm such that for every and , given an instance of SRPB, the algorithm outputs a size list of graphs which contains a subgraph of such that and whenever with probability 0.99 over then instance of SRPB.
We also study the 3-colorable version of the problem which is added here.
Definition 4 (Semirandom Planted Tripartite Subgraph, SRPT(,,)).
To an empty graph with vertex set :
-
1.
Plant a tripartite graph : Plant a tripartite graph on a random subset of vertices with , where and are three independent disjoint components of in which .
-
2.
Include cut edges at random: Add each edge to independently with probability .
-
3.
Choose the rest of the edges adversarially: Adaptively choose any induced graph on .
Theorem 5.
There exists a polynomial time algorithm such that for every , given an instance of SRPT, the algorithm outputs a size list of graphs that contains a subgraph of such that and whenever with probability 0.99 over the instance of SRPT.
1.1 Other Related Work
Random and Semirandom Models.
[13] proposed a model in which a -regular bipartite graph is planted on a set of size in and rest of the edges are added independently with probability , they designed an algorithm which recovers the planted bipartite subgraph with high probability when . Their algorithm also works for monotone adversary i.e. their algorithm can also recover the planted bipartite subgraph even if arbitrary edges are added in with addition to the edges that are already randomly generated. They show that the natural SDP formulation of this problem is integral. [14] studied this problem without monotone adversary and gave an simple spectral algorithm to recover when . [9] also study a natural extension of their semirandom model for -coloring (defined earlier in this section) to 3-coloring. Assuming that there is an algorithm to color 3-colorable graphs using colors, they gave an algorithm to compute a set of size (for some function ) and an coloring of it, where is the size of the planted -colorable subgraph.
Vertex Deletion Models.
In [1] a polynomial time algorithm was designed for the following problem. Given a graph where there exists a size subset of such that the induced subgraph on is bipartite, produce a subset of of size at least such that the subgraph induced on is bipartite. In [7], for the case where the maximum degree of is , they gave an algorithm to produce a subset of size at least such that the subgraph induced on is bipartite; assuming the Unique Games conjecture, they prove a matching (up to constant factors) hardness. [8] studied the problem when the bipartite graph induced on is a regular and low threshold-rank graph; they gave an algorithm, running in time exponential in , to recover a sized subset of such that the graph induced on is bipartite. Given a graph in which there exists a subset of size such that the graph induced on is -colorable. [9] designed a polynomial time algorithm to produce a subset such that and color using . They gave an algorithm to give a more general result.
Edge Deletion Models.
In [1], the problem of Min UnCut was studied which is equivalent to the problem of removing a minimum set of edges from a graph such that the graph is bipartite. [1] designed a approximation algorithm based on semi definite programming. [10] gave an algorithm to delete fraction of edges to obtain a bipartite graph where is the optimal fraction of edges in Min UnCut.
2 Proof Overview
We are going to follow the strategy introduced in [3] and will try to extend it to the case of planted bipartite subgraphs.
Let denote the adjacency matrix of the graph with , i.e., iff is an edge in . We also let be the - row of , be the projection of to coordinates in the independent components of the planted bipartite subgraph , be the projection of to the coordinates in and be the projection of to the coordinates in . denotes the neighbors of vertex in . For two sets and , denote their symmetric difference. For two vectors denotes their Euclidean inner product.
Strong correlation between vectors present in same color class of
We observe that are non-trivially correlated if are both in (or ).
Since if , the first term is and the second term depends on the number of common neighbors of and in i.e.
The third term is the sum of terms sampled uniformly and independently at random because every term in is chosen independently to be in . Therefore the third term satisfies with high probability. Thus
Thus will be highly correlated if and is smaller than some constant fraction of . In case of the semirandom planted clique problem [3], we directly get that for because is a clique. Using the following Lemma 6, which uses the principle of inclusion-exclusion, we will show that many of the pairs will be highly correlated. We need to carefully track the arbitrary edges between and ; we do this in Lemma 6 by showing that for three vertices , all three pairs cannot simultaneously have large symmetric difference of their neighborhood in .
Lemma 6.
For all (or ) if and , then .
Weak correlation between vectors when and
If and , then will be the sum of terms sampled uniformly and independently at random whose sum will be with high probability. Thus will be highly correlated when is sufficiently large. But using Lemma 10 we will show that most of such pairs cannot be highly correlated with high probability; one such easy case to check this is to sample a graph on vertices.
In [3] it was shown that for most of the vertices in (99 %) only a small amount of the vertices of can form a large inner product with a vertex in , when . For a vertex , define . We show in Lemma 7 using a subtle counting argument that there exist four vertices , using which we recover most of , i.e. .
Lemma 7.
For with probability at least over the input of SRPB() there exist 4 vertices of such that .
To make this work for smaller , [3] used the Hadamard product of the vectors instead of working with vectors: For define as point wise product (Hadamard product) of the vectors where . We note that using the above argument that if and then
where corresponds to a neighborhood of a natural imaginary vertex formed by in which will be explained later. Similarly if then
The analogue of the previous two equations for the semirandom planted clique problem was shown in [3]. In [3, 11] it was also shown that for most of the 3 size subset of (99 %), at most vertices of satisfies they showed this using restricted isometric property (RIP) of random matrices. To recover the planted bipartite subgraph when , we use this strategy to prove results analogous to Lemma 6 and Lemma 7 (see Lemma 12).
3 Algorithm and Analysis
3.1 Semirandom Planted Bipartite Subgraph for size
Theorem 2. [Restated, see original statement.]
There exists a polynomial time algorithm such that for every and , given an instance of SRPB, the algorithm outputs a size list of graphs which contains a subgraph of such that and whenever with probability over the instance of SRPB.
First we show that no three vertices (or ) can be simultaneously uncorrelated with each other.
Lemma 6. [Restated, see original statement.]
For all (or ) if and , then .
Proof.
Assume and . Then
Similarly the same will be also true for and . By the formula of inclusion-exclusion, we have
Since and , we have
which gives us a contradiction. Similarly if then and . Therefore
Remark 8.
Note that we can prove a much tighter bound if , since . By following the same argument as above we get that for all if and , then .
Call a pair of vertices good if , otherwise call them bad. Lemma 9 shows that all but one vertex of forms a good pair with some other vertex of .
Lemma 9.
At least vertices of forms a good pair with some other vertex in ; the same is true for the vertices of .
Proof.
To see this define
if is nonempty then choose a vertex from it. Since it means forms bad pairs with all other vertices in . Then by Lemma 6 we can conclude that all the vertices in forms good pairs in each other, so . Similar argument can be applied to .
The following lemma is taken directly from [3] which will imply that a vertex from cannot be highly correlated with many vertices of . We reproduce their proof here to make dependence on explicit since this case doesn’t arise in their setting.
Lemma 10 ([3]).
Let be vectors sampled uniformly and independently at random for Then with probability at least over the draw of vectors , for every there are at most vectors such that .
Proof.
Consider the matrix with columns . Then, by standard results in random matrix theory, with probability . Let be such that, for every . Then, by the Cauchy-Schwartz inequality, we have
On the other hand, by the choice of set , we have
Combining those two inequalities and rearranging, we get .
Greedy Procedure.
For , define . We show that we can reconstruct a bipartite graph which is close to the planted bipartite subgraph using .
We apply the Lemma 10 with for each as a uniform random element of and by taking for any . By Lemma 10, for each , at most elements of of will satisfy . Using this and the fact that for all and , with probability , we get that there are in total pairs such that satisfying
By Markov’s inequality, a uniformly random satisfies for at most vertices with probability . If e.g. such that , then at least vertices of will satisfy , which means will contain at most vertices not from , call such a set of vertices of as . Therefore
| (1) |
Note that to make the contribution from random terms small we need . Therefore we also need .
In [3] because was a clique, the above argument implies that for a vertex contains the whole of and vertices from . To see this, observe that each vertex will satisfy and all but vertices of will not be in because . Our goal is to extend this idea to recover bipartite subgraphs. We show that in SRPB we can recover fraction of vertices of using at most vertices of .
Lemma 7. [Restated, see original statement.]
For with probability at least over the input of SRPB() there exist 4 vertices of such that .
Proof.
Let . Intuitively Lemma 6 gives us that if doesn’t contain all vertices of i.e. if , then any two vertices will satisfy so i.e. . But we also need to be in for which brings us to two cases.
Case 1.
Case 2.
, then has almost all the vertices of because , so and since we have .
Therefore either by case 1 or case 2 there exists either one or two vertices of such that and . Similarly we can find two vertices which satisfies and , which shows that there exists at most four vertices such that .
From the above four lemmas we can finish the proof of Theorem 2.
Proof of Theorem 2.
3.2 Semirandom Planted Bipartite Subgraph for size )
Similar to [3, 11], we will show that we can recover using a constant no. of vertices in . For , define as i.e. is a Hadamard product of all the vectors such that . For , we will interchange between the notation and . For define
A small observation tells us that if and then
| (2) |
The next lemma uses the 1-norm analogue of RIP of matrices. For reference see proposition 2 and section 4 of [11].
Lemma 11 ([11]).
For every , at most subsets of size 3 satisfy with probability whenever .
Thus in total pairs such that satisfying , by Markov’s inequality, a uniformly random satisfies for at most with probability and if e.g. ( then for a uniformly chosen will satisfy , i.e. fractions elements of will form the vertex set which contains at most vertices not from , call such a set of elements of as . Therefore
| (3) |
In [3, 11] because was a clique, the above argument implies that for a triplet contains whole of and vertices from . To see this, observe that each vertex will satisfy and because , all but vertices of will not be in . Our goal is to extend this idea to recover bipartite subgraphs. We show that in SRPB() we can recover fraction of vertices of using at most vertices of .
Lemma 12.
Whenever , with probability 0.99 there exists such that and , such that and , which implies .
Proof.
Case 1.
There exists such that , which means that . Since , it implies that . Therefore .
Case 2.
For all pairs of , there exists a vertex such that and . Note that this implies that for because , and the same is true for .
We will now show that . Observe that whenever , and the same is true for . Consider a new instance of bipartite graph consisting of color classes of size respectively such that consists of three vertices whose neighbors in are determined by the vectors respectively, i.e. is connected to a vertex if and only if and rest of the vertices of have no neighbors in . Recall that in our notation is the row of the signed adjacency matrix of (similarly for and ). By the construction of we get that
Then by Lemma 6 , therefore for all
| (4) |
For , let be the number of vertices such that . Then
Then by Markov’s inequality, fraction elements of will have
| (5) |
For , let be the number of elements of such that , then by similar argument as above, fraction of will satisfy
| (6) |
Choose an for which , now for call to be the number of elements such that . Next we observe that , therefore . This implies that fraction elements of satisfy
| (7) |
Now choose such that and (such a exists because number of pairs that satisfies is (Equation 6), and most 2 size subsets of , i.e. elements of satisfy (Equation 5). Therefore the number of sets that satisfies are ). Now, choose a for which and (such a exist because at least elements satisfy (Equation 7), and elements satisfy (Equation 5), so number of elements satisfying both of the conditions simultaneously are ).
Proof of Theorem 3.
3.3 Semirandom Planted Tripartite Subgraph
Most of the work required to prove Theorem 5 is already done in the previous subsections. We use Algorithm 3 to prove Theorem 5.
Proof of Theorem 5.
Observe that if then
where denotes the set of neighbors of in . doesn’t depend on the edges between and , this case is similar to the case of SRPB(). Therefore using Lemma 12, there exists six subsets of which satisfies and , and similarly for with and with . So the Algorithm 3 gives the desired result.
4 Conclusion
In this work, we gave algorithms for recovering planted SRPB. In Theorem 2 we output a list of subgraphs in which one subgraph is guaranteed to have to have small symmetric difference with , whereas in Theorem 3 the list size is . A natural open question is to obtain list size of . [3, 11] obtain an optimal list size of for the semirandom planted clique problem by using some combinatorial methods to reduce the size of their list obtained from their greedy procedure. Such techniques don’t seem to directly extend to SRPB.
References
- [1] Amit Agarwal, Moses Charikar, Konstantin Makarychev, and Yury Makarychev. O() approximation algorithms for min uncut, min 2cnf deletion, and directed cut problems. In Proceedings of the Thirty-Seventh Annual ACM Symposium on Theory of Computing, STOC ’05, pages 573–581, New York, NY, USA, 2005. Association for Computing Machinery. doi:10.1145/1060590.1060675.
- [2] Noga Alon, Michael Krivelevich, and Benny Sudakov. Finding a large hidden clique in a random graph. In Proceedings of the Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’98, pages 594–598, USA, 1998. Society for Industrial and Applied Mathematics. URL: http://dl.acm.org/citation.cfm?id=314613.315014.
- [3] Jaroslaw Blasiok, Rares-Darius Buhai, Pravesh K. Kothari, and David Steurer. Semirandom Planted Clique and the Restricted Isometry Property . In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 959–969, Los Alamitos, CA, USA, October 2024. IEEE Computer Society. doi:10.1109/FOCS61266.2024.00064.
- [4] Rares-Darius Buhai, Pravesh K. Kothari, and David Steurer. Algorithms approaching the threshold for semi-random planted clique. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, pages 1918–1926, New York, NY, USA, 2023. Association for Computing Machinery. doi:10.1145/3564246.3585184.
- [5] Moses Charikar, Jacob Steinhardt, and Gregory Valiant. Learning from untrusted data. In Proceedings of the 49th annual ACM SIGACT symposium on theory of computing, pages 47–60, 2017. doi:10.1145/3055399.3055491.
- [6] Uriel Feige and Joe Kilian. Heuristics for semirandom graph problems. Journal of Computer and System Sciences, 63(4):639–671, 2001. doi:10.1006/jcss.2001.1773.
- [7] Suprovat Ghoshal and Anand Louis. Approximation algorithms and hardness for strong unique games. In Proceedings of the Thirty-Second Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’21, pages 414–433, USA, 2021. Society for Industrial and Applied Mathematics. doi:10.1137/1.9781611976465.26.
- [8] Suprovat Ghoshal and Anand Louis. Approximating csps with outliers. In Amit Chakrabarti and Chaitanya Swamy, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2022, University of Illinois, Urbana-Champaign, USA (Virtual Conference), September 19-21, 2022, volume 245 of LIPIcs, pages 43:1–43:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.APPROX/RANDOM.2022.43.
- [9] Suprovat Ghoshal, Anand Louis, and Rahul Raychaudhury. Approximation Algorithms for Partially Colorable Graphs. In Dimitris Achlioptas and László A. Végh, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2019), volume 145 of Leibniz International Proceedings in Informatics (LIPIcs), pages 28:1–28:20, Dagstuhl, Germany, 2019. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.APPROX-RANDOM.2019.28.
- [10] Michel X. Goemans and David P. Williamson. Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming. J. ACM, 42(6):1115–1145, November 1995. doi:10.1145/227683.227684.
- [11] Venkatesan Guruswami and Hsin-Po Wang. Semirandom planted clique via 1 norm isometry property. International Conference on Integer Programming and Combinatorial Optimization, pages 270–282, 2025.
- [12] Johan Håstad. Clique is hard to approximate within . Acta Mathematica, 182(1):105–142, 1999. doi:10.1007/BF02392825.
- [13] Akash Kumar, Anand Louis, and Rameesh Paul. Exact Recovery Algorithm for Planted Bipartite Graph in Semi-Random Graphs. In Mikołaj Bojańczyk, Emanuela Merelli, and David P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), volume 229 of Leibniz International Proceedings in Informatics (LIPIcs), pages 84:1–84:20, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2022.84.
- [14] Anand Louis and Rameesh Paul. No sdp needed for efficiently recovering planted regular bipartite graphs. In 2026 SIAM Symposium on Simplicity in Algorithms (SOSA), pages 538–550. SIAM, 2026.
- [15] Anand Louis, Rameesh Paul, and Prasad Raghavendra. Robust algorithms for recovering planted -colorable graphs. In Nika Haghtalab and Ankur Moitra, editors, Proceedings of Thirty Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 3766–3794. PMLR, 30 June–04 July 2025. URL: https://proceedings.mlr.press/v291/louis25a.html.
- [16] Theo McKenzie, Hermish Mehta, and Luca Trevisan. A new algorithm for the robust semi-random independent set problem. In Proceedings of the Thirty-First Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’20, pages 738–746, USA, 2020. Society for Industrial and Applied Mathematics. doi:10.1137/1.9781611975994.45.
- [17] Jacob Steinhardt. Does robustness imply tractability? A lower bound for planted clique in the semi-random model. Electron. Colloquium Comput. Complex., TR17-069, 2017. URL: https://eccc.weizmann.ac.il/report/2017/069.
- [18] Mihalis Yannakakis. Node-and edge-deletion np-complete problems. In Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, STOC ’78, pages 253–264, New York, NY, USA, 1978. Association for Computing Machinery. doi:10.1145/800133.804355.
