A practically important, largely reproducible speedup over Lloyd@25: our CPU rerun of the released code matches the 2-epoch DEEP* 1M result. But the "no hyperparameter is tuned" claim fails at the 1B/10B scale (B set by hand, 32x below the law). Several tables disagree with each other or with the code, and the comparisons are against 25 Lloyd iterations rather than convergence.
Soundness
2/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 6 confirmed✕ 11 discrepancy
Summary
The paper proposes e-means, a mini-batch k-means variant. Each centroid is kept as an exponential moving average of a running count Nj and sum Sj, with (Eq. 2-4). It adds a cosine step schedule with a floor of (Eq. 5), periodic revival of dead clusters by splitting a donor centroid, and a final "last-epoch-mean" step. The batch size and initial step come from two power laws in (Eq. 6-7, Table 2). These were fitted by log-space OLS on about 75k runs on DEEP only, so the method needs no hyperparameter tuning.
Strengths
Core speed/quality result reproduces from the released code
We ran the released contrib/e_means NumpyEmeans on CPU with the shipped laws and no tuning, on the paper's DEEP* 1M split (k=16384, T=2.0, B=32768, ). It reached a test MSE of 0.388358 / 0.388477 / 0.389107 on seeds 10-12. This is below the paper's own per-seed Flash@25 targets in 3/3 seeds (median 0.200% lower) and below our own faiss Lloyd@25 (0.390076). At it is not yet below, so "about 2 epochs" is accurate for this cell. The wall-clock ratio on 2 CPU threads was 12.7-13.3, against 12.8 reported on GPU (check 01).
Weaknesses
"No hyperparameter is tuned" does not hold at 1B/10B scale
major · experiments.tex:17; Conclusion; appendix.tex:1371,1424; Eq. 7
experiments.tex:17 states that no hyperparameter is tuned and that B and γ follow the laws. The Conclusion says the laws transfer to settings "several orders of magnitude" beyond the fit range. At n=1010, , , however, Eq. 7 (with the 1/8 quality factor) prescribes (raw ). The run used , 32 smaller (appendix.tex:1371; README command ), so falls from 0.122 to 0.0054. At 1B the law gives but was used. The README says to use the largest batch that fits on the GPU, which is a hardware-driven override (check 02). The laws were fitted on (the batch-law grid stops at , check 11). So the extrapolation claim is untested at exactly the scales where it is made. state the override and its rationale, and either run the law-prescribed (or an emulation of it) at 1B or drop the extrapolation claim for the batch law.
Questions for the authors
What batch size and α0 would the laws give on your 1B/10B hardware if memory were not a constraint, and how does e-means behave at the law-prescribed B=222 at 1B (e.g. with gradient accumulation)? If quality degrades, the batch law does not extrapolate as claimed.
How many epochs does e-means need to reach the converged Lloyd test and train MSE (not Lloyd@25) on the tab:speed settings? Does the order-of-magnitude speedup survive?
Which run produced the 22.8 GPU-h figure in Table 3, and what is the run-to-run variance of GPU-hours and test MSE at 10B and 1B?
Verification
We ran 17 checks: 6 confirmed, 11 discrepancies, 0 inconclusive. The central claim was rerun with the released library on the paper's DEEP* 1M data on CPU, and it holds: about 2 epochs beat the paper's own per-seed Flash@25 targets on held-out MSE in 3/3 seeds, though not on training MSE (check 01). The summary ranges of tab:speed, the holdout wins, the VIBE speedups, the precision bound and the EMA/SGD relation were confirmed by recomputation. The discrepancies fall into three groups: (a) the batch law is not followed at 1B/10B scale (check 02); (b) inconsistencies among tables and between the paper and the code: Table 3 vs tab:mse-10b, three different Flash@25 baselines, revival ablations, the hand-replaced schedule row, and library defaults (checks 05, 07, 09, 10, 16); (c) overstated wording (finalisation guarantee, cosine significance) and small arithmetic slips (checks 06, 08, 11, 13, 14). No discrepancy overturns the core result that e-means beats Lloyd@25 on held-out MSE in roughly 2 epochs. Several weaken the hyperparameter-free and 10B-scale claims. GPU timings, the 1B and 10B runs and the DINO10B data could not be rerun.
✕Discrepancymethod.tex, Finalization strategy, Optimizing for train: last-epoch-mean (~line 128); Table 1 caption (train error measured on the codes of the final epoch)
✕Discrepancytab:sched-t3 (nocos_schedule_tables.tex) and text appendix.tex:784; tab:init_scale (init_scale_table.tex) and appendix.tex:733; experiments.tex:344; method.tex:116
✓Confirmedtab:precision-mse (precision_mse_table.tex) and appendix.tex:1253-1259; cross-checked against tab:holdout-distortion (experiments.tex:452-478)
Cited as 'arXiv preprint arXiv:1702.08248, 2018' with the arXiv DOI, but the work is published at KDD 2018 (Crossref: 'Scalable k-Means Clustering via Lightweight Coresets', DOI 10.1145/3219819.3219973). It should cite the peer-reviewed version.
douze2024faiss
Year is inconsistent. The entry says '12:346--361, 01 2024' but carries DOI 10.1109/TBDATA.2025.3618474, and Crossref dates the IEEE Transactions on Big Data article (vol. 12) to 2026. The arXiv preprint (2401.08281) is from 2024.
wang2020clusterformer
Metadata from two versions is mixed. The title 'Cluster-Former: Clustering-based sparse transformer for question answering' is the ACL Findings 2021 version (DOI 10.18653/v1/2021.findings-acl.346), but the entry cites arXiv:2009.06097 (2020), whose arXiv title is '...for Long-Range Dependency Encoding'. It is the same work, so this is not a support problem.
Suggestions
Replace "converged Lloyd" by "Lloyd@25" in the Abstract and Conclusion, and add a column to tab:speed with epochs-to-target for training MSE and for converged Lloyd.
Disclose the B=221 override at 1B/10B in the main text, and add at least one run that follows the law-prescribed batch at 1B, or soften the extrapolation claim.
Use a single Flash@25 baseline run per configuration across tab:speed, tab:holdout-distortion and tab:precision-mse, and report seed dispersion (IQR) next to every median.
Rerun the ablations (Table 1, tab:revival-ablation, tab:sched-t3) under the final recipe and the same seeds, and report paired-seed confidence intervals instead of calling 0.03% effects significant.
Add an appendix table listing every difference between the paper description and the released code (N init, , batch cap, law selection rule, ceil vs floor, the zero-ending cosine used for the fit), or align the defaults.
Ethics and integrity
No ethical concerns about the data: DINO10B is released under CC-BY 4.0, and the other datasets are public benchmarks. No instructions aimed at reviewers or AI tools were found in the paper, the LaTeX source or the code. Integrity note: LaTeX comments (not rendered in the PDF) record that one table row was "replaced by hand" from a run under a different recipe (tab:sched-t3) and that ablation rows come from different campaigns. We see no sign of fabrication, but the mixed provenance should be disclosed in the paper.
Scope of this review
No GPU was available. We reran the released NumPy implementation on CPU (fp32, 2 threads) for one tab:speed cell (DEEP* 1M, k=16384) and could not reproduce the GPU wall-clock timings, the BF16/FP8/INT8 kernels, the 1B runs or the 10B DINO10B run (about 10 TB). The scaling-law fits (about 75k runs) were not refitted. We checked them through coefficient consistency, the fit-design arithmetic and their predictions at the reported settings. All other table checks are recomputations from the printed values and the released per-seed targets.
The headline empirical claim (Abstract, tab:speed) is that e-means reaches the held-out MSE of 25 Lloyd iterations (Flash-KMeans/Faiss@25) in 1.4-2.6 epochs, for 10-45× GPU wall-clock speedups on four embedding datasets from 1M to 1B vectors. With 5 epochs it also beats k-means++-initialised Lloyd@25 (tab:holdout-distortion). Using sharded centroids, SSD streaming and IVF approximate assignment, the method clusters a new 10-billion-vector DINO dataset (DINO10B) into 224 clusters in 2.5 epochs. That run takes 779 GPU-h exact or 22.8 GPU-h with IVF, against 6,784 GPU-h for Lloyd@25 (Table 3, tab:mse-10b). The appendix adds ablations, low-precision (FP8/INT8) assignment kernels, a VIBE benchmark and the DINO10B dataset.
α0=0.2018
T=1.6
×
×
Simple, well-specified algorithm with a usable library
Algorithm 1 is short and close to the released code. The schedule _scheduled_alpha equals Eq. 5 to 8e-17, and τ=0.1, revival every 5 batches, donor sampling and count halving all match (check 09). Count/sum EMA plus split-based revival is easy to drop into existing pipelines. Per-seed Flash@25 targets and benchmark scripts are released (benchs/e_means/paper_bench.py).
Broad, multi-scale evaluation with strong pinned baselines
The paper covers four main datasets from 1M to 1B, eleven VIBE datasets, synthetic data and a 10B run. The baselines are Flash-KMeans 0.3.1, Faiss CPU/GPU, cuML, SuperKMeans and tuned mini-batch methods, described in app:baselines. The summary tables are arithmetically sound: the 1.4-2.6 epoch and 9.5-45.5× ranges match tab:speed (check 04). The holdout wins are 8/8 against random-init Flash@25 at 3 epochs and 8/8 against k-means++ Flash@25 at 5 epochs, with margins 0.059-0.334% (claimed 0.06-0.33%, check 03). The VIBE GPU/CPU speedups recompute in 21/22 cells (check 12).
Scaling-law methodology is transparent and coefficients are consistent
Sec. subsec:laws, Eq. 6-7, Table 2; appendix.tex:84-178
The fitting protocol, the knee definition (+0.2% validation MSE), OOD and leave-one-scale-out errors (Table 2) and term ablations (tab:abl-terms) are reported. The shipped coefficients round exactly to Table 2. The quality law is exactly 1/8 of the throughput law. The demo α0=0.0705 at DEEP* 10M is reproduced (0.07051). The step-law OOD/LOSO error of 0.07% matches tab:abl-terms (checks 02, 11).
Systems contribution at 10B scale and an open dataset
appendix.tex:1343-1690; Table 3; sec:dino10b
The paper describes centroid sharding, SSD streaming with prefetch, and IVF assignment with sharded indices, all needed to run k-means with 224 centroids on 10.24 TB of data. The storage and throughput arithmetic checks out: 64 GiB of Sj, 10.24 TB of data, 1.09 h per scan at 2.6 GB/s (check 13). The vs-Lloyd percentages in tab:mse-10b and tab:mse-1b agree with their entries in all 26 cells (check 05). DINO10B is released under CC-BY 4.0 and is a useful benchmark.
Train and held-out MSE are both reported, and the train/test tension between finalisation choices is discussed (Sec. Finalization, app:slow_ema). The limitations paragraph acknowledges weaker behaviour on low-dimensional data, and the code disables revival at d≤2. Low-precision assignment stays within the stated 0.13% of BF16: the maximum is 0.127% (check 10).
k=224
T=2.5
B=226
5.06×107
B=221
×
--batch-size $((1<<21))
α0
222
221
n≤108
107
Fix:
B
Reference is Lloyd@25, but the conclusion claims converged-Lloyd quality
major · Conclusion (main_meta.tex:237); Abstract; tab:speed; app:trainmse
Every speedup (Abstract, tab:speed, tab:vibe, Table 3) is measured against a fixed 25-iteration Lloyd budget. Only Fig. convergence-histograms (experiments.tex:541) compares with converged Lloyd. Yet the Conclusion says e-means "reaches converged Lloyd clustering quality in 1 to 3 epochs" and reaches "the converged loss ... about an order of magnitude faster" (check 04). Also, on training MSE our rerun at T=2.0 (0.362934) is still above Lloyd@25 (0.361931), and e-means beats it only at T=3.0 (check 01). The headline therefore depends on the held-out metric. Fix: word the Abstract and Conclusion as "Lloyd@25" and report the train-MSE epochs-to-target next to tab:speed.
10B headline numbers are single-seed, non-monotone and partly inconsistent
major · Table 3 / tab:ivf-gpu-hours; tab:mse-10b; tab:mse-1b; appendix.tex:1579-1590
Table 3 reports 22.8 GPU-h for 10B IVF, but no run in tab:mse-10b has this value. The fastest IVF run below Lloyd is IVF4096/L=4 at 3 epochs with 23.2 GPU-h, giving 779/23.2 = 33.6× (~34× still holds). The caption says "fastest of 3 IVF settings", but tab:mse-10b lists 2. "1/10th the original time" (appendix.tex:1584) is 6784/779 = 8.7× in GPU-h. The 2.5-epoch exact run beats Lloyd@25 by only 0.015% (12.985 vs 12.987) with one seed. Results are non-monotone in epochs: test MSE is 12.965 at 3 epochs and 12.980 at 3.5, and GPU-h for 2/2.5/3/3.5/4 epochs is 885/779/961/794/1,286 (check 05). So timing variance is large and unreported, and a 0.015% margin is within noise. The headline "2.5 epochs" is plausible but not established. Fix: report the run that produced 22.8 GPU-h, add repeated timings or at least a second seed at 1B, and describe the 10B result as "about 2.5-3 epochs".
Released code deviates from the paper recipe in user-visible ways
major · contrib/e_means/base.py:23-64, 89-147; method.tex:66-117; Algorithm 1; appendix.tex:862
(i) The library default batch_law="auto" chooses the quality vs throughput law by dimension (d≤16), whereas the paper chooses it by n>2M. A user running the defaults on DEEP 10M/100M gets an 8× larger batch than the paper recipe. (ii) The throughput cap is round_pow2(n/2) in the code and n in the paper. (iii) Initial Nj is 2−16, not 10−10. (iv) The split δ is 10−4, not the BF16 epsilon (2−7). With 10−4, 96.3% of coordinates and 2.67% of rows collapse to identical children under BF16, and an undocumented one-ULP nudge repairs them. (v) M uses ceil, not floor, of n/B. (vi) A base.py comment says the shipped coefficients differ from Table 2, but they round to it exactly (checks 02, 09, 11). A LaTeX comment also notes that α0 was fitted with a zero-ending cosine but is deployed with the ε=0.1 floor. Fix: align the code defaults with the paper, or document every difference in an appendix table.
Three different Flash@25 baselines are presented as one reference
major · tab:holdout-distortion; tab:precision-mse footnote; benchs/e_means/paper_targets.json
The Flash@25 values in tab:holdout-distortion, tab:precision-mse and the released paper_targets.json (used for tab:speed) disagree beyond rounding. Only 1/6 holdout cells and 1/6 precision cells are reproduced by the target medians or means. Examples: SSN++ 1M is 113555 (targets), 113570 (holdout) and 113527 (precision); SPACEV 1M is 7228.99 vs 7230.4 (checks 10, 16). The gaps are small (up to 0.038%), but the smallest claimed win, 0.059% for DEEP* 1M at 5 epochs vs k-means++, is of the same order as the seed spread of Flash@25 on that cell (0.388605-0.390296, 0.435%). The precision table notes that SSN++ Flash had to be rerun with fp32 norms because fp16 norms saturate, and the holdout table does not say which version it uses. Fix: use one baseline run per cell throughout, state the norm precision, and add dispersion (IQR or CI) to tab:holdout-distortion.
Ablation claims rest on unequal settings and lack statistics
minor · Table 1 / tab:recipe-ablation; tab:revival-ablation; tab:sched-t3; tab:init_scale; experiments.tex:344
For the same DEEP* 1M revival ablation, Table 1 reports +2.24% (off) and +1.15% (resample) on test. tab:revival-ablation reports +1.77% and +0.93%, with a different "on" value (0.38762 vs 0.3880) and unstated T/seeds (check 07). A LaTeX comment says the DEEP* 1M row of tab:sched-t3 was "replaced by hand" with a run from a different law pair, so its rows are not comparable. The cosine schedule is called significant, but it improves test MSE in only 5/8 configurations (median +0.027%, sign-test p=0.73), and Table 1 shows test MSE slightly better without it (-0.06%). k-means++ is said not to "meaningfully improve" results (experiments.tex:344), yet its median test gain (0.065%) exceeds the cosine gain. The appendix says k-means++ "generally improves" results (check 08). Fix: run all ablations under one recipe version, report CIs, and make the main-text and appendix wording consistent.
Finalisation "guaranteed to decrease the train MSE" is overstated
minor · method.tex:128 (Finalization strategy)
The guarantee holds only for SSE on the fixed last-epoch codes, where we found it in 240/240 runs. Under fresh nearest-centroid assignment, which is how the centroids are used, train MSE went up after finalisation in 133/240 small-scale runs. With the library recipe it went up in 33/80 runs, by up to +10.7% (check 06). These cases are far from the paper's regime, but the statement is false as written. Fix: say "decreases the quantisation error of the last-epoch assignments".
Small arithmetic and unit slips in the scaling-up appendix
minor · appendix.tex:1343-1404, 1578; tab:k-used
128 GPUs should be 120 (10.24 TB / 80 GiB = 119.2). "At least 7 machines" should be 6 (5.71). "21 scans per epoch" at B=221, P=475 is 10.04, and 21 corresponds to B=220. The 100M row of tab:k-used should read 381, not 382 (checks 13, 14). The 6,784 GPU-h of the Lloyd run is 13.2 h of wall-clock on 64×8 GPUs, not "several days". None of these changes a conclusion.
Reproducibility of the GPU timings depends on unreleased fixes
minor · benchs/e_means/README.md; tab:speed
The benchmark README states that the speed timings include a CuTe argmin decode-cache fix that is not in the repository, and that without it the SSN/DINO 1M speedups are "far lower". The README's research-code column differs from tab:speed in every cell, e.g. DINO 1M 18.2× vs 12.7× and SSN++ 100M 11.6× vs 19.9×. README Fig. 4(b) gives 3 epochs (17.1×) for DEEP* 100M where tab:speed gives 2.0 (27.0×). The DINO 100M cell and all four 1B cells have no reproduction path in paper_bench.py (check 04). Fix: release the kernel fix and the 1B/100M configurations, and state the software stack per table.
minor · Algorithm 1; Eq. 5; app:optimisers (appendix.tex:648); appendix.tex:862-870
Algorithm 1 increments t before computing γ(t), while Eq. 5 and the code use t=0..M−1. The last step is therefore 0.1003α0, not the floor (check 09). The split c⊙(1±δ) leaves zero coordinates identical, which matters for non-negative uint8 DINO features. The stated equivalence EMA = SGD with η=(1−γ)/2 holds only under stationary counts (Nj=nj). Lancucki et al.'s Proposition 1, which the paper cites, assumes constant counts, and the paper omits this condition. The convex-hull property can be broken by the revival split: we saw a coordinate of 1.000017 against a data maximum of 0.999917 (check 15).
Fit-design bookkeeping is irregular
minor · appendix.tex:108-170; experiments.tex:23
62,410 decay-law runs is not divisible by 3, although each experiment is said to run 3 times. The 257 batch-law configurations (a prime) and 1,142 = 2×571 are inconsistent with an "exhaustive Cartesian product" grid (check 11). The design is still large enough, but reproducing the fit requires the exact run list.
Which recipe version (law pair, Nj init, δ, batch cap) produced each of tab:speed, Table 1, tab:sched-t3 and tab:holdout-distortion? Does the current library default (batch_law="auto") reproduce them?
A commented-out line in experiments.tex says the scaling laws were tuned on the validation sets of DEEP, SIFT, AGNews and arXiv, while the text says DEEP only. Which is correct for the published coefficients? If the former, the VIBE and SIFT results are not out-of-distribution.
Why does tab:holdout-distortion use different Flash@25 values from tab:precision-mse and paper_targets.json, and did the holdout SSN++ baseline suffer from the fp16 norm saturation noted in the precision table?
Low-precision assignment (FP8 E4M3, INT8) stays within 0.13% of BF16 MSE and still beats Flash@25.
Max |FP8 or INT8 - BF16| / BF16 = 0.127% (SIFT 1M, T=5, FP8), within the stated 0.13%. Gaps go in both directions. All 48 BF16/FP8/INT8 entries are below Flash@25, with margins from -0.19% to -0.82%. Side findings: the Flash@25 baseline differs between the two tables beyond rounding in 3 of 8 cells. SPACEV 10M is 6376.7 vs 6376.9 (tolerance 0.1). SimSearchNet++ 1M is 113527 vs 113570 and 10M is 109490 vs 109520 (-0.038% / -0.027%). The precision table footnote says its SSN++ Flash was re-run with fp32 norms because fp16 norms saturate. tab:holdout-distortion carries no such note, so it appears to use a different run. e-means is below both versions. The precision table reports means while the holdout table reports medians, so the BF16 entries differ from the holdout e-means columns by up to 0.13%.
Transcribed tab:precision-mse. Computed FP8/INT8 vs BF16 relative gaps for all 32 cells and checked all 48 entries against the Flash@25 column. Compared the Flash@25 column with tab:holdout-distortion using a rounding tolerance of half a printed unit of each table.
The scaling laws are fitted on about 75k runs over an exhaustive grid, each experiment run 3 times, with OOD/LOSO regret of 0.07% (step) and 0.19-0.20% (batch).
Consistent: 62,410 + 12,219 = 74,629 (75k). Both totals lie inside the ranges implied by 3 seeds x the stated ladder lengths (decay 27,408-106,206; batch 10,023-15,420). The batch-law rule gives 13/16/20 rungs for n=1e5/1e6/1e7, matching the stated 13-20. The base.py coefficients round exactly to Table 2 (0.824, -0.46, 0.90, -0.45, -0.11; 0.035, 0.13, 0.88, 0.81), and the quality coefficient is exactly 1/8 (0.035/8 = 0.004375, printed 0.0044). This contradicts the base.py comment that the shipped values differ from Table 2. The step-law OOD/LOSO of 0.07% agrees with tab:abl-terms (0.067/0.068%). Inconsistencies: (1) 62,410 is not divisible by 3 (62,410/3 = 20,803.33), although each experiment is said to be run 3 times; 12,219 = 3 x 4,073 is divisible. (2) The design is called exhaustive on the Cartesian product, but 257 batch-law configurations are prime: they cannot be 24 (n,k) pairs x a shared T set (257/24 = 10.71). 1,142 = 2 x 571 likewise cannot be the 411 (or 334) (n,k,B) cells x a shared T set. The grid is therefore irregular. Minor: experiments.tex:23 gives the fit range as n up to 1e8, but the batch-law grid stops at 1e7.
Arithmetic on the reported counts (sum, divisibility by 3, factorisation). Enumerated the stated grid rules to count (n,k) and (n,k,B) cells. Rounded the base.py coefficients to Table 2 precision. Cross-checked the regret values between Table 2 and tab:abl-terms.
VIBE benchmark: e-means reaches Lloyd@25 about 11x faster than Flash-KMeans on GPU and faster than Faiss on CPU, using K = 16 sqrt(N) rounded to a power of two.
The K rule holds for all 11 datasets (e.g. GooAQ 16*sqrt(1.48e6) = 19465 -> 16384; CC-News 11314 -> 8192). The unrounded K values in the comment fall inside the range implied by the printed N. GPU speedups lie within the rounding range of the time ratio in 11/11 datasets. CPU speedups do so in 10/11; GooAQ prints 9.3x vs 274.0/29.3 = 9.35x, which the source comment explains: speedups are medians of per-seed ratios. Aggregates: GPU median 11.9x (range 8.0-22.8x); CPU median 11.3x (range 9.0-15.0x); 1.6-2.6 epochs. The paper does not state an aggregate CPU speedup. The ~13x CPU figure in the claim list was the planner paraphrase; the table supports about 11x on both. Minor: tab:datasets gives N used = 0.75M for AG-News and 1M for arXiv and ImageNet-CLIP, while tab:vibe says each dataset is at its full row count (0.77M, 1.34M, 1.28M).
Transcribed tab:vibe. Recomputed K from N and checked it against the unrounded values in the source comment. Checked each printed speedup against the ratio of the printed median times, with an interval for rounding of the times. Computed the aggregate medians. Compared N with tab:datasets.
Systems arithmetic for the 10B run: 16M x 1024 fp32 centroids = 64 GiB, 10.24 TB of data, 128 GPUs or at least 7 machines of 1670 GiB to hold it, more than 1 h per epoch at 2.6 GB/s, and the data scanned 21x per epoch with P=475 prefetched batches.
Consistent: S_j = 2^2410244 B = 64.0 GiB; data = 10.24 TB (9.313 TiB); bvecs 10.28 TB (~10.3 TB); fits on one 15 TiB SSD; 10.24e12 B / 2.6 GB/s = 3938 s = 1.09 h (>= 1 h); 64 MiB blocks = 65536 vectors. Not consistent: (1) 128 GPUs: 10.24 TB / 80 GiB = 119.2, so 120 GPUs (already a multiple of 8). 128 arises only if 10.24 TB is read as 10 TiB. (2) At least 7 machines: 9,536.7 GiB / 1670 GiB = 5.71, so 6. 7 arises only if 10.24 TB is read as 10.24 TiB (6.28). (3) 21 scans per epoch: at the stated B=2^21 an epoch is 4,768.4 batches, and 4,768.4/475 = 10.04 scans. 21 matches B=2^20 (20.08, rounded up to 21). The paper itself says B=2^21 here and in the 10B tables. These are minor unit and arithmetic slips; none changes the feasibility argument.
Recomputed every derived quantity from the stated inputs (n=1e10, d=1024 int8, k=2^24, B=2^21, 80 GiB H100, 1670 GiB per machine, P=475, 2.6 GB/s) in both decimal and binary units.
tab:k-used: k is the power of two nearest to n/500 at each scale, with the stated rows per centroid.
17 of 18 cells are correct, and all k values follow the stated rule; the 10B row k = 2^24 matches the scaling-up section. The single error is at 100M rows: n/k = 1e8/262144 = 381.47, which rounds to 381, but the table prints 382. This is a trivial rounding slip.
Recomputed n/500, the nearest power of two (both linear and log-nearest) and n/k for all 6 rows.
The EMA update equals SGD with step eta = (1-gamma)/2, and EMA centroids stay in the convex hull of the data.
The exact relation is c_new = c - eta_j * grad(0.5 * sum ||x-c||^2) with eta_j = (1-gamma)/N_j_new. For the count-normalised per-cluster loss mean ||x-c||^2, this is eta_j = (1-gamma) n_j/(2 N_j_new). It equals (1-gamma)/2 exactly when N_j = n_j (stationary counts); verified numerically (True). Under the usual batch-averaged loss, the matching SGD rate is cluster-dependent ((1-gamma)/2 * B/n_j = 2.0 in the example). The paper calls this a definition and attributes it to Lancucki et al. 2020, so it is valid as an approximate correspondence. Pure EMA iterates are convex combinations of the previous centroid and the batch mean (weights sum to 1 within 2.2e-16). No centroid left the data bounding box in 300 steps, so the hull property holds without revival. Caveats: (1) The hull is that of all points ever assigned plus the init, not of the points currently assigned to the cluster, as the text implies. (2) The revival split (applied every 5 batches) can leave the hull: a donor on the extreme point with coord0 = 0.999917 produces a child with coord0 = 1.000017, beyond the data maximum.
Numerical derivation in float64 numpy. Wrote the exact EMA step on c = S/N as an SGD step and solved for the step size. Tested the conditions under which it equals (1-gamma)/2. Ran 300 EMA steps (k=32, d=8, uniform data) without revival and checked the convex-combination weights and the bounding box. Applied the donor split c*(1 +/- delta) to a centroid on an extreme data point.
The released per-seed targets reproduce the paper Flash@25 baselines.
The stored medians equal the recomputed medians. Only 1 of 6 tab:holdout-distortion Flash@25 cells is reproduced by the target median (SSN++ 10M: 109524.8 vs 1.0952e5). The others: DEEP* 1M 0.389253 vs 0.38926 (|d| 6.5e-6 > 5e-6); SPACEV 1M 7228.99 vs 7230.4; SSN++ 1M 113555 vs 113570; DEEP* 10M 0.342309 vs 0.34224; SPACEV 10M 6377.45 vs 6376.9. Only 1 of 6 tab:precision-mse cells is reproduced by the target mean (SPACEV 1M 7230.54 vs 7230.5). Using the other statistic (mean vs median) does not resolve the remaining cells. The gaps are small (max 0.031%) relative to the per-seed spread (DEEP* 1M 0.388605-0.390296, 0.435%). They show that the three Flash@25 baselines (targets/tab:speed, holdout table, precision table) come from different runs, although the paper presents them as the same Flash@25 reference.
Loaded the JSON with python3 -I and recomputed per-key medians (they equal the stored median_test_mse) and means over the 10 seeds. Compared them with the Flash@25 random-init cells of tab:holdout-distortion (medians) and tab:precision-mse (means). Tolerance: half a unit of the printed last digit.
Bibliography entries are correct and resolvable.
62 entries. No reference is non-existent or fabricated. 25 entries were not matched by title, but on inspection they are books, theses, tech reports, software or datasets that Crossref/arXiv title search does not index, or Crossref false matches. Two of them were confirmed on the arXiv API: bjorck2025scaling = 2409.19913, dasgupta2022convergence = 2202.10640. There are 3 minor metadata errors (see ref_issues.json): bachem2018coresets is cited as an arXiv preprint although it appeared at KDD 2018 (10.1145/3219819.3219973); douze2024faiss has year 2024 vs Crossref 2026 and a 2025 DOI; wang2020clusterformer mixes the ACL Findings 2021 title with the 2020 arXiv id. The load-bearing citation of Lancucki et al. 2020 for eta=(1-gamma)/2 is supported: their Proposition 1 states EMA with constant usage counts N=1 is equivalent to SGD with alpha=(1-gamma)/2. The paper omits that condition (see check 15). Not tool-verified, but well-known published works and not flagged: bachem2016fast, dosovitskiy2021image, ji2025wavtokenizer, zhang2024speechtokenizer.
python3 -I tools/check_refs.py work/references.json -> work/refs_checked.json; work/verify/17_refs.py triages matches against the cited texts, looks up 2 unresolved entries on the arXiv API, and spot-checks Lancucki et al. 2020 (arXiv 2005.08520 PDF) for the EMA=SGD equivalence
e-means reaches the test MSE of Lloyd/Flash k-means at 25 iterations in about 2 epochs (1.4-2.6 across settings), with the scaling-law recipe and no tuning.
At T=2.0 (B=32768, alpha0=0.20183) test MSE is 0.388358 / 0.388477 / 0.389107 for seeds 10/11/12. That is <= the own-seed paper Flash@25 target in 3/3. The median 0.388477 is 0.200% below the paper median 0.389253. It is also <= own faiss Lloyd@25 (0.390076) in 3/3. At T=1.6 it is 0/3 vs the targets (median 0.390317, +0.273%), so about 2 epochs is needed and sufficient at this cell. Caveats: (i) on training MSE (200k subsample) e-means at T=2.0 (median 0.362934) is still above Lloyd@25 (0.361931); it beats Lloyd on train only at T=3.0 (0.360631). The claim holds on held-out MSE, which is the paper metric. (ii) Own Lloyd@25 test MSE is 0.222% above the paper figure3 faiss@25 median 0.389213, a different init RNG. (iii) CPU fp32 vs the paper GPU bf16. (iv) Only one cell of tab:speed is rerun. Wall-clock on 2 CPU threads: e-means T=2.0 87-91 s vs faiss Lloyd@25 1157 s (12.7-13.3x).
Released contrib/e_means NumpyEmeans (CPU fp32, 2 threads) on the paper DEEP* 1M train split / 5000-vector test split (fingerprints match). k=16384, B and alpha0 from the shipped throughput law, no tuning, seeds 10-12. T in {1.6, 2.0} for 3 seeds; T 2.4 and 3.0 for seed 10. Baseline 1: the per-seed Flash@25 targets released in paper_targets.json. Baseline 2: own faiss-CPU Lloyd@25 from the same random init (seed 10). Scripts: 01_rerun_emeans_vs_lloyd.py, then 01b_outcome.py for the decision. Outcome decided by work/verify/01b_outcome.py; log in work/verify/01_rerun_emeans_vs_lloyd.log.
B and alpha0 come from the scaling laws (Eq. 6-7, Table 2) in every experiment: no hyperparameter is tuned for any experiment, and the laws extrapolate to scales orders of magnitude beyond the fit range.
Consistent parts: base.py constants round exactly to Table 2 (0.035/0.13/0.88/0.81; 0.824/-0.46/0.90/-0.45/-0.11), and the quality law is exactly 1/8 of the throughput law. At the main settings, code and paper rule give the same B (32768 / 65536 / 524288 at 1M / 10M / 100M). The demo value alpha0 = 0.0705 at DEEP* 10M is reproduced (0.07051). Discrepancies: (1) At 10B (n=1e10, k=2^24, T=2.5) Eq. 7/8 prescribes B = 2^26 (raw 5.06e7), but the run used B = 2^21 (appendix.tex:1371; README command), 32x smaller, with alpha0 0.0054 instead of 0.122. At 1B (k=2^21, T=3) the law gives 2^22, and 2^21 was used. The README says the batch should be the largest that fits on the GPU. This contradicts the claim at experiments.tex:17. (2) The library default batch_law=auto picks the law by dimension (d <= 16 -> quality), not by n > 2M as the paper states, so a user running the default on DEEP 10M or 100M gets the throughput batch (8x larger) rather than the paper recipe. (3) The throughput cap in code is round_pow2(n/2), not n: for n=10,000, k=16, T=100 the paper rule gives 8192 and the code 4096. (4) The appendix knee example at T=2 (40,464) lies 30% above the fitted law (28,513); this is an illustration of residual scatter, not an error.
Evaluated Eq. 6/7 with Table 2 coefficients and with base.py constants (imported from the released library) at the appendix knee examples, the main 1M/10M/100M settings, and the 1B/10B runs; compared library default law selection and batch cap with the paper rules.
With random init, 3 epochs of e-means beat Flash-KMeans@25 on all 8 configurations; after 5 epochs e-means beats greedy-k-means++ Flash@25 on all 8, by 0.06%-0.33%.
3 ep vs random-init Flash@25: 8/8 wins (margins +0.21% to +0.40%). 5 ep vs k-means++ Flash@25: 8/8 wins, margins 0.059%-0.334% (claimed 0.06%-0.33%). Not stated in the text: 3-epoch e-means beats k-means++ Flash@25 in only 3/8 configurations (DEEP* 1M -0.189%, SPACEV 1M -0.138%). The text says "lower mean error" while the caption reports medians over 10 seeds; no dispersion is given, and the smallest margin (0.059%, DEEP* 1M) is of the order of the seed-to-seed spread of Flash@25 on that cell (paper_targets.json per-seed values 0.38860-0.39030, see check 16).
Transcribed all 8x6 cells from the LaTeX table and recomputed relative margins and win counts (rounding uncertainty of a margin <= 0.0092%).
tab:speed: e-means reaches Flash@25 test MSE in 1.4-2.6 epochs, i.e. 9.5x-45.5x wall-clock speedups; abstract: 1.4 to 2.6 epochs, 10-45x.
Ranges match: epochs 1.4-2.6 (mean 1.81), speedups 9.5x-45.5x. All 11 reproducible cells equal the README --input cast column (SSN++ 100M: bf16 route). Caveats: (i) the abstract says 10-45x but SPACEV 1M is 9.5x; (ii) the 100M DINO10B cell and all four 1B cells (single seed, 8 GPUs) have no reproduction path in paper_bench.py (TABLE3 has no DINO 100M entry); (iii) README Figure 4(b) reports DEEP* 100M first crossing at 3 epochs (17.1x), whereas tab:speed gives 2.0 epochs (27.0x) for the same dataset/seeds; (iv) the README research-code column differs in every cell (e.g. DINO 1M 18.2x vs 12.7x; SSN++ 100M 11.6x vs 19.9x), so the speedups depend on the software stack by up to about 1.7x; (v) the conclusion (main_meta.tex:237) says e-means reaches converged Lloyd quality in 1 to 3 epochs, but tab:speed measures against Lloyd@25, not convergence.
Transcribed all 16 cells; recomputed ranges and the implied cost ratio 25/(speedup x epochs); diffed every cell against the README reproduction table (cast, bf16, research-code columns) and the README Figure 4(b) table.
At 10B vectors / 2^24 centroids e-means needs 779 GPU-h (exact) or 22.8 GPU-h (IVF) to reach Lloyd@25 test MSE: 34x cheaper with IVF, 1/10th of Lloyd time, 155x for the train-MSE target; 4.3x IVF gain at 1B.
All 26 vs-Lloyd percentages agree within rounding; 4.56/1.05 = 4.34 (claimed 4.3); 6784/43.8 = 154.9 (claimed 155). But: (a) Table 3 reports 22.8 GPU-h for 10B IVF, a value that appears nowhere in tab:mse-10b; the fastest IVF run below Lloyd there is IVF4096/L=4 at 3 epochs, 23.2 GPU-h (779/23.2 = 33.6x, still ~34x). (b) The Table 3 caption says the fastest of 3 IVF settings, but tab:mse-10b shows only 2 e-means IVF settings. (c) The text says exact e-means at 2.5 epochs takes 1/10th of Lloyd time; 6784/779 = 8.7x. (d) The 2.5-epoch headline run beats Lloyd@25 by only 0.015% (12.985 vs 12.987, single seed), 2.0 epochs is +0.054%, and results are non-monotone in epochs: test MSE at 3.5 ep (12.980) is worse than at 3 ep (12.965); GPU-h 885/779/961/794/1286 for 2/2.5/3/3.5/4 ep (per-epoch 442 vs 227 GPU-h), so single-run timings carry large variance that is not reported. (e) 6784 GPU-h on 64 x 8 GPUs is 13.2 h of wall-clock, whereas the text says the Lloyd baseline ran over several days.
Transcribed both appendix tables; recomputed all 26 vs-Lloyd percentages (tolerance 0.0078% for two 3-decimal values), the ratios quoted in text, and looked up each Table 3 cell in the appendix tables.
The last-epoch-mean finalization is guaranteed to decrease the train MSE.
The statement holds only in the restricted sense of fixed codes: C <= D in 240/240 runs, and B <= C in 240/240. Train MSE under nearest-centroid assignment, which is how train MSE is usually defined and how the final centroids are used, increased after finalization (B > A) in 133/240 runs. With the library recipe this happened in 33/80 runs (median change -0.025%, max +10.7%); with forced alpha0 0.5-0.9 the increase reached +687% (d=4, k=64, n=3000, B=8). These are small problems far from the paper regime; the claim should say the decrease is guaranteed for the last-epoch codes (the metric of Table 1), not for train MSE in general. The library README itself notes that returned labels are not always each vector nearest final centroid.
Ran the released NumpyEmeans on 240 small synthetic GMM problems (d in {2,4,8,32}, k in 4..128, n in 1e3..1e4, T in 1..3; 80 with the library recipe, 160 with forced large alpha0 / small batch). Snapshot of the EMA centroids before finalize(); compared nearest-assignment train MSE before (A) and after (B) finalization, and the MSE of the fixed last-epoch codes against the EMA centroids (D) and the final means (C).
Table 1 ablation: no revival +2.97% train / +2.24% test, resampling +2.06%/+1.15%, no cosine +0.26%/-0.06%, no finalization +0.14%/+0.02%, slow EMA +0.14%/-0.08%, k-means++ -0.18%/-0.11% (DEEP* 1M, k=16384, T=3, 30 seeds); revival is the most important component.
All 12 Table 1 deltas lie within their rounding intervals, e.g. no revival test +2.242% (claimed +2.24%). All 10 dead-cluster percentages in tab:revival-ablation are correct. The shipped laws at n=1e6, k=16384, T=3 give B=65536 and alpha0=0.3609, exactly the setting recorded for Table 1, so Table 1 matches the released recipe. Inconsistencies: (1) For the same DEEP* 1M revival ablation, tab:revival-ablation gives off vs on = +1.77% test and resample = +0.93% (0.39448 / 0.39124 vs 0.38762), whereas Table 1 says +2.24% and +1.15%. The appendix setting (T, seeds) is not stated, and its on value 0.38762 differs from Table 1 0.3880. (2) A LaTeX comment states that the DEEP* 1M row of tab:sched-t3 was replaced by hand to match Table 1 and was run under a different law pair (cand020+zc952_100M) than the other seven rows (deepwide02+deepwide, peak step 0.458 at this setting). The rows of that table are therefore not comparable with each other. (3) The Table 1 caption says medians over 30 seeds, while the same row in tab:sched-t3 is reported on seeds 10-19. (4) Per the source comment, the slow-EMA row comes from a different campaign than the other rows; its printed deltas are consistent with the current reference row.
Recomputed all 12 deltas with 4-decimal rounding intervals; recomputed dead-cluster percentages; compared revival deltas with the appendix table; evaluated the shipped laws at the Table 1 setting and compared with the batch/step recorded in the LaTeX source comments.
The cosine schedule significantly improves results, while k-means++ initialisation does not meaningfully improve MSE and costs about two orders of magnitude more time.
All 32 printed deltas recompute within rounding (0 mismatches). Cosine schedule: better on train in 8/8 configurations (+0.26 to +1.29%, median +0.631%; sign test p=0.0078), better on test in only 5/8 (median +0.027%, range -0.062 to +0.545%; p=0.73). k-means++ vs random: better on train 6/8 (median -0.097%), better on test 5/8 (median -0.065%). k-means++ init costs 73x-161x the training time (median 108x), consistent with roughly two orders of magnitude. Inconsistencies: (1) The main text says k-means++ does not meaningfully improve the results (experiments.tex:344), while the appendix says it generally improves train loss and in most cases test loss (appendix.tex:733), and method.tex:116 says it improves results at T=3, although tab:init_scale contains only T=5 and T=10. (2) The median test gain from k-means++ (0.065%) is larger than that of the cosine schedule (0.027%), which is called significant. On train, the cosine effect is larger (median 0.63% vs 0.10%). No statistical test is reported for either.
Transcribed both tables. Recomputed every delta with 4-decimal rounding intervals (tolerance: interval plus 0.005 pp). Counted signs and computed exact two-sided sign tests over configurations (no per-seed data are published). Computed k-means++ init time divided by training time.
The released code implements the paper algorithm with the paper constants (N_j init 1e-10, delta = BF16 epsilon, tau = 0.1, revival every 5 batches, epsilon = 0.1, Eq. 5 schedule).
Matches: epsilon=0.1, tau=0.1, revival every 5 batches (code fires after the 5th, 10th, ... batch, as in Alg. 1 t mod 5). The donor split sign pattern, the count halving and the donor sampling without replacement proportional to N all match. _scheduled_alpha equals Eq. 5 exactly (max diff 8.3e-17). Differences: (1) Initial N_j is 2^-16 = 1.53e-5 vs 1e-10 in the paper, 1.5e5x larger; a base.py comment acknowledges this. (2) The split delta is 1e-4, whereas the paper says the BF16 machine epsilon (2^-7 = 0.0078), 78x larger. With 1e-4, 96.31% of coordinates and 2.67% of whole rows collapse to identical children after a BF16 cast. The code repairs collapsed pairs with a one-ULP nudge of coordinate 0, which the paper does not describe. With 2^-7, 0% collapse. (3) Behaviours not in the paper: revival is off by default at d<=2, and batch_law=auto picks the law by dimension (d<=16 -> quality) rather than by n. (4) The throughput batch cap is round_pow2(n/2) vs n in the paper: n=10000, k=16, T=100 gives 8192 in the paper vs 4096 in the code. (5) The paper has M = T*floor(n/B), but the code keeps the tail batch (ceil): 62 vs 60 updates at n=1e6, B=32768, T=2. (6) Algorithm 1 increments t before computing gamma(t), so it applies t=1..M, while Eq. 5 and the code use t=0..M-1. This is a small off-by-one inside the paper (first step 0.9997 alpha0 vs alpha0). The text says the floor is reached on the last update, but under Eq. 5 the last step is 0.1003 alpha0.
Imported base.py in isolation and compared its constants and functions with the paper. Evaluated _scheduled_alpha against Eq. 5 for M=92 and alpha0=0.3609. Emulated bfloat16 round-to-nearest-even on 20,000 real DEEP rows to test whether split children stay distinct for both delta values. Compared update counts and batch caps between the paper formulas and the code.
j
δ
α0
Fix the Table 3 IVF entry (22.8 vs 23.2 GPU-h) and its caption, and replace "1/10th the original time" with "1/10th the epochs (8.7× fewer GPU-hours)".
Restate the finalisation property as a guarantee on the last-epoch codes, and state the stationary-count condition for the EMA/SGD equivalence.
Release the CuTe argmin decode-cache fix and the 1B and DINO 100M benchmark configurations, so that tab:speed can be reproduced from the repository alone.
Correct the scaling-up arithmetic (120 GPUs, 6 machines, ~10 scans per epoch) and the 382 → 381 entry in tab:k-used.