# CSPNet: A New Backbone that can Enhance Learning Capability of CNN

CSPNet splits feature maps to cut CNN computation without losing accuracy

Chien-Yao Wang, Hong-Yuan Mark Liao, I-Hau Yeh, Yueh-Hua Wu, Ping-Yang Chen, Jun-Wei Hsieh · arXiv · 2019-11-27

- **Problem** Wider and deeper CNNs gain accuracy but raise computation, which keeps detection out of reach on cheap hardware. The authors trace part of this cost to repeated gradient information during training.
- **Method** CSPNet sends half the channels through the blocks and joins them back at the stage end.
- **Results** On ImageNet, CSPPeleeNet reached 70.9% top-1 with 13% less computation than PeleeNet.

## Duplicate gradients as a cost driver

Wider and deeper networks gain accuracy, but each added layer raises computation, so detection stays out of reach on cheap hardware. The authors place part of this burden in optimization: when dense layers update their weights, they receive largely the same gradient, so each layer relearns information that another layer already used. Depth-wise separable convolution was set aside because it does not fit ASIC-style edge hardware, so the authors change how a stage is wired instead.

## Splitting the base feature map

In DenseNet, each dense layer receives the concatenation of all earlier outputs in the stage, so the same channels feed many layers.

The partial transition layer handles the join in two steps. The dense-layer outputs \\(\[x\_0'', x\_1, \\ldots, x\_k\]\\) first go through a transition layer that yields \\(x\_T\\). Then \\(x\_T\\) is concatenated with \\(x\_0''\\) and passed through a second transition layer to form \\(x\_U\\). Because the dense side and the directly linked side each receive gradients separately, the linked feature map does not carry gradients already used by the dense side.

## Why the partial dense block is cheaper

The partial dense block is designed around three goals: more gradient paths, a more even computational load per layer, and lower memory traffic. The authors say the count of gradient paths can double, and the cross-stage join avoids the explicit feature copies that plain concatenation needs. In a DenseNet the base layer has far more channels than the growth rate, and the dense operation now sees only half of the base channels, which the authors say removes nearly half of the computational bottleneck.

For memory traffic, the authors use the Convolutional Input/Output (CIO) metric. For a dense block with base feature map size \\(w \\times h \\times c\\), growth rate \\(d\\) and \\(m\\) dense layers, they write its CIO as \\((c \\times m) + \\frac{(m^2+m) \\times d}{2}\\). Since \\(m\\) and \\(d\\) are usually far smaller than \\(c\\), the authors conclude that a partial dense block saves at most half of a network's memory traffic.

The same split is applied to ResNet and ResNeXt blocks, where only half of the feature channels enter the residual blocks, so no bottleneck layer is added. The authors tie this to a theoretical lower bound on memory access cost when FLOPs are fixed.

## Fusion order and gradient truncation

Two fusion orders are compared. CSP (fusion first) concatenates the two part outputs and then applies the transition, while CSP (fusion last) applies the transition to the dense block output before concatenating it with the other part. Fusion first reuses a large amount of gradient information, whereas fusion last truncates the gradient flow and avoids that reuse.

On ImageNet, fusion last cut computation sharply and lost only 0.1% top-1, while fusion first also cut computation but lost 1.5% top-1.

These are the authors' ImageNet runs under the training settings given in the implementation details.

## Exact Fusion Model for detection

EFM targets one-stage detection and aims to give each anchor a suitable field of view. The authors cite prior work reporting that CNNs can be distracted when trained from image-level labels, and they link this to the accuracy gap between two-stage and one-stage detectors.

Concatenating features from the pyramid produces large maps, so EFM applies the Maxout technique to compress them. On PeleeNet's feature pyramid, the authors report that CSPNet with this detector cuts memory usage by 75%.

## EFM ablation on MS COCO

The ablation compares PRN, a ThunderNet variant with CEM and SAM, GFM and EFM, and all models use CSPPeleeNet as the backbone. GFM fuses features from all scales, while EFM fuses them according to anchor size.

EFM runs at 132 fps against 134 for GFM, and its AP rises from 24.3 to 26.4 with AP50 from 46.2 to 48.6. The authors accept the speed cost because the accuracy gain is larger.

Adding GIoU to EFM lifts AP to 27.1 but lowers AP50 to 45.9 from 48.6. The authors argue that for edge computing the number and location of objects matter more than exact coordinates, so they left GIoU out of later models. This rests on their own argument and this ablation.

Between the attention variants, EFM (SAM) reached 129 fps with 26.8 AP and 49.0 AP50, and EFM (SPP) reached 128 fps with 26.2 AP and 48.5 AP50, so SAM became the final design.

## ImageNet classification across backbones

The headline claim is a 20% computation reduction with equivalent or higher accuracy on ImageNet. CSPNet is applied to ResNet-10, ResNeXt-50, PeleeNet and DenseNet-201-Elastic, and the authors report at least 10% less computation in these families with accuracy unchanged or higher.

CSPResNet-10 reached 65.3% top-1 against 63.5% for ResNet-10, a 1.8% gain, with 1.905 BFLOPs against 2.273. CSPResNeXt-50 cut computation to 7.93 BFLOPs from 10.11, a 22% reduction, and reached 77.9% top-1 against 77.8% for ResNeXt-50.

The 76.8% figure mentioned in the text uses batch size 2048, which differs from the single-GPU setting the authors used, and the authors argue that the swish and SE blocks are not efficient on mobile GPU.

When swish and SE are added to CSPPeleeNet, SECSPPeleeNet-swish cut computation by 3% and raised top-1 by 1.1%.

## COCO detection against prior detectors

Detection experiments target three settings: CSPResNeXt50 with PANet (SPP) for GPU, CSPPeleeNet with EFM (SAM) for mobile GPU, and CSPPeleeNet Reference and CSPDenseNet Reference with PRN for CPU.

At 512×512, CSPResNeXt50 with PANet (SPP) reached 38.0 AP, 60.0 AP50 and 40.8 AP75 at 44 fps, against 37.3, 58.5 and 39.7 for LRF with ResNet101 at 31 fps; these are the 0.7, 1.5 and 1.1 point gains the text describes. At 608×608 the same model reached 38.4 AP, 60.6 AP50 and 41.6 AP75 at 35 fps.

At 129 fps, EFM (SAM) at 416×416 reached 49.0 AP50, against 44.9 for CenterNet with ResNet18 at the same speed. At 109 fps, EFM (SAM) at 512×512 reached 50.4 AP50 against Pelee's 38.3 at 106 fps; the authors describe the gap as 12.1% AP50.

CSPDenseNetb Reference with PRN reached 400 fps at 320×320 with 15.3 AP and 34.2 AP50, against 19.1 AP and 33.7 AP50 for ThunderNet SNet49 at 267 fps. Table 4 speeds were measured on a GTX 1080ti at batch size 1 where possible with Darknet, and most accuracy values are on COCO test-dev, with TTFNet on minval5k.

## Bottleneck and memory traffic

In PeleeNet-YOLO the largest per-layer computation sits where the head integrates the feature pyramid, while in PeleeNet-PRN it sits in the backbone transition layers. The authors report that CSPPeleeNet-EFM reduces the PeleeNet backbone bottleneck by 44% and the PeleeNet-YOLO bottleneck by 80%. The authors read the flatter profile as higher hardware utilization; this is their interpretation of the per-layer profile.

For ResNeXt50 the CIO is 34.4M, and the proposed CSPResNeXt50 reaches 32.6M. CSPResNeXt50 removes the bottleneck layers of the ResX block and keeps input and output channel counts equal, which the authors tie to the lowest MAC when FLOPs are fixed, following Ma et al. The authors report 22% less computation than the vanilla ResNeXt50.

## Inference rate on CPU and mobile GPU

Speed tests use an Nvidia Jetson TX2 for mobile GPU and an Intel Core i9-9900K for CPU, with CPU rates from the OpenCV DNN module, and no compression or quantization was applied.

On CPU, CSPDenseNetb Reference with PRN reached 102 fps and 34.2 AP50, against 47 fps for SNet49-ThunderNet at 33.7, 54 fps for YOLOv3-tiny at 33.1 and 71 fps for YOLOv3-tiny-PRN at 33.1. That is 55, 48 and 31 fps more than the three baselines respectively. CSPPeleeNet Reference with PRN (3l) reached 40.0 AP50 against 40.2 for SNet146-ThunderNet, and ran at 52 fps on CPU against 32 fps.

On mobile GPU, CSPPeleeNet Reference with EFM (SAM) ran at 205 fps on GTX 1080ti, 62 fps slower than PRN (3l) at 267 fps, but reached 41 fps on Jetson TX2 against 38 fps for PRN (3l). Its AP50 is 44.6, against 40.0 for PRN (3l).

The authors link the mobile GPU result to EFM's lower memory requirement when generating feature pyramids, which they judge useful under memory-bandwidth limits. CSPPeleeNet Reference with EFM (SAM) has 44.6 AP50 against 33.1 for YOLOv3-tiny, and the authors describe the gap as 11.5%.

## Limitations

The swish variant of CSPPeleeNet raised AP by about 1%, but it needs a lookup table in hardware, so the authors dropped swish from the final design.

Adding GIoU lowers AP50 in the COCO ablation, and the authors' decision rests on their assumption about object counts and locations, which is supported only by that ablation.

The EfficientNet-B0 comparison mixes training environments, since the 76.8% figure uses batch size 2048 and the authors' runs use one GPU.

Validation covers ImageNet classification and MS COCO detection. The fusion-order and partial-ratio ablations use only PeleeNet as the baseline. ResNet, ResNeXt and DenseNet families were trained with different step budgets, so their accuracy comparisons do not share one schedule. The speed measurements cover one GPU, one CPU and one mobile GPU, with batch size 1 where possible.

## Paper info

- **Authors**: Chien-Yao Wang, Hong-Yuan Mark Liao, I-Hau Yeh, Yueh-Hua Wu, Ping-Yang Chen, Jun-Wei Hsieh
- **Venue**: arXiv · Preprint
- **First published**: 2019-11-27
- **Added**: 2026-11-11
- **Updated**: 2019-11-27
- **Version**: v1
- **arXiv**: 1911.11929
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1911.11929v1) · [PDF ↗](https://arxiv.org/pdf/1911.11929v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Chien-Yao Wang, Hong-Yuan Mark Liao, I-Hau Yeh, Yueh-Hua Wu, Ping-Yang Chen, Jun-Wei Hsieh (2019). CSPNet: A New Backbone that can Enhance Learning Capability of CNN. arXiv:1911.11929v1. https://arxiv.org/abs/1911.11929v1

**BibTeX**

```
@misc{wang2019cspnet,
  title = {{CSPNet: A New Backbone that can Enhance Learning Capability of CNN}},
  author = {Chien-Yao Wang and Hong-Yuan Mark Liao and I-Hau Yeh and Yueh-Hua Wu and Ping-Yang Chen and Jun-Wei Hsieh},
  year = {2019},
  eprint = {1911.11929},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11929v1}
}
```

## Other paper commentary

- [Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression](https://refivu.com/en/papers/d05dc1a3-dfd0-4eb2-bd4f-2b74602bcc42-distance-iou-loss-faster-and-better-learning-for.md)
- [YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information](https://refivu.com/en/papers/11ec3a37-5335-4563-b8f6-6949e50f3a4f-yolov9-learning-what-you-want-to-learn-using.md)
- [Context Encoders: Feature Learning by Inpainting](https://refivu.com/en/papers/7b297366-a2d7-4dfc-9233-9920c1be930e-context-encoders-feature-learning-by-inpainting.md)
- [Object Detection with Deep Learning: A Review](https://refivu.com/en/papers/7a141689-80c4-419f-837d-9d8f246ca5fc-object-detection-with-deep-learning-a-review.md)
- [OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields](https://refivu.com/en/papers/5a0057d5-5ad8-405d-b3a0-1ddc3220df6c-openpose-realtime-multi-person-2d-pose-estimation-using.md)
- [DETRs Beat YOLOs on Real-time Object Detection](https://refivu.com/en/papers/2872fb04-6c8b-4f48-a976-80e6dd5be309-detrs-beat-yolos-on-real-time-object-detection.md)
- [Sparks of Artificial General Intelligence: Early experiments with GPT-4](https://refivu.com/en/papers/bf8f04ae-6d95-4b81-8fa4-4c3f7fdcc547-sparks-of-artificial-general-intelligence-early-experiments.md)
- [LINE: Large-scale Information Network Embedding](https://refivu.com/en/papers/395ad92f-93c2-44fe-8480-bbf8df48c4cf-line-large-scale-information-network-embedding.md)
- [Least Squares Generative Adversarial Networks](https://refivu.com/en/papers/de7adb03-4a8a-4e01-93e9-d9d8b2434300-least-squares-generative-adversarial-networks.md)
- [Sampling-based Algorithms for Optimal Motion Planning](https://refivu.com/en/papers/2b978089-0325-43ce-9ea7-844028c8dd64-sampling-based-algorithms-for-optimal-motion-planning.md)
- [Multimodal Machine Learning: A Survey and Taxonomy](https://refivu.com/en/papers/2148fea3-852f-4876-ab29-675f2c95c8d9-multimodal-machine-learning-a-survey-and-taxonomy.md)
- [Spatial Temporal Graph Convolutional Networks for Skeleton-Based Action Recognition](https://refivu.com/en/papers/bbd98e39-133a-4c51-b43b-84aa4583b3aa-spatial-temporal-graph-convolutional-networks-for-skeleton.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [ResNet](https://refivu.com/en/terms/ca7e0121c7a8-resnet)
- [MS COCO](https://refivu.com/en/terms/1a7c38d39825-ms-coco)
- [DenseNet](https://refivu.com/en/terms/43ab92ad19d5-densenet)
- [ResNeXt](https://refivu.com/en/terms/c4180a9c183c-resnext)
- [YOLOv3](https://refivu.com/en/terms/b6d56c186f0a-yolov3)
- [anchor](https://refivu.com/en/terms/81833206c00d-anchor)
- [dense block](https://refivu.com/en/terms/e8302513b824-dense-block)
- [CSPNet](https://refivu.com/en/terms/97f34ddba355-cspnet)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/3f885aa7-65fa-4ad8-bde8-f91e2cb0eb53-cspnet-a-new-backbone-that-can-enhance-learning)
