Example: add non-gradient attribution baselines - #366
Open
luciaquirke wants to merge 1 commit into
Open
Conversation
luciaquirke
force-pushed
the
bank-baselines
branch
13 times, most recently
from
July 29, 2026 12:45
619689e to
5b23e2c
Compare
Two content-similarity baselines scored against a re-train bank and evaluated by per-query LDS, as a floor for the gradient methods: - activation similarity over the attribution target modules (uses the bank model's activations) - semantic search with jina-embeddings-v3 (pure text similarity) Point either at any bank written with save_retrained_models=true via --bank; the model and dataset are read from the bank's config.yaml, and LDS reuses evaluate_retrained's cached per-subset losses. Omit --bank to build the default GPT-2/WikiText bank first. On that bank they score mean per-query Spearman 0.13 and 0.09, below TrackStar (0.18), SOURCE (~0.39) and MAGIC (~0.92). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
luciaquirke
force-pushed
the
bank-baselines
branch
from
July 29, 2026 13:36
5b23e2c to
a42477f
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.
Two content-similarity LDS baselines:
jina-embeddings-v3.On the GPT-2 WikiText fine-tune re-train bank nicknamed
lotusthe mean LDSs are 0.129 and 0.095.