Versatile Graph Foundation Models from Frozen Time-Series Foundation Models via Parallel Flows

Jielong Yang, Feng JiarXiv 2026

TL;DR

GraphFlowFM transforms a frozen time-series foundation model into a versatile graph foundation model without any graph-specific pre-training or gradient updates. By decomposing graphs into "parallel flows"—sequences of nodes that cover every edge—it leverages the sequential priors of time-series models to achieve state-of-the-art performance across node classification, link prediction, and molecule classification.

What Problem Does This Paper Address?

Building a "Foundation Model" for graphs is notoriously difficult. Unlike text or images, graph data is scarce, and its structure and feature spaces vary wildly across domains (e.g., a social network vs. a protein molecule). Most current Graph Foundation Models (GFMs) try to solve this by pre-training on massive collections of real or synthetic graphs. However, these models often struggle to generalize to unseen domains because the "rules" of one graph type don't always apply to another.

Furthermore, many GNNs struggle with heterophily—graphs where connected nodes are often from different classes. Standard GNNs aggregate (average) neighbor features, which "washes out" important distinctions in heterophilous settings.

Methods

The authors propose GraphFlowFM, which bridges the gap between graph structures and sequential foundation models through a five-step pipeline:

  1. Parallel Flows: The graph is decomposed into sets of vertex-disjoint paths (parallel flows) that collectively cover every edge. This effectively turns a non-ordered graph into a collection of ordered sequences.
  2. Multivariate Time Series: Each path is treated as a time series. Node features are compressed into 32 "variates" (channels), and structural features (like node degree and random-walk return probabilities) are added as 8 additional variates.
  3. Frozen Encoder: These sequences are fed into a frozen TimesFM-3 model (a foundation model pre-trained on billions of time-series data points). Crucially, the encoder is never updated. Causal attention within the model generates two tokens for each node: a "self" token (including the node and its prefix) and a "context" token (the prefix only).
  4. Fusion: Since a node can appear in multiple paths across different flows, its tokens are averaged across all occurrences to create a stable representation.
  5. Closed-Form Readout: Instead of backpropagation, the model uses a kernel ridge readout. This is a mathematically efficient, closed-form solution that fits the model to specific task labels without needing gradient descent.
Fig. 2. Prior graph foundation models (left) learn graph knowledge from real or synthetic graphs before they are applied to a target graph. GraphFlowFM (right) decomposes the target graph into parallel flows, vertex-disjoint paths that jointly cover every edge (1), writes each path as a multivariate time series with one node per patch (2), and encodes it with a frozen time-series foundation model whose causal attention gives each node a self token and a context token (3). Since a node lies on paths of several flows, its tokens are averaged over all of its occurrences (4), and a closed-form ridge readout predicts node labels, links, or graph labels (5). The node features and the structural descriptors are encoded as two separate groups of variates, and no parameter is pre-trained on graphs or updated by gradient.

Datasets

The model was evaluated on a massive scale:

  • Node Classification: 21 datasets from 9 domains (citation, social, web, etc.), including both homophilous and heterophilous graphs.
  • Link Prediction: 6 standard benchmarks (Cora, PubMed, AirUS, etc.).
  • Graph Classification: 5 OGB molecule benchmarks (HIV, BBBP, BACE, ToxCast, Tox21).

Key Insights and Ideas

  • Reusing Sequential Priors: Time-series models are pre-trained to understand how a value depends on what came before it. By presenting graph neighbors as an ordered sequence, GraphFlowFM allows the model to use these learned "sequential priors" to understand graph context, even though it has never seen a graph before.
  • Solving Heterophily with Order: Because the model processes neighbors in a sequence rather than averaging them, it preserves the distinct identity of neighbors. This is why GraphFlowFM excels on heterophilous datasets like Roman-empire, outperforming the strongest competitors by over 10 percentage points.
  • Zero Gradient Updates: The backbone remains entirely frozen. This makes the model incredibly efficient and robust, as it avoids the "catastrophic forgetting" or instability often associated with fine-tuning large models on small, specific graph datasets.
  • Feature-Structure Synergy: The model extracts useful information from both raw node features and the graph's topology. In molecule classification, combining these two groups significantly boosted performance.

Key Results

GraphFlowFM demonstrates that you don't need graph pre-training to beat graph-pre-trained models:

  • Node Classification: It attained the best average rank (1.24) across 21 datasets, ranking first on 17 of them.
  • Link Prediction: It achieved the highest ROC-AUC on 5 out of 6 datasets, proving it can predict connections even between nodes that share no common neighbors.
  • Efficiency: The entire 21-dataset node classification suite was processed in just 3.3 GPU hours on a single RTX 4090D.
  • Molecule Classification: It ranked second overall, trailing only a model specifically fine-tuned on molecular data, despite the GraphFlowFM encoder having never seen a molecule.
Fig. 1. Average rank of every compared method on three tasks, one panel per task with its own rank scale. Node classification covers the 21 datasets of Table 1 and every reported variant, link prediction six datasets, and graph classification five molecule benchmarks. Lower is better. Our method GraphFlowFM ranks first on node classification and link prediction. On graph classification it ranks second (3.00) behind GIT- S (2.20), but GIT-S is pre-trained on molecules and fine-tuned on each task, while the encoder of GraphFlowFM has never seen a molecule and makes no gradient update.

Limitations and Future Work

  • Vertex Ordering: The decomposition into paths depends on the order in which vertices are visited (e.g., node IDs). While the authors use a deterministic DFS to mitigate this, they found that averaging over multiple random relabelings can further improve stability and accuracy.
  • Context Window: The performance of the model scales with the length of the paths (sequence length), but it is ultimately limited by the time-series model's maximum context window.
  • Large-Scale Readouts: While the closed-form ridge readout is fast, solving the kernel system for extremely large graphs (millions of nodes) may eventually require approximate kernel methods or Nyström approximations.

Summary updated

Abstract

Graph foundation models aim to serve unseen graphs across tasks, feature spaces, and label sets. Most current models learn how to represent a new graph by pre-training on other graphs. Because graph data are scarce and differ across domains in features and structures, what they learn may not transfer to a graph from an unseen domain. We show that a frozen time-series foundation model, pre-trained on abundant time series, can instead serve as a graph foundation model without graph pre-training and without any gradient update on the target graph. Such a model reads ordered multivariate sequences, but a graph has no time axis, and covering all its edges with sequences is nontrivial because a node can have many neighbors. We therefore propose GraphFlowFM, which decomposes a graph into parallel flows, sets of vertex-disjoint paths that jointly cover every edge, and reads each path as a multivariate time series with the nodes as time steps. A frozen TimesFM encodes the paths with causal attention, which gives each node a self token and a context token, and a closed-form ridge readout weighs these tokens by their alignment with the labels. In node classification, GraphFlowFM attains the best average rank on 21 datasets among graph foundation models published in 2025 and 2026, ranks first on 17 datasets, and leads on six of the seven heterophilous datasets. It also exceeds pre-trained graph foundation models in link prediction on all six datasets and ranks second in molecule classification, behind only a model fine-tuned after pre-training on molecules.
BibTeX
@misc{yang2026versatile,
  author = {Jielong Yang and Feng Ji},
  title = {{Versatile Graph Foundation Models from Frozen Time-Series Foundation Models via Parallel Flows}},
  year = {2026},
  eprint = {2611.00670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00670},
}
Figure