Deeply Supervised Layer Selective Attention Network: Towards Label-Efficient Learning for Medical Image Classification

Peng Jiang, Juan Liu, Lang Wang, Zhihui Ynag, Hongyu Dong, Jing Feng · DOI

Abstract

Labeling medical images depends on professional knowledge, making it difficult to acquire large amounts of annotated medical images with high quality in a short time. Thus, making good use of limited labeled samples in a small dataset to build a high-performance model is the key to medical image classification problems. In this paper, we propose a deeply supervised Layer Selective Attention Network (LSANet), which comprehensively uses label information in feature-level and prediction-level supervision. For feature-level supervision, we propose a novel visual attention module, Layer Selective Attention (LSA), to focus on the feature selection of different layers. LSA introduces a weight allocation scheme which can dynamically adjust the weighting factor of each auxiliary branch during training to enhance deeply supervised learning. For prediction-level supervision, we adopt a knowledge synergy strategy to promote hierarchical information interactions among all supervision branches via pairwise knowledge matching. Evaluated on the MedMNIST benchmark, LSANet shows substantial improvements over corresponding counterparts, providing a promising solution for label-efficient learning in medical image classification.

Introduction

In medical AI, data acquisition is a significant bottleneck. Unlike natural image datasets, medical images require expensive and time-consuming annotation by specialists. This scarcity often leads to small datasets where deep convolutional neural networks (DCNNs) struggle with gradient vanishing in deep layers and overfitting due to model complexity relative to sample size.

While Deeply Supervised Learning (DSL)—the practice of adding auxiliary classifiers to intermediate layers—mitigates these issues, standard approaches often assign fixed or equal importance to every layer. LSANet addresses this by arguing that different layers (from low-level textures to high-level structures) contribute differently depending on the training stage and the specific medical task.

The LSANet Framework

LSANet introduces two primary mechanisms to optimize learning from limited labels:

Feature-Level Supervision: Layer Selective Attention (LSA)

Standard networks typically consist of a main branch and several auxiliary branches. LSANet incorporates a specialized LSA module that processes feature maps from various network stages. These maps are first embedded into a consistent shape using convolutions with varying kernel sizes. A small Multi-Layer Perceptron (MLP) then calculates a dynamic weight ($\beta$) for each branch. This allows the model to adaptively prioritize the most informative layers for a given image during the training process.

Architecture of the proposed LSANet, highlighting the Main Branch, Attention Module (LSA), and Knowledge Synergy components.

Prediction-Level Supervision: Knowledge Synergy (KS)

To ensure that auxiliary classifiers work harmoniously, LSANet employs a Knowledge Synergy strategy. By utilizing a modified KL-divergence loss, different supervision branches are encouraged to interact and match their probability distributions. This pairwise knowledge matching ensures the entire network reaches a consensus, improving the robustness of the final diagnosis.

Experimental Evaluation

The researchers evaluated LSANet using MedMNIST, a large-scale benchmark for biomedical image classification. The study focused on four subsets representing diverse clinical challenges:

  • PathMNIST: Colon cancer tissue (9 classes).
  • DermaMNIST: Skin lesions (7 classes).
  • RetinaMNIST: Diabetic retinopathy grading (5 classes).
  • BloodMNIST: Individual normal blood cells (8 classes).

Key Results and Analysis

LSANet was tested across multiple backbones, including ResNet, VGG, DenseNet, and ResNeXt. The results consistently demonstrated the superiority of the dynamic weighting approach.

Accuracy curves across four MedMNIST datasets (Path, Derma, Retina, Blood) comparing classifiers with and without the Deeply Supervised Learning (DSL) components of LSANet.
  • Performance Boost: On the DermaMNIST dataset, LSANet achieved an accuracy of 78.70%, a significant jump from the ResNet-34 baseline of 74.01%. Across most architectures and subsets, LSANet provided a 2% to 4% improvement in both accuracy and AUC.
  • Multi-Scale Fusion: The LSA module acts as an effective multi-scale fuser, integrating fine textures from shallow layers and global shapes from deeper layers, both of which are critical for accurate medical diagnosis.
  • Compatibility: The LSA module is compatible with other attention mechanisms like SE or CBAM, often providing additive performance gains when combined.

Conclusion

LSANet provides a robust framework for label-efficient medical image classification by dynamically managing feature importance and ensuring predictive consensus across network layers. While the addition of auxiliary branches increases training-time computational overhead, the significant gains in accuracy on small, expert-labeled datasets make it a promising solution for real-world medical applications. Future work will explore extending this layer-selective logic to 3D medical data such as MRI and CT scans.

Summary updated

BibTeX
@misc{jiang2022deeply,
  author = {Peng Jiang and Juan Liu and Lang Wang and Zhihui Ynag and Hongyu Dong and Jing Feng},
  title = {{Deeply Supervised Layer Selective Attention Network: Towards Label-Efficient Learning for Medical Image Classification}},
  year = {2022},
  eprint = {2209.13844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.13844},
}
Figure