Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision

Xiao Fang, Minhyek Jeon, Zheyang Qin, Stanislav Panev, Celso M de Melo, Shuowen Hu, Shayok Chakraborty, Fernando De la Torre

TL;DR

This paper tackles the challenge of adapting vehicle detectors to new aerial image domains where labeled data is scarce. They propose a novel method using generative AI (specifically, fine-tuned diffusion models) to synthesize realistic aerial images and their corresponding labels, significantly improving detector performance on unseen domains.

What Problem Does This Paper Address?

Detecting vehicles in aerial imagery is crucial for applications like traffic monitoring and defense. While deep learning models excel at this, they often struggle when deployed in new geographic regions or under different environmental conditions. This "domain shift" arises from variations in urban layouts, lighting, camera angles, and even vehicle types. Training models on data from one region and expecting them to work well in another is a significant challenge, especially when obtaining large, meticulously labeled datasets for every new domain is impractical and expensive.

Methods

The core of this work is a multi-stage, multi-modal knowledge transfer framework built around fine-tuned latent diffusion models (LDMs). Here's a breakdown:

  1. Domain-Specific Fine-tuning: They start by fine-tuning a pre-trained Stable Diffusion model on both the source (well-annotated) and target (weakly-annotated or unlabeled) aerial image domains. This helps the diffusion model learn the specific characteristics of aerial imagery.
  2. Synthetic Data Generation: Using the fine-tuned diffusion model, they generate synthetic aerial images for both the source and target domains.
  3. Label Generation via Cross-Attention Maps: This is a key innovation. Instead of relying on explicit labels during generation, they leverage the internal workings of the diffusion model. Specifically, they extract multi-channel cross-attention maps from the diffusion model's denoising U-Net. These maps highlight regions that correspond to specific concepts (like "car" or "background").
  4. They introduce learnable tokens within the prompts to capture both object and background concepts, which helps refine the localization of vehicles.
  5. A two-stage training process is employed: first, fine-tuning the diffusion model and learnable tokens; second, freezing the tokens and further fine-tuning the U-Net to better align with the data distribution.
  6. Automatic Labeling Strategy:
    • A detector is trained on the synthetic source domain images with their generated labels.
  7. This detector is then used to predict pseudo-labels for the synthetic target domain images based on their cross-attention maps.
  8. A final detector is trained on these synthetically generated and labeled target domain images.
  9. Label Refinement: A classifier refinement method is used to select more reliable bounding box labels for the synthetic target data, improving the quality of the training set.

Datasets

  • DOTA: A publicly available aerial imagery dataset used for vehicle detection.
  • LINZ: A newly introduced dataset collected from Selwyn, New Zealand. It contains aerial images with annotations for small vehicle detection.
  • UGRC: Another newly introduced dataset collected from Utah, USA, also featuring aerial images with small vehicle detection annotations.

Both LINZ and UGRC datasets were processed to have a consistent ground sampling distance (GSD) and image size (112x112 px) to facilitate experiments.

Key Insights and Ideas

  • Diffusion models are powerful for data augmentation: The paper demonstrates that diffusion models can generate high-quality synthetic aerial images and, crucially, their associated labels, even for challenging domains.
  • Cross-attention maps are rich sources of localization information: By analyzing the internal attention mechanisms of diffusion models, the authors found a way to extract meaningful spatial information that can be used to generate bounding box labels without explicit supervision during generation.
  • Multi-channel attention is better than single-channel: Stacking cross-attention maps related to the object and background concepts significantly improves label quality and subsequent detection performance compared to using only the object's attention map.
  • Weak supervision is key for domain adaptation: The method leverages weakly annotated target domain data, which is much easier to obtain than fully annotated data, to bridge the domain gap.
  • Foundational models struggle with aerial imagery: The paper highlights that even advanced vision-language models (VLLMs) and open-set detectors perform poorly on aerial imagery tasks, underscoring the need for domain-specific adaptation.

Key Results

The proposed method consistently outperforms various baselines:

  • Performance Improvement: Achieved AP50 improvements of 4-23% over supervised learning on source domain data, 6-10% over weakly supervised adaptation methods, 7-40% over unsupervised domain adaptation methods, and more than 50% over open-set object detectors.
  • Specific Gains: For example, when adapting from LINZ to UGRC, their method achieved 75.4% AP50 with Faster-RCNN, surpassing the best unsupervised method by 20.1%.
  • Qualitative Improvements: Visualizations show that the synthetic images are realistic and the generated labels are accurate, leading to better detector performance.

Limitations and Future Work

  • Resolution Limitation: The method samples large aerial images into smaller patches (112x112 px) to handle diffusion model limitations with small objects. This downsampling can make it difficult to generate precise attention maps for very small objects.
  • Overlapping Objects: Handling overlapping objects in aerial imagery remains a challenge, as their cross-attention maps can overlap, making it difficult to separate individual objects.
  • Future Work: The authors suggest integrating Vision Large Language Models (VLLMs) to automatically identify vehicle presence within the pipeline, potentially enabling a fully unsupervised workflow. They also aim to address the limitations related to small object detection and overlapping objects.

Summary updated

BibTeX
@inproceedings{fang2025adapting,
  author = {Xiao Fang and Minhyek Jeon and Zheyang Qin and Stanislav Panev and Celso M de Melo and Shuowen Hu and Shayok Chakraborty and Fernando De la Torre},
  title = {{Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure