DigestAI news desk

Cut through the AI noise.

Research

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.

1 source

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.

Read the original at Towards Data Science · by Utkarsh MangalOpen source ↗
Pass it on WhatsApp Telegram Email

Topics · follow one to build your own front page

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.

Comments

via GitHub Discussions

More in Research

All →

Related stories