Skip to content

Disparity gate fails on improvements: runtime_log2_ratio is the only symmetric rule, and freeze-results cannot self-heal #351

Closed

Description

@godofecht

Found while working #216 (LogisticRegression.fit, PR #347). The optimization is real and the gate fails because of it.

The symmetric rule

benchmarks/check_disparity_regression.py:65 compares:

if abs(new_rt - old_rt) > limit:

Every other rule in benchmarks/disparity_regression_policy.json is one-sided and named accordingly:

  • score_tolerance_fraction.max_absolute_increase
  • score_abs_diff.max_relative_increase
  • configuration_difference_count.max_increase
  • semantic_difference_count.max_increase

runtime_log2_ratio alone uses max_absolute_change with abs(). A 2.1x speedup moves the ratio by about 1.08 and trips the 1.0 limit exactly as a 2.1x slowdown would. PR #347 hits this on both LogisticRegression rows.

A regression gate that blocks improvements will train people to ignore it, which costs the real regressions it exists to catch.

The non-self-healing part

.github/workflows/remaining-issues.yml:154 has freeze-results declare needs: [kmeans-parity, architecture-map]. If the gate fires on main, the freeze job never runs, so the baseline is never re-frozen and the failure persists across subsequent runs rather than clearing itself.

Compounding it: kmeans-parity currently fails on main in roughly 3 of the last 5 runs on its own, so the baseline can go stale without any PR being involved.

Suggested direction

Make the runtime rule one-sided, so only slowdowns fail. If improvements should still be visible, record them as a distinct non-blocking notice rather than a failure. Separately, decide whether freeze-results should still refreeze when the gate fails, or the baseline will keep drifting out of date.

Not fixing this here since it is policy, not perf. PR #347 leaves disparity_regression_policy.json untouched.

Activity

  1. added a commit that references this issue on Aug 18, 2026
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