Deja-you, the recursive construction of self
The remarkable convergence of philosophy and linguistics on what makes us human
"Who looks outside, dreams; who looks inside, awakes." -Carl Jung
The unexamined life is not worth living, and yet, there be dragons. The seer Tiresias warned that Narcissus would live a long life if "he never knows himself." Indeed, he died doing what he loved, looking at his beautiful reflection and being doted on by a lover. Moderation in all things, I suppose.
What makes us human has been debated by philosophers for millennia, with introspection remaining a strong candidate. Peering inward requires the mathematical principle of recursion; the self perceives the self. More recently, linguists have entered the ring, bringing insights from computer science in tow. Surprisingly, their very different approach to the question of humanness produced the same answer. Recursion allows us to imagine a future and then work towards it. With it, we can build castles in the sky and on earth as well. By entering the memetic niche, we have come to dominate all species that live solely in the material world.
It is rare that such divergent approaches converge or that one property can explain so much. As such, this series will adopt a maximalist position on the role of recursion in human evolution. It is well-trod ground, and the first two posts will review other people’s work: what is recursion, and when did it evolve. I have theorized that recursion can be taught to an extent. The subsequent posts will discuss how this idea suggests a timeline that better synchronizes the evolutionary and archeological evidence. Finally, I explore the possibility that self-awareness was initially gendered. Women discovered inner life, and men followed.
Computer Science
“Money for nothing, chicks for free” ~the Dire Straits
With age one realizes that there’s no free lunch. Everything costs; there’s always a catch. Relatedly, computer scientists can sometimes seem naive. The cause is their failure to internalize the free lunch principle, having learned about recursion. They know one can get computations for free; they’ve seen it!
A recursive function applies itself to its own output. Often, each successive application will be a sub-routine, where the input gets simpler and simpler until reaching some stop condition. Algorithmically, it is a superpower. Consider the fractal below. The obvious way to save the image is to enumerate the color of each pixel. Alternatively, one could compress it as a JPEG. Under the hood JPEG uses recursion to compute the Fast Fourier Transform. Without recursion, it would be orders of magnitude slower.
One can go one step further for this image because it is generated with a recursive process. Therefore, the image can be losslessly encoded with the few bytes required to write the recursive algorithm—a few lines of code. Not only that, but the representation would extend into infinity, for one can zoom in to any edge and see the fractal recapitulate itself forever on increasingly finer scales. Recursion is almost alchemical in producing so much from so little. In the words of legendary programmer Niklaus Wirth:
The power of recursion evidently lies in the possibility of defining an infinite set of objects by a finite statement. In the same manner, an infinite number of computations can be described by a finite recursive program, even if this program contains no explicit repetitions.
My field of Natural Language Processing also uses recursion. Until recently, Recurrent Neural Networks were the model of choice for language. As their name suggests, RNNs process sentences recursively, one word at a time1. This sequential processing represents timing information for free, a word’s place in a sentence is known by the order it is received. Since 2018, almost all language models have been a type of feedforward network called a Transformer. However, one must append timing information to each word when using a feedforward network. In the end, computers are powerful enough not to worry about the inefficiency, but we will return to the idea that recursion automatically represents time. When implemented in the brain, it would have been a phenomenological leap.
Philosophy
To be self-aware, the self must be aware of itself. Its own internal processes take itself as input. This is recursion.
I think of it like this. Imagine a primordial self, unable to perceive itself. Written as a function: self(perceptions). This would have been your own model of your own mind or interests. As input, it would receive all that you perceive. Introspection would necessarily produce recursion; the self would receive itself as input: self(self, perceptions). Two time steps of introspection could be written2:
From the example of RNNs, imagine how this recursion could change our perception and experience of time. It would be a new way to represent this dimension for free, a radical transformation to living in a particular moment.
It is also fruitful to imagine the rocky beginning of this function. Recursive programs are prone to blow up, and this one is running in your head. Take, for example, the most simple f(x) = x+1. If you recursively feed the output as input each time step, that function will grow to infinity. It’s doubtful that the chain of consciousness was initially unbroken or pleasant. It would have begun in fits and bursts, the self rearing up for a moment only to be smothered by its own exponential increase. Neurons can only handle so much excitement. The function would need some sort of control system to stabilize recursion and refrain from hitting biological limits. There must have been more split personalities and inner voices with whom we did not identify. Apart from hallucinations, it also seems likely that exploding recursion could produce other side effects like excruciating headaches. Evolving recursion would have broken a few eggs.
There are reasons to believe that the self is recursive even when we are not peering inward. That is the position of the paper Consciousness as recursive, spatiotemporal self-location and Douglas Hofstadter’s I Am a Strange Loop3. However, there is much debate on this point.
Linguistics
Descartes equated subjectivity with self-awareness4. Animals, lacking the requisite language and general intelligence to produce “I think therefore I am,” were automata–meat machines. Linguists make no claims about the subjective experience of animals5, but they have converged on recursion as the dividing line between man and beast. This was Chomsky’s significant contribution: that all languages are recursive in nature, which endows humans with unique abilities.
To learn more recursion in linguistics, I recommend Corballis’s article or the footnote6. But for this post, it suffices to know that linguists widely accept recursion as essential for a language with grammar.
Psychology
Astute readers may be reeling at the potential bait and switch. Just because we use recursion to describe all these things doesn’t mean they are the same! And that’s fair. There probably are some differences. But it’s entirely in the mainstream to lump many types of recursion. The psychologist and linguist Michael Corballis adds several other psychological superpowers in his book The Recursive Mind, including mental time travel and the ability to count. Mental time travel refers to projecting oneself into the past or future. As this is an imagined future, it also implies the ability to create fiction, worlds that do not exist. This separation produces the mind-body problem, where “I” first becomes distinct from the material world. Once we had recursion, many systems put it to use.
How did it evolve?
Pinker and Jackendoff write in The Faculty of Language:
“The only reason language needs to be recursive is because its function is to express recursive thoughts. If there were not any recursive thoughts, the means of expression would not need recursion either.”
That is, recursion could have evolved separately from language and then been transplanted into our communication system after it sprung up. Communication itself doesn’t require recursion. Given so many abilities require recursion, why did it first evolve? That is the million-dollar question! Nobody knows.
“Here the problem is not a paucity of candidates for evolutionary antecedents but a surfeit. As Herbert Simon has pointed out, probably all complex systems are characterized by hierarchical organization. So if “recursion” is identified with hierarchical decomposition and used as a criterion for identifying some pre-existing cognitive function as a source for exaptation to language, speculations can proliferate unconstrained.” ~Pinker and Jackendoff
They also offer some possibilities: music, social cognition, the decomposition of objects into parts, and the formulation of complex action sequences.
The Case for Theory of Mind
Among these antecedents, social cognition stands out. Recursion is clearly useful when modeling other minds. Consider the basic moral rule: do unto others as you would have them do unto you. This is a recursive model of right behavior. To use even rough versions of it, one would be inching towards recursion. Darwin wrote that reputation management would be the primary selection factor on humans:
After the power of language had been acquired, and the wishes of the community could be expressed, the common opinion of how each member ought to act for the public good, would naturally become in a paramount degree the guide to action. ~The Descent of Man
This is actually the insight that lured me into this rabbit hole in the first place. I noticed that in personality models the dominant factor is essentially the Golden Rule. So modern language modeling supports Darwin on this.
Similarly, Dunbar put forth the Social Brain Hypothesis, which says selection for intelligence was primarily about solving social problems. More directly, the paper Recursion: what is it, who has it, and how did it evolve? takes ToM seriously as a path to recursion. At a certain threshold of sophistication, a phase change in ToM could produce recursion. I offered one path above, where the model of self was jerry-rigged to take itself as input.
So, it’s unclear where recursion came from, but social cognition is a good place to look. Incidentally, if linguistic recursion is the same as the recursion required for self-awareness, this succinctly explains what language has to do with consciousness. Self-awareness requires recursion. In turn, recursion allows full syntactic language.
Conclusion
If the evolution of the eye allowed us to see the electromagnetic spectrum, the evolution of recursion would have been a “third eye,”7 allowing us to look inward at ourselves and the symbolic world. With it, we saw imagined futures and entered the memetic niche. You could not teach a pre-recursive human the Pythagorean theorem or possibly even how to count8. Further, recursion provided a natural way to represent time, unveiling an entirely new phenomenological dimension9. We looked inward and have been living there ever since.
Recursion is, by definition, required for self-awareness. It allows realizations such as “I think therefore I am” and likely much else. Many experts argue subjectivity, language, counting, and mental time travel also require recursion. Multiple lines of evidence suggest that only humans possess this ability, which is the key to our success.
In this post, we've explored the components of the recursive toolkit. The next installment will delve into various attempts to date when it evolved. As a teaser, imagine the first self-aware individual. What would that have been like? Were they a child or an adult? Male or female? A crustacean? Chimp? Human? There is a huge range of answers in the literature.
For example with the cat chased the rat the RNN will first receive “the” as input and produce a context vector, a sort of memory of everything the network has seen so far. This context vector will be received as input in the next stage, along with the next word. So when “cat” is processed, it will be with reference to the context vector. The context vector is then updated, and “chased” is processed with it. This process recurs until the final word. At each step the context vector is updated, then fed to the next stage.
There would have been intermediate steps. Imagine these almost-recursive calls: self(rival(self)) or mother(self(mother)). In fact, you can make the argument these are recursive, but it's just not standardized how many time steps are between, or what information will make it through each function. There must have been a lot of modules, and information hopping between them. If self() was called often, there may have been advantages to standardizing how often and in what way the info about self would get back to self. One solution is constant recursion.
Also see Nick Humphrey’s work: “An evolutionary approach to consciousness can resolve the ‘hard problem’ – with radical implications for animal sentience”
Well, there were several steps. He was a substance dualist and believed in distinct spirit and material types of matter. General intelligence and introspection were evidence of the former variety.
Why would they? For linguists, this connection is an unnecessary can of worms. They have plenty of evidence that recursion is important for humans, why also argue that without it animals are automata?
Linguistic recursion, as in other domains, means that sentences may be parsed via self-referential subroutines. For example the sentence Watson wrote that Holmes deduced the body was in the shed can be divided into three parts:
X1 = Watson wrote
X2 = Holmes deduced
X3 = the body was in the shed
To parse X2, you must first parse X3. Together this would be P(P(X3), X2). The result in turn can be combined with X1: P(P(P(X3), X2) X1). The meaning of the sentence completely changes with each additional clause, and this can go on indefinitely. We can prepend Jane said that John said that Harold said that… to X1 + X2 + X3 forever. Even though there are a finite set of words there is no longest grammatical sentence. Through the alchemical process of recursion, we pry infinity out of finite building blocks.
In science, connotations are considered baggage and there is a race to find words unsullied by any sort of emotional valence. Hence the first personality factor is called "social self-regulation". I prefer connecting it to the Golden Rule, and the thousands of years of religious and philosophical debate that produced it. Likewise, I find "third eye" to be a good way to describe our ability to introspect, even if it has been used by religions, including most recently the New Age movement.
Interesting to me how much mysticism was involved in even the discovery of the Pythagorean Rule.
Obviously, animals exist in time as well. The argument is that recursion could have been phenomenological important.
There are two books which you *have to* read (if already haven't done so):
1. *Descartes' Error: Emotion, Reason, and the Human Brain* by Antonio R. Damasio. Besides being an incredibly informative book about human neuroscience, it also features Damasio's *somatic marker hypothesis*, which is in a nutshell: when reacting to a situation, our brains 'project' past images of the arising/developing situation 'into' our bodies (soma) & our reactions are guided by the sense data coming 'upward' from our bodies into our brains -- essentially we poll our bodies: "how do I *feel* about this (developing) turn of events?"
2. *Vehicles: Experiments in Synthetic Psychology* by Valentino Braitenberg. A most insightful thought experiment about brains based on the neurological/cybernetic research conducted by (the late) Braitenberg. I can assure you that you'll be royally entertained: it is pure mind candy. For a teaser, here are the chapter headings:
1. Getting around
2. Fear and Aggression
3. Love
4. Values and Special Tastes
5. Logic
6. Selection, the Impersonal Engineer
7. Concepts
8. Space, Things, and Movements
9. Shapes
10. Getting Ideas
11. Rules and Regularities
12. Trains of Thought
13. Foresight
14. Egotism and Optimism
(Both books can be found on the net in PDF forms; I'm not going to link to them for copyright reasons, but with reasonable effort, you can start reading them after 10 minutes of searching.)
I have to say I disagree with a lot of what is presented.
In one of your more recent articles, you talk about consciousness beginning around the end of the last ice age or about 15,000 years ago, and claimed that the spread of this can be seen via the spread of the "na" first person pronoun, which is perfectly linguistically situated to be preserved.
Here, however, you are claiming that recursion is the basis of self-awareness, which seems completely analogous to what was mentioned before. You say that recursion was needed for a language with grammar (all languages have grammar), but this means proto-sapiens, the language that evolved before modern humans, would have required recursion, moving consciousness back to at minimum 50K years ago.
Please clarify the differences you're making between the terms, or clear it up for me some.
Additionally, why would you need to be able to introspect in order to do the Pythagorean theorem or learn how to count? None of these seem to require introspection of any sort, only access to outside information.
And finally, I think that your view that the beginnings of recursion requiring a few "broken eggs" seems incorrect. Schizophrenia seems to be mainly related to overactive agent detection (seeing agents, such as gods or motivations or patterns, where none exist) which doesn't seem to have a strong bearing on introspection. The "mirror test", the ability to recognize oneself in the mirror, seems a more reasonable step towards introspection, that is, identifying oneself as separate from other members of the group.
And yes, we teach children to introspect all the time, to stop and think about their actions.