The Grammarian’s Paradox
Part 2 of 4: How Pāṇini, Bhartṛhari, and a 1,500-year-old conflict in Indian linguistics exposed the flaw in token-by-token AI.

01The Machinery of Words
Everyone knows that ancient India gave the world zero and the decimal system, pioneered trigonometry and combinatorics, and tracked planetary orbits with remarkable precision. What gets talked about less often in engineering circles is that this mathematical culture grew up right alongside a deep, centuries-long inquiry into the human mind.
It is tempting to picture mathematics and the study of mind as separate pursuits. Across the subcontinent, they were not: thinkers treated the physical world and cognition as a single inquiry, spending generations mapping how raw sensory data turns into a concept, how memory holds onto experience, and where understanding actually happens.
Language sat right in the middle of both interests. On one side, speech had a clear, rule-bound structure that appealed to the mathematician; on the other, it was the primary bridge between one mind and another. So Indian scholars went after both problems at once: they wanted to write down the exact algorithmic rules that generate valid sentences, and they wanted to know how a mind extracts meaning from them.
By the fourth century BCE, this inquiry had produced one of the great monuments of formal thought. A grammarian named Pāṇini composed the Aṣṭādhyāyī, a system of roughly 4,000 algebraic rules capable of deriving the grammatical forms of Sanskrit. It was neither a dictionary nor a style guide; it was a generative machine. Using root morphemes, context-sensitive transformations, recursion, and meta-rules that govern how other rules fire, Pāṇini built an algorithmic engine two millennia before modern computer science invented compilers or Backus-Naur Form.
To anyone building artificial intelligence today, Pāṇini’s project feels immediately familiar. Where Pāṇini hand-crafted the rules of syntax and modern neural networks infer them statistically from trillions of words, both are solving the mechanics of valid expression.
Yet precisely because Indian scholars mastered formal syntax so early, they ran headfirst into a wall that modern AI is only now beginning to confront: having a formal engine that lawfully arranges symbols does not explain how a mind understands what those symbols mean. You can construct a grammatically flawless sentence that says nothing coherent about reality, just as you can instantly grasp a friend’s meaning through broken grammar or an unfinished phrase.

By the early centuries of the first millennium CE, the gap between the machinery of words and the experience of meaning had become a central battleground in Indian philosophy.
02The Paradox of Vanishing Sounds
To see the problem those early thinkers were wrestling with, imagine someone standing across from you and saying:
The old man watched the crane beside the river.
As the words arrive one after another, the word crane hangs in the balance. You might picture a rusted steel boom on a construction barge, or a long-legged bird in the reeds. Then the speaker adds a second sentence:
It spread its wings and lifted into the mist.
Instantly, the steel machine vanishes. The crane is a bird, the riverbank comes into focus, and the entire scene locks into place.

Think about the physical mechanics of what just happened. When the speaker pronounced the word crane a few seconds ago, the acoustic vibrations hit your eardrum and immediately dissipated into the air. By the time the word wings arrived, the sound of crane no longer existed in the physical world. Even within a single word, no two syllables coexist at the same moment; the first sound must die for the second to be spoken.
If spoken language is nothing more than a parade of vanishing sounds, never existing all at once in the air, then how does the mind ever experience a whole sentence? And how do words spoken at the end of a sentence reach back to alter the meaning of words that have already disappeared into the past?
Early orthodox schools of Indian philosophy, most notably the scholars of the Mīmāṃsā tradition and the logicians of Nyāya, tried to solve this from the bottom up. They championed what was called padavāda: the doctrine that the individual word (pada) is the primary atom of language. As each sound arrives, it leaves a fleeting memory trace; once a word is recognised, it retrieves a stored concept, and as a sentence unfolds from left to right, the mind stitches those individual word-meanings together like beads on a string.
It was a tidy, sequential theory. Until the fifth century CE, when a grammarian-philosopher named Bhartṛhari tore it apart.
03Bhartṛhari’s Inversion: The Whole Before the Parts
Building on earlier insights from the grammarian Patañjali, Bhartṛhari opened his masterwork, the Vākyapadīya (Treatise on Words and Sentences), by arguing that the sequential, word-by-word camp had the nature of comprehension completely backwards.
Splitting a sentence into individual words and grammatical stems is a useful classroom exercise for linguists, Bhartṛhari argued, just as splitting a melody into isolated frequencies is useful for a music theorist. But nobody experiences a familiar song as a sequential addition of detached notes. A single note derives its entire emotional and musical character from the melody as a whole; change the surrounding phrase, and the exact same frequency feels entirely different.
Language works the same way. In real human communication, the individual word is not an independent building block carrying a fixed brick of meaning. Often, a word doesn't settle into a stable meaning until the rest of the sentence is known. The whole is not assembled at the end from the parts; the whole is what makes the parts meaningful in the first place.
Instead of starting with a sequence of words and trying to figure out how they glue themselves into a thought, Bhartṛhari inverted the causal arrow. He drew a sharp boundary between two levels of linguistic reality, one trapped inside sequential time and one existing outside of it:
- Dhvani (or Nāda): The physical utterances: the stream of acoustic sounds or tokens unfolding across time (krama). Because the human vocal tract is a narrow physical channel, a speaker cannot transmit an entire thought in a single instant. They are forced to serialise their thought into a linear sequence of sounds, one after another.
- Sphoṭa: From the Sanskrit root sphuṭ, meaning "to burst forth" or "to bloom into view", sphoṭa is the unified, indivisible state of meaning (akrama, non-sequential) that sits beneath the words. Inside the sphoṭa, entities, actions, and relationships coexist simultaneously as a single coherent whole, with no "first word" or "last word."

In Bhartṛhari’s model, communication is an act of serialisation and deserialisation. The speaker begins with a unified mental state (sphoṭa) and unpacks it into a time-bound sequence of sounds (dhvani). As the listener hears those sounds arrive one by one, the individual words do not manufacture the meaning from scratch. Rather, each incoming word acts like a progressive clue that clears away ambiguity, gradually revealing the latent, unified sphoṭa in the listener’s mind.
And the moment that state of meaning fully crystallises, it produces what Bhartṛhari called pratibhā: an instantaneous flash of holistic comprehension. Pratibhā is not passive storage; Bhartṛhari described it as the immediate, actionable intuition that tells a conscious being what the situation means and what to do next.
When someone tells you, "Take the blue folder from the second shelf, pull out the unsigned contract, and hand the rest of the files to Meera," you do not walk across the room silently reciting those twenty-two words in a loop. The sequence of sounds (dhvani) has done its job: it has unfolded a unified state of the task (sphoṭa), sparking the actionable readiness (pratibhā) to walk over to the shelf and execute it, even if you have already forgotten the exact phrasing the speaker used.
04The Seventh Century Counterattack and Its Modern Echo
Bhartṛhari’s theory was so radical that it provoked a centuries-long counteroffensive from rival schools who refused to accept the existence of a unified semantic state separate from the words themselves.
In the seventh century CE, two hundred years after Bhartṛhari, the great Mīmāṃsā philosophers Kumārila Bhaṭṭa and Prabhākara formulated two sophisticated competing theories specifically designed to defeat sphoṭa and rescue word-by-word computation:
- Kumārila Bhaṭṭa’s Abhihitānvaya (Late Composition): Kumārila argued that each word first expresses its own isolated, general dictionary meaning (abhihita). Only after retrieving those individual word-meanings does the mind perform a second step of syntactic connection (anvaya), using context and grammar to narrow and link them into a sentence meaning.
- Prabhākara’s Anvitābhidhāna (Contextualised Tokens): Prabhākara realised that isolated word meanings are too brittle. Instead, he argued that words never express meaning in isolation; from the start, each word conveys its meaning only as relationally bound (anvita) to the actions and other words around it.
If you spend your days working on modern neural networks, reading the seventh-century debate between Kumārila, Prabhākara, and Bhartṛhari’s followers induces a sudden sense of déjà vu.
Early NLP pipelines where static word embeddings (like Word2Vec) were looked up independently and then combined downstream were pure Kumārila Bhaṭṭa.
Modern Transformers moved decisively into the camp of Prabhākara. Through self-attention, a Transformer ensures that no token is represented in isolation; every token’s representation is dynamically contextualised by all the other tokens around it. In our earlier sentence, when the words wings and lifted arrive, causal attention reaches back across the Key-Value cache to pull crane into a bird-shaped contextual representation.
Prabhākara’s contextualised token approach is far more powerful than static dictionary lookups, and in deep learning, scaling it up gave us the modern LLM revolution. Yet Kumārila, Prabhākara, and the modern Transformer all still share one thing: they remain fundamentally committed to the sequence of words as the scaffold of comprehension.
A Transformer has no dedicated mathematical object for Bhartṛhari’s sphoṭa: no single, persistent workspace where the unified state of the scene lives independently of the words. Its understanding remains distributed across the history of token activations. Every time a new sentence arrives, the model must send attention heads reaching back through the linear transcript of dhvani to re-establish what is true.

05Turning an Ancient Distinction into an Architecture
Consider two descriptions of a chessboard:
White’s bishop pinned the black knight to the king.
Black’s knight could not move without exposing the king to White’s diagonal bishop.
On the surface of language (dhvani), almost everything has changed: the word order is inverted, the grammatical subject has switched sides, and the verbs are different. Yet in the reality underneath (sphoṭa), the tactical geometry on the squares is identical. And if the next sentence states that the bishop was captured, an intelligent mind does not merely append seven more words to a transcript; it updates the state of the board, freeing the knight and recalculating the surrounding threats at once.

When we named our architecture Sphota, our goal was to borrow from Bhartṛhari a clean architectural principle: the sequential structure through which language arrives across time does not have to be the structure in which understanding is maintained.
Instead of forcing token-to-token attention to carry the entire burden of memory, Sphota separates computation into phases that mirror the movement from dhvani to sphoṭa:
- As incoming tokens arrive, the network extracts the structural shift they imply and folds it directly into a persistent, non-verbal computational workspace we call the Sphota Field, or the S-Field.
- When two differently phrased passages describe the same underlying reality, they are trained to drive functionally equivalent updates into this field. When new evidence contradicts an earlier fact, the state updates directly.
- And when the model needs to speak or act, which is the computational analogue of pratibhā, it shapes its response directly from this unified S-Field. Through context-aware information integration, the network stays grounded in the evolving state while still honouring exact words, numbers, and code syntax whenever precision matters.
This changes the engineering problem of memory. In a token-centric system, the goal is to make a growing history of words cheaper to store and faster to search. In the Sphota architecture, the goal is to extract the underlying structure inside those words so it can live in the S-Field as an evolving state, while letting the disposable phrasing fall away.
06From Philosophy to the Mathematics of Information
Between Pāṇini in the fourth century BCE and Bhartṛhari nine hundred years later, classical Indian thinkers mapped out the two halves of language intelligence: how to generate lawful sequences of symbols, and how to hold the unified reality those symbols reveal.
Over the last decade, modern AI has made huge strides on both fronts. Through high-dimensional embedding spaces, neural networks learned to map words and contexts into rich geometric relationships where similar ideas cluster together. Inside the hidden layers of a Transformer, embeddings capture a remarkable amount of meaning.
Even so, the architecture keeps those embeddings tied to individual token slots. Instead of maintaining a single, unified state of the scene, the model leaves its understanding scattered across a long chain of token vectors, much like Prabhākara’s seventh-century theory of contextualised words. And when we look at how those embeddings are actually trained, we find another historical bottleneck.
Fifteen hundred years after Bhartṛhari, in a Bell Labs office in 1948, Claude Shannon wrote down the mathematical theory of communication that still governs how language models learn today. Because Shannon was trying to send signals cleanly down a telephone wire, he defined information purely as statistical surprise over symbols. When deep learning adopted Shannon’s equations as its core training objective, it forced those rich embedding spaces to predict every minor fluctuation in how a sentence is phrased. With no architectural boundary between deep structural truth and surface wording, today’s models have to burn through billions of parameters and tens of trillions of training tokens just to separate meaning from noise.