CS224W-Machine Learning with Graph-Snap

PRODIGY: Enabling In-context Learning Over Graphs

Formulation

Graph Learning Tasks

In-context Learning Over Graphs: Link Prediction Example

How to achieve this? Two challenges

Prompt Graph

Prompt Graph is a unified representation of few-shot prompts over graph for diverse tasks

Step 1: Data Graph - Link Prediction

Data Graph contextualizes each input xx in the graph GG (e.g., by subgraph extraction)

Data Graphs - Node Classification

Data Graphs - Graph Classification

Step 1: DataGraph Construction

DataGraph unifies input format:

Step 2: Task Graph

Task Graph interconnects inputs and labels across examples to form context for queries.

Prompt examples: bidirectional edges between data nodes and all label nodes.

Queries: single directed edges from each label to each data node.

Task Graph - Node Classification

Task Graph - Graph Classification

Flexibility of Task Graph

Task Graph unifies classification task format:

PromptGraph Inference - In context prediction GNN

In context prediction GNN

Hierarchical Message passing over PromptGraph

PRODIGY Pretraining

Reliable Graph Learning with Guaranteed Uncertainty Estimates