Recall-stage rerank-stage search pipeline - #463
Open
luciaquirke wants to merge 1 commit into
Open
Conversation
luciaquirke
force-pushed
the
feat/multistage-attribution
branch
from
September 13, 2026 06:35
53c3f2d to
44e2a55
Compare
Add score_cfg.candidates to score, ekfac and trackstar. It points at an earlier run over the same training set and keeps the union over its query columns of each column's top_k or fraction rows, so e.g. projected KFAC or TrackStar can run over every row and Shampoo over its top rows. The Hessian is still fitted on the whole training set. The store keeps every row: candidates carry the new scores and the rest keep the earlier run's, oriented to this run, scaled to the candidates' spread and shifted past the weakest candidate, so validate and recall see one complete ranking. candidates.npy lists the rescored rows. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JMR4GS4V8QRBXgJ7MusgQa
luciaquirke
force-pushed
the
feat/multistage-attribution
branch
from
September 13, 2026 07:23
44e2a55 to
cfb1b6e
Compare
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.
Grosse et. al recommends a search pipeline-style setup where the more expensive method only reranks the top-k queries according to a cheaper and/or recall-optimized method that overfetches.
score_cfg.candidatesonscorefor the overfetched candidates.ekfacandtrackstarpull from this. Two steps in one YAML can compose the stages.top_korfractionrows at thedirectionend (proponents/detractors).TODO claude slop
higher_is_better, scaled to the candidates' spread and shifted past the weakest candidate, sovalidate,recallandload_scoressee one complete ranking.candidates.npylists the rescored rows.MemmapSequenceScoreWritergainsrows, mapping subset indices onto store rows.Examples:
examples/pipelines/projected_kfac_then_shampoo.yaml,examples/pipelines/trackstar_then_shampoo.yaml. Docs:docs/influence-functions.rst.