Finding the $k$ vertices of a graph that share the most edges (the densest $k$-subgraph problem) is NP-hard. Yet recent work showed it can be solved by smooth optimization without any rounding loss. The trick is to add a "diagonal loading" term, a uniform bonus $\lambda$ on every vertex's self-similarity. This term makes the continuous problem's best solutions land exactly on 0/1 vertex sets. The catch is that the same term that guarantees exactness also creates many poor local optima where gradient methods stall. Users are left choosing between a provably exact relaxation ($\lambda \ge 1$) and a relaxation that empirically finds denser subgraphs (small $\lambda$).
We argue that $\lambda$ does not need to be one number. Exactness only requires that every edge receive enough loading from its two endpoints combined. Real networks are dominated by a few high-degree "hubs" that touch most edges, so loading can be placed almost entirely on hubs, as degree-ordered graph indexes already do when they pick landmarks. The rest of the graph keeps a nearly unloaded, smoother landscape. A small correction term keeps the objective exactly equal to the true edge count on every 0/1 set. The loading can also be grown lazily, only on edges where the optimizer is actually stuck at a fractional point, which removes $\lambda$ as a tuning parameter altogether.
Core Claim
Let $A$ be the adjacency matrix, $x \in [0,1]^n$ with $\sum_i x_i = k$ the relaxed vertex indicator, and $\lambda_i \ge 0$ a per-vertex loading. We maximize
$$f_\Lambda(x) = x^\top A x + \sum_i \lambda_i \,(x_i^2 - x_i).$$
The extra term vanishes at every 0/1 point, so $f_\Lambda$ equals twice the induced edge count on every candidate subgraph, whatever $\Lambda$ is. Now take any fractional feasible point with fractional coordinates $i, j$. Moving along $e_i - e_j$ stays feasible, and the curvature along that line is $\lambda_i + \lambda_j - 2A_{ij}$. Whenever this is nonnegative, the maximum along that segment sits at an endpoint, so one fractional coordinate can be removed without lowering the objective. Repeating this gives the central condition:
$$\lambda_i + \lambda_j \ge 2A_{ij} \quad \text{for every pair } (i,j).$$
If the condition holds, the relaxation is tight: its global maximum is attained at a 0/1 set. If it holds strictly, fractional stationary points have a direction of strict ascent.
The uniform choice $\lambda_i = 1$ recovers the tightness condition of On Densest-Subgraph Mining and Diagonal Loading. In that case the correction term is constant on the feasible set, so our objective coincides with theirs. The new observation is that the condition is a fractional vertex-cover constraint on $\lambda/2$. Loading $2+\epsilon$ on a vertex cover and $\epsilon$ elsewhere is also provably tight. On power-law graphs, a degree-ordered cover concentrates loading on a small hub set.
Loading also decides which 0/1 sets look like local optima. A set $S$ is a stationary point if no swap of $i \in S$ for $j \notin S$ passes the test $2(Ax)_j - \lambda_j > 2(Ax)_i + \lambda_i$. The swap threshold is therefore $(\lambda_i+\lambda_j)/2$ per pair, rather than a global $\lambda$. Under hub-placed loading, swaps among non-hub vertices become nearly free. Swaps between a hub and a non-hub keep the uniform threshold. Swaps between two hubs become harder.
Our hypothesis is that on skewed graphs this trade removes far more spurious optima than it adds, because most candidate swaps do not involve two hubs. This is an empirical bet, not a theorem, and the experiments are built to test it.
Research Program
The first component is the static method, hub-cover loading. Vertices are ordered by degree with ties broken by vertex ID, the same total priority used by Vertex Priority Based Butterfly Counting for Large-scale Bipartite Networks to orient wedges. A greedy cover then takes vertices in that order whenever they have uncovered edges. Covered vertices receive $\lambda_i = 2+\epsilon$ and all others receive $\epsilon$.
Optimization reuses the projection-free Frank-Wolfe solver of Densest k-Subgraph Mining via a Provably Tight Relaxation. Each step there reduces to a partial top-$k$ selection on the gradient, and the step size is exact for a quadratic objective, so no learning rate is introduced. That paper supplies the method; we change only the loading. Its tightness proof was limited to $k$ at most the clique number and used a fixed uniform $\lambda=1$.
The second component, lazy certified loading, is what makes the procedure free of tunable parameters. It starts from $\Lambda = \epsilon I$, which is close to the smooth Motzkin-Straus landscape. When Frank-Wolfe stalls at a fractional point, we look for a pair of fractional coordinates whose curvature $\lambda_i+\lambda_j-2A_{ij}$ is nonpositive. If one exists, we raise the higher-priority endpoint to $2+\epsilon$ and continue. One raise certifies all of that vertex's edges at once, so hubs absorb most raises.
Raising any $\lambda_i$ only loosens the swap test for 0/1 points. As a result, a 0/1 stationary point stays stationary after loading increases. This lets us complete the cover at termination without moving the solution. The returned set is then certified as a stationary point of a provably tight relaxation, with no rounding step.
This replaces two hand-tuned mechanisms. The first is the fixed $\lambda$ of Lu et al. The second is the annealing schedule of Controlling Continuous Relaxation for Combinatorial Optimization, whose penalty runs from smoothing to hardening on a curve chosen by hand. Our schedule is driven by a local certificate rather than a clock.
The third component carries the idea over to the hypercube formulation of A Scalable and Exact Relaxation for Densest $k$-Subgraph via Error Bounds. That paper relaxes onto $[0,1]^n$ with an error-bound penalty and runs a proximal gradient method with a fixed step. In our version the curvature of $f_\Lambda$ changes as loading grows, so a step tuned at the start is wrong later. We use the linesearch-free local-smoothness step of A first-order primal-dual method with adaptivity to local smoothness, which estimates curvature from consecutive gradients. Its guarantees are for convex problems, so here it is a practical tool rather than a theorem we inherit. Nesterov Finds GRAAL is likewise convex-only, so we do not claim accelerated rates.
The fourth component handles extensions. For weighted and attribute-constrained versions, the condition becomes $\lambda_i+\lambda_j \ge 2w_{ij}$. The Vertex-Attribute-Constrained Densest $k$-Subgraph Problem proved tightness with uniform $\lambda \ge w_{\max}$; we generalize this to per-vertex loading. We also test the bipartite densest $(k_1,k_2)$ subgraph problem.
Baselines
The naive reference point is greedy peeling: repeatedly delete the lowest-degree vertex until $k$ remain. It is also the warm start used in the attribute-constrained work, and all continuous methods will be run both from peeling and from uniform starts. We also include Frank-Wolfe with a small fixed $\lambda$ (0.1 and 0.5) followed by top-$k$ rounding. This reflects the empirical observation in On Densest-Subgraph Mining and Diagonal Loading that small $\lambda$ yields denser subgraphs despite having no guarantee.
The direct competitor is uniform-$\lambda=1$ Frank-Wolfe, together with that paper's saddle-escaping Frank-Wolfe, which uses $\lambda \ge 1$ plus a deterministic escape step. Both are provably exact and are exactly what our method modifies.
The strongest existing method is EP-Prox, run with its authors' recommended penalty. The file reports that it is "approximately 2x faster than previous top-tier DkS solvers" on LiveJournal1 and gives "an order of magnitude (10x) speedup over the EXPP method while maintaining superior density" on Wikipedia edits A Scalable and Exact Relaxation for Densest $k$-Subgraph via Error Bounds. It also reports matching or exceeding Lovász-relaxation and EXPP density on DBLP. No scalar density values for these benchmarks were found on Lacuna, so we will rerun all baselines ourselves.
Fairness is enforced through budgets. Every method gets the same graph, the same $k$ grid, and the same wall-clock budget on the same hardware. When a method has a free parameter ($\lambda$ or the EP-Prox penalty), it gets a tuning budget equal to the number of restarts our method is allowed. That way, "tuning" and "multi-start" are charged equally.
The key ablations isolate the two ingredients. Uniform lazy loading raises a single global $\lambda$ from $\epsilon$ toward 1 only when stalled; it tests whether the per-vertex placement matters. Random-priority cover loading uses the same lazy rule but a random vertex order; it tests whether the degree order matters.
Beating the field means two things. First, higher mean and best edge density than both uniform-$\lambda$ solvers and EP-Prox at equal compute. Second, every output must be 0/1 with no rounding. Lack of tuning is not sufficient on its own; a method that is merely tuning-free but not denser does not count as beating them.
Why not just…?
Why not just anneal a single $\lambda$ from 0 to 1? This is the most serious threat, because it captures the smooth-then-harden intuition of the annealing work without any graph structure. The uniform lazy-loading ablation is exactly this method with a certificate-driven rather than clock-driven schedule. If it matches per-vertex loading on skewed graphs, the hub-placement claim fails, and we will report that the gain comes from laziness alone. Our prediction rests on the swap-threshold argument: a global $\lambda$ that reaches 1 re-imposes the full threshold on every swap, including the many cheap swaps among non-hub vertices.
Why not just sweep $\lambda$ and keep the best run? A sweep with $m$ values costs $m$ full solves, and the best $\lambda$ varies with $k$ and with the graph. The equal-compute protocol charges the sweep the same budget, so the comparison directly answers whether one structured run beats several uniform ones.
Why not just use greedy peeling or swap-based local search? The file reports that Frank-Wolfe on the tight relaxation beats greedy in edge density Densest k-Subgraph Mining via a Provably Tight Relaxation. It also reports 100% planted-subgraph recovery when Frank-Wolfe is initialized from peeling The Vertex-Attribute-Constrained Densest $k$-Subgraph Problem. The more interesting question is whether a cheap 1-swap local search after peeling closes the gap, so we include it at equal time.
Why not just use EP-Prox, which already has exact local-optimum equivalence? Its equivalence holds for a penalty that must still be set, and its step is fixed. Exactness of local optima does not mean those local optima are good. The comparison of distinct local optima reached from random starts, described below, measures landscape quality directly, and we run the hub-loaded hypercube variant against it head-to-head.
Proposed Experiments
We will use the graphs the file associates with these solvers: com-Orkut, LiveJournal1, DBLP, HepTh, CondMat, Talk, and SNAP Facebook, plus Wikipedia edits for the bipartite variant. Two graphs serve as controls with no hubs: roadNet, whose degrees are nearly uniform, and the synthetic 10-regular graph. On both, the hub cover is not small, and we predict our method's advantage disappears. If gains appear there, our explanation is wrong. Planted-clique Erdős-Rényi graphs test recovery.
We report the following metrics. Edge density is computed across $k \in \{10, 50, 100, 500, 1000\}$. Integrality is the fraction of outputs that are exactly 0/1. Wall-clock time and Frank-Wolfe iterations are recorded. Loading statistics are the fraction of vertices loaded and the total loading $\sum_i \lambda_i$ against $n$.
The landscape measurement counts distinct 0/1 stationary sets reached from 100 random starts, together with their density distribution. This tests the mechanism directly: hub placement should yield fewer and denser terminal sets than uniform $\lambda=1$.
The decisive check has three parts that must hold together on skewed graphs:
- Lazy hub loading beats uniform lazy loading and random-priority loading in density at equal compute.
- It loads well under half the vertices.
- It returns certified 0/1 solutions in every run.
If the first part fails while the others hold, we still have a tuning-free exact solver but not evidence that hubs matter, and we will say so.
References
- On Densest-Subgraph Mining and Diagonal Loading
- Vertex Priority Based Butterfly Counting for Large-scale Bipartite Networks
- Densest k-Subgraph Mining via a Provably Tight Relaxation
- Controlling Continuous Relaxation for Combinatorial Optimization
- A Scalable and Exact Relaxation for Densest $k$-Subgraph via Error Bounds
- A first-order primal-dual method with adaptivity to local smoothness
- Nesterov Finds GRAAL: Optimal and Adaptive Gradient Method for Convex Optimization
- The Vertex-Attribute-Constrained Densest $k$-Subgraph Problem