Iteratively Refined Early Interaction Alignment for Subgraph Matching based Graph Retrieval
Ashwin Ramachandran, Vaibhav Raj, Indrayumna Roy, Soumen Chakrabarti, Abir De
TL;DR
This work tackles subgraph isomorphism-based graph retrieval and introduces IsoNet++, an early-interaction GNN that iteratively refines an injective alignment between query and corpus graphs. It builds on a GW/QAP formulation, relaxing the alignment to a doubly stochastic matrix and updating it across multiple rounds while conducting cross-graph message passing. The three core innovations are node-pair partner interaction, multi-round lazy alignment refinement, and the option to perform eager vs lazy updates, with an edge-alignment variant providing further gains. Empirical results across six datasets show IsoNet++ achieving state-of-the-art performance in MAP and HITS@20, with clear advantages from node-pair interactions and lazy refinement, along with a transparent analysis of computation-time trade-offs and alignment quality. The approach offers practical implications for scalable, attack-surface-aware graph retrieval and provides avenues for extensions to other similarity measures and constrained alignments.
Abstract
Graph retrieval based on subgraph isomorphism has several real-world applications such as scene graph retrieval, molecular fingerprint detection and circuit design. Roy et al. [35] proposed IsoNet, a late interaction model for subgraph matching, which first computes the node and edge embeddings of each graph independently of paired graph and then computes a trainable alignment map. Here, we present IsoNet++, an early interaction graph neural network (GNN), based on several technical innovations. First, we compute embeddings of all nodes by passing messages within and across the two input graphs, guided by an injective alignment between their nodes. Second, we update this alignment in a lazy fashion over multiple rounds. Within each round, we run a layerwise GNN from scratch, based on the current state of the alignment. After the completion of one round of GNN, we use the last-layer embeddings to update the alignments, and proceed to the next round. Third, IsoNet++ incorporates a novel notion of node-pair partner interaction. Traditional early interaction computes attention between a node and its potential partners in the other graph, the attention then controlling messages passed across graphs. In contrast, we consider node pairs (not single nodes) as potential partners. Existence of an edge between the nodes in one graph and non-existence in the other provide vital signals for refining the alignment. Our experiments on several datasets show that the alignments get progressively refined with successive rounds, resulting in significantly better retrieval performance than existing methods. We demonstrate that all three innovations contribute to the enhanced accuracy. Our code and datasets are publicly available at https://github.com/structlearning/isonetpp.
