CTA-Net: A CNN-Transformer Aggregation Network for Improving Multi-Scale Feature Extraction

Chunlei Meng, Jiacheng Yang, Wei Lin, Bowen Liu, Hongda Zhang, Chun Ouyang, Zhongxue GanarXiv 2024 · DOI

Introduction

Vision Transformers (ViTs) have demonstrated remarkable success in computer vision by modeling long-range dependencies. However, their performance often suffers on small-scale datasets due to the lack of inductive biases—such as locality and translation invariance—that are inherent in Convolutional Neural Networks (CNNs). While CNNs excel at local feature extraction, they have a limited receptive field. Existing hybrid models often employ dual-branch architectures to combine these strengths, but such designs can be computationally expensive and prone to information loss during feature fusion.

This paper introduces CTA-Net (CNN-Transformer Aggregation Network), a lightweight hybrid architecture that integrates CNN operations directly into Transformer blocks. By embedding local inductive biases within a global reasoning framework, CTA-Net achieves state-of-the-art performance on small datasets with significantly lower computational costs than standard ViTs or dual-branch hybrids.

Proposed Method

The CTA-Net architecture is built upon the deep integration of convolutional operations within the Transformer block, specifically through two novel modules:

Reverse Reconstruction CNN-Variants (RRCV)

The RRCV module addresses the "patch blindness" of standard ViTs, where spatial relationships within patches are often ignored. RRCV performs a "spatial detour": it takes 1D tokens, reshapes them into a 2D feature map via Reverse Embedding, applies a CNN operation (such as a Residual block) to extract local features, and then converts them back into tokens. This process allows the model to reconstruct and refine local information mid-block.

Lightweight Multi-Scale Feature Fusion MHSA (LMF-MHSA)

Standard Multi-Head Self-Attention (MHSA) operates at a single scale. LMF-MHSA introduces a multi-scale convolutional layer (using 1x1, 3x3, and 5x5 kernels) before the attention mechanism, acting as a "multi-focal lens" to capture features at different granularities. To maintain efficiency, the module utilizes depthwise separable convolutions, resulting in a 66% reduction in parameters compared to traditional MHSA modules.

Detailed architecture of CTA-Net, highlighting the LMF-MHSA and RRCV modules.

Experimental Results

The researchers evaluated CTA-Net on several small-scale datasets (fewer than 100,000 samples), including CIFAR-10, CIFAR-100, and medical imaging datasets (APTOS 2019, RFMiD 2020). Notably, the model was trained from scratch without large-scale pre-training.

Performance and Efficiency

CTA-Net consistently outperformed both pure CNNs (ResNet) and pure Transformers (ViT, Swin-T) across all benchmarks. As shown in the comparison table below, CTA-Net achieves superior accuracy while maintaining a minimal parameter count and computational footprint.

Comparative analysis of CTA-Net against state-of-the-art CNNs and Transformers.

Key metrics include:

  • Accuracy: Achieved 86.76% on CIFAR-10 and 76.9% on APTOS 2019.
  • Efficiency: Utilizes only 20.32M parameters and 2.83B FLOPs. In contrast, a standard ViT/16 requires 57.96M parameters and 11.28B FLOPs to achieve lower accuracy on these datasets.
  • Convergence: The model demonstrates faster convergence than other modern hybrids like FastViT, making it practical for resource-constrained research.

Conclusion

CTA-Net proves that deep integration of CNN and Transformer paradigms is highly effective for small-scale data regimes. By utilizing RRCV and LMF-MHSA, the model successfully bridges the gap between local detail and global context. Future research will explore the scalability of CTA-Net on larger datasets and its application to complex tasks like object detection and semantic segmentation.

Summary updated

BibTeX
@misc{meng2024cta,
  author = {Chunlei Meng and Jiacheng Yang and Wei Lin and Bowen Liu and Hongda Zhang and Chun Ouyang and Zhongxue Gan},
  title = {{CTA-Net: A CNN-Transformer Aggregation Network for Improving Multi-Scale Feature Extraction}},
  year = {2024},
  eprint = {2410.11428},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11428},
}
Figure