Manuscript Offprint
arXiv:2610.24114Constant-Factor Local Approximation for Bipartite Densest Subgraph
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Given a vertex in a large bipartite graph , can one quickly find a small densely connected region near ? This is the algorithmic core of many fraud detection, community detection, and recommender systems. One would like a local algorithm, i.e., an algorithm that probes in only a small number of locations to find such a region. Our main contribution is the first constant-factor local approximation, independent of the maximum degree of the graph, for the classical notion of bipartite density: if the sides of a bipartite subgraph are and , its density is , where is the number of edges between and . We consider cohesive dense subgraphs, since every dense subgraph contains a cohesive core of at least the same density. For such a cohesive dense subgraph with at most vertices per side, our algorithm, starting from any vertex in , uses neighbor queries to find a subgraph of density on vertices, for every fixed . We improve upon the result of Andersen (2010), whose approximation guarantee depends logarithmically on the maximum degree. We complement our positive result with information-theoretic and computational limitations: the quadratic dependence on in the output size is essentially unavoidable for constant-factor approximation. Our main technical innovation is an adaptation of the Lovász–Simonovits curve to the bipartite density problem, based on weak- norm bounds.
1 Introduction
Identifying dense bipartite subgraphs is a fundamental primitive across machine learning, network science, and web data mining. Bipartite graphs model interactions between two kinds of entities: accounts and products in e-commerce, users and multimedia content on social platforms, authors and venues in bibliometrics, or queries and destination URLs in web search (Dhillon, 2001). In fraud detection and cybersecurity, researchers search for dense bipartite subgraphs to detect botnets, astroturfing campaigns, and lockstep review manipulation, where malicious actors coordinate attacks against targeted subsets of resources (Beutel et al., 2013; Jiang et al., 2016; Hooi et al., 2017; Shin et al., 2018). In web mining, dense subgraphs correspond to link-spam farms (Gibson et al., 2005) and authoritative topic hubs (Kleinberg, 1999). In computational biology, dense subgraphs are used to identify regulatory motifs in genomic DNA (Fratkin et al., 2006), analyze drug-target interaction graphs, and uncover multi-functional complexes in gene annotation networks (Saha et al., 2010).
To quantify how tightly two sets of vertices are connected, we use the bipartite density objective (Kannan and Vinay, 1999; Andersen, 2010). Throughout, is a finite simple undirected bipartite graph with a fixed bipartition and maximum degree . For nonempty vertex sets and with edges between them, their density is
the geometric mean of the average degree from S into T and the average degree from T into S.
The maximum of over all nonempty sets on opposite sides can be computed in polynomial time by linear programming (Charikar, 2000). However, on modern web-scale networks—frequently spanning hundreds of millions of vertices and billions of edges (Qin et al., 2015)—such global algorithms are computationally prohibitive, as their running time and memory footprint scale with the size of the entire graph. We therefore study the local formulation (Andersen, 2010): given a starting vertex and a target size parameter , find a dense bipartite subgraph in the vicinity of using a number of queries and running time that depend solely on , completely independent of the graph size and maximum degree .
Classical local clustering algorithms for low-conductance sets (Spielman and Teng, 2013; Andersen et al., 2006; Allen-Zhu et al., 2013) seek sets with few boundary edges relative to their total degree. In contrast, is independent of edges leaving . Dense bipartite subgraphs in interaction graphs often have many edges to the rest of the graph—for example, when fraudulent accounts add large numbers of legitimate interactions as “camouflage” (Hooi et al., 2017). With these camouflage edges, the cut conductance of can approach 1. Standard random-walk and diffusion methods can then quickly leave the target, so we need local algorithms designed specifically for the bipartite density objective (Figure 1).
More formally, the local algorithm receives a starting vertex , an integer , and adjacency-list access to , as in Andersen (2010). We count neighbor queries: we read a specified entry of an adjacency list, or receive past its end. The guarantee is measured against unknown cohesive sets , (Definition 1.1) with at most vertices on each side. We require the algorithm to succeed from every starting vertex in , using a number of queries independent of . An approximation ratio means returning nonempty sets , with . For a single vertex, we write and .
We ask for approximation, not recovery: the union of the returned sets need not contain the starting vertex or intersect (after adding to the returned set on its side, the density is at least ; see Lemma B.3). A star with at least leaves has density at least and is therefore an acceptable output.

Figure 1: A complete bipartite subgraph with vertices in (blue) and in (orange), each with leaves (gray) outside . Here for every . Each vertex of has of its edges leaving , so the conductance of is at least , which tends to one as . Every star in this graph has density at most , which is for .
Andersen’s algorithm can be implemented using neighbor queries and returns sets with vertices each (this follows from Andersen’s analysis (Andersen, 2010, proof of Theorem 2); see also Appendix C.2). Its approximation ratio is bounded by (Andersen, 2010, Theorem 1). This bound is constant only when . For the complete bipartite subgraph of Figure 1 with camouflage edges per vertex, the lower bound on the returned density is , which decreases as grows even though . The density is invariant under the addition of edges outside the subgraph induced by , and the guarantee is not. Whether this dependence on the maximum degree is necessary for local approximation was open.
Definition 1.1 (Cohesive sets). Nonempty sets , with are cohesive if for all , and for all .
We use the term cohesiveness to formalize the minimum-degree structure already implicit in Andersen's proof of his main theorem (Andersen, 2010, Theorem 1). For any sets , with , there are cohesive subsets , of at least the same density, (Lemma A.1). For arbitrary , our setting is exactly that of Andersen, whose algorithm succeeds from every vertex of subsets that are selected by a minimum-degree argument and contain at least half of the edges (see the discussion in Corollary A.2).
Theorem 1.2 (Main result). For every , all cohesive sets , with , and every starting vertex , the deterministic algorithm LocalDense (Algorithm 2) returns nonempty sets , with the following guarantees:
(i) Locality and complexity: The output has vertices, and the algorithm makes neighbor queries and runs in time .
(ii) Constant-factor approximation: , independent of edges outside the subgraph induced by .
We complement our positive results by proving limitations on the output size:
Theorem 1.3 (Limitations on the output size, informal). No possibly randomized algorithm with neighbor-query access that, for all cohesive sets , with vertices on each side, returns nonempty sets , with with probability at least 2/3 from at least one vertex in can guarantee an output bound of vertices on each side if either:
(i) Unconditional: Its number of queries depends only on k; or
(ii) Computational: Assuming the Strongish Planted Clique Hypothesis (SPCH), its running time is at most for a constant c and a computable function f of k alone.
Up to the factor , our output size is therefore the best possible in both settings. We discuss the main result in Section 2 and the limitations in Section 3.
1.2 Our technique
From power iteration to prefix sweeps. Our starting point is Andersen's pruned power iteration (Andersen, 2010). We maintain a nonnegative vector indexed by vertices and multiply it by the adjacency matrix, setting , where the sum is over the neighbors of . For now, we set aside rescaling and pruning. The mass of on a set is . Suppose every vertex of has at least neighbors in and every vertex of at least in . After one multiplication, the mass of on is at least times the mass of on , and after two, the mass on is at least times its original value. These bounds hold even with edges leaving the target, since all coordinates are nonnegative. By cohesiveness, there exist powers of two , with (see Section 2.2; we remove this choice later). We cannot locate a dense pair from the growth of target mass alone: the target is unknown, and mass outside it may grow faster. Andersen extracts a dense pair from growth of the Euclidean norm. Instead we sort consecutive vectors and consider their initial segments, or prefixes. We seek a Lovász–Simonovits-type win–win (Spielman and Teng, 2013; Andersen et al., 2006): either we find a dense prefix pair in a sweep, or we obtain upper bounds on prefix sums that eventually become incompatible with the mass that remains on the target. Here set size means number of vertices, rather than volume.
The choice of norm. Which bound on prefix sums should we use for this alternative? Write for the vertices with the largest positive coordinates, breaking ties by identifier, and . A natural choice is the Euclidean norm, since . However, with only this inequality we incur a logarithmic loss when summing comparable bounds over dyadic ranges of prefix sizes (see Section 2.1). Changing the sweep alone is therefore not enough. We instead fix and use the weak- norm (Bennett and Sharpley, 1988, Chapter 4)
The bounds over dyadic ranges now form a geometric series, so we incur only a p-dependent factor when summing them (a detailed explanation of this comparison can be found in Appendix C.3). More precisely, let , where is supported on and is an adjacency matrix with column sums at most . Let be the density we aim to guarantee in the returned sets. For a prefix , if for every prefix , then
If the inequality fails for , we find dense sets by sweeping the prefixes of against . If no prefixes exceed density , we take the supremum over to bound (Section 2.1 and Appendix A.3).
Removing the degree dependence. The logarithm is gone, but the column sums remain. For the full adjacency matrix, we only know the bound on the column sums, where is the maximum degree. Since , we obtain a constant-factor approximation if we can guarantee density equal to a fixed fraction of , depending only on . The upper bound on the norm after two steps has factor , compared with the factor for the mass on . To make the norm factor smaller than , we need , at the cost of an additional approximation factor .
After rescaling, we want the target mass to grow while the weak norm decreases over pairs of steps. For a step from to , we use peeling to bound the number of selected edges incident to each vertex in while keeping enough target edges. We repeatedly remove a vertex in with at most remaining edges and select those edges, or a vertex in the current support with at most remaining edges and discard those edges. If vertices remain but neither removal is possible, their density exceeds (Section 2.2). If every vertex is removed, each vertex in has at most selected edges, while at least edges into are selected at each vertex of . Let be the adjacency matrix of the selected edges and set , so that the weighted column sums are at most one. For , we either find prefixes of density greater than , or
For the reverse step, we exchange a and b. If no dense sets are returned in either step, then after two steps without pruning the mass on S is at least 9/4 times its earlier value, while the weak norm is at most times its earlier value. Crucially, neither factor now depends on (Section 2.3).
The local search. We are now ready to combine the ideas above and present the algorithm. So far, we have assumed that suitable degree bounds are known. In reality, since they are unknown, we run a search for every pair of powers of two and return the densest candidate. Assume , exchanging the sides if necessary. Each search starts with , the vector equal to one at and zero elsewhere, and alternates between the sides. At step , the algorithm reads at most entries of the adjacency list of each vertex in . If it finds that many neighbors in one list, it returns a star of density at least . If no star is returned, all these adjacency lists have been read completely. The algorithm then peels the edges incident to the support of and, unless dense sets are returned, performs the rescaled multiplication and sets coordinates below to zero. We choose to keep the support small without losing too much target mass.
We abandon the guess if the pruned vector z is zero and otherwise set only if its weak norm satisfies the bound from the inequalities above, which decreases over pairs of steps. If this bound is exceeded, we sweep against the shortest prefix of z whose sum exceeds the corresponding bound. This prefix's vertices and sum are unchanged by pruning, so we find dense sets.
For the degree bounds chosen using cohesiveness and , we measure target mass with a factor on and no factor on . Before pruning, this mass is at least times its previous value, and we choose so that the loss during pruning is at most . The weighted mass therefore stays at least one, its initial value, and the vector never becomes zero. At every even step reached by the search,
After steps, the right-hand side would be less than one, so the search must return sets of density at least (Section 2.3).
1.3 Related Work
Spielman and Teng (2013) used the Lovász–Simonovits curve (Lovász and Simonovits, 1990; 1993) to analyze their local partitioning algorithm NIBBLE, and Andersen et al. (2006) adapted this analysis to personalized PageRank. Other local graph-partitioning algorithms use heat-kernel PageRank (Chung, 2009) or evolving sets (Andersen et al., 2016), and local clustering by p-norm flow diffusions and p-norm cuts (Fountoulakis et al., 2020; Liu and Gleich, 2020) has been extended to vertex attributes and noisy labels (Yang and Fountoulakis, 2023; Back de Luca et al., 2024). Local algorithms for dense bipartite-like subgraphs (Peng, 2012; Li and Peng, 2013; Macgregor and Sun, 2021) minimize the bipartiteness ratio, a cut objective analogous to conductance.
Local and seeded variants of densest subgraph have also been studied from a practical perspective. When densest subgraphs are extracted sequentially, fragmented sub-regions of a single dominant global core may be returned while distinct local communities are missed. Qin et al. (2015) therefore introduced locally densest subgraphs (LDS), based on -compact subgraphs, with structural core bounds and pruning techniques for exact verification on billion-edge graphs, but their algorithm traverses the whole graph. Dai et al. (2022) introduced the anchored densest subgraph (ADS) problem, with explicit edge or vertex penalties for expanding beyond a specified reference set, and solved it via localized parametric flow networks. Huang et al. (2024) generalized this formulation to hypergraphs using negative supermodular optimization, with strongly localized routines when the penalization parameter is sufficiently large. For dense-block discovery in fraud detection, Hooi et al. (2017) gave a camouflage-resistant algorithm for the whole graph.
The local problem of Andersen (2010) was revisited by Liu (2026, Theorems 1.2.2 and 1.2.3), who obtains an output size of with Andersen's approximation ratio, and with a ratio that also depends on . The techniques involved are different from ours and are based on spectral analysis, degree sorting, and majorization. Our algorithm, with , also returns vertices, using neighbor queries with an approximation ratio, independent of (Corollary B.4).
2 The local algorithm and its analysis
Our algorithm is based on an alternating power iteration from the starting vertex: with , it repeatedly multiplies the current vector by the adjacency matrix of a subgraph of and then prunes, alternating between the two sides. For suitable degree guesses, the mass inside a cohesive target grows by a factor of at least 9/4 over two weighted steps, before accounting for pruning. The target is unknown to the algorithm, and the mass outside it may grow as well, so we cannot identify dense sets from growth alone. For the analysis, we compare prefixes: either prefixes P, Q of consecutive vectors have density and the algorithm returns them, or the next prefix sums are bounded in terms of the current ones, with geometrically decreasing bounds over pairs of steps. This cannot last forever: the target has at most k vertices per side, but its mass on the starting side stays at least one at every even step.
We use neighbor queries with fixed adjacency-list orders and distinct vertex identifiers. Vectors are row vectors indexed by vertices, with indicators , and support . Vectors are restricted or extended by zero to match matrix indices. For any subgraph of , numbers of edges and densities in are denoted by and , and denotes the set of neighbors of in .
2.1 Prefix sweeps
In a step of the iteration from to , the current vector is supported on and the next vector is , where is the adjacency matrix of a subgraph of , so that each coordinate is the sum of over the neighbors of in this subgraph. To compare the largest coordinates of with those of , we adapt the Lovász–Simonovits curve (Lovász and Simonovits, 1990; 1993) to density: in place of the curve we use , the largest mass of the current vector on vertices, and in place of a sweep set of low conductance we look for prefixes with , where is a density threshold, fixed in (4).
Definition 2.1 (Prefix sums and the weak norm [Spielman and Teng, 2013, equation (3); Bennett and Sharpley, 1988, Chapter 4]). For a vector indexed by a finite set and , write for its positive coordinates in nonincreasing order, with ties broken by identifier, and set for . For , the prefix consists of the first vertices in this order. For , the prefix sums and weak- norm are defined by
where m is a nonnegative integer and is extended to real arguments by linear interpolation between consecutive integers, with . In particular, for every .
Definition 2.2 (Column-sum bound). A nonnegative matrix A has column-sum bound if for every column w.
After sorting , we take a prefix , whose sum is , and in a sweep we look for a prefix with . If there is none, then there are at most edges between and for every . For and a column-sum bound for (Definition 2.2),
This bound is a special case of Proposition A.4, proved in Appendix A.3 by summation by parts. In the proof, we use the smaller of two bounds for the number of edges from into in the subgraph represented by : from the density assumption and from the column sums. Whenever exceeds the right side of (2), the algorithm finds a prefix with in the sweep. If no such prefixes exist for any , then .
The bound holds only for : for , we obtain a logarithmic factor in place of , as in the guarantee of Andersen (2010), to which we compare ours in Appendix C. For the adjacency matrix of itself, whose column sums are the degrees, we can only take , so that the bound contains a factor , even though is independent of edges outside the subgraph induced by . To keep a fixed fraction of , we therefore need to bound independently of .
2.2 Vertex peeling
For each multiplication, we select edges by peeling: we repeatedly remove a vertex of low degree, selecting its remaining edges if it is on the side of the next vector, so that its column sum is small, and discarding them if it is on the side of the current vector, so that only a few of its edges are discarded. For each target vertex in the support, most edges into the opposite target set are selected for multiplication. The thresholds for low degree are fractions of the degrees a, b guaranteed by cohesiveness.
Lemma 2.3 (Degree guesses for cohesive sets). For cohesive sets , , there are powers of two , depending only on , such that for every , for every , and . For every with , , and .
The proof is in Appendix A.1. Since depend on unknown , the algorithm tries all pairs of powers of two in .
For a step from to with , the neighborhood graph of is , where is the set of neighbors of and is the set of edges incident to . (For a step from to , we argue in the same way after exchanging and .) We seek a set of selected edges such that every is incident to at most selected edges and every to at most discarded edges. With each selected edge assigned weight , the weighted matrix has column-sum bound . Each has at least edges into , of which at most are discarded, so at least of its edges into belong to , regardless of its degree in . Hence
Here since . Peel (Algorithm 1) selects edges by removing low-degree vertices, or returns dense subsets of the vertices it cannot remove.
If Peel removes every vertex, then an edge belongs to exactly when its endpoint in is removed before its endpoint in (line 5). Thus every has at most selected edges and every at most discarded edges, since these are its remaining edges when it is removed (line 2). If vertices remain, then every vertex of has more than neighbors in and every vertex of more than neighbors in (line 2), so that . In the search, , and the support size is bounded by pruning as in (6), but is not. To bound the output size, we replace by a subset (line 9) with . Every vertex of still has more than neighbors in , and the density remains above (see Lemma A.6(b)).
2.3 The algorithm and its guarantees
LocalDense (Algorithm 2) keeps the edge from v to its first neighbor as the first candidate, so that the output is nonempty with density at least one (lines 1 to 4). By guessing a,b among the
Algorithm 1 Peel(H, x, a, b): select edges or return subsets
Input: A bipartite graph , a nonnegative vector indexed by , and .
Output: A nonnegative vector indexed by , or sets , with and .
1: , ,
2: while there exists with or with do
3: Let be the vertex with smallest identifier satisfying either condition.
4: if then
5: and
6: else
7:
8: if then return indexed by with
9: Let consist of the first vertices of in identifier order.
10: return
powers of two in (line 5), we lose only a constant factor in the approximation. To keep the computation local, reads at most entries of each adjacency list and returns a star if it finds that many neighbors, since a star with that many leaves has density at least (line 14). It accepts the pruned vector as the next one only if it passes the weak-norm test of line 20, analyzed below.
For a starting vertex in and a guess , the search uses the density threshold , the pruning threshold , and the weak-norm thresholds , where
The density threshold is a constant fraction of , and since .
For a step from to , write and , where is the adjacency matrix of the selected edges and has column-sum bound (line 16). If for every prefix , then, using (2), rescaling by , and substituting from (4), we get
For and a nonnegative vector , prune is obtained from by setting every coordinate smaller than to zero, and the pruned vector is (line 18). For every prefix , and , so (5) holds with in place of as well. Every positive coordinate of is at least , and the sum over any set decreases by at most (Appendix A.2).
For cohesive sets , , a starting vertex , and the search with the guess from Lemma 2.3, we consider the mass on the target side, multiplied by when that side is . Whenever Peel returns a vector, its weighted target mass before pruning is at least 3/2 times the previous value, by (3). By Lemma 2.3, the bounds , and the choice of in (4),
Thus at most is lost during pruning. The initial weighted target mass is one, so by induction it remains at least one after every pruning step in the search with guess . In particular, at each such step.
The search accepts as the next vector only if , so every satisfies (lines 20 and 21). The thresholds are chosen to match (5): starting from , is
Algorithm 2 Local approximation, for
LocalDense
Input: Neighbor-query access to , a vertex , and an integer .
Output: Nonempty , , or if is isolated.
1: Query the first neighbor of .
2: if then return
3: if then exchange the roles of and below, and swap the returned sets
4:
5: for each do
6:
7: if then add (ordered with its current -subset first) to
8: return maximizing
Input: The inputs above, with , and a guess .
Output: Two nonempty vertex sets on opposite sides of , or .
9: Take from (4), and set .
10: for do
11: if is even, and if is odd
12: for each do
13: Read the adjacency list of , stopping after entries, and let be the set of neighbors read.
14: if then return
15: Let be the neighborhood graph of , with .
16:
17: if consists of sets then return
18: ,
19: if then return
20: if then
21:
22: else
23: Let be the smallest index such that .
24: return for the smallest with , or if none exists
multiplied by in each step from to and by in each step from to , as specified for in (4). Hence, if for all prefixes , then, by (5) and for every integer . By Lemma A.3(a), the supremum defining is attained at such an integer, so passes the test. Over two steps, the threshold decreases by a factor of . If fails the test, finds the shortest prefix whose sum exceeds (line 23). Since the bound (5) fails for this prefix, some prefix has , and the search returns these two prefixes (line 24).
Output size and locality. Every positive coordinate of is at least and , so, by the choice of parameters in (4),
and each set returned by a sweep or by peeling has at most vertices (Lemma B.1(d)), so the output has vertices. Every vertex of has a neighbor in , so the sets returned at step lie within distance of , where by (6). In particular, for , every returned vertex lies within distance of (Lemma B.3).
The algorithm makes neighbor queries (Appendix B.2).
Constant approximation. We prove that, for every and as in Theorem 1.2, the output of LocalDense satisfies
We choose as in Lemma 2.3 and suppose first that . By the induction above, at every pruning step in the search with guess . The search cannot continue indefinitely, since at every even step. Thus returns sets of density at least within steps. Since , their density satisfies (7). For , we exchange and . All other searches also terminate by (6), and returns the densest candidate. For and , we obtain the guarantees of Theorem 1.2, with approximation ratio , by direct calculation from (6) and (7), using ; see Appendix B.3 for details.
3 Limitations on improving the output size
For a target with at most vertices per side, our algorithm returns vertices with a constant approximation ratio. Can the output be reduced to or while keeping the approximation ratio constant? The threshold appears because we ask for approximation rather than recovery: a star with leaves has density and is as dense as any target with at most vertices per side, whereas a star with leaves has density . We rule out output size per side in two settings:
• Restricted queries. If the worst-case number of queries is bounded by a function of k alone, or more generally is for every fixed k, while computation between queries is unrestricted, then, on some instance and from every target vertex, even a randomized algorithm fails with probability at least 2/3 to return a constant approximation. We choose k centers per side uniformly among many disjoint stars and place the edges of a complete bipartite subgraph at uniformly chosen adjacency-list positions. We compare runs before and after this modification using the same algorithmic randomness. Unless the algorithm receives different answers or includes a target center other than the starting vertex in its output, any returned sets have density at most , whereas the target has density k. By summing the success probabilities over target vertices and averaging over the random construction, we obtain one graph on which the algorithm fails with probability at least 2/3 from every target vertex. The formal statement is Theorem D.2, proved in Appendix D.1.
• Restricted running time. If the algorithm may read the entire graph but must run in time for a computable function of , the limitation is that we need to find not only a dense subgraph, but also a small one. For a graph promised to contain a -clique, the two copies of the clique in its bipartite double cover have . From returned sets with and , we extract a set of vertices of spanning edges. Since the optimal -vertex subgraph has edges, the approximation ratio for Densest -Subgraph would be , which under the Strongish Planted Clique Hypothesis (SPCH) of Manurangsi et al. (2021) is impossible in this running time, even with randomization. The formal statement is Theorem D.8, proved in Appendix D.2.2. Under ETH, we obtain a weaker output-size bound by the same reduction (Theorem D.12, proved in Appendix D.2.3).
4 Conclusion
We give the first constant-factor local approximation algorithm for the bipartite densest subgraph problem, with output size, number of queries, and running time depending on k alone (Theorem 1.2). Like the density itself, the guarantee does not depend on edges outside the subgraph induced by .
The main technical question left unanswered is the following: while sub-quadratic output is impossible in the settings of Section 3, quadratic output is not ruled out, and we leave open whether it is possible to achieve a constant-factor approximation with output of size .
Beyond improving the output size and approximation ratio, is it possible, under suitable assumptions, to ensure that the returned sets overlap with the target sets? Such results are known in the case of conductance, i.e., the classical application of the Lovász–Simonovits curve—see, for example, Yang and Fountoulakis (2023); Back de Luca et al. (2024).
Acknowledgements
Guy Weissenberg was supported by the Swiss National Science Foundation grant 10004935 - Sublinear Algorithms for Non-linear Structures (Project MINT).
AI use statement
In this work, we used generative AI tools for brainstorming, writing and editing. We have reviewed all AI-assisted work, and constructed the main arguments in the paper ourselves. We checked the LLM-generated ideas for potential plagiarism through a manual literature survey. We take responsibility for the final content of this work, including its presentation, text, claims and proofs.
References
Zeyuan Allen-Zhu, Silvio Lattanzi, and Vahab Mirrokni. A local algorithm for finding well-connected clusters. In Proceedings of the 30th International Conference on Machine Learning (ICML 2013), volume 28 of Proceedings of Machine Learning Research, pages 396–404, 2013. URL https://proceedings.mlr.press/v28/allenzhu13.html.
Reid Andersen. A local algorithm for finding dense subgraphs. ACM Transactions on Algorithms, 6(4):60:1–60:12, 2010. doi: 10.1145/1824777.1824780. URL https://doi.org/10.1145/1824777.1824780.
Reid Andersen, Fan Chung, and Kevin Lang. Local graph partitioning using PageRank vectors. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), pages 475–486, 2006. doi: 10.1109/FOCS.2006.44. URL https://doi.org/10.1109/FOCS.2006.44.
Reid Andersen, Shayan Oveis Gharan, Yuval Peres, and Luca Trevisan. Almost optimal local graph clustering using evolving sets. Journal of the ACM, 63(2):15:1–15:31, 2016. doi: 10.1145/2856030. URL https://doi.org/10.1145/2856030.
Artur Back de Luca, Kimon Fountoulakis, and Shenghao Yang. Local graph clustering with noisy labels. In 12th International Conference on Learning Representations (ICLR 2024), 2024. URL https://openreview.net/forum?id=89A5c6enfc.
Colin Bennett and Robert C. Sharpley. Interpolation of Operators, volume 129 of Pure and Applied Mathematics. Academic Press, 1988. ISBN 978-0-12-088730-9.
Alex Beutel, Wanhong Xu, Venkatesan Guruswami, Christopher Palow, and Christos Faloutsos. CopyCatch: Stopping group attacks by spotting lockstep behavior in social networks. In Proceedings of the 22nd International Conference on World Wide Web (WWW 2013), pages 119–130, 2013. doi: 10.1145/2488388.2488400. URL https://doi.org/10.1145/2488388.2488400.
Yonatan Bilu and Nathan Linial. Lifts, discrepancy and nearly optimal spectral gap. Combinatorica, 26(5):495–519, 2006. doi: 10.1007/s00493-006-0029-7. URL https://doi.org/10.1007/s00493-006-0029-7.
Moses Charikar. Greedy approximation algorithms for finding dense components in a graph. In APPROX 2000, volume 1913 of Lecture Notes in Computer Science, pages 84–95. Springer, 2000. doi: 10.1007/3-540-44436-X_10. URL https://doi.org/10.1007/3-540-44436-X_10.
Fan Chung. A local graph partitioning algorithm using heat kernel PageRank. Internet Mathematics, 6(3):315–330, 2009. doi: 10.1080/15427951.2009.10390643. URL https://doi.org/10.1080/15427951.2009.10390643.
Yizhou Dai, Miao Qiao, and Lijun Chang. Anchored densest subgraph. In Proceedings of the 2022 International Conference on Management of Data (SIGMOD 2022), pages 1200–1213, 2022. doi:10.1145/3514221.3517890. URL https://doi.org/10.1145/3514221.3517890.
Inderjit S Dhillon. Co-clustering documents and words using bipartite spectral graph partitioning. In Proceedings of the Seventh ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD 2001), pages 269–274, 2001. doi: 10.1145/502512.502550. URL https://doi.org/10.1145/502512.502550.
Kimon Fountoulakis, Di Wang, and Shenghao Yang. p-norm flow diffusion for local graph clustering. In Proceedings of the 37th International Conference on Machine Learning (ICML 2020), volume 119 of Proceedings of Machine Learning Research, pages 3222–3232, 2020. URL https://proceedings.mlr.press/v119/fountoulakis20a.html.
Eugene Fratkin, Brian T Naughton, Douglas L Brutlag, and Serafim Batzoglou. MotifCut: regulatory motifs finding with maximum density subgraphs. Bioinformatics, 22(14):e150–e157, 2006. doi: 10.1093/bioinformatics/btl243. URL https://doi.org/10.1093/bioinformatics/btl243.
David Gibson, Ravi Kumar, and Andrew Tomkins. Discovering large dense subgraphs in massive graphs. In Proceedings of the 31st International Conference on Very Large Data Bases (VLDB 2005), pages 721–732, 2005. URL https://www.vldb.org/conf/2005/papers/p721-gibson.pdf.
Bryan Hooi, Kijung Shin, Hyun Ah Song, Alex Beutel, Neil Shah, and Christos Faloutsos. Graph-based fraud detection in the face of camouflage. ACM Transactions on Knowledge Discovery from Data, 11(4):44:1–44:26, 2017. doi: 10.1145/3056563. URL https://doi.org/10.1145/3056563.
Yufan Huang, David F. Gleich, and Nate Veldt. Densest subhypergraph: Negative supermodular functions and strongly localized methods. In Proceedings of the ACM Web Conference 2024 (WWW 2024), pages 881–892, 2024. doi: 10.1145/3589334.3645624. URL https://doi.org/10.1145/3589334.3645624.
Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. Journal of Computer and System Sciences, 62(2):367–375, 2001. doi: 10.1006/jcss.2000.1727. URL https://doi.org/10.1006/jcss.2000.1727.
Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? Journal of Computer and System Sciences, 63(4):512–530, 2001. doi:10.1006/jcss.2001.1774. URL https://doi.org/10.1006/jcss.2001.1774.
Meng Jiang, Peng Cui, Alex Beutel, Christos Faloutsos, and Shiqiang Yang. Catching synchronized behaviors in large networks: A graph mining approach. ACM Transactions on Knowledge Discovery from Data, 10(4):35:1–35:27, 2016. doi: 10.1145/2746403. URL https://doi.org/10.1145/2746403.
Ravi Kannan and V. Vinay. Analyzing the structure of large graphs. Manuscript, July 13, 1999. URL https://www.cs.yale.edu/homes/kannan/Papers/webgraph.pdf.
Jon M Kleinberg. Authoritative sources in a hyperlinked environment. Journal of the ACM, 46(5): 604–632, 1999. doi: 10.1145/324133.324140. URL https://doi.org/10.1145/324133.324140.
Angsheng Li and Pan Peng. Detecting and characterizing small dense bipartite-like subgraphs by the bipartiteness ratio measure. In Algorithms and Computation (ISAAC 2013), volume 8283 of Lecture Notes in Computer Science, pages 655–665. Springer, 2013. doi: 10.1007/978-3-642-45030-3_61. URL https://doi.org/10.1007/978-3-642-45030-3_61.
Meng Liu and David F. Gleich. Strongly local p-norm-cut algorithms for semi-supervised learning and local graph clustering. In Advances in Neural Information Processing Systems, volume 33, pages 5023–5035, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/3501672ebc68a5524629080e3ef60aef-Abstract.html.
Raymond Liu. Bipartite density: from mixing time to local algorithms for dense subgraphs. Master of mathematics thesis, University of Waterloo, 2026. URL https://hdl.handle.net/10012/24018.
László Lovász and Miklós Simonovits. The mixing rate of Markov chains, an isoperimetric inequality, and computing the volume. In 31st Annual Symposium on Foundations of Computer Science (FOCS 1990), pages 346–354, 1990. doi: 10.1109/FSCS.1990.89553. URL https://doi.org/10.1109/FSCS.1990.89553.
László Lovász and Miklós Simonovits. Random walks in a convex body and an improved volume algorithm. Random Structures & Algorithms, 4(4):359–412, 1993. doi: 10.1002/rsa.3240040402. URL https://doi.org/10.1002/rsa.3240040402.
Peter Macgregor and He Sun. Local algorithms for finding densely connected clusters. In Proceedings of the 38th International Conference on Machine Learning (ICML 2021), volume 139 of Proceedings of Machine Learning Research, pages 7268–7278, 2021. URL https://proceedings.mlr.press/v139/macgregor21a.html.
Pasin Manurangsi. Almost-polynomial ratio ETH-hardness of approximating densest k-subgraph. In STOC 2017, pages 954–961. ACM, 2017. doi: 10.1145/3055399.3055412. URL https://doi.org/10.1145/3055399.3055412. Theorem numbers refer to arXiv:1611.05991v2.
Pasin Manurangsi, Aviad Rubinstein, and Tselil Schramm. The strongish planted clique hypothesis and its consequences. In ITCS 2021, volume 185 of Leibniz International Proceedings in Informatics, pages 10:1–10:21. Schloss Dagstuhl, 2021. doi: 10.4230/LIPIcs.ITCS.2021.10. URL https://doi.org/10.4230/LIPIcs.ITCS.2021.10.
Pan Peng. A local algorithm for finding dense bipartite-like subgraphs. In Computing and Combinatorics (COCOON 2012), volume 7434 of Lecture Notes in Computer Science, pages 145–156. Springer, 2012. doi: 10.1007/978-3-642-32241-9_13. URL https://doi.org/10.1007/978-3-642-32241-9_13.
Pan Peng, Yuyang Wang, Joy Qiping Yang, and Yichun Yang. An exponential lower bound for spectral density estimation on unweighted graphs. In Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 5332–5357. PMLR, 2026. URL https://proceedings.mlr.press/v336/peng26a.html.
Lu Qin, Rong-Hua Li, Lijun Chang, and Chengqi Zhang. Locally densest subgraph discovery. In Proceedings of the 21st ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD 2015), pages 965–974, 2015. doi: 10.1145/2783258.2783299. URL https://doi.org/10.1145/2783258.2783299.
Barna Saha, Allison Hoch, Samir Khuller, Louiqa Raschid, and Xiao-Ning Zhang. Dense subgraphs with restrictions and applications to gene annotation graphs. In Annual International Conference on Research in Computational Molecular Biology, volume 6044 of Lecture Notes in Computer Science, pages 456–472. Springer, 2010. doi: 10.1007/978-3-642-12683-3_30. URL https://doi.org/10.1007/978-3-642-12683-3_30.
Kijung Shin, Bryan Hooi, and Christos Faloutsos. Fast, accurate, and flexible algorithms for dense subtensor mining. ACM Transactions on Knowledge Discovery from Data, 12(3):28:1–28:30, 2018. doi: 10.1145/3154414. URL https://doi.org/10.1145/3154414.
Daniel A. Spielman and Shang-Hua Teng. A local clustering algorithm for massive graphs and its application to nearly linear time graph partitioning. SIAM Journal on Computing, 42(1):1–26, 2013. doi: 10.1137/080744888. URL https://doi.org/10.1137/080744888.
Shenghao Yang and Kimon Fountoulakis. Weighted flow diffusion for local graph clustering with node attributes: An algorithm and statistical guarantees. In Proceedings of the 40th International Conference on Machine Learning (ICML 2023), volume 202 of Proceedings of Machine Learning Research, pages 39252–39276, 2023. URL https://proceedings.mlr.press/v202/yang23d.html.
A Technical lemmas for the local algorithm
We prove the statements deferred from Sections 1 and 2.
A.1 Cohesive subsets and degree guesses
Lemma A.1 (Existence of cohesive subsets). For all sets and with , there are cohesive subsets and satisfying .
Proof. Choose nonempty sets and maximizing . Then . For , the bound is trivial if . Otherwise, by maximality, , that is,
Rearranging and using , we get
so . By symmetry, for every , so are cohesive.
Proof of Lemma 2.3. Let and . Since are cohesive, for every and for every . The guesses and are the largest powers of two not exceeding and , respectively, so that
Degrees are integers and , so for every , and similarly for every . By (8),
For any with , and hence . It remains to show , as follows by symmetry. If , then . If , then and
Corollary A.2 (Arbitrary target sets). For every and all sets , with and , there are and with such that, from every starting vertex , the algorithm LocalDense satisfies (i) of Theorem 1.2 and its output satisfies .
Proof. By Lemma C.2, there are and with such that for every and for every , where now and . Since , both and are at most . Rounding as in the proof of Lemma 2.3, we choose powers of two with for every , for every , and .
If , then , and if , then . By symmetry, .
In the proof of (7) in Section 2.3, we use only these properties of the target sets and of the guess , so from every the output has density above . By (17), . The bounds in (i) hold for every starting vertex by Theorem B.2.
A.2 Weak- preliminaries and pruning
Lemma A.3 (Prefix sums, support size, and pruning). For a nonzero vector with , and :
(a) The supremum in the definition of is attained at an integer , that is,
(b) If every positive coordinate of x is at least , then .
(c) For and , , every positive coordinate of is at least , and
Proof of Lemma A.3. We prove each item below.
(a) On the ratio increases, and for the numerator is constant while the denominator increases. On each interval with , is linear (Definition 2.1) and is concave. With the maximum of the ratio over this interval, is convex with maximum zero, and a convex function attains its maximum at an endpoint of the interval, so the ratio equals at an endpoint. Hence the supremum is attained at an integer .
(b) Every positive coordinate is at least , so by Definition 2.1, and hence .
(c) Each coordinate of lies in .
Remark. The norm is the norm of Bennett and Sharpley (1988, Chapter 4) on the weak- sequence space, the Lorentz space . It lies between the quasinorm and times that quasinorm.
A.3 The interpolation inequality
Proposition A.4. For , a vector with nonempty support and , and a nonnegative matrix with column-sum bound (Definition 2.2), if and a set of size satisfy
then
Proof of Proposition A.4. We write in the order of Definition 2.1 and set , so that . By (11) and the column-sum bound,
Then , and the two terms defining are equal at , so for and for . By summation by parts, with ,
Since is linear with slope on and constant beyond (Definition 2.1), we can write the last sum as an integral. Integrating by parts, with a zero boundary term at 0 because for , we obtain
By Definition 2.1, for every real . With , the bracketed expression is at most
Finally
and (12) holds.
The restriction is needed only for , so that the integral of converges at zero. For , the integrand is , whose integral over is for , and we must bound the small prefixes separately, as in Appendix C.3.
The prefix-sum bound. The bound (2) in Section 2.1 is the case of Proposition A.4 in which is the adjacency matrix of a subgraph of with column-sum bound , is supported on , , and is a prefix of . If for every prefix , then
which is (11) with , and (12) is (2).
A.4 The one-step search bound
Lemma A.5 (Prefix sums after peeling). For , , a vector with nonempty support , the neighborhood graph of with , and a vector returned by Peel(), every nonempty with for all satisfies
The same bound holds for , for every . For , the same holds with a and b exchanged, so that replaces in (13).
Proof of Lemma A.5. We write for the selected edges and for the matrix with for and otherwise, so that . Since Peel selects at most edges incident to each ,
For every prefix ,
We apply Proposition A.4 with and to obtain (13). Since , the same bound holds for .
With from (4) and , (13) is (5).
Lemma A.6 (Scanning and returned sets). The following holds for one step of Search with peeling parameters and density threshold from a nonnegative vector with nonempty support , where .
(a) If no star is returned, then the adjacency lists read in line 13 contain every edge of the neighborhood graph H of U (line 15), and for every .
(b) If Peel returns sets and , both are nonempty and
For , the same conclusions hold with a and b exchanged.
Proof of Lemma A.6. We prove each item below.
(a) If no star is returned, every adjacency list of a vertex in is read to its end (line 14). Thus these lists contain every edge incident to , and for every .
(b) Search calls Peel only if no star is returned, so by (a), for all and . Both and are nonempty, since an isolated vertex would have been removed. Y is or consists of vertices of (line 9), so Y is nonempty and
If , then and by the loop condition (line 2), so
If , then , and every vertex of has more than neighbors in , so
B Completing the analysis of the local algorithm
We complete the proof of Theorem 1.2 and prove Corollary B.4.
B.1 Search invariants and termination
Lemma B.1. For , , and a vertex of positive degree, with the parameters in (4) satisfies the following.
(a) Every vector satisfies .
(b) Every positive coordinate of is at least , and .
(c) The search terminates and never returns from the sweep.
(d) In each step, the search reads at most entries of each adjacency list. Whenever the search returns sets , they satisfy and .
For , the same holds for the search with and exchanged.
Proof of Lemma B.1. We prove each item below.
(a) , and every later satisfies the weak-norm test (line 20).
(b) Positive coordinates are at least at , since and , and at later steps by pruning (Lemma A.3(c)). By (a) and Lemma A.3(b), . Since and by (4),
(c) Every vector is nonzero (line 19), so, by (b), . The upper bound tends to zero, so the search computes only finitely many vectors and terminates. For the second claim of (c), we show that in the sweep at step we find with , where and is the prefix of line 23. Otherwise, for even , by Lemma A.5 with and by (a),
By (4), , so the factor is . For odd , (13) holds with in place of , and the factor is . In both cases, , contradicting the choice of . The graph is the neighborhood graph of (line 15), so , and the sets are returned by the sweep.
(d) In each step, the search reads at most entries of each adjacency list (line 13). By Bernoulli's inequality, , so , and since , it follows that . A returned star therefore has at most leaves, and its density is . The sets returned by the sweep have density above (line 24), and the sets returned by peeling have density above (Lemma A.6(b)).
For sets returned by the sweep at step , the prefix lies in , so by (b). By Lemma A.3(a), , so by pruning, and since is the smallest index with ,
so, by (14) and ,
For sets returned by peeling at step , the set lies in , so by (b). By Lemma A.6(b), for even , and for odd . In both cases, the coefficient of is by (4). Hence, by (14),
B.2 Query complexity, running time, and locality
Graph access. The algorithm accesses through neighbor queries. Each adjacency list has a fixed order. When the algorithm makes a query for an integer , it receives the th neighbor of , or if , where is the degree of . To read the list to its end, the algorithm makes queries. We assume that the side of a vertex can be read from its identifier. We count neighbor queries and elementary operations at unit cost, including reads, copies, and comparisons of vertex identifiers. For -bit identifiers, reading an identifier takes bit operations.
Theorem B.2 (Local computation). For , and every starting vertex , the algorithm LocalDense terminates. If is isolated, it returns after one query. Otherwise, the output has at most vertices and density at least one, the number of neighbor queries is at most
and the running time is
Proof of Theorem B.2. If is isolated, the first query is answered with , and LocalDense returns as well (line 2). Otherwise, every search terminates by Lemma B.1(c). By Lemma B.1(d), the sets returned by the searches have at most vertices per side, so the output has at most vertices. Its density is at least one because the initial edge is a candidate.
By Lemma B.1(b), for each guess , the algorithm scans at most adjacency lists in total, with at most queries per list by Lemma B.1(d). Including the initial query, the total is at most
where there are guesses and
Thus the number of queries is at most (15).
For the running time, we consider a step in which no star is returned, with the neighborhood graph of . Every vertex of has a neighbor, since has positive degree and every vertex of is joined to by a selected edge (line 8), so
. By Lemma B.1(b), , and by Lemma A.6(a) and (4), for every , so
The time spent in this step sorting the vectors, running Peel and performing any sweep is , and the algorithm makes at least queries to build . When a star is returned, the work in that step is linear in the number of queries. Summing over all steps and guesses, we obtain a time bound of per query and hence (16).
Lemma B.3 (Distance from the starting vertex). For sets and returned by LocalDense , every vertex of lies within distance of in . If then , and if then .
Proof of Lemma B.3. In every search, , and every vertex of has a neighbor in , since is indexed by and . By induction, lies within distance of . At step , the vertices of a returned star, of the sets returned by peeling and of the prefixes returned by the sweep lie in and hence within distance of . The initial edge is within distance one of . Every vector is nonzero, so by Lemma B.1(b), and thus .
For the last claim, if , then and , so . The case is symmetric.
B.3 Choosing the exponent
Proof of Theorem 1.2. For every , LocalDense returns nonempty sets and with
as proved in Section 2.3. For and , the constant equals . By ,
Hence , which is (ii) of Theorem 1.2. By Theorem B.2, the output has vertices, and the algorithm makes neighbor queries and runs in time , as claimed in Theorem 1.2.
Corollary B.4 (Quadratic output size). For cohesive sets and , with , a vertex , and , the algorithm LocalDense returns nonempty sets and with and
For every starting vertex, the number of neighbor queries is at most
Proof of Corollary B.4. The choice satisfies and . By the identity in (17),
By this inequality and (7), . Since , , and hence
Thus , and by Theorem B.2 there are at most output vertices. Substituting into (15), we get the query bound in Corollary B.4.
C The logarithmic factor at p = 2 and comparison with Andersen
Andersen’s guarantee has two parts: growth of the Euclidean norm inside a dense bipartite subgraph, and extraction of a dense bipartite subgraph from that growth (Appendix C.1). After recalling his iteration and the two lemmas, we describe the neighbor-query implementation of his algorithm in Appendix C.2. With the weak- bound in place of the bound on , we incur a logarithmic factor in the prefix-sum argument of Section 2.1 (Appendix C.3), and there is a weighted matrix for which the logarithmic factor in the extraction is necessary (Appendix C.4).
C.1 Andersen's growth and extraction lemmas
Andersen’s iteration. Andersen’s algorithm runs the pruned growth process (Andersen, 2010, Definition 5) for steps. Starting from , with the pruning thresholds of that definition and the adjacency matrix of , it computes
Each is a unit vector, so .
Definition C.1 (Dyadic level sets [Andersen, 2010, Definition 6]). For a nonnegative vector , its dyadic level sets are for .
At each step , Andersen's algorithm tests the nonempty sets
It returns the tested sets X, Y of maximum density.
Lemma C.2 (Growth inside a dense bipartite subgraph [Andersen, 2010, Lemma 2 and proof of Theorem 1]). For and with and with , there are and with such that every vertex of has more than neighbors in and every vertex of has more than neighbors in .
From every starting vertex , the vectors of Andersen's algorithm with parameter satisfy for some . If , then also .
For , we apply Andersen's proof of Theorem 1 with . For the last claim, every has a neighbor, so .
Lemma C.3 (From growth to dense level sets [Andersen, 2010, Lemma 1, weakened form]). For a nonzero vector supported on one side and with , there are nonempty dyadic level sets of and of with at least
In Andersen’s Lemma 1, the density is at least for some level-set indices satisfying . Since , (18) is weaker, and we state it without the restriction on the level-set indices.
C.2 Neighbor-query implementation of Andersen's algorithm
As in Andersen’s proof of Theorem 2 (Andersen, 2010), the iteration in Appendix C.1 has . At step , we read the adjacency list of each vertex to its end, using neighbor queries. Using the cached lists, we compute and for all level sets of and of without further queries. The total number of neighbor queries is therefore at most
since for a target of positive density. If is unknown, we omit the restriction and consider all level sets with . No additional queries are needed, and the returned density is no smaller.
C.3 Logarithmic accumulation for weak-
Andersen’s vectors are normalized in the Euclidean norm. For supported on with , by Cauchy–Schwarz, for every , that is, in the notation of Definition 2.1. We bound the prefix sums of as in Section 2.1, for a prefix with for every prefix of .
We also assume that every vertex in has degree below , as in after the adjacency lists of have been read and no star has been returned (Lemma A.6(a)). By the density assumption, and since the vertices of have degree below and those of degree at most , for . We write and . Since , and . The degree bound is the smallest of the three for , the density bound for , and the maximum-degree bound for . By summation by parts, as in the proof of Proposition A.4,
We split this sum at and and bound the three parts separately. The terms with have , so their total contribution is at most . The terms with are zero, since . If or , the corresponding term is at most . There are at most two such indices. For the remaining indices, , so . Since , the terms in a dyadic range therefore add up to
Since , at most dyadic ranges contain these remaining indices. Altogether,
Using only , we cannot improve the logarithmic dependence in the preceding upper bound on . The vector with for , where and , satisfies , and the contribution to this sum from each dyadic range between and is . This vector has . For , however, the sum is : by Cauchy-Schwarz, it is at most , and , so that
To bound the prefix sums of yA by Cauchy–Schwarz, we need an upper bound on . We have bounded only . For , by contrast, we can bound in terms of (Proposition A.4).
The logarithm in Andersen’s Lemma 1 also comes from a sum over logarithmically many scales: in its proof, he sums over all level-set indices with .
For , in contrast, . The sum over the dyadic range is then . The sum over all ranges is therefore times the largest of these bounds, and there is no logarithmic factor in Proposition A.4.
C.4 A tight example for norm-growth extraction
For nonnegative matrices, the logarithmic factor in (18) is necessary (see Bilu and Linial, 2006). For a nonnegative matrix B and nonempty sets S, T of row and column indices, we write
In Construction C.4, we define a symmetric matrix and a vector with such that for all nonempty and , where is the largest row sum.
Construction C.4. For an integer and , the sets and are partitioned into blocks , of size for . The symmetric matrix , indexed by , has entry between and and zero entries on and . The vector equals on and zero on , the vector is defined symmetrically, and .
Proposition C.5. The matrix of Construction C.4 has spectral radius and largest row sum . Moreover,
The nonempty dyadic level sets of and are and , respectively. Every block density equals . The ratio of to the maximum of over nonempty and is . The right-hand side of (18), evaluated at , is .
Proof. For with , the contribution from each left block to is , so
By symmetry, , so is a positive eigenvector with eigenvalue , which is therefore the spectral radius. Since , . By direct summation, the largest row sum is , and for all . Consecutive block values differ by a factor of two, so the nonempty dyadic level sets are exactly the blocks.
For nonempty and , we write and take the integer with . Since ,
We apply the same bound to and obtain
Finally, since and , both and are , so the right-hand side of (18) is .
D Lower bounds
Since sets X, Y with have edges between them, an output of vertices per side must have many more edges than vertices, as the target does, and the algorithm has to find these edges. The query lower bound is proved by hiding a complete bipartite graph at uniformly chosen adjacency-list positions (Appendix D.1), and the computational lower bounds by reducing Densest k-Subgraph to the local problem (Appendix D.2).
Definition D.1. An algorithm A receives a starting vertex v, an integer , and neighbor-query access to a simple bipartite graph G, as specified in the graph-access model of Appendix B.2. The algorithm has output bound if, for every input, it returns either or nonempty sets , with . Unless we explicitly allow randomness, algorithms are deterministic; for randomized algorithms, all output, query, and running-time bounds hold for every choice of the internal randomness, and success probabilities are over that randomness. Unless we impose a running-time bound, computation between queries is unrestricted.
D.1 The query lower bound
Theorem D.2 (Queries sublinear in ). For a constant and , if a possibly randomized algorithm A as in Definition D.1 has output bound and makes at most queries on every input, where as for every fixed k, then, for every sufficiently large k, there is a simple bipartite graph G containing a complete bipartite subgraph with sides and of k vertices each, such that from every the output of A is or has density below with probability at least 2/3.
Proof of Theorem D.2. For the extension to randomized algorithms, we use a transcript-coupling approach inspired by Peng et al. (2026, Section 5.2). Since , we can fix any sufficiently large with . Choose integers and then so that
which is possible because for fixed . Let consist of disjoint stars centered on each side, each with leaves, with fixed vertex identifiers and adjacency-list orders. Choose and independently and uniformly among the -subsets of the left and right centers, respectively. For each chosen center, independently select of the positions in its adjacency list uniformly, and replace the entries at those positions by the target centers on the opposite side in identifier order. Isolate the corresponding leaves, keeping all vertex identifiers. The resulting graph is simple and bipartite, every center still has degree , and span a complete bipartite subgraph of density .
Fix a center and condition on . Fix the internal randomness of A independently of the construction, and compare its runs from on and using this same randomness. The run on is independent of the chosen target and positions. Each query in that run concerns at most one original star edge, either through its position in a center's list or through a query at its leaf. Conditional on , each such edge is replaced with probability at most . Until a differing answer is received, the two computations coincide. By a union bound over the at most queries on , the probability of any differing answer is at most .
The output on contains at most centers. Each center other than belongs to with conditional probability at most , so the probability that the output contains another target center is at most . If neither event occurs, the output on is the same as on and contains no edge of . If it is a pair rather than , all its edges belong to . Writing , we have since is a forest, and . Thus
Let be the probability, over the internal randomness of A, of returning sets of density at least from v on G. Averaging also over that randomness in the preceding bounds, we obtain
where the expectation is over the random construction. There are 2N centers, each belonging to with probability , so
Hence there is one fixed graph and target for which this sum is below 1/3. Every summand is nonnegative, so for every , as required.
Corollary D.3 (Approximation and output size with restricted queries). For with and , if a possibly randomized algorithm as in Definition D.1 has output bound and makes at most queries, where as for every fixed , then, for every sufficiently large , there is a simple bipartite graph containing a complete bipartite subgraph with sides of vertices each, such that, from every , the algorithm returns or sets of density below with probability at least 2/3.
Proof. We apply the construction in the proof of Theorem D.2 with , since its condition holds for all sufficiently large :
as the expression tends to zero. For each such , choose and as in that proof. From every target vertex of the resulting fixed graph, the algorithm returns or sets of density below with probability at least .
D.2 Computational lower bounds
For both lower bounds under SPCH and ETH, we use the same reduction. In Appendix D.2.1, we construct a dense subgraph on k vertices of a graph J from the outputs of a local algorithm on its bipartite double cover, and in Appendices D.2.2 and D.2.3, we prove the two lower bounds. Polynomial time means time polynomial in the number of vertices of the input graph, uniformly over all k up to that number.
D.2.1 Reduction from Densest k-Subgraph
For a simple graph on vertices, is the number of edges induced by , and the bipartite double cover of has two copies of and edges for every . The graph has vertices, and each vertex of has the same degree as the corresponding vertex of , which is below . For , the two copies and of a -clique in are cohesive with , since every vertex has neighbors in the opposite set.
Lemma D.4 (Extracting a dense k-vertex subgraph). For a simple graph J on at least vertices and its bipartite double cover , , , and nonempty sets and with , and , a set of vertices of can be found in polynomial time with
Proof. For , we take to be the vertices of with the most neighbors in , and the vertices of with the most neighbors in .
Since , we form from the corresponding vertices of , adding arbitrary vertices until . Each edge of has at most two copies in the double cover, so .
The vertices of have average degree into at least , so , and similarly . Therefore,
By the density assumption, and, since , also . If one side has at most vertices, one factor in the denominator of the averaging bound is and the other is at most . We therefore keep at least an fraction of the edges, so . Otherwise, , so the denominator in the averaging bound is . Since ,
using and . In either case,
using and .
Lemma D.5. For a simple graph on vertices and its bipartite double cover , , , and an algorithm that returns or nonempty sets and with from every , we can find, with calls to and polynomial additional time, a set of vertices of such that, if returns sets with for some , then
Proof. We run A from every vertex of G, apply the construction in Lemma D.4 to each output X, Y, and keep a set inducing the most edges. If every call returns , we take any k vertices. If A returns sets X, Y with , then by Lemma D.4 the corresponding set of k vertices satisfies the claimed bound, as does the set we keep. We construct the double cover and select the sets of k vertices in polynomial time.
D.2.2 The limitation under SPCH
Definition D.6 (Strongish Planted Clique Hypothesis [Manurangsi et al., 2021, Hypothesis 1]). The Strongish Planted Clique Hypothesis (SPCH) is the assumption that, for some , no randomized algorithm running in time distinguishes the random graph on vertices, in which each edge is present independently with probability , from the same graph with a clique added on uniformly chosen vertices, with success probability at least under each distribution. We call these the NO and YES distributions, respectively. The probability is over the input graph and the algorithm's randomness.
We use the following hardness theorem for Densest k-Subgraph, with the promise that the input contains a k-clique.
Theorem D.7 ([Manurangsi et al., 2021, Theorem 2]). Assuming SPCH, for every with and every computable , no algorithm, given an -vertex graph and such that contains a -clique, returns in time a set of vertices with
Theorem D.8 (Limitations on the output size under SPCH). Assuming SPCH, for a constant and , if a possibly randomized algorithm A as in Definition D.1 has output bound and runs in time on every input , for a computable function of alone, then, for some , there is a simple bipartite graph with cohesive sets and of vertices each, such that from every the output is or has density below with probability greater than .
Proof of Theorem D.8. Suppose, for a contradiction, that for every and all cohesive target sets and of vertices each, the algorithm A returns sets with from some with probability at least 2/3. For with a -clique, the two copies of the clique in the double cover are cohesive with . We run A from every vertex of and form a set of vertices of from each returned pair as in the proof of Lemma D.4. Among these sets, we keep one with the most edges between its vertices. By Lemma D.5 with , we can find a set of vertices inducing at least edges with probability at least 2/3, where
We can compute for each returned set, so we repeat the procedure in Lemma D.5 independently a constant number of times (concretely, five) and keep a set inducing the most edges. The subgraph induced by this set contains at least edges with probability at least . The running time is for a computable .
In the reduction from planted clique in Manurangsi et al. (2021, Section 4.1), completeness and soundness each hold with probability at least 0.9. We use the procedure in Lemma D.5, with the five independent repetitions, as the Densest k-Subgraph algorithm in that reduction. We then distinguish the YES and NO distributions of SPCH (Definition D.6) with success probability at least under each distribution, contradicting SPCH.
Remark. We do not require in Theorem D.7 to be nondecreasing. In Manurangsi et al. (2021, Section 4.1), the ratio is a function growing with , so we replace with the nondecreasing . For every , with bounding for the finitely many with , , so . In particular, for all sufficiently large , and exhaustive search handles the remaining values of .
Corollary D.9 (Approximation and output size under SPCH). Assuming SPCH, for with and , no algorithm as in Definition D.1 with output bound and running time for a computable guarantees, for every and every cohesive target of vertices per side, an output of density at least from some starting vertex in .
Proof. For such an algorithm, by Lemma D.5 with and , we obtain an approximation ratio for Densest k-Subgraph, with
The running time is for a computable , contradicting Theorem D.7. Following the proof of Theorem D.8 with , we also rule out algorithms that use randomness, always respect the bounds on output size and running time, and succeed with probability at least 2/3.
Quadratic output on the reduction instances. When contains a -clique, we can achieve a quadratic output bound on its bipartite double cover in time . If a vertex of has at least neighbors, one of its copies and of that copy's neighbors form a star of density . Otherwise, every neighborhood in has fewer than vertices, and we find the promised -clique by testing all -subsets of each neighborhood together with its center. The two copies of the clique have density . Thus, on these instances, subquadratic output is essential to the lower bound even with full graph access.
D.2.3 The limitation under ETH
Definition D.10 (Exponential Time Hypothesis [Impagliazzo and Paturi, 2001]). The Exponential Time Hypothesis (ETH) is the assumption that 3-SAT for formulas with m clauses cannot be decided in time . By the sparsification lemma of Impagliazzo et al. (2001), this is equivalent to the formulation in terms of variables.
We use the following hardness theorem, in which the graph contains a k-clique in the YES case.
Theorem D.11 ([Manurangsi, 2017, Theorem 1]). Assuming ETH, there is a constant such that no polynomial-time algorithm, given a graph on vertices and an integer , distinguishes the case that contains a -clique from the case that every -vertex subgraph of contains at most edges, where
Theorem D.12 (Limitations on the output size under ETH). Assuming ETH, for constants and , if a deterministic polynomial-time algorithm A returns or nonempty sets and with on every input , then, for some , there is a simple bipartite graph G with cohesive sets and of k vertices each, such that from every the output is or has density below . The same conclusion holds for running time polynomial in , and .
Proof. Suppose, for a contradiction, that for all cohesive target sets and , the algorithm A returns sets with from some . For an -vertex graph and , the double cover has , so the output bound is at most for , and we apply the procedure of Lemma D.5. If contains a -clique, its two copies are cohesive with , so A returns sets with from some vertex, and the set of Lemma D.5 satisfies
for all sufficiently large , since grows faster than every power of . In the other case of the promise, every set of vertices, including , induces at most edges. By comparing with , we can therefore distinguish the two cases of Theorem D.11 in polynomial time, with exhaustive search for bounded . Finally, a running time polynomial in , and is polynomial in when and .
Why the limitation under ETH is weaker. We cannot obtain the quadratic bound of Theorem D.8 from the hard instances used under ETH, because they have vertices. Manurangsi (2017, Section 3.2) constructs graphs whose vertices are partial assignments to of the variables of a 3-SAT formula. Each graph has vertices. If the formula is satisfiable, the restrictions of a satisfying assignment to all -element sets of variables form a clique of size . With the parameter choices in that proof, . Hence
For fixed and large , the entire double cover has fewer than vertices per side, and nonempty subsets and maximizing can then be found in polynomial time (Charikar, 2000, Section 4, Theorem 3), meeting the output bound with approximation ratio one.