Citation and evidence

Xception

17 min full readUpdated 13 references

This article's verification

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

Computer VisionDeep LearningModel Architecture

Cite this article

Xception is a convolutional neural network architecture for image classification built almost entirely from depthwise separable convolutions, introduced by Francois Chollet of Google in the paper "Xception: Deep Learning with Depthwise Separable Convolutions" [1]. The name stands for "Extreme Inception": Chollet argued that the modules of the Inception family sit partway between an ordinary convolution and a depthwise separable convolution, and built a network that replaces every Inception module with the separable operation, the extreme end of that range [1]. With almost the same number of parameters as Inception V3, Xception slightly outperformed it on ImageNet and showed a larger gain on Google's internal JFT dataset of about 350 million images, which the paper read as evidence of a more efficient use of parameters rather than added capacity [1]. The preprint appeared on arXiv on 7 October 2016, and the paper was published at the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) in July 2017 [1][2][3].

The Xception diagram follows the network from its entry flow through its later stages.
The Xception diagram follows the network from its entry flow through its later stages. Chollet, François.

A reference implementation with ImageNet weights ships in Keras, the deep learning library Chollet wrote [1][4]. In 2017 Xception and MobileNet were the two image classification architectures that Kaiser, Gomez and Chollet cited as showing what depthwise separable convolutions could do: better models at a fixed parameter count in Xception's case, and far fewer parameters at a given level of performance in MobileNet's [7]. Its backbone was later adapted for semantic segmentation in DeepLab v3+ and used as a baseline detector for manipulated facial images in FaceForensics++ [9][10].

Background: the Inception hypothesis

A standard convolution layer learns filters over a three-dimensional space, two spatial dimensions plus a channel dimension, so each kernel has to capture spatial correlations and cross-channel correlations at the same time [1]. The Inception module, introduced with GoogLeNet and refined through Inception V2, V3 and Inception-ResNet, splits that work up: a typical module first applies a set of 1x1 convolutions that map the input into three or four smaller channel spaces, then applies ordinary 3x3 or 5x5 convolutions inside each of those spaces [1]. Chollet described the assumption behind this design as the "Inception hypothesis": cross-channel correlations and spatial correlations are decoupled enough that it is better not to learn them jointly [1].

The paper then considers a simplified Inception module with only 3x3 convolutions and no pooling tower. Such a module can be rewritten as one large 1x1 convolution followed by spatial convolutions that each act on a non-overlapping segment of the output channels [1]. That raises the question of how many segments to use. Taken to the limit, with one spatial convolution per output channel of the 1x1 convolution, the module rests on a stronger hypothesis: that cross-channel and spatial correlations can be mapped completely separately [1].

From convolution to depthwise separable convolution

Chollet pointed out that this "extreme" Inception module is almost the same as a depthwise separable convolution, which deep learning frameworks such as TensorFlow and Keras call a "separable convolution": a depthwise convolution (a spatial convolution applied to each input channel independently) followed by a pointwise 1x1 convolution that projects the result onto a new channel space [1]. The paper separates this from spatially separable convolutions (for example a 7x1 followed by a 1x7 convolution), which the image processing community also calls "separable convolutions" [1].

The paper lists two differences between an extreme Inception module and a depthwise separable convolution [1]:

DifferenceExtreme Inception moduleDepthwise separable convolution (usual implementation)
Order of operations1x1 convolution first, then spatial convolutionsChannel-wise spatial convolution first, then 1x1 convolution
Non-linearity between the two stepsBoth operations followed by ReLUUsually no non-linearity in between

Expanded article table

Chollet argued that the order is unimportant, mainly because the operations are stacked, and tested the second difference experimentally [1].

The paper describes the relationship as a discrete spectrum, parameterized by the number of independent channel segments over which spatial convolutions run. A regular convolution preceded by a 1x1 convolution is the single-segment end; a depthwise separable convolution, with one segment per channel, is the other end; and Inception modules, which divide a few hundred channels into three or four segments, lie in between [1]. Chollet noted that the intermediate points had not yet been explored [1].

The efficiency of the separable form is easiest to see in its cost. Following the notation of the MobileNet paper, for a $D_K \times D_K$ kernel, $M$ input channels, $N$ output channels and a $D_F \times D_F$ feature map (stride one with padding, so the output keeps the input's spatial size), a standard convolution costs $D_K \cdot D_K \cdot M \cdot N \cdot D_F \cdot D_F$ multiply-adds, while a depthwise separable convolution costs the sum of its two steps [6]:

DK⋅DK⋅M⋅DF⋅DF+M⋅N⋅DF⋅DFD_K \cdot D_K \cdot M \cdot D_F \cdot D_F + M \cdot N \cdot D_F \cdot D_F

The ratio of the two is $\frac{1}{N} + \frac{1}{D_K^2}$, so 3x3 separable convolutions need roughly 8 to 9 times less computation than standard ones [6]. Xception did not use this saving to build a small network. It spent roughly the same parameter budget as Inception V3 on a stack of separable layers instead [1].

Prior work

The paper credits Laurent Sifre with developing depthwise separable convolutions during an internship at Google Brain in 2013, where he used them in AlexNet and obtained small accuracy gains, large gains in convergence speed and a significant reduction in model size; an overview was first presented by Vincent Vanhoucke at ICLR 2014, and detailed results appear in Sifre's thesis [1]. The paper also notes that a depthwise separable convolution had been used as the first layer of Inception V1 and V2, and that Andrew Howard was developing MobileNets on the same operation inside Google [1]. Chollet wrote that the work depended on the efficient implementation of depthwise separable convolutions in TensorFlow [1]. The other building blocks the paper names are the VGG-16 network, which Xception resembles schematically in some respects, the Inception family, and the residual connections of ResNet [1].

Architecture

Xception is a linear stack of depthwise separable convolution layers with residual connections [1]. Its feature extraction base has 36 convolutional layers organized into 14 modules, and every module except the first and the last has a linear residual connection around it [1]. Every convolution and separable convolution layer is followed by batch normalization, and all separable convolutions use a depth multiplier of 1, meaning the depthwise step does not expand the number of channels [1]. For classification the convolutional base is followed by a logistic regression layer, with optional fully connected layers in between [1]. Chollet noted that the regular structure makes the network easy to define and modify, taking only 30 to 40 lines of code in a high-level library such as Keras or TensorFlow-Slim, in contrast to the more complex Inception V2 and V3 [1].

The network is drawn in three parts: data passes through an entry flow, then through a middle flow repeated eight times, then through an exit flow [1]. The layer widths below are taken from the Keras reference implementation, whose default input size is 299 x 299 pixels [4].

StageLayers (Keras reference implementation)Output channelsShortcut
Entry flow, stem3x3 convolution with stride 2, then 3x3 convolution32, then 64None
Entry flow, three modulesTwo 3x3 separable convolutions, then 3x3 max pooling with stride 2128, 256, 7281x1 convolution with stride 2
Middle flow, eight modulesThree 3x3 separable convolutions728Identity
Exit flow, one moduleTwo 3x3 separable convolutions, then 3x3 max pooling with stride 2728, then 10241x1 convolution with stride 2
Exit flow, headTwo 3x3 separable convolutions, then global average pooling1536, then 2048None

Expanded article table

In the Keras code, the separable convolutions inside the residual modules are preceded by a ReLU activation and followed by batch normalization, and the two separable convolutions of the exit-flow head are each followed by batch normalization and ReLU [4]. Keras accepts inputs as small as 71 x 71 pixels when the classification top is removed, and its preprocessing function scales pixel values to the range -1 to 1 [4].

Training setup

To make the comparison about architecture rather than capacity, the paper evaluated Xception against Inception V3, which has nearly the same number of parameters [1]. Both networks were trained on two tasks: the 1,000-class single-label ImageNet task, and a 17,000-class multi-label task on JFT, an internal Google dataset first introduced by Geoffrey Hinton and colleagues that contains over 350 million high-resolution images [1]. Models trained on JFT were evaluated on FastEval14k, a set of 14,000 densely annotated images covering about 6,000 classes (36.5 labels per image on average), using mean average precision over the top 100 predictions (MAP@100) weighted by how common each class is among social media images [1].

SettingImageNetJFT
OptimizerSGD, momentum 0.9RMSprop, momentum 0.9
Initial learning rate0.0450.001
Learning rate decay0.94 every 2 epochs0.9 every 3,000,000 samples
Dropout before the classifier0.5None
Gradient updatesSynchronousAsynchronous
Time per experimentAbout 3 daysOver one month, stopped before convergence

Expanded article table

Source: Chollet 2017 [1].

The same optimization configuration was used for both networks, and it had been tuned for Inception V3; Chollet did not tune it for Xception [1]. The one exception was weight decay: the Inception V3 rate of 4e-5 proved "quite suboptimal" for Xception, which used 1e-5 instead [1]. Neither model used Inception V3's optional auxiliary loss tower, all models were evaluated with Polyak averaging, and every network was implemented in TensorFlow and trained on 60 NVIDIA K80 GPUs [1]. The JFT runs were reported after 30 million iterations, about one month of training; full convergence would have taken more than three months per experiment [1].

Results

ImageNet

On ImageNet (single crop, single model, validation set) Xception was marginally better than Inception V3 [1]:

ModelTop-1 accuracyTop-5 accuracy
VGG-160.7150.901
ResNet-1520.7700.933
Inception V30.7820.941
Xception0.7900.945

Expanded article table

Source: Chollet 2017, Table 1 [1]. The VGG-16 and ResNet-152 rows are included in the paper only as a reminder, and the Inception V3 model benchmarked omits the auxiliary tower [1]. The paper also notes that Xception's ImageNet results exceed those reported by He et al. for ResNet-50, ResNet-101 and ResNet-152 [1].

JFT

The gap was larger on JFT, where Xception improved FastEval14k MAP@100 by 4.3 percent in relative terms [1]. The paper tested versions without fully connected layers and versions with two fully connected layers of 4,096 units before the classifier [1]:

ModelFastEval14k MAP@100
Inception V3, no FC layers6.36
Xception, no FC layers6.70
Inception V3 with FC layers6.50
Xception with FC layers6.78

Expanded article table

Source: Chollet 2017, Table 2 [1]. Chollet suggested that the larger JFT gain may reflect Inception V3 having been designed around ImageNet and so being, by design, over-fit to that task, while neither architecture had been tuned for JFT [1].

Size and speed

ModelParametersTraining steps per second (60 K80 GPUs)
Inception V323,626,72831
Xception22,855,95228

Expanded article table

Source: Chollet 2017, Table 3 [1]. The two models are within 3.5 percent of each other in size, and Xception trained slightly more slowly; Chollet expected that engineering work on depthwise convolution operations could make it faster than Inception V3 [1]. Because the parameter counts are so close, the paper attributes the accuracy gains to more efficient use of parameters rather than to added capacity [1].

Ablation studies

Residual connections

A version of Xception without residual connections, trained on ImageNet with the same optimization settings, converged more slowly and reached lower final accuracy, and the paper concludes that residual connections are clearly essential for this architecture [1]. Chollet added two caveats: reusing the residual model's optimization settings may have been uncharitable to the non-residual model, and residual connections are not required for stacks of separable convolutions in general. Non-residual, VGG-style models in which every convolution was replaced by a depthwise separable convolution also gave results superior to Inception V3 on JFT at equal parameter count [1].

Activation between the depthwise and pointwise steps

Because Inception modules apply a non-linearity after both of their steps, the analogy suggests that a separable convolution might benefit from one between its depthwise and pointwise operations [1]. Chollet tested inserting either ReLU or ELU there. On ImageNet, using no intermediate non-linearity gave both faster convergence and better final performance [1]. The paper calls this "a remarkable observation", since Szegedy et al. had reported the opposite for Inception modules, and suggests that the depth of the feature space matters: a non-linearity may help on deep feature spaces such as those inside Inception modules but hurt on the one-channel spaces of a depthwise convolution, possibly because information is lost [1].

Limitations noted by the author

The paper is explicit about several limits of its evidence. The training hyperparameters had been tuned for Inception V3, especially on ImageNet, and Chollet expected that tuning optimization and regularization for Xception would give significant further gains [1]. The JFT models were not trained to convergence [1]. Xception was marginally slower to train than Inception V3 in the reported setup [1]. And while the experiments favored the extreme end of the convolution spectrum over regular Inception modules, Chollet wrote that there is no reason to believe depthwise separable convolutions are optimal, leaving the intermediate points between them and Inception modules for future work [1].

Influence

The paper ends by predicting that depthwise separable convolutions would become a cornerstone of convolutional network design, since they offer properties similar to Inception modules while being as easy to use as regular convolution layers [1]. As of November 2026, the OpenAlex scholarly index records more than 24,000 citations of the CVPR paper [11].

MobileNet

The MobileNet paper by Andrew Howard and colleagues, posted in April 2017, built small, low-latency networks for mobile and embedded vision from depthwise separable convolutions. Its related-work section states that Xception had shown how to scale up depthwise separable filters to outperform Inception V3 networks [6]. The two papers used the same operation for different goals: Xception kept Inception V3's parameter budget and aimed for higher accuracy, while MobileNet aimed to cut parameters and computation [1][6][7].

SliceNet and machine translation

In June 2017 Lukasz Kaiser, Aidan N. Gomez and Chollet applied the idea to neural machine translation with SliceNet, a convolutional sequence-to-sequence model that, inspired by Xception, is a stack of depthwise separable convolution layers with residual connections [7]. The paper reports that separability let the authors use longer convolution windows instead of filter dilation, and that SliceNet reached results like those of ByteNet with fewer parameters and less computation [7]. It was presented at ICLR 2018 [8].

DeepLab v3+

The semantic segmentation model DeepLab v3+ (Chen et al., ECCV 2018) used a modified Xception as its backbone [9]. It built on an "Aligned Xception" that the MSRA team of Qi et al. had used for object detection in its COCO 2017 challenge entry, and made further changes: a deeper network without modifying the entry flow, strided depthwise separable convolutions in place of every max pooling operation (so that atrous separable convolution could extract features at any resolution), and extra batch normalization and ReLU after each 3x3 depthwise convolution, as in MobileNet [9]. The authors also pretrained their Xception on ImageNet-1k and JFT-300M, which added 0.8 to 1 percent, and the resulting best model reached 89.0 percent mean intersection-over-union (mIOU) on the PASCAL VOC 2012 test set without post-processing [9]. The PyTorch Image Models (timm) library later reimplemented these Aligned Xception variants (Xception-41, -65 and -71) to be compatible with the DeepLab TensorFlow weights [12].

Deepfake detection

FaceForensics++ (Rossler et al., ICCV 2019), a benchmark for detecting facial manipulations such as DeepFakes, Face2Face, FaceSwap and NeuralTextures, evaluated several forgery detectors and found that an ImageNet-pretrained XceptionNet, fine-tuned on face crops, outperformed the other variants they tested [10]. The authors attributed its robustness on compressed video to its ImageNet pretraining and larger capacity, and noted that the same classifier was much less accurate when given the full frame instead of a tracked face region [10]. See deepfake for the wider detection problem.

Implementations

The paper states that an open-source Keras and TensorFlow implementation was released in the Keras Applications module under the MIT license [1]. The Keras repository is now distributed under the Apache License 2.0 [13]. Keras Applications ships ImageNet weights for the model and, as of November 2026, lists it in its model table as follows [4][5]:

Keras Applications fieldXception
Size88 MB
Top-1 accuracy (ImageNet validation)79.0%
Top-5 accuracy (ImageNet validation)94.5%
Parameters22.9M
Depth (as defined by Keras)81
Default input size299 x 299

Expanded article table

The Keras page describes its depth figure as the topological depth of the network, including activation and batch normalization layers, so it is not comparable with the 36 convolutional layers counted in the paper [1][5]. The Keras documentation points users of the model to its guide on transfer learning and fine-tuning [4]. FaceForensics++ is one example of that use: it replaced the final fully connected layer with a two-output layer and trained the network starting from ImageNet weights [10].

Continue reading

More from See also

More to read

Topics:Computer VisionDeep LearningModel Architecture

References

  1. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20 ^21 ^22 ^23 ^24 ^25 ^26 ^27 ^28 ^29 ^30 ^31 ^32 ^33 ^34 ^35 ^36 ^37 ^38 ^39 ^40 ^41 ^42 ^43 ^44 ^45 ^46 ^47 ^48 ^49 ^50 ^51 ^52 ^53 ^54 ^55 ^56 ^57 ^58 ^59Chollet, Francois. "Xception: Deep Learning with Depthwise Separable Convolutions". arXiv:1610.02357 (v1 7 October 2016; v3 4 April 2017). arxiv.org/...1610.02357
  2. ^Chollet, Francois. "Xception: Deep Learning With Depthwise Separable Convolutions". Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. CVF Open Access. openaccess.thecvf.com/..._Learning_CVPR_2017_paper
  3. ^Chollet, F. "Xception: Deep Learning with Depthwise Separable Convolutions". 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1800-1807, July 2017. doi.org/...CVPR.2017.195
  4. ^1 ^2 ^3 ^4 ^5 ^6Keras team. "xception.py" (keras.applications.Xception source code). GitHub, keras-team/keras. github.com/...xception.py
  5. ^1 ^2Keras. "Keras Applications". keras.io, accessed November 2026. keras.io/...applications
  6. ^1 ^2 ^3 ^4Howard, Andrew G.; Zhu, Menglong; Chen, Bo; Kalenichenko, Dmitry; Wang, Weijun; Weyand, Tobias; Andreetto, Marco; Adam, Hartwig. "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications". arXiv:1704.04861, April 2017. arxiv.org/...1704.04861
  7. ^1 ^2 ^3 ^4Kaiser, Lukasz; Gomez, Aidan N.; Chollet, Francois. "Depthwise Separable Convolutions for Neural Machine Translation". arXiv:1706.03059, June 2017. arxiv.org/...1706.03059
  8. ^OpenReview. "Depthwise Separable Convolutions for Neural Machine Translation". ICLR 2018 Conference. openreview.net/forum
  9. ^1 ^2 ^3 ^4Chen, Liang-Chieh; Zhu, Yukun; Papandreou, George; Schroff, Florian; Adam, Hartwig. "Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation". ECCV 2018 (arXiv:1802.02611). arxiv.org/...1802.02611
  10. ^1 ^2 ^3 ^4Rossler, Andreas; Cozzolino, Davide; Verdoliva, Luisa; Riess, Christian; Thies, Justus; Niessner, Matthias. "FaceForensics++: Learning to Detect Manipulated Facial Images". Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2019. openaccess.thecvf.com/...al_Images_ICCV_2019_paper
  11. ^OpenAlex. "Xception: Deep Learning with Depthwise Separable Convolutions" (work record, cited_by_count), accessed November 2026. api.openalex.org/...CVPR.2017.195
  12. ^Wightman, Ross. "xception_aligned.py: Pytorch impl of Aligned Xception 41, 65, 71". GitHub, huggingface/pytorch-image-models. github.com/...xception_aligned.py
  13. ^Keras team. "keras-team/keras" repository (license: Apache License 2.0). GitHub. github.com/...keras

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

2 revisions · v2 · 3,312 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Reviewer note: Independent fact-check before publication on November 18, 2026: 78 claims checked against 16 cited and independent sources; 1 material and 2 minor corrections applied before publication.

Cite this page: AI Wiki. "Xception." aiwiki.ai, updated 5 Dec 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/xception

Edit article