An Online Algorithm for Learning a Labeling of a Graph

Kristiaan Pelckmans, Johan A. K. SuykensMLG @ ICML 2008

Introduction

In many real-world network scenarios—such as identifying spam websites in a web crawl or predicting disease-related genes in a biological network—practitioners face the challenge of labeling nodes in a massive graph based on a small set of known examples. This problem is known as transductive inference.

Existing approaches to this problem typically fall into two categories: batch learning, which requires all data to be available upfront, and complex online methods. Unfortunately, state-of-the-art online methods often rely on computing the "pseudo-inverse" of the graph Laplacian. For extremely large or growing graphs, computing this inverse is computationally prohibitive and memory-intensive. To address this bottleneck, the authors introduce a "lazy" and efficient online algorithm that bypasses expensive matrix inversions by only updating its model when it makes a mistake.

The Graphtron Algorithm

The core contribution of the paper is the Graphtron Algorithm, an online learning scheme that adapts the classic Perceptron algorithm to operate directly on graph topologies.

The Graphtron operates through a simple, localized process:

  1. Prediction: When tasked with labeling a new node $i$, the algorithm examines its neighbors. Crucially, it only considers neighbors that were previously misclassified (a group defined as the "mistake set" $M$). It predicts the new label based on the weighted sum of those specific neighbors' true labels.
  2. Update: If the prediction is correct, the algorithm does nothing. If the prediction is incorrect, node $i$ is added to the mistake set $M$.

Unlike previous work that relies on a "genuine coordinate system" derived from the graph Laplacian, the Graphtron works directly with the adjacency matrix and the mistake set. This localized approach makes it significantly faster and lighter on memory.

Key Insights and Theoretical Guarantees

The paper is primarily a theoretical report focused on the algorithm's derivation and mistake bounds. Its key insights include:

  • Learning from Failure: The algorithm appeals to the intuition of "education"—it only learns and memorizes nodes that defy its current expectations. If a node's label matches what its neighbors suggest, no new information is gained, and no memory is consumed.
  • The Cut Bound: The most significant theoretical innovation is the analysis of the "mistake subgraph" (the subgraph formed entirely by mistaken nodes). The authors prove a Mistake Bound Lemma: $\sum_{i \in M} d_{M,i} \leq 4 \text{cut}(y^*)$. This means the total degree of the mistake subgraph is bounded by four times the graph cut (the total weight of edges connecting nodes with different labels). Ultimately, the number of mistakes is strictly limited by how "noisy" the true labeling is relative to the graph structure.
  • Sublinear Space Complexity: Because the algorithm only needs to track the set of mistakes $M$, its space requirement is $O(m)$, where $m$ is the number of mistakes. In graphs where labels are relatively smooth, $m$ is much smaller than the total number of nodes $n$, allowing the algorithm to operate in sublinear space.
  • Time Complexity: The worst-case time complexity is $O(nm)$, but it is effectively linear if the number of mistakes remains small.
  • Tightness: The authors demonstrate through examples (such as cliques and binary weighted graphs) that their mistake bounds are "tight," accurately reflecting the worst-case performance for those specific network shapes.

Limitations and Future Directions

As a preliminary theoretical report, the paper does not include experimental results on real-world datasets. The algorithm's practical performance, particularly in high-noise environments where the graph cut is large, remains an open question.

However, the theoretical foundation opens several avenues for future research. While the current mistake bound holds regardless of the order in which nodes are presented, the authors suggest that intentionally "scheduling" nodes to fail early could improve the learning rate—a promising direction for experimental design. Additionally, future work will focus on deriving more specific, non-trivial bounds tailored to different types of graph topologies.

Summary updated

BibTeX
@inproceedings{pelckmans2008online,
  author = {Kristiaan Pelckmans and Johan A. K. Suykens},
  title = {{An Online Algorithm for Learning a Labeling of a Graph}},
  booktitle = {MLG @ ICML},
  year = {2008},
}
Figure