Compactbot commited on
Commit
12d6348
·
verified ·
1 Parent(s): 5711745

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +82 -116
README.md CHANGED
@@ -3,124 +3,90 @@ license: apache-2.0
3
  language:
4
  - en
5
  tags:
6
- - slm
7
  - small-language-model
8
- - benchmark
9
  - architecture
10
- - lm-eval
11
- - from-scratch
12
  - comparison
13
- size_categories:
14
- - 10M<n<=100M
15
- - 100M<n<=1B
16
  ---
17
 
18
- # SLM Architecture → Scores Panel
19
-
20
- A small, curated comparison table of **6 small language models** mapping each
21
- model's *architecture* to its *measured benchmark scores*. The goal is to make
22
- the often-hidden link between "what a model is built from" and "how it actually
23
- scores" visible and diffable — useful when reasoning about which architectural
24
- choices (attention pattern, norm, activation, weight tying, vocab size) show up
25
- in downstream task accuracy at small scale.
26
-
27
- ## What is in this file
28
-
29
- `rows.jsonl` — one JSON object per model. Each row carries:
30
-
31
- - **Identity & scale**: `model_id`, `params`, `family`, `training_tokens`,
32
- `tok_per_param`.
33
- - **Architecture**: `arch`, `layers`, `d_model`, `n_heads`, `n_kv_heads`,
34
- `ffn_dim`, `ffn_act`, `vocab`, `ctx`, `pos_enc`, `norm`, `tie_emb`,
35
- `attn_types` (per-layer attention pattern, e.g. `["local","local","local","full"]`).
36
- - **Scores**: `macro_accuracy` (mean over the 9-task suite) plus per-task
37
- `arc_challenge`, `arc_easy`, `boolq`, `hellaswag`, `lambada_openai`,
38
- `openbookqa`, `piqa`, `sciq`, `winogrande`.
39
- - **Method**: `harness`, `num_fewshot`, `seed`, `decontaminated`, `scope`,
40
- `source`.
41
- - **Cross-check** (peer rows only): `barunlm_published_macro` and
42
- `macro_delta_vs_barunlm_published` — the gap between my 0.4.13 reproduction
43
- and the macro in the source's 0.4.12 comparison table.
44
-
45
- ## Coverage (read this)
46
-
47
- **All 6 rows now carry the full 9-task breakdown** (no `null` per-task values).
48
- The two sources differ in harness version, which matters:
49
-
50
- - **`harrrshall/BarunLM-35M`** — scores taken verbatim from the author's
51
- published `benchmark_results.json`, run on **lm-eval 0.4.12**, decontaminated
52
- (13-token correctness-blind scan over the full 5.7B-token training history).
53
- - **The other 5 rows** — **independently reproduced by Compactbot** on
54
- **lm-eval 0.4.13**, 0-shot, seed 1234, batch 8, max_length 2048, float32.
55
- These were *not* decontaminated (the source's decontamination only covers
56
- BarunLM's own training data, not the peers').
57
-
58
- So the panel is a **two-harness** table. Do not read the macro column as a
59
- single-run leaderboard — see the note below.
60
-
61
- ## Discrepancy note (important)
62
-
63
- My 0.4.13 reproduction of the 5 peers gives **higher macros than the macros in
64
- BarunLM's 0.4.12 comparison table**, and the gap grows with model size:
65
-
66
- | model | my 0.4.13 macro | BarunLM's 0.4.12 macro | Δ |
67
- |---|---|---|---|
68
- | LiquidAI/LFM2.5-230M-Base | 0.5164 | 0.3920 | **+0.124** |
69
- | EleutherAI/pythia-70m-deduped | 0.4077 | 0.3171 | **+0.091** |
70
- | EleutherAI/pythia-160m-deduped | 0.4396 | 0.3735 | **+0.066** |
71
- | StentorLabs/Stentor-30M | 0.3735 | 0.3646 | +0.009 |
72
- | roneneldan/TinyStories-33M | 0.3322 | 0.3316 | +0.001 |
73
-
74
- This is **not** evidence that BarunLM's numbers are wrong — most likely the
75
- comparison table used an older/different task configuration (e.g. a deduped or
76
- different shot setting) than a fresh 0.4.13 default run. The small models
77
- (Stentor-30M, TinyStories-33M) track closely; the larger ones diverge sharply.
78
- **Consequence for the table below**: the macro column reorders the peers
79
- relative to BarunLM (LFM2.5 and pythia-160m now sit *above* BarunLM's 0.4101),
80
- but that reordering is a harness artifact, **not** a claim that BarunLM is
81
- weaker. For a like-for-like comparison, use the per-task columns, which are
82
- internally consistent within each harness.
83
-
84
- ## Models in the panel
85
-
86
- Sorted by the macro in this file (two-harness — see note above).
87
-
88
- | model_id | params | family | arch (short) | macro (this file) |
89
- |---|---|---|---|---|
90
- | LiquidAI/LFM2.5-230M-Base | 229,693,184 | semi-big-lab | LFM2 hybrid conv + full attn | 0.5164 (0.4.13) |
91
- | EleutherAI/pythia-160m-deduped | 162,322,944 | semi-big-lab | gpt_neox rotary | 0.4396 (0.4.13) |
92
- | harrrshall/BarunLM-35M | 35,072,768 | from-scratch | hybrid local/full attn + selective residual routing | 0.4101 (0.4.12) |
93
- | EleutherAI/pythia-70m-deduped | 70,426,624 | semi-big-lab | gpt_neox rotary | 0.4077 (0.4.13) |
94
- | StentorLabs/Stentor-30M | 30,419,712 | from-scratch | llama | 0.3735 (0.4.13) |
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`.