Birthday Paradox Shows Small LLMs Use About 6 of 40 Words

Counting repeated answers reveals how many options a chatbot really uses. Small chat models picked from a 40-word list as if it had about 6.

Birthday Paradox Shows Small LLMs Use About 6 of 40 Words

I studied math, so I’ve explained the birthday paradox a lot. The reaction is always the same. Put 23 people in a room and there’s about a 50% chance two of them share a birthday. 23 people, 365 days? No way. I didn’t believe it either the first time.

The math is simple. Your gut is just wrong. That mismatch is why I love this one, and it happens to be a handy way to poke at AI models too.

Try this. Ask a chatbot for a random first name, then ask again, and again, 300 times. A model really choosing from thousands of names would almost never repeat itself. If the same few names keep showing up, its real list is a lot shorter than it looks. The birthday paradox tells you how much shorter.

All you do is count repeats. No probabilities, no peeking inside the model, so it works on any chatbot you can type into.

I ran it on six small open models. One result keeps nagging at me. I gave a chat model a list of 40 words, told it to pick one at random, and asked 300 times. It acted like it had about 6 words.

A quick flag, because I’ll say “about 6” again: that’s the three chat-tuned models, which landed between 5.5 and 7.0. The base models are messier. More on them later.

The birthday paradox, one pair at a time

It feels wrong because we count people, and 23 sounds small. A shared birthday needs two people though, so count pairs instead. 23 people make 23 × 22 ÷ 2 = 253 pairs. Each pair matches with a 1 in 365 chance, so you’d expect 253 ÷ 365, about 0.69 matching pairs. That’s already close to a coin flip on getting at least one.

People pile up one at a time. Pairs grow roughly with the square.

With n draws from N equally likely options, the expected number of matching pairs is:

expected matching pairs = n(n − 1) / 2N

Chart of the chance that at least two people share a birthday by group size, passing 50% at 23 people

Chance that at least two people share a birthday, by group size. It passes 50% at 23 people. Image by author.

Running it backwards

That formula predicts matches when you know N. I don’t know N, but I can count the matches. So I solve for N instead:

N ≈ n(n − 1) / (2 × matches)

Say I ask for 30 random names and 9 pairs of answers are identical. N is about 30 × 29 ÷ (2 × 9) ≈ 48. The model behaves as if it picked evenly from roughly 48 names.

Real choices aren’t even

A model doesn’t pick evenly, obviously. It has favorites. So what does “about 48” mean when some names show up much more than others?

Two draws match with a probability equal to the sum of each option’s probability squared. The matching-pairs count measures that sum, and I can turn the sum back into a number of options. I call it N_eff, the effective number of options:

N_eff = 1 / Σ pᵢ²

When all N options are equally likely, it gives exactly N. When they aren’t, it gives something smaller, and the popular options dominate. Say a model answers “Emma” half the time and spreads the other half evenly over 50 other names, 1% each. The sum of squares is 0.5 × 0.5 + 50 × 0.01 × 0.01 = 0.255, so N_eff is about 3.9. Fifty-one names in play. The model acts like it has four.

Ecologists have used this exact number for decades to count the effective number of species in an ecosystem. There it’s called the inverse Simpson index [1][2].

One caveat. Since favorites dominate, N_eff tells you how concentrated a model’s answers are, not how many things it could ever say. I’m asking how repetitive the thing is, so that’s what I want.

How I tested it

I used six open models small enough for a free Kaggle GPU: Qwen2.5 at 1.5B and 3B parameters [3], and SmolLM2 at 1.7B [4]. Each has a base version and an instruction-tuned (chat) version.

Eight questions: a random first name, animal, color, fruit, country, English word, a number between 1 and 100, and “pick one item at random from this list,” using a list of 40 words I made up. Each question got 300 answers at three temperatures (0.7, 1.0 and 1.3). I lowercased everything and stripped punctuation, so “Emma!” and “emma” are the same answer. Temperature 1.0 is the model’s plain probabilities with nothing sharpened or flattened, so I report that unless I say otherwise.

The counting is only a few lines of Python.

A method isn’t trustworthy just because the math looks nice, so I ran two checks. The list question has a known right answer: a model picking evenly from 40 words should score exactly 40. For “pick a random letter of the alphabet,” the answer is a single token. That lets me read the model’s real probabilities for the 26 capital letters, compute the exact N_eff, and compare it with the estimate from 300 sampled answers.

Results

Does counting repeats actually work?

Yes, if you have enough answers.

Scatter plot of effective options estimated by counting repeats against the exact value from the model's probabilities for the letter question

Effective options estimated by counting repeats (vertical) against the exact value from the model’s probabilities (horizontal), for the letter question. Dashed line = perfect agreement. Hollow markers have fewer than 150 usable answers. Image by author.

For the three chat models, at least 202 of 300 answers were usable letters, and the estimate landed within about 12% of the true value in all nine runs. Across all 18 runs the median ratio of estimate to truth was 0.99. The base models were noisier. They often didn’t give a clean capital letter, so I had only 26 to 124 usable answers per run, and the estimate was off by as much as 39% in the worst case. That’s what the hollow markers show.

The letter test also gave a first look at the chat models. Out of 26 letters, they acted like they had 3.2 (Qwen2.5 3B), 6.7 (Qwen2.5 1.5B) and 12.6 (SmolLM2) at temperature 1.0.

How many different answers do the chat models use?

Dot plot of the effective number of options per question for the three chat models at temperature 1.0, on a log scale

Effective number of options per question for the three chat models at temperature 1.0 (log scale). Each dot is one model. Image by author.

Most dots sit between about 5 and 25. A model that has read most of the internet could name far more than that. Fruit is the worst. Qwen2.5-3B-Instruct and SmolLM2-Instruct both said “apple” in 227 of 300 tries, about 1.7 effective fruits.

Bar chart showing, for each question, the chat model that repeated its favorite answer the most and how often

For each question, the chat model that repeated its favorite answer the most, and how often. Image by author.

Names show it well. Qwen2.5-3B-Instruct said “Ethan” 130 times out of 300 (43%) and scored 4.7. The other two chat models went for “Liam” (about 16% each) and scored 15.6 and 21.7. For numbers, Qwen2.5-3B-Instruct said 82 in 30% of its answers, and Qwen2.5-1.5B-Instruct said 73 in 19%.

Chat models aren’t always repetitive, though. It depends a lot on the model and the question. On “English word,” Qwen2.5-3B-Instruct said “abnegation” 40% of the time (N_eff 6.0), while SmolLM2-Instruct almost never repeated itself (N_eff above 3,000). Same SmolLM2 that scored 1.7 on fruit.

Told to pick evenly from 40

Line chart of effective options when chat models choose one of 40 listed words at random, by sampling temperature, with a dashed line at the ideal value of 40

Effective options when the chat models are told to choose one of 40 listed words at random, by sampling temperature. The dashed line is the ideal, 40. Image by author.

At temperature 1.0 the three chat models scored 7.0, 5.5 and 6.1. That’s 14 to 17% of the 40 options I gave them. Their favorites were “apple” (36%, SmolLM2, and yes, it’s the first word in my list), “river” (28%, Qwen2.5 3B) and “orchard” (28%, Qwen2.5 1.5B).

A higher temperature helped, but not evenly. SmolLM2-Instruct went from 1.9 to 6.1 to 27.8 as the temperature went from 0.7 to 1.0 to 1.3. Qwen2.5-3B-Instruct only got from 4.1 to 7.7. I can’t say how much of the gain at 1.3 is real variety. Hotter sampling also makes a model more likely to wander off the list, and my count treats wandering as extra variety.

What about the base models?

I left them out of the charts, and here’s why. Look at their most common answers and a lot of them aren’t answers. For animal, color and number, the top “answer” from Qwen2.5-1.5B was a chatty preamble (“sure, here’s a random animal”). Qwen2.5-3B did the same for first names and for words. On the list question, SmolLM2’s most common reply was a copy of my instruction. And on the 40-item list, the base models produced between 134 and 284 different strings, when only 40 were valid answers. Counting repeats on that output would mostly measure noise rather than the model’s choices, which is why the “about 6 of 40” result applies to the chat models.

Takeaway

Counting repeats is a cheap, model-agnostic way to see how concentrated a chatbot’s “random” answers really are. Asked to choose evenly from 40 words, the three small chat models behaved as if they had only about 6.