Add dataset card
Browse files
README.md
CHANGED
|
@@ -3,124 +3,90 @@ license: apache-2.0
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
tags:
|
| 6 |
-
- slm
|
| 7 |
- small-language-model
|
| 8 |
-
-
|
| 9 |
- architecture
|
| 10 |
-
-
|
| 11 |
-
- from-scratch
|
| 12 |
- comparison
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
---
|
| 17 |
|
| 18 |
-
# SLM Architecture →
|
| 19 |
-
|
| 20 |
-
A small,
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
- **
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
| roneneldan/TinyStories-33M | 68,514,048 | narrow-domain diagnostic | gpt_neo alternating global/local | 0.3322 (0.4.13) |
|
| 96 |
-
|
| 97 |
-
Note the scale spread (30M → 230M) is intentional: the panel is about
|
| 98 |
-
*architecture at small scale*, not a single-size head-to-head. The
|
| 99 |
-
from-scratch rows (BarunLM-35M, Stentor-30M) are the most directly comparable
|
| 100 |
-
to the SLM community's own work. `roneneldan/TinyStories-33M` is tagged
|
| 101 |
-
`scope: "narrow-domain diagnostic"` — a TinyStories-trained model included as a
|
| 102 |
-
control for what narrow-domain training does to general-domain macro accuracy,
|
| 103 |
-
not as a general-domain competitor.
|
| 104 |
-
|
| 105 |
-
## Provenance
|
| 106 |
-
|
| 107 |
-
Two sources, both stated per-row in the `source` field:
|
| 108 |
-
|
| 109 |
-
1. **`harrrshall/BarunLM-35M`** — verbatim from the author's published
|
| 110 |
-
`benchmark_results.json` (0.4.12, decontaminated). I did not re-run it.
|
| 111 |
-
2. **The 5 peer models** — independently reproduced by Compactbot on
|
| 112 |
-
lm-eval 0.4.13 (0-shot, seed 1234). The reproduction harness is a standard
|
| 113 |
-
`HFLM` + `simple_evaluate` over the 9-task suite; per-task primary metrics
|
| 114 |
-
are `acc_norm` for arc_challenge/arc_easy/hellaswag/openbookqa/piqa and
|
| 115 |
-
`acc` for boolq/lambada_openai/sciq/winogrande; macro is the unweighted mean
|
| 116 |
-
of the 9 primaries.
|
| 117 |
-
|
| 118 |
-
If you need a single-harness leaderboard, re-run all 6 on the same lm-eval
|
| 119 |
-
version yourself.
|
| 120 |
-
|
| 121 |
-
## Maintenance
|
| 122 |
-
|
| 123 |
-
This is a **snapshot** refreshed on **2026-09-24**. The BarunLM row tracks the
|
| 124 |
-
author's published file; the 5 peer rows are my one-time 0.4.13 reproduction
|
| 125 |
-
and will not auto-track upstream. If the source adds models or revises scores,
|
| 126 |
-
this file drifts; it is maintained manually and refreshed when the source moves.
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
tags:
|
|
|
|
| 6 |
- small-language-model
|
| 7 |
+
- slm
|
| 8 |
- architecture
|
| 9 |
+
- benchmark
|
|
|
|
| 10 |
- comparison
|
| 11 |
+
- zero-shot
|
| 12 |
+
- dataset
|
| 13 |
+
pipeline_tag: dataset
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# SLM Architecture → Score (controlled ablation panel)
|
| 17 |
+
|
| 18 |
+
A small, **controlled** dataset of per-task zero-shot benchmark scores across
|
| 19 |
+
different **architectures**, harvested from the model cards of the
|
| 20 |
+
`d0rj/tiny-llm-ablation` family. The point is to isolate *architecture* as the
|
| 21 |
+
variable: every model in the panel is held constant on everything else.
|
| 22 |
+
|
| 23 |
+
## Why this panel is controlled
|
| 24 |
+
|
| 25 |
+
All models share:
|
| 26 |
+
- **~51M parameters**, trained **from scratch** (not finetunes)
|
| 27 |
+
- **Same data**: FineWeb-Edu `sample-10BT`, 3,932,160,000 source tokens
|
| 28 |
+
- **Same budget**: 15,000 optimizer steps
|
| 29 |
+
- **Same tokenizer**: 32,768 tokens
|
| 30 |
+
- **Same eval protocol**: lm-eval 0.4.12, zero-shot, 8 tasks, full official
|
| 31 |
+
splits, 95% Wilson confidence intervals, BF16
|
| 32 |
+
- **Same width/heads/FFN**: d=512, 8 query / 2 KV heads, SwiGLU ffn=1792, ctx 2048
|
| 33 |
+
|
| 34 |
+
The **only** thing that varies is the architecture family. That is what makes
|
| 35 |
+
an architecture→score comparison meaningful — most "which arch is best" threads
|
| 36 |
+
confound architecture with scale, data and tokenizer.
|
| 37 |
+
|
| 38 |
+
## The models
|
| 39 |
+
|
| 40 |
+
| repo | family | what varies |
|
| 41 |
+
|---|---|---|
|
| 42 |
+
| `d0rj/q-51M-base` | causal-GPT | reference baseline (10 decoder layers) |
|
| 43 |
+
| `d0rj/q-prefixlm-51M-base` | prefix-LM | bidirectional prefix context + suffix-only loss |
|
| 44 |
+
| `d0rj/looped-51M-base` | looped (Universal-Transformer) | 10 unique blocks weight-shared × 6 loops = 60 effective layers |
|
| 45 |
+
| `d0rj/diffusion-51M-base` | diffusion / masked LM | **different metric — see caveat** |
|
| 46 |
+
|
| 47 |
+
> `d0rj/prefixlm-51M-base` is a **duplicate** of `q-prefixlm-51M-base` (identical
|
| 48 |
+
> eval scores; the only difference is whether a 32-element RoPE buffer is counted
|
| 49 |
+
> in the parameter total: 50,866,720 vs 50,866,688). It is included for
|
| 50 |
+
> completeness and flagged `duplicate_of`.
|
| 51 |
+
|
| 52 |
+
## Headline result (AR-comparable models only)
|
| 53 |
+
|
| 54 |
+
| family | HellaSwag | ARC-E | ARC-C | PIQA | WinoG | OBQA | BoolQ | LAMBADA | **macro** |
|
| 55 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 56 |
+
| causal-GPT | 29.18 | 43.31 | 24.23 | 59.90 | 50.04 | 28.20 | 59.88 | 20.86 | **39.45** |
|
| 57 |
+
| prefix-LM | 28.39 | 36.24 | 22.78 | 53.10 | 49.72 | 25.60 | 54.86 | 23.35 | **36.76** |
|
| 58 |
+
| looped | 29.62 | 44.28 | 22.10 | 60.28 | 50.12 | 29.00 | 61.59 | 20.90 | **39.74** |
|
| 59 |
+
|
| 60 |
+
- **Looped (weight-shared depth) ≥ causal** on 7 of 8 tasks (macro 39.74 vs 39.45); it wins most on ARC-Easy, PIQA, OBQA, BoolQ.
|
| 61 |
+
- **Prefix-LM < causal** on 7 of 8 tasks (macro 36.76 vs 39.45); bidirectional prefix + suffix-only loss *hurts* these zero-shot completion benchmarks, most on ARC-Easy (−7.1) and PIQA (−6.8). Its one win is LAMBADA (+2.5), where bidirectional context helps predict the final word.
|
| 62 |
+
|
| 63 |
+
## Caveats (read before trusting this)
|
| 64 |
+
|
| 65 |
+
1. **n = 3 distinct AR-comparable architectures.** This is a *pairwise comparison
|
| 66 |
+
panel*, not a correlation. You cannot fit an architecture→score regression on
|
| 67 |
+
three points; the honest claim is "in this controlled panel, looped ≥ causal
|
| 68 |
+
and prefix-LM < causal", not "deeper/shared archs correlate with score".
|
| 69 |
+
2. **Single training seed.** Differences of ~1–2 pts are within the 95% Wilson
|
| 70 |
+
CIs on most tasks (e.g. HellaSwag causal CI [28.30, 30.07] overlaps both
|
| 71 |
+
rivals). The directional pattern (looped up, prefix down, 7/8 tasks each) is
|
| 72 |
+
more robust than any single-task gap.
|
| 73 |
+
3. **Diffusion row is a different metric.** `diffusion-51M-base` is scored with
|
| 74 |
+
continuation **perplexity** (its LAMBADA 42.21 is a PLL, not AR loglikelihood),
|
| 75 |
+
so it is **excluded from the AR macro** and must not be mixed into the
|
| 76 |
+
comparison. Its card says so explicitly.
|
| 77 |
+
4. **Zero-shot, uncorrected for contamination.** One seed, no multiple-comparison
|
| 78 |
+
correction (as the source cards state).
|
| 79 |
+
|
| 80 |
+
## Source & provenance
|
| 81 |
+
|
| 82 |
+
Scores are author-reported `model-index` / `evaluation/results.json` values from
|
| 83 |
+
the four `d0rj` repos, harvested 2026-09-24. This dataset is a *harvest +
|
| 84 |
+
honest-analysis* artifact: it does not re-run the evals, it re-states the
|
| 85 |
+
source numbers with the controlled-design framing and the metric caveat made
|
| 86 |
+
explicit. To reproduce the underlying evals, see each repo's
|
| 87 |
+
`evaluation/run_core.py`.
|
| 88 |
+
|
| 89 |
+
## Files
|
| 90 |
+
- `slm_arch_scores.jsonl` — one row per model: `arch` features, per-task
|
| 91 |
+
`{metric, value, ci95, n}`, `ar_macro` (null for the diffusion row),
|
| 92 |
+
`metric_type`, `duplicate_of`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|