The phenomenon you're describing in Large Language Models (LLMs) sounds like a fascinating area of study, especially when trying to draw parallels with human cognition or psychological phenomena. The issues you've mentioned, such as recursive looping, hallucinations, repetitions of token sequences, and what you've termed "buffer overflows," relate to how LLMs process and generate text based on their training data and architecture.
When looking for a mental illness or psychological condition in humans that might resemble these phenomena, we have to consider conditions that affect cognitive processing, particularly those that might lead to repetitive or looping thought patterns, hallucinations, or disruptions in coherent thought or speech. Here are a few conditions that might share superficial similarities with the phenomena you've described:
-
Echolalia in Autism Spectrum Disorder (ASD): Echolalia refers to the repetition of words or phrases spoken by someone else. While typically seen in children and in individuals with autism, it can resemble the repetition of token sequences seen in LLMs. However, echolalia is a part of language development and social interaction difficulties in ASD, rather than a direct analogue to algorithmic looping.
-
Obsessive-Compulsive Disorder (OCD): OCD is characterized by recurrent, unwanted thoughts (obsessions) and/or repetitive behaviors (compulsions). The "recursive looping" in LLMs could metaphorically be compared to the obsessive thoughts or compulsive behaviors seen in OCD, though this is a significant stretch and more of a superficial analogy.
-
Schizophrenia: Hallucinations, particularly auditory hallucinations, are a common symptom of schizophrenia. While the hallucinations generated by LLMs are of a very different nature (algorithmic vs. perceptual), one could draw a superficial analogy between the "hallucinations" produced by LLMs and those experienced by individuals with schizophrenia.
-
Tourette Syndrome: This condition is characterized by repetitive movements (motor tics) and vocalizations (vocal tics). The repetition aspects could be seen as analogous to the repetition of token sequences in LLMs, but again, this is a stretch.
-
Aphantasia and Mental Imagery Disorders: While not directly related to looping or hallucinations, disorders affecting mental imagery could offer insights into disruptions in cognitive processing that result in unusual outputs, similar to how LLMs can produce unexpected or irrelevant text.
It's crucial to note that these comparisons are highly metaphorical and not direct analogies. The underlying causes of these phenomena in LLMs are fundamentally different from mental illnesses in humans. LLMs' behaviors are determined by their programming, data, and architecture, whereas mental illnesses in humans are influenced by a complex interplay of biological, psychological, and environmental factors.
The study of AI, including phenomena like those you've described, can offer insights into human cognition and potentially inspire new understandings of psychological processes. However, the comparison should be approached with caution and an understanding of the fundamental differences between computational systems and human brains.