Abstract
Vision-Language Models (VLMs) like CLIP excel at zero-shot recognition but often fail to maintain consistency within structured hierarchical taxonomies. Standard fine-tuning treats labels as flat categories, ignoring parent-child relationships. We present a framework that integrates hierarchical constraints into VLM fine-tuning using two novel loss functions: Tree-Path KL Divergence (TP-KL) for vertical consistency and Hierarchy-Sibling Smoothed Cross-Entropy (HiSCE) for horizontal consistency. By employing Low-Rank Adaptation (LoRA), we achieve significant improvements in classification accuracy and structural coherence across multiple domains with minimal parameter updates.
Introduction
While VLMs have revolutionized computer vision, their application in specialized fields—such as biodiversity monitoring or medical imaging—is hindered by hierarchical inconsistency. A model might correctly identify a specific bird species but misclassify its broader family, a logical contradiction that undermines trust in automated systems. Traditional fine-tuning often exacerbates this by treating all labels as independent. This paper addresses the need for "hierarchy-aware" fine-tuning that respects the inherent structure of biological and technical taxonomies.
Methods
The proposed framework leverages LoRA to fine-tune a small subset of parameters (approximately 4.4 million) while keeping the VLM backbone frozen. The core innovation lies in the joint optimization of two complementary loss functions:
- Tree-Path KL Divergence (TP-KL): This objective ensures vertical path consistency. It models the entire path from the root to the leaf as a joint distribution, forcing the model to align its predictions across all taxonomic levels simultaneously.
- Hierarchy-Sibling Smoothed Cross-Entropy (HiSCE): This objective focuses on horizontal consistency. By smoothing labels among sibling classes (nodes sharing a parent), the model learns more nuanced decision boundaries between closely related categories.
Experimental Evaluation
The framework was evaluated on four diverse hierarchical benchmarks: CUB-200-2011 (birds), FGVC-Aircraft, Butterfly-200, and ChestX-ray14. Performance was measured using Full-Path Accuracy (FPA) and Tree-based Inconsistency Error (TICE).
Key Results
The hierarchy-aware approach consistently outperformed standard cross-entropy methods across all metrics. On the CUB-200 dataset, FPA increased from 50.2% to 71.1%. Crucially, the TICE metric, which measures logical contradictions in predictions, dropped significantly across all benchmarks. For instance, in the aircraft dataset, TICE was reduced from 17.9 to 8.5.
Qualitative analysis via t-SNE visualizations and dendrograms confirmed that the model's latent space reorganizes to mirror the ground-truth taxonomy after fine-tuning, effectively "clustering" related concepts as they appear in the real-world hierarchy.
Discussion and Conclusion
While the method currently requires complete taxonomies and has been tested primarily on closed-set classification, it demonstrates that structural knowledge can be efficiently injected into large-scale VLMs. By combining global path consistency (TP-KL) with local sibling smoothing (HiSCE), the model achieves a balance between fine-grained accuracy and logical coherence. Future work will explore extending these principles to open-vocabulary scenarios and generative tasks like automated captioning.
Summary updated