Xception: Deep Learning with Depthwise Separable Convolutions

François CholletCVPR 2017

Abstract

This paper introduces Xception, a novel convolutional neural network architecture based entirely on depthwise separable convolution layers. By reinterpreting Inception modules as an intermediate step between regular convolutions and depthwise separable convolutions, Xception achieves superior performance compared to Inception V3 on the ImageNet dataset and significantly outperforms it on larger-scale datasets like JFT, all while maintaining a similar parameter budget.

Introduction

Traditional Convolutional Neural Networks (CNNs) typically utilize convolutional kernels to simultaneously map cross-channel correlations and spatial correlations. The Inception family of architectures sought to factorize these operations by using $1 \times 1$ convolutions for channel-wise mapping followed by $3 \times 3$ or $5 \times 5$ convolutions for spatial mapping. Xception ("Extreme Inception") takes this hypothesis to its logical conclusion: can we completely decouple the mapping of cross-channel correlations from the mapping of spatial correlations?

The Xception Architecture

The fundamental building block of Xception is the depthwise separable convolution. This operation splits a standard convolution into two parts: a depthwise convolution (spatial convolution per channel) and a pointwise convolution ($1 \times 1$ convolution projecting channels).

The "Extreme" Inception module, where spatial convolutions are performed independently for each output channel of the 1x1 convolution.

The Xception architecture is structured as a linear stack of these depthwise separable convolution layers, organized into three main flows: an Entry flow, a Middle flow (repeated 8 times), and an Exit flow. Crucially, the architecture incorporates residual connections (skip connections) throughout, which the authors found essential for stable convergence and high accuracy in such a deep network.

The full Xception architecture, showing the Entry, Middle (repeated 8 times), and Exit flows.

Experimental Evaluation

The authors evaluated Xception against Inception V3 and ResNet-152 using several large-scale datasets:

  • ImageNet: The standard benchmark with 1.2 million images across 1,000 classes.
  • JFT: An internal Google dataset containing 350 million images and 17,000 classes.
  • FastEval14k: An auxiliary dataset used for evaluating JFT-trained models.

Key Insights

The Continuum Hypothesis

The paper proposes a spectrum of convolutional operations. Standard convolutions are fully coupled. Inception modules are partially decoupled. Depthwise separable convolutions represent the "extreme" end of this spectrum, where spatial and channel-wise correlations are mapped entirely independently.

The Role of Non-Linearities

A surprising finding was that adding a ReLU non-linearity between the depthwise and pointwise steps in Xception actually degraded performance. This contrasts with standard Inception modules. The authors suggest that in deep feature spaces, the information loss from the non-linearity outweighs the benefit of increased model complexity.

Results

Xception demonstrated clear advantages in both accuracy and parameter efficiency:

  • ImageNet: Achieved 79.0% Top-1 accuracy, surpassing Inception V3 (78.2%) and ResNet-152 (77.0%).
  • Large-Scale Scaling: On the JFT dataset, Xception showed a 4.3% relative improvement in Mean Average Precision over Inception V3, indicating that the architecture scales exceptionally well with data volume.
  • Efficiency: Xception achieves these gains with approximately 22.8 million parameters, slightly fewer than Inception V3's 23.6 million.

Conclusion and Future Work

Xception proves that depthwise separable convolutions are a powerful alternative to standard Inception modules. While training speed was initially a bottleneck due to unoptimized implementations of depthwise convolutions in early frameworks, the architectural efficiency is undeniable. Future work may involve dedicated hyperparameter tuning or exploring the "sweet spot" between partial and extreme decoupling for specific computer vision tasks.

Summary updated

BibTeX
@inproceedings{chollet2017xception,
  author = {François Chollet},
  title = {{Xception: Deep Learning with Depthwise Separable Convolutions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.195},
}
Figure