Going Down the Garden Path

Taking a trip down (linguistic) memory lane.

Try reading the following sentence:

Fat people eat accumulates.

Now either you’re wondering what snack is named ‘accumulates’, or you reread the sentence to figure out that it does actually make sense grammatically. It might take some time to unfold its meaning, but try to do so before reading further.

Instead of talking about ‘fat people’ eating ‘something’, it’s rather ‘fat that people eat accumulates’. It’s the fat that is accumulating, not the person. Reading this sentence for the first time threw me off guard, and it took me quite some brainpower to be able to reread it normally.

This phenomenon is called a garden path sentence, and it’s something I encountered a lot in my studies. What makes it interesting is that it gives us some insight into how we parse sentences in our head, as we are making assumptions about what words are coming up, and grouping them on the fly instead of waiting for the whole sentence to finish.

Interestingly (to me at least), this predictive nature is exactly what most language models currently do as well.1 And in comparison to humans, we can actually look into the ‘brain’ of these models to see how surprised they are when they encounter this linguistic rarity.

Garden paths

Back to garden path sentences (and for me back to my humble UU beginnings). In order to explain how these sentences work, we have to look at how sentences are usually constructed. Sentences are made up of individual parts that merge together through grammar to make a complete sentence. One way to visualise how such a sentence is constructed is through constituency graphs, which essentially show you to which group (or constituent) each word belongs. The easiest way is to just go through the example from before:

Fat. An adjective. We need a bit more to form a sentence (unless you’re insulting someone, I guess).
people. Fat people: an adjective and a noun, together a noun phrase.
eat: a verb, so fat people eat… something. You already have a slot ready for what they eat: hamburgers, salads, nuts…
accumulates. That’s a verb, not a noun, and it doesn’t fit the slot. This is where your brain has to stop, and has to go back to recover.
So you back up. The tree comes apart, and you start doubting the words you were sure of. What was Fat doing there?
Fat wasn’t an adjective, it was the noun: the fat (that) people eat. eat moves down into a relative clause about the fat, and accumulates is the verb the sentence was waiting for.
Fat (that) people eat accumulates. You can finally rest again.

Isn’t that fascinating? I always thought these sentences were super cool, and creating these graphs felt like solving a puzzle. At some point I would say the logic behind these graphs starts to fall apart, as there are a lot of clauses being swapped once you start with subsentences, relative clauses and internal references. I was able to dig up some of the (insane) graphs we had to create, all while having to convince everyone that linguistics was more than just learning grammar.

A hand-drawn syntax tree so long that it wraps onto a second line of the page, for a sentence about Margei asking whether Homer said that Lisa wanted to visit next week.A pen-drawn syntax tree on lined paper for 'Noah wonders which picture of himself Carlos likes best'.A pen-drawn syntax tree on lined paper for a sentence where Bart is coaxed to leave, with an arrow showing a moved word.
A selection of notes I could find in conversations with fellow linguistics students back in the day. Shoutout Moon People (Koen Maarten & Fleur).source: My own notes, 2018

Anyway, back to garden paths. There are many more versions, and they don’t only appear in English. English has a few different versions though, while languages like Dutch or German essentially only have one kind of structure that allows it: the so-called ‘conjunction coordination’, or simply using ‘and’ in a surprising manner.

Language Garden path With the right brackets
English The old man the boat. [The old] [man the boat].
Dutch De sheriff zag de indiaan en de cowboy bespeurde het paard. [De sheriff zag de indiaan] en [de cowboy bespeurde het paard].
German Der Tourist fotografiert den Kellner und die Reiseleiterin filmt die Basilika. [Der Tourist fotografiert den Kellner] und [die Reiseleiterin filmt die Basilika].

There has been a lot of psycholinguistic research about what goes on in the brain when people encounter such sentences.2 Now I thought I was the only one who had made the connection to the way current language models generate (token by token), but of course I was wrong. I was first a bit disappointed (like always, everything you thought of has already been done), but then I realised I could just use their work to explore for myself. Win-win.

There were some English datasets available, but I ideally wanted to compare the results with Dutch and German, as I am (too) slowly turning into a true trilingual. Through some digging in OSF I found a Dutch dataset, and could just translate that into a German one to see how well it performs. Then my small experiment is quite simple: run these sentences through the model word for word, look at the probability of the next word, and see how ‘surprised’ the model is after seeing the unexpected word.

Model Gets Sent Down the Garden Path

The word in orangeblue is the one that really comes; when it isn't among the top guesses, the list scrolls down to it (‘no.’ is its place on the list).source: Own analysis, EuroLLM-1.7B

Looking inside the brain

Well, turns out we’re not yet near AGI.3 All models are surprised to see the word pop up, across languages and across types of garden paths. Some sentences worked better than others, which is probably due to the fact that some are just more famous examples (“The horse raced past the barn fell”). The one in our example is clearly not obvious though, as the expected next token is much less likely than in the control sentence.

Now I realised I don’t actually care about these numbers or the tables they produced. I just want to see what the model ‘thinks’ when it sees such sentences, and looking at the aggregate scores, or which model is better than the other, is something I just do in my job, but I (luckily) don’t have to follow those rules here. So let’s just stick with our example sentence for now.

The nice thing with models is that, similar to eye-tracking data in humans, we can actually see what the model is paying attention to. This ‘attention’ is what essentially started (or at least was quite a big turnaround in) the neural language model hype, which was the first domino to the largest IPO in the world.4 Anyway, attention is essentially the model linking words together, or you could argue it’s creating its own constituents (like we had in the graph from before).5

Let’s look at our example again, and compare it to the version that has that. We look at the attention the model has related to each preceding word, which is essentially what the model is looking at when it reads the next word.

The garden path on top, the version with that below. The thicker the arc, the more attention. people looks back at Fat: fat describes people.
eat looks back at people: people are the ones eating.
accumulates mostly finds Fat, the right answer. But people still gets 16%, against 2% with that.
By body it’s mostly back on track, but people still hangs on.

The real garden path

What a trip down memory lane.6 I have to say that even though I miss the pre-LLM (computational) linguistics, I am also grateful I never have to draw these graphs anymore. Doing it now made me happy though, and being able to connect my current work a bit to my past made me realise how much this domain has changed. At the same time, I would never have had the time to set up the testing environment this quickly, or create the animations to visualise my intuition, if it wasn’t for the field evolving the way that it has.

Hope it was half as interesting to read as it was to write. I’m off touching grass (cringe) on a real garden path, climbing up the Uetliberg instead of spending more hours behind my screen.

A forest path of wooden steps covered in brown fallen leaves, winding down a steep slope between bare trees, with the city faintly visible below.
The Uetliberg in fall, last year.source: My own photo, 2025

Here are the numbers of the analysis anyway, but as you can see the chosen sentence was chosen for a reason. Something something cherry picking?

Every model trips, in every language

ModelEnglishDutchGerman (die/das)German (der)Fat people eat accumulates
EuroLLM-1.7B3.2×4.7×6.2×1.3×31,000×
Qwen2.5-0.5B8.0×5.0×13×8.5×48,000×
Qwen2.5-1.5B6.2×7.0×11×7.4×30,000×
How many times less likely the trap word is than without the trap. The 120 Dutch ‘and’ sentences from Frank & Hoeks, translated; the last column is our example. German ‘der’ gives the trap away (the object would be ‘den’), ‘die’ and ‘das’ don’t.source: Own analysis

Technical report