NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SPHINX: Structural Prediction using Hypergraph Inference Network

Iulia Duta, Pietro Lio

Introduction

In the world of relational data, graphs are the gold standard. However, traditional graphs are limited to pairwise connections (e.g., node A connects to node B). Many real-world systems—from neural networks in the brain to chemical reactions and team sports—involve "group" interactions where multiple elements interact simultaneously. These complex relationships are best represented as hypergraphs, where a single "hyperedge" can connect any number of nodes.

The catch? Annotating these higher-order relations is incredibly tedious and often impossible. Consequently, most researchers either ignore these complex interactions or simplify them into basic pairs, losing vital structural information.

To address this, researchers have introduced SPHINX, a new framework for unsupervised hypergraph inference. SPHINX tackles the challenge of latent hypergraph inference: learning these hidden group structures automatically, using only the final task signal (like a prediction error) as a guide. It discovers complex, higher-order relationships in data without needing explicit labels for those groups, generating discrete, interpretable hypergraph structures that significantly improve downstream performance.

Methodology

The authors identify three "desiderata" for a good inference model: it must be widely applicable (both inductive and transductive), compatible with existing hypergraph neural networks, and easy to optimize. To achieve this, SPHINX introduces two key technical innovations:

SPHINX Architecture
  1. Sequential Slot Attention: Standard "slot attention" (often used in computer vision to find objects) typically processes all potential groups in parallel. The authors found this leads to "slot collapse," where multiple slots fixate on the same obvious group. SPHINX instead predicts hyperedges sequentially. Each step is "history-aware," meaning the model knows which nodes were included in previous hyperedges, forcing it to discover more diverse and useful structures.
  2. Differentiable $k$-subset Sampling: Most existing methods produce "soft" or weighted connections that are hard to interpret and often incompatible with standard hypergraph decoders. SPHINX uses a recently developed differentiable $k$-subset sampling technique. This allows the model to pick exactly $k$ nodes for a hyperedge while remaining "end-to-end differentiable," meaning the entire system can be trained using standard backpropagation.

Once the hypergraph structure is inferred, it can be seamlessly plugged into any standard hypergraph neural network (like AllDeepSets or HGNN) to perform the final task.

Datasets

The researchers evaluated SPHINX on a mix of synthetic and real-world benchmarks:

  • Particle Simulation (Synthetic): A newly introduced benchmark where particles move based on hidden 3-way interactions (triangles). This provides a "ground truth" to see if the model actually finds the real hidden structure.
  • NBA SportVU (Real-world, Inductive): Tracking data of players and the ball during basketball games. The goal is to predict future movements based on inferred player-group dynamics.
  • ModelNet40 & NTU (Real-world, Transductive): Standard 3D object classification datasets used to test if SPHINX can improve category prediction by discovering structural patterns in point clouds.

Key Insights and Ideas

  • Sequential is Superior: Breaking the symmetry of parallel prediction is crucial. By predicting edges one-by-one, the model avoids redundancy and covers the data more effectively.
  • Constraints Aid Optimization: Counter-intuitively, forcing each hyperedge to have exactly $k$ nodes (a hard constraint) makes the model easier to train than using "soft" unconstrained methods like Gumbel-Softmax. It provides a stable "structural prior" that prevents the model from getting lost in noisy, dense connections.
  • The "Ball" as a Hub: In the NBA dataset, SPHINX consistently included the basketball in almost every inferred hyperedge. This confirms the model's interpretability: it correctly identified that the ball's position is the primary driver of player movement.

Key Results

SPHINX demonstrated strong performance across both structural accuracy and downstream tasks:

Structural Overlap Performance
  • Structural Accuracy: On synthetic data, SPHINX achieved a 90% overlap with the ground-truth hidden hyperedges, compared to only 67% for previous state-of-the-art methods like TDHNN.
  • Downstream Performance: On the NBA trajectory prediction task, SPHINX outperformed all baselines (both graph and hypergraph-based) across all time horizons. For example, at the 4-second mark, it achieved a Final Displacement Error (FDE) of 4.09, significantly better than the next best hypergraph model, GroupNet (5.15).
  • Versatility: The model proved effective in both inductive settings (generalizing to entirely new sets of nodes/trajectories) and transductive settings (classifying objects within a fixed set).

Limitations and Future Work

While powerful, SPHINX has a few areas for growth:

  • Fixed Hyperparameters: The model currently requires the user to pre-define the maximum number of hyperedges ($M$) and their size ($k$). While the authors show the model is robust if $M$ is slightly too large (it just creates redundant edges), a version that learns these values dynamically would be a major step forward.
  • Static vs. Dynamic Structure: In its current form, SPHINX predicts one static hypergraph for an entire trajectory. In real-world scenarios like a basketball game, group dynamics change over time. Adapting SPHINX to infer evolving hypergraphs is a primary direction for future research.
  • Computational Scaling: While efficient for the tested datasets, the sequential nature of the slot attention might become a bottleneck for extremely large-scale systems with thousands of hyperedges.

Summary updated

BibTeX
@inproceedings{duta2025sphinx,
  author = {Iulia Duta and Pietro Lio},
  title = {{SPHINX: Structural Prediction using Hypergraph Inference Network}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=sfQJrVb4XM},
}
Figure