Species classifiers are always trained on an incomplete list of species. Biologists have known for decades that this distorts conclusions. When a DNA barcode was tested on only 5 of the 16 species in the plant genus Crawfurdia, it discriminated them perfectly, and the authors warned that overlapping variation appears only once the whole genus is included (ITS barcode in Crawfurdia). Phylogenomic work makes the same point: one representative per family can bias the inferred tree (Tipuloidea transcriptomes). A deep classifier has the same blind spot. Shown a photo of a species it never saw in training, it confidently assigns the photo to a sampled sister species. Its accuracy on the species it does know overstates how well it will work in the field.
We propose a correction that needs no retraining. For each genus (or deeper clade), we add one extra output, "an unsampled member of this clade." Its score comes from the frozen model's total evidence for the clade plus a prior on how much of the clade is missing. That prior is estimated cheaply, either from a taxonomic checklist or from species-richness statistics computed on the training counts. Two scalars are then tuned in milliseconds on a validation set. The claim is that this recovers correct genus-level answers for unseen congeners while leaving accuracy on common species nearly intact. It also turns the "barcode illusion" into a quantity we can measure.
Core Claim
Under incomplete taxon sampling, the main error that the cheap-debiasing literature ignores is not imbalance among the sampled species. It is mass misassignment of unsampled species to their sampled relatives. This error has clade-specific structure. Genera that are densely represented in nature but thinly represented in training leak far more unseen species than well-covered genera. Because of that structure, a post-hoc correction that uses clade-specific missing-mass priors should beat both flat class-prior correction and a uniform "abstain to genus" threshold. It should also approach models that build the tree into training, at roughly zero training cost.
Concretely, let $f_s(x)$ be the frozen model's logit for sampled species $s$, and let $\pi_s$ be its training frequency. Sampled species receive the standard prior correction $f_s(x) - \tau \log \pi_s$. Each clade $c$ receives an extra logit:
$$z_{u_c}(x) = \log \sum_{s \in c} e^{f_s(x)} + \tau \log \hat m_c - \kappa$$
Here $\hat m_c$ is the estimated fraction of clade $c$'s natural occurrences that belong to species absent from training, and $\tau, \kappa$ are global scalars tuned post hoc. The log-sum-exp term makes the extra outcome win when the model's evidence points strongly at the clade but is spread across siblings. The $\hat m_c$ term makes this happen more readily in poorly sampled clades.
We estimate $\hat m_c$ in one of two ways. When a checklist exists, we use the known count of described species in the clade relative to the sampled count. When it does not, we use the Chao1 richness estimate $\hat S_c = S^{obs}_c + f_{1,c}^2 / (2 f_{2,c})$, where $f_{1,c}$ and $f_{2,c}$ are the numbers of species in $c$ with one and two training observations. Chao1 is an ecology tool built for exactly the regime of power-law abundance where complete sampling is impossible.
Research Program
The method sits in the line of work on additive output corrections, and each prior paper plays a different role. Long-tail learning via logit adjustment supplies the species-level term. It shows that subtracting $\tau \log \pi_y$ is consistent for balanced error. It treats classes as a flat set and assumes the test label set equals the training label set, which is the assumption we drop. Zero-Shot Logit Adjustment motivates the design. It shows that a prior-based shift on seen versus unseen classes beats generating thousands of synthetic samples. It uses one global seen/unseen split and requires attribute descriptions of the unseen classes. Our unseen outcome needs no description of the missing species, and its prior varies by clade. Fair Classification with Efficient and Post-hoc Controllable Fairness-Accuracy Trade-off constrains the design. It shows that naive post-processing pays an accuracy tax unless representations are shaped during training, and its method is limited to binary labels. We test directly whether a frozen, unshaped species model suffers that tax in our multi-class setting.
Two tree-aware methods serve as expensive references. Phylo-HS trains a hierarchical softmax on the NCBI taxonomy, mainly for speed. HComP-Net trains prototypes at internal tree nodes, and its authors note that their evaluation is limited by sparse species sampling. Both require full training, and both assume the given tree is complete.
The build has four pieces. The first is a nested-holdout protocol: held-out species simulate unsampled taxa, and a second holdout within the training species is used to tune $\tau,\kappa$, so tuning never sees the test species. The second is the two estimators of $\hat m_c$. The third is the correction applied to frozen models. The fourth is an "illusion gap" measurement: the difference between closed-set accuracy and true open-world accuracy as the sampling fraction varies.
Holdouts are biased toward rare species, because rare species are the ones that go missing in real collections.
Baselines
The naive reference is the frozen classifier used as is, under ordinary empirical risk minimization. As the closest published anchor for this setting, Long-tail learning via logit adjustment reports 38.66% balanced error for empirical risk minimization on iNaturalist 2018. For a top-1 anchor, The INaturalist Species Classification and Detection Dataset reports 67.7% top-1 for Inception ResNet V2 SE on iNat2017. These are closed-set numbers, and we rerun everything on our holdout splits.
The strongest cheap competitor on the sampled species is flat post-hoc logit adjustment, which reaches 33.64% balanced error on iNaturalist 2018, and 31.56% with adaptive margins (a training-time variant), in the same paper. We apply it to the same frozen logits with the same validation budget for $\tau$. Our method must match it on sampled species and beat it on held-out ones.
The strongest competitor for unseen species is a uniform genus-backoff rule. It sums sampled-species probabilities within each genus and predicts "new species of the top genus" whenever the maximum species probability falls below a threshold. It is tuned on the same nested holdout. This is the real threat to our claim.
A ZLA-style variant uses a single global missing-mass $\hat m$ for all clades. It isolates the key ingredient, which is the clade-specific prior.
Phylo-HS on the metagenomic data and a hierarchically trained image model on iNat serve as retrained upper references. We report their training compute alongside accuracy.
For unseen-congener genus accuracy, we found no reported result on Lacuna for any of these methods, so all such numbers come from our runs. Beating the competitors means three things at once: higher genus-correct rate on held-out species than both uniform backoff and global-$\hat m$, no more than a one-point drop in head-species accuracy relative to flat logit adjustment, and all of this at under one second of fitting.
Why not just…?
Why not just use flat logit adjustment? It reweights only the species it was trained on, so it has no output for an unsampled species. It can make the illusion worse by pushing rare-looking inputs toward rare sampled siblings. Our held-out-species metric measures this directly. If flat adjustment already routes unseen congeners into the correct genus as often as our method does, the extra outcome adds nothing, and we will report that.
Why not just threshold confidence and back off to genus? This is the serious alternative, because it captures most of the hierarchy at zero cost. It differs from our method only in ignoring how incomplete each clade is. The experiment that settles the question stratifies held-out species by their clade's true missing fraction. Our method should win mainly in poorly sampled, species-rich genera and tie elsewhere. If it ties everywhere, the clade prior is not worth having, and the contribution reduces to the evaluation protocol and the illusion-gap measurement.
Why not just retrain hierarchically, as in Phylo-HS or HComP-Net? Retraining may well be more accurate, and we include it as an upper reference. It costs full training per taxonomy revision and still assumes a complete tree. The question is what fraction of the retrained model's unseen-species gain the post-hoc correction recovers per unit of compute.
Why not just synthesize images of missing species? For most missing species there are no descriptions or images to condition a generator on. Zero-Shot Logit Adjustment also reports that heavy synthesis underperforms a prior shift: 63.7% versus 72.8% harmonic mean on AWA2.
Proposed Experiments
On iNat2017 and iNaturalist 2018, we use the dataset taxonomy. Within multi-species genera we hold out 10–50% of species, biased toward the rarest, and evaluate frozen backbones under every baseline. On the metagenomic read data used by Phylo-HS, we use the existing 193-genome validation set of genomes absent from training as a natural unsampled-taxa test, with NCBI Taxonomy defining the clades. The second domain checks that the method is not specific to images.
We report several metrics. Species accuracy and balanced error cover sampled species. Genus-correct rate and mean tree distance to the true taxon cover held-out species. We measure head-class accuracy for the top decile of species by frequency. Calibration is measured as predicted versus realized unseen fraction per clade. Cost is reported as fitting wall-clock.
Three checks decide the claim. First, Chao1-based $\hat m_c$ estimated from training counts must correlate with each clade's true held-out fraction. If it does not, the open-world variant fails and only the checklist variant survives. Second, the clade-specific prior must beat global $\hat m$ and uniform backoff in poorly sampled genera. Third, the illusion gap must shrink as sampling becomes denser, reproducing the Crawfurdia pattern quantitatively. We plot closed-set minus open-world accuracy against sampling fraction, with and without the correction. We also run a family-level variant to see whether backing off further up the tree helps when an entire genus is missing.
References
- INTERNAL TRANSCRIBED SPACER (ITS), AN IDEAL DNA BARCODE FOR SPECIES DISCRIMINATION IN CRAWFURDIA WALL. (GENTIANACEAE)
- Transcriptomes of three species of Tipuloidea (Diptera, Tipulomorpha) and implications for phylogeny of Tipulomorpha
- Long-tail learning via logit adjustment
- Zero-Shot Logit Adjustment
- Fair Classification with Efficient and Post-hoc Controllable Fairness-Accuracy Trade-off
- Phylo-HS: A phylogenetic hierarchical softmax for taxonomic classification
- What Do You See in Common? Learning Hierarchical Prototypes over Tree-of-Life to Discover Evolutionary Traits
- The INaturalist Species Classification and Detection Dataset