Skip to main content
QUICK REVIEW

[Paper Review] Modality-free Graph In-context Alignment

Wei Zhuo, Siqiang Luo|arXiv (Cornell University)|Mar 13, 2026
Advanced Graph Neural NetworksComputer Science0 citations
TL;DR

MF-GIA enables few-shot, parameter-update-free graph in-context learning across heterogeneous domains by aligning pre-encoded graph features and domain-specific labels in a unified space using gradient fingerprints and domain-conditioned transformations.

ABSTRACT

In-context learning (ICL) converts static encoders into task-conditioned reasoners, enabling adaptation to new data from just a few examples without updating pretrained parameters. This capability is essential for graph foundation models (GFMs) to approach LLM-level generality. Yet current GFMs struggle with cross-domain alignment, typically relying on modality-specific encoders that fail when graphs are pre-vectorized or raw data is inaccessible. In this paper, we introduce Modality-Free Graph In-context Alignment (MF-GIA), a framework that makes a pretrained graph encoder promptable for few-shot prediction across heterogeneous domains without modality assumptions. MF-GIA captures domain characteristics through gradient fingerprints, which parameterize lightweight transformations that align pre-encoded features and indexed labels into unified semantic spaces. During pretraining, a dual prompt-aware attention mechanism with episodic objective learns to match queries against aligned support examples to establish prompt-based reasoning capabilities. At inference, MF-GIA performs parameter-update-free adaptation using only a few-shot support set to trigger cross-domain alignment and enable immediate prediction on unseen domains. Experiments demonstrate that MF-GIA achieves superior few-shot performance across diverse graph domains and strong generalization to unseen domains.

Motivation & Objective

  • Prompt a pretrained graph encoder to perform few-shot predictions on new graph domains without updating parameters.
  • Achieve cross-domain alignment without requiring modality-specific encoders or raw data access.
  • Introduce gradient-based domain fingerprints to drive domain-conditioned feature and label alignment.
  • Learn prompt-based reasoning via episodic pretraining to enable immediate inference on unseen domains.

Proposed method

  • Define modality-free alignment that maps domain-specific features and label IDs into unified spaces via domain-conditioned transforms.
  • Use gradient fingerprints (one-step updates) to derive domain embeddings that parameterize FiLM-based feature and label aligners.
  • Employ Dual Prompt-Aware Attention (DPAA) to match queries against aligned support examples during episodic pretraining.
  • Pretrain with m-way k-shot episodes to teach the model to perform in-context reasoning with prompts only.
  • At inference, compute domain embedding for unseen graphs, apply aligners, and predict without updating pretrained parameters.
Figure 1: Overview of MF-GIA. (Left) Modality-free Alignment: The pretraining graphs are mapped to a unified space via domain-conditioned transformations. Domain descriptors $e$ ensure similar domains occupy neighboring subspaces. (Middle) Episodic Pretraining: The model learns from $m$ -way $k$ -sh
Figure 1: Overview of MF-GIA. (Left) Modality-free Alignment: The pretraining graphs are mapped to a unified space via domain-conditioned transformations. Domain descriptors $e$ ensure similar domains occupy neighboring subspaces. (Middle) Episodic Pretraining: The model learns from $m$ -way $k$ -sh

Experimental results

Research questions

  • RQ1Can a graph foundation model perform true in-context learning across heterogeneous graph domains without modality assumptions?
  • RQ2Can gradient fingerprints and domain-conditioned alignment enable cross-domain, post-training-free inference on unseen graphs?
  • RQ3Does episodic pretraining with DPAA foster effective prompt-based reasoning for node and edge classification across domains?

Key findings

  • MF-GIA achieves superior few-shot performance across diverse graph domains.
  • The method generalizes to entirely unseen domains without additional training.
  • It transfers effectively to edge-level tasks in addition to node tasks.
  • Domain-conditioned FiLM-based feature and label alignment preserve intra-domain semantics while enabling cross-domain transfer.
Figure 2: Domain embedder.
Figure 2: Domain embedder.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.