Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Distillation in YOLOX-ViT for Side-Scan Sonar Object Detection

Martin Aubard, László Antal|arXiv (Cornell University)|Jan 1, 2024
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

This paper proposes YOLOX-ViT, a vision transformer-enhanced object detector for side-scan sonar images, and applies knowledge distillation to compress it into smaller, efficient models. The method reduces false positives in wall detection by up to 20.35% while improving mAP50 by 0.13–0.16, demonstrating that ViT integration and KD together enhance accuracy and robustness in underwater object detection.

ABSTRACT

In this paper we present YOLOX-ViT, a novel object detection model, and investigate the efficacy of knowledge distillation for model size reduction without sacrificing performance. Focused on underwater robotics, our research addresses key questions about the viability of smaller models and the impact of the visual transformer layer in YOLOX. Furthermore, we introduce a new side-scan sonar image dataset, and use it to evaluate our object detector's performance. Results show that knowledge distillation effectively reduces false positives in wall detection. Additionally, the introduced visual transformer layer significantly improves object detection accuracy in the underwater environment. The source code of the knowledge distillation in the YOLOX-ViT is at https://github.com/remaro-network/KD-YOLOX-ViT.

Motivation & Objective

  • To improve object detection performance in side-scan sonar images using a vision transformer-enhanced YOLOX architecture.
  • To investigate the effectiveness of knowledge distillation in reducing model size without sacrificing detection accuracy.
  • To introduce a new side-scan sonar dataset focused on wall detection for underwater robotics.
  • To evaluate the impact of visual transformer layers on feature extraction and detection robustness in low-visibility underwater environments.
  • To reduce false positive rates in compact models through distillation from larger teacher networks.

Proposed method

  • Enhanced YOLOX with a visual transformer (ViT) layer inserted after the SPPBottleneck in the backbone, replacing the standard convolutional block.
  • Trained a larger YOLOX-L and YOLOX-L-ViT model as 'teachers' using standard cross-entropy and IoU-based loss functions.
  • Used knowledge distillation with a combined loss: ℒ = λ·ℒhard + (1−λ)·ℒsoft, where ℒhard is ground-truth cross-entropy and ℒsoft is soft label distillation from the teacher.
  • Applied distillation to compress the YOLOX-Nano and YOLOX-Nano-ViT models into smaller 'student' models, focusing on feature map and logit distillation.
  • Employed data augmentation only in the training phase for the teacher models, while student models were trained with and without online augmentation.
  • Used a hint-based distillation strategy focusing on intermediate feature maps from the backbone to align student and teacher representations.

Experimental results

Research questions

  • RQ1Can knowledge distillation effectively reduce false positive rates in compact YOLOX models for side-scan sonar object detection?
  • RQ2Does integrating a vision transformer layer into YOLOX improve detection accuracy and robustness in underwater environments?
  • RQ3How does the combination of ViT and knowledge distillation affect mAP50 and inference efficiency in small models?
  • RQ4What is the impact of online data augmentation on the performance of large and small models in this low-data regime?
  • RQ5Can the ViT layer enhance feature extraction in sonar images, particularly for detecting structural features like walls?

Key findings

  • Knowledge distillation reduced false positive detections in the YOLOX-Nano-noAug student model by 6% when using the L-ViT teacher, and by 20.35% when using the ViT-enhanced teacher.
  • The YOLOX-Nano-ViT-noAug student model achieved a 38% detection rate on video with only 13.9 false positives, outperforming the base Nano model in both precision and false positive control.
  • YOLOX-L-ViT achieved a 0.41 mAP50 and 98.93% detection duration on video, significantly outperforming YOLOX-L (0.33 mAP50, 87.05% detection) when trained without online data augmentation.
  • The ViT layer improved detection accuracy by 8% for the L model and 23% for the Nano model compared to their non-ViT counterparts, especially in long-duration video inference.
  • Models trained without online data augmentation showed better generalization and lower overfitting than those with augmentation, particularly in the L and L-ViT variants.
  • The ViT-enhanced student model (Nano-ViT-noAug) achieved a 0.13 mAP50 and 30.16% precision, demonstrating that ViT improves feature learning even in small models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.