Local similarity learning for pairwise constraint propagation

Zhenyong Fu, Zhiwu Lu, Horace H. S. Ip, Hongtao Lu, Yunyun Wang

Abstract

Semi-supervised clustering leverages pairwise constraints—must-link and cannot-link—to improve data partitioning. Traditional methods often propagate these constraints over a static, unsupervised similarity graph, which can lead to poor results if the graph does not reflect the underlying cluster structure. This paper introduces Local Similarity learning for Constraint Propagation (LSCP), a novel approach that integrates pairwise constraints directly into the graph construction phase. By minimizing a combination of local reconstruction error and constraint violation error, LSCP produces a category-aware similarity matrix. Experimental results on eight real-world datasets demonstrate that LSCP significantly outperforms state-of-the-art methods in clustering accuracy and robustness.

Introduction

In many real-world machine learning scenarios, fully labeled datasets are rare. Instead, researchers often have access to "pairwise constraints": snippets of prior knowledge indicating that two specific items must belong to the same group (must-link) or cannot (cannot-link).

To make these sparse constraints useful for an entire dataset, constraint propagation is used to spread knowledge through a similarity graph. However, this approach suffers from a "chicken and egg" problem: effective propagation requires a high-quality similarity graph, but most graphs are built using unsupervised methods (like Gaussian kernels) that are blind to category labels. If the initial graph is noisy, the propagation fails. LSCP addresses this by using constraints to learn a superior similarity graph before propagation begins.

Methodology: The LSCP Framework

LSCP moves away from static similarity measures by computing new similarities for each data point through a convex quadratic programming problem. The framework balances two primary objectives:

  1. Local Reconstruction Error: Drawing from manifold learning, each point is represented as a linear combination of its $k$-nearest neighbors. This ensures the learned graph preserves the geometric structure of the data.
  2. Local Constraint Error: This novel term penalizes similarities that violate known pairwise constraints. As shown in Figure 1, the algorithm utilizes a constraint matrix to guide weight adjustments. If a pair is "must-link," the algorithm forces their similarity weight toward 1; if they are "cannot-link," the weight is forced toward 0.
Figure 1: Representation of a pairwise constraint matrix where values 1, -1, and 0 denote must-link, cannot-link, and unknown relationships, respectively. LSCP uses this local information to refine the similarity graph.

The LSCP Algorithm

The process follows five key steps:

  1. Construct an initial $k$-nearest neighbor ($k$-NN) graph.
  2. Solve the local optimization for each point to obtain "refined" weights.
  3. Construct a new, supervised similarity matrix based on these weights.
  4. Apply an exhaustive propagation method (such as the E2CP algorithm) to spread constraints across the graph.
  5. Perform spectral clustering on the final refined similarities.

Experimental Evaluation

The method was evaluated on eight diverse real-world datasets, including image sets (USPS, MNIST, CMU PIE, Scene) and UCI benchmarks (Wine, Ionosphere, WDBC, Glass). These datasets range in dimensionality from 10 to 1024, providing a rigorous test of scalability.

Clustering accuracy was measured using the Adjusted Rand (AR) index. Key findings include:

  • Superior Accuracy: LSCP consistently outperformed competitors like E2CP and CCSKL. On the USPS dataset with 2,400 constraints, LSCP achieved an AR of ~0.93, significantly higher than the ~0.88 achieved by E2CP.
  • Monotonic Improvement: Unlike some methods that plateau or degrade when given too much information, LSCP's performance improves consistently as more constraints are added.
  • Efficiency: Despite the optimization step, the algorithm is computationally efficient with $O(n)$ complexity. Processing the ~9,300 points of the USPS dataset took approximately 30 seconds on standard hardware.

Conclusion

LSCP demonstrates that similarity graph construction should not be a fixed, unsupervised preprocessing step. By making graph construction a supervised task, LSCP creates "category-aware" weights that provide a more robust foundation for constraint propagation. Future work may involve integrating this local learning framework with active learning to further optimize the selection of pairwise constraints.

Summary updated

BibTeX
@article{fu2015local,
  author = {Zhenyong Fu and Zhiwu Lu and Horace H. S. Ip and Hongtao Lu and Yunyun Wang},
  title = {{Local similarity learning for pairwise constraint propagation}},
  journal = {Multimedia Tools and Applications},
  year = {2015},
  doi = {10.1007/s11042-013-1796-y},
}
Figure