Ephris / Graph Foundation Model

Predict with connections

Make predictions using both your data and how it’s connected.
ProductPredicted category
Product 12888Computer Components
Product 00445Networking Products
Product 00515Data 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.

Dataset · Run record · Source notices

Change the graph, keep the model

New topology, new attributes, new labels. Ephris uses the graph you provide as context, with sparse message passing at its core.
Same checkpointNew topology · attributes · labels

Bring a different network

The same pretrained checkpoint takes a new graph as context. Connections, measurements and known labels define the task.

Dense attentionSparse messages

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

Compare node classification with tuned GNNs and prior graph in-context learners.
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

Pass features, edges and context labels directly to predict. Select query nodes from the returned labels.
Open WeightPython
# 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])