I started my evaluation too far: back to simple tests for tiny models
Big labs scale up. I’m scaling down, on purpose: reasoning models with 10M–200M parameters, trained from scratch on 3–4 GPUs. If an idea is right, it should work small first.
(Some people over 40 buy a sports car. I went back to my PhD roots 🙂)
The idea: a small model that writes what matters into memory and reasons over it, instead of re-reading a whole book for every question.
But how do you know a tiny model is actually learning that? I started where everyone starts: real text and well-known long-context benchmarks. My models scored zero, night after night. Worse, the loss looked healthy while the model quietly ignored the memory I’d built for it.
Those benchmarks are made for big pretrained models. They told me my model failed, but not where.
So I stepped back to first principles. Before a model can reason, it must hold one fact. Before it can hold a fact, it must read its memory at all.
That became a ladder of simple checks:
Step 1: no language. Random symbols, almost like DNA: “key alice val red”, thousands of tokens of filler, then “what was alice?”
Step 2: children’s stories with planted facts, and questions that slowly get harder: find where someone lives → pick them among look-alike names → track where they live now → follow 2–3 hops → count, deduce.
I know every right answer, so a score finally means something. (Even the tests needed testing: my first version could be passed without reading the facts.)
Most experiments still fail. But now I see exactly which rung they fail on, and that tells me what to fix next.
I’m sharing the ladder because most long-context benchmarks assume a big pretrained model. If you train small models from scratch, test a new memory or attention design, or do research on a few GPUs, you need tests your model can actually pass.
What you get: open datasets on Hugging Face, lengths from 1K to 128K tokens, a known answer for every question, and a built-in check that a model can’t pass by guessing.
Links in the first comment. Shortcuts you find are very welcome.
Four papers that shaped these checks:
- TinyStories (Eldan & Li, 2023): simple stories that models of a few million parameters can learn to write. https://arxiv.org/abs/2305.07759
- bAbI (Weston et al., 2015): small templated stories, one reasoning skill per task. https://arxiv.org/abs/1502.05698
- BABILong (Kuratov et al., 2024): the same skills hidden in very long books. https://arxiv.org/abs/2406.10149
- Zoology (Arora et al., 2023): recall gets harder with more keys, and many efficient architectures fail exactly there. https://arxiv.org/abs/2312.04927
#AIResearch #MachineLearning #SmallLanguageModels
FIRST COMMENT:
The datasets, free to use:
Cogito Text World (facts inside simple stories): https://huggingface.co/datasets/ksopyla/cogito-text-world CogitoProbe tests without language: Bits https://huggingface.co/datasets/ksopyla/cogito-probe-bits · Bind https://huggingface.co/datasets/ksopyla/cogito-probe-bind · Arith https://huggingface.co/datasets/ksopyla/cogito-probe-arith · Props https://huggingface.co/datasets/ksopyla/cogito-probe-props
The whole collection: https://huggingface.co/collections/ksopyla/cogito-capability-checks-6aca2db88ba9d2714727489f
The whole journey on my blog: https://ai.ksopyla.com/projects/cogito-capability-datasets/
SECOND COMMENT (optional):
Four papers that shaped these checks:
TinyStories (Eldan & Li, 2023): simple stories that models of a few million parameters can learn to write. https://arxiv.org/abs/2305.07759
bAbI (Weston et al., 2015): small templated stories, one reasoning skill per task. https://arxiv.org/abs/1502.05698
BABILong (Kuratov et al., 2024): the same skills hidden in very long books. https://arxiv.org/abs/2406.10149
Zoology (Arora et al., 2023): recall gets harder with more keys, and many efficient architectures fail exactly there. https://arxiv.org/abs/2312.04927