Algorithms and Hardness for Active Learning on Graphs

Vincent Cohen-Addad, Silvio Lattanzi, Simon MeierhansICML 2025

Abstract

Researchers have developed the first algorithm with theoretical guarantees for active learning on general weighted graphs, a problem previously solved only for restricted structures like trees. By transforming the problem into a submodular flow optimization, they achieve an $O(\log n)$ resource-augmented approximation while proving that the problem is fundamentally hard to solve exactly.

The Active Learning Challenge on Graphs

In many machine learning scenarios, data is abundant but labels are expensive. Active learning seeks to identify the most informative $k$ data points to label so that we can accurately predict the rest. When data is represented as a graph (where nodes are points and edges represent similarity), we usually assume label smoothness: neighboring nodes likely share the same label.

The core challenge is selecting a set of nodes $L$ to maximize an objective function $\Psi(L)$, which represents the "sparsity" of the worst possible cut in the unlabeled part of the graph. Intuitively, we want to place labels such that no large "cluster" of unlabeled nodes is isolated from our labeled set. If a cluster is poorly connected to our labels, a single mistake in prediction could propagate through the entire group.

Comparison of labeling strategies on a star graph, illustrating how different selections of $k$ nodes impact the cut sparsity $\tau$.

Until now, algorithms with provable guarantees only existed for trees. For general graphs, the objective function $\Psi(L)$ is notoriously difficult to optimize—it is neither submodular nor supermodular—making standard optimization techniques fail. This often causes existing heuristics to fall into "traps" on simple structures like star graphs, where they might erroneously select leaf nodes instead of the highly influential center node.

Methodology: Flow Gadgets and Submodularity

The authors bridge the gap between theory and practice using a clever reduction to network flow:

  1. The Flow Gadget: They construct a specialized "flow graph" where the capacity of the minimum $s-t$ cut directly relates to the sparsity objective $\Psi(L)$. In this construction, adding a node to the labeled set $L$ corresponds to adding an infinite-capacity edge to a sink node.
  2. Submodular Surrogate: While the original objective $\Psi(L)$ isn't submodular, the authors prove that the increase in maximum flow within their gadget is submodular. This critical insight allows them to use a greedy selection strategy.
  3. Greedy Approximation: The algorithm iteratively picks the node that increases the max-flow the most. To match the performance of an optimal set of size $k$, the algorithm requires a slightly larger budget—specifically $O(k \log n)$ nodes. This technique is known as resource augmentation.
  4. Binary Search: Since the flow gadget requires a "guess" at the target sparsity value ($\tau$), the full algorithm uses binary search to find the best achievable threshold.

Key Findings and Performance

The authors evaluated their approach on several types of graphs, including synthetic "trap" graphs (like star and 3-clique graphs designed to break previous heuristics), random Watts-Strogatz small-world networks, and real-world networks like ca-GrQc (an Arxiv collaboration network) and ego-Facebook.

  • Theoretical Guarantee: The algorithm is the first to provide an $O(\log n)$ resource-augmented guarantee for general weighted graphs.
  • Hardness of Approximation: The authors prove that the problem is NP-hard. Specifically, it is hard to distinguish between a graph where the best $\Psi(L)$ is 2 versus one where it is 3, justifying why a "perfect" approximation without resource augmentation is likely impossible.
  • Superior Empirical Performance: In experiments, the new algorithm consistently outperformed existing heuristics. On the ego-Facebook dataset with a budget of $k=10$, the authors' algorithm achieved the target objective perfectly (a ratio of 1.0), while the leading heuristic only achieved 0.076.
  • Robustness: Unlike previous heuristics that fail on simple star graphs, this algorithm correctly identifies the most influential nodes, avoiding common structural traps.

Limitations and Future Work

While the algorithm is polynomial-time, it requires multiple max-flow computations. For massive graphs with millions of nodes, this is currently too computationally expensive for real-time use. The authors suggest that future work could involve using "approximate flow oracles" to speed up the process.

Additionally, the $O(\log n)$ factor in the budget is a theoretical requirement; finding an algorithm that stays strictly within the budget $k$ while maintaining a strong approximation ratio remains an open challenge. Finally, extending this offline, static-graph approach to dynamic, evolving graphs represents a valuable next step for the field.

Summary updated

BibTeX
@inproceedings{cohenaddad2025algorithms,
  author = {Vincent Cohen-Addad and Silvio Lattanzi and Simon Meierhans},
  title = {{Algorithms and Hardness for Active Learning on Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=EAnuqHF0tx},
}
Figure