← Back to blog
AiAbout 5 min read

Thirteen eggs stump a whole lineup of models: AI images can draw, but they cannot count

Published Nov 29, 2026
Thirteen eggs stump a whole lineup of models: AI images can draw, but they cannot count

On the evening of November 18, a single hands-on test post pushed "Doubao stumped by thirteen eggs" onto Weibo's trending list. Someone asked Doubao to draw "13 eggs in a box", and the result came back with either 12 or 9. Adding numbers, adding gaps, correcting it over a dozen rounds, still wrong. The same day a question with the same title appeared on Zhihu, and posts carrying the tag ran from morning until late at night.

None of this is new. On October 21 someone on Xiaohongshu had already posted the same test, and on November 15 a Bilibili creator took the prompt, the generation process and the model's layout preferences apart in a visual explainer. What pushed it into the mainstream was the number itself: 13. One more than 12, sitting just outside the template every model knows best.

The failures look remarkably alike

The failed samples people posted share one trait: almost all of them round toward full rows and full columns.

One person wrote "2 rows of 7, 13 eggs, leave one slot empty" and got 11. Another got 14 in one go. Someone asked the model to number each egg, and it labelled two of them "3" before giving up on drawing entirely and answering with a line of arithmetic: "4+4+5=13". Qwen returned 15 under the same prompt, while Kimi got 13 on the first try. These are one-off tests by users, not a benchmark, and both the sample sizes and the prompts vary, so they describe a phenomenon rather than a ranking.

The most systematic attempt came from AI blogger @ZeroGravityWali, who threw one shared prompt (top-down shot, 13 white eggs, visible gaps between them, count before finishing) at nine mainstream image models. Only four produced the right number: GPT Image 2.6, Nano Banana 2.1, Ideogram 4.5 and Luma UNI-1.

The twelve-slot carton is a trap

Start with the most obvious layer: the prior in the training data.

Almost every egg carton in the real world holds 12. Supermarket shelves, fridge doors, breakfast photos, repeated too many times to count. When the model sees the word "egg", its first move is to call up that familiar arrangement rather than place 13 from scratch. The number is not a hard constraint here, it is a side effect of imitating a scene.

Wali's side-by-side comparison backs this up: the models that got it wrong were almost all unconsciously rounding the eggs into full rows and columns. In some frames the 13th egg is wedged into a spot that plainly is not its own, or pushed outside the carton altogether. The model protects a good composition first and lets the number follow.

an egg left outside the tray

There is no counter inside a diffusion model

Go one layer deeper and you reach the generation mechanism itself.

A mainstream text-to-image diffusion model does not draw one, count one, then draw the next. It spreads noise across the whole canvas at once and then denoises in parallel. Inside the model there is no counter and no variable that can accumulate. The object count can only be held implicitly by attention relationships between pixels, and the more objects a frame has to hold, the looser those relationships become.

So when "13" enters the prompt, it reads as a kind of semantic signal, not an instruction that maps one to one onto objects in the picture. The model knows the image should be "somewhat crowded", not exactly by how much. The more precise the request, the more likely it collapses.

This conclusion is not guesswork from users. A 2025 paper carries the finding in its title: "Text-to-Image Diffusion Models Cannot Count, and Prompt Refinement Cannot Help". The authors tested number control systematically and found accuracy dropping clearly as the requested count rises, while prompt edits alone generally do not fix it at the root. Zhihu user @Duojiaolu went through the related literature and found the same direction.

Why those four got it right

Some room for doubt is warranted here. The four models that succeeded did not suddenly learn to count, they more likely added another step.

One approach generates structure before rendering: output a layout or a piece of executable drawing code, work out the 13 positions, then fill each one in. Another brings in an external tool so the model takes a geometric measurement or a count before generating. Neither path relies on the diffusion process itself to hold the number.

That also explains why the same model can drift. One technical blogger reported that Qwen and ChatGPT nailed it first time while Doubao needed four attempts. With an identical prompt, the internal path a model takes can differ completely, so the results are naturally unstable.

What it means if you actually use these tools

If you just want a good-looking image, none of this matters much. Change the number and move on.

If you genuinely need an exact count, an exact arrangement, an exact label, you need a different approach. Three reasonably reliable options: split the image into regions, generate each separately and composite; lay out the composition first in a graphics tool or in code, then let the model fill in materials and light; or give up on making the model count and add the missing one by hand afterwards. The rest of the failures, the "eight donkeys" and the "specific number of flowers", are the same thing underneath.

Worth saying: the most valuable part of this discussion is that people finally started separating two things. Models are good at looking right, not at being exact. Marketing tends to blur the two together, an egg carton pulls them apart very cleanly.

As for what is actually hard about thirteen eggs, the answer may be simple: the model has no trouble recognising eggs, it has simply never been asked to count them properly.

Turn ideas into images with ChatPicture

60 free credits every day. Generate, edit, and download — no prompt engineering degree required.

Related articles