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:
- 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.
- 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.
- 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).
- Fusion: Since a node can appear in multiple paths across different flows, its tokens are averaged across all occurrences to create a stable representation.
- 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.
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.
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