Meta FAIR open-sources e-means: k-means matching Lloyd's loss in 1.2-3 epochs, 10x faster

JeremyCMorgan · x · 2026-11-26

Meta FAIR open-sourced e-means, a modern replacement for Lloyd's k-means algorithm using mini-batch updates with moving averages, with batch and step sizes set automatically via scaling laws. It reaches a test loss below Lloyd's 25-epoch result in just 1.2–3 epochs — 10–45x wall-clock speedup on GPU vs Flash-KMeans and 8–15x on CPU vs Faiss, while also achieving lower loss. Code ships in Faiss contrib, with a paper and browser playground available.

Original post →

More from Research

Research channel →