Papers
Topics
Authors
Recent
Search
2000 character limit reached

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

Published 6 Nov 2026 in cs.LG and cs.AI | (2611.09501v1)

Abstract: 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.

Summary

  • The paper introduces e-means, a new clustering method that significantly outperforms k-means by converging 10x faster while generally achieving better or equal clustering quality (distortion).
  • e-means achieves up to 45.5x speed improvement in wall-clock performance and uses empirical scaling laws to automatically determine optimal hyperparameters, reducing manual tuning effort.
  • All significant points are verified with extensive experiments on massive datasets, real-world embeddings, and synthetic distributions, showcasing the robustness of e-means across diverse scenarios.

Problem setting and contribution

The paper addresses the computational inefficiency of Lloyd’s algorithm for large-scale kk-means clustering. Given nn vectors in Rd\mathbb{R}^d and kk centroids, Lloyd alternates between exhaustive nearest-centroid assignment and exact centroid recomputation. Although each iteration decreases the training objective and converges to a local minimum in finitely many steps, the assignment phase is expensive, particularly when both nn and kk are large. Mini-batch methods reduce per-update cost but generally converge to inferior solutions and require manually tuned batch sizes, learning rates, and dead-cluster handling.

The paper introduces e-means, an EMA-based mini-batch optimization procedure designed specifically for static kk-means. Its central claim is that an appropriately modified EMA optimizer can simultaneously improve convergence speed and final distortion, rather than accepting the usual mini-batch trade-off between throughput and clustering quality. The method combines EMA sufficient statistics, cosine decay of the effective step size, dead-cluster revival, random initialization, and a low-cost finalization stage. It is accompanied by empirical scaling laws for selecting the batch size and initial step without a hyperparameter sweep (2611.09501).

The evaluation is unusually broad for a clustering-optimization paper. It spans image descriptors, text embeddings, transformer representations, synthetic distributions, datasets from 10610^6 to 101010^{10} vectors, and cluster counts from thousands to tens of millions. The principal baseline is Lloyd’s algorithm after 25 iterations, implemented with Faiss or Flash-KMeans depending on hardware. The paper also compares against k-means++, Sculley-style mini-batch kk-means, Staleness-Reduction, SuperKMeans, cuML, and other optimized implementations.

EMA optimization for static kk-means

For each centroid jj, e-means maintains an exponentially weighted count NjN_j and sum SjS_j. For a mini-batch B\mathcal{B}, let njn_j and sjs_j denote the number and sum of points assigned to centroid jj. The update is

Nj←γNj+(1−γ)nj,Sj←γSj+(1−γ)sj,N_j \leftarrow \gamma N_j + (1-\gamma)n_j,\qquad S_j \leftarrow \gamma S_j + (1-\gamma)s_j,

with centroid cj=Sj/Njc_j=S_j/N_j. This parameterization preserves the interpretation of each centroid as a weighted mean of assigned data. Unlike ordinary SGD updates, the centroid remains in the convex hull of its effective assigned points, which the authors associate with improved stability at large batch sizes.

The effective step α=1−γ\alpha=1-\gamma follows a cosine schedule. It begins at a problem-dependent peak α0\alpha_0 and decays to 0.1α00.1\alpha_0 by the end of training. The schedule is intended to combine aggressive early adaptation with late-stage stabilization. The ablation results indicate that this schedule is more useful for training MSE than for test MSE: on the reported configurations, cosine decay improves training MSE by approximately 0.26%0.26\% to 1.29%1.29\% over a validation-tuned fixed step, while test improvements are smaller and occasionally negative.

Dead clusters are revived every five batches. A cluster whose EMA count falls below 10%10\% of the mean cluster count is replaced by a perturbed copy of a donor cluster, with the donor’s effective mass split between the two resulting centroids. This intervention is not a cosmetic implementation detail. In the reported ablation, disabling revival increases test MSE by 2.24%2.24\% and increases the number of dead clusters on DEEP at one million points from 47 to 4,313. Resampling a centroid from the current batch is substantially less effective than splitting a live donor.

The finalization procedure separates training-set optimization from out-of-sample optimization. The default last-epoch mean recomputes centroids from the assignments generated during the final pass, guaranteeing a non-increasing training MSE relative to the EMA centroids. A separate slow-EMA finalizer can improve held-out MSE by smoothing the final centroids. This distinction is important because continued minimization of training distortion can degrade test distortion in configurations with large k/nk/n or high dimensionality.

Scaling laws for hyperparameter selection

The paper’s most practically important methodological component is its attempt to eliminate manual tuning. The authors fit log-linear power laws for the peak step and batch size using 75,000 optimization runs on DEEP, with configurations spanning

  • 10510^5 to 10810^8 training vectors,
  • $256$ to 65,53665{,}536 clusters,
  • multiple epoch budgets,
  • and batch sizes from small mini-batches to substantial fractions of the dataset.

The fitted peak step has the form

α0∝k−0.46B0.90n−0.45T−0.11,\alpha_0 \propto k^{-0.46} B^{0.90} n^{-0.45} T^{-0.11},

with a fitted coefficient and clipping at one. Thus, larger batches require substantially larger EMA steps, whereas larger datasets and more clusters require smaller steps. The batch-size law has approximate exponents

B∝k0.13n0.88T0.81.B \propto k^{0.13} n^{0.88} T^{0.81}.

For datasets above two million points, the paper divides the predicted batch size by eight because this preserves throughput while avoiding a quality penalty at large scale.

The scaling laws fit the measured data well, with R2R^2 values of $0.95$ for the step law and $0.96$ for the batch law. More importantly, their median regret is low under held-out configurations: approximately 0.07%0.07\% when holding out dataset sizes, 0.07%0.07\% when holding out datasets for the step law, and 0.19%0.19\% to 0.20%0.20\% for the batch law under its stated 0.2%0.2\% knee criterion. The authors report that the laws transfer from DEEP to SIFT, SPACEV, VIBE, AG-News, and arXiv embeddings.

Figure 1

Figure 1: Validation-error families used to fit the decay-rate and batch-size scaling laws.

The low regret supports the paper’s claim that e-means can be deployed with approximately the same tuning burden as Lloyd: the practitioner specifies the clustering problem and epoch budget, while the method determines its main optimizer parameters. This result is more consequential than a small improvement from a carefully tuned optimizer, because the baselines in the main comparison are not granted equivalent exhaustive tuning. The paper explicitly reports that the principal e-means experiments use the formulaic laws without dataset-specific hyperparameter sweeps.

Convergence and clustering quality

Across real embedding datasets, e-means reaches the test MSE of Lloyd after 25 iterations in approximately $1.4$ to $2.6$ epochs. This corresponds to a reduction in optimization passes of roughly one order of magnitude. The result is not limited to matching a weak Lloyd baseline: e-means generally converges to lower final MSE than Lloyd with either random initialization or greedy k-means++ initialization.

On four representative datasets, e-means ends below the 25-epoch Lloyd reference on both training and test MSE. Conventional mini-batch baselines can initially improve faster than Lloyd but plateau at higher distortion. E-means differs in that its early convergence is followed by a lower asymptotic loss.

Figure 2

Figure 2

Figure 2: Training and held-out loss as a function of epoch count, normalized by the 25-iteration Lloyd result.

The fixed-budget comparisons are particularly strong. With random initialization, three e-means epochs outperform Flash-KMeans after 25 iterations on all eight reported configurations spanning DEEP, SIFT, SPACEV, and SimSearchNet++. For example, at one million points, e-means after five epochs improves over Flash-KMeans at 25 iterations by approximately 0.58%0.58\% on DEEP, 0.67%0.67\% on SIFT, 0.84%0.84\% on SPACEV, and 0.33%0.33\% on SimSearchNet++ when measured from the displayed MSE values. With greedy k-means++ initialization, the margin narrows, but e-means after five epochs remains better on all eight configurations, with advantages between 0.06%0.06\% and 0.33%0.33\%.

The claim that e-means can outperform k-means++-initialized Lloyd is notable because initialization is often treated as the principal mechanism for improving Lloyd’s local minimum. The paper reports 40-seed convergence distributions on three datasets in which e-means, despite using random initialization, obtains lower train and test losses than Lloyd with greedy k-means++. This does not establish global optimality; it establishes that, for the tested embedding distributions and budgets, the EMA dynamics provide a more favorable optimization trajectory than the tested Lloyd trajectories.

Wall-clock performance

The algorithmic improvement translates into substantial wall-clock gains because the assignment kernel dominates both Lloyd and e-means. E-means uses the same basic nearest-centroid computation but performs far fewer complete data passes. On one H100, the method reaches Flash-KMeans’ 25-iteration test MSE with speedups ranging from 9.5×9.5\times to 45.5×45.5\times across the reported dataset scales.

Dataset size Clusters Epochs to Flash@25 MSE Speedup over Flash-KMeans
$1$M 16,38416{,}384 $1.4$–$2.4$ 9.5×9.5\times–12.9×12.9\times
$10$M 65,53665{,}536 $1.4$–$2.0$ 19.2×19.2\times–27.8×27.8\times
$100$M 262,144262{,}144 $1.4$–$2.6$ 19.9×19.9\times–35.9×35.9\times
$1$B 1,048,5761{,}048{,}576 $1.4$–$2.0$ 21.2×21.2\times–45.5×45.5\times

The largest speedup, 45.5×45.5\times, occurs on the one-billion-vector DINO10B subset. On the eleven VIBE datasets, e-means requires between $1.6$ and $2.6$ epochs to reach the Lloyd@25 reference and achieves GPU speedups from 8.0×8.0\times to 22.8×22.8\times relative to Flash-KMeans. CPU gains against Faiss are also substantial, generally between 9×9\times and 15×15\times.

Figure 3

Figure 3

Figure 3: Test-error versus wall-clock trade-offs on CPU and GPU; lower and further left is better.

The comparison is not purely an implementation contest. The e-means GPU kernels are designed to be competitive with Flash-KMeans, including blocked centroid evaluation and fused distance reduction, but the principal advantage derives from fewer epochs. The paper reports that reduced-precision assignment using BF16, FP8, or INT8 changes assignments more frequently than full precision but keeps final test MSE within 0.13%0.13\% of BF16 across all displayed configurations. This enables the hardware throughput required for the wall-clock gains without materially compromising the clustering objective.

Scaling to DINO10B

The DINO10B benchmark extends the evaluation to ten billion 1,024-dimensional DINOv3 patch embeddings, quantized to one byte per coordinate. The full dataset contains approximately ten terabytes of vector data and uses k=224≈16.7k=2^{24}\approx16.7 million centroids. At this scale, exhaustive assignment becomes the dominant systems bottleneck, so the paper augments e-means with IVF-based approximate nearest-centroid assignment.

For the full DINO10B configuration, exact-assignment e-means reaches the Lloyd@25 test MSE in 2.5 epochs using 779 GPU-hours over 32 machines. The IVF version reaches the same target in three epochs using 22.8 GPU-hours on one machine, corresponding to a 34×34\times reduction relative to exact e-means at that scale. The method therefore partitions ten billion vectors into approximately 16.7 million clusters in a few epochs rather than requiring a full 25-iteration Lloyd run.

The scaling is not uniformly beneficial for every objective. Approximate assignment introduces training-assignment errors and can increase training MSE. Nevertheless, held-out MSE is comparatively insensitive and can occasionally improve because assignment noise acts as a regularizer. This distinction is central: the reported DINO10B result is based primarily on reaching the Lloyd test MSE, not exactly reproducing Lloyd’s training partition.

Figure 4

Figure 4

Figure 4

Figure 4

Figure 4: Scaling of e-means on DINO10B, including exact and IVF assignment at increasing dataset sizes.

The paper also reports that IVF assignment is ineffective or unnecessary at 100 million vectors, approximately 4.3×4.3\times cheaper at one billion vectors, and 34×34\times cheaper at ten billion vectors. This establishes a scale-dependent systems regime: e-means supplies the optimization advantage at moderate scale, while approximate assignment is needed to make the assignment phase viable at extreme scale.

Synthetic-data analysis and optimizer behavior

The synthetic experiments test whether the observed improvements are artifacts of particular embedding datasets. They vary dataset size, dimension, coordinate anisotropy, distribution family, and cluster imbalance. The tested distributions include uniform cubes, isotropic and stretched Gaussians, balanced Gaussian mixtures, and Zipf-weighted mixtures.

Across the dimension sweep, e-means reaches the Lloyd@25 training error in a median of approximately $3.1$ epochs and the held-out error in fewer epochs. Across dataset sizes, the corresponding median is approximately $2.3$ epochs. At a common 25-epoch budget, e-means is better than Lloyd on training error in all 140 reported experiments and better on held-out error in all but ten. These results indicate that the method is not restricted to the empirical distributions of benchmark embeddings.

However, the synthetic results also expose a generalization effect. In a small number of high-dimensional configurations, e-means reaches Lloyd’s test MSE early but later worsens because continued optimization overfits the training data. Thus, the paper’s claim of lower final test MSE is not universal across every synthetic configuration and epoch budget. The slow-EMA finalizer is a partial response, but selecting the best test-oriented finalization still requires validation data.

The optimizer comparison further clarifies why EMA is effective. At small batch sizes, EMA, SGD, Adam, and SparseAdam have similar performance after tuning. At large batch sizes, the gradient-based methods degrade more severely, whereas EMA remains stable. The authors attribute this to the fact that an EMA centroid is a weighted mean and therefore remains inside the convex hull of its assigned points, while an unconstrained SGD step can move outside that region. This explanation is plausible and consistent with the observed instability, although the paper presents it as an empirical hypothesis rather than a formal convergence theorem.

Limitations and open questions

The paper’s strongest limitations concern scope, theoretical guarantees, and benchmark dependence. E-means is evaluated primarily on high-dimensional embedding distributions with relatively large n/kn/k ratios and cluster counts selected using square-root heuristics or related regimes. The authors explicitly state that the scaling laws are not optimal for very low-dimensional or tiny datasets. More fundamentally, the laws do not include dimension dd because the fitted dimensional exponent was unstable; the relevant quantity may instead be local intrinsic dimensionality, which is generally unknown.

The method is not accompanied by a new convergence theorem for the nonstationary EMA process with cosine scheduling and dead-cluster revival. Classical stochastic approximation results for mini-batch kk-means do not directly establish convergence of this complete recipe, particularly when clusters are periodically split and assignments may be approximate. The empirical results are strong, but the relationship between the scaling laws, the local geometry of the data, and the resulting stationary points remains unresolved.

The comparisons also require careful interpretation. E-means is evaluated with automatically selected parameters, but several mini-batch baselines are validation-tuned and the implementation-level comparisons involve different kernels, precisions, and hardware paths. The main reference is Lloyd after 25 iterations, which is a practical Faiss default rather than a dataset-independent optimum. E-means can outperform this reference while still optimizing a different train-test trade-off, especially when slow EMA or approximate assignment is used.

Finally, the DINO10B results depend on a highly controlled dataset: deduplicated, shuffled, quantized patch embeddings without temporal drift, filtering, or updates. This makes the benchmark reproducible and isolates clustering and vector-search behavior, but it leaves open how e-means behaves under streaming distributions, concept drift, highly nonuniform arrival rates, constrained memory updates, or application-specific cluster semantics. The specific open technical question is whether the scaling laws and dead-cluster dynamics remain reliable when the data distribution changes during training rather than remaining fixed.

Conclusion

“e-means: outperforming k-means (in one-tenth the epochs)” presents an EMA-based mini-batch optimizer that substantially improves the speed-quality trade-off of large-scale kk-means (2611.09501). Its main contribution is not EMA alone, but the integration of cosine scheduling, cluster revival, finalization strategies, hardware-efficient assignment, and empirically fitted scaling laws that remove most manual tuning.

Across embedding datasets, e-means typically reaches the test distortion of 25-iteration Lloyd in $1.4$ to $2.6$ epochs and yields 9.5×9.5\times to 45.5×45.5\times wall-clock speedups over Flash-KMeans, while often achieving lower final distortion than both random-initialized and greedy-k-means++-initialized Lloyd. At the ten-billion-vector scale, IVF assignment extends the method to a regime where exact assignment is impractical, reducing the reported training cost to 22.8 GPU-hours for the full DINO10B experiment. The empirical evidence supports e-means as a strong systems-oriented alternative to conventional Lloyd optimization for high-dimensional, static, large-scale clustering, while its theoretical convergence properties and behavior outside the evaluated embedding regime remain open.

Whiteboard

Explain it Like I'm 14

1. What is this paper about?

This paper introduces a new version of the kk-means clustering algorithm, called e-means.

Clustering means putting similar things into groups. For example, a music app might group songs with similar sounds, or a photo app might group images with similar visual features.

The usual kk-means algorithm can work well, but it may be slow when there are millions or billions of data points. The authors want to make clustering:

  • much faster,
  • just as accurate or more accurate,
  • easier to use without lots of trial and error.

Their main claim is that e-means can reach better results in only about one-tenth of the training time needed by common versions of kk-means.

2. What questions are the researchers asking?

The paper mainly investigates these questions:

  1. Can kk-means be made faster without losing accuracy?
  2. Can a faster method find better groups than the standard algorithm?
  3. Can the method automatically choose its settings, such as the batch size, without users testing many different options?
  4. Does the method still work on extremely large datasets, including billions of data points?

The authors compare e-means with well-known methods such as:

  • Lloyd’s kk-means, the traditional full-dataset method,
  • mini-batch kk-means, which uses smaller pieces of data,
  • kk-means++, which tries to choose better starting points,
  • fast computer implementations designed for CPUs and GPUs.

3. How does the method work?

What normal kk-means does

Suppose we have many points representing things such as images or pieces of text. Each point is described by numbers. These numbers are called a vector.

The standard kk-means algorithm chooses kk group centers, called centroids. It then repeats two steps:

  1. Give each data point to the closest centroid.
  2. Move each centroid to the average position of the points assigned to it.

You can imagine placing several flags on a map. Each town joins the closest flag, and then each flag moves to the middle of its towns. This repeats until the flags stop moving much.

The problem is that standard kk-means usually examines the entire dataset again and again. This can be very expensive for huge datasets.

Mini-batches

Instead of looking at every point at once, e-means looks at a smaller group of points called a mini-batch.

This is like estimating the average opinion of an entire school by asking a smaller group of students. It is faster, but if the updates are handled badly, the estimates can become noisy or inaccurate.

Exponential moving averages

E-means uses an exponential moving average, or EMA, to update each centroid.

An EMA gives more weight to recent information while still remembering older information. For example, when tracking the average temperature, today’s temperature might matter more than the temperature from several weeks ago.

For e-means, each centroid is updated gradually using the points in the current mini-batch. The researchers also make the updates:

  • larger at the beginning, so the centroids move quickly toward useful locations;
  • smaller later, so the centroids become stable.

This is similar to learning to ride a bicycle: at first, you make large corrections, but once you are balanced, you make smaller corrections.

Fixing unused clusters

Sometimes a centroid receives no points. It then becomes a dead cluster and stops being useful.

E-means regularly checks for these dead clusters. When it finds one, it creates a new centroid by splitting a useful existing cluster. This gives the unused cluster another chance to become helpful.

Automatically choosing settings

Algorithms often have settings called hyperparameters. For e-means, important examples include:

  • the mini-batch size,
  • how quickly old information is forgotten,
  • how many passes are made through the data.

The authors run many experiments and find scaling laws. These are formulas that predict good settings based on the size of the dataset and the number of clusters.

This means users generally do not need to test many settings manually.

Measuring quality

The researchers mainly use mean squared error, or MSE. In simple terms, this measures how far each data point is from the center of its assigned group.

A smaller MSE means that points are, on average, closer to their group centers. Therefore, lower MSE usually means better clustering.

They also test the algorithms on separate data that was not used during training. This checks whether the clusters work well for new data, not just the data used to create them.

4. What did the researchers find?

The experiments used many datasets, including:

  • image features,
  • text features,
  • search and recommendation data,
  • datasets ranging from about one million to ten billion vectors.

The main findings were as follows.

E-means was much faster

E-means often reached the quality of standard kk-means after only 1.4 to 2.6 passes through the data.

The comparison methods were allowed around 25 passes. This means e-means often needed far less work.

Compared with fast existing GPU implementations, e-means achieved speedups of approximately:

  • 10 times in some experiments,
  • up to about 45 times in the largest speed comparisons.

E-means usually produced better clusters

E-means did not only reach similar quality faster. It often reached a lower final error than standard Lloyd kk-means, including versions using kk-means++ starting points.

In every main dataset comparison described in the paper, e-means eventually produced better results than the standard approaches.

The method worked without manual tuning

The scaling laws were learned using one dataset and then tested on other datasets. They generally worked well on these new problems.

This is important because a method that is fast only after careful testing may be difficult for other researchers and companies to use. E-means aims to provide good settings automatically.

It worked at enormous scale

The authors tested e-means on a dataset containing 10 billion image embeddings and used it to create 16 million clusters.

At this size, comparing every data point with every possible cluster would be extremely expensive. The researchers therefore also used an approximate search method called IVF.

IVF divides centroids into smaller groups, or buckets. Instead of checking every centroid, each data point checks only the most promising buckets. This saves a large amount of computation.

5. Why are these results important?

Clustering is used in many technologies, including:

  • image and video search,
  • organizing large collections of documents,
  • recommendation systems,
  • data compression,
  • computer vision,
  • artificial intelligence systems,
  • search indexes.

Modern AI systems often create huge numbers of vectors to represent images, text, or other information. Grouping these vectors can help computers search and store information more efficiently.

If clustering can be done 10 to 45 times faster, then researchers and companies could:

  • process much larger datasets,
  • reduce the cost of using GPUs,
  • build search systems more quickly,
  • update clusters more often,
  • make large-scale AI applications more practical.

Conclusion

The paper presents e-means, a faster and more carefully designed version of mini-batch kk-means. It updates group centers using recent data, gradually reduces the size of its updates, revives unused clusters, and automatically chooses important settings using formulas learned from experiments.

The results suggest that e-means can produce clusters that are at least as good as those from standard kk-means—and often better—while using far less time and computing power.

In simple terms, the paper shows that computers may be able to organize enormous collections of data faster, more accurately, and with less manual setup. This could be especially useful as datasets continue to grow to billions or even trillions of data points.

Practical Applications

Immediate Applications

The paper’s results make e-means directly applicable wherever large-scale vector quantization, clustering, indexing, or compression is currently performed with Lloyd-style k-means.

  • Large-scale vector clustering for search and recommendation systems (information retrieval, recommender systems, enterprise search)
    • Potential workflow: embed data → train centroids with e-means → assign vectors to centroid lists → query only nearby lists.
    • Expected benefit: the reported 9.5–45.5× GPU wall-clock speedups can reduce index-building time and make more frequent re-indexing practical.
    • Dependencies: embeddings should be reasonably compatible with squared Euclidean distance; sufficient GPU memory and an efficient assignment kernel are needed. Quality should be validated with recall or downstream retrieval metrics, not MSE alone.
  • Construction of massive IVF indexes (search infrastructure, vector databases, cloud platforms)
    • Potential products: faster offline index builders, automated centroid retraining services, and low-cost vector-search indexing pipelines.
    • Dependencies: IVF introduces approximate assignment and may reduce recall or alter convergence; the number of probed buckets must be tuned for the target latency–recall tradeoff.
  • Embedding compression and quantization (machine learning infrastructure, storage, edge AI)
    • Potential workflow: train e-means codebooks → map each vector to a centroid ID → store IDs, residuals, or quantized centroids.
    • Dependencies: compression quality depends on the number of clusters, embedding dimensionality, and whether residual quantization is added. The paper evaluates MSE, so downstream task degradation must be measured separately.
  • Compression of neural-network intermediate representations (deep-learning systems, LLM serving)
    • Potential tools: offline codebook training, cluster-based KV-cache storage, centroid-based attention pruning, and memory-aware inference runtimes.
    • Dependencies: the paper does not directly evaluate language-model perplexity, generation quality, or latency. Additional experiments are required to establish acceptable distortion and to handle sequentially evolving distributions.
  • Faster vector-quantized model training (generative modeling, audio, vision)
    • Potential benefit: more active codebooks, fewer unused tokens, and faster codebook adaptation during training.
    • Dependencies: e-means is designed for a fixed dataset, whereas many VQ models learn under a moving representation distribution. The update rule therefore needs validation in end-to-end backpropagation settings.
  • Data curation and deduplication at embedding scale (content platforms, dataset management, AI governance)
    • Potential workflow: embed records → cluster with e-means → inspect cluster sizes and representatives → select balanced or diverse subsets.
    • Dependencies: cluster interpretability is not guaranteed, and squared-distance clusters may not correspond to semantic categories. Human review or task-specific evaluation remains necessary.
  • Image segmentation and visual organization (computer vision, digital asset management)
    • Dependencies: results depend heavily on the upstream feature extractor; clustering raw pixels or low-dimensional features may not produce useful semantic groups.
  • Academic and industrial benchmarking of scalable clustering (research, HPC, software engineering)
    • Dependencies: reported performance is hardware- and implementation-dependent, particularly on H100 GPUs, BF16/FP8/INT8 kernels, and highly parallel assignment operations. Independent reproduction on other accelerators is needed.
  • Automatic hyperparameter selection for production clustering jobs (MLOps, data engineering)
    • Dependencies: the laws were fitted primarily on high-dimensional embedding datasets and are less reliable for tiny, low-dimensional, or unusual datasets. A small validation run should be retained as a safeguard.
  • Resource and energy savings in data centers (cloud computing, sustainability)
    • Dependencies: the practical environmental benefit depends on whether faster clustering leads to reduced total workload or simply enables more frequent retraining. Full system-level energy measurements are not provided in the paper.

Long-Term Applications

The following uses are plausible extensions but require further research, broader validation, or integration with downstream systems.

  • Real-time or continuously updated clustering under distribution shift (streaming analytics, fraud detection, IoT, monitoring)
    • Potential products: continuously refreshed customer segments, online anomaly buckets, adaptive IoT state representations, and evolving document indexes.
    • Dependencies: the paper targets a fixed dataset, so the decay schedule, revival policy, and finalization strategy must be redesigned for concept drift. Stability–adaptation tradeoffs and deletion policies also need to be studied.
  • Healthcare cohort discovery and clinical representation clustering (healthcare, biomedical research)
    • Dependencies: clinical clusters require validation for stability, bias, interpretability, and clinical usefulness. Privacy-preserving computation, regulatory compliance, and protection against demographic or institutional confounding are essential. The paper provides no medical validation.
  • Financial segmentation and anomaly screening (finance, insurance, compliance)
    • Dependencies: cluster assignments should not be treated as automated decisions without interpretability and fairness analysis. Nonstationary financial distributions may require adaptive rather than fixed-data training.
  • Robotics and embodied AI memory compression (robotics, autonomous vehicles)
    • Potential workflow: encode observations → cluster them into prototypes → retrieve nearby prototypes for planning, localization, or policy conditioning.
    • Dependencies: robotics often requires metric properties beyond MSE, including temporal consistency, geometric validity, and safety guarantees. Approximate assignments could be problematic in safety-critical loops.
  • Energy-system and industrial monitoring applications (energy, manufacturing, predictive maintenance)
    • Dependencies: sensor streams are often low-dimensional, noisy, and nonstationary—the settings where the paper’s scaling laws are explicitly less established. Domain-specific distance metrics and drift-aware updates may be required.
  • Large-scale semantic tokenizers and retrieval-augmented generation systems (LLMs, multimodal AI)
    • Dependencies: semantic usefulness cannot be inferred from Euclidean MSE alone. Research must evaluate perplexity, factuality, recall, robustness, and sensitivity to rare concepts.
  • Distributed and heterogeneous accelerator implementations (systems research, cloud infrastructure)
    • Potential tools: a distributed e-means service with automatic choice between exact and IVF assignment based on dataset size and cluster count.
    • Dependencies: synchronization of centroid statistics, load imbalance caused by uneven cluster populations, and communication costs may reduce the reported single-node speedups.
  • Adaptive, data-aware scaling laws (automated machine learning, optimization research)
    • Dependencies: the current laws omit dimensionality because its fitted exponent was unstable and were trained mainly on high-dimensional datasets. Robust out-of-distribution calibration is required.
  • Hybrid clustering pipelines combining e-means, coresets, and pruning (large-scale analytics, scientific computing)
    • Dependencies: interactions between approximation errors may compound. End-to-end evaluations should report not only MSE and GPU time but also retrieval recall, clustering stability, memory use, and total pipeline cost.
  • Representative sampling for education, policy, and public-sector datasets (education, government, social science)
    • Dependencies: automated grouping can encode social bias, obscure minority populations, or expose sensitive information. Governance frameworks, subgroup coverage metrics, and human oversight are required before operational deployment.

Glossary

  • Ablation: An experiment that removes or changes one component of a method to measure its contribution. “Table~\ref{tab:recipe-ablation} ablates every component of the recipe”
  • Approximate nearest-neighbor search (ANN): A search technique that finds near-neighbors efficiently without exhaustively checking every candidate. “which can be solved efficiently with approximate nearest-neighbor search”
  • Assignment: The process of associating each data point with its nearest cluster centroid. “assigns each point to its nearest centroid”
  • Backpropagation: A method for computing gradients through a neural network to update its parameters. “Some autoencoders alternatively use backpropagation on the centroids”
  • Batch size: The number of data points processed in one mini-batch update. “BB the number of points in a training batch”
  • BF16: A 16-bit floating-point format commonly used for efficient deep-learning computation. “we use BF16, FP8, and INT8 for assignment”
  • Centroid: A representative point, usually the mean of the data points assigned to a cluster. “The centroids themselves are never stored”
  • Clustering: The division of data points into groups according to similarity. “This problem has applications in clustering”
  • Codebook: A collection of representative vectors used to encode or quantize data. “codebook learning inside VQ-VAEs being an example”
  • Concept drift: A change over time in the statistical distribution of incoming data. “where the incoming data may undergo concept drift”
  • Convergence: The process by which an iterative optimization algorithm approaches a stable solution. “The optimization is guaranteed to converge to a local minimum”
  • Cosine schedule: A schedule that varies a parameter according to a cosine-shaped function over training. “We anneal α\alpha on a cosine schedule”
  • Dead cluster: A cluster that no longer receives assigned points and is therefore unused. “a cluster can stop receiving points and remain unused, turning into a ``dead centroid''”
  • Deduplication: The removal of duplicate data points or records. “with deduplication to avoid contamination”
  • Decay rate: A parameter controlling how strongly previous values are retained in an exponential moving average. “The decay rate law.”
  • Distance pruning: The elimination of distance calculations that cannot affect the final assignment. “distance-pruning methods, which reduce computation by skipping unnecessary distance calculations”
  • Embedding: A numerical vector representation of an object, such as an image or text document. “a dataset of 10 billion DINO embeddings”
  • Epoch: One complete pass through the training dataset. “one epoch being a single pass over all nn training points in random order”
  • Exponential moving average (EMA): A weighted running average that gives greater or controlled weight to recent observations. “Our approach, e-means, applies a specialized optimization procedure based on exponential moving average (EMA) updates”
  • FLOPs: Floating-point operations, used as a measure of computational work. “The FLOPs in e-means are comparable to Lloyd for each epoch”
  • FP8: An 8-bit floating-point numerical format used for compact and efficient computation. “we use BF16, FP8, and INT8 for assignment”
  • Held-out set: Data excluded from training and used to evaluate generalization. “For each dataset, we report the MSE on a held-out set.”
  • Hyperparameter: A configuration value selected outside the model’s ordinary parameter updates. “e-means requires as little hyperparameter tuning as Lloyd”
  • Hyperparameter sweep: A systematic evaluation of multiple hyperparameter settings. “requiring unlike them no hyperparameter sweep”
  • Intrinsic dimensionality: The effective number of dimensions needed to describe the structure of data, which may be lower than its ambient dimension. “we don't know the local intrinsic dimensionality of the data”
  • IVF index: An inverted-file index that partitions vectors into buckets to accelerate nearest-neighbor search. “we adopt an IVF index”
  • K-means++: A centroid-initialization procedure that selects centers with probabilities favoring points far from existing centers. “While k-means++ and scalable k-means++”
  • Local minimum: A solution that cannot be improved by small changes, although better solutions may exist elsewhere. “The optimization is guaranteed to converge to a local minimum”
  • Mini-batch: A small subset of a dataset used for one optimization update. “updates the centroids from mini-batches rather than from the whole dataset”
  • Mean squared error (MSE): The average of the squared distances between data points and their assigned centroids. “The Mean Squared Error (MSE)”
  • Meta-centroid: A higher-level centroid used to organize or partition a collection of ordinary centroids. “the centroids are partitioned into buckets defined by meta-centroids”
  • Nearest-neighbor search: The task of finding the closest vector or vectors to a query under a distance measure. “Assigning training vectors to their closest centroids is a nearest-neighbor search problem”
  • Out-of-distribution (OOD): Referring to evaluation data or configurations drawn from a distribution different from that used for fitting. “OOD designates evaluation on randomly sampled configurations on other datasets”
  • Quantization: The representation of continuous values using a limited set of discrete representative values. “with applications in data analysis, retrieval, quantization and data curation”
  • Regret: The normalized performance gap between a method selected by a rule and the best available hyperparameter choice. “Regret is the normalized MSE difference between following a law and the best hyper-parameter”
  • Scaling law: An empirically fitted relationship describing how an algorithmic quantity changes with problem characteristics. “We also establish scaling laws on how decay rate and batch size impact final performance.”
  • Stochastic gradient descent: An optimization method that updates parameters using randomly selected subsets of data. “Both are stochastic gradient descent with a decreasing step”
  • Test MSE: Mean squared error measured on data not used for fitting or training. “We report primarily test MSE”
  • Throughput: The amount of data or computation processed per unit of time. “The batch size trades off quality against throughput.”
  • Train MSE: Mean squared error measured on the data used for training. “The last-epoch mean improves the train MSE”
  • Validation MSE: Mean squared error used to select or fit methods and hyperparameters before final testing. “We fit our scaling laws on the validation MSE”
  • Vector quantization: The encoding of vectors by replacing them with nearby representatives from a finite codebook. “Many vector-quantized autoencoders maintain their centroid”
  • Wall-clock time: The actual elapsed time required to perform a computation. “The wall-clock speedup at that number of epochs.”

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 31 tweets with 12218 likes about this paper.

HackerNews