The Challenge with GNN Inference
Graph Neural Networks (GNNs) achieve incredible performance on graph-based tasks, such as node classification, by utilizing a "message passing" framework. In this setup, a node's representation is iteratively updated using data from its neighbors. However, this multi-hop data fetching creates a significant bottleneck for latency-sensitive applications. To classify just a single node, a system might need to load data from hundreds or thousands of its extended neighbors.
To resolve this inference bottleneck, researchers have increasingly looked to distill heavy GNNs into Multi-Layer Perceptrons (MLPs). Because MLPs only rely on a node's own features, their inference is lightning-fast and entirely graph-free. The drawback? Current distillation methods typically treat the teacher GNN and student MLP as black boxes. They train the MLP to mimic the GNN's final output (soft labels) but completely ignore the rich, fine-grained structural knowledge hidden inside the GNN's internal layers.
The TINED Methodology
To address these limitations, the authors introduce TINED (Teacher INjection and Dirichlet Energy Distillation). TINED opens up the black box, distilling knowledge layer-by-layer using two novel techniques:
1. Teacher Injection
A standard GNN layer consists of two primary operations: Graph Propagation (GP), which aggregates neighbor data, and Feature Transformation (FT), which transforms the data using learnable weights. The authors recognized a simple but powerful mathematical equivalence: FT in a GNN is computationally identical to a Fully-Connected (FC) layer in an MLP.
Instead of training the student MLP from scratch, TINED directly copies (injects) the trained FT weights from the GNN into the MLP. It then uses a second FC layer to approximate the GP operation. This effectively maps one GNN layer to two MLP layers, giving the student model a massive head start in training.
2. Dirichlet Energy Distillation
The authors observed that GP and FT have opposing effects on the data. GP acts aggressively to "smooth" node embeddings (making neighbors look similar), while FT is conservative and can even diversify them.
To capture this dynamic, TINED uses Dirichlet Energy to quantify the smoothing effect of each operation, formulating a "DE ratio." The authors introduce a custom loss function that forces the student MLP's layers to replicate the exact smoothing and diversifying behaviors of the teacher GNN. By using the DE ratio as a distillation target, TINED doesn't just memorize the teacher's final answers; it learns to mimic the internal mechanical behavior of the GNN.
(Note: TINED can be deployed completely graph-free, or as TINED+, which incorporates graph structural information if it happens to be available during inference.)
Key Results and Performance
The authors evaluated TINED across a wide variety of public benchmarks, including standard homophilic graphs (Cora, Citeseer, Pubmed), large-scale OGB datasets (ogbn-arxiv, ogbn-products), and heterophilic graphs (Squirrel, Amazon-ratings).
- Superior Accuracy: TINED consistently outperforms standard MLPs and state-of-the-art distillation baselines (like GLNN and NOSMOG). For example, on the Citeseer dataset, TINED improved accuracy by 15.93% over a vanilla MLP and 3.21% over GLNN.
- Massive Speedups: Because the student is just an MLP, inference is incredibly fast. TINED is roughly 94x faster than a 2-layer GraphSAGE teacher (1.63ms vs. 153ms) and 733x faster than a 3-layer GraphSAGE, all while maintaining or even slightly exceeding the teacher's accuracy.
- Versatility: The method works beautifully regardless of the teacher architecture used (GCN, GAT, GraphSAGE, APPNP) and proves robust even on tricky heterophilic datasets where connected nodes often have different labels.
Limitations and Future Work
Limitations: Currently, the architecture of the student MLP is rigidly tied to the teacher GNN. Because TINED maps every GNN layer to two MLP layers, a $T$-layer GNN strictly requires a $2T$-layer MLP. This limits architectural flexibility during deployment.
Future Directions: The authors plan to develop techniques that allow for a flexible number of fully connected layers in the student model, decoupling the student's depth from the teacher's. They also intend to explore how TINED can be adapted for more complex data structures, such as heterogeneous graphs (graphs with multiple types of nodes/edges) and dynamic graphs that evolve over time.
Summary updated