AI Weekly Malaysia

Back to items Summaries

E-means: Outperforming k-means in one-tenth the epochs

ID
44849
Status
summarized
Published
10 Nov 2026, 2:45 AM
Fetched
10 Nov 2026, 2:47 PM
Provider
Hacker News
Category
dev-community
Original URL
https://e-means.github.io/
Source URL
https://hnrss.org/best

Summary

Score
8.0
Created
10 Nov 2026, 2:47 PM
Tags
Audience
developersai_ml_learnersdatabase_learners

What happened

e-means is an open-source k-means replacement developed at Meta FAIR that swaps Lloyd's full-batch updates for mini-batch updates with exponential moving averages, cosine-scheduled decay, improved initialization, dead-cluster revival, and scaling-law-set batch/step sizes with no hyperparameter tuning. The authors claim it reaches lower test loss than Lloyd at 25 epochs in 1.2–3 epochs, with 10–45× GPU wall-clock speedup vs Flash-KMeans and 8–15× CPU speedup vs Faiss. The Hacker News thread drew 338 points and 29 comments.

Why it matters

If you run clustering, vector quantization, embedding deduplication, or analytics on Faiss or Flash-KMeans, this gives you a concrete alternative to benchmark on your own data before switching. The claimed 8–15× CPU and 10–45× GPU speedups with lower loss are author-reported, so validate on your dataset rather than assuming the result transfers.

Discussion angle

Where would a 10× faster k-means actually change your product—vector quantization, embedding deduplication, or analytics—and what benchmark would you run before replacing Faiss or Flash-KMeans?

Top