Efficient Algorithms for Learning and Compressing Monophonic Halfspaces in Graphs

Marco Bressan, Victor Chepoi, Emmanuel Esposito, Maximilian ThiessenarXiv 2025 · DOI

Introduction

In graph-based machine learning, the "homophily principle"—the idea that adjacent nodes likely share labels—is a standard assumption. However, capturing more complex geometric structures within a network requires a more sophisticated approach. Researchers often turn to graph convexity to define "halfspaces," analogous to how a hyperplane divides a continuous space.

While geodesic convexity (based on shortest paths) is the most common definition, finding a consistent halfspace under this framework is NP-hard. In this work, Bressan et al. demonstrate that by shifting to monophonic convexity (based on induced paths), the computational landscape becomes tractable. They introduce a suite of polynomial-time algorithms for learning and compressing these structures, transforming a previously difficult problem into a practical toolset.

A visualization of a graph partition representing a halfspace structure, where nodes are categorized by their geometric roles.

The Monophonic Advantage

Binary classification on graphs typically involves predicting vertex labels. While neighborhood-based methods are effective for simple tasks, they often fail to capture global geometric properties. Abstract convexity offers a solution by defining a "halfspace" as a set of vertices $H$ where both $H$ and its complement are convex. In a graph context, a set is convex if every path of a specific type between two members remains within the set.

The primary challenge with the standard choice, geodesic convexity, is that learning these halfspaces is computationally expensive. Monophonic convexity, however, utilizes induced paths—paths where no two non-consecutive vertices are adjacent. This subtle shift allows for efficient search and learning without sacrificing the structural meaning of the halfspace.

Algorithmic Framework: 2-SAT and Shadow-Cell Decomposition

The core technical breakthrough of the paper is a reduction to 2-Satisfiability (2-SAT). The authors show that the constraints defining a monophonic halfspace can be expressed as a 2-SAT formula. Since 2-SAT is solvable in linear time, this reduction unlocks efficient algorithmic search.

Furthermore, the authors prove a Decomposition Theorem using a structure called "shadow-cell decomposition." They show that any monophonic halfspace can be represented as a disjoint union of specific vertex subsets known as "shadows" and "cells." This decomposition is facilitated by the SHADOWCLOSURE algorithm, which iteratively refines these subsets.

Algorithm 2: SHADOWCLOSURE, a key component in the shadow-cell decomposition process.

Key Results and Learning Guarantees

By leveraging the 2-SAT connection and the structural stability of monophonic halfspaces, the authors achieve several significant results:

  • Optimal PAC Learning: They provide a polynomial-time PAC (Probably Approximately Correct) learner with optimal sample complexity relative to the VC-dimension.
  • VC-Dimension Characterization: The paper establishes a tight bound on the VC-dimension of monophonic halfspaces, showing it is closely tied to the size of the graph's largest clique.
  • Efficient Empirical Risk Minimization (ERM): They develop a polynomial-time algorithm to find the halfspace that minimizes errors, even in the presence of noise.
  • Sample Compression: The authors design a scheme to represent large labeled sets using a small "representative" subset, providing a theoretical guarantee of learnability.
  • Active and Online Learning: The framework supports efficient active learning (querying specific nodes) and online learning (updating predictions as new data arrives), significantly outperforming previous geodesic-based methods.

Conclusion and Future Directions

This research proves that monophonic halfspaces are a computationally viable alternative to geodesic ones for graph geometry. While the current theory excels in the "realizable" setting, future work could explore increased robustness for highly noisy real-world data and extending these efficient algorithms to multi-class partitions ($k$-partitions) or general convex sets. These findings pave the way for implementing monophonic geometric priors in standard node classification and community detection tasks.

Summary updated

BibTeX
@misc{bressan2025efficient,
  author = {Marco Bressan and Victor Chepoi and Emmanuel Esposito and Maximilian Thiessen},
  title = {{Efficient Algorithms for Learning and Compressing Monophonic Halfspaces in Graphs}},
  year = {2025},
  eprint = {2506.23186},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.23186},
}
Figure