arXiv:2610.24114cs.DSOct 2026

Manuscript Offprint

arXiv:2610.24114

Constant-Factor Local Approximation for Bipartite Densest Subgraph

Michael Kapralov, Jakub Łącki, Silvio Lattanzi, Guy Weissenberg

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

Abstract

Given a vertex vv in a large bipartite graph GG, can one quickly find a small densely connected region near vv? 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 GG 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 SS and TT, its density is d(S,T):=e(S,T)/∣S∣∣T∣d(S,T) := e(S,T)/\sqrt{|S||T|}, where e(S,T)e(S,T) is the number of edges between SS and TT. 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 S∪TS \cup T with at most kk vertices per side, our algorithm, starting from any vertex in S∪TS \cup T, uses Oϵ(k4+ϵ)O_{\epsilon}(k^{4+\epsilon}) neighbor queries to find a subgraph X∪YX \cup Y of density Ωϵ(d(S,T))\Omega_{\epsilon}(d(S,T)) on Oϵ(k2+ϵ)O_{\epsilon}(k^{2+\epsilon}) vertices, for every fixed ϵ>0\epsilon > 0. 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 kk 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-ℓp\ell_p 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, G=(V,E)G = (V, E) is a finite simple undirected bipartite graph with a fixed bipartition V=L∪RV = L \cup R and maximum degree Δ\Delta. For nonempty vertex sets S⊆LS \subseteq L and T⊆RT \subseteq R with e(S,T)e(S, T) edges between them, their density is

d(S,T):=e(S,T)∣S∣∣T∣=e(S,T)∣S∣⋅e(S,T)∣T∣,d(S,T):=\frac{e(S,T)}{\sqrt{|S||T|}}=\sqrt{\frac{e(S,T)}{|S|}\cdot\frac{e(S,T)}{|T|}},

the geometric mean of the average degree from S into T and the average degree from T into S.

The maximum of d(S,T)d(S, T) over all nonempty sets S,TS, T 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 vv and a target size parameter kk, find a dense bipartite subgraph in the vicinity of vv using a number of queries and running time that depend solely on kk, completely independent of the graph size ∣V∣|V| and maximum degree Δ\Delta.

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, d(S,T)d(S, T) is independent of edges leaving S∪TS \cup T. 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 S∪TS \cup T 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 vv, an integer k≥1k \geq 1, and adjacency-list access to GG, as in Andersen (2010). We count neighbor queries: we read a specified entry of an adjacency list, or receive ⊥\perp past its end. The guarantee is measured against unknown cohesive sets S⊆LS \subseteq L, T⊆RT \subseteq R (Definition 1.1) with at most kk vertices on each side. We require the algorithm to succeed from every starting vertex in S∪TS \cup T, using a number of queries independent of ∣V∣|V|. An approximation ratio α≥1\alpha \geq 1 means returning nonempty sets X⊆LX \subseteq L, Y⊆RY \subseteq R with d(X,Y)≥d(S,T)/αd(X, Y) \geq d(S, T)/\alpha. For a single vertex, we write e(u,T):=e({u},T)e(u, T) := e(\{u\}, T) and e(S,w):=e(S,{w})e(S, w) := e(S, \{w\}).

We ask for approximation, not recovery: the union of the returned sets need not contain the starting vertex or intersect S∪TS \cup T (after adding vv to the returned set on its side, the density is at least d(X,Y)/2d(X, Y)/\sqrt{2}; see Lemma B.3). A star with at least d(S,T)2d(S, T)^2 leaves has density at least d(S,T)d(S, T) and is therefore an acceptable output.

Figure

Figure 1: A complete bipartite subgraph (S,T)(S,T) with kk vertices in SS (blue) and kk in TT (orange), each with D≥1D \geq 1 leaves (gray) outside S∪TS \cup T. Here d(S,T)=kd(S,T) = k for every DD. Each vertex of S∪TS \cup T has DD of its k+Dk + D edges leaving S∪TS \cup T, so the conductance of S∪TS \cup T is at least D/(k+D)D/(k + D), which tends to one as D/k→∞D/k \to \infty. Every star in this graph has density at most k+D\sqrt{k + D}, which is o(k)o(k) for D=o(k2)D = o(k^2).

Andersen’s algorithm can be implemented using O(Δk2)O(\Delta k^2) neighbor queries and returns sets X,YX, Y with O(Δk2)O(\Delta k^2) 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 O(1+log⁡2(Δ/d(S,T)))O(1 + \log_2(\Delta/d(S, T))) (Andersen, 2010, Theorem 1). This bound is constant only when d(S,T)=Ω(Δ)d(S, T) = \Omega(\Delta). For the complete bipartite subgraph of Figure 1 with DD camouflage edges per vertex, the lower bound on the returned density is Ω(k/(1+log⁡2((k+D)/k)))\Omega(k/(1 + \log_2((k + D)/k))), which decreases as DD grows even though d(S,T)=kd(S, T) = k. The density is invariant under the addition of edges outside the subgraph induced by S∪TS \cup T, and the guarantee is not. Whether this dependence on the maximum degree is necessary for local approximation was open.

References (64)