Language and vision-language models often name a fine-grained category correctly and then deny the obvious broader category. A model that says "Boston Terrier" may still say "not a mammal." Every measurement of this failure so far uses real taxonomies such as WordNet, ImageNet, and iNaturalist. Those taxonomies are all over the web, so a model's correct ancestor chains may be recalled text rather than reasoning about "is-a" links. We propose to build twin taxonomies. Each twin copies the exact shape of a real taxonomy subtree and its property assignments, but replaces every name with an invented word and supplies the parent–child links in the prompt. We then compare the same model on the real tree and on its nameless twin. The difference between the two scores measures how much apparent hierarchical competence comes from memory. The twin score alone measures structural reasoning: following "is-a" links transitively and passing properties down to members.
This matters for two open questions. First, reported scale thresholds for hierarchical consistency could be artifacts of what larger models have seen. Second, enforcement methods that force a parent's score to be at least its child's score may only work when the base model already knows the paths. The twin design lets us sweep model size, apply those enforcement methods, and see which of the two regimes each result belongs to.
Core Claim
The claim is that measured hierarchical consistency in large models breaks into two parts that can be separated. One is a recall component, visible as a gap between real and twin taxonomies. The other is a composition component. On twins, consistency across a path of depth $k$ should follow a simple compounding law. Consistency on real taxonomies should beat that law, because memorized ancestor chains skip composition.
Write $p$ for a model's measured one-hop accuracy on twin links, meaning its ability to answer "is X a kind of Y" when Y is X's direct parent. If each hop is an independent chance of success, then accuracy on a depth-$k$ ancestor query is predicted as
$$\hat{a}_k = p^k .$$
The same compounding argument is the standard account of emergent multi-step reasoning, as described in the emergent-reasoning overview by Haitao Wu et al.. This yields three concrete predictions:
- On twins, observed depth-$k$ accuracy should track $\hat{a}_k$.
- On real trees, it should exceed $\hat{a}_k$ by an amount that grows with model size and with how frequently the taxonomy appears on the web.
- Structural enforcement should help on real trees much more than on twins at small scale.
The third prediction follows from the base-model dependency noted for Coherent Hierarchical Multi-Label Classification Networks. If any of these fails, the story is wrong in an informative way.
Relation to Prior Work
Work that motivates the proposal. Vision LLMs Are Bad at Hierarchical Visual Understanding, and LLMs Are the Bottleneck showed that Qwen2.5-VL-72B fails over 67% of iNaturalist paths. It also found that text-only taxonomy skill predicts visual consistency (ρ≈0.91), which locates the problem in the language model. This justifies running our study text-first. That paper cannot tell recall from reasoning, because its trees are public. Modeling Event Plausibility with Consistent Conceptual Abstraction documents a related failure: a model rates "a person breathing" as plausible but not "a dentist breathing." It also documents non-monotonic exceptions to inheritance. We copy those exceptions into our twins as penguin-style overrides, so that "inherit everything" is not a winning shortcut.
Work that supplies the evaluation machinery. DyVal and BeyondBench generate reasoning problems on the fly so that they cannot have leaked into training data. Both show that static scores collapse on fresh instances. Their graphs, however, are flat symbolic structures, such as reachability graphs, arithmetic trees, and puzzles. They include no property inheritance, no exceptions, and no paired real counterpart. The pairing is what lets us attribute a gap to memory rather than to difficulty.
Work that supplies the enforcement methods. We test three existing methods rather than invent a new one. C-HMCNN uses a max-constraint layer that raises each parent's score to at least that of its most confident descendant, with a matching training loss. ConceptMax, from the event-plausibility paper, combines scores along the ancestor chain with a smooth maximum (LogSumExp). ProTeCt uses a prompt-tuning loss over valid cuts through the tree.
Work that constrains the design.
- On The Fragility of Benchmark Contamination Detection in Reasoning Models shows that reinforcement-learning post-training pushes membership detectors to 50–58% AUROC. We therefore do not try to detect contamination. We control for it by construction.
- Finding the Minimal Parameter Budget for Implicit Reasoning predicts capacity floors for implicit multi-hop recall over knowledge graphs. Our in-context twins test explicit composition, and we expect a different, lower floor. - Geometric Constraints for Small Language Models reports that a 110M model with hyperbolic entailment cones beats frozen GPT-4o mini at taxonomy expansion. The twins test whether that kind of advantage survives when names carry no prior information.
Research Program
Building the twins. We extract subtrees from WordNet noun hierarchies, iNaturalist, and MeSH, with depths from 3 to 10. For each subtree we keep:
- the full topology;
- the branching statistics;
- a property table that marks where each property is introduced and where it is overridden.
Every node name is replaced by a nonce word from a phonotactic generator, filtered against tokenizer vocabularies and web n-gram lists. The model receives only direct parent–child links and the node where each property originates, in shuffled order. It is then asked two kinds of questions:
- ancestor queries at hop distance $k$ ("is X a kind of Y");
- inheritance queries ("does X have property Q"), including queries where an override applies.
A generator can produce unlimited fresh twins, and every answer is checked mechanically against the tree. This addresses the solver-scalability concern raised for semantic domains: the check is graph reachability, not an open-ended judgment.
Three conditions per subtree isolate the role of prior knowledge.
- Real-closed: real names, no links in context. This measures pure recall.
- Real-open: real names, links in context. This measures recall plus reading.
- Twin-open: nonce names, links in context. This measures reading and composition only.
A fourth, counterfactual condition. Real names are used, but a controlled fraction of the in-context links contradict the true taxonomy, for example "a leopard is a kind of reptile." We record how often the model follows memory instead of context. This conflict rate is a direct behavioral signature of memorized hierarchy, and it does not rely on log-probability detectors that post-training can hide.
Metrics.
- Hierarchical Consistent Accuracy (HCA), which counts a leaf as correct only when every ancestor on its root-to-leaf path is also answered correctly.
- Depth-$k$ ancestor accuracy.
- Local Extremum Rate (LER), borrowed from the event-plausibility work: how often a node's score is higher or lower than both its parent's and child's scores, which signals a non-monotonic path.
- Inheritance accuracy, split into override and non-override cases.
- The residual $a_k - \hat{a}_k$, meaning observed depth-$k$ accuracy minus the compounding prediction.
Scale sweep. We use open model families that come in many sizes. The file supports the Qwen family as a reference point, and we would sweep from roughly 0.5B to 72B parameters, adding a second family to check that results are not specific to one lab. The scale threshold is defined as the smallest model size at which twin-open HCA exceeds a chance-corrected level.
Baselines
Do-nothing reference. This is direct zero-shot yes/no scoring of each node, with no structural correction. It is run on identical queries with identical prompt templates, and three templates are averaged. The file gives no Lacuna-reported result for text-only twin taxonomies, since none exist. The nearest reference is 55% leaf accuracy versus 32.8% HCA for Qwen2.5-VL-72B on iNat-Plant, from Vision LLMs Are Bad. Our real-closed iNat-Plant condition should roughly reproduce that gap in text. If it does not, our query format is at fault.
Post-hoc max propagation. This is the max-constraint layer from C-HMCNN, applied only at test time to the model's per-node probabilities. It is the strongest cheap competitor, because it guarantees that no child outscores its parent and it needs no training. It is applied to exactly the same score tables as the do-nothing baseline.
ConceptMax aggregation. This is the LogSumExp chain scoring from Modeling Event Plausibility, run with the released code (ianporada/modeling_event_plausibility). It is extended so that it can read chains from our twins instead of WordNet. Its reported results are an average AUC of 0.70 and LER of 0.00 on PEP-3K and 20Q, against 0.66 AUC and about 0.51 LER for a RoBERTa baseline.
Trained enforcement. Here we fine-tune with the max-constraint loss (MCLoss) on a pool of training twins and test on held-out twins with unseen topologies. This is the strongest existing training-time method. It is compared against plain cross-entropy fine-tuning under the same data, steps, and learning-rate search budget. The reference number on the enforcement side is ProTeCt's ImageNet result, which raises HCA from 2.99% (standard prompt tuning with CoOp) to 37.74%.
Ablation isolating the key ingredient. The key ingredient is the name swap. We therefore run a "renamed but shuffled-topology" control, in which nonce names sit on a random tree of matched size. This separates the effect of losing name priors from the effect of losing real topological regularities, such as typical branching shapes.
What counts as success. The measurement claim succeeds if:
- the real-minus-twin gap in HCA is clearly nonzero, with confidence intervals from fresh twin resamples;
- the gap grows with model size;
- the counterfactual conflict rate is correlated with that gap.
The enforcement claim succeeds if trained enforcement lowers the scale threshold on twins by at least one model size, relative to both cross-entropy fine-tuning and post-hoc max propagation.
Why not just…?
Why not just run a contamination detector on WordNet- and iNaturalist-based benchmarks? On The Fragility of Benchmark Contamination Detection reports that after one epoch of GRPO, detectors fall toward random, and ten detectors average 50–58% AUROC on reasoning-distilled models. Taxonomies are also not a discrete leaked test set: they are spread across the whole web. For this data the question "was this seen" has no clean answer. Twins sidestep both problems by making the unseen condition true by construction.
Why not just use DyVal's reachability task, which already tests graph composition on fresh graphs? This is a real threat. Twin-open ancestor accuracy may simply equal DyVal reachability accuracy at matched depth. We will measure the correlation across models. If it is very high, the ancestor half of our benchmark is redundant, and the contribution narrows to three things that reachability lacks: the inheritance and override queries, the real-versus-twin pairing, and the counterfactual conflict rate.
Why not just apply max propagation after the fact, since it guarantees consistency for free? It guarantees that scores are ordered correctly, not that answers are correct. If the model is wrong about the leaf, propagating upward makes it confidently wrong at every ancestor. The C-HMCNN authors report that combining the layer with its loss during training beats post-hoc correction. Our prediction is sharper: post-hoc propagation will look good on real trees and fall back to the $p^k$ curve on twins. If post-hoc propagation matches trained enforcement on twins, we will conclude that training-time enforcement is unnecessary for this problem and say so.
Why not just prompt the model to reason from root to leaf step by step? Step-by-step reasoning (chain-of-thought) is reported to hurt models below the scale threshold through compounding drift, as noted by Po-Heng Chen and Jean-Noël Vittaut et al.. GeoBench also found that the best model scores only 27.89% on backtracking, against a 25.71% random baseline. We include chain-of-thought as an additional condition at every scale. The twin design lets us check whether its gains on real trees come from better recall of ancestor chains rather than better composition.
Proposed Experiments
Check 1: the real–twin gap across scale. For each subtree and model, we compute HCA under real-closed, real-open, and twin-open. The hypothesis fails if real-open and twin-open HCA agree within resampling noise at all scales. That outcome would mean current hierarchical-consistency measurements are not inflated by recall.
Check 2: the compounding law. On twins, we fit $\hat{a}_k = p^k$ using one-hop accuracy and test it against observed depth-$k$ accuracy. We expect positive residuals on real trees and residuals near zero on twins. Negative residuals on twins would mean that errors correlate across hops. That would favor a capacity-floor account like that of Finding the Minimal Parameter Budget.
Check 3: counterfactual conflict. We plot how often the model follows memory instead of contradicting context against model size and against web frequency of the taxonomy (iNaturalist rare genera versus common WordNet nouns). If memorized hierarchy drives the gap, conflict should rise with both.
Check 4: does enforcement move the threshold? We compare do-nothing, post-hoc max propagation, ConceptMax, and trained MCLoss on held-out twins across the size sweep, and report the smallest size that clears the chance-corrected HCA bar. Following the base-model dependency flagged by C-HMCNN, we predict that enforcement gains are large on real trees and near zero on twins below the threshold. An enforcement method that lowers the twin threshold would be the result worth publishing.
Multimodal extension. Given the ρ≈0.91 text-to-vision link, the strongest text finding is carried to a small multimodal twin. Invented glyph-based "species" are rendered as images whose visual attributes follow the twin's property table. This tests whether the same gap appears when the leaf is identified from pixels.
References
- Computational Reasoning of Large Language Models
- Coherent Hierarchical Multi-Label Classification Networks
- Vision LLMs Are Bad at Hierarchical Visual Understanding, and LLMs Are the Bottleneck
- Modeling Event Plausibility with Consistent Conceptual Abstraction
- DyVal: Dynamic Evaluation of Large Language Models for Reasoning Tasks
- BeyondBench: Contamination-Resistant Evaluation of Reasoning in Language Models
- ProTeCt: Prompt Tuning for Taxonomic Open Set Classification
- On The Fragility of Benchmark Contamination Detection in Reasoning Models
- Finding the Minimal Parameter Budget for Implicit Reasoning: A Data Complexity Driven Scaling Law for Language Models
- Geometric Constraints for Small Language Models to Understand and Expand Scientific Taxonomies
- Measuring Taiwanese Mandarin Language Understanding
- Self-AMPLIFY: Improving Small Language Models with Self Post Hoc Explanations
- GeoBench: Rethinking Multimodal Geometric Problem-Solving via Hierarchical Evaluation