The birthday paradox shows small LLMs pick from about 6 of 40 words
A short demonstration shows that small language models tend to repeat a limited set of words when asked the same question many times. The author writes a few lines of Python that ask a chatbot 300 times, count the repeats, and uses the birthday paradox to estimate the number of distinct words used.
Key points
- Small LLMs pick from about 6 of 40 words when asked the same question 300 times
- The experiment uses a simple Python script that counts repeats and applies the birthday paradox
- The demonstration works on any chatbot you can type into
The result is that small LLMs pick from about 6 of 40 words, and the script works on any chatbot you can type into. The post appears on Towards Data Science and serves as a quick experiment for developers curious about token repetition patterns.
The experiment highlights a potential limitation in small LLMs: they may not generate a wide variety of vocabulary, which could affect the quality of generated content. By applying a simple statistical approach, the author provides a reproducible method for measuring this effect.
Readers can copy the code and run it against their own models to see if the same pattern holds, helping them assess the diversity of outputs from different LLMs.
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Research
All →- Benchmark shows models fail on idioms, local knowledge despite Reasoning gains · 1 src
- Two groups verify Levent Alpöge's Claude-assisted Riemann hypothesis proof · 6 src
- Google DeepMind cuts quantum circuit costs with Gemini 4 agents · 2 src
- AI math proofs need human explanation to become knowledge, essay argues · 1 src
- Lava Security benchmarks OpenAI models for security analysis · 1 src
Comments
via GitHub Discussions