Home / Writing / Can LLMs juggle?

Can LLMs juggle?

A code-verified benchmark that asks language models to follow the rules of juggling notation, on patterns they have never seen.

neuralnets · 25 November 2026 · 12 min read

Every juggling pattern below is a string of numbers. Type one, or pick one.

Each number is a throw. A ball thrown with height h on beat t lands, and is thrown again, on beat t + h. Colours follow individual balls. A pattern is valid only if no two balls ever land on the same beat; 243 fails, and the clash is marked.

Get the full benchmark on Hugging Face ↗ See the results

Pilot results at a glance

84.4%
DeepSeek V4.1 Flash
456 of 540
63.3%
Gemma 4 31B
342 of 540
59.1%
GLM-5.3 Flash
319 of 540

These are pilot results only: 540 questions, 20 per task and difficulty. The full benchmark, 2,576 questions, will be run later and may change the picture.

Ask a language model what a siteswap is and it will tell you. Ask it whether 2792 can be juggled, how many balls a2m30g30 needs, or how to get from 08089 to 9920 without dropping anything, and you find out whether it can actually use the rules. That gap, between describing a formal system and executing it, is what this project measures.

SiteswapBench is a benchmark built on juggling notation. It has nine tasks, three difficulty tiers and three notations, and every answer is checked by code against a reference implementation of the mathematics. This post covers the problem, how the benchmark is built, and what three models did on the pilot.

1The problem

Most reasoning benchmarks have one of two weaknesses. Either the answers are judged by another model or by string matching against a single reference, or the questions are drawn from a fixed pool that ends up in training data. Both make it hard to tell whether a model followed the rules or recognised the answer.

We wanted a domain with four properties:

Juggling notation has all four. Siteswap was developed by jugglers and mathematicians in the 1980s to describe juggling patterns as sequences of numbers.[1][2] In its simplest form, each number is the height of a throw measured in beats: a 3 lands three beats later, a 1 passes straight to the other hand, a 0 is an empty hand. The pattern repeats forever. It is valid if no two balls ever land on the same beat, and then the number of balls is simply the average of the throws.

From those few rules a surprising amount of structure follows. Each pattern moves balls around a permutation, so balls fall into orbits. At every beat, the set of future landing times is a state, and patterns are paths through a graph of states. A pattern that passes through the most compact state is called ground; one that doesn't is excited, and you need a transition of extra throws to get into it from a normal cascade. There are also synchronous patterns, where both hands throw at once, and multiplex patterns, where one hand throws several balls together.[3][4]

None of this requires world knowledge. All of it can be computed exactly. And because juggling is niche, most patterns a generator produces have never been written down by anyone.

2Methodology

2.1Nine tasks

The tasks run from a single check to search and counting. Each is defined by the mathematics, not by a reference string: for tasks with many correct answers, the verifier accepts any of them.

TaskWhat the model must doExample (gold)
T1ValiditySay whether a pattern can be juggled.55500 → VALID
T2Ball countGive the exact number of balls.a2m30g30 → 7
T3CollisionFind two beats whose balls land together. Any colliding pair is accepted.3355 → [0,2]
T4Ground / excitedClassify the pattern and write its state at beat 0.0637 → EXCITED 0111001
T5Ball trackingFollow the ball thrown at beat 0 and give the beats of its next throws.55500 → [5,10]
T6OrbitsPartition the beats into the cycles balls travel around.53145305520 → three orbits
T7TransitionGive a shortest sequence of throws that leads from one pattern into another, under a height limit.2792 → 8930: [5,8]
T8GenerationInvent a pattern that meets several constraints at once (balls, period, required throws, maximum height, prime).5 balls, period 6, contains 3, no zeros → 663555
T9EquivalenceSay whether two strings describe the same pattern (rotations and repeats).53145305520 vs 31453055205 → SAME
Table 1. The nine tasks. T3 and T8 accept any correct answer; T7 accepts any legal transition of the shortest length.

2.2Three tiers, three notations

Each task has an easy, medium and hard tier, defined by explicit bounds on period length, throw height and, for transitions, graph distance. Easy patterns are short, with throws up to 5. Hard patterns use letters for throws above 9 (so a is 10 and m is 22), run to a dozen beats, and on validity, ball counting and generation, 8 of every 20 hard items switch to synchronous or multiplex notation. Hard transitions are exactly four throws long, proven by breadth-first search over the state graph.

Some cells are small by nature. There are only 60 valid patterns with period at most 3 and throws at most 5, so the full benchmark uses all of them instead of repeating questions.

2.3Controls against shortcuts

The best-known fact about siteswap is the average theorem: in a valid pattern the throws average to a whole number. The converse is false. 243 averages to 3 and still collides. A model that only checks the average would look strong on validity while understanding nothing.

So validity questions are balanced: half valid, a quarter invalid with a fractional average, and a quarter invalid with a whole-number average. The shortcut "valid if the average is whole" scores exactly 75% on this task, and fails every item in the last group.

We also mark each item as famous or fresh. Famous items use well-known patterns from public siteswap lists[5][6][7], like 441 or 53145305520. Fresh items are generated. The pilot has 50 famous items and 490 fresh ones.

2.4Prompts and scoring

Every prompt names the notation and the task, states the answer format, and stops. There is no rules sheet and no worked example: the model has to bring its own understanding of siteswap. The answer goes inside a single pair of answer tags.

Scoring is strict. The verifier recomputes the answer from the formal system rather than comparing strings: any colliding pair counts for T3, any constraint-satisfying pattern for T8, and any legal shortest transition for T7. A response counts as wrong if it has no answer, more than one answer, or was cut off before finishing. The reference implementation was cross-checked against Juggling Lab,[6] a widely used juggling simulator, and solves all 2,576 benchmark items correctly.

2.5The pilot

The pilot has 540 questions: 9 tasks × 3 tiers × 20 items. It is a strict subset of the full benchmark, so pilot items will be re-scored as part of the final run. We tested three openly available models served through Sarvam: Gemma 4 31B, DeepSeek V4.1 Flash and GLM-5.3 Flash, all at temperature 0 with one sample per question. DeepSeek and GLM were run with a low reasoning-effort setting and a 32,000-token output budget; Gemma had an 8,000-token budget. Altogether the pilot produced about four million output tokens.

Pilot results only. Twenty items per cell is enough to see large effects and not enough for fine comparisons: a single cell's accuracy can move by 20 points with a handful of answers. The full benchmark of 2,576 questions will be run later.

3Results

3.1Overall

ModelOverallEasyMediumHardNo usable answer
DeepSeek V4.1 Flash84.4%93.3%80.0%80.0%47
Gemma 4 31B63.3%73.9%69.4%46.7%36
GLM-5.3 Flash59.1%72.2%55.6%49.4%155
Table 2. Accuracy on the 540-item pilot (180 items per tier). "No usable answer" counts responses that ran out of tokens or broke the answer format; they are scored as wrong. With 540 items, the overall numbers carry roughly ±4 points of sampling uncertainty.

The ranking is clear, and the tiers behave as designed: accuracy falls from easy to hard for every model. But the average hides where the difficulty actually lives. The heatmap below shows each task and tier separately.

Correct answers out of 20, by task and tier

020
Figure 1. Each cell is 20 questions. Columns are easy, medium and hard for each model. Darker means more correct.

3.2Checking is solved; planning isn't

The top of the heatmap is nearly solid for DeepSeek. It got all 60 validity, ball-count, collision, orbit and equivalence questions right, at every tier and in every notation, and missed one ball-tracking question. These tasks need careful arithmetic, but each is a single pass over the pattern.

Two tasks break that pattern for every model:

Both tasks need the model to hold a state and search over it, rather than read the answer off the pattern. That is exactly the kind of reasoning a benchmark like this exists to isolate. It also reorders the models: GLM, which trails on the simple checking tasks, is the strongest at transitions when it finishes.

T4 · easy · pattern 525

GROUND 11101

The gold answer. At beat 0 the pattern is not in the ground state 11110, but two beats later it is, so the pattern is ground.

DeepSeek's answer

EXCITED 11101

The state is exactly right. The label is wrong: it judged the pattern by its state at beat 0 only. Five of DeepSeek's T4 errors, and four of GLM's, look like this.

Figure 2. A typical T4 error. DeepSeek computes the hard part correctly, then applies the definition of "ground" to one beat instead of the whole cycle.

3.3The shortcut didn't fool anyone

We expected the average-theorem trap to catch at least one model. It didn't. On invalid patterns with a whole-number average, Gemma and DeepSeek were right 15 of 15 times and GLM 12 of 15. All three beat the 75% shortcut baseline on validity overall.

Validity (T1) accuracy by item type

Valid patterns (30)

DeepSeek30
GLM25
Gemma21

Invalid, whole-number average (15)

DeepSeek15
Gemma15
GLM12
Figure 3. Bars are scaled to the group size. The trap items, which a pure average check always gets wrong, were among the easiest for every model. Gemma's errors run the other way: it rejected 9 of 30 valid patterns.

In other words, the models are not just checking averages. They are simulating landings, and when they fail, they fail by being too suspicious rather than too trusting.

3.4Running out of thought

For the reasoning models, many wrong answers are not wrong answers at all. They are missing. Even with a 32,000-token budget, DeepSeek used up all of it on 47 questions and GLM on 42, never reaching a final answer. These failures cluster on exactly the tasks that need search: 33 of DeepSeek's and 27 of GLM's were transitions, and most of the rest were state classification.

GLM has a second, separate problem. On 113 questions it wrote an answer, then kept reasoning in the visible response and wrote a second answer. In 110 of those cases there are exactly two answer blocks. Strict scoring counts these as wrong, which is why GLM's "no usable answer" count is 155. On the questions where it gave one clean answer, GLM was right 83% of the time; its lower headline score is as much about finishing as about knowing.

Questions with no usable answer, out of 540

Ran out of tokens

DeepSeek47
GLM42
Gemma36

Answered twice

GLM113
DeepSeek, Gemma0
Figure 4. Both kinds of failure are scored as wrong. Running out of tokens concentrates on transitions and state classification; GLM's double answers concentrate on collisions, orbits and equivalence, where its first answer was right at least 85 of 113 times.

Two things follow. First, a token budget is part of the benchmark, and it should be reported next to every score. Second, the transition task is hard in a specific way: the models seem to know how to approach it but explore the state graph so verbosely that the search often does not fit.

3.5Famous and fresh

All three models did better on famous patterns than on generated ones: DeepSeek 90% vs 84%, Gemma 84% vs 61%, GLM 68% vs 58%. We report this cautiously. Famous items are not spread evenly across tasks (they lean towards equivalence and tracking, which are easier), and 50 items is a small sample. The full benchmark has 185 famous items, which will let us compare within each task.

3.6Generation and notation

Asked to invent a pattern under constraints (T8), DeepSeek managed 45 of 60 and GLM 36. Gemma managed 7: in 22 cases it wrote symbols that don't belong to the requested notation, such as synchronous-style brackets in an asynchronous answer. The constraint models most often broke was prime, a pattern that never revisits a state within one cycle, which again requires tracking states rather than throws.

Harder notations were not uniformly harder. On hard validity, ball-count and generation items, DeepSeek was perfect on multiplex patterns (12 of 12) and weakest on synchronous ones (8 of 12).

4Limitations

5What's next

Acknowledgements

The model runs in this pilot used Sarvam Token Factory credits, a gift received through YC Startup School. Thank you to Sarvam and Y Combinator for making the experiment possible.

References

  1. Joe Buhler, David Eisenbud, Ron Graham, Colin Wright. Juggling Drops and Descents. The American Mathematical Monthly 101(6): 507–519, 1994. doi:10.2307/2975316
  2. Burkard Polster. The Mathematics of Juggling. Springer, 2003. doi:10.1007/b97627
  3. Jack Boyce. Siteswap notation. Juggling Lab documentation. jugglinglab.org
  4. Siteswap. Wikipedia. en.wikipedia.org/wiki/Siteswap
  5. List of siteswaps. Wikipedia. en.wikipedia.org/wiki/List_of_siteswaps
  6. Jack Boyce et al. Juggling Lab, version 1.7. jugglinglab.org
  7. Siteswap notes. The Juggling Edge. jugglingedge.com

Cite this work

neuralnets (2026). Can LLMs Juggle? SiteswapBench, a Code-Verified Test of Rule Following in Juggling Notation (pilot results). Building Bad. https://buildingbad.xyz/blog/can-llms-juggle/

BibTeXDownload .bib
@misc{neuralnets2026juggle,
  author       = {neuralnets},
  title        = {Can {LLMs} Juggle? {SiteswapBench}, a Code-Verified Test of Rule Following in Juggling Notation},
  howpublished = {Building Bad},
  year         = {2026},
  month        = nov,
  url          = {https://buildingbad.xyz/blog/can-llms-juggle/},
  note         = {Pilot results}
}

@misc{neuralnets2026siteswapbench,
  author       = {neuralnets},
  title        = {{SiteswapBench}: Code-Verified Rule Following in Juggling Notation},
  publisher    = {Hugging Face},
  year         = {2026},
  url          = {https://huggingface.co/datasets/neuralnets/SiteswapBench}
}