Repository navigation
docs: Hydra admission design (accuracy, cost, candidates, sketch-bench needs) - #193
Merged
Merged
Conversation
zzylol
force-pushed
the
187-rqe-optimizer-let-mergeable-finer-group-deployments-serve-coarser-raqes
branch
from
October 10, 2026 03:09
ad069f1 to
6b1637a
Compare
zzylol
force-pushed
the
docs/hydra-admission
branch
2 times, most recently
from
October 10, 2026 03:12
2f0ce60 to
89f07ea
Compare
…h needs) docs/rqe_optimizer_hydra.md: Hydra as sketch-bench runs it; accuracy bounds per combination (CMS, CountSketch, HLL, UnivMon, KLL), checked against the paper's Theorem 2 and the library; cost model as the cost doc's §3 table with I_d = I_r = 1; candidates and MILP edges (MILP unchanged, still linear); what sketch-bench must add, hydra-kll included in the same rerun; open decisions. Links from the other optimizer docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FhcWJExZcmVqS6r6rEtjis
zzylol
force-pushed
the
docs/hydra-admission
branch
from
October 10, 2026 03:17
89f07ea to
72688a7
Compare
zzylol
changed the base branch from
187-rqe-optimizer-let-mergeable-finer-group-deployments-serve-coarser-raqes
to
main
October 10, 2026 03:17
- cost model: the Shared + Fixed bullet no longer presents the subpopulations gate as Hydra's rule or fan-out as a deviation; it is a necessary check only, and admission is the measured predicate of rqe_optimizer_hydra.md §2.4. The HydraKLL column of the side-by-side table moves to Hydra §3; the key tracker's grouping is open (§6.1). - candidates.rs: measured_at_group_count's comment says the same. - configs/datagen hydra yamls: since asap_sketchlib 0.3.0 the sketch keys subsets by column; only the polars baseline still aliases (#74). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FhcWJExZcmVqS6r6rEtjis
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #190's cost table (
docs/rqe_optimizer_cost_model.md§3). Docs and comments only; no behavior change.Adds
docs/rqe_optimizer_hydra.md, the design for admitting Hydra into the rqe-optimizer, and links it from the other optimizer docs. Hydra is not a candidate today:hydra-kllhasFamilyPropertiesbut is in no capability's family list, and the other four variants have none.Contents
asap_sketchlib0.3.0):R × Wgrid;2^d − 1label subsets;β·M/W.P[Bin(R, 1−1/β) > R/2] − R·δ_in, about 0.69 at the canonicalR = 3.hydra-univmon's 2 × 8 grid makes even the form of its bound vacuous.I_d = I_r = 1,c_probe,h(G_r)per probe, and the key tracker as a part.Λ.∅ ≠ G_i ⊆ Λwhen a measurement covers it.Consolidated with what was already on main (second commit)
docs/rqe_optimizer_cost_model.md:card(G_d) ≤ subpopulationsHydra's rule, or fan-out a deviation. That check is necessary, not sufficient: a group's error depends on the grid's fanned-out mass against the group's own size, so admission is §2.4's measured predicate.candidates.rs:measured_at_group_count's comment says the same. Behavior is unchanged, because HydraKLL is never a candidate.configs/datagen/hydra_columns.yamlandhydra_kll_disjoint_labels.yaml: since asap_sketchlib 0.3.0, the sketch keys subsets by column, and only the polars baseline still aliases (Overlapping label-column domains alias into one Hydra cell, and the comparator scores it as sketch error #74).🤖 Generated with Claude Code
https://claude.ai/code/session_01FhcWJExZcmVqS6r6rEtjis