Meta FAIR 發布 e-means:以十分之一 epoch 數擊敗 k-means 的新演算法
Meta FAIR researchers have released e-means, a drop-in replacement for Lloyd’s k-means algorithm.The e-means clustering algorithm reaches the loss Lloyd’s k-means gets in 25 epochs in 1.4 to 2.6 epochs.It ships in FAISS 1.16.0 under faiss.contrib.emeans.
For anyone building vector indexes, quantizers or data-curation pipelines, clustering is often the slowest offline step.e-means targets exactly that step.TL;DR Size: It is an algorithm.Tested from 100K to 10 billion points, up to 16.7M clusters.Runs on: CPU or GPU, with PyTorch tensors or NumPy.
Paper GPU runs use H100s.Performance: Lower loss than Lloyd’s k-means in roughly one-tenth the epochs, across 24 dataset configurations (self-reported).Best: 10-45x GPU wall-clock speedup over Flash-KMeans at equal loss.
Worst: 16M-centroid runs need 64 GiB of float32 accumulators, so centroids must be sharded across GPUs.What is e-means?e-means is a mini-batch k-means algorithm from Meta FAIR that updates centroids with exponential moving averages.How does e-means work?
Every k-means variant keeps a sum S and a count N per cluster.The centroid is S divided by N.Methods differ only in how S and N change.Lloyd recomputes S and N from the full dataset each iteration.MacQueen (1967) keeps adding batch statistics forever, so stale assignments never leave.
e-means decays old statistics at rate α: S ← (1−α)S + αs, and the same for N.Older assignments fade, so centroids track recent data.The research team expa Lloyd is a corner case: full batch with α = 1.On DEEP, that corner sits 1.8% above the best loss.
The team tested plain gradient descent as an alternative.At its best setting, it ended 1.6% (DEEP) and 0.4% (SIFT) above EMA.The authors suspect EMA wins because centroids always stay inside the hull of their assigned points.What replaces hyperparameter tuning?
Two fitted scaling laws set batch size B and initial step α0 from dataset size n, cluster count k and epochs T.On held-out datasets, median regret was 0.07% for the step law.The step then follows a cosine schedule from α0 to 0.1α0.What else changed?
Dead-cluster revival: clusters below a size threshold are revived by splitting a large cluster.Finalization: training ends on each cluster’s exact last-epoch mean.Fused GPU kernels: nearest-centroid assignment is fused, so saved epochs become saved seconds.
[EMBED: e-means interactive explainer] How fast is e-means in benchmarks?All numbers below are self-reported by the authors.Epochs: e-means beats Lloyd’s 25-epoch loss in 1.4 to 2.6 epochs.GPU: 10-45x wall-clock speedup against Flash-KMeans.CPU: 8-15x speedup against Faiss k-means.
VIBE benchmark: all 11 embedding datasets needed 1.6 to 2.4 epochs.Billion scale: DINO10B, 10 billion 1,024-dim embeddings, split into 16.7M clusters in 2.5 epochs.The release thread shows a 1-CPU-thread demo.Lloyd took 4.39 s for 25 epochs.e-means took 0.43 s for 2.2 epochs.
One Lloyd step touched 100,000 points (0.176 s).One e-means step touched 512 points (0.001 s).Mini-batch noise also helps escape bad local minima.On a 5-blob toy, Lloyd stayed stuck on 46% of 200 starts.e-means stayed stuck on 0%.Revival matters at large k.
On DEEP with 16,384 clusters, proportional splitting left 47 dead clusters (0.3%).With revival off, 4,313 clusters (26.3%) died.How does e-means compare with other k-means options?
Featuree-meansLloyd k-means (Faiss)Flash-KMeansscikit-learn MiniBatchKMeansUpdate ruleEMA mini-batch (blog)Full-batch LloydFull-batch Lloyd, exact (paper)Mini-batch, Sculley-style (docs)Data per updateBatch B from scaling lawFull datasetFull dataset1,024 points (default)Tuning beyond kNone (epochs default 5)Iteration countIteration countbatchsize, maxiter, reassignmentratio, tolHardwareCPU, GPU (H100 tested)CPU, GPUNVIDIA GPU (H200 tested)CPUEpochs to Lloyd’s 25-epoch loss1.
4 to 2.6 (paper)25 (reference)Same as Lloyd (exact)Not disclosedHeadline speed claim10-45x GPU, 8-15x CPU (self-reported)BaselineUp to 17.
9x vs best baselines (self-reported)Not disclosedLicenseMIT, via FAISS (Wikipedia)MITNot disclosedBSD-3-Clause (Debian) Key Takeaways e-means swaps Lloyd’s full-batch update for EMA mini-batches.Matches 25 Lloyd epochs in 1.4 to 2.6 epochs.10-45x faster on GPU, 8-15x on CPU (self-reported).
No tuning: scaling laws set batch and step size.Available now in FAISS 1.16.0.Check out the paper, the blog post and the FAISS code.Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?
now you can join us on telegram as well.Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?Connect with us The post Meta FAIR Releases e-means: An Algorithm Beating k-means in 10x Fewer Epochs appeared first on MarkTechPost.
Related
相關文章
Google Unveils TPU 8i Max and TPU 8tx: A Dual-Chip TPU and a Confidential TPU
Google has added two new systems to its eighth-generation TPU lineup.TPU 8i Max targets massive context windows and rack density.
雷軍曬小米機器人做家務視頻,Xiaomi-Robotics-1支撐長程任務
該機器人在小米青年公寓試運營,可完成垃圾清掃、物品分類歸位等家務任務,視頻中清掃瓜子殼、收拾遺落手機充電器等場景引發網友關注。這套機器人依託Xiaomi-Robotics-1具身基座模型,搭建完整自動執行系統,實測能夠連續運行超30分鐘、覆蓋3個房間、完成50+任務的長程任務驗證。
追覓科技亮相2026世界互聯網大會人工智能嘉年華,以AI技術創新賦能智慧生活
11月2日,2026年世界互聯網大會烏鎮峰會在浙江嘉興烏鎮正式啟幕。本屆峰會以“開源開放、共建共享”為主題,聚焦人工智能等前沿技術發展與產業應用。追覓攜旗下T70 Ultra Station、T60 Steam等多款旗艦洗地機亮相“人工智能嘉年華”展區,集中展示智能清潔領域的技術創新成果,呈現前沿科技與家庭生活深度融合的創新實踐。作為全球領先的智能科技品牌,追覓始終堅持以技術創新驅動產品升級,持續探索人工智能、智能感知與清潔技術的融合應用。此次亮相的追覓T70 Ultra Station洗地機,集成多項行業首創技術,以創新設計進一步拓展家庭清潔的場景邊界。其中,首創的EdgeHunter巡邊探洗臂搭載高精度TOF測距傳感器與新一代具身智能算法,可針對不同沿邊清潔場景實現5mm自動外擴和30mm手動外擴,有效突破傳統洗地機在牆邊、傢俱邊緣等區域的清潔侷限。同時,產品採用9.85cm超薄機身設計,支持180°恆動平躺清潔,可深入沙發、床底等低矮空間,進一步提升家庭清潔的覆蓋範圍與靈活性。從精準感知到智能決策,從核心技術突破到清潔場景創新,追覓持續推動智能科技向實際生活場景落地。目前,追覓聚焦智能家庭、戶外庭院、智能出行、具身智能四大核心賽道,推動前沿技術跨領域融合,並通過人性化設計與產品體驗創新,讓科技更好地融入日常生活。持續的技術創新也推動追覓全球業務穩步發展。目前,追覓產品與服務已覆蓋全球190餘個國家和地區,擁有超過13000家實體門店,累計服務超4200萬戶家庭。IDC數據顯示,2026年上半年,追覓掃地機器人全球銷量份額和銷售額份額均位居全球第一。未來,追覓將繼續深耕核心技術,推動人工智能與智能清潔技術深度融合,以創新產品和解決方案賦能全球家庭智慧生活。
一加 Ace 7 Pro 火爆熱銷:首銷銷量同比上漲 225%
10月29日,「性能直升跨代之作」一加 Ace 7 系列發佈即開售,憑藉“性能直升一代、遊戲橫掃全場”的超旗艦體驗首銷告捷,一加 Ace 7 Pro 首銷銷量同比一加 Ace 6上漲225%,同時,一加 16 和一加 Ace 7 Pro 包攬2026 年安卓手機首銷銷量冠軍和亞軍。一加中國區總裁李傑表示:“一加 Ace 7 系列性能、屏幕、影像全面領先,好產品自己會說話。 一加 Ace 7 系列的實際體驗,相信大家上手之後會更加驚喜。
腦景中心啟幕、四款新品齊發!熵基科技加碼非侵入式腦機接口全棧技術與應用平臺
10月29日,以"BE THE CHANGE MAKER"為主題的熵基科技全球合作伙伴大會2026在東莞啟幕,會期將持續至10月31日。本屆大會聚焦原生AI發展趨勢,圍繞空間智能、腦機接口與人工智能融合創新,以及全球產業生態協同展開,集中呈現熵基科技在技術創新、產品研發與場景應用方面的最新進展。大會期間,ZKBrainScape腦景中心正式啟幕,MarsLume火星慧知AI全域解決方案全球發佈,熵基科技攜手生態夥伴聯合發佈四款腦機接口新品,並通過產業合作與技術交流,探索創新技術走向真實場景的更多路徑。
推理蒸餾開始改寫教師解題軌跡
Computer Science > Artificial Intelligence arXiv:2610.36445 (cs) [Submitted on 27 Oct 2026] Title:From Solver Trajectories to Teaching Trajectories: Cognition-Aligned Reasoning Distillation Authors:Yashuo Luo, Qianren Ma。