# Xception

> Source: https://aiwiki.ai/wiki/xception
> Updated: 2026-12-05
> Fact-checked: 2026-11-18
> Categories: Computer Vision, Deep Learning, Model Architecture
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Xception." aiwiki.ai, 5 Dec 2026. https://aiwiki.ai/wiki/xception
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Xception** is a [convolutional neural network](https://aiwiki.ai/wiki/convolutional_neural_network) architecture for [image classification](https://aiwiki.ai/wiki/image_classification) built almost entirely from depthwise separable convolutions, introduced by [Francois Chollet](https://aiwiki.ai/wiki/francois_chollet) of [Google](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/cvpr)) in July 2017 [1][2][3].

<figure>
<a href="/images/xception-dfaba78058ee.webp"><img src="/images/xception-dfaba78058ee.webp" alt="The Xception diagram follows the network from its entry flow through its later stages." width="1500" height="1063" /></a>
<figcaption>The Xception diagram follows the network from its entry flow through its later stages. <a href="https://arxiv.org/html/1610.02357v3#S3.F5">Chollet, François</a>.</figcaption>
</figure>



A reference implementation with ImageNet weights ships in [Keras](https://aiwiki.ai/wiki/keras), the deep learning library Chollet wrote [1][4]. In 2017 Xception and [MobileNet](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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]:

| Difference | Extreme Inception module | Depthwise separable convolution (usual implementation) |
|---|---|---|
| Order of operations | 1x1 convolution first, then spatial convolutions | Channel-wise spatial convolution first, then 1x1 convolution |
| Non-linearity between the two steps | Both operations followed by ReLU | Usually no non-linearity in between |

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]:

$$D_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](https://aiwiki.ai/wiki/google_brain) in 2013, where he used them in [AlexNet](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/resnet) [1].

## Architecture

Xception is a linear stack of depthwise separable convolution layers with [residual connections](https://aiwiki.ai/wiki/residual_connection) [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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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].

| Stage | Layers (Keras reference implementation) | Output channels | Shortcut |
|---|---|---|---|
| Entry flow, stem | 3x3 convolution with stride 2, then 3x3 convolution | 32, then 64 | None |
| Entry flow, three modules | Two 3x3 separable convolutions, then 3x3 max pooling with stride 2 | 128, 256, 728 | 1x1 convolution with stride 2 |
| Middle flow, eight modules | Three 3x3 separable convolutions | 728 | Identity |
| Exit flow, one module | Two 3x3 separable convolutions, then 3x3 max pooling with stride 2 | 728, then 1024 | 1x1 convolution with stride 2 |
| Exit flow, head | Two 3x3 separable convolutions, then global average pooling | 1536, then 2048 | None |

In the Keras code, the separable convolutions inside the residual modules are preceded by a [ReLU](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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].

| Setting | ImageNet | JFT |
|---|---|---|
| Optimizer | [SGD](https://aiwiki.ai/wiki/stochastic_gradient_descent_sgd), [momentum](https://aiwiki.ai/wiki/momentum) 0.9 | [RMSprop](https://aiwiki.ai/wiki/rmsprop), momentum 0.9 |
| Initial [learning rate](https://aiwiki.ai/wiki/learning_rate) | 0.045 | 0.001 |
| Learning rate decay | 0.94 every 2 epochs | 0.9 every 3,000,000 samples |
| Dropout before the classifier | 0.5 | None |
| Gradient updates | Synchronous | Asynchronous |
| Time per experiment | About 3 days | Over one month, stopped before convergence |

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](https://aiwiki.ai/wiki/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]:

| Model | Top-1 accuracy | Top-5 accuracy |
|---|---|---|
| VGG-16 | 0.715 | 0.901 |
| ResNet-152 | 0.770 | 0.933 |
| Inception V3 | 0.782 | 0.941 |
| Xception | 0.790 | 0.945 |

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]:

| Model | FastEval14k MAP@100 |
|---|---|
| Inception V3, no FC layers | 6.36 |
| Xception, no FC layers | 6.70 |
| Inception V3 with FC layers | 6.50 |
| Xception with FC layers | 6.78 |

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

| Model | Parameters | Training steps per second (60 K80 GPUs) |
|---|---|---|
| Inception V3 | 23,626,728 | 31 |
| Xception | 22,855,952 | 28 |

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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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](https://aiwiki.ai/wiki/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 field | Xception |
|---|---|
| Size | 88 MB |
| Top-1 accuracy (ImageNet validation) | 79.0% |
| Top-5 accuracy (ImageNet validation) | 94.5% |
| Parameters | 22.9M |
| Depth (as defined by Keras) | 81 |
| Default input size | 299 x 299 |

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](https://aiwiki.ai/wiki/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].

## See also

- [Depthwise Separable CNN](https://aiwiki.ai/wiki/depthwise_separable_cnn)
- [Inception](https://aiwiki.ai/wiki/inception)
- [GoogLeNet](https://aiwiki.ai/wiki/googlenet)
- [MobileNet](https://aiwiki.ai/wiki/mobilenet)
- [EfficientNet](https://aiwiki.ai/wiki/efficientnet)
- [ResNet](https://aiwiki.ai/wiki/resnet)
- [Convolution](https://aiwiki.ai/wiki/convolution)

## References

1. Chollet, Francois. "Xception: Deep Learning with Depthwise Separable Convolutions". arXiv:1610.02357 (v1 7 October 2016; v3 4 April 2017). https://arxiv.org/abs/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. https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html
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. https://doi.org/10.1109/CVPR.2017.195
4. Keras team. "xception.py" (keras.applications.Xception source code). GitHub, keras-team/keras. https://github.com/keras-team/keras/blob/master/keras/src/applications/xception.py
5. Keras. "Keras Applications". keras.io, accessed November 2026. https://keras.io/api/applications/
6. Howard, 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. https://arxiv.org/abs/1704.04861
7. Kaiser, Lukasz; Gomez, Aidan N.; Chollet, Francois. "Depthwise Separable Convolutions for Neural Machine Translation". arXiv:1706.03059, June 2017. https://arxiv.org/abs/1706.03059
8. OpenReview. "Depthwise Separable Convolutions for Neural Machine Translation". ICLR 2018 Conference. https://openreview.net/forum?id=S1jBcueAb
9. Chen, 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). https://arxiv.org/abs/1802.02611
10. Rossler, 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. https://openaccess.thecvf.com/content_ICCV_2019/html/Rossler_FaceForensics_Learning_to_Detect_Manipulated_Facial_Images_ICCV_2019_paper.html
11. OpenAlex. "Xception: Deep Learning with Depthwise Separable Convolutions" (work record, cited_by_count), accessed November 2026. https://api.openalex.org/works/doi:10.1109/CVPR.2017.195
12. Wightman, Ross. "xception_aligned.py: Pytorch impl of Aligned Xception 41, 65, 71". GitHub, huggingface/pytorch-image-models. https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/xception_aligned.py
13. Keras team. "keras-team/keras" repository (license: Apache License 2.0). GitHub. https://github.com/keras-team/keras

