Abstract
Graph mining tasks, such as community detection, often benefit from refining an existing, noisy solution rather than initiating a search from scratch. This paper introduces the OptiRefine framework, a novel approach to optimizing graph problems—specifically densest subgraph and maximum cut—by applying exactly $k$ modifications to an initial solution. We present a comprehensive analysis including rigorous theoretical approximation guarantees derived from Semidefinite Programming (SDP) and the Sum-of-Squares (SoS) hierarchy, as well as scalable heuristics that demonstrate high performance on real-world networks. Our findings suggest that refinement-based optimization provides a robust bridge between initial metadata and global graph properties.
Introduction
In practical graph analysis, researchers rarely begin with a blank slate. Whether identifying a community of users on a social network or analyzing biological pathways, there is often an initial set of vertices derived from noisy metadata, such as profile interests or preliminary experimental data. The goal is typically to improve this initial set—for instance, by finding a denser subgraph—without deviating too far from the original context.
Traditional algorithms for the densest subgraph or maximum cut problems often ignore these initial priors, potentially returning solutions that are mathematically optimal but contextually irrelevant. The OptiRefine framework addresses this gap by formalizing the optimization of graph metrics under a strict constraint of exactly $k$ node additions or removals (refinements) to an initial vertex set.
Problem Formulation
The authors focus on two primary problems:
- Densest Subgraph with $k$ Refinements (DS-$k$R): Given a graph and an initial set of vertices, find a set reachable by exactly $k$ edits that maximizes the number of internal edges.
- Max-Cut with $k$ Refinements (Max-Cut-$k$R): Similarly, find a set reachable by $k$ edits that maximizes the number of edges crossing the cut between the set and its complement.
These problems are shown to be generalizations of classic cardinality-constrained graph problems. For example, if the initial set is empty, DS-$k$R reduces to the NP-hard Densest $k$-Subgraph problem.
Methodology
The OptiRefine framework employs four distinct algorithmic strategies:
1. Black-Box Reductions
The researchers demonstrate that existing, highly-optimized solvers for classic problems (like standard Max-Cut) can be adapted to solve $k$-refinement variants. This approach allows for the immediate application of state-of-the-art heuristics with a provable, albeit small, loss in theoretical accuracy.
2. Semidefinite Programming (SDP)
By formulating a generalized "Graph Partitioning with $k$ refinements" problem, the authors apply SDP relaxations. They adapt classic hyperplane rounding techniques to account for the initial status of each node, yielding solutions with strong theoretical guarantees.
3. Sum-of-Squares (SoS) Hierarchy
For the Max-Cut-$k$R problem, the authors utilize the Lasserre (SoS) hierarchy. This high-order relaxation achieves an approximation ratio of approximately 0.858, which is optimal under the Unique Games Conjecture, matching the best-known bounds for cardinality-constrained cuts.
4. Scalable Greedy Heuristics
Recognizing the computational intensity of SDP and SoS, the framework includes greedy algorithms. These methods iteratively swap nodes to improve the objective function, offering a practical solution for massive datasets where exact methods are infeasible.
Theoretical and Empirical Results
The theoretical analysis proves constant-factor approximation guarantees for both DS-$k$R and Max-Cut-$k$R, provided the number of refinements $k$ is a constant fraction of the total nodes ($k = \Omega(n)$).
As illustrated in the figure above, the SDP-based approach for $k$-DENSIFY (Densest Subgraph) generally outperforms the black-box reduction as the refinement ratio $k/n$ increases. For MAX-CUT-$k$R, the SoS hierarchy provides a consistent, high approximation ratio regardless of $k/n$, while the SDP and black-box methods show varying performance peaks.
Performance on Real-World Networks
The algorithms were evaluated on several datasets:
- Wikipedia Politician Networks: Using political party affiliations as initial sets, the SDP-based algorithms consistently identified denser communities and larger cuts than baseline methods.
- SNAP Networks (DBLP, Amazon, Youtube): On the SNAP-Youtube dataset (1.1M nodes), a scalable "peeling" heuristic based on the black-box reduction increased initial community density by over 150% in just 100 seconds.
Key Insights
A critical observation is the difference between local and global optimization. Simple greedy heuristics tend to find locally dense structures adjacent to the initial subgraph. In contrast, "peeling" algorithms are more "global," willing to discard large portions of the initial set to find significantly denser structures elsewhere in the graph. Furthermore, the SoS hierarchy's power lies in its ability to constrain the fractional solution so tightly that rounding naturally produces a set of changes very close to $k$, minimizing approximation loss.
Conclusion
The OptiRefine framework provides a mathematically rigorous and practically viable way to incorporate prior knowledge into graph optimization. While exact methods like SDP and SoS offer superior quality and theoretical bounds, the black-box peeling heuristics provide the scalability necessary for web-scale graph analysis. Future work may focus on automating the selection of $k$ and extending these refinement techniques to other combinatorial optimization problems.
Summary updated