Lune

NeurIPS2021Top-tier venue

Slow Learning and Fast Inference: Efficient Graph Similarity Computation via Knowledge Distillation

Can Qin, Handong Zhao, Lichen Wang, Huan Wang, Yulun Zhang, Yun Fu

Abstract

Graph Similarity Computation (GSC) is essential to wide-ranging graph applications such as retrieval, plagiarism/anomaly detection, etc. The exact computation of graph similarity, e.g., Graph Edit Distance (GED), is an NP-hard problem that cannot be exactly solved within an adequate time given large graphs. Thanks to the strong representation power of graph neural network (GNN), a variety of GNN-based inexact methods emerged. To capture the subtle difference across graphs, the key success is designing the dense interaction with features fusion at the early stage, which, however, is a trade-off between speed and accuracy. For Slow Learning of graph similarity, this paper proposes a novel early-fusion approach by designing a co-attention-based feature fusion network on multilevel GNN features. To further improve the speed without much accuracy drop, we introduce an efficient GSC solution by distilling the knowledge from the slow early-fusion model to the student one for Fast Inference. Such a student model also enables the offline collection of individual graph embeddings, speeding up the inference time in orders. To address the instability through knowledge transfer, we decompose the dynamic joint embedding into the static pseudo individual ones for precise teacher-student alignment. The experimental analysis on the real-world datasets demonstrates the superiority of our approach over the state-of-the-art methods on both accuracy and efficiency. Particularly, we speed up the prior art by more than 10x on the benchmark AIDS data.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Graph Edit Distance with General Costs Using Neural Set Divergence cites Efficient Graph Similarity Computation with Alignment Regularization
  • Contrastive Representation Distillation cites Similarity-Preserving Knowledge Distillation
  • Contrastive Representation Distillation cites Correlation Congruence for Knowledge Distillation
  • Iteratively Refined Early Interaction Alignment for Subgraph Matching based Graph Retrieval cites Efficient Graph Similarity Computation with Alignment Regularization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. Efficient Graph Similarity Computation with Alignment RegularizationWei Zhuo, Guang TanNeurIPS 2022 · 48 citations
  2. Graph Edit Distance with General Costs Using Neural Set DivergenceEeshaan Jain, Indradyumna Roy, Saswat Meher, Soumen Chakrabarti et al.NeurIPS 2024 · 26 citations
  3. Efficient Traffic Prediction Through Spatio-Temporal DistillationQianru Zhang, Xinyi Gao, Haixin Wang, Siu Ming Yiu et al.AAAI 2025 · 22 citations
  4. Iteratively Refined Early Interaction Alignment for Subgraph Matching based Graph RetrievalAshwin Ramachandran, Vaibhav Raj, Indradyumna Roy, Soumen Chakrabarti et al.NeurIPS 2024 · 7 citations
  5. Rapid and Precise Topological Comparison with Merge Tree Neural NetworksYu Qin, Brittany Terese Fasy, Carola Wenk, Brian SummaIEEE VIS 2024 · 5 citations

Builds on9

  1. TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang et al.EMNLP Findings 2020 · 1,787 citations
  2. Contrastive Representation DistillationYonglong Tian, Dilip Krishnan, Phillip IsolaICLR 2020 · 1,305 citations
  3. Similarity-Preserving Knowledge DistillationFrederick Tung, Greg MoriICCV 2019 · 1,214 citations
  4. Correlation Congruence for Knowledge DistillationBaoyun Peng, Xiao Jin, Dongsheng Li, Shunfeng Zhou et al.ICCV 2019 · 625 citations
  5. Inductive Representation Learning in Temporal Networks via Causal Anonymous WalksYanbang Wang, Yen-Yu Chang, Yunyu Liu, Jure Leskovec et al.ICLR 2021 · 326 citations

Related papers

  1. Learning-Based Efficient Graph Similarity Computation via Multi-Scale Convolutional Set MatchingYunsheng Bai, Hao Ding, Ken Gu, Yizhou Sun et al.AAAI 2020 · 130 citations
  2. Noah: Neural-optimized A* Search Algorithm for Graph Edit Distance ComputationLei Yang, Lei ZouICDE 2021 · 20 citations
  3. GHashing: Semantic Graph Hashing for Approximate Similarity Search in Graph DatabasesZongyue Qin, Yunsheng Bai, Yizhou SunKDD 2020 · 29 citations
  4. GraSP: Simple Yet Effective Graph Similarity PredictionsHaoran Zheng, Jieming Shi, Renchi YangAAAI 2025 · 1 citation
  5. Boosting Graph Similarity Search through Pre-ComputationJongik KimSIGMOD 2021 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines