What is the primary trade-off when using Mini-Batch K-Means over standard K-Means?

Last updated 11 November 2026

  • Mini-Batch K-Means updates centroids from small random batches, giving large speed and memory gains (O(b·k·d) per iteration vs O(n·k·d)) and supporting streaming via partial_fit.

  • The cost is slightly worse quality: noisier centroids, somewhat higher inertia, more seed dependence, and possibly poor centers for small or rare clusters.

  • Use it when n is too large for full k-means or the data doesn't fit in memory. A larger batch_size improves quality but reduces the speedup.

  • https://www.geeksforgeeks.org/machine-learning/ml-mini-batch-k-means-clustering-algorithm/
  • https://buildml.substack.com/p/data-scientists-interview-guide-k-means-56135e9e47b9
  • https://scikit-learn.org/stable/modules/clustering.html
All Clustering interview questions