Phylogenetic geometry of the tree of life in LLMs
Collection
Do LLMs represent animal species on a tree of life? Species data, activations and probes (Qwen3.5-2B, controls). • 3 items • Updated
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 8 new columns ({'conflict_type', 'phylo', 'anchor_sci', 'anchor', 'id', 'folk', 'folk_sci', 'phylo_sci'}) and 3 missing columns ({'ott_id', 'sci_name', 'common_name'}).
This happened while the csv dataset builder was generating data using
hf://datasets/BurnyCoder/phylogenetic-geometry-species/conflict_triplets.csv (at revision 3a2166abf4f01dec59d556f354c392f5c423ae79), ['hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/conflict.csv', 'hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/conflict_triplets.csv', 'hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/species.csv', 'hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/species_polysemous.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: int64
anchor: string
anchor_sci: string
phylo: string
phylo_sci: string
folk: string
folk_sci: string
conflict_type: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1189
to
{'common_name': Value('string'), 'sci_name': Value('string'), 'ott_id': Value('int64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 8 new columns ({'conflict_type', 'phylo', 'anchor_sci', 'anchor', 'id', 'folk', 'folk_sci', 'phylo_sci'}) and 3 missing columns ({'ott_id', 'sci_name', 'common_name'}).
This happened while the csv dataset builder was generating data using
hf://datasets/BurnyCoder/phylogenetic-geometry-species/conflict_triplets.csv (at revision 3a2166abf4f01dec59d556f354c392f5c423ae79), ['hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/conflict.csv', 'hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/conflict_triplets.csv', 'hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/species.csv', 'hf://datasets/BurnyCoder/phylogenetic-geometry-species@3a2166abf4f01dec59d556f354c392f5c423ae79/species_polysemous.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
common_name string | sci_name string | ott_id int64 |
|---|---|---|
blue whale | Balaenoptera musculus | 226,190 |
Nile crocodile | Crocodylus niloticus | 35,864 |
Atlantic bluefin tuna | Thunnus thynnus | 833,184 |
common starfish | Asterias rubens | 721,252 |
Atlantic horseshoe crab | Limulus polyphemus | 511,973 |
little brown bat | Myotis myotis | 966,432 |
rock hyrax | Procavia capensis | 561,114 |
thylacine | Thylacinus cynocephalus | 408,120 |
European eel | Anguilla anguilla | 854,201 |
western honey bee | Apis mellifera | 461,645 |
sugar glider | Petaurus breviceps | 423,936 |
aardvark | Orycteropus afer | 561,087 |
Chinese pangolin | Manis pentadactyla | 588,292 |
European hedgehog | Erinaceus europaeus | 796,660 |
West Indian manatee | Trichechus manatus | 226,178 |
coelacanth | Latimeria chalumnae | 773,491 |
Australian lungfish | Neoceratodus forsteri | 773,500 |
Komodo dragon | Varanus komodoensis | 1,091,028 |
acorn barnacle | Semibalanus balanoides | 374,192 |
common woodlouse | Oniscus asellus | 731,375 |
elephant shrew | Macroscelides proboscideus | 180,378 |
red panda | Ailurus fulgens | 872,562 |
koala | Phascolarctos cinereus | 327,624 |
killer whale | Orcinus orca | 124,215 |
Indian flying fox | Pteropus medius | 588,290 |
California sea lion | Zalophus californianus | 95,364 |
moon jellyfish | Aurelia aurita | 404,481 |
silverfish | Lepisma saccharina | 845,486 |
guinea pig | Cavia porcellus | 744,000 |
seahorse | Hippocampus hippocampus | 630,167 |
electric eel | Electrophorus electricus | 216,168 |
spotted hyena | Crocuta crocuta | 397,157 |
fossa | Cryptoprocta ferox | 768,514 |
pronghorn | Antilocapra americana | 768,683 |
bottlenose dolphin | Tursiops truncatus | 124,230 |
hippopotamus | Hippopotamus amphibius | 510,762 |
house sparrow | Passer domesticus | 745,175 |
human | Homo sapiens | 770,315 |
goliath birdeater | Theraphosa blondi | 95,320 |
cattle | Bos taurus | 490,099 |
African bush elephant | Loxodonta africana | 541,936 |
red kangaroo | Osphranter rufus | 897,696 |
American lobster | Homarus americanus | 28,247 |
cat | Felis catus | 563,166 |
common shrew | Sorex araneus | 633,213 |
king cobra | Ophiophagus hannah | 6,136 |
edible crab | Cancer pagurus | 706,444 |
raccoon | Procyon lotor | 348,040 |
harbor seal | Phoca vitulina | 698,422 |
purple sea urchin | Strongylocentrotus purpuratus | 564,702 |
sea anemone | Actinia equina | 1,084,476 |
house mouse | Mus musculus | 542,509 |
Atlantic cod | Gadus morhua | 114,170 |
channel catfish | Ictalurus punctatus | 701,523 |
meerkat | Suricata suricatta | 803,645 |
giraffe | Giraffa camelopardalis | 768,674 |
whale shark | Rhincodon typus | 214,509 |
green iguana | Iguana iguana | 608,972 |
great white shark | Carcharodon carcharias | 554,297 |
common octopus | Octopus vulgaris | 110,468 |
blue crab | Callinectes sapidus | 182,906 |
gray wolf | Canis lupus | 247,341 |
sea lamprey | Petromyzon marinus | 227,494 |
southern flying squirrel | Glaucomys volans | 659,102 |
giant anteater | Myrmecophaga tridactyla | 490,538 |
North American porcupine | Erethizon dorsatum | 848,921 |
walrus | Odobenus rosmarus | 749,644 |
Atlantic salmon | Salmo salar | 688,328 |
common limpet | Patella vulgata | 853,190 |
seven-spot ladybird | Coccinella septempunctata | 343,294 |
giant panda | Ailuropoda melanoleuca | 872,573 |
brown bear | Ursus arctos | 872,567 |
red fox | Vulpes vulpes | 821,964 |
lion | Panthera leo | 563,151 |
goldfish | Carassius auratus | 1,005,907 |
pig | Sus scrofa | 730,013 |
horse | Equus caballus | 1,068,218 |
dog | Canis familiaris | 247,341 |
impala | Aepyceros melampus | 768,679 |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
Frozen inputs of the project Phylogenetic geometry of the tree of life in LLMs. The project tests whether an LLM's hidden states for animal species names reflect the tree of life.
| file | content |
|---|---|
species.csv |
400 animal species: English common name, scientific name, Wikidata QID, NCBI taxid, Open Tree OTT id, Wikipedia sitelinks, stratum (13 coarse groups), phylum/class/order/family/genus (NCBI first, OTT fallback), OTT ranks, word count, head noun |
species_tree.nwk |
Open Tree of Life synthetic-tree topology induced on the 400 species. Leaves are ott<id>; unary nodes suppressed |
species_polysemous.csv, species_polysemous_tree.nwk |
14 species excluded from the primary set as polysemous (sensitivity set) |
conflict.csv, conflict_tree.nwk, conflict_triplets.csv |
36 preregistered phylogeny-vs-folk "conflict triplets" (e.g. blue whale / hippopotamus / whale shark), with scientific names and the Open Tree tree |
FREEZE.json |
sha256 of every frozen file |
The preregistered rule is in reports/preregistration.md; the code is src/phylogeo/data/species.py. Steps:
TimeTree divergence times are not included, because TimeTree does not permit redistribution. The repository's code re-fetches them.
Libor "Burny" Burian (2026). Phylogenetic geometry of the tree of life in LLMs. GitHub repository.