We analyse the power of graph neural networks (GNNs) in terms of Boolean circuit complexity and descriptive complexity. We prove that the graph queries that can be computed by a polynomial-size bounded-depth family of GNNs are exactly those definable in the guarded fragment GFO+C of first-order logic with counting and with built-in relations. This puts GNNs in the circuit complexity class TC^0. Remarkably, the GNN families may use arbitrary real weights and a wide class of activation functions that includes the standard ReLU, logistic "sigmoid", and hyperbolic tangent functions. If the GNNs are allowed to use random initialisation and global readout (both standard features of GNNs widely used in practice), they can compute exactly the same queries as bounded depth Boolean circuits with threshold gates, that is, exactly the queries in TC^0. Moreover, we show that queries computable by a single GNN with piecewise linear activations and rational weights are definable in GFO+C without built-in relations. Therefore, they are contained in uniform TC^0.
翻译:我们从布林电路复杂度和描述性复杂度的角度分析了图形神经网络的力量。我们证明,可以通过多米尺寸的封闭式GNN的深层组合来计算的图形查询完全可以确定在一阶逻辑的谨慎碎片GFO+C中,通过计数和内嵌关系来确定。这把GNN列入电路复杂度 TC#0 级。值得注意的是,GNN家庭可能使用任意真实重量和广泛的激活功能类别,包括标准的ReLU、物流“模拟”和超双曲相色函数。如果GNNN被允许使用随机初始化和全球读出(在实际中广泛使用的GNNS的标准特性),它们可以完全按照带有临界门的封闭深度波恩电路来计算相同的查询,也就是说,在 TC#0 中的查询。此外,我们显示,在GFO+C中可以不使用内建关系,因此这些查询是统一的。</s>