Incremental Affinity Propagation Based on Cluster Consolidation and Stratification

Francesco Periti, Stefano Montanelli, Alfio Ferrara, Silvana Castano

Introduction

Clustering algorithms are fundamental tools in data science, yet most traditional approaches are "static," assuming all data is available at the outset. In dynamic environments where data arrives in continuous streams—such as social media feeds or sensor logs—re-running standard algorithms like Affinity Propagation (AP) becomes computationally prohibitive due to its quadratic ($O(N^2)$) complexity. Furthermore, dynamic clustering must navigate the stability-plasticity dilemma: incorporating new information (plasticity) without losing previously learned structures (stability).

Existing incremental methods often struggle to maintain a coherent cluster history or fail to manage memory effectively, leading to "memory bloat." To address these challenges, this paper introduces A-Posteriori affinity Propagation (APP), an incremental extension of AP designed for evolving datasets.

Comparison of incremental clustering algorithms (Part 1).

Methodology: The APP Framework

APP transforms the standard AP algorithm into a scalable, evolutionary tool through three primary mechanisms:

  1. Cluster Consolidation: To avoid the $O(N^2)$ bottleneck, APP does not retain every historical data point. Instead, it collapses previous clusters into a summary representation—the centroid. At each new time step, the algorithm only processes new incoming objects alongside the centroids of previous clusters, drastically reducing input size.
  2. Cluster Stratification: APP tracks the evolution of clusters over time by identifying three distinct behaviors:
  3. Creation: New objects forming a novel cluster.
  4. Enrichment: New objects being absorbed into an existing cluster via its centroid.
  5. Merge: Multiple previous clusters combining with new data to form a single entity.
  6. Forgetfulness (Pruning): To ensure long-term scalability, APP implements an "aging index." Clusters that are not updated or enriched within a specific time threshold are pruned from memory.

Experimental Evaluation

The authors evaluated APP across diverse scenarios to test its robustness and real-world utility:

  • Benchmark Datasets: Performance was measured on four labeled datasets—Iris, Wine, Car, and KDD-CUP—using metrics like Purity and Normalized Mutual Information (NMI).
  • Lexical Semantic Change (LSC): APP was applied to a diachronic corpus of Vatican publications (1431–2023) to track the semantic evolution of the word "novità" (novelty).
  • NLP Benchmarks: The algorithm was also tested on the SemEval-2020 Task 1 for unsupervised lexical semantic change detection.

Results and Discussion

The experimental results highlight APP's superior efficiency and quality. On the KDD-CUP dataset, APP demonstrated a massive speedup, processing data in ~0.2 seconds compared to ~46 seconds for standard AP, while reducing memory usage from ~205 MB to ~3.4 MB.

Comparison of incremental clustering algorithms (Part 2), highlighting APP's features.

As shown in the comparison tables above, APP is one of the few methods that maintains a full clustering history while remaining "faster than AP." In semantic tasks, APP produced more realistic cluster counts (0–30) compared to baselines that often over-segmented word meanings into over 100 clusters.

Conclusion

APP offers a powerful solution for incremental clustering by leveraging centroids as a lossy but efficient memory. While the current centroid-based representation may simplify complex cluster shapes, the framework's ability to maintain faithfulness over time and scale to large datasets makes it a significant advancement. Future work will explore multi-centroid representations and refined pruning thresholds to further enhance performance on non-spherical data.

Summary updated

BibTeX
@article{periti2025incremental,
  author = {Francesco Periti and Stefano Montanelli and Alfio Ferrara and Silvana Castano},
  title = {{Incremental Affinity Propagation Based on Cluster Consolidation and Stratification}},
  journal = {Neural Process. Lett.},
  year = {2025},
  doi = {10.1007/s11063-025-11752-y},
}
Figure