Built & evaluated by Harman Sandhu
Fine-tune vs. retrieval · one model, three systems

Yu-Gi-Oh SLM Arena

Yu-Gi-Oh is a trading card game with thousands of cards and famously fiddly rules — cards interact in ways even seasoned players argue about, which makes it a genuinely hard test for a small AI model. So I built three of them and put them against the same questions: (A) Google's Gemma 2 2B straight out of the box; (B) the same model after I fine-tuned it on Yu-Gi-Oh questions and answers; and (C) that fine-tune paired with a retriever that looks up the real card text before it answers. Every answer is scored 0–10 by an AI judge that is handed the correct answer, so the scores are checkable — and the whole point is simple: fine-tuning teaches the model how to answer; retrieval is what gives it the facts.

3
Systems
Gemma 2 2B
One model
2,683
QA pairs
60
Held-out Qs
1
Blind judge
The build · 3 systems, one model

One model, changed one step at a time

Each system is the same Gemma 2 2B — fine-tune, then add retrieval. Click any one to open its own site (training details, corpus, cost, evaluation) in a new tab.

StepSystemOpen
Base model
closed book
A · gemma-2-2b-it open ↗
+ Fine-tune
QLoRA · closed
B · Yu-Gi-Oh QA open ↗
+ Retrieval
RAG · winner
C · Yu-Gi-Oh RAG open ↗
interactiveconnecting…

One question, three systems, judged live

Pick a question by category — those carry a written answer key, so the AI judge scores each answer against a reference — or type your own, which the judge grades from its own knowledge.

A · Baseclosed book
Ask a question to see the untouched Gemma 2 2B answer.
B · Fine-tuneclosed book
Our QLoRA fine-tune, no retrieval.
C · +retrievalRAG
Fine-tune with the retriever supplying passages.
Leaderboard · frozen held-out evaluation

Mean judge score — original held-out 60

The offline evaluation, not the live arena: each system answered the same 60 decontaminated held-out questions and a reference-grounded blind judge scored every answer 0–10. The component columns split that score into the four rubric dimensions.

⚠ These scores are biased

This original held-out set is not category-balanced: its 60 questions split as card-facts 45% (27), rulings 45% (27), archetype 8% (5) and mechanics 2% (1) — so rulings and card-facts dominate the average. An unbiased, equal-split evaluation is shown in the second table below.

#SystemMean /10 Correct /5Compl /2Ground /2Clarity /1n

Unbiased · equal-split 60 (15 per category)

✓ Equal split — unbiased

A second, category-balanced evaluation: 15 questions from each of the four categories (card-facts, rulings, archetype, mechanics), 60 total, scored by the same blind reference-grounded judge. The closed-book systems score lower here — the balanced mix surfaces more niche-fact categories they never learned — so retrieval's advantage is even larger.

#SystemMean /10 Correct /5Compl /2Ground /2Clarity /1n
Paired significance · both evaluations
SetContrastΔ mean95% CIt pWilcoxon pVerdict
Biased 60A → B  fine-tuning+1.27[0.42, 2.17]0.0070.012significant
Biased 60B → C  retrieval+2.80[1.72, 3.87]<0.001<0.001significant
Unbiased 60A → B  fine-tuning+0.68[0.07, 1.33]0.0410.042marginal
Unbiased 60B → C  retrieval+5.63[4.63, 6.58]<0.001<0.001significant

Retriever · recall@k on the 60 held-out

Method@1@3@5@10
Dense (MiniLM-L6)0.620.870.920.95
BM25 (lexical)0.820.850.870.90
Hybrid (RRF) — feeds C0.720.920.930.95

The gain is concentrated in groundedness (0.18 → 0.87 → 1.65): fine-tuning teaches the shape, retrieval supplies the facts — correctness only jumps (2.35 → 3.85) once real passages are in the prompt.

How the judge works

An open-book judge, blind to the system

Every answer is scored by a Gemini judge (gemini-3.1-flash-lite) that never sees which system produced it, and scores one answer at a time so nothing is flattered by comparison. Each held-out question is handed to the judge with its source evidence and a gold answer, so the score is checkable against a known-good reference rather than a popularity contest.

The rubric

Four dimensions add up to 10, so a nearly-right answer separates cleanly from a hopeless one:

DimensionPointsWhat it measures
Correctness0–5Factual agreement with the gold answer
Completeness0–2Covers the key points, not just one
Groundedness0–2No invented cards, figures or citations — fabrication forces this to 0
Clarity0–1Answers what was asked, without padding

What keeps it honest

  • Reference-grounded — the judge grades against the gold answer + evidence, not vibes.
  • Blind & pointwise — it is never told which system wrote the answer, and scores one at a time.
  • Groundedness is scored separately from correctness — an answer can be honest but incomplete, or fluent and fabricated.
  • A refusal beats a confident wrong answer — bluffing is punished, not rewarded.
  • Paired testing — the same 60 questions per system, compared with a bootstrap 95% CI (primary), cross-checked by a paired t-test and Wilcoxon.
Corpus used for training

What the fine-tune was built from

The fine-tune's supervised set is 2,683 grounded QA pairs, distilled by a teacher LLM from a curated Yu-Gi-Oh corpus and filtered through a blind-judge gauntlet. That corpus is two free sources: Yugipedia editorial prose (CC BY-SA 4.0, attributed) and YGOPRODeck card facts. Card effect text is © Konami, used only as labelled fair-use context — never a verbatim-recall target.

Corpus split · 27.5 MB across sources

SourceRoleLicenseSizeShare
Yugipedia · tipsrulings & interactionsCC BY-SA 4.08.47 MB31%
Yugipedia · rulingsrulingsCC BY-SA 4.05.90 MB22%
YGOPRODeck · card factscard identity (stats + fair-use text)free / © Konami6.04 MB22%
Yugipedia · archetypemechanicsCC BY-SA 4.02.74 MB10%
Yugipedia · lore (ep + char)loreCC BY-SA 4.03.92 MB14%
Yugipedia · mechanicsglossaryCC BY-SA 4.00.40 MB1%

78% free-licensed Yugipedia prose (20.7 MB cleaned, clears the 20 MB floor) + 22% card facts. Of the prose, ~82% is on-target rulings/interactions and ~18% is lore. Card knowledge is a YGOPRODeck snapshot fetched 2026-08-01.

Cost to build

What this cost · $3.26 of a $25 budget

Two bills built this: Modal for the GPU training, and the Gemini API for generating the QA data and running the judge. The base is Google's (imported free); the retriever, serving and evaluation all ran on a local RTX 3060, so they cost nothing.

$0.26
Modal · GPU
$3.00
Gemini API
$0
Local GPU
$3.26
Total
BillCostShare

Modal is the invoiced GPU total for the fine-tune; Gemini is the combined API spend for teacher generation, QA gating and judging. We don't attribute a per-stage split inside those two bills — only the totals are measured.