Beyond Pairwise Interactions in Graph Neural Networks

585 concepts502 papers1 proposal

Imagine a research paper co-authored by three scientists. In a traditional graph, we represent this collaboration by drawing three separate edges connecting each pair of authors.

But does this triangle of edges truly capture the interaction?

Mathematically, it is fundamentally ambiguous. A graph cannot distinguish between one paper written by all three authors simultaneously, and three completely separate papers written by different pairs of authors. Standard Graph Neural Networks (GNNs) suffer from this exact limitation. As noted by Goh et al. in their work on Simplicial Attention Networks, traditional architectures are restricted to dyadic (pairwise) interactions. This structural blindness prevents models from capturing true group dynamics, multi-body physical phenomena, or complex relational logic.

Why Pairwise Reductions Fail

When we force a multi-entity interaction into a set of pairwise edges, we lose the emergent properties of the group. The whole is greater than the sum of its pairs.

Consider molecular modeling. Knowing the distance between individual pairs of atoms is insufficient to determine a molecule's true three-dimensional shape. As Hussain et al. demonstrate in Triplet Interaction Improves Graph Transformers: Accurate Molecular Graph Learning with Triplet Graph Transformers, pairwise formulations fail to capture higher-order geometric features like bond angles and dihedral angles.

Similarly, in algorithmic reasoning, Dudzik et al. show in Graph Neural Networks are Dynamic Programmers that lower-order message-passing schemes struggle with algorithms that require reasoning over triplets of nodes simultaneously, such as the Floyd-Warshall shortest-path algorithm. When a system relies on joint dependencies, decomposing those dependencies into independent pairs destroys the context required to solve the problem.

Elevating Groups to First-Class Citizens

To overcome the pairwise constraint, researchers have turned to higher-order topological structures that treat groups of nodes as single, unified entities. The two primary paradigms are hypergraphs and simplicial complexes.

Pairwise Graph:      Hypergraph:          Simplicial Complex:
   (A)---(B)          +------------+          (A)-------(B)
    \   /             |  A    B    |           \  filled /
     \ /              |    C       |            \ triangle
     (C)              +------------+             \  (ABC) /
                      (One Hyperedge)             \     /
                                                   (C)

Hypergraphs

In a hypergraph, an edge is no longer restricted to connecting just two vertices; a single "hyperedge" can encompass an arbitrary number of nodes. Zhang et al. leverage this flexibility in Hypergraph Convolution and Hypergraph Attention, allowing neural networks to perform convolutions directly over multi-node sets. This preserves the joint context of group collaborations, shared topics, or multi-entity relations without forcing an artificial pairwise breakdown.

Simplicial Complexes

While hypergraphs treat groups as unordered sets, simplicial complexes introduce a rigid geometric hierarchy based on spatial dimensions. A 0-simplex is a node, a 1-simplex is an edge, and a 2-simplex is a filled triangle. This explicit geometric structuring allows models to distinguish between an empty loop of three edges and a solid, filled triangular interaction. Battiloro et al. utilize this hierarchy in Generalized Simplicial Attention Neural Networks, combining masked self-attention with the simplicial Dirac operator to learn how data flows across nodes, edges, and triangles simultaneously.

How Higher-Order Message Passing Works

In a standard GNN, a node updates its state by aggregating features from its immediate neighbors across an edge. If a property depends on a group of three nodes, that information must slowly propagate step-by-step through the network, getting bottlenecked and diluted along the way.

Higher-order architectures change the routing of information. Instead of node-to-node communication, message passing occurs through the higher-order structures themselves:

  1. Node-to-Edge/Hyperedge: Nodes send their features to the hyperedges or higher-order simplices they belong to.
  2. Intra-Group Aggregation: The hyperedge aggregates the features of all its participating members, computing a joint representation that captures the collective state.
  3. Edge-to-Node: The hyperedge sends this collective context back to the nodes.

By routing messages through the group entity, the model explicitly computes the non-linear interactions within that group during a single layer.

This mechanism is particularly powerful for continuous physical systems. Choi demonstrates in SNN-PDE: Learning Dynamic PDEs from Data with Simplicial Neural Networks that using simplicial convolutions allows neural networks to capture multi-way interactions inherent in complex physical manifolds—such as fluid flow across surfaces or volumes—which standard pairwise graphs miss entirely.

Beyond Neural Networks: Higher-Order Graph Partitioning

The limitation of pairwise modeling extends beyond deep learning into classical graph algorithms like spectral clustering. Traditional spectral clustering relies on an adjacency matrix of pairwise similarities, making it blind to complex structural motifs like feed-forward loops or cycles.

To resolve this, Gleich et al. developed Tensor Spectral Clustering for Partitioning Higher-order Network Structures. Instead of an adjacency matrix, they use higher-order tensors to represent multi-node motifs. This allows graph partitioning algorithms to cut the network in a way that preserves functional communities defined by how clusters of three or more nodes interact collectively.

By shifting the fundamental primitive of network science from the dyadic edge to the multi-way interaction, these methods ensure that the collective context of complex systems is preserved rather than fractured.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_pairwise_relationship_limitation_b317fcd5,
  title = {pairwise relationship limitation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/pairwise-relationship-limitation/rdr_b317fcd5545b4774ba24164838a2ff08},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_pairwise_relationship_limitation_b317fcd5_v1,
  title = {pairwise relationship limitation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/pairwise-relationship-limitation/rdr_b317fcd5545b4774ba24164838a2ff08/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake