HNHacker News
TopNewBestAskShowJobs

gilfyole

4 karma · joined July 21, 2026

submissionscomments
gilfyole··on E-means: Outperforming k-means in one-tenth the epochs
Thanks for this. I tried experimenting with e-means in retrieval engine im building, for that I had to port the CPU version from faiss to Rust

https://crates.io/crates/emeans

https://pypi.org/project/emeans

We use k-means to build the cells of our vector index, which today runs 5 Lloyd iterations on a sample of the data. So I ran a quick test on 500k LAION embeddings (768 dimensions, 4,096 cells) against our current code:

- Current setup of 5 iterations: about 4x faster, with slightly better recall at every probe count (for example 0.9518 vs 0.9473 at 32 probes) and fewer rows scanned per query

- Cells came out much more even. The biggest cell went from 6.6x the average size to 4.75x, and there were no empty cells (we had 7)

- With only 2 iterations it was about 10x faster and recall stayed close to what we have today

These numbers are from my mac. I'm rerunning on a Linux box with AVX-512 now. If it holds up, we'll try it in our index build

Some notes here: https://github.com/infino-ai/infino/issues/1279

gilfyole··on Five US tech giants' hidden debts soar to $1.65T on opaque AI funding
A bubble in progress waiting for right time (hello 2028) to burst.