# 图卷积网络

图卷积网络（graph convolutional network, GCN）是一种神经网络架构，它在图结构数据上施加类卷积操作，聚合来自相邻节点的信息，以学习节点、边或图的表示。这一名称最具体地指代 Kipf 与 Welling 的论文《基于图卷积网络的半监督分类》（2016）中提出的层<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>，更宽泛地说，则指代它所启发的一族图神经网络。GCN 主要用于半监督节点分类和推荐<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)</sup>。一个 GCN 层产生的节点嵌入编码了局部图结构和节点特征<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>。

| 关键事实 | 内容 |
|---|---|
| 定义性层 | \( H^{(l+1)} = \sigma(\tilde{D}^{-1/2} \tilde{A} \tilde{D}^{-1/2} H^{(l)} \cdot W^{(l)}) \)，其中 \( \tilde{A} = A + I_N \)<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup> |
| 开销 | 与边数成线性关系；使用稀疏邻接矩阵时内存为 \( O(|E|) \)<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup> |
| 典型深度 | 2–3 层；没有残差连接时，超过 7 层难以训练<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup> |
| 准确率（原始划分） | Cora 81.5%（4 秒），Citeseer 70.3%，PubMed 79.0%（38 秒）<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup> |
| 表达能力 | 弱于 Weisfeiler-Lehman 检验；GIN 可与之匹敌<sup>[3](https://arxiv.org/html/1810.00826v3)</sup> |
| 已报道的最大规模部署 | PinSage：30 亿节点、180 亿边（Pinterest），比典型 GCN 实现大四个数量级<sup>[4](https://dl.acm.org/doi/abs/10.1145/3219819.3219890)</sup><sup> • </sup><sup>[5](https://arxiv.org/pdf/2507.14570v1.pdf)</sup> |
| 主要失效模式 | 过度平滑、直推性、全批量内存开销<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)</sup> |

## 工作原理

其原理来自谱图滤波。在具有拉普拉斯特征向量 \( U \) 的图上，朴素谱卷积 \( g_{\theta} \star x = U g_{\theta}(\Lambda) U^{\top} \cdot x \) 需要与特征向量矩阵相乘，代价为 \( O(N^{2}) \)<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>。Hammond、Vandergheynst 与 Gribonval 关于通过谱图理论构造图上小波的工作（2010）给出了谱滤波器的 Chebyshev 多项式近似，使局部化变得廉价<sup>[6](https://doi.org/10.1016/j.acha.2010.04.005)</sup>。Defferrard、Bresson 与 Vandergheynst 的 ChebNet（2016）应用截断的 Chebyshev 展开 \( T_k(x) = 2xT_{k-1}(x) - T_{k-2}(x) \)，得到严格局部化在半径为 \( K \) 跳的球内的滤波器，其求值代价与 \( K \) 和 \( |E| \) 成线性关系<sup>[7](https://arxiv.org/abs/1606.09375)</sup>。

Kipf 与 Welling 做了两个简化选择：只保留一阶（\( K = 1 \)），并近似 \( \lambda_{\max} \approx 2 \)<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup><sup> • </sup><sup>[8](https://datafield.dev/aibook/part-07/chapter-37/)</sup>。结果是一个作用于 1 跳邻域的滤波器，求值代价为 \( O(|E|) \)，等价于对邻居特征做归一化加权求和，再接一个诸如 ReLU 的非线性<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup><sup> • </sup><sup>[9](https://link.springer.com/article/10.1186/s40537-023-00876-4)</sup>。正是这种等价性，使 GCN 常被描述为谱方法与空间（消息传递）方法之间的桥梁；在一般消息传递方案中，每一层从邻域更新节点 \( h_i^{(l+1)} = f(h_i^{l}, \{h_j^{l}\}_{j \in N_i}) \)，复杂度为 \( O(E) \)<sup>[10](https://jmlr.org/papers/volume24/22-0567/22-0567.pdf)</sup>。

## 实现方式

在实践中，在引文式图上训练 GCN 的流程如下。给[邻接矩阵](https://www.edgepedia.org/zh/adjacency-matrix)添加自环并应用重归一化技巧，\( I_N + D^{-1/2}AD^{-1/2} \rightarrow \tilde{D}^{-1/2}\tilde{A}\tilde{D}^{-1/2} \)，这可以防止数值不稳定，并相较朴素一阶模型同时提升效率和预测性能<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>。堆叠两到三层传播规则，每层有自己的权重矩阵 \( W^{(l)} \)；每一层卷积对应阶数的邻域<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup><sup> • </sup><sup>[11](https://tkipf.github.io/graph-convolutional-networks/)</sup>。原始模型使用全批量梯度下降训练（Adam，学习率 0.01，最多 200 轮，早停窗口 10），内存随数据集规模线性增长<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>。在 PyTorch Geometric 中，`GCNConv` 实现 \( \mathbf{X}' = \mathbf{\hat{D}}^{-1/2}\mathbf{\hat{A}}\mathbf{\hat{D}}^{-1/2}\mathbf{X}\mathbf{\Theta} \)，选项包括 `improved=True`（\( \hat{A} = A + 2I \)）和用于直推设置的 `cached=True`<sup>[12](https://pytorch-geometric.readthedocs.io/en/stable/generated/torch%5Fgeometric.nn.conv.GCNConv.html)</sup>。

## 起源

GCN 层由 Thomas N. Kipf 与 [Max Welling](https://www.edgepedia.org/zh/max-welling) 在《基于图卷积网络的半监督分类》（arXiv，2016）中报道，并在 ICLR 2017 上展示<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup><sup> • </sup><sup>[11](https://tkipf.github.io/graph-convolutional-networks/)</sup>。该论文指出，该方法建立在 Bruna、Zaremba、Szlam 与 LeCun 的《图上的谱网络与局部连接网络》（arXiv 2013；ICLR 2014，因此不同来源给出两个年份）中的谱图 CNN 之上，后者提出了基于图拉普拉斯谱的谱构造，以及基于层次聚类的空间构造<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup><sup> • </sup><sup>[13](https://doi.org/10.48550/arxiv.1312.6203)</sup>。Bruna 等人的谱滤波器存在空间去局部化问题，这是[傅里叶分析](https://www.edgepedia.org/zh/fourier-analysis)处理局部现象的一个已知局限<sup>[13](https://doi.org/10.48550/arxiv.1312.6203)</sup>。Henaff、Bruna 与 LeCun 的《图结构数据上的深度卷积网络》（arXiv，2015）是这一谱方法脉络中的相关前驱工作<sup>[14](https://doi.org/10.48550/arxiv.1506.05163)</sup>。Defferrard、Bresson 与 Vandergheynst 的 ChebNet（2016）提供了 GCN 所简化的快速局部滤波<sup>[7](https://arxiv.org/abs/1606.09375)</sup>，它建立在 Hammond、Vandergheynst 与 Gribonval 的 Chebyshev 近似（2010）之上<sup>[6](https://doi.org/10.1016/j.acha.2010.04.005)</sup>。还存在一条并行的空间方法脉络：Niepert、Ahmed 与 Kutzkov 的《为图学习卷积神经网络》（2016）通过提取局部连通区域，在任意图上学习 CNN<sup>[15](https://proceedings.mlr.press/v48/niepert16.html)</sup>。更早的时候，图神经网络已被一般性地提出<sup>[9](https://link.springer.com/article/10.1186/s40537-023-00876-4)</sup>。

## 变体

每个具名变体都改变了聚合方案、归纳性或表达能力。

**ChebNet** 使用 \( K \) 跳局部化的 Chebyshev 谱滤波器，而非一阶限制<sup>[7](https://arxiv.org/abs/1606.09375)</sup>。**GraphSAGE**（Hamilton、Ying 与 Leskovec，2017）在每一层采样固定数量的邻居，使用均值、LSTM 或池化聚合器，使模型具有归纳性，并能在拥有数百万节点的图上进行小批量训练<sup>[16](https://doi.org/10.48550/arxiv.1706.02216)</sup><sup> • </sup><sup>[8](https://datafield.dev/aibook/part-07/chapter-37/)</sup>。**GAT**（Veličković 等人，2017）是[图注意力网络](https://www.edgepedia.org/zh/graph-attention-network)<sup>[17](https://doi.org/10.17863/cam.48429)</sup>。**SGC** 将整个堆叠折叠为重复的一跳聚合 \( \varphi(X) = \tilde{A} \cdot X \)，其中 \( \tilde{A} = (D+I)^{-1/2}(A+I)(D+I)^{-1/2} \)，再接一个线性分类器<sup>[18](https://arxiv.org/pdf/1911.05384)</sup>。**GIN**（Xu、Hu、Leskovec 与 Jegelka，2018）使用单射求和聚合；配合单射聚合与读出，GNN 的能力与 Weisfeiler-Lehman 检验相当，而 GCN 固定的度归一化加权求和则不然<sup>[3](https://arxiv.org/html/1810.00826v3)</sup>。

## 应用

GCN 主要用于半监督节点分类和推荐<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)</sup>。在原始 Planetoid 划分（每类 20 个标签）上，重归一化 GCN 在 Cora 上达到 81.5%，在 Citeseer 上达到 70.3%，在 PubMed 上达到 79.0%，在 Cora 和 PubMed 上的训练时间分别为 4 秒和 38 秒<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>。标准基准规模很小：Cora、CiteSeer 和 PubMed 只有 2,700 到 20,000 个节点，GNN 在这些基准上的性能往往不稳定，且几乎在统计上无差别<sup>[19](https://proceedings.neurips.cc/paper/2020/file/fb60d411a5c5b72b2e7d3527cfc84fd0-Paper.pdf)</sup>。作为规模参照，[Open Graph Benchmark](https://www.edgepedia.org/zh/open-graph-benchmark) 定义了中等（超过 100 万节点或 1000 万边）和大规模（约 1 亿节点或 10 亿边量级）两个层级，以鼓励小批量和分布式训练；在 ogbn-products 上，全批量 GCN 达到 75.64±0.21%，而小批量 ClusterGCN（78.97±0.33%）和 GraphSAINT（79.08±0.24%）略优于它，因为划分和采样能放入 GPU 内存<sup>[19](https://proceedings.neurips.cc/paper/2020/file/fb60d411a5c5b72b2e7d3527cfc84fd0-Paper.pdf)</sup>。FastGCN（Chen、Ma 与 Xiao，2018）将节点视为独立同分布样本，使用[蒙特卡洛](https://www.edgepedia.org/zh/monte-carlo)重要性采样进行高效的小批量训练<sup>[20](https://doi.org/10.48550/arxiv.1801.10247)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)</sup>。在网络规模上，PinSage（Ying 等人，2018）在 Pinterest 的 30 亿节点、180 亿边图上将随机游走与图卷积结合，比典型 GCN 实现大四个数量级，并在离线指标、用户研究和 A/B 测试中提升了推荐质量<sup>[4](https://dl.acm.org/doi/abs/10.1145/3219819.3219890)</sup>。

2025 年的两项重新评估推翻了经典 GNN 已被取代的假设。借助六种标准技术（边特征、归一化、dropout、残差连接、FFN、位置编码），GCN、GIN 和 GatedGCN 在 14 个图级数据集上达到或超过图 Transformer，在所有数据集上排名前三，在八个数据集上排名第一，同时运行速度快数倍<sup>[21](https://proceedings.mlr.press/v267/luo25h.html)</sup>。在节点分类方面，经过调优的经典 GNN 在 18 个数据集中的 17 个上排名第一，GCN* 在 ogbn-arxiv（169,343 个节点）和 pokec（1,632,803 个节点、30,622,564 条边）上领先<sup>[22](https://ar5iv.labs.arxiv.org/html/2406.08993)</sup>。在 LLMNodeBed 测试平台中，基于 LLM 的方法在半监督节点分类上显著优于传统方法，而在监督设置中仅有微弱优势<sup>[23](https://proceedings.mlr.press/v267/wu25y.html)</sup>。

## 局限与替代方案

**过度平滑。** GCN 卷积与拉普拉斯平滑相关，因此层数越多，节点表示越难以区分，即使对于不同簇中的节点也是如此；实践中使用两到三层<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)</sup>。超过 7 层后，没有残差连接的训练变得困难，过拟合随深度增加<sup>[1](https://doi.org/10.48550/arxiv.1609.02907)</sup>。2025 年的一篇批判性综述补充了一个告诫：是否观察到过度平滑取决于度量指标。GCN 的 Dirichlet 能量在朴素聚合下崩溃，但其秩商基本保持平坦，表明嵌入是在被重新缩放，而不一定被过度平滑<sup>[24](https://arxiv.org/html/2505.15547v2)</sup>。

**过度压缩。** 该术语描述通过反复消息传递将“以指数方式增长的信息压入固定大小的向量”；Topping 等人（2022）通过负边曲率将其与拓扑瓶颈联系起来，尽管拓扑瓶颈意味着低敏感性，反之则不成立<sup>[24](https://arxiv.org/html/2505.15547v2)</sup>。

**其他局限。** GCN 在全批量训练下是直推的，这会妨碍对未见节点的泛化，而全批量训练在大规模下内存开销高昂<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)</sup>。其固定的度归一化加权求和与同质性假设在异配图上表现不佳<sup>[8](https://datafield.dev/aibook/part-07/chapter-37/)</sup>。在表达能力方面，GCN 和 [GraphSAGE](https://www.edgepedia.org/zh/graphsage) 无法区分某些简单的图结构，能力弱于 WL 检验，而具有单射聚合的 GIN 可与之匹敌<sup>[3](https://arxiv.org/html/1810.00826v3)</sup>。具体到与 GAT 的对比，排名并不稳定：在 Yang 等人（2016）的划分上，GAT 在 Cora 和 CiteSeer 上胜出，而 GCN 在 PubMed 上胜出；但在相同规模的不同随机划分上，GCN 在 Cora 和 CiteSeer 上排名第一，MoNet 在 PubMed 上胜出<sup>[25](https://ar5iv.labs.arxiv.org/html/1811.05868)</sup>。

## References

1. [Kipf, Thomas N., Welling, Max (2016). Semi-Supervised Classification with Graph Convolutional Networks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1609.02907)
2. [Graph convolutional networks: a comprehensive review](https://pmc.ncbi.nlm.nih.gov/articles/PMC10615927/)
3. [How Powerful are Graph Neural Networks? (GIN, Xu et al., ICLR 2019)](https://arxiv.org/html/1810.00826v3)
4. [Graph Convolutional Neural Networks for Web-Scale Recommender Systems (PinSage, KDD 2018)](https://dl.acm.org/doi/abs/10.1145/3219819.3219890)
5. [LPS-GNN : Deploying Graph Neural Networks on Graphs with 100-Billion Edges](https://arxiv.org/pdf/2507.14570v1.pdf)
6. [David K. Hammond, Pierre Vandergheynst, Rémi Gribonval (2010). Wavelets on graphs via spectral graph theory. Applied and Computational Harmonic Analysis.](https://doi.org/10.1016/j.acha.2010.04.005)
7. [Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering (ChebNet, Defferrard et al., NIPS 2016)](https://arxiv.org/abs/1606.09375)
8. [Chapter 37: Graph Neural Networks and Structured Data](https://datafield.dev/aibook/part-07/chapter-37/)
9. [A review of graph neural networks: concepts, architectures, techniques, challenges, datasets, applications (Journal of Big Data)](https://link.springer.com/article/10.1186/s40537-023-00876-4)
10. [Benchmarking Graph Neural Networks (JMLR)](https://jmlr.org/papers/volume24/22-0567/22-0567.pdf)
11. [Graph Convolutional Networks | Thomas Kipf](https://tkipf.github.io/graph-convolutional-networks/)
12. [torch_geometric.nn.conv.GCNConv](https://pytorch-geometric.readthedocs.io/en/stable/generated/torch%5Fgeometric.nn.conv.GCNConv.html)
13. [Bruna, Joan and colleagues (2013). Spectral Networks and Locally Connected Networks on Graphs. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1312.6203)
14. [Henaff, Mikael, Bruna, Joan, LeCun, Yann (2015). Deep Convolutional Networks on Graph-Structured Data. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1506.05163)
15. [Learning Convolutional Neural Networks for Graphs (Niepert, Ahmed, Kutzkov, ICML 2016)](https://proceedings.mlr.press/v48/niepert16.html)
16. [Hamilton, William L., Ying, Rex, Leskovec, Jure (2017). Inductive Representation Learning on Large Graphs. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1706.02216)
17. [Veličković, P and colleagues (2017). Graph Attention Networks. arXiv (Cornell University).](https://doi.org/10.17863/cam.48429)
18. [Simplifying Graph Convolutional Networks (SGC)](https://arxiv.org/pdf/1911.05384)
19. [Open Graph Benchmark: Datasets for Machine Learning on Graphs](https://proceedings.neurips.cc/paper/2020/file/fb60d411a5c5b72b2e7d3527cfc84fd0-Paper.pdf)
20. [Chen, Jie, Ma, Tengfei, Xiao, Cao (2018). FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1801.10247)
21. [Can Classic GNNs Be Strong Baselines for Graph-level Tasks? (ICML 2025)](https://proceedings.mlr.press/v267/luo25h.html)
22. [Classic GNNs are Strong Baselines: Reassessing GNNs for Node Classification (2024)](https://ar5iv.labs.arxiv.org/html/2406.08993)
23. [When Do LLMs Help With Node Classification? A Comprehensive Analysis (ICML 2025)](https://proceedings.mlr.press/v267/wu25y.html)
24. [Oversmoothing, "Oversquashing", Heterophily, Long-Range, and more: Demystifying Common Beliefs in Graph Machine Learning (2025)](https://arxiv.org/html/2505.15547v2)
25. [Pitfalls of Graph Neural Network Evaluation](https://ar5iv.labs.arxiv.org/html/1811.05868)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/graph-convolutional-network

English original: https://www.edgepedia.org/graph-convolutional-network
