TaxoFormer: Hierarchical Transformer for Predicting the Full Taxonomic Lineage of Protein Sequences
Abstract
Predicting labels in massive, hierarchically structured output spaces is a core challenge in machine learning. In this work, we use the problem of predicting the full taxonomic lineage of a protein from its sequence as a case study for this challenge. We introduce TaxoFormer, an architecture whose primary contribution is a structured tokenization scheme that losslessly represents the entire NCBI phylogenetic tree, a graph with over 1.3 million nodes using a compact vocabulary of just 15,000 tokens. By coupling a pre-trained ESM-2 model with an autoregressive decoder and training with a standard cross-entropy objective, we test the hypothesis that a simple generative objective is sufficient to learn complex, latent structure when the output space is explicitly modeled. We show that this approach is highly effective: on a dataset of 188 million proteins, the model not only achieves accurate lineage prediction but also implicitly learns a continuous, phylogenetically-structured latent space. This work provides a scalable, alignment-free method for taxonomic annotation and demonstrates that explicitly modeling the structure of a complex output space is a powerful mechanism for learning meaningful representations.2
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Transforming the Language of Life: Transformer Neural Networks for Protein Prediction Tasks
Ananthan Nambiar, Simon Liu, … Anna Ritz·bioRxiv·Jun 15, 2020
- Evolutionary Reasoning Does Not Arise in Standard Usage of Protein Language Models
Yasha Ektefaie, Andrew Shen, … Marinka Žitnik·neural information processing systemsPeer-reviewed·Jan 1, 2025
- Do Protein Language Models Learn Phylogeny?
Sanjana Tule, Gabriel Foley, Mikael Bodén A·Briefings in BioinformaticsPeer-reviewed·Nov 22, 2024
- End-to-end multitask learning, from protein language to protein features without alignments
Ahmed Elnaggar, Michael Heinzinger, … Burkhard Rost·bioRxiv·Jan 24, 2020
- Structure tokens sharpen the feature vocabulary of protein language models
Jacob Lucas Steenwyk·bioRxiv·May 14, 2026
- Learning the Language of Phylogeny with MSA Transformer
Ruyi Chen, Gabriel Foley, Mikael Bodén A·Cell SystemsPeer-reviewed·Nov 17, 2025