Pairwise constraint propagation by semidefinite programming for semi-supervised classification

Zhenguo Li, Jianzhuang Liu, Xiaoou Tang

Introduction

Most semi-supervised learning (SSL) algorithms rely on the cluster assumption: the idea that points close to each other in the input space likely belong to the same class. However, real-world data is messy. A single class might consist of multiple disconnected manifolds (e.g., photos of the same person in vastly different lighting), or two different classes might be very close together.

While class labels are the gold standard for supervision, they are expensive to obtain. Pairwise constraints—knowing that "Point A and Point B are the same" (must-link) or "Point A and Point B are different" (cannot-link)—are often easier to gather from domain knowledge. The challenge is how to effectively "propagate" these sparse constraints to the rest of the unlabeled data, especially when the underlying data geometry is complex.

This paper introduces Pairwise Constraint Propagation (PCP), a semi-supervised learning framework that uses Semidefinite Programming (SDP) to spread a handful of these "must-link" and "cannot-link" rules across an entire unlabeled dataset.

The Unit Hypersphere Model

The authors propose a method to learn a smooth mapping ($\phi$) from the input space to a high-dimensional feature space $\mathcal{F}$. The core of their approach is the Unit Hypersphere Model:

  1. The Mapping: Every data point is mapped to a point on a unit hypersphere.
  2. The Constraints:
    • Must-link pairs are forced to map to the exact same point (inner product = 1).
  3. Cannot-link pairs are forced to be orthogonal (inner product = 0).
  4. Smoothness: The mapping is regularized using the normalized graph Laplacian. This ensures that points that were "nearby" in the original data graph stay relatively close in the new space, unless the constraints dictate otherwise.
  5. Optimization: The problem is formulated as a Semidefinite Programming (SDP) problem to find the optimal kernel matrix $K$. Because SDP is convex, the algorithm is guaranteed to find a global optimum.
  6. Final Step: Once the optimal kernel matrix $K^*$ is found, the data is clustered into $k$ classes using kernel K-means.

Key Insights: Reshaping the Feature Space

The most powerful idea in PCP is that the algorithm doesn't just label points; it reshapes the feature space. By the time the SDP solver is done, the learned kernel matrix exhibits a clear "block-diagonal" structure. This means the classes have become highly compact internally and distant from one another.

Learned kernel matrix exhibiting a block-diagonal structure after SDP optimization.

Furthermore, using orthogonality (90 degrees) for cannot-link constraints on a hypersphere is a clever way to ensure maximum "room" for multiple classes to coexist without overlapping. Unlike local label propagation, PCP uses the global geometry of the data graph to decide how a single pairwise constraint should affect distant points. If point A must-link to point B, and B is on a manifold with C, then A effectively "pulls" the whole manifold of C toward it.

Experimental Results

The authors evaluated PCP against two major competitors: Spectral Learning (SL) and Semi-Supervised Kernel K-means (SSKK). They tested across synthetic data, sensory data (Iris, Wine, Ionosphere, Soybean), and imagery (USPS, MNIST, CMU PIE).

On the synthetic "Three-Circle" toy problem—consisting of concentric rings where the inner and outer rings belong to one class, and the middle ring to another—PCP perfectly separated the classes where traditional methods failed.

The "Three-Circle" dataset with pairwise constraints (a) and the resulting clustering (b).

In almost all real-world datasets, PCP's performance (measured by Normalized Mutual Information, or NMI) increased significantly as more constraints were added, consistently outperforming SSKK and SL. PCP showed particular strength on the Ionosphere and Soybean datasets, where the performance gap between it and other methods was most pronounced.

Limitations and Future Work

While highly effective, the PCP framework has a few notable limitations:

  • Computational Complexity: The main bottleneck is the SDP solver. While PCP provides superior results, it is significantly slower than K-means-based approaches. For example, a 400-point problem took 17 seconds for PCP versus less than 0.5 seconds for competitors.
  • Scalability: Due to the $O(n^3)$ or worse scaling of standard SDP solvers, the method currently struggles with very large-scale datasets without further optimization or approximation techniques.
  • Constraint Noise: The paper assumes constraints are "reliable knowledge." In real-world scenarios, human-provided constraints can be noisy or contradictory. Handling noisy constraints remains a key direction for future research.

Summary updated

BibTeX
@inproceedings{li2008pairwise,
  author = {Zhenguo Li and Jianzhuang Liu and Xiaoou Tang},
  title = {{Pairwise constraint propagation by semidefinite programming for semi-supervised classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2008},
  doi = {10.1145/1390156.1390229},
}
Figure