NEWSFEVER
Technology worth discussing24 / 7 · RU + EN
Back to feedArtificial Intelligence

Meta FAIR’s e-means clustering algorithm goes open source

The developers report faster clustering and lower test loss than implementations of Lloyd’s algorithm.

Published: 10 Nov 2026, 03:00 UTC
Colored points form several clusters around central markers, with translucent trails suggesting successive updates.
Conceptual illustration of data points grouping around cluster centers.

The developers of e-means have open-sourced the k-means algorithm developed at Meta FAIR. Designed for static datasets, it is presented as a replacement for Lloyd’s algorithm. The k-means problem involves finding cluster centers that minimize the mean squared distance between each data point and its nearest center.

According to the developers, across a range of datasets and scales, e-means reaches lower test loss in 1.2–3 epochs than Lloyd’s algorithm achieves in 25 epochs. Their end-to-end benchmarks show a 10–45× reduction in runtime on GPU against Flash-KMeans and an 8–15× reduction on CPU against Faiss.

The method updates cluster statistics in mini-batches using exponential moving averages, gradually reducing the influence of older point assignments. Scaling laws automatically select the batch size and update step. The authors say practitioners need no additional hyperparameter tuning compared with Lloyd’s algorithm. Other components include improved initialization, a cosine-scheduled decay rate and a finalization stage that reduces training loss.

To revive clusters with no assigned points, e-means splits large active clusters. The developers validated the method across 24 datasets and configurations involving embeddings and synthetic data. The implementation is available in faiss/contrib/e_means.

Original source: e-means.github.io ↗

Comments on source platforms

Rank is the maximum of the latest discussion counts. These are source metrics.

Hacker News