Hero diagram

Paper: 2606.13671 Authors: James Flora, Mitchell Black, Weng-Keen Wong, Amir Nayyeri Categories: cs.LG

The Gap

Prior work established that spectral PEs (Laplacian eigenvectors, effective resistance) and walk-based PEs (adjacency matrix polynomials) are theoretically equivalent in expressive power — both sit between 1-WL and 3-WL.
But that result assumes using the complete encoding, which costs O(n³) per graph. In practice everyone truncates: keep the first k eigenvectors, or stop at the k-th power of the adjacency. Nobody knew if truncation preserves the equivalence, or if it changes the ranking of these families.
This paper asks: what exactly breaks when you cut?

[Complete PE equivalence (O(n^3))] 
        |
        |  truncation (practice)
        v
[Unknown: does equivalence hold?]
        |
        |  theory + counterexamples
        v
[Truncated spectral < 1-WL]    [Truncated walk ~? 1-WL]
        |                               |
        |  corollary & theorems         |  different behavior
        v                               v
[Truncated families are NOT equivalent] 
        |
        |  experiment
        v
[Mixing truncated PEs works best]

The Increment

One sentence: Before this paper, practitioners blindly truncated PEs assuming the full-power properties still held; after this paper, we know that truncated spectral PEs are weaker than 1-WL and different truncated families become incomparable.

Core Mechanism

The paper builds a theoretical framework to compare truncated PEs. It defines each family as a function that maps a graph (or pair of nodes) to a vector. For spectral PEs: take the first k Laplacian eigenvector entries (or the first k effective resistance distances via pseudoinverse). For walk-based PEs: compute the first k terms of the heat kernel or the adjacency matrix polynomial. For harmonic distances: a spectral variant that uses eigenvector differences.

The core move: construct graph pairs that are distinguishable by one truncated PE but not by another. For example, a pair of graphs that 1-WL separates but truncated spectral PE cannot — proving that truncated spectral < 1-WL. Another pair that truncated walk separates but truncated spectral cannot — proving incomparability. The authors then prove theorems bounding the expressive power of each truncated family, and show that mixing multiple truncated families (e.g., spectral + walk) recovers some of the lost power.

[Input graph] --> [Truncation operator (first k)] --> [PE vector per node]
        |                                                    |
        |  three families:                                    v
        |  [Spec] [Walk] [Harm]                         [GNN + Readout]
        |                                                    |
        +--> [Theorems: family A cannot distinguish G1, G2]--+--> [Conclusion]

Structural metaphor: Think of a complete PE as a high-resolution satellite image of the whole city. Every street, house, and tree is visible. Theorists proved that a “full photo” taken from the spectral satellite and a “full photo” taken from the walk satellite show exactly the same scene — they are equivalent.
Now you are limited to a tiny cellphone camera preview — only 256 pixels. You have to crop the image to fit. The spectral satellite returns only the top-left 16×16 pixels (first k eigenvectors). The walk satellite returns only the center 16×16 pixels (first k walks).
The two cropped pictures may now show completely different parts of the city: the spectral crop might show a park, the walk crop might show a parking lot. They cannot be compared. Worse, the cropped spectral picture might be so blurry that you cannot even tell if there is a building (1-WL can tell, but truncated spectral cannot).
The paper then shows that if you overlap the two crops (mix spectral and walk), you see more than either alone.

Key Concepts

  • 1-WL Test: A classic algorithm for graph isomorphism. It iteratively colors nodes based on their neighbors’ colors; if two graphs end up with different color multisets, they are distinguishable. 1-WL is the baseline for GNN expressivity — most GNNs are at most as powerful as 1-WL. If a PE is weaker than 1-WL, that means there exist graphs that 1-WL can tell apart but the GNN + that PE cannot.
    Example: two non-isomorphic regular graphs with the same degree distribution — 1-WL fails, and most PEs also fail. But some PEs (like complete spectral) exceed 1-WL, meaning they can distinguish some pairs that 1-WL cannot. The paper shows truncated spectral loses that extra ability.

  • Truncation: Keeping only the first k components of an infinite or O(n³) encoding. For spectral PEs, this means using the k smallest eigenvalues and their eigenvectors; for walk-based PEs, it means polynomials of degree ≤ k. Truncation is mandatory in practice because full computation is too expensive, but its effect on expressivity was a blind spot.

Framework Shift

Before (mainstream belief):       
[Complete Spectral] = [Complete Walk]   (equivalent, both > 1-WL)
        |                                     |
        | truncation (assumed harmless)       | 
        v                                     v
[Truncated Spectral] ~ [Truncated Walk]   (still comparable? unknown)

After (this paper):
[Truncated Spectral]  ---- [Truncated Walk]
        |    not comparable         |
        v                          v
   weaker than 1-WL          possibly stronger than 1-WL
        |                          |
        +------> [Mix both] <------+
                    |
                    v
           better than either alone

One sentence: From a belief that truncation is a harmless approximation of a known equivalence, to the discovery that truncation turns PEs into incomparable tools with distinct weaknesses, and mixing them is required for robustness.

Expert Assessment

Problem choice: Real gap. Every GNN practitioner who uses Laplacian eigenvectors or random walk PEs truncates — and they implicitly assume the theoretical guarantees still hold. The paper formally demolishes that assumption. This is a fundamental contribution to the theory of graph representation learning.

Method maturity: Elegant. The paper doesn’t invent a new encoding; it carefully analyzes existing ones through the lens of truncation, using counterexamples and theorems. The harmonic distance variant is a nice addition to show that even close cousins behave differently under truncation. Could there be simpler approaches? Perhaps directly testing the WL power of truncated encodings via brute force on small graphs, but the paper provides rigorous proofs, which is better.

Experimental integrity: The experiments are presented as supporting the theoretical findings. They compare single-family truncated PEs vs. a mixture on real-world classification tasks. The trend is clear: mixing beats any single family. Baselines are fair (standard GNN architectures). The only red flag is that the theoretical bounds might not directly translate to practical gains on all datasets — but the paper doesn’t overclaim. The experimental section could be more thorough (e.g., ablation on k), but it’s sufficient for a theory-heavy paper.

Writing quality: The paper is well-structured but occasionally rushes through the theorem statements. The “Why This Matters” for each result could be more explicit — especially the intuition behind why truncated spectral < 1-WL. If the authors rewrote Section 4 (the main theoretical section) with a running example graph pair, it would become much clearer.

Verdict: weak accept — solid theoretical contribution with clean proofs and practical implications, though the presentation needs a bit more narrative for non-theorists.

Takeaways

  1. Don’t blindly use the first k Laplacian eigenvectors: unless you verify that k scales with graph size, you may be crippling your GNN below 1-WL power.
  2. Mix spectral and walk PEs in your model: the paper shows empirically that concatenating a truncated spectral encoding and a truncated walk encoding outperforms either alone. This is a concrete design tip for practitioners.
  3. Use the paper’s counterexamples as test cases: if your GNN + PE cannot distinguish the small graph pairs provided in the paper, your PE is likely too truncated.

论文: 2606.13671 作者: James Flora, Mitchell Black, Weng-Keen Wong, Amir Nayyeri 分类: cs.LG

缺口

先前的研究建立了谱位置编码(拉普拉斯特征向量、有效电阻)与游走位置编码(邻接矩阵多项式)在表达力上理论等价——两者均介于1-WL与3-WL之间。
但这一结论要求使用完整的编码,每个图耗O(n³)。
实际中人人都截断:只保留前k个特征向量,或计算到邻接矩阵的k次幂。
没人知道截断后等价性是否保留,或者这些家族的相对强弱是否改变。
本文问的是:截断到底打破了什么?

[完整PE等价 (O(n^3))]
        |
        | 截断(实践中使用)
        v
[未知:等价性是否成立?]
        |
        | 理论 + 反例
        v
[截断谱PE < 1-WL]    [截断游走PE ~? 1-WL]
        |                        |
        | 推论与定理             | 行为不同
        v                        v
[截断家族之间不再等价]
        |
        | 实验
        v
[混合使用截断PE效果最好]

增量

一句话: 在此之前,从业者盲目截断PE,以为完整版的强大性质依然保留;在此之后,我们知道截断谱PE弱于1-WL,且不同截断家族之间不可比较。

核心机制

论文构建了一个理论框架来比较截断PE。
它将每个家族定义为从图(或节点对)映射到向量的函数。
对于谱PE:取前k个拉普拉斯特征向量条目(或通过伪逆计算前k个有效电阻距离)。
对于游走PE:计算热核或邻接矩阵多项式的前k项。
对于调和距离:一种使用特征向量差值的谱变体。

核心操作:构造图对,使得一个截断PE能区分但另一个不能。
例如,构造一对图,1-WL能区分但截断谱PE不能——证明截断谱 < 1-WL
再构造一对图,截断游走能区分但截断谱不能——证明两者不可比。
作者随后证明了每个截断家族表达力的上界,并显示混合多个截断家族(如谱+游走)可以恢复部分损失的能力。

[输入图] --> [截断算子(前k个)] --> [每个节点的PE向量]
        |                                  |
        | 三个家族:                        v
        | [谱] [游走] [调和]          [GNN + 读出]
        |                                  |
        +--> [定理:家族A无法区分G1,G2]----+--> [结论]

核喻:把完整的PE想象成一张城市的高分辨率卫星照片,每条街道、房屋和树木都清晰可见。
理论家已证明,从谱卫星拍到的”完整照片”和从游走卫星拍到的”完整照片”显示出完全相同的场景——它们是等价的。
现在你只能使用一个小小的手机相机预览框——只有256个像素。你必须裁剪图片来适配。
谱卫星只返回左上角16×16像素的区域(前k个特征向量)。
游走卫星只返回中心16×16像素的区域(前k次游走)。
这两张裁剪后的图片可能显示城市完全不同的部分:谱裁剪可能显示公园,游走裁剪可能显示停车场。它们无法比较。
更糟糕的是,裁剪后的谱图片可能模糊到让你无法判断是否有建筑物(1-WL能判断,但截断谱不能)。
论文接着展示,如果你把两张裁剪图叠加起来(混合谱和游走),你会看到比单独任何一张更多的信息。

关键概念

  • 1-WL测试:一种经典的图同构算法。它根据邻居的颜色迭代地为节点着色;如果两图最终得到不同的颜色多重集,则它们可区分。1-WL是GNN表达力的基准——大多数GNN最多与1-WL一样强大。如果一个PE弱于1-WL,就意味着存在一些图对,1-WL能区分但(带该PE的)GNN不能。
    例子:两棵非同构的规则树,具有相同的度分布——1-WL失败,大多数PE也失败。但有些PE(如完整谱)超越1-WL,即能区分一些1-WL无法区分的图对。论文指出截断谱失去了这种额外能力。

  • 截断:只保留无限或O(n³)编码中的前k个分量。对谱PE,就是使用k个最小特征值及其特征向量;对游走PE,就是次数≤k的多项式。截断在实践中是不得已的,因为完整计算太昂贵,但截断对表达力的影响此前是盲区。

框架转变

之前(主流信念):
[完整谱] = [完整游走]  (等价,均 > 1-WL)
    |                     |
    | 截断(假定无害)     |
    v                     v
[截断谱] ~ [截断游走]  (仍可比?未知)

之后(本文):
[截断谱]  ---- [截断游走]
    |   不可比           |
    v                   v
弱于1-WL         可能强于1-WL
    |                   |
    +------> [混合两者] <--+
                |
                v
        优于单独任一种

一句话: 从认为截断是已知等价的无害近似,到发现截断把PE变成不可比较的工具且各有致命弱点,混合使用才是稳健之道。

专家评审

选题眼光: 真缺口。每个使用拉普拉斯特征向量或随机游走PE的GNN从业者都会截断——他们下意识地认为理论保证仍然成立。论文形式化地推翻了这一假设。这是对图表征学习理论的根本贡献。

方法成熟度: 精妙。论文没有发明新编码,而是通过截断视角仔细分析了现有编码,使用了反例和定理。调和距离变体是一个不错的补充,展示了即使近亲在截断下行为也不同。是否有更简单的方法?也许可以通过暴力枚举小图直接测试截断编码的WL能力,但论文提供了严格证明,更好。

实验诚意: 实验作为理论发现的支持。它们在真实世界分类任务上比较了单家族截断PE与混合PE。趋势明确:混合胜过任何单个家族。基线是公平的(标准GNN架构)。唯一的警示是理论边界可能不会在所有数据集上直接转为实际收益——但论文没有过度声称。实验部分可以更详尽(如对k做消融),但对偏理论的论文来说已足够。

写作功力: 论文结构良好,但有时定理陈述过于紧凑。每个结果的”为什么重要”可以更清晰——特别是截断谱<1-WL的直觉。如果作者用一对图解例子贯穿第4节(主要理论部分),会容易理解得多。

判决: 弱接收 — 坚实的理论贡献,证明干净且有实际影响,但面向非理论家的叙述需要更多故事性。

要点总结

  1. 不要盲目使用前k个拉普拉斯特征向量:除非你验证了k随图规模增长,否则你可能让你的GNN弱于1-WL。
  2. 在模型中混合谱PE和游走PE:论文实验显示,将截断谱编码与截断游走编码拼接优于任一种单独使用。这是给从业者的具体设计建议。
  3. 用论文中的反例作为测试用例:如果你的GNN+PE无法区分论文提供的小图对,说明你的PE可能被截断得太严重了。