PANDA: Prior-guided Attentional Dual-path Architecture

Rishabh Jain, Federico Belotti, Stefano Coniglio, Pietro Lio, Stefano Fiorini

TL;DR

PANDA (Prior-guided AttentioNal Dual-path Architecture) is a modular "plug-in" for Hypergraph Neural Networks (HNNs) that solves the problem of "competitive" attention. By combining a structural-prior-guided main path with a non-competitive, gated auxiliary path, PANDA achieves an average performance boost of 5.18 percentage points across various benchmarks, with massive gains of up to 31 points in complex, heterophilic datasets.

What Problem Does This Paper Address?

Most real-world systems—from social networks to biological pathways—involve higher-order interactions that simple pairwise graphs can't capture. Hypergraph Neural Networks (HNNs) fill this gap by modeling relations between sets of nodes. However, current HNNs face two major hurdles:

  1. The Smoothing Bias: Many HNNs rely on fixed structural weights (like degree normalization). While stable, these "priors" can propagate misleading information in heterophilic settings—where connected nodes actually have different labels or roles.
  2. Competitive Attention: When researchers try to use learned attention to fix this, they usually rely on softmax normalization. This makes attention "competitive": if the model decides one neighbor is very important, it must reduce the weight of all other neighbors. In complex higher-order relations, multiple nodes might be simultaneously highly relevant, but standard attention can't represent that.

Methods

The authors introduce PANDA, a dual-path architecture designed to be plugged into any two-stage (node $\to$ hyperedge $\to$ node) message-passing HNN.

  • The Main Path: This path uses a learned interpolation between standard receiver-normalized attention (GATv2-style) and the "structural prior" (the original model's fixed weights). This allows the model to rely on the graph's structure when it's helpful but pivot to learned attention when the structure is misleading.
  • The Auxiliary Path: This is the core innovation. It is a non-competitive path. Instead of forcing weights to sum to one, it uses a sigmoid gate to let each node contribute its own transformed information independently.
  • Universal Applicability: PANDA is designed to handle both undirected and directed hypergraphs by factorizing attention along "head" and "tail" roles.
  • Theoretical Grounding: The authors prove that under specific conditions, PANDA recovers complex-valued spectral convolution operators used in state-of-the-art directed HNNs (like GeDi-HNN).

Datasets

The researchers evaluated PANDA across eight diverse real-world datasets:

  • Citation Networks: Citeseer, Pubmed (typically homophilic).
  • Web/Social/Communication: Telegram, Cornell, Texas, Squirrel, Roman-empire, and email-Enron (varying levels of heterophily).
  • Scalability Test: The "Questions" dataset (nearly 50k nodes).

Key Insights and Ideas

  • Non-competitiveness is the Secret Sauce: The authors ran an ablation study comparing PANDA to a version with a normalized auxiliary path ("Norm Aux"). PANDA won in 27 out of 32 model-dataset pairs, proving that the ability to assign high importance to multiple nodes simultaneously is crucial for hypergraphs.
  • A "Corrective" Plug-in: PANDA acts as a safety net. On homophilic datasets where the original structure is already a good guide, PANDA maintains performance. On heterophilic datasets where the structure is "wrong," PANDA's auxiliary path provides a "counter-neighborhood" signal that rescues the model.
  • Geometric Independence: Analysis showed that the messages sent through the auxiliary path are often nearly orthogonal to those in the main path. This means the auxiliary path isn't just amplifying the main signal; it's providing a geometrically distinct channel of information.

Key Results

PANDA was tested on four different HNN backbones (GeDi-HNN, HGNN, HyperGCN, and PhenomNN).

Table 1: Node classification results reporting mean accuracies ± standard deviation across all datasets. We compare our PANDA plug-in and its ablations with different backbone architectures.
  • Average Improvement: +5.18 percentage points (pp) across all models and datasets.
  • Heterophily Hero: The most dramatic gains were on the Telegram dataset, where PANDA boosted the PhenomNN backbone by a staggering 31.01 pp.
  • Efficiency: Surprisingly, adding PANDA often led to more parameter-efficient models. Because the architecture is more expressive, the hyperparameter search often selected smaller hidden dimensions to achieve superior results compared to the "vanilla" versions.

Limitations and Future Work

  • Two-Stage Restriction: Currently, PANDA is specifically designed for HNNs that follow a two-stage node-to-hyperedge-to-node message-passing template.
  • Degree Sensitivity: Because the auxiliary path is unnormalized, there is a theoretical risk of "exploding" node embeddings in very high-degree nodes. While the authors' stability analysis showed this wasn't an issue in their experiments, it's a factor to watch in extremely dense graphs.
  • Future Directions: The authors suggest extending these dual-path, non-competitive ideas to more general frameworks like Sheaf Neural Networks, which use tools from algebraic topology to model even more complex data relationships.

Summary updated

Abstract

Hypergraph Neural Networks (HNNs), designed to model higher-order relations beyond pairwise interactions, typically rely either on fixed structural weights or on normalised attention. Fixed weights can propagate misleading information in heterophilic settings, while normalisation makes attention coefficients competitive, in the sense that, in a message-passing framework, increasing the weight of one sender must reduce the weight of others in the same aggregation set. Our main contribution is the introduction of PANDA (Prior-guided AttentioNal Dual-path Architecture), a plug-in for two-stage message passing HNNs applicable to both undirected and directed settings. The main path interpolates between learned receiver-normalised attention and structural incidence priors, while a non-competitive (not normalised) auxiliary path lets each sender contribute its own transformed information. We also show that, with fixed structural coefficients, PANDA recovers a certain complex-valued convolution operator adopted in previous works. Across four HNNs spanning spatial and spectral methods in both directed and undirected settings, plugging PANDA in yields an average improvement of 5.18 percentage points across eight real-world benchmark datasets. The code is available at https://github.com/jainris/panda.
BibTeX
@inproceedings{jain2026panda,
  author = {Rishabh Jain and Federico Belotti and Stefano Coniglio and Pietro Lio and Stefano Fiorini},
  title = {{PANDA: Prior-guided Attentional Dual-path Architecture}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Kq4o9psxtB},
}
Figure