Repository navigation
research: SweRankEmbed-Small short-list vote (k=30 passes pre-registered bar on all 4 halves; k=100 fails dev-rest) - #150
Merged
Merged
Conversation
ParsaVictor
force-pushed
the
s19-swerank
branch
from
October 17, 2026 08:15
881d6a9 to
e7a70af
Compare
…r (bar: func@5 >= +0.02 on dev-fast, dev-rest, gym-a, gym-b; w=0.5, k=30) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…T forward, CLS pooling, query prefix; jina default unchanged) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecs) and paired.py vote-vs-vote mode Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…) before running it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed bar on dev and SWE-Gym halves; +0.015 over jina, not significant Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r halves and pooled func@5 >= k=30) before any k=100 number Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ParsaVictor
force-pushed
the
s19-swerank
branch
from
October 17, 2026 12:05
bae1783 to
480e92f
Compare
…dout variant by the fixed rule = k=30, w=0.5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Rebased onto main 6a5c072 (§8.19 now sits before §8.20). There are 7 commits; the pre-registration was first pushed as fca506a at 2026-10-17 09:04:54 +0330, before any SweRank number. It is now 79b257d after the rebases, with its author date kept.
Question: does Salesforce SweRankEmbed-Small (137M) do better than jina-code-v2 as the embedder of the dense short-list vote (§8.18)? Everything else stays fixed: RRF k=60, w=0.5, same texts.
Pre-registered bar (
docs/research/prereg-s19-swerank.md): func Acc@5 at least engine + 0.02 on each of dev-fast, dev-rest, gym-a and gym-b.Results
Verdicts
k=30 passes on all four halves. On dev, jina misses the bar on both halves.
k=100 fails on dev-rest (+0.006). Pooled func@5 equals k=30 (0.332, 6 gained / 6 lost head-to-head).
Holdout variant, by the rule committed before any k=100 number (480e92f): k=30, w=0.5. No Lite or Verified run was done here.
Seconds per issue (p50, CPU)
The gym k=30 SweRank time was measured with another heavy job on the CPU. The k=100 times are upper bounds: an orphaned second copy of the run competed for the CPU, and its duplicate rows were identical and were dropped.
Caveats
swerank_embed.pyis my own torch re-implementation of NomicBERT and needs notrust_remote_code. It was checked by a sanity test (model-card example: diagonal 0.60/0.63 vs ≤0.03 off-diagonal; padding gives the same output), not by a numerical comparison against the reference code.Changes
dense_shortlist.py --model swerank-embed-small(the jina default is unchanged)swerank_embed.pydense_compare.pypaired.py: a vote-vs-vote mode via a fourth--setfieldprereg-s19-swerank.mdpaper-draft.md, README and config are untouched. Data files (outside git, inswebench/):dense-sw-{dev,gym}.jsonl,dense-sw100-{dev,gym}.jsonl, cacheemb-cache/shortlist-swerank.npz.🤖 Generated with Claude Code