- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 2
- Significance
- 1
Read review
Summary
This paper offers a method to efficiently collect useful labels to adapt a neural subgraph retriever (NSR) model to shifted distributions. It reduces the problem to retrieving graphs from the database which are likely to be labeled positive. The core technical challenge is that the index used to retrieve such graphs is not suitable for the shifted distribution naively. The proposed solution leverages a Taylor series expansion of the adapted model around the base model, random projections to eliminate non-linearities and perturbation based training to make the retriever robust to the shifted distribution. Results show that using examples retrieved by the method (called ACROSS) are better at adapting the NSR model to the shifted distribution than baselines. Ablations show effect of various components of ACROSS.
Strengths and weaknesses
Strengths
The method is clever. It requires many non-trivial logical steps to go from the chicken-and-egg problem of requiring adapted NSR model to build the new index and requiring a new index to build the adapted NSR model. Results are good compared to the considered baselines, which cover at least some naive methods and variants possible under this problem framing.
Weaknesses
My big concern with this paper is its entire premise. This paper proposes a new problem statement: adapt an NSR model to a shifted distribution. However this problem statement is unrealistic and no attempt is made at convincing the reader otherwise. The experimental setup devised to test this problem setup is highly artificial. Practically, the simplest approach would be to simply train the NSR model on a large enough dataset representative of the downstream distributions, and in a robust enough manner to generalize to somewhat dissimilar distributions.
Adding on the above concern, the second premise here is that generating training data for subgraph classification is hard. While checking subgraph containment is indeed NP-hard, training data generation for NSR can easily bypass this by simply constructing positive pairs by generating subgraphs from the target graphs. It is also possible to generate hard negatives by minimally perturbing subgraphs extracted from the target graphs. All this makes is easy to cover distributions arising from the same database of target graphs.
Another thing that works against the problem framing is that only the query distribution shifts, not the target graph distribution. Query graph generalizability is usually less of a concern in NSR models (e.g. see Sections 4.6 and 4.7 in [1]).
Further, the method seems to be designed with the assumption that only symmetric indexes exist. However, prior work (e.g., appendix D in [1] has a detailed discussion) has shown that hinge-distance embeddings can be readily indexed too.
To demonstrate the actual utility of the proposal, a more convincing experiment would be to compare with an NSR model trained on the entire distribution beforehand or on higher-quality naively generated data and showing how close ACROSS comes to the ceiling and how the data generation + training times compare. However, this experiment is unlikely to change my view of the paper given the concerns above.
[1] GREED: A Neural Framework for Learning Graph Distance Functions, NeurIPS 2022.
Questions
What are some realistic settings which fall under this paper's problem formulation?
What are more realistic experimental setups that can be used to evaluate the problem formulation?
Limitations
Yes.
Paper formatting concerns
None.
Final justification
I thank the authors for the rebuttal.
My major concerns have been addressed, at least to some extent. I have raised my score.
I encourage the authors to incorporate some of these clarifications / discussions / motivating examples in future revisions for the benefit of readers.
About "unrealistic" or "poorly motivated" problem setup
We expand on some realistic use-cases for our setup below.
Molecular database search as a service
A substructure-search provider trains its base retriever on generic scaffolds from public databases such as ChEMBL and PubChem. Because chemical space is commonly partitioned by scaffold identity [1], evaluation on held-out scaffolds is standard: random splits overestimate real-world generalization [2], motivating dedicated scaffold-hopping distribution-shift benchmarks [3]. Thus, Qbase denotes the generic scaffold distribution.
A pharma partner’s queries instead come from proprietary compound series shaped by its synthesis and ADMET constraints. Although derived from the same broad chemical space, they occupy a narrow region on which the base retriever was not trained to specialize, making the query stream OOD relative to Qbase. The public corpus is fixed and fully available, but proprietary queries cannot be anticipated and are observed only at deployment. Moreover, obtaining ground truth requires a per-candidate VF call [4], whose cost our active-selection procedure is designed to amortize.
Cross-team enterprise code search
Multiple teams maintain private forks or extensions of a shared internal codebase, with control-flow and dependency structures that cannot be merged or exposed for IP or security reasons. Such siloed code has motivated recent federated and decentralized training approaches [5,6,7]. Each team trains and retrieves only on its own fork, whose evolving idioms and design patterns shift its query distribution relative to any shared base model. Because these distributions and forks are inaccessible across teams, pooled retriever training is impossible; each team must adapt locally. As in (1), the shared corpus is fixed and locally available, queries are observed only through team-specific traffic, and VF-verified labels remain the costly step targeted by our method.
[1] The properties of known drugs. 1. Molecular frameworks. J. Med. Chem., 1996.
[2] MoleculeNet: a benchmark for molecular machine learning. Chem. Sci., 2018.
[3] WelQrate: Defining the Gold Standard in Small Molecule Drug Discovery Benchmarking. arXiv:2411.09820.
[4] Introducing VF3: A New Algorithm for Subgraph Isomorphism. In Graph-Based Representations in Pattern Recognition (GbRPR 2017).
[5] Code Summarization without Direct Access to Code — Towards Exploring Federated LLMs for Software Engineering. EASE '24.
[6] I Can't Share Code, but I need Translation — An Empirical Study on Code Translation through Federated LLM. arXiv:2501.05724.
[7] When Fine-Tuning LLMs Meets Data Privacy: An Empirical Study of Federated Learning in LLM-Based Program Repair. arXiv:2412.01072.
About "ease" of generating labeled instances
Consider Gc as the triangle K3 on nodes {a,b,c}, with E(Gc)={(a,b),(b,c),(a,c)}. Now let Gq be a 3-node path on {u,v,w}, with E(Gq)={(u,v),(v,w)}. Under the map ϕ:u↦,v↦b,w↦c, it is clear that y(Gq,Gc)=1. In an attempt to form a hard negative instance, one might add the edge (u,w) to Gq, forming a triangle Gq′ with edges E(Gq′)={(u,v),(v,w),(u,w)}. However, it is clear that y(Gq′,Gc)=1=−1. Less trivial examples are easily constructed, that need a change in ϕ, but preserve y(Gq,Gc)=y(Gq′,Gc)=1. In general, the only way to ensure that a search for hard negatives succeed is to calculate y(Gq′,Gc) using a solver (which can be expensive).
To quantify the expense of the solver, we utilize the standard VF2 program from the
networkxpackage. We measure the per-pair cost across all four datasets, by calling thesubgraph_is_isomorphicfunction on query-corpus pairs taken from the train split (300 queries total, 100K corpus items). Additionally, we test the idea that simple edge perturbations provide a cheap, foolproof way to obtain negatives. For each dataset, we sample 200 verified positive query-corpus pairs, insert an edge between a randomly chosen non-adjacent pair of query nodes per pair and re-run the solver. We average over five random seeds.It is clear that executing the solver on all possible training pairs is prohibitively expensive. Note that these timing experiments were conducted on a standalone machine without multi-user contention, and the times should be interpreted as a lower bound. Further, the mean mislabel rate is non-trivial for all datasets, indicating that obtaining negatives by edge perturbation is not foolproof, and requires expensive re-verification.
About multiple aspects of graph distributions
A graph has myriad properties, of which only a few prominent ones (e.g. number of nodes, edges, degrees, diameter, eigenvalues, number and size of complete subgraphs, etc.) have been formally characterized. When we sample graphs from some unknown distribution, we sample the joint space of all these properties, usually without any estimate of most of them.
As an interesting ancient modeling tale, many social networks are known to degree distributions that follow a power law. An early graph sampler that satisfies power law degrees is preferential attachment (PA) [8]. However, PA-generated graphs do not have anywhere near the number of small complete bipartite subgraphs as seen in natural social networks. A different graph sampler, called the copying model, satisfies both power law degrees and emergence of complete bipartite subgraphs [9]. Yet other samplers like R-MAT [10] produce self-similar graphs, another property evinced "in the wild", but distort degree distributions away from strict power law.
[8] "Statistical mechanics of complex networks". Reviews of Modern Physics, 2002.
[9] “Stochastic models for the Web graph.” Proceedings 41st Annual Symposium on Foundations of Computer Science, 2000.
[10] "A Mathematical Analysis of the R-MAT Random Graph Generator". Networks, 2011.
As a toy example, suppose we want to sample graphs with N=60 nodes and all node degrees equal to d=4. Here are two samplers:
networkx.random_regular_graph).networkx.watts_strogatz_graph(n, d, p=0)). (This is a degenerate deterministic "sampler", but the argument can be extended.)Here are some properties of the graphs sampled from these two samplers.
As we can see, building graph samplers from a limited number of observed instances and an arbitrary set of graph features (without clairvoyant knowledge of their full generative process) is a very difficult task ― we may never know which property we have failed to enforce on the generative distribution we have fitted. In fact, random erasure or insertion of edges may themselves distort the "natural" query graph distribution.
About domain generalization in subgraph isomorphism search
Given the above discussion, "domain generalization" must be holistically judged across both sections 4.6 (query distribution given a fixed ∣Vq∣) and 4.7 (distribution of ∣Vq∣). In 4.7, [GREED] notes:
Section 4.6 uses Random Walks (RW), Random Walks with Restarts (RWR), and SHADOW [11]. These are closely related sampling schemes based on local message passing, which is related to both GNNs and random walks [12,13,14,15].
[11] Deep Graph Neural Networks with Shallow Subgraph Samplers, arXiv 2012.01380v2
[12] The Graph Neural Network Model, IEEE TNN, 2009.
[13] How Powerful are Graph Neural Networks?, ICLR 2019.
[14] Bookmark-Coloring Algorithm for Personalized PageRank Computing, Internet Mathematics, 2006.
[15] Predict then Propagate: Graph Neural Networks meet Personalized PageRank, ICLR 2019.
Therefore, the samplers used are not all that diverse.
Regarding "symmetric indexes"
We do not claim that the only indexes that exist are symmetric ones. We claim that standard indexing and retrieval systems support symmetric relevance scores (dot product, cosine sim, L2) out of the box. Moreover, we experiment by ablating against FourierHashNet, which internally builds an index on asymmetric relevance score.