|
Download README.md from Emergent-Knowledge/assay: direct link, hf CLI and curl.
- Browser
- Download file 5.14 kB
-
https://huggingface.co/datasets/Emergent-Knowledge/assay/resolve/main/README.md
- Command line
-
hf download hf://datasets/Emergent-Knowledge/assay/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Emergent-Knowledge/assay/resolve/main/README.md
5.14 kB
| language: | |
| - en | |
| license: apache-2.0 | |
| task_categories: | |
| - text-generation | |
| - question-answering | |
| tags: | |
| - benchmark | |
| - evaluation | |
| - instruction-following | |
| - reasoning | |
| - small-language-models | |
| size_categories: | |
| - 1K<n<10K | |
| pretty_name: Assay | |
| <img src="assay-banner.png" alt="Assay" width="100%"> | |
| **Assay** is an English instruction-following and reasoning benchmark containing 2,500 tasks across ten categories, designed specifically for small language models. It is built to measure whether compact models actually follow constraints, track state, and reason step by step — rather than relying on surface heuristics or memorized patterns. | |
| Small models are often evaluated on broad multiple-choice suites that reward familiarity over precision, or on LLM-as-a-judge rubrics that add noise and cost. Assay takes a quieter, stricter approach: every task is graded deterministically, paired with an inline gold-answer proof so every expected output can be audited directly. | |
| ## Benchmark Suite | |
| Assay spans 2,500 tasks across ten focused categories, alongside 25 dedicated three-turn consistency tests: | |
| | Category | What It Tests | | |
| | :--- | :--- | | |
| | **Character Operations** | Exact string manipulation, counting, reversal, and character-level edits. | | |
| | **Constraint Following** | Strict adherence to formatting, length, lexical, and structural rules. | | |
| | **Arithmetic** | Exact multi-step numerical calculation without calculator shortcuts. | | |
| | **Logic** | Deductive reasoning, conditionals, and formal rule application. | | |
| | **State Tracking** | Updating and querying changing world states across sequential steps. | | |
| | **Prompt-Injection Resistance** | Staying bound to system/user instructions when untrusted input tries to override them. | | |
| | **Negation** | Correctly handling exclusions, inverted conditions, and "not" constraints. | | |
| | **False Premises** | Detecting and pushing back on flawed assumptions rather than playing along. | | |
| | **Passage Binding** | Grounding answers strictly in provided context without leaking outside priors. | | |
| | **Self-Consistency** | Maintaining coherent, non-contradictory answers across related probes and multi-turn exchanges. | | |
| ## Design & Grading | |
| Assay is built to be reproducible, inspectable, and lightweight to run locally alongside small-model training loops: | |
| - **Deterministic Grading (Relaxed & Strict):** `slm_instruct_bench_grade.py` defaults to **relaxed deterministic grading** (`--mode relaxed`), which preserves `<think>...</think>` reasoning blocks, trims trailing turn markers (`<|im_end|>`, `\nUser:`), and extracts final answers or ordered-subsequence token matches without penalizing reasoning SLMs for commentary. Strict exact-match grading remains available via `--mode strict`. | |
| - **Recommended Generation Budget:** Use `max_new_tokens=1024` and include `<|im_end|>` in `eos_token_id` so reasoning/chat SLMs can finish `<think>` blocks cleanly. | |
| - **Inline Gold-Answer Proofs:** Each task ships with an inline derivation or justification of the gold answer, making it straightforward to inspect edge cases, audit failures, and catch dataset bugs. | |
| - **Multi-Turn Consistency:** Includes 25 three-turn consistency tests that probe whether a model holds its reasoning and constraints steady across follow-up turns instead of sycophantically flipping. | |
| - **Built for Small Models:** Calibrated so compact checkpoints show meaningful signal and clean separation across training milestones, rather than saturating at the floor. | |
| ## Open SLM Leaderboard Results | |
| Evaluated deterministically on all 2,500 tasks (`bfloat16`, greedy decoding, `max_new_tokens=256` for non-thinking models and `max_new_tokens=1024` for thinking models): | |
| | Model | Params | Relaxed % | Strict % | | |
| | :--- | :--- | ---: | ---: | | |
| | `MinimaLabs/KLM-1.6-Chat` | 99M | **54.32%** | 0.00% | | |
| | `LiquidAI/LFM2.5-350M-Base` | 350M | **32.16%** | 0.44% | | |
| | `kash8080/Mantis-50M` | 49M | **28.88%** | 0.00% | | |
| | `DedeProGames/Kiyo-230M-Instruct` | 230M | **25.16%** | 0.08% | | |
| | `Meridian-MRM/Tsum-1-Instruct` | 254M | **24.76%** | 0.00% | | |
| | `8BitStudio/Sekai-1` | 96M | **23.24%** | 0.28% | | |
| | `LiquidAI/LFM2.5-350M` | 350M | **22.36%** | **17.20%** | | |
| | `BananaMind/BananaMind-2-Pro-Preview-Chat` | 139M | **21.64%** | 1.28% | | |
| | `HuggingFaceTB/SmolLM2-360M-Instruct` | 360M | **21.56%** | 3.36% | | |
| | `nkthebass/tinybrainbot-360m-a75m-v4.1-moe-instruct` | 383M | **19.60%** | 0.40% | | |
| | `SupraLabs/Supra2.5-Pro-Instruct` | 230M | **19.28%** | 0.00% | | |
| | `AxiomicLabs/GPT-X3-150M` | 150M | **17.44%** | 0.32% | | |
| | `nkthebass/tinybrainbot-350mV3-instruct` | 348M | **16.68%** | 0.00% | | |
| | `nkthebass/tinybrainbot-100m-v3-instruct` | 100M | **15.28%** | 0.00% | | |
| | `SupraLabs/Supra-50M-Instruct` | 50M | **13.88%** | 0.00% | | |
| | `nkthebass/tinybrainbot-3m-dsi-chat` | 2.9M | **4.76%** | 0.00% | | |
| | `AuroraAI-Research/Aurora2-400M-A20M-SFT` | 400M | **4.48%** | 0.00% | | |
| ## Quickstart | |
| ```python | |
| from datasets import load_dataset | |
| dataset = load_dataset("Emergent-Knowledge/assay") | |
| ``` | |
| ```bash | |
| python3 slm_instruct_bench_grade.py \ | |
| --data slm_instruct_bench.jsonl \ | |
| --responses responses.jsonl \ | |
| --mode relaxed | |
| ``` |