Tasklets: A Unit-Test Benchmark for Language Model Architectures

Zayd Muhammad Kawakibi Zuhri, Munachiso Samuel Nwadike, Kentaro Inui, Alham Fikri AjiarXiv 2026

Imagine you’re building a high-performance engine. Before you drop it into a car and race it around a track for 24 hours, you’d probably want to test the individual components. Does the fuel pump actually pump? Do the spark plugs fire in the right order?

In the world of Large Language Models (LLMs), we’ve been skipping the bench tests and going straight to the racetrack. We build massive models with billions of parameters, train them for months, and then see if they can pass the Bar Exam. This paper, "Tasklets: A Unit-Test Benchmark for Language Model Architectures," argues that we need a better way to test the "spark plugs" of AI—the sequence-mixing layers—before we commit to the "big race."

TL;DR

Tasklets is a standardized "gym" for AI architectures, featuring 16 synthetic tasks that test fundamental skills like memory, logic, and counting. By running these low-cost unit tests on 24 different model types, the authors reveal exactly where popular architectures like Transformers and Mamba excel—and where they fundamentally trip over their own feet.

What Problem Does This Paper Address?

Modern LLMs are built from stacks of layers. Some layers process tokens individually (MLPs), but the "secret sauce" lies in sequence-mixing layers (like Attention or Mamba), which allow the model to look back at previous words to understand the current one.

When researchers invent a new type of layer, they usually test it on a handful of "synthetic tasks" to prove it works. However, every paper uses different tasks, different sequence lengths, and different evaluation metrics. It’s fragmented and messy. Furthermore, training a full-scale model to see if a new layer works is incredibly expensive.

The authors created Tasklets to provide a unified, computationally cheap "unit test" suite. It allows researchers to see if a new architectural idea can handle basic "computational primitives" before spending millions on a full-scale training run.

Methods

The researchers curated 16 tasks and grouped them into seven capability categories:

  1. Recall: Can the model remember a specific value associated with a key?
  2. Copying: Can it repeat a sequence back to you (or reverse it)?
  3. Memorization: Can it learn a fixed mapping during training?
  4. Counting: Can it keep track of how many times a token has appeared?
  5. Stack Operations: Can it simulate "Push" and "Pop" logic?
  6. Formal Languages: Can it recognize complex grammatical structures (like nested brackets)?
  7. State Tracking: Can it maintain a running internal state (like doing modular addition)?

They tested 24 different architectures—including standard Transformers, various State Space Models (SSMs) like Mamba, and classic RNNs like LSTMs—using tiny models (~150k parameters) to keep the playing field level and the costs low.

Datasets

The paper introduces the Tasklets benchmark itself. For each of the 16 tasks, they generate 100,000 training examples and 3,000 test examples. The vocabulary is kept small (292 tokens), and the sequences are relatively short (around 128–193 tokens), making it possible to run these tests on a single consumer GPU in minutes.

Key Insights and Ideas

  • The "Delta Rule" is a Game Changer: Linear RNNs (like DeltaNet) that use a "delta rule"—essentially updating memory by focusing on the difference between new info and old info—are significantly better at recall than simpler "diagonal" models like the original Mamba.
  • Attention is the King of Copying: Standard Softmax Attention (the heart of the Transformer) is nearly unbeatable at tasks that require direct access to the past, like copying or associative recall.
  • The State Tracking Paradox: Surprisingly, the very models that rule the leaderboard (Transformers) are terrible at "State Tracking." If you ask a Transformer to keep a running sum of numbers, it often fails.
  • The Revenge of the RNN: "Old-school" nonlinear RNNs like LSTMs and GRUs were the only models that truly mastered state tracking. This suggests that while Transformers are great at "looking back," they struggle to "carry a thought forward" in a compressed way.

Key Results

The researchers produced a "leaderboard" of how many tasks each architecture could solve (defined as >90% accuracy).

Number of tasks solved by each architecture. Softmax attention models lead the pack, while many diagonal linear RNNs struggle with recall and copying.

As seen in the heatmap below, there is a clear divide in capabilities. Transformers and their cousins (PaTH, FoX) dominate the top half (Recall, Copying, Stacks), but almost everyone—except for the Nonlinear RNNs at the far right—fails miserably at State Tracking.

Figure 2. Test accuracy of all 24 architectures on the 16 Tasklets tasks. Columns are grouped by architecture family and sorted within each family by mean accuracy across tasks. Rows are grouped by capability. Each cell reports the test accuracy of the run with the lowest validation loss among the three learning rate runs (Section 4.2).

Limitations and Future Work

The authors are careful to note that doing well on Tasklets is a necessary but not sufficient condition for a great LLM. Just because a layer can pass a "unit test" doesn't mean it will behave perfectly when scaled up to a trillion parameters or when asked to write poetry.

Future work involves using Tasklets to design "hybrid" architectures—mixing and matching layers to create a model that has the "perfect memory" of Attention and the "logical state tracking" of an LSTM, all while remaining efficient.

Summary updated

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.
BibTeX
@misc{zuhri2026tasklets,
  author = {Zayd Muhammad Kawakibi Zuhri and Munachiso Samuel Nwadike and Kentaro Inui and Alham Fikri Aji},
  title = {{Tasklets: A Unit-Test Benchmark for Language Model Architectures}},
  year = {2026},
  eprint = {2611.27607},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27607},
}
Figure