In the landscape of modern AI, "foundation models" like GPT-4 or Stable Diffusion are defined by their versatility. A single model can write a poem, debug code, or summarize a meeting because all these tasks share a common interface: the sequence of tokens. Graph machine learning, however, has historically been a collection of silos. A model designed to classify a single user in a social network (node-level) is mathematically and architecturally distinct from one designed to predict the toxicity of a molecule (graph-level).
To bridge this gap, researchers are moving toward a paradigm of task unification. The goal is to find a "universal meta-structure" that allows a single model to process node, edge, and graph-level objectives interchangeably. By reformulating disparate problems into a shared format, the field is finally seeing the emergence of true Graph Foundation Models (GFMs).
The Subgraph as a Universal Meta-Structure
The most prominent strategy for unification is treating the local subgraph as the fundamental unit of learning. In traditional Graph Neural Networks (GNNs), node classification focuses on a single point, while graph classification focuses on the whole. Researchers like Xiangguo Sun and Jia Li argue in All in One: Multi-task Prompting for Graph Neural Networks that these can be unified by extracting "induced subgraphs"—such as ego-networks—around the target entities.
This approach, also championed by Yulan Hu in the GA2E framework, transforms every task into a subgraph classification problem:
- Node Classification: Classify the local neighborhood around a node.
- Link Prediction: Classify the joint neighborhood of two nodes.
- Graph Classification: Classify the entire graph (or a representative sample).
By standardizing the input to a subgraph, a single backbone can learn structural patterns that generalize across different granularities. As Hao Liu demonstrates in the One for All (OFA) framework, this allows a model to be trained on molecules and social networks simultaneously, matching the performance of specialized, task-specific architectures.
Reformulating Classification as Link Prediction
Another powerful intuition for unification is the "everything is a link" approach. In Towards Graph Foundation Models: The Perspective of Zero-shot Reasoning on Knowledge Graphs, Kai Wang and Siqiang Luo propose reformulating classification as Knowledge Graph (KG) triplet completion.
Instead of having a fixed output layer for "Class A" or "Class B," the model treats labels as physical nodes in the graph. Classifying a node becomes the task of predicting a link between that node and a "label node." This trick allows the model to use the same reasoning engine for every task. If the model can learn the structural "grammar" of how nodes connect to labels in one domain, it can often perform zero-shot reasoning in entirely new domains without changing its architecture.
Virtual Nodes and Task Trees
To handle the diversity of graph tasks without task-specific "heads," researchers have introduced the concept of the virtual task node. In Learning Cross-Task Generalities Across Graphs via Task-trees, Zehong Wang and Zheyuan Zhang describe a system where a virtual root node is connected to all task-relevant components.
This creates a "task-tree"—a standardized computation format where the embedding of the virtual root serves as the final prediction. Whether the task is predicting a chemical property or a citation link, the model always performs the same operation: aggregating information toward the virtual root. This homogenization is a critical step toward what Haitao Mao and Yao Ma call the "Holy Grail" of graph learning: a universal graph vocabulary that encodes structural invariance across domains.
Graphs as Language and Vision
Finally, a burgeoning direction involves unifying graphs with other modalities like text and images. Frameworks like LLaGA by Runjin Chen and Neil Shah convert graph neighborhoods into sequences that Large Language Models (LLMs) can "read." By framing graph tasks as natural language instructions (e.g., "Is there a link between Node A and Node B?"), they leverage the pre-existing reasoning capabilities of LLMs.
Similarly, the GITA framework by Shuai Fu treats graphs as visual renderings, allowing Vision-Language Models to reason about connectivity and flow as if they were looking at a map. This multi-modal integration suggests that the ultimate unified graph model might not just be a GNN, but a general-purpose assistant capable of "seeing" and "reading" relational data.
Why It Works: Emergence and Homogenization
The shift toward task unification works because it enables homogenization—the use of a single architecture for all tasks—and emergence—the appearance of new capabilities at scale. As noted in the survey Towards Graph Foundation Models: A Survey and Beyond by Jiawei Liu, when we stop training specialized models for narrow tasks and start training generalists on unified formats, the models begin to capture "generalities." They learn that the way a protein folds and the way a social community forms share underlying structural motifs, allowing knowledge to transfer across the entire spectrum of human data.