Skip to content

Cascade router is CUSUM, not SPRT/e-process; bench numbers do not measure what README says #3

Closed

Description

@SMC17
  1. CascadeRouter is not an SPRT or an e-process. log_e = max(0, log_e + lr) is a CUSUM recursion, and e_threshold = 20 // alpha <= 0.05 is not an error bound once the statistic is clamped. Either call it CUSUM and calibrate the threshold by run length, or drop the clamp.
  2. The "87 ns prune step" covers an 8-token vocabulary. specdecode bench times buildLogitMask over the 8-entry vocab in src/main.zig. Masking a real vocabulary costs stepToken once per token per decode step, so the per-step cost scales with vocabulary size, and that cost has not been measured.
  3. The "607.8x speedup" is measured against a pure-Python loop over 128k floats, which is not a baseline anyone would ship. NumPy boolean masking is the fair comparator.

Found in the 2026-11-19 README audit at e119167.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions