Abstract
Affinity Propagation (AP) is a robust clustering algorithm that identifies exemplars by passing messages between data points, eliminating the need to pre-specify the number of clusters. However, its $O(N^2)$ complexity makes it computationally prohibitive for large datasets with dense similarity matrices. This paper introduces two scalable variants: Partition AP (PAP) and Landmark AP (LAP). PAP employs a local-to-global strategy by partitioning the similarity matrix, while LAP uses a global sampling approach with landmark points. Evaluations on synthetic and high-dimensional real-world datasets show that these methods significantly reduce computation time—up to 4x in some cases—while maintaining or even improving clustering accuracy.
Introduction
Clustering serves as a cornerstone in data mining, yet traditional algorithms like k-means often require prior knowledge of the cluster count. Affinity Propagation (AP) emerged as a superior alternative, treating all data points as potential exemplars and iteratively passing "responsibility" and "availability" messages. Despite its effectiveness, AP's reliance on dense similarity matrices leads to a computational bottleneck as dataset sizes grow. This research addresses this limitation by proposing PAP and LAP, designed to make AP viable for large-scale tasks such as image characterization and facial expression analysis.
Methodology
The authors propose two distinct strategies to bypass the computational heavy lifting of standard AP:
Partition Affinity Propagation (PAP): The Local Approach
PAP decomposes the large-scale clustering problem into manageable sub-problems. The similarity matrix is divided into $k$ smaller sub-matrices, and standard AP is executed on these subsets to identify local candidate exemplars. These candidates are then aggregated for a final global AP run. This "priming" of the algorithm with local solutions allows the global phase to start with meaningful message values, drastically accelerating convergence.
Landmark Affinity Propagation (LAP): The Global Approach
LAP focuses on approximating the global data structure through sampling. It selects a small subset of "landmark" points and runs AP exclusively on them to establish cluster centers. The remaining data points are then assigned to the nearest established exemplar. For complex distributions, LAP can be applied recursively to refine assignments.
Experimental Evaluation
The proposed methods were tested against a diverse set of data, including synthetic 2D points and high-dimensional manifolds (e.g., Swiss Rolls). Real-world applications included the Cohn-Kanade facial expression database (2,021 images) and a massive Chinese calligraphy database containing over 10,000 images.
Key Results and Insights
The experiments revealed that sub-problem decomposition and landmark sampling are highly effective for message-passing algorithms.
Performance Gains
- Speed: On the Cohn-Kanade dataset, PAP achieved a 4x speedup, reducing convergence time from 638 seconds to 151 seconds ($k=4$).
- Accuracy: Surprisingly, PAP often outperformed standard AP. On facial data, PAP reached a 65.61% true association rate compared to 61.76% for the standard version, suggesting that localized pre-clustering helps avoid poor local optima.
- Scalability: LAP successfully processed the 10,729-image calligraphy dataset—a task otherwise intractable for standard AP on dense matrices—using only 100 landmarks.
The Accuracy Trade-off
While LAP offers extreme scaling, it is sensitive to landmark density. On a 1,000-point synthetic dataset, reducing landmarks from 500 to 100 caused accuracy to drop from 81.9% to 29.6%, highlighting the importance of representative sampling.
Limitations and Future Work
The authors identify two primary areas for refinement. First, the optimal number of partitions ($k$) in PAP remains heuristic and requires further formalization. Second, the current uniform random sampling in LAP can miss small clusters or over-represent large ones. Future work will explore non-uniform sampling techniques, such as LASSO-based selection, to ensure landmarks more accurately represent the underlying data distribution.
Summary updated