# Xception

Xception是一种用于图像分类的卷积神经网络架构，它用深度可分离卷积取代了[Inception](https://www.edgepedia.org/zh/inception)风格的模块，并被广泛用作迁移学习和特征提取的预训练骨干网络。该架构由[弗朗索瓦·肖莱](https://www.edgepedia.org/zh/francois-chollet)（François Chollet）于2016年报告，并在CVPR 2017上发表，它在ImageNet上略微优于Inception V3，而参数量几乎相同。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup>

| 关键事实 | 数值 |
|---|---|
| ImageNet top-1 / top-5 准确率 | 0.790 / 0.945（Inception V3：0.782 / 0.941）<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup> |
| 参数量 | 22,855,952（Inception V3：23,626,728）<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup> |
| 结构 | 14个模块中共36个卷积层：入口流、中间流（重复8次）、出口流<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup> |
| 输入尺寸 | 299 × 299（Keras实现）<sup>[3](https://github.com/keras-team/keras-applications/blob/master/keras_applications/xception.py)</sup> |
| 训练算力 | 60块NVIDIA K80 GPU；每次ImageNet运行约3天，每次JFT运行超过一个月<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup> |
| 吞吐量 | ImageNet上28步/秒，Inception V3为31步/秒<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup> |
| 分割用途 | 以Xception为骨干的DeepLabv3+：PASCAL VOC 2012测试集89.0%，Cityscapes 82.1%<sup>[4](https://arxiv.org/pdf/1802.02611v3)</sup> |

## 工作原理

深度可分离卷积在[TensorFlow](https://www.edgepedia.org/zh/tensorflow)和Keras中被称为“可分离卷积”，它由一个深度卷积——即对输入的每个通道独立执行的空间卷积——后接一个逐点卷积——即用于混合通道的1×1卷积——组成。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>这将标准卷积同时执行的两项工作解耦：在每个通道内进行空间滤波，以及跨通道组合信息。

该设计基于一种解读：将Inception模块视为常规卷积与深度可分离操作之间的中间步骤。Inception模块先应用1×1卷积，再对每个输出通道应用空间滤波器；深度可分离卷积则先应用空间滤波器，再应用1×1卷积。两者的区别在于操作顺序，以及可分离形式中两个操作之间没有非线性激活。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>Xception将这一逻辑推向极致，其名称即代表“Extreme Inception”（极致Inception）。<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup>

## 实现方式

数据先经过入口流，再经过重复八次的中间流，最后经过出口流。<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup>入口流以一个由两个卷积层组成的stem开始，随后是三个下采样块，每个下采样块包含两个核大小为3的可分离卷积层、最大池化，以及1×1、步长为2的跳跃连接。<sup>[5](https://www.scitepress.org/Papers/2023/116231/116231.pdf)</sup>每个中间流块包含三个核大小为3、步长为1的可分离卷积层，特征图保持为19×19×728，块与块之间有残差恒等连接。<sup>[5](https://www.scitepress.org/Papers/2023/116231/116231.pdf)</sup>

所有SeparableConvolution层使用深度乘数为1，即不扩展通道维度，且每个卷积层和可分离卷积层后都接批归一化。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>残差连接被描述为对收敛至关重要，无论在速度还是最终分类性能上都是如此。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>整个网络是一个线性堆叠，用大约30到40行Keras代码即可表达。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>

训练在ImageNet上使用TensorFlow和60块NVIDIA K80 GPU，采用同步梯度下降，每次实验约3天；在更大的JFT数据集上采用异步梯度下降，每次实验超过一个月，JFT结果在3000万次迭代后报告，尚未完全收敛。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>

## 起源

Xception由弗朗索瓦·肖莱在2016年的arXiv论文《Xception：使用深度可分离卷积的深度学习》中报告，后发表于CVPR 2017会议论文集。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup><sup> • </sup><sup>[6](https://www.computer.org/csdl/proceedings-article/cvpr/2017/0457b800/12OmNqFJhzG)</sup>该架构建立在Inception系列工作的基础上，其设计由克里斯蒂安·塞格迪（Christian Szegedy）及其同事在《重新思考用于计算机视觉的Inception架构》（2015）中提出。<sup>[7](https://doi.org/10.48550/arxiv.1512.00567)</sup>深度可分离卷积本身早在2014年就已被用于神经网络设计，并在2016年被纳入TensorFlow后变得更加流行。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>

## 变体

**用于分割的改进版Xception。** DeepLabv3+将Xception改造为分割骨干网络，对ASPP模块和解码器模块均应用空洞可分离卷积。<sup>[4](https://arxiv.org/pdf/1802.02611v3)</sup>该修改将所有最大池化操作替换为带步长的深度可分离卷积，并在每个3×3深度卷积后添加批归一化和ReLU，类似于[MobileNet](https://www.edgepedia.org/zh/mobilenet)的设计，使网络成为全卷积网络，从而空洞卷积可以在任意分辨率上提取特征图。<sup>[4](https://arxiv.org/pdf/1802.02611v3)</sup><sup> • </sup><sup>[8](https://github.com/tensorflow/models/blob/master/research/deeplab/core/xception.py)</sup>在此版本中，每个模块的输出是残差与捷径之和：残差由三个可分离卷积计算，捷径是一个可按需设置步长的1×1卷积，输出步长可控，用于稠密预测。<sup>[8](https://github.com/tensorflow/models/blob/master/research/deeplab/core/xception.py)</sup>TensorFlow实现遵循为COCO 2017准备的修改版本。<sup>[8](https://github.com/tensorflow/models/blob/master/research/deeplab/core/xception.py)</sup>

**对齐版Xception与Xception-65。** Xception被改造用于目标检测，产生了称为对齐版Xception的变体。<sup>[4](https://arxiv.org/pdf/1802.02611v3)</sup>DeepLabv3上的Xception-65骨干（X-65）在[PASCAL VOC](https://www.edgepedia.org/zh/pascal-voc) 2012验证集上达到77.33%，加入解码器模块后提升至78.79%。<sup>[4](https://arxiv.org/pdf/1802.02611v3)</sup>

**重新实现。** timm库提供了Xception的重新实现，作为一个仅依赖深度可分离卷积层的网络，并引用了肖莱2017年的论文。<sup>[9](https://huggingface.co/docs/timm/models/xception)</sup>

## 应用

在ImageNet上，Xception的top-1和top-5验证准确率分别为0.790和0.945，而Inception V3为0.782和0.941；在60块K80 GPU上运行时为28步/秒，Inception V3为31步/秒；它还优于何等人报告的ResNet-50、ResNet-101和ResNet-152的ImageNet结果。<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup><sup> • </sup><sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>在包含3.5亿张图像、17000个类别的JFT数据集上，差距进一步扩大：Xception在FastEval14k MAP@100上相对Inception V3取得4.3%的相对提升，带全连接层时为6.78对6.50，不带全连接层时为6.70对6.36。<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup><sup> • </sup><sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>

参数量几乎相同，Xception为22,855,952，Inception V3为23,626,728，因此性能提升来自更高效地利用参数，而非增加容量。<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup>优势随数据集规模增大而扩大，这与上述解读一致：在规模大得多的JFT集上，相对提升是ImageNet上的数倍。<sup>[2](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)</sup>

在实践中，Xception以MIT许可证在Keras Applications模块中发布，附带ImageNet权重，可配置`include_top`、`input_shape`、`pooling`和1000个输出类别，用于迁移学习和特征提取。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup><sup> • </sup><sup>[3](https://github.com/keras-team/keras-applications/blob/master/keras_applications/xception.py)</sup>在所引用的旧版Keras Applications实现中，它仅适用于TensorFlow后端，因为它依赖`SeparableConvolution`层；相比之下，当前Keras在多个后端上支持可分离卷积，包括JAX、TensorFlow和PyTorch。<sup>[3](https://github.com/keras-team/keras-applications/blob/master/keras_applications/xception.py)</sup><sup> • </sup><sup>[13](https://keras.io/keras_3/)</sup>作为分割骨干，以Xception为基础的DeepLabv3+在无后处理的情况下于PASCAL VOC 2012测试集达到89.0%，于Cityscapes测试集达到82.1%。<sup>[4](https://arxiv.org/pdf/1802.02611v3)</sup>最近，Xception被用作深度伪造检测中的特征提取骨干：一项2024年的研究报告称，经过50轮训练后达到99.69%的准确率、99.58%的精确率、99.80%的召回率和0.9999的AUC-ROC，在该研究中超过了单类VAE（98.20%）、CNN（98.52%）和SVM（90.24%）基线，<sup>[10](https://cdn.techscience.press/files/cmc/2024/TSP_CMC-81-3/TSP_CMC_57029/TSP_CMC_57029.pdf)</sup>而2025年的一种方法在分类前用空间注意力模块、全局平均池化和512单元ReLU稠密层对Xception进行微调。<sup>[11](https://www.scitepress.org/Papers/2025/131737/131737.pdf)</sup>基于迁移学习的Xception也被应用于检测视频深度伪造中的扭曲人脸。<sup>[12](https://ais.khpi.edu.ua/article/view/305475)</sup>

## 局限与替代方案

已记录的对比是针对Inception V3和ResNet系列的。Xception以小幅吞吐量损失换取略好的ImageNet准确率（28对31步/秒），且其优势随数据集规模增大而扩大。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>深度可分离卷积也是MobileNet风格高效移动模型的基础，后者瞄准的是准确率与成本权衡中的不同位置。<sup>[1](https://doi.org/10.48550/arxiv.1610.02357)</sup>

## References

1. [Chollet, François (2016). Xception: Deep Learning with Depthwise Separable Convolutions. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1610.02357)
2. [Xception: Deep Learning With Depthwise Separable Convolutions (CVPR 2017 Open Access)](https://openaccess.thecvf.com/content_cvpr_2017/html/Chollet_Xception_Deep_Learning_CVPR_2017_paper.html)
3. [Keras Applications Xception implementation](https://github.com/keras-team/keras-applications/blob/master/keras_applications/xception.py)
4. [Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation (DeepLabv3+, ECCV 2018)](https://arxiv.org/pdf/1802.02611v3)
5. [From Xception to NEXcepTion: New Design Decisions and Neural Architecture Search (SCITEPRESS, 2023)](https://www.scitepress.org/Papers/2023/116231/116231.pdf)
6. [IEEE Computer Society CVPR 2017 proceedings entry](https://www.computer.org/csdl/proceedings-article/cvpr/2017/0457b800/12OmNqFJhzG)
7. [Szegedy, Christian and colleagues (2015). Rethinking the Inception Architecture for Computer Vision. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1512.00567)
8. [DeepLab Xception variant (TensorFlow models repository)](https://github.com/tensorflow/models/blob/master/research/deeplab/core/xception.py)
9. [Xception · Hugging Face (timm docs)](https://huggingface.co/docs/timm/models/xception)
10. [Advancing Deepfake Detection Using Xception Architecture (Computers, Materials & Continua, 2024)](https://cdn.techscience.press/files/cmc/2024/TSP_CMC-81-3/TSP_CMC_57029/TSP_CMC_57029.pdf)
11. [DeepSpace: Navigating the Frontier of Deepfake Identification Using Attention-Driven Xception and a Task-Specific Subspace (SciTePress, 2025)](https://www.scitepress.org/Papers/2025/131737/131737.pdf)
12. [Deepfake Detection Using Transfer Learning-Based Xception Model (Advanced Information Systems)](https://ais.khpi.edu.ua/article/view/305475)
13. [Keras 3 (keras.io)](https://keras.io/keras_3/)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Titles I to Z

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/xception

English original: https://www.edgepedia.org/xception
