A Linear Time Active Learning Algorithm for Link Classification

Nicolò Cesa-Bianchi, Claudio Gentile, Fabio Vitale, Giovanni Zappella

Abstract

In signed networks, edges represent positive (trust, friend) or negative (distrust, foe) relationships. Classifying these links is a fundamental task in social network analysis and recommendation systems. While traditional spectral methods exploit the structural properties of these networks, they often suffer from high computational complexity. This paper introduces a family of active learning algorithms—TREECUTTER, STARMAKER, and TREELETSTAR—that classify links in linear or near-linear time. By strategically querying a small subset of edge labels, these algorithms achieve near-optimal prediction accuracy and demonstrate significant scalability improvements over state-of-the-art heuristics.

Introduction

In the study of social networks, the nature of a connection is often as important as its existence. Signed networks model these qualitative relationships using positive (+) and negative (-) labels. A central principle in analyzing these networks is social balance theory, which suggests that "the enemy of my enemy is my friend." This structural bias implies that a network can ideally be partitioned into two clusters where internal edges are positive and inter-cluster edges are negative.

Predicting missing signs in such networks is a major challenge. Existing approaches, particularly spectral methods based on matrix decompositions, face two primary hurdles: scalability and rigidity. Spectral methods typically require $O(|V|^2)$ time and significant memory, making them unsuitable for massive modern datasets. Furthermore, previous active learning approaches often operated under restrictive query budgets, limiting their flexibility in real-world applications. This research proposes a more efficient, scalable framework for link classification using active learning.

Methodology

The $p$-Stochastic Model

The authors evaluate their algorithms under a $p$-stochastic model. In this framework, it is assumed that edge labels are initially consistent with a perfect two-clustering but are subsequently "flipped" (noised) with a probability $p < 1/2$. The goal of the active learning agent is to query the labels of a specific training set of edges to minimize the error rate when predicting the remaining unobserved edges.

Proposed Algorithms

The paper introduces three primary algorithms designed to optimize the trade-off between query budget and prediction accuracy:

  1. TREECUTTER: This algorithm decomposes the graph into small, disjoint subtrees of a fixed height. It queries the edges within these subtrees and a single "bridge" edge between connected subtrees. To predict an unknown edge $(u, v)$, it identifies a path of queried edges (a "short circuit") between the nodes and calculates the parity of the signs along that path.
  2. STARMAKER: A refinement designed for dense graphs, STARMAKER focuses on "stars"—querying edges centered around high-degree nodes. This structure allows for very short paths between many node pairs.
  3. TREELETSTAR: A hybrid approach that combines the subtree decomposition of TREECUTTER with the star-centric queries of STARMAKER, allowing the algorithm to adapt to varying graph densities and query budgets.

Computational Efficiency

A defining feature of these algorithms is their efficiency. They operate in linear or near-linear time ($O(|E|)$ or $O(|E| + |V| \log |V|)$). Once the initial queries are processed, the sign of any new edge can be predicted in constant amortized time, making the system highly responsive for real-time applications.

Experimental Evaluation

Datasets

The researchers benchmarked their algorithms against both synthetic and real-world datasets:

  • Synthetic (USPS): A graph derived from the USPS digit recognition dataset, testing the algorithms' resilience to varying levels of label noise.
  • MovieLens: A signed graph based on user-user similarities in movie ratings.
  • Slashdot and Epinions: Large-scale real-world networks where users explicitly tag others as friends/foes or trust/distrust.

Key Results

  • Theoretical Optimality: The authors prove that by querying $O(|V|^{3/2})$ edges, their algorithms achieve a mistake count within a constant factor of the theoretical optimum for sufficiently dense graphs.
  • Performance vs. Spectral Methods: In comparisons with ASymExp (a state-of-the-art spectral heuristic), TREECUTTER achieved comparable or superior F-measure scores. Crucially, it did so while being orders of magnitude faster, demonstrating its viability for large-scale web graphs.
  • Robustness: The algorithms remained effective on Slashdot and Epinions datasets, even when the strict two-clustering assumption was partially violated. This suggests that the underlying logic of social balance is a robust predictor even in noisy, real-world social environments.

Discussion and Conclusion

The "short circuit" strategy—relying on local paths of known edges rather than global matrix decompositions—represents a significant shift in how link classification can be approached. By allowing for a flexible query budget, these algorithms provide a tunable trade-off: as more edges are queried, the gap between the algorithm’s performance and the theoretical minimum shrinks.

While highly effective for networks following social balance logic, a limitation of this approach is its reliance on the two-clustering bias. Networks with multi-cluster or hierarchical structures may require different structural assumptions. Future work may involve integrating node-level metadata (user profiles) with the existing link-based logic to further enhance prediction accuracy in complex social ecosystems.

Summary updated

BibTeX
@inproceedings{cesabianchi2012linear,
  author = {Nicolò Cesa-Bianchi and Claudio Gentile and Fabio Vitale and Giovanni Zappella},
  title = {{A Linear Time Active Learning Algorithm for Link Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
  url = {https://openreview.net/forum?id=BkZusUZOWB},
}
Figure