Traditional Graph Machine Learning follows a rigid "train-then-test" cycle. If you want to classify nodes in a social network or predict links in a molecular graph, you typically train a specific Graph Neural Network (GNN) on that specific dataset. This process is computationally expensive and requires significant labeled data for every new domain.
Researchers are now pivoting toward Graph Foundation Models (GFMs) that mirror the "in-context learning" (ICL) capabilities of Large Language Models. As Ziwei Zhang and Haoyang Li argue in Large Graph Models: A Perspective, the goal is to create models that can solve novel graph tasks on entirely unseen networks in a single forward pass, using only a few demonstration examples as a "prompt."
The Mechanics of Graph Prompting
In natural language, a prompt is a sequence of words. In graphs, a prompt is a structural arrangement. To enable ICL, models like PRODIGY, developed by Qian Huang, Hongyu Ren, and colleagues, represent tasks as "prompt graphs."
Instead of updating the model's weights, you provide a small set of labeled "support" nodes or links and a "query" node. The model treats these as a single connected structure. By observing the relationship between the support examples and their labels within this local context, the model "reasons" out the label for the query. This allows the model to adapt to new classification tasks on unseen networks without any fine-tuning.
Learning to Learn from Synthetic Priors
How does a model learn the general ability to "reason" over graphs it has never seen? One breakthrough approach involves Prior-Data Fitted Networks (PFNs).
In GraphPFN: A Prior-Data Fitted Graph Foundation Model, Dmitry Eremeev, Liudmila Prokhorenkova, and their team pretrain a model on millions of diverse, synthetic graph datasets. By training the model to predict labels on these artificial structures, the model effectively "learns the learning algorithm" itself. During inference, the model doesn't need to perform gradient updates; it simply applies the pattern-matching logic it refined during pretraining to the new real-world data.
Generalizing Across Domains and Tasks
The ambition of this research direction is "universal" applicability. For example, Kaiwen Dong and Nitesh Chawla introduced UniLP (Universal Link Predictor By In-Context Learning on Graphs), which applies ICL to link prediction. By feeding the model a few "demonstration links" from a target graph, UniLP adapts to that graph's specific connectivity patterns—whether it's a citation network or a protein interaction map—without retraining.
Similarly, Jiabin Tang and Wei Wei developed HiGPT (HiGPT: Heterogeneous Graph Language Model) to handle heterogeneous graphs—networks with multiple types of nodes and edges. By using a "Mixture-of-Thought" paradigm, the model can generalize to complex, multi-modal graph structures in a zero-shot fashion.
Challenges in Real-World Scaling
Despite the promise of these foundation models, the transition from academic benchmarks to industrial applications remains difficult. Gleb Bazhenov and Oleg Platonov point out in GraphLand that current graph foundation models still struggle with the messy, non-textual numerical features found in industrial data.
While LLMs benefit from the massive, unified corpus of the internet, graphs are fragmented across domains (biology, social, financial) with no single "universal language." The current research trajectory, as summarized in the survey by Zehong Wang and Zheyuan Liu (Graph Foundation Models: A Comprehensive Survey), focuses on finding a unified representation basis—a way to encode any graph structure so that a single frozen model can "read" and reason about it in context.