Turning the hierarchy on the models
The previous lessons built a ladder of computational power and pinned language to it: morphology is regular, syntax is mildly context-sensitive. Modern language models are not written as grammars, but they are still computational devices, so the natural question is where they sit on the same ladder.
The way to ask it precisely is through formal language recognition. Take a synthetic language defined by a clean rule, such as strings of balanced brackets, or strings of the form a-to-the-n b-to-the-n, and test whether an architecture can learn to recognize it and, crucially, generalize to longer strings than it was trained on.
Length generalization is the sharp test. Any model can memorize a finite training set. Only a model that has actually captured the underlying rule keeps succeeding as the strings grow. This reframes a vague question, how smart is this network, into a precise one with a known answer.

