HCCM: Hierarchical Cross-Granularity Contrastive and Matching Learning for Natural Language-Guided Drones

Hao Ruan, Jinliang Lin, Yingxin Lai, Zhiming Luo, Shaozi Li

Introduction

As drones become increasingly autonomous, the ability to guide them using natural language (Natural Language-Guided Drones, or NLGD) has emerged as a flexible and intuitive interaction paradigm. This task is typically modeled as a cross-modal retrieval problem: matching a textual command to a drone's camera view or vice versa. However, drone imagery presents unique challenges. Bird's-eye views encompass vast fields of view with complex, intertwined compositional semantics, such as "a red building next to a Z-shaped road surrounded by scattered trees."

Standard Vision-Language Models (VLMs) often rely on global alignment, matching an entire image to an entire sentence. This approach fails to capture the fine-grained spatial relationships essential for drone navigation. While some hierarchical models attempt to address this by partitioning scenes into strict "part-whole" entities using entailment logic, drone environments are often too messy for discrete bounding boxes. Furthermore, human descriptions are frequently incomplete, which can destabilize strict matching algorithms.

A complex drone scene $I_i$ and its corresponding textual description $T_i$, highlighting the need for fine-grained region-to-text mapping.

Methodology: The HCCM Framework

To overcome these limitations, the Hierarchical Cross-Granularity Contrastive and Matching (HCCM) framework is proposed. Built upon the XVLM architecture, HCCM introduces three core mechanisms designed to capture complex drone scenes without imposing unnatural geometric constraints.

1. Region-Global Image-Text Contrastive Learning (RG-ITC)

Unlike traditional models that enforce strict part-whole partitioning, RG-ITC employs a more flexible approach. It contrasts local visual regions (image patches) against global text representations, and local text fragments against global image representations. This bidirectional local-to-global alignment fosters a more nuanced understanding of the scene.

2. Region-Global Image-Text Matching (RG-ITM)

This module evaluates the semantic consistency of local features within the fused global context of both modalities. By utilizing hard negative mining, RG-ITM forces the model to learn difficult compositional semantics, such as distinguishing the relative positions of different landmarks.

Comparison of (b) Compositional Entailment Learning, (c) the proposed Region-Global Contrastive Learning, and (d) Region-Global Image-Text Matching.

3. Momentum Contrast and Distillation (MCD)

Ambiguous or incomplete drone text descriptions can introduce noise when the model focuses on fine-grained details. The MCD module addresses this by using momentum queues to store historical global features and soft targets for distillation. This stabilizes the global alignment, providing a reliable anchor while the model learns intricate details.

Experimental Evaluation

The HCCM framework was evaluated on two key benchmarks:

  • GeoText-1652: A large-scale dataset for UAV geolocalization. HCCM achieved state-of-the-art results, with a Recall@1 of 28.8% for image queries and 14.7% for text queries.
  • ERA: Used for zero-shot generalization testing. HCCM achieved a mean Recall (mR) of 39.93% on this unseen dataset, remarkably outperforming baseline models that were explicitly fine-tuned on ERA (previous best mR was 38.96%).

Key Insights

  • Flexibility over Rigidity: Looser region-to-global contrastive approaches are better suited for the messy reality of bird's-eye views than strict geometric entailment.
  • Bidirectional Alignment: Ablation studies confirm that matching both text-regions to global images and image-regions to global text is crucial for performance, with removal of either leading to a drop in accuracy.
  • Stability is Vital: The MCD module is essential for preventing noise from incomplete text descriptions from destabilizing the model's overall scene understanding.

Conclusion and Future Work

HCCM demonstrates that hierarchical, cross-granularity learning significantly improves drone understanding of natural language. Qualitative analysis via GradCAM shows the model's ability to ground specific entities like "solar panels" or "blue domes" that global-only models miss. Future research may explore removing the reliance on explicit bounding boxes for region extraction or extending this framework to real-time video data for dynamic drone navigation.

Summary updated

BibTeX
@inproceedings{ruan2025hccm,
  author = {Hao Ruan and Jinliang Lin and Yingxin Lai and Zhiming Luo and Shaozi Li},
  title = {{HCCM: Hierarchical Cross-Granularity Contrastive and Matching Learning for Natural Language-Guided Drones}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755489},
}
Figure