Tasklets: A Unit-Test Benchmark for Language Model Architectures
Organizations: Mila, Canada · MBZUAI, UAE · RIKEN AIP, Japan · Tohoku University, Japan
Abstract
We introduce Tasklets, a benchmark of small synthetic tasks for evaluating the computational capabilities of language model sequence-mixing layers. These tasks probe foundational capabilities such as recall, sequence manipulation, and state tracking. Such tasks are widely used in architecture research, but differences in task selection, formulation, and evaluation make comparisons across studies difficult. Tasklets brings these tasks together, organizing them by the capabilities they test and providing a shared setup for evaluating how different architectural layer types learn fundamental computations. We compare a broad range of layer types through controlled experiments with small models. Our task implementations and evaluation code support reproducible, low-cost testing of new architectural proposals: https://github.com/zaydzuhri/flame/tree/tasklets.
Figures & tables
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Optimizer | AdamW ( , , ) |
| Weight decay | 0.1 |
| Learning rate | |
| Learning rate schedule | Linear warmup with cosine decay |
| Warmup steps | 1,250 |
| Minimum learning rate ratio | 0.1 |
| Model | Layers | Heads | MLP | # Params | |||
| Softmax attention | |||||||
| Transformer | 2 | 64 | 2 | 32 | 32 | SwiGLU | 168,768 |
| FoX | 2 | 64 | 2 | 32 | 32 | SwiGLU | 169,028 |
| PaTH | 2 | 64 | 2 | 32 | 32 | SwiGLU | 177,604 |
| MLA | 2 | 64 | 2 | 16 | 8 | SwiGLU | 143,728 |
| Delta-rule linear RNNs | |||||||
| Model | Settings |
|---|---|
| Softmax attention | |
| Transformer | Multi-head attention with RoPE ( ), without QK-normalisation or attention bias. |
| FoX | A data-dependent scalar forget gate per head, without an output gate. |
| PaTH | Householder position encoding with a rank-32 projection bottleneck and short conv. (kernel 3) on , without a forget gate. |
| MLA | Query LoRA rank 8 and KV LoRA rank 16, with query/key head dimension 16 (8 non-positional and 8 with RoPE, ) and value head dimension 8. |
| Delta-rule linear RNNs | |
LLM Evaluation
Large language model evaluation measures what models can do, how reliably they do it, and whether benchmark scores predict real-world performance.
See all 2,567 papers