Latent Taxonomies: A Statistical Parlor Trick?
Toy Pythia experiments, conclusions frontier models have outgrown, and cosine evidence that doesn't prove a taxonomy.
In this series, we review NeurIPS, ICLR, AAAI, ICML, and CVPR papers in an approachable way. Our main tool is NotebookLM, which is hacking into our human desire for narratives. To supplement, I provide commentary drawn from my experience as a Senior Research Scientist at Nvidia.
Today’s paper:
Latent Taxonomies: How Property Induction Develops in Language Model Pre-training, ICLR 2027 submission (under review).
Commentary
This paper, “Latent Taxonomies,” was just really strange. I really didn’t like it.
The idea is to see whether the language model essentially builds classification buckets that allow generalization—a sort of, I don’t know, maybe not a knowledge graph, but category buckets that humans do naturally. They concluded that yes, they do, by generating a synthetic dataset of relational objects and inserting it into the training data using the Pythia model series.
And their conclusions are just, I don’t know, they must already be solved problems in current frontier models, because I don’t observe these mistakes. So they’re saying that small models are forced to generalize because they have smaller capacity, so they can’t just do rote memorization. This is clearly one of the primary challenges of frontier models, and they’ve solved it, I would say, for at least a year.
The second thing they’re trying to push towards is that the context can override any sort of natural protection or ethical safeguards. But that’s obviously something they’ve been working on tremendously, so this is just hugely out of date. Really toy models, and they don’t really give any mechanistic explanation.
They use this cosine weight example to try to prove that the taxonomies are actually being built, because the cosine weights are moving closer together. But this doesn’t really strictly contradict the idea that it’s just a statistical parlor trick. Their mechanistic explanation is not good.
So there’s something deeply wrong with this paper. I don’t know if it’s being misrepresented by the NotebookLM summary, or whether there’s been something very broken in the peer review.
NotebookLM podcast and transcript (AI transcription)
Read full AI transcript
“So imagine you're just scrolling through an article online, and you learn a completely new random fact.
Okay, like what?
Like, let's say you read that robins have sesamoid bones. Right. Now, if I were to ask you right after that, do you think sparrows have sesamoid bones?
You'd almost certainly say yes, right? It just kind of makes intuitive sense.
Yeah, absolutely. But if I asked you, do whales have sesamoy bones, you'd probably pause, sort of recalibrate and conclude that they don't.
Which is actually a pretty complex cognitive maneuver you're doing there, even if you don't realize it. Exactly, because you didn't need to read a second article about sparrows and you definitely didn't read one about whales. Your brain just automatically extended that initial property based on, well, the categories you already understand.
Right. Robins and sparrows are small birds. Whales are, you know, massive aquatic mammals. Yeah. So you kept the new fact inside its proper boundaries. And this trait is called category-based property induction. It's basically the foundation of how human beings process the world.
We don't just memorize isolated facts. Right.
We slot them into this massive, invisible family tree in our minds. And the mission for our deep dive today is to figure out if artificial intelligence, specifically large language models, are capable of doing the exact same thing.
And we actually have a really fascinating new research paper anchoring this discussion today. It's called Latent Taxonomies, How Property Induction Develops in Language Model Pre-Training. Such a catchy title.
Right. But it really attempts to resolve a major ambiguity in the AI field, because up until now, it just hasn't been entirely clear if models naturally build these mental family trees just from their basic training, you know, predicting the next word, or if they are simply executing this massive, shallow memorization of the Internet.
And the challenge with figuring that out is pretty obvious. If you want to test whether an AI actually understands categories, you can't really test it on real words.
Exactly. You can't ask it about robins and sparrows.
Because the model has already scraped Wikipedia. It already knows the biological classification of a sparrow. So if it answers correctly, you have absolutely no idea if it actually used inductive reasoning, this category-based leaping.
Or if it just retrieved a string of text that it memorized during its training. Right. So to so convent that, the researchers had to construct a completely synthetic reality.
They made a fake world.
Basically, yeah. They used a linguistic tool called the Wuggy Generator to create pseudowords.
Wuggy Generator.
Yeah, Wuggy. So these are terms that adhere to the phonetic rules of English, but they carry absolutely zero inherent meaning. Okay. So instead of dealing with the robins and whales, the models were introduced to completely made-up entities named Bizder and Ruper.
Bizder and Ruper.
Got it. And instead of physical traits like sesamoid bones, these entities were assigned fictional properties like Gruffer's Bronley.
So it's basically an alien biology textbook.
Yeah. That's a great way to look at it.
You're slipping this completely fictional animal kingdom into the model's reading list just to see if it can independently deduce the underlying rules of this alien world without being handed an explicit glossary.
Precisely. And the researchers organized these fictional entities into a really rigid, three-level-deep hierarchy. It was this perfectly balanced hidden family tree. And the structure was defined purely by which entities shared which properties.
Okay, so how did they link them?
Well, for instance, Bizder and Ruper would share multiple properties because they occupy the same branch or category in this fake world. But Bizder and a completely different entity might only share one high-level property.
Oh, I see.
And crucially, the researchers never told the AI about these categories. They just took sentences pairing these entities with their properties and injected them directly into the pre-training data of two real model families.
Which models? Pythia and Olmo 2. And they just put this alien textbook right alongside their regular diet of normal, everyday internet text. Okay, I want to pause on the mechanics of that for a second.
Because the model is just, you know, reading through standard data, predicting the next word.
And suddenly it encounters a sentence like, research confirms that bizder gruffery is brandly.
Right. In the actual architecture of an LLM, the model is just trying to minimize its loss, right? Like if it guesses the next word wrong, a function calculates an error penalty, the loss, and the model updates its internal math to avoid that specific penalty next time.
Exactly. It's just massive trial and error.
But that underlying mechanism of just minimizing loss through next token prediction, that's the only objective the model has.
Yeah, that's it. And yet, purely through that basic function, the models developed what we call taxonomically aligned inductive generalization. Okay, meaning they started connecting the dots between the alien entities completely on their own.
Yes.
So if the model was taught that Bizder has a brand new, highly specific property, it automatically assumed that Rupert had that property too, simply because they had shared other properties in the past.
Exactly. Like a person would with the robin and the sparrow.
Right. And it didn't extend that property to unrelated alien entities. It essentially deduced the existence of the category just by noticing the overlap in the text. It did. And the researchers actually took it a step further to verify this. They deliberately broke the structure in the training data just to see what would happen. How so? Well, they removed the trail of shared properties linking Bizder and Rupert together, but they kept the entities themselves in the text. Oh, okay. And when they did this, which is an approach known in the field as an ablation study, the inductive generalization completely collapsed. The model just stopped assuming Rupert shared new properties with BizDir. Okay.
So that definitely confirms that shared properties in the text act as the raw material for the categories.
But, I mean, I think a healthy dose of skepticism is required here.
Fair enough.
Because knowing that the model outputs text that looks like it understands categories is very different from proving it actually understands them. You're saying it could just be a statistical parlor trick.
Yeah, exactly.
Like if Bizder and Rupert frequently appear near similar descriptive words in the training data, maybe the model just groups them superficially based on proximity.
Just pattern matching at the surface level.
Right.
Does the model actually possess an understanding of the categorical depth?
Well, the researchers actually anticipated that exact critique. They didn't just analyze the text the models generated. They looked inside the neural networks themselves.
Oh, wow.
Yeah. Yeah, they examined the internal geometry of the models, specifically isolating the middle layers. For the Pythia, 160 million parameter model, they looked at layer 8 out of 12.
And for Olmo?
For the Olmo 2, 1 billion parameter model, they looked at layer 8 out of 16.
I would assume they targeted the middle layers because, well, the outer layers are busy with other tasks.
Exactly.
Like the first few layers of an LLM are usually just doing grammatical triage, figuring out syntax, parts of speech, that kind of thing.
And the final layers are dedicated to formatting the output so it actually reads like natural human language.
Right. So the middle layers are typically where the actual semantic processing, the quote unquote thinking regarding concepts takes place.
The act is the conceptual engine.
Exactly. And within those layers, every word or concept is converted into a vector embedding. You can basically think of this as a physical coordinate in a massive multidimensional space.
Like a giant 3D graph, but with way more dimensions.
Yeah, way more. And the researchers applied a method called matching affinity clustering to these coordinates. It's a statistical technique used to group data points based on how frequently and closely they align with each other. To measure that alignment, they calculated the cosine distance, which is just a mathematical way of determining the angle between these coordinates.
So the smaller the angle, the closer the concepts are in meaning.
You got it.
So as the model is continually minimizing its loss during training, it is physically shifting these coordinates around in its internal space. The actual mathematical weights are constantly adjusting.
Yes.
Which means if the model determines that Bizder and Rupert are related based on the text, it should literally move their coordinates closer together in that multidimensional space.
And that movement wasn't just like a slight adjustment. The models entirely reorganized their internal representation space to mirror the hidden taxonomy.
Wait, really?
The whole thing. The whole thing. The entities that shared a deeper node in the synthetic family tree were pushed mathematically closer together. The physical distances between these vectors perfectly map to the structure of the categories. That's wild. It is.
By applying that clustering algorithm to the raw math of Layer 8, the researchers were able to flawlessly reconstruct the entire three-level synthetic family tree from the ULMO-2 model. Flawlessly? Flawlessly. And near-flawlessly from the Pythia model.
So they basically pulled the entire alien family tree out of the model's internal geometry.
They did.
I mean, that proves it's not a superficial trick then. The model is using those continuous slight adjustments of its weights to carve a physical geometric representation of a category into its neural pathways.
The physical reality of those ideas is undeniably present in the architecture. But, and this is where it gets really interesting, when we look at how this mechanism scales across different sizes of models, the data presents a pretty significant anomaly.
Okay, because the prevailing logic in the AI industry right now is that scale solves everything.
Exactly. We assume that as you increase a model's parameter count, basically giving it a larger brain, it just naturally becomes more capable at reasoning tasks like this.
Yeah, I mean, that is the entire justification for the massive multi-billion dollar data centers being built right now. You would totally expect a 7 billion parameter model to build a much more robust, nuanced geometric tree than some tiny 70 million parameter model.
Well, the data reveals the exact opposite.
Wait, really?
Yeah. The researchers tracked this inductive behavior across a really wide spectrum of sizes. They evaluated Pythia models from 70 million up to 2.8 billion parameters and Olmo 2 models from 1 billion up to 7 billion parameters.
Okay.
And they restricted all of these models to the exact same data budget, meaning they all read the alien textbook the exact same amount of times. Got it.
Under those controlled conditions, the smaller models demonstrated significantly stronger correct induction.
That is...
As the parameter size increased, the model's ability to accurately infer that Ruper shared a trait with Bizder steadily declined. Okay, I have to challenge the logic there. How does having less computational power make a system better at recognizing complex patterns? That kind of contradicts the fundamental trajectory of machine learning, doesn't it?
It sounds like it, but it really comes down to a dynamic between capacity and compression.
Capacity and compression. Okay, let me test an analogy here.
Sure.
Let's say you have two students preparing for a biology exam, and the exam requires understanding how different animal classes relate to each other.
The first student has a perfect photographic memory, just an infinite capacity for rote memorization. They didn't even bother trying to understand the overarching concepts. They just memorize every single individual flashcard. Right. So they memorize that a robin has sesamoid bones, and they independently memorize that a sparrow has sesamoid bones. They never actually connect the two because they just don't need to. Their retrieval speed is flawless.
And the larger models function very similarly to that student. They have so much parameter capacity that they can simply memorize the entity property pairs individually as they encounter them in the training text. So they just fit the injected facts rapidly without needing to build a deeper conceptual bridge.
Exactly.
Okay, so then the second student is the smaller model. This student has a terrible memory and physically cannot store 1,000 independent flashcards.
Right, limited capacity.
So to pass the test, they are forced to figure out the underlying rules. They literally have to compress the data.
They realize they can save mental space by learning the single rule that small birds have sesamoid bones. And then they just remember that robins and sparrows are small birds.
That's a perfect analogy.
So because they were forced by their own limitations to compress the information, they actually end up understanding the broader biological taxonomy way better than the student with the photographic memory.
Exactly. The smaller model cannot memorize the stream of data fast enough. The mathematically most efficient path for it, the only way to minimize its loss with limited storage, is to compress the entities into the categories they share.
It is forced to build the geometric tree because it literally doesn't have the sheer parameter space to store a million scattered leaves.
Right. And this illustrates such a vital concept for the field. strong recall does not guarantee strong inductive generalization. A model's ability to just parrot a fact instantly does not mean it has actually integrated that fact into a cohesive conceptual framework.
Wow. Okay, so constraints can actually force deeper structural learning.
Yeah. But let's look at the real-world utility of these geometric structures once they are built, because categories are rarely static, right? Like in medicine, diseases get reclassified based on new genetic data all the time.
Or in corporate environments, entire departments get restructured.
Exactly. So if an enterprise AI has spent thousands of hours carving this rigid, multidimensional tree that perfectly categorizes a company's data, what happens when that data fundamentally changes? Does the model just smoothly update its geometry?
To test that adaptability, the researchers designed an experiment around the concept of interference.
Interference.
Yeah. They initially trained a model on taxonomy 1, which we can think of as our original alien family tree. Then they continued training that exact same model on a conflicting taxonomy 2.
A conflicting one. So they mixed it up.
Right. The second taxonomy used the exact same entities, like Bizder and Ruper, but deliberately reorganized them into entirely different categories that shared different properties.
Oh, so the model is being fed contradictory reality. The new data fundamentally violates the geometric structure it already built in its middle layers. Precisely. And the new training caused the old taxonomy to degrade. The model's ability to perform correct induction under taxonomy 1 gradually eroded. Makes sense. But the critical finding was that the model learned taxonomy 2 significantly worse than a completely fresh, untrained model would have.
Because the existing geometric tree is actively resisting the change.
Yes.
The vector coordinates for BISDR and RUPER are already physically clustered together in that multidimensional space.
The new training is trying to pull them apart to satisfy the new data, but those old weights act like anchors.
That's exactly it. It requires far more mathematical effort to tear down an existing semantic structure and build a new one in its place than it does to just build one from scratch on a blank slate.
The entities basically carry a persistent residue of their previous categorization.
They do. And this interference presents a huge hurdle, because if an organization's AI holds an outdated taxonomy, simply feeding it new, updated documents during a fine-tuning phase is going to be highly inefficient.
The old knowledge actively fights the new knowledge. Exactly.
Man, if fine-tuning is that inefficient, it sounds like a massive bottleneck for anyone trying to maintain an accurate AI system. You can't just afford to train a multi-billion parameter model from scratch every single time an industry reclassifies something.
You definitely can't. And that would be a paralyzing limitation if training weights were the only mechanism driving the model's behavior.
But they aren't.
Right. This study offers a highly practical countermeasure by exploring the friction between two different types of learning. There is the learning embedded in the weights, the physical geometric tree we've been discussing, and then there is in-context learning.
Which is just the immediate information provided in the user's prompt, right?
Exactly. The prompt is just the temporary context sitting in the model's short-term memory during a single interaction. Okay. So the researchers orchestrated a scenario where these two learning mechanisms were placed in direct opposition.
Like a tug-of -war. Yeah. They trained models so that their deeply ingrained in Weitz taxonomy dictated that, say, entity A belonged with entity B. Okay. Then they presented the model with a prompt containing a few in-context examples, implying a completely different reality, one where entity A actually belongs with entity C. So it's basically a test of authority. You have thousands of hours of foundational mathematical training telling the model one thing and a few sentences typed by a user telling it another.
Right.
Given how stubborn we just saw the weights can be during that interference test, I'd assume the model just defers to its ingrained training.
You'd think so, but the prompt completely overrides the weights.
Wait, really?
Completely.
Completely.
By adding just a handful of carefully crafted in-context examples to the prompt, the model's generalization reversed. It entirely abandoned the pre-trained taxonomy embedded in its geometry and generalized purely according to the temporary reality established by the prompt.
Wow. So the model's attention mechanisms are likely prioritizing the immediate context window so heavily that it functionally bypasses the older semantic structures entirely.
Yes.
I mean, that is a highly leveraged insight for a user. If your system is relying on an outdated classification of your industry, you don't actually need to engage in an expensive, inefficient retraining process that fights against interference.
You really don't.
You can literally redefine the AI's structural reality on the fly just by placing a few representative examples directly into the prompt. The context window is essentially the ultimate arbiter of the model's worldview.
It reveals a profound flexibility at the point of interaction. The internal geometric structures are incredibly robust and sophisticated, But they remain entirely subordinate to the context provided by the user.
So looking back at our initial question, it is pretty clear that AI models do engage in category-based property induction. Purely through the mechanics of minimizing loss during next token prediction, they carve these complex multidimensional taxonomies right into their neural pathways.
They absolutely do.
And we've seen that raw parameter scale can actually hinder this process, right, with smaller models being forced to build better conceptual frameworks simply because they lack the capacity for rote memorization.
That was one of the most surprising takeaways, yeah. And ultimately, we see that the heavy, stubborn architecture of those internal trees can be instantly overridden by the immediate context of a prompt. And it really forces us to reevaluate what is actually happening in the latent space of these models. But, you know, I think this final point regarding the power of the prompt introduces an implication that extends far beyond just corporate data organization.
How so?
Well, we just established that a handful of in-context sentences can completely hijack a taxonomy built upon massive amounts of pre-training evidence, right?
Yeah, a model's reality is highly valuable.
So consider how a model's safety training is structured. That training is fundamentally just another taxonomy. The model is taught to group certain actions into a quote-unquote safe category, while clustering other actions into a dangerous or harmful category. If a deeply held internal taxonomy can be discarded this easily by a simple context window, the vulnerability becomes pretty obvious. If a bad actor designs a deceptive prompt that establishes a conflicting taxonomy, one cleverly designed to group a dangerous action alongside benign ones, they could potentially override the model's entire ethical framework in an instant.
Man. So if the model is willing to completely forget the relationship between Bizder and Ruper, just because a few sentences told it to, the exact same mechanism could theoretically compel it to forget the boundary between a harmless request and a restricted one. Exactly. The extreme flexibility of the context window is a serious double-edged sword. It is the exact same mechanism. The adaptability that makes these systems so remarkably useful in a business context is the identical feature that makes them vulnerable to intentional manipulation.
That is, yeah, that's wild.
It is definitely something worth keeping in mind for you, the listener, the next time you see an AI pivot its entire worldview just because you provided a new premise in the chat box.
It certainly changes how you view the underlying mechanics of a simple conversation with an LLM. Thank you for joining us on this deep dive.”