Ephris / Graph Foundation Model
Predict with connections
| Product | Predicted category |
|---|---|
| Product 12888 | Computer Components |
| Product 00445 | Networking Products |
| Product 00515 | Data Storage |
Source and method
Amazon Computers · Ephris 1.0.1 · Recorded 2026-10-27.
Held-out predictions on the original co-purchase graph. Nine of 1,024 nodes are shown; selected outputs are not an accuracy benchmark.
Change the graph, keep the model
Bring a different network
The same pretrained checkpoint takes a new graph as context. Connections, measurements and known labels define the task.
Work with the connections you have
Sparse message passing scales with node-feature entries and edges, instead of dense attention across all node pairs.
Different graphs, measured together
- 51
- Node-classification datasets
- 1st
- Across four aggregate metrics
Evaluation notes
51 datasets · Five splits per setting · Train/validation/test: 50/25/25. Tuned GNNs use validation data; Ephris uses context labels.
Selected models · Elo starts at 1,000. Aggregate rank does not imply a win on every dataset; full comparisons and uncertainty estimates are in the paper.
Source: Full results and protocol
Try it on your own data
# pip install ephris
import torch
from ephris import EphrisClassifier
x = torch.tensor([[0.1, 0.2], [0.8, 0.9], [0.2, 0.1], [0.9, 0.8]])
edge_index = torch.tensor([[0, 1, 2, 3], [2, 3, 0, 1]])
context_indices = torch.tensor([0, 1])
query_indices = torch.tensor([2, 3])
context_labels = torch.tensor([0, 1])
model = EphrisClassifier(random_state=42, device="auto")
labels = model.predict(
x, edge_index,
context_indices=context_indices, context_labels=context_labels,
)
print(labels[query_indices])