# e-means: outperforming k-means (in one-tenth the epochs)

e-means: 열 번의 에포크로 k-means를 능가하기

Swann Bessa, Pierre-Emmanuel Mazaré, Gergely Szilvasy, Hugo Touvron, David Picard, Matthijs Douze 외 1명 · arXiv · 2026년 11월 6일

- **연구 문제** Lloyd k-means보다 빠르고 낮은 손실에 도달하는 미니배치 k-means 최적화와, 하이퍼파라미터를 자동으로 고르는 방법이 필요합니다.
- **연구 방법** EMA 기반 미니배치 갱신에 코사인 스케줄, 죽은 클러스터 부활, 마무리 단계를 결합하고 배치 크기와 감쇠율을 로그 선형 스케일링 법칙으로 정합니다.
- **주요 결과** DEEP\*, SIFT, SPACEV, SimSearchNet++ 등에서 Flash-KMeans의 25 에포크 손실에 1.4에서 2.6 에포크로 도달하며 GPU 벽시계 기준 9.5배에서 45.5배 빠르다고 보고합니다.

## k-means 최적화의 속도와 하이퍼파라미터 문제

Lloyd k-means는 전체 데이터에 대해 할당과 중심 갱신을 반복하므로 대규모 데이터에서 비용이 큽니다. 미니배치 k-means는 배치 단위로 중심을 갱신해 지연 시간을 줄이지만, 기존 연구는 배치 크기와 감쇠율을 문제 설정에 맞춰 자동으로 정하는 방법을 제공하지 않습니다. 따라서 실무자는 새로운 데이터셋마다 이 값을 추측해야 합니다. 본 논문은 이 두 가지 문제, 즉 빠른 수렴과 하이퍼파라미터 선택을 함께 다룹니다.

## EMA 기반 미니배치 갱신과 코사인 스케줄

e-means는 각 클러스터의 카운트 N\_j와 합 S\_j를 배치마다 지수이동평균으로 갱신하고, 중심은 c\_j = S\_j / N\_j로 읽습니다. 감쇠율 γ의 보수인 스텝 크기 α = 1 − γ를 코사인 스케줄로 피크 α0에서 바닥 εα0까지 줄이며, ε는 0.1입니다. 이 스케줄은 중심의 이동을 점차 안정화합니다. 또한 5배치마다 카운트가 전체 평균의 0.1 비율보다 낮은 죽은 클러스터를 분할 방식으로 되살립니다. 마지막 에포크의 할당으로 중심을 다시 계산하는 last-epoch-mean 마무리는 훈련 MSE를 줄입니다.

## 스케일링 법칙으로 α0와 배치 크기를 정하는 방식

논문은 클러스터 문제의 n, k, 에포크 수 T로부터 피크 스텝 α0를 min(a·k^a\_k·B^a\_B·n^a\_n·T^a\_T, 1) 형태로 예측합니다. 배치 크기 B는 검증 MSE가 최소값보다 0.2% 이내로 유지되는 최대 배치인 knee로 정의하고, 이를 k, n, T의 로그 선형 식으로 적합합니다. 적합은 DEEP 데이터셋의 검증 MSE에 맞추어 이루어졌으며, 저자들은 이 법칙이 다른 데이터셋으로 전이된다고 보고합니다. 다만 법칙은 상대적으로 고차원 데이터에 맞추어져 있어 매우 낮은 차원의 작은 데이터셋에서는 최적이 아니라고 명시합니다.

## Flash-KMeans와의 속도·손실 비교

e-means는 DINO10B 등 여러 데이터셋에서 Flash-KMeans가 25 에포크에서 달성한 테스트 MSE에 도달하는 데 1.4에서 2.6 에포크가 필요하다고 보고합니다. 이는 H100 GPU 기준으로 9.5배에서 45.5배의 벽시계 속도 향상으로 환산됩니다. 이 비교는 1M에서 100M 규모는 1 GPU, 1B 규모는 8 GPU에서 수행되었으며, 에포크당 FLOPs가 Lloyd와 비슷하다는 점에 근거합니다. 또한 k-means++로 초기화한 Flash-KMeans와 비교해도 5 에포크 안에 더 낮은 평균 오차를 보입니다.

## 수렴 손실과 최종 품질

그림 5의 40개 시드 실험에서 e-means는 random 초기화로, Lloyd는 Faiss로 수렴까지 실행하여 greedy k-means++ 초기화와 비교합니다. 이 실험에서 e-means는 훈련과 테스트 MSE 모두에서 가장 낮은 손실을 보고합니다. 다만 이 결과는 e-means 25 에포크 실행과 Lloyd 수렴 실행을 비교한 것이며, 이미지와 텍스트 데이터셋 일부에서 확인되었습니다.

## 적용 범위와 남은 질문

스케일링 법칙은 고차원 데이터에 맞추어졌으므로 낮은 차원의 작은 데이터셋에서는 최적이 아닙니다. 법칙의 기반이 되는 DEEP 데이터셋 외의 전이는 여러 데이터셋에서 확인되었지만, 저자들은 실제 데이터의 국소 내재 차원을 알기 어려워 법칙을 더 정교하게 다듬는 일이 어렵다고 밝힙니다. 또한 대규모 실험에서 IVF 근사 할당은 훈련 MSE를 악화시키는 근사 오차를 도입하므로 정확한 할당과 구분하여 해석해야 합니다.

## 논문 정보

- **저자**: Swann Bessa, Pierre-Emmanuel Mazaré, Gergely Szilvasy, Hugo Touvron, David Picard, Matthijs Douze, Hervé Jégou
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 6일
- **등록일**: 2026년 11월 9일
- **수정일**: 2026년 11월 6일
- **버전**: v1
- **arXiv**: 2611.09501
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.09501v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.09501v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Lloyd's k-means algorithm is a long-running standard for clustering, with applications in data analysis, retrieval, quantization and data curation. In this paper, we introduce an exponential moving average optimization procedure for k-means with mini-batch updates, powered by modern deep learning machinery and new insights. We also establish scaling laws on how decay rate and batch size impact final performance. This gives us a formulaic rule to fix them for multiple problem sizes and embedding datasets, without the need for any hyperparameter sweep. The resulting clustering algorithm, coined e-means, is much faster than Lloyd k-means and converges to lower losses, frequently even beating k-means++. On a wide array of embeddings datasets, it beats the loss of Lloyd k-means at 25 epochs in 1.4 to 2.6 epochs, which translates to 10-45x GPU wall-clock speedups compared to state-of-the-art k-means implementations. As an example, e-means partitions DINO10B, a dataset of 10 billion DINO embeddings, into 16 million clusters in only 2.5 epochs, reaching a loss below Lloyd's at 25 epochs.

## 원문 인용

Swann Bessa, Pierre-Emmanuel Mazaré, Gergely Szilvasy, Hugo Touvron, David Picard, Matthijs Douze, Hervé Jégou (2026). e-means: outperforming k-means (in one-tenth the epochs). arXiv:2611.09501v1. https://arxiv.org/abs/2611.09501v1

**BibTeX**

```
@misc{bessa2026means,
  title = {{e-means: outperforming k-means (in one-tenth the epochs)}},
  author = {Swann Bessa and Pierre-Emmanuel Mazaré and Gergely Szilvasy and Hugo Touvron and David Picard and Matthijs Douze and Hervé Jégou},
  year = {2026},
  eprint = {2611.09501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09501v1}
}
```

## 이 논문의 용어

- [MSE](https://refivu.com/terms/aaced1b84616-mse)
- [FLOPs](https://refivu.com/terms/14c405888d5b-flops)
- [Faiss](https://refivu.com/terms/71e40b3935f9-faiss)
- [recall@10](https://refivu.com/terms/c6b52eb76739-recall-10)
- [SIFT](https://refivu.com/terms/bcf3dc5de1bd-sift)
- [Scaling laws](https://refivu.com/terms/95a3c3d4f23c-scaling-laws)
- [EMA](https://refivu.com/terms/e5ba352452a1-ema)
- [K-means++](https://refivu.com/terms/ec27027c978b-k-means)
- [e-means](https://refivu.com/terms/0bb16aae7afd-e-means)

## 다른 논문 해설

- [Calibrated Uncertainty Quantification on TDC ADMET: What Can Be Resolved Across 22 Datasets?](https://refivu.com/papers/2ebe3166-d955-42f8-b0b4-c3f2e40e6c3f-calibrated-uncertainty-quantification-on-tdc-admet-what-can.md)
- [Cutpurse: Decomposing Explanation-Guided Model Extraction on Tabular Data](https://refivu.com/papers/890217e9-1ff5-4bfc-9fd5-eec7d2202920-cutpurse-decomposing-explanation-guided-model-extraction-on.md)
- [Enforcing Symmetries on Pre-trained ML Models for Physics](https://refivu.com/papers/2c57fb7c-90c3-412b-8fbf-f678b9381063-enforcing-symmetries-on-pre-trained-ml-models-for.md)
- [Machine learning for lattice QCD](https://refivu.com/papers/14a4512c-e395-4867-b986-a1aae0142dc4-machine-learning-for-lattice-qcd.md)
- [The Cost of Coverage: Conformalising Native Forecast Uncertainty for GB Wind Power](https://refivu.com/papers/b9f5317d-343d-431d-9395-23763f7a6de3-the-cost-of-coverage-conformalising-native-forecast.md)
- [Fifty-Two Shades of Pig: What the UCR Archive Really Asks Classifiers to Do](https://refivu.com/papers/7cfe7d47-2121-47ac-8d1f-7bb5703c8644-fifty-two-shades-of-pig-what-the-ucr.md)
- [Can LLMs Debug Robots by Editing Their Weights?](https://refivu.com/papers/69c2d2ab-a4ae-419f-82fb-5f26ff1d056d-can-llms-debug-robots-by-editing-their-weights.md)
- [Definitions, Label Names, or Demonstrations? Auditing What Governs LLM Annotation](https://refivu.com/papers/63b6f9bc-4de3-4a5a-a735-e564d9574f8a-definitions-label-names-or-demonstrations-auditing-what.md)
- [Multilingual Artificial Datasets for AI-Driven Cardiology: the CliTe and ParaCliTe corpora](https://refivu.com/papers/4986159e-66b4-4870-acba-d3c66049c82b-multilingual-artificial-datasets-for-ai-driven-cardiology.md)
- [An Empirical Study of Issues in GPU Kernel Libraries for LLM Systems](https://refivu.com/papers/b4b20cf0-960a-40a7-a669-eb0904200dc1-an-empirical-study-of-issues-in-gpu-kernel.md)
- [RoleWalk: training-free structural embeddings for directed graphs that transfer across graphs](https://refivu.com/papers/b54d8c66-c85e-4684-898b-fa6117effc13-rolewalk-training-free-structural-embeddings-for-directed.md)
- [A Taxonomy-Driven Synthetic Dataset for Retrieval Effectiveness and Fairness Evaluation in Hiring](https://refivu.com/papers/9051cb88-28dc-4d67-a758-308c4168517f-a-taxonomy-driven-synthetic-dataset-for-retrieval.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/60d70b27-e884-4a4c-ba0c-9e7cb97aff61-e-means-outperforming-k-means-in-one-tenth)
