Roryd/deepscholar bench s2patch#240
Draft
donovanr wants to merge 18 commits into
Draft
Conversation
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.
Description
Adds DeepScholar-Bench (arXiv 2508.20033) as a
SandboxedExternalEval(deepscholar_bench). Given a paper's context, the system retrieves prior work and writes the related-work section, scored on organization, nugget_coverage, reference_coverage, and cite_p (geometric mean). Modeled on thetau2/astaexternal evals; clones the upstream repo and installs deps at setup, runs generation then eval in one sandbox.Highlights:
openai/prefix through litellm); defaults to keyless recursive+arXiv retrieval for local models.sandbox_search_shim.pyadds pluggable retrieval backends (-a search_backend=):arxiv(default),s2(Semantic Scholar, keyed + backoff — robust at volume),tavily. The shim also lifts the upstream stage-LMmax_tokens=512cap that was truncating structured outputs and dropping ~30% of queries.search_steps,lm_timeout,stage_max_tokens) and strict-by-default generation (fails unless every query succeeds;allow_partial_generationto opt out).Validated end to end on small runs (limit=2, limit=10): setup, generation, eval, and parsing all work; S2 backend produces well-formed citations (nonzero cite_p). Metrics look real, not artifacts — an early OLMo scores at the floor, as expected (no published system exceeds ~31% geomean).
Status / known issue
Blocked on full 63-query runs. 10-query runs are reliable (~20 min), but every attempt at the full set (runs 9-11) hangs ~40 min in: generation goes silent mid-LM-call and the sandbox watchdog kills the job, losing all completed queries. Raising
max_model_lento 32768 fixed an earlier context-overflow cause, but the remaining stall is a time-correlated vLLM hang, not query-specific, andlm_timeoutdoesn't fire (litellm's streaming path appears to ignore it). This is a single-long-process reliability problem, not a correctness bug in the eval. Plan is to get the full number by batching (~6 jobs of ~12 queries, combine per-query CSVs) rather than chase the vLLM hang. Full run log inplans/006_deepscholar_bench.md.Not wired into any suite yet;
DEEPSCHOLAR_REFpinned toc95413b.Type of Change
Type of Change
Testing
pytest tests/ --ignore=tests/integration/)Checklist