Skip to content

Rejection exhaustion aborts a best-of-N search instead of failing one restart #319

Open

Description

@neuromechanist

From the epic #278 deep review (silent-failure pass). _reject_outliers's "rejection removed all samples" ValueError is not caught by the multi-restart loop's except RuntimeError on either backend (torch_impl/core.py:2776-2811 + 2159-2181; mlx mirrors it), so under n_restarts > 1 one restart's rejection exhaustion aborts the whole search rather than recording that restart as degenerate and trying the next seed. Rejection outcomes are trajectory-dependent, so other seeds could genuinely survive. Pre-existing, mirrored exactly across backends — a deliberate-semantics question, not a regression: either the abort is the intended "your rejsig/maxrej config is broken" signal (then document it), or exhaustion should be a per-restart degenerate outcome (then change both backends + tests in one PR).

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