How many words does ChatGPT know? The answer is ChatWords

Gonzalo Martínez, Javier Conde, Pedro Reviriego, Elena Merino-Gómez, José Alberto Hernández, Fabrizio LombardiarXiv 2023

TL;DR

ChatWords is a new open-source tool designed to systematically map the "lexical boundaries" of Large Language Models (LLMs). By testing ChatGPT against the official Spanish dictionary and the text of Don Quixote, researchers found that the model fails to recognize roughly 20% of the Spanish lexicon, often hallucinating plausible but incorrect meanings for words it doesn't know.

What Problem Does This Paper Address?

While we frequently evaluate LLMs on their ability to code, reason, or summarize, we rarely look at the raw breadth of their vocabulary. If ChatGPT is becoming a primary tool for content creation, its "lexical knowledge"—the set of words it actually understands and uses—matters immensely.

The authors identify a looming risk: lexical impoverishment. If AI tools only recognize and suggest a subset of a language's vocabulary, and AI-generated text increasingly populates the internet (which then serves as training data for future models), we may enter a feedback loop that shrinks the diversity of human language. This paper introduces ChatWords to quantify exactly how much of a language's "bricks" these models actually possess.

Methods

The researchers developed ChatWords with a modular architecture, consisting of a Python-based engine that interacts with the OpenAI API and a web interface for non-programmers (like linguists) to run experiments.

Figure 3: Block diagram of the ChatWords program

To automate the testing of thousands of words, the system uses four distinct Boolean (yes/no) prompts to check for consistency:

  1. "Do you know the meaning of the word 'X' in Spanish?"
  2. "Is 'X' a correct word in Spanish?"
  3. "Is 'X' a valid word in Spanish?"
  4. "Is the word 'X' in the Dictionary of the Real Academia Española (RAE)?"

By analyzing the combination of answers (e.g., a '1111' bitstring for four "yes" responses), the researchers can gauge the model's confidence and consistency. They also performed manual spot-checks to see if a "yes" answer actually corresponded to a correct definition.

Datasets

The study focused on two primary datasets to evaluate Spanish language proficiency:

  • The RAE Dictionary: A list of 91,168 words from the Real Academia Española, lemmatized to remove gender and number variants.
  • The Quixote: 22,632 unique words extracted from Miguel de Cervantes’ classic novel, Don Quijote de la Mancha.
  • Pseudowords: A small set of fake words generated by the "Wuggy" tool to test if the model would incorrectly claim to know non-existent words.

Key Insights and Ideas

  • Logical Hallucinations: When ChatGPT encounters a word it doesn't know, it often tries to "solve" the word by breaking it into parts. For example, it claimed lavacaras (which means "flatterer") was a "face washer" by combining lava (wash) and cara (face).
Figure 1: Example of ChatGPT answering with an incorrect meaning for a word. "Lavacaras" means "flatterer" and ChatGPT answers with a meaning that seems taken from "Lava" (wash) and "Cara" (face).
  • Consistency vs. Knowledge: ChatGPT-4 is significantly more consistent and "cautious" than version 3.5, but its actual vocabulary size hasn't improved much. It is simply better at admitting when it doesn't know a word.
  • The Simplification Bias: The authors noted that AI suggestions (like those in Bing AI) often push users toward "simpler" or "more common" words (e.g., suggesting "collectively" instead of "collegially"). This reinforces the trend toward a reduced active lexicon.

Key Results

  • Dictionary Coverage: ChatGPT failed to recognize approximately 20% of the words in the official Spanish dictionary.
  • Literary Coverage: It failed to recognize roughly 10% of the words used in Don Quixote. The higher success rate here is likely because the novel uses more common, foundational vocabulary compared to a comprehensive dictionary.
  • The "1111" Drop: For the RAE dictionary, the fraction of words for which ChatGPT 3.5 gave a positive response to all four prompts dropped to just 35%, largely because it struggled to identify words as specifically belonging to the RAE dictionary.
  • False Positives: Manual testing of 100 random words showed a 5% error rate where the model said "yes" it knew the word but then provided an incorrect definition.

Limitations and Future Work

The current version of ChatWords relies heavily on Boolean prompts, which the authors acknowledge can overestimate an LLM's knowledge. A model might say "yes" to avoid appearing ignorant while lacking a true semantic grasp of the word.

Future research directions include:

  • Cross-language Analysis: Investigating if LLMs have a significantly larger lexicon in English compared to other languages.
  • Domain-Specific Testing: Using ChatWords to evaluate knowledge in specialized fields like Law, Medicine, or Engineering.
  • Automated Definition Checking: Moving beyond yes/no questions to a system that can automatically verify the accuracy of a model-generated definition against a dictionary.

Summary updated

BibTeX
@misc{martinez2023how,
  author = {Gonzalo Martínez and Javier Conde and Pedro Reviriego and Elena Merino-Gómez and José Alberto Hernández and Fabrizio Lombardi},
  title = {{How many words does ChatGPT know? The answer is ChatWords}},
  year = {2023},
  eprint = {2309.16777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.16777},
}
Figure