The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Gemma 4 Graph-Retrieval Benchmark
An offline retrieval benchmark for the Google – The Gemma 4 Developer Agent Competition: what do the competition's code-graph and embedding resources actually buy a budget-constrained software-engineering agent?
Everything here runs on CPU. All results were produced by kernels executed on Kaggle's free CPU tier against the competition's public development set (129 tasks from FastAPI, Rich, Requests, HTTPX; Apache 2.0).
Headline findings
- The provided embeddings are near-uniform. Over 400 sampled node vectors from a representative graph: mean pairwise cosine 0.80, p90 0.99, p99 1.00. The
search_similar_codetool (symbol-name queries only) is ranking-limited, not coverage-limited. - Graph coverage is not the bottleneck. 96.3% of modification tasks have at least one gold function (the enclosing
def/classof the patch's added regions, resolved viaastfrom the task's repository snapshot) present as a graph node. - Lexical file retrieval beats every graph-node method. BM25 over the repository snapshot reaches recall@1 = 22.5%, @10 = 55.8%, @20 = 69.0% on all 129 tasks (79.4% @20 on the 107 function-evaluable tasks). The best graph-node method (BM25 over nodes + embedding expansion + 1-hop call-graph expansion) reaches 53.3% recall@20 at function level.
- Graph structure helps only as within-ranking expansion (+5.6 points recall@20 over lexical node ranking, +4.7 @1); two-stage lexical-then-graph localization does not beat single-stage lexical.
- The dev set is nearly all function edits: 128/129 patches modify existing files; median reference patch touches 1 file.
Results table
Function-level (targets = enclosing functions of added patch regions; n = 107 tasks with non-empty gold sets):
| Method | R@1 | R@5 | R@10 | R@20 | MRR |
|---|---|---|---|---|---|
| M1 BM25 over graph nodes | 13.1 | 26.2 | 37.4 | 47.7 | 0.217 |
| M2 embedding expansion from BM25 seeds | 6.5 | 24.3 | 35.5 | 41.1 | 0.138 |
| M3 RRF(M1, M2) | 10.3 | 27.1 | 37.4 | 40.2 | 0.191 |
| M4 M1+M2+1-hop call-graph expansion | 17.8 | 30.8 | 37.4 | 53.3 | 0.257 |
| M8 two-stage: BM25 files → graph narrowing | 11.2 | 27.1 | 38.3 | 47.7 | 0.190 |
| M9 two-stage + embeddings | 6.5 | 27.1 | 38.3 | 43.9 | 0.159 |
File-level (targets = files touched by the reference patch; n = 129):
| Method | R@1 | R@5 | R@10 | R@20 | MRR |
|---|---|---|---|---|---|
| M5 BM25 over snapshot file contents | 22.5 | 42.6 | 55.8 | 69.0 | 0.320 |
| M6 BM25 over file paths only | 13.2 | 27.9 | 35.7 | 50.4 | 0.205 |
| M7 RRF(M5, node evidence) | 17.1 | 39.5 | 56.6 | 69.8 | 0.289 |
Per-repo file recall@20: fastapi 62.7%, rich 68.8%, requests 100%, httpx 100% (the last two are 13 and 1 tasks).
Method (what we recommend for the submission)
Stage 1 — lexical file localization (cheap, 1–2 tool calls): rg -l / BM25 over the repo to pick the top files.
Stage 2 — graph narrowing (1–3 tool calls): within the top files, use the call graph (get_code_neighbors, get_code_subgraph) to expand from lexical candidates to their callers/callees, then read_file ranges.
Never seed localization from embeddings alone: the 256-d node vectors are near-uniform, so search_similar_code returns weakly discriminative neighbors.
The competition's model is fixed (gemma-4-31b-it-qat-w4a16-ct, 4-bit QAT, vLLM, 32k context, ~6 min/task budget), so the submission ships this strategy as an ADK skill + prompts rather than code: see submission/.
Layout
benchmark/bench.py— the benchmark kernel (9 methods, metrics, per-task CSV output)benchmark/audit.py— dataset audit kernel (schema, gold-file index, embedding discriminativeness)results/bench_summary.json,results/bench_per_task.csv— the numbers above, per taskresults/tasks_index.json— per-task gold files/functions and test files (labels)submission/— ADK agent config + retrieval-first skill + sampling/eval budgetskaggle/— how to reproduce on Kaggle free CPU
Reproducing
- Accept the competition rules, then run
benchmark/audit.pyandbenchmark/bench.pyas Kaggle kernels (CPU only) withgemma-4-developer-agentas competition source; the competition data mounts at/kaggle/input/competitions/gemma-4-developer-agent/. - Or run them locally after downloading the competition dataset.
Related work
- SWE-bench: Jimenez et al., arXiv:2310.06770
- Agentless: Xia et al., arXiv:2407.01489
- LocAgent: Chen et al., arXiv:2503.09089 (the graph schema the competition's graphs follow)
- SweRank: Salemi et al., arXiv:2505.07849
- SpIDER: arXiv:2512.16956 (graph+embedding splice-into-top-K retrieval with an LLM reranker; our benchmark uses the same ground-truth definition — patch-touched functions — but removes the LLM reranker and evaluates under the competition's budget constraints)
- SWE-Explore: arXiv:2606.07297 (agentic exploration vs pure retrieval under line budgets)
License
Apache 2.0. Competition data belongs to the competition organizers.
- Downloads last month
- 45