You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rqe-optimizer: use merged accuracy curves for KLL and top-k #158
KLL and top-k lose accuracy when merged. The cost table's accuracy comes from a single, un-merged sketch (#147), so a deployment that answers an RAQE by merging m = T/x panes gets credit for accuracy it doesn't have.
#154 (merged just before this issue was filed) covers the code side: AtomicCostEntry.merge_accuracy holds per-merge-count scores, and eligibility (accuracy_at in rqe-optimizer/src/lib.rs) checks the metric at both measured merge counts bracketing L/x. The export measures 4..1024 shards.
Remaining points:
No merge data in current cost tables. The latest export has no merge_accuracy on any row, so merged deployments still read single-sketch accuracy. We'll re-run the export scripts with the merge-accuracy pass.
m above the largest measured count reuses the largest count's scores (flat extrapolation). That's fine as is.
Reopening: since #171, SaturationCurves::accuracy reads every sketch's plain curve at the lookback's item count whatever the window, and nothing reads AtomicCostEntry.merge_accuracy for sketches any more (#178 removes it). So a KLL or top-k answer merged from L/x windows got the unmerged sketch's accuracy. The AutoSketch vs. ASAP evaluation is skewed by this, because AutoSketch never merges.
Fix: SaturationCurves loads saturation_merge_curve.csv and reads it for KLL and top-k at m = L/x. Between measured shard counts it takes the worse one, and past the largest it uses the largest. With no merge curve there's no accuracy. Merge curves at m = 1, 4, 16, 64 up to N = 1e7 are being regenerated on clnode109 along with the #178 rerun.
Activity
rqe-optimizer: merged answers read the curve at the merged count only
rqe-optimizer: merged answers read the curve at the merged count only
rqe-optimizer: read sketch accuracy from saturation curves (#171)
milindsrivastava1997 commentedon Oct 7, 2026
#154 (merged just before this issue was filed) covers the code side:
AtomicCostEntry.merge_accuracyholds per-merge-count scores, and eligibility (accuracy_atinrqe-optimizer/src/lib.rs) checks the metric at both measured merge counts bracketingL/x. The export measures 4..1024 shards.Remaining points:
merge_accuracyon any row, so merged deployments still read single-sketch accuracy. We'll re-run the export scripts with the merge-accuracy pass.mabove the largest measured count reuses the largest count's scores (flat extrapolation). That's fine as is.🤖 Generated with Claude Code
zzylol commentedon Oct 7, 2026
Reopening: since #171,
SaturationCurves::accuracyreads every sketch's plain curve at the lookback's item count whatever the window, and nothing readsAtomicCostEntry.merge_accuracyfor sketches any more (#178 removes it). So a KLL or top-k answer merged fromL/xwindows got the unmerged sketch's accuracy. The AutoSketch vs. ASAP evaluation is skewed by this, because AutoSketch never merges.Fix:
SaturationCurvesloadssaturation_merge_curve.csvand reads it for KLL and top-k atm = L/x. Between measured shard counts it takes the worse one, and past the largest it uses the largest. With no merge curve there's no accuracy. Merge curves at m = 1, 4, 16, 64 up to N = 1e7 are being regenerated on clnode109 along with the #178 rerun.🤖 Generated with Claude Code
rqe-optimizer: evaluate AutoSketch vs ASAP on the trace workloads
rqe-optimizer: evaluate AutoSketch vs ASAP on the trace workloads
rqe-optimizer: merged KLL and top-k answers read the merge curves (#158)
rqe-optimizer: evaluate AutoSketch vs ASAP on the trace workloads
rqe-optimizer: merged KLL and top-k answers read the merge curves (#158)
rqe-optimizer: evaluate AutoSketch vs ASAP on the trace workloads
rqe-optimizer: merged KLL and top-k answers read the merge curves (#158…