CCTSS: The Combination of CNN and Transformer with Shared Sublayer for Detection and Classification

Aorui Gou, Jingjing Liu, Xiaoxiang Chen, Xiaoyang Zeng, Yibo FanIEICE Trans. Fundam. Electron. Commun. Comput. Sci 2024

Abstract

CCTSS is a hybrid neural network architecture designed to integrate the local feature extraction capabilities of Convolutional Neural Networks (CNNs) with the global context-awareness of Transformers. By employing a shared sublayer mechanism to reduce parameter redundancy and an Optimal Transport strategy for label assignment, CCTSS achieves state-of-the-art performance in object detection and classification while maintaining a compact model size.

Introduction

In computer vision, a persistent trade-off exists between capturing local textures and global context. Convolutional Neural Networks (CNNs) are highly effective at identifying local patterns like edges and textures but are limited by their small receptive fields. Conversely, Transformers excel at capturing long-range dependencies across an entire image but often overlook fine-grained details. Simply concatenating these architectures typically results in "parameter bloat," making models computationally expensive. CCTSS addresses these challenges by introducing a dual-branch architecture with shared sublayers and a more logical approach to label assignment.

Methods

The CCTSS framework introduces three primary innovations to balance performance and efficiency:

1. Double-Branch Architecture and Feature Bridge

CCTSS utilizes a parallel structure consisting of a CNN branch and a Transformer branch. These branches are interconnected via a Feature Bridge, which facilitates bi-directional information flow. This allows the Transformer to incorporate local texture information while the CNN gains a broader understanding of the global scene.

The CCTSS architecture overview, showing the CNN and Transformer branches linked by the Feature Bridge and Feature Enhancement Block (FEB).

2. Shared Sublayers for Model Compression

To mitigate parameter redundancy, the authors decompose convolutional filters into a shared "atom" (a common basis) and layer-specific coefficients. This "Shared Sublayer" approach allows the network to reuse structural knowledge across different layers, significantly reducing the total parameter count without compromising accuracy.

3. Optimal Transport (OT) for Label Assignment

Traditional object detection relies on rigid overlap thresholds for matching anchor boxes to ground-truth objects. CCTSS instead treats label assignment as a global optimization problem. Using the Sinkhorn-Knopp algorithm, the model determines the mathematically optimal "transportation plan" to match labels to anchors, improving detection logic in complex or crowded scenes.

Key Results

The effectiveness of CCTSS was validated across several benchmarks, including ImageNet, MSCOCO, and fine-grained datasets like CUB-200-2011.

  • Efficiency: Implementing shared sublayers on a ResNet18 backbone reduced the model size by 74% (from 11.17M to 2.96M parameters) while slightly improving the error rate on CIFAR-10.
  • Detection Performance: On the MSCOCO benchmark, CCTSS achieved 46.0% mAP, outperforming established models like the Swin-Transformer (45.4%) and ViT (45.6%).
  • Qualitative Analysis: Visualization of the feature maps demonstrates how the model successfully captures both high-frequency local details and low-frequency global structures across different layers.
Feature map visualizations across different layers and channels, illustrating the model's ability to focus on relevant object features.

Conclusion and Future Work

CCTSS demonstrates that deep learning models can be both high-performing and parameter-efficient by leveraging interactive fusion and structural sharing. While the current work significantly compresses the CNN branch, future research may extend the shared sublayer concept to the Transformer branch. Additionally, further investigation into inference latency on edge hardware will be critical for real-world deployment in fields like autonomous driving and mobile vision.

Summary updated

BibTeX
@article{gou2024cctss,
  author = {Aorui Gou and Jingjing Liu and Xiaoxiang Chen and Xiaoyang Zeng and Yibo Fan},
  title = {{CCTSS: The Combination of CNN and Transformer with Shared Sublayer for Detection and Classification}},
  journal = {IEICE Trans. Fundam. Electron. Commun. Comput. Sci.},
  year = {2024},
  doi = {10.1587/transfun.2022eap1157},
}
Figure