Localizing Unknown Samples within Semantic Taxonomies

34 concepts23 papers1 proposal

When a machine learning model encounters something it has never seen before, standard out-of-distribution (OOD) systems face a binary dilemma: either confidently guess a wrong label or trigger a generic "unknown" flag. Imagine a computer vision model trained to recognize common pets encountering a red panda. A flat classifier might mistakenly label it a "cat," while a standard OOD detector would simply reject it as an anomaly.

Neither outcome is ideal. The red panda is indeed an anomaly relative to domestic cats and dogs, but it is not completely alien; it shares a clear evolutionary and semantic lineage with known carnivores.

A growing body of research addresses this limitation by shifting from binary novelty detection to hierarchical novelty localization. By structuring the label space as a taxonomy, models can provide "imprecise but accurate" predictions. Instead of failing catastrophically or discarding all semantic information, the model routes an unknown sample to its most specific known parent category—identifying the red panda as a "mammal" or an unknown bird species as a "bird."

The Intuition of Incongruence

Why should a hierarchy help us identify novel objects? The core insight lies in how features are distributed across different levels of abstraction. High-level categories (like Animal or Vehicle) rely on broad, robust structural features, whereas fine-grained leaf categories (like Chihuahua or Sports Car) rely on highly specific details.

When an entirely new sub-class enters the system, a model's high-level and low-level components will disagree. As formalized by Daphna Weinshall et al. in Beyond Novelty Detection: Incongruent Events, when General and Specific Classifiers Disagree, this creates an incongruent event. The general classifier recognizes the broad category and accepts the input, but the specific sub-classifiers all reject it because the fine-grained features do not match any known leaf node.

          [ Animal ]  --> High confidence / Accept
          /        \
     [ Bird ]    [ Mammal ]
                 /        \
         [ Cat ]    [ Dog ]  --> Low confidence / Reject
            |          |
      (No match for Red Panda)

By calculating similarity scores at multiple levels of abstraction, architectures like the prototype-based network proposed by Peter Hase et al. in Interpretable Image Recognition with Hierarchical Prototypes exploit this disagreement. The model maintains high-level taxonomic integrity instead of forcing an incorrect fine-grained prediction, allowing it to safely anchor an unknown object within a known broad category.

Engineering the Escape Hatch: Virtual Nodes

To translate this intuition into a working neural network, models need a mechanism to explicitly choose a middle ground between full classification and total rejection. If a model only outputs probabilities for known leaf nodes, it has no way to express that a sample belongs to an internal node but none of its children.

The standard solution is to augment the taxonomy with virtual nodes or open-set child nodes at every internal branch. As shown by Kibok Lee et al. in Hierarchical Novelty Detection for Visual Object Recognition, a hierarchical structure can be flattened into a single output vector containing both known leaf classes and virtual classes that represent novelty at each internal node.

This architecture acts as a multi-level gatekeeper:

  1. Multi-Depth Routing: In frameworks like the one proposed by Erik Wallin et al. in ProHOC: Probabilistic Hierarchical Out-of-Distribution Classification via Multi-Depth Networks, virtual child nodes are attached to every internal node to explicitly capture out-of-distribution samples belonging to that branch.
  2. Local Abstention: Instead of relying on a single global rejection model, Saad Irtza et al. demonstrate in Out of Set Language Modelling in Hierarchical Language Identification that placing specialized out-of-set detectors at multiple levels of a decision tree allows a system to catch and reject intruders step-by-step.
  3. Nuanced Boundaries: Rather than using a single catch-all reject class, the authors of Learning State-Based Node Representations from a Class Hierarchy for Fine-Grained Open-Set Detection (State-FGOD) map the entire hierarchy as a space of legal states. This global approach maintains taxonomic integrity far better than flat models when distinguishing between highly similar known and unknown classes.

By training with multiple distinct abstention classes—an approach validated by Abhijit Guha Roy et al. in Does Your Dermatology Classifier Know What It Doesn't Know? Detecting the Long-Tail of Unseen Conditions—the model learns a more nuanced decision boundary that generalizes to completely unseen semantic categories.

Preserving Utility in the Real World

Hierarchical localization fundamentally changes the trade-offs of deploying models in open-world environments. In traditional open-set recognition, tightening the rejection threshold to catch novel objects inevitably degrades performance on known classes. Partitioning the feature space into hierarchical superclasses bypasses this penalty. As shown by Mısra Yavuz et al. in O1O: Grouping of Known Classes to Identify Unknown Objects as Odd-One-Out, grouping known classes into high-level structures allows models to isolate unknown objects as outliers without sacrificing accuracy on the primary classification task.

This preservation of semantic context provides immediate practical utility across diverse domains:

Ultimately, this paradigm transforms how systems discover new knowledge. Instead of treating novelty as a failure mode, hierarchies serve as an organizational framework for open-world learning. For instance, Sarah Rastegar et al. leverage this in SelEx: Self-expertise in Fine-Grained Generalized Category Discovery, using hierarchical pseudo-labeling to cluster and discover entirely new fine-grained categories.

Whether tracking evolutionary branches in biology (Danruo Deng et al. in PhyloTune) or organizing unexpected anomalies in case-based reasoning (David B. Leake in An Indexing Vocabulary for Case-Based Explanation), navigating a semantic taxonomy ensures that when an AI system encounters the unknown, it can still understand where that unknown belongs.

Key Foundational Work

An Indexing Vocabulary for Case-Based Explanation (1991) — contributed 1 concept elements to this direction.
Beyond Novelty Detection: Incongruent Events, when General and Specific Classifiers Disagree (2008) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_hierarchical_novelty_detection_05064da5,
  title = {hierarchical novelty detection},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-novelty-detection/rdr_05064da5e7b2493396d6d4e403541095},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_hierarchical_novelty_detection_05064da5_v1,
  title = {hierarchical novelty detection},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-novelty-detection/rdr_05064da5e7b2493396d6d4e403541095/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake