NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Approximation Algorithm for Graph Label Selection

Josia John, Simon Meierhans, Maximilian Probst Gutenberg

Introduction

In domains such as active learning and dataset distillation, a recurring challenge is selecting a small, highly representative subset of data points to label. When data is structured as a graph—where edges denote similarities—the goal is to select a budget of $k$ nodes such that no large cluster of unlabeled nodes remains isolated or poorly connected to the labeled set.

This challenge is formalized as the Graph Label Selection (GLS) problem. The objective is to maximize a function $\Psi(L)$ that identifies the "worst-case" cluster (the one most isolated from the labeled set) and ensures it is as well-connected as possible. However, this objective function is neither submodular nor supermodular. Because it lacks the "diminishing returns" property, standard greedy algorithms often yield highly suboptimal results. Until now, algorithms for GLS either lacked provable guarantees or required "resource augmentation"—effectively cheating by using a much larger budget than $k$ to compete with the optimal solution.

Researchers from ETH Zurich have introduced a breakthrough approach: the first approximation algorithm for GLS that offers provable theoretical guarantees under a strict budget constraint, while also scaling to graphs with hundreds of thousands of nodes.

The Pitfall of Greedy Selection

To understand why a new approach is necessary, consider the "Star Graph Trap." In a star-shaped graph, a greedy algorithm might intuitively select the center node first. However, if the labeling budget is $n-1$, picking the center is actually the worst possible first move, as it leaves the peripheral nodes completely isolated from one another. Solving GLS requires global coordination rather than local, greedy choices.

A Three-Step Global Methodology

To achieve this global coordination, the authors abandon greedy selection in favor of a novel three-step reduction framework:

  1. Tree Cut Sparsification: The complex general graph is first approximated by a simpler structure known as a tree cut sparsifier. In this tree, every "cut" (partition of nodes) retains roughly the same weight as the corresponding cut in the original graph. While this introduces a polylogarithmic approximation error, it makes the problem structurally tractable.
  2. Reduction to Flow: The label selection problem is then transformed into a "Sink Selection Problem." Treating every leaf in the tree as a source of flow, the algorithm seeks to select $k$ leaves to act as sinks, routing all flow from sources to sinks without exceeding the capacity of the tree's edges.
  3. Dynamic Programming (DP): Because the problem is now constrained to a tree, it can be solved optimally using Dynamic Programming. The DP state tracks the maximum amount of flow a subtree can absorb or push up to its parent, given a specific budget of labels within that subtree.

Furthermore, the authors proved that the Sink Selection Problem is monotone: as the budget $k$ increases, the maximum possible flow increases. This monotonicity allows the use of binary search to quickly find the optimal flow threshold, drastically speeding up the search.

Empirical Results and Scalability

The theoretical milestone of this work is the first $\tilde{O}(\log^{1.5} n)$-approximation for GLS under a strict budget $k$. However, the practical implications are equally significant.

To make the algorithm viable for massive graphs, the authors implemented heuristic variants using established graph partitioning tools like METIS and Fiedler vectors to build the initial tree structure. They evaluated these variants on real-world datasets from the Stanford Network Analysis Project (SNAP), including collaboration networks (ca-GrQc, ca-CondMat), social circles (ego-facebook), and a massive bibliography network (com-dblp).

  • Massive Speedups: On the ca-GrQc graph, the authors' Fiedler-based approach completed in just 22 seconds. In stark contrast, the previous best theoretical algorithm required over 6 hours for the same budget.
  • Unprecedented Scalability: The algorithm successfully processed the com-dblp graph (317,000 nodes and over 1 million edges) in a few hours—a scale at which previous methods simply failed to execute.
  • Quality Retention: Despite relying on heuristic tree construction in practice, the algorithm matched or exceeded the solution quality of slower, more complex prior methods across various budgets.

Limitations and Future Directions

While this work represents a major leap forward, some challenges remain. The Dynamic Programming step has a complexity of $O(n \cdot k^2)$, which can still bottleneck performance on truly massive graphs if the budget $k$ is exceptionally large. The authors suggest that an approximate version of this DP could potentially run in linear time.

Additionally, there is a gap between theory and practice regarding tree cut sparsifiers. The most mathematically rigorous sparsifiers are notoriously difficult to implement, leading the authors to rely on METIS and Fiedler heuristics for their experiments. Finally, while this paper focuses purely on the selection objective, a natural next step is to integrate this algorithm into a complete active learning pipeline to measure its impact on downstream model accuracy.

Summary updated

BibTeX
@inproceedings{john2026approximation,
  author = {Josia John and Simon Meierhans and Maximilian Probst Gutenberg},
  title = {{An Approximation Algorithm for Graph Label Selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=hE0n8gS7Ru},
}
Figure