Taxonomy-Aware Representation Alignment for Hierarchical Visual Recognition with Large Multimodal Models

Hulingxiao He, Zhi Tan, Yuxin Peng

TL;DR

While Large Multimodal Models (LMMs) excel at identifying specific objects, they frequently fail to maintain logical consistency across hierarchical categories (e.g., correctly identifying a species while hallucinating an incorrect family or order). To fix this, the authors introduce TARA (Taxonomy-Aware Representation Alignment), a framework that injects structured biological knowledge into LMMs by aligning their internal features with specialized Biology Foundation Models (BFMs). This approach significantly boosts both classification accuracy and hierarchical consistency for both known and completely novel species.

What Problem Does This Paper Address?

Standard visual classification typically treats labels as a "flat" space of independent choices. However, the real world—especially the biological domain—is inherently structured as a taxonomic tree. Hierarchical Visual Recognition (HVR) requires a model to predict a consistent path from coarse to fine granularities (e.g., Animalia → Chordata → Aves → Passeriformes → Thraupidae → Dacnis → Dacnis cayana).

Current state-of-the-art LMMs suffer from severe "hierarchical inconsistency." As shown in Figure 1, a model might correctly guess the exact species at the leaf node but violate the taxonomic path by predicting an entirely unrelated order or class higher up the tree. This problem is even worse for novel or rare categories where training images are scarce or non-existent, making it difficult for general-purpose vision models to generalize effectively.

LMMs struggle with hierarchical consistency

Methods

The authors propose TARA (Taxonomy-Aware Representation Alignment), which leverages the structured embedding spaces of pretrained Biology Foundation Models (BFMs, such as BioCLIP2) to guide the LMM's internal representations.

TARA introduces alignment at two distinct levels:

  1. Taxonomic Visual Representation Alignment: It maps the intermediate visual features of the LMM to the BFM's visual encoder space using a cosine-similarity loss ($L_V$). This forces the LMM to extract biologically meaningful, discriminative visual cues.
  2. Free-grained Label Representation Alignment: Instead of using rigid one-hot labels, it aligns the LMM's first hidden state of the generated answer token with the BFM's text embedding for that specific taxonomic level ($L_C$). This allows the model to flexibly map visual features to categories of varying granularity depending on the user's prompt.

TARA is trained alternately with No-Thinking Reinforcement Fine-tuning (No-Thinking RFT). Unlike standard RFT (like DeepSeek-R1) which encourages long, explicit chain-of-thought reasoning traces, No-Thinking RFT explicitly prohibits the model from engaging in long thought processes for direct classification tasks. It enforces concise, accurate answers via strict accuracy-based rewards.

TARA Training Framework Overview

Datasets

The framework was trained and evaluated using the following datasets:

  • iNaturalist-2021 (iNat21): A massive, large-scale dataset split into Plant and Animal taxonomies, spanning six hierarchical levels. It was used for primary training and evaluation.
  • TerraIncognita: A dynamic benchmark containing rare, poorly documented, or entirely new-to-science insect species collected during field expeditions in Central and South America. This was specifically used to test the model's generalization capabilities on novel categories.
  • ImageWikiQA: A complex, real-world visual question-answering dataset grounded in ImageNet objects, used to evaluate downstream reasoning capabilities.

Key Insights and Ideas

  • Foundation Models as Knowledge Repositories: Instead of trying to teach an LMM complex taxonomy from scratch using text prompts or massive datasets, we can directly "distill" the structured latent space of domain-specific foundation models (BFMs) into the LMM's intermediate layers.
  • The Power of the First Token: Through detailed ablation studies (Figure 3), the authors discovered that aligning the first answer token with the target label embedding is significantly more effective than averaging all answer tokens or using question tokens.
  • Reasoning Isn't Always Better: For pure classification tasks, forcing a model to "think" via chain-of-thought can actually degrade performance or add unnecessary token overhead. "No-thinking" RFT yields cleaner, more accurate results faster.

Key Results

  • Hierarchical Consistent Accuracy (HCA): On the iNat21-Plant dataset using Qwen3-VL-2B, TARA improved HCA from 9.23% (with baseline RL) to 12.78% (+3.55%).
  • Novel Category Generalization: On the unseen split of TerraIncognita, TARA achieved a massive +10.15 boost in Order F1 score and a +1.20 boost in Family F1 score, proving that the learned representations generalize well beyond observed training classes.
  • Training Efficiency: As shown in Figure 5, models trained with TARA achieve faster convergence during reinforcement learning, quickly surpassing baseline performance in the early steps of training with minimal computational overhead.
Training Efficiency Curves

Limitations and Future Work

The primary limitation acknowledged by the authors is that TARA was evaluated almost exclusively within the biological domain using biological foundation models. Real-world classification tasks beyond biology involve other complex hierarchical label spaces, such as general product taxonomies, medical diagnoses, or broad web-scale knowledge graphs. Future work will focus on incorporating these diverse structures to advance LMMs toward general-purpose visual understanding.

Summary updated

BibTeX
@inproceedings{he2026taxonomy,
  author = {Hulingxiao He and Zhi Tan and Yuxin Peng},
  title = {{Taxonomy-Aware Representation Alignment for Hierarchical Visual Recognition with Large Multimodal Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=mre5VJuRL1},
}
Figure