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

Efficient Algorithms for Learning Monophonic Halfspaces in Graphs

Marco Bressan, Emmanuel Esposito, Maximilian Thiessen

Abstract

This paper investigates the problem of learning binary classifiers on graph vertices where classes are defined by monophonic halfspaces—partitions of the vertices that are convex under induced paths. While geodesic halfspaces (based on shortest paths) lead to NP-hard learning problems, the authors demonstrate that monophonic halfspaces are computationally tractable. They provide polynomial-time algorithms for supervised, online, and active learning settings. Key results include a polynomial-time consistency checker based on a reduction to 2-satisfiability and a proof that empirical risk minimization can be performed in time $2^{\omega(G)}\mathrm{poly}(n)$, where $\omega(G)$ is the graph's clique number. These findings resolve open questions regarding the complexity of graph-based convex learning and highlight a stark contrast in tractability between different graph convexity models.

Introduction

In graph-based machine learning, such as predicting user behavior in social networks, algorithms typically rely on the homophily principle—the assumption that connected nodes share the same label. This paper explores an alternative geometric approach based on graph convexity. In standard geometry, a set is convex if any line segment between two points in the set is also contained within it. In graphs, "lines" are defined by paths. If a line is defined as an induced path (a path with no shortcuts or chords), the resulting structure is known as monophonic convexity.

A monophonic halfspace (m-halfspace) is a partition of a graph into two sets such that both are monophonically convex. While the theoretical properties of graph halfspaces have been studied, efficient algorithms to learn them from data were previously missing. For geodesic halfspaces, where lines are shortest paths, checking if a valid halfspace matches labeled training data is NP-hard. This paper addresses whether monophonic halfspaces can be learned efficiently in polynomial time.

Methods and Structural Insights

The authors develop several novel algorithms across different learning paradigms. A core technical contribution is a polynomial-time consistency checker. To find an m-halfspace that perfectly separates labeled training nodes, the algorithm identifies a crossing edge between classes and generates logical constraints to enforce convexity. This process is mapped to a 2-satisfiability (2-SAT) problem, which is solvable in polynomial time.

A graph partitioned into two monophonic halfspaces. The blue nodes form one convex set, and the orange nodes form another. The diamond-shaped nodes highlight the clique structure at the boundary.

A critical structural insight enabling this tractability is that the nodes on the immediate boundary of each side of an m-halfspace must form a fully connected clique. This "Cliques at the Borders" property is what enables the reduction to 2-SAT and distinguishes monophonic halfspaces from their geodesic counterparts. This result definitively proves that partitioning a graph into two monophonically convex sets is solvable in polynomial time, resolving an open problem from 2020.

Learning Results

The paper establishes performance bounds for monophonic halfspaces in various settings:

  • Supervised Learning: Realizable PAC learning is achieved in polynomial time with a near-optimal sample complexity of $O(\frac{\omega(G) \log(1/\epsilon) + \log(1/\delta)}{\epsilon})$, where $\omega(G)$ is the graph's clique number.
  • Online Learning: A mistake bound of $O(\omega(G) \log n)$ is achieved in polynomial time by decomposing m-halfspaces into "m-shadows" and applying the Winnow algorithm.
  • Active Learning: The authors provide a polynomial-time algorithm that identifies the true halfspace using $O(\omega(G) + \log \text{diam}(G) + h(G))$ queries, where $h(G)$ is the hull number.
  • Combinatorial Bounds: The total number of m-halfspaces in any graph is bounded by $|H_{MP}| \le \frac{4m 2^{\omega(G)}}{\omega(G)} + 2$, where $m$ is the number of edges.

Conclusion

This research identifies a significant boundary of tractability in graph-based machine learning. While geodesic halfspaces are NP-hard to learn, monophonic halfspaces offer a computationally efficient alternative. The dependence of the algorithms on the clique number $\omega(G)$ suggests that these methods are particularly well-suited for sparse graphs or those with small dense clusters, such as planar or triangle-free graphs. Future work remains to develop agnostic active learning algorithms and to test these geometric classifiers on real-world datasets.

Summary updated

BibTeX
@inproceedings{bressan2024efficient,
  author = {Marco Bressan and Emmanuel Esposito and Maximilian Thiessen},
  title = {{Efficient Algorithms for Learning Monophonic Halfspaces in Graphs}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  url = {https://openreview.net/forum?id=zRqkDnp4fY},
}
Figure