Skip to content

Re-baseline every measured number onto one verified run - #3

Merged
Aminsed merged 1 commit into
mainfrom
docs/rebaseline
Jul 28, 2026
Merged

Aminsed merged 1 commit into
mainfrom
docs/rebaseline

Conversation

@Aminsed

@Aminsed Aminsed commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Re-running the benchmark put the 20k and 50k README rows ~10% below what was claimed, in the flattering direction. Both tables now carry the numbers this run produced.

The scaling exponents in implementation.md did not reproduce because the fit range was never stated. Fitted over n >= 50,000, where both implementations are past their fixed overheads: cuLOF n^1.94, scikit-learn n^1.31, so the ratio decays as n^-0.64 and predicts a 2.42x fall in speedup from 50k to 200k. Measured fall: 2.42x.

The d=128 table verified as-is (measured 14/15/12/16/17 vs claimed 15/15/13/16/17), and the ratio really is flat at n^0.05.

Re-running benchmarks/benchmark.py on the same A6000 put the 20,000 and
50,000 rows about 10% below what the README claimed (30x and 29x measured
against 33x and 31x). Small, and in the flattering direction, which is the
direction that matters. Both tables now carry the numbers this run produced.

The scaling exponents in docs/implementation.md did not reproduce at all --
n^2.01 and n^1.13 against a measured n^1.63 and n^1.39. The argument was
sound; the fit range was the problem, and it was never written down. Fitting
over all n mixes in the small-n region where the GPU is idle most of the
time and the fit reports launch overhead rather than the algorithm. Over
n >= 50,000, where both implementations are past their fixed overheads, the
exponents are n^1.94 and n^1.31, so the ratio decays as n^-0.64 and predicts
a 2.42x fall in speedup from 50k to 200k. The measured fall is 2.42x. The
range is now stated in the text so the fit can be repeated.

The d = 128 table needed no correction beyond rounding: measured 14/15/12/16/17
against a claimed 15/15/13/16/17, and the ratio really is flat -- it scales as
n^0.05 across that range. The claim that ~15x is the steady-state hardware win
holds. The one thing I could not verify is the assertion that both sides scale
as n^1.9 at d = 128, since I measured the ratio and not the two curves
separately, so the text now says what was measured.
@Aminsed
Aminsed merged commit 2aa26d5 into main Jul 28, 2026
5 checks passed
@Aminsed
Aminsed deleted the docs/rebaseline branch July 28, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant