TL;DR
Open-vocabulary object detection models often leverage hierarchical text prompts (e.g., "scooter, which is a motorcycle") to detect unseen objects, but relying on these rigid, hand-crafted connectors limits performance. This paper introduces InterHier, a method that replaces manual text connectors with a global learnable context that dynamically guides the text encoder's self-attention mechanism. By optimizing only a few prompt tokens, InterHier significantly boosts detection accuracy across diverse semantic granularities without requiring any architectural changes to the underlying detector.
What Problem Does This Paper Address?
Open-Vocabulary Object Detection (OVD) aims to break the boundary of fixed-category detectors by allowing models to localize and classify arbitrary objects using textual descriptions. To help models generalize to unseen "novel" categories, recent state-of-the-art methods incorporate semantic hierarchies—explicitly linking specific sub-categories to broader super-categories (e.g., scooter $\rightarrow$ motorcycle $\rightarrow$ vehicle).
However, existing approaches rely on hand-crafted, rigid text connectors like ", which is a" to chain these concepts together. The authors identify a key flaw here: these verbose "glue words" introduce unnatural grammatical structures that mismatch the concise image captions the Vision-Language Models (VLMs) were originally pre-trained on. This prevents the text encoder from optimally capturing the complex, multi-layered relationships within a semantic hierarchy.
Methods
To address the limitations of hand-crafted text chains, the authors propose InterHier (Interconnected Hierarchical Semantic Representations). Instead of forcing a static grammatical structure, InterHier uses prompt learning to let the model discover how to relate hierarchical concepts.
The framework operates in two main stages:
- Hierarchy-Aware Prompt Construction: For a target class, the method traverses the dataset's taxonomy from the finest sub-categories up to the target super-category. It joins them using a simple, clean connector (
", a") and prepends a set of learnable context vectors ($v$) to the front of the token sequence. - Context Optimization: The prompt is fed into a frozen CLIP text encoder. Because of the self-attention mechanism, the prepended learnable tokens can globally interact with all category names simultaneously. InterHier optimizes only these context vectors using a contrastive loss that aligns the aggregated textual embeddings with the visual Region of Interest (RoI) embeddings generated by a frozen base detector (like Detic).
Datasets
The authors validated InterHier across several challenging OVD benchmarks:
- iNatLoc: A dataset featuring a rich, six-level biological taxonomy (from Phylum down to Species) used to evaluate multi-level label granularity.
- FSOD (Few-Shot Object Detection): Evaluated using a manually constructed three-level hierarchical structure.
- OV-LVIS & OV-COCO: Standard large-vocabulary and open-vocabulary benchmarks used to test generalization from base training categories to unseen novel categories.
Key Insights and Ideas
- Simpler Phrasing is Better for VLMs: Grammatically complex connectors like
"which is a"actually degrade performance compared to a simple comma or"a"connector. This is because simpler prompts better match the distribution of the web-scale text data used to pre-train VLMs. - Global Over Local Attention: Rather than processing hierarchical relationships as a sequential chain, prepending a global learnable context allows the text encoder's self-attention layers to dynamically redistribute attention weights. This strengthens the direct semantic bonds between distant hierarchical concepts (e.g., connecting a specific species directly to its phylum).
- Highly Efficient Tuning: Because the visual backbone, text encoder, and detection heads remain completely frozen, InterHier requires minimal training. It achieves rapid performance convergence in as few as 100 iterations while introducing zero architectural overhead at inference time.
Key Results
- Superior Granularity Performance: On the iNatLoc benchmark, InterHier consistently outperformed the baseline method (SHiNe) across all six granularity levels. Notably, at the coarsest level (Level 1), InterHier achieved a massive performance leap of up to +15.5% mAP50 under LVIS supervision.
- State-of-the-Art OVD Generalization: On the competitive OV-LVIS benchmark, InterHier achieved a novel-class average precision ($AP_r$) of 22.1% with a ResNet-50 backbone and 36.1% with a Swin-B backbone, outperforming established models like Detic and OVMR.
- Robustness on OV-COCO: Even in a single-level setup without an explicit external hierarchy, InterHier maintained highly competitive performance, reaching an overall $AP_{50}$ of 53.1%.
Limitations and Future Work
The primary limitation of InterHier is its dependency on an explicit, pre-defined ground-truth semantic hierarchy or dataset taxonomy to construct its prompts. For datasets like OV-COCO that lack a natural hierarchical structure, its architectural advantages cannot be fully exploited without external assistance.
To mitigate this, the authors suggest that future work could involve leveraging Large Language Models (LLMs) to automatically generate rich, customized semantic hierarchies for any arbitrary vocabulary set, making InterHier entirely self-contained and universally applicable.
Summary updated