potentialpaper

BeamWitness: Rooted Subgraph Beam Search for Selective Graph Representation Learning

Lin Du, Lu Bai, Lixin Cui, Ming Li, Hangyuan Du, Bo Jiang

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. BeamWitness reframes graph representation learning as an active search problem.

Abstract. Standard graph neural networks (GNNs) are built on message passing and neighborhood aggregation, following the Weisfeiler--Lehman refinement paradigm. Despite their wide adoption, these models tend to compress and mix neighbor information from the very first layer. This early mixing obscures the critical subgraphs that drive the prediction. Attention-based and subgraph-based methods partially address this by reweighting nodes or enriching local representations, but both families remain passive as they usually rely on soft weighting or predefined subgraph templates. We propose BeamWitness, a selective graph representation learning framework that treats subgraph identification as an active search problem. Starting from a root node, a policy trained with task rewards expands a connected subgraph one node at a time or terminates early, and beam search retains a small set of candidate subgraphs as witnesses for prediction. For node-level tasks, the target node serves as the root, while for graph-level tasks, BeamWitness launches searches from multiple root nodes and aggregates the selected witnesses into a graph-level representation. On controlled motif benchmarks with known ground-truth subgraphs, BeamWitness achieves near-perfect accuracy and selects witnesses that align with the true motifs. On real-world node and graph classification benchmarks, BeamWitness is competitive with standard GNNs and related methods while providing an explicit, interpretable subgraph-based account of each prediction.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
2 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The submission proposes BeamWitness, a selective graph representation learning framework that learns to grow compact rooted connected subgraphs as prediction “witnesses,” using a task-trained policy and beam search. Reviewers were broadly positive: they found the idea novel, the paper well organized, and the empirical evaluation convincing across controlled motif benchmarks, heterophilous node classification, and graph classification. The explicit witness-based outputs and the evaluation of faithfulness/compactness were viewed as notable strengths.

The paper is currently leaning toward acceptance, but the authors should address several clarifications in the rebuttal:

  • Computational efficiency and complexity. All reviewers asked for more detail on the cost of BeamWitness. Please provide a clear time/space complexity discussion in terms of beam width, witness size, frontier size, number of roots, and encoder cost. If possible, report representative runtime comparisons or wall-clock overhead relative to standard GNNs/subgraph baselines. Extensive new benchmarking is not necessary, but readers need to understand the practical cost of the search.
  • Why beam search, and what guarantees does it provide? Please clarify why beam search was chosen over alternatives such as greedy search, best-first search, diverse beam search, or other combinatorial search procedures. Also state explicitly that beam search is approximate and does not guarantee global optimality, and discuss how beam width/search scoring may affect results.
  • Trajectory/witness selection and aggregation. The reviews found some parts of the inference pipeline unclear. Please explain how multiple trajectories are pruned/ranked, how final witnesses are selected, and how witnesses from multiple roots are aggregated for graph-level prediction. A simple worked example or additional schematic would likely resolve this.
  • Scope of selected subgraphs. Reviewers seemed uncertain whether BeamWitness is intended to find cycles specifically or arbitrary connected subgraphs. Please clarify that the action space can produce general connected rooted subgraphs—paths, trees, cycles, or motifs—and explain what happens on acyclic graphs or graphs without motif-like cycles.
  • Information loss from pruning. Since beam search discards many candidate expansions, please discuss whether important evidence may be pruned and how beam width, multiple witnesses, or confidence reranking mitigate this.

If these points are clarified satisfactorily, I expect the paper to remain a strong accept candidate. The remaining concerns appear addressable through explanation and modest additional analysis rather than requiring major new experiments.

Final justification

BeamWitness is a creative and well-executed way to make graph predictions through explicit, compact subgraph witnesses. The controlled motif results are particularly convincing, and the method remains competitive across both node- and graph-level benchmarks. The rebuttal clarified the full inference pipeline and added useful complexity, runtime, and beam-width results. Search is slower than a standard batched GNN and is still approximate, but the novelty and evidence are strong enough for acceptance.

Area Chair oQPw · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The submission proposes BeamWitness, a selective graph representation learning framework that learns to grow compact rooted connected subgraphs as prediction “witnesses,” using a task-trained policy and beam search. Reviewers were broadly positive: they found the idea novel, the paper well organized, and the empirical evaluation convincing across controlled motif benchmarks, heterophilous node classification, and graph classification. The explicit witness-based outputs and the evaluation of faithfulness/compactness were viewed as notable strengths.

The paper is currently leaning toward acceptance, but the authors should address several clarifications in the rebuttal:

  • Computational efficiency and complexity. All reviewers asked for more detail on the cost of BeamWitness. Please provide a clear time/space complexity discussion in terms of beam width, witness size, frontier size, number of roots, and encoder cost. If possible, report representative runtime comparisons or wall-clock overhead relative to standard GNNs/subgraph baselines. Extensive new benchmarking is not necessary, but readers need to understand the practical cost of the search.
  • Why beam search, and what guarantees does it provide? Please clarify why beam search was chosen over alternatives such as greedy search, best-first search, diverse beam search, or other combinatorial search procedures. Also state explicitly that beam search is approximate and does not guarantee global optimality, and discuss how beam width/search scoring may affect results.
  • Trajectory/witness selection and aggregation. The reviews found some parts of the inference pipeline unclear. Please explain how multiple trajectories are pruned/ranked, how final witnesses are selected, and how witnesses from multiple roots are aggregated for graph-level prediction. A simple worked example or additional schematic would likely resolve this.
  • Scope of selected subgraphs. Reviewers seemed uncertain whether BeamWitness is intended to find cycles specifically or arbitrary connected subgraphs. Please clarify that the action space can produce general connected rooted subgraphs—paths, trees, cycles, or motifs—and explain what happens on acyclic graphs or graphs without motif-like cycles.
  • Information loss from pruning. Since beam search discards many candidate expansions, please discuss whether important evidence may be pruned and how beam width, multiple witnesses, or confidence reranking mitigate this.

If these points are clarified satisfactorily, I expect the paper to remain a strong accept candidate. The remaining concerns appear addressable through explanation and modest additional analysis rather than requiring major new experiments.

Final justification

BeamWitness is a creative and well-executed way to make graph predictions through explicit, compact subgraph witnesses. The controlled motif results are particularly convincing, and the method remains competitive across both node- and graph-level benchmarks. The rebuttal clarified the full inference pipeline and added useful complexity, runtime, and beam-width results. Search is slower than a standard batched GNN and is still approximate, but the novelty and evidence are strong enough for acceptance.

Reviewer hUjEOpenReview ↗
Rating
4/6
Confidence
5/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

GNNs are mainly based on the MPNN associated with WL test. However, this MPNN mechanism may compress and mix neighbor information from the first layer of GNNs, it seriously effects the performance of GNNs. Although, some attention-based and subgraph-based methods are able to address this serious weakness by reweighting nodes or enriching local representations, they both rely on soft weighting or predefined subgraph templates. To address theoretical weakness of these GNNs, this paper proposes a new and novel graph representation learning framework, that is called as BeamWitness, for node and graph classficiation tasks. The proposed BeamWitness method considers subgraph idenfication as an active search problem. A trainable policy with task rewards starts from a root node and then expands a connected subgragh one node at a time or terminates early, where beam search retains a small set of candidate subgraphs as witnesses for downstream tasks. The idea of this paper is interesting and extensive experimental results also demonstrate the performance of the proposed approach.

Strengths and weaknesses

Strengths: This paper is novel and interesting, it is also technically sound, the proposed approach is clearly presented and illustrated. The theoretical analysis and experimental results are also well claimed. The overall paper is well organized and clearly written. I think it is a good paper that contributes to the ML community.

Weaknesses: Although this paper is overall well written and easy to follow, some theoretical justification and motivation need to be more clear. For example, it is preferred to explain why use Beam search as the search policy for the proposed approach? Moreover, time or computational complexity, and computational efficiency evaluation are also needed to help readers well evaluate the new methods.

For other weaknesses, please see Questions below.

Questions

I have the following concerns and questions, please answer these questions carefully, because it will affect my final recommendation.

Q1. If I understand correctly, the aim of using Beam Search is to assist the construction of the search policy of the proposed Beam Witness approach. However, there are many other search algorithms such as Best-first search, Viterbi Algorithm, Diverst Beam Search, etc., why do you use Beam Search in particular? Any specific reasons? Please add some discussions in your paper to show this point. Q2. Following Question 1, please also add some parts to illustrate the basic principles for Beam Search and cite one or two relevant papers as references. Q3. If you choose Beam Search, can you guarantee that the results obtained are global optimal solutions? How would the choice of different algorithms affect the computational results? Please add some discussions. Q4. Can you provide some computational efficiency evaluation on different datasets?

Limitations

Yes

Formatting concerns

NA

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment of the novelty, technical soundness, presentation, and experimental evaluation. The questions reveal an important distinction that we should state more clearly.

Q1. Role and choice of beam search

The reviewer is right that the role of beam search in the framework should be stated more explicitly. BeamWitness contains two related but distinct components.

The learned policy pθ(a∣St)p_\theta(a\mid S_t) assigns task-trained scores to expansion actions. At inference, beam search applies the selected scoring function σ\sigma to retain a bounded set of competing unfinished states and to collect terminal witnesses. The scoring function can use cumulative policy probability, predictor confidence, or the top-two prediction margin. Thus, depending on the choice of σ\sigma, candidate scores are provided either by the learned policy or by the downstream predictor, while beam search determines which scored unfinished candidates remain active.

This inference pipeline can be summarized as:

Candidate scoring → Beam pruning → Per-root completed pools → Global witness selection

The space of connected rooted subgraphs grows combinatorially with the witness-size budget. Greedy decoding is inexpensive but commits to one early choice, while exhaustive enumeration is generally impractical. Beam search retains several alternatives while imposing a fixed bound on the number of active states.

Method Implication for BeamWitness
Greedy search Equivalent to B=1B=1; inexpensive, but an early poor decision cannot be recovered
Beam search Retains a bounded number of depth-aligned candidate states
Best-first search Uses a global priority queue and has less predictable expansion depth and cost
Viterbi-style decoding Requires useful state recombination and decomposable path scores
Diverse beam search Adds a diversity objective and a score-diversity trade-off
Exhaustive search Can recover the highest-scoring witness under σ\sigma, but has combinatorial cost

Viterbi-style dynamic programming is not directly applicable because the states are variable connected node sets and different expansion histories do not yield a tractable fixed layered structure with useful state recombination. Best-first and diversity-aware procedures remain compatible extensions.

We selected beam search as a bounded compromise between greedy and exhaustive search. It is neither the only possible inference procedure nor a globally optimal one.

We will revise Sections 3.3–3.5 to distinguish the learned scoring mechanism from the inference-time search procedure and to motivate the choice of beam search more directly.

Q2. Beam-search procedure and references

For each root, BeamWitness begins with the singleton state {r}\{r\}. At each depth, every active state generates:

  • a stop successor when the minimum size has been reached;
  • one successor for each valid frontier addition.

All successors are scored by σ\sigma, which may use cumulative policy score, predictor confidence, or prediction margin. The top-BB unfinished states form the next active beam. Stopped or maximum-size states enter a completed pool. When all roots finish, the completed pools are merged and globally reranked.

To make the role of beam search concrete without repeating the same example, please see the shared numerical walkthrough in our response to Reviewer fGxK, Q3, under “Illustrative example of the BeamWitness inference pipeline.” It shows which candidates are scored and retained, which states enter completed pools, and how the final witnesses are used for graph-level prediction.

We will expand this description and add standard references, including Freitag and Al-Onaizan (2017), Beam Search Strategies for Neural Machine Translation, and Meister, Vieira, and Cotterell (2020), Best-First Beam Search.

Q3. Optimality and the effect of the search configuration

No. We agree that finite-width beam search does not guarantee the globally highest-scoring witness. Such a guarantee would require exhaustive enumeration or a beam wide enough to retain every reachable partial state.

Choice Main effect
Smaller beam Lower computation and higher risk of early pruning
Larger beam More alternatives and higher time and memory cost
Policy score Favors trajectories preferred by the learned action policy
Confidence score Favors high predicted class confidence
Margin score Favors separation between the top two predicted classes
Diversity-aware score Favors different witnesses but may sacrifice raw score

More returned witnesses can cover distributed evidence. They can also be redundant and dilute localized evidence during pooling. Prediction quality therefore need not increase monotonically with beam width. We will explicitly state the absence of a global-optimality guarantee in Sections 3.5 and 6.

Q4. Computational complexity and runtime

Let KK be the number of roots, BB the beam width, T≤mmax⁡−1T\leq m_{\max}-1 the number of expansion steps, and Fmax⁡F_{\max} the maximum effective frontier size. Let CσC_{\sigma} be the cost of scoring one successor. The search-time complexity is O(KTB(Fmax⁡+1)Cσ)\mathcal{O}\left(KTB(F_{\max}+1)C_{\sigma}\right). Final witness encoding adds O(BtestCenc)\mathcal{O}\left(B_{\mathrm{test}}C_{\mathrm{enc}}\right). If roots are processed in parallel, storing the active states and their materialized successors requires O(KB(Fmax⁡+1)mmax⁡)\mathcal{O}\left(KB(F_{\max}+1)m_{\max}\right) transient search-state memory. This term does not include the per-root completed pools, model activations, or final witness embeddings, which require separate memory. In our real-world settings, mmax⁡≤8m_{\max}\leq 8. Node queries use one root and cap the effective frontier at 32. Graph classification uses four roots.

We measured end-to-end inference latency on an RTX 3090. The measurements include search, witness encoding, reranking, and prediction.

Task and dataset B=1B=1 B=4B=4
Texas node query 0.10 s/node 0.72 s/node
PROTEINS graph prediction 0.16 s/graph 0.65 s/graph

A standard batched GNN remains substantially faster. We do not claim runtime parity. A direct amortized ratio would also mix different execution modes: full-graph or batched GNN inference versus instance-specific rooted search. We therefore report absolute end-to-end latency and the effect of the search budget.

For PROTEINS, the same trained model gives the following result on a 112-graph test split:

Joint beam/witness budget Correct graphs Accuracy Macro-F1 Time per graph
B=1B=1 82/112 0.732 0.717 0.161 s
B=2B=2 83/112 0.741 0.722 0.318 s
B=4B=4 84/112 0.750 0.731 0.649 s
B=8B=8 83/112 0.741 0.720 1.241 s

As noted in our response to Reviewer fGxK, this diagnostic uses Btest=BB_{\mathrm{test}}=B. The equal accuracy at B=2B=2 and B=8B=8 means that both settings classify 83 of 112 test graphs correctly. Their Macro-F1 values differ, so their error patterns are not identical. The result shows a dataset-specific trade-off rather than monotonic improvement. We use B=4B=4 as a practical validated setting, not as a globally optimal one.

We will add the complexity derivation, runtime protocol, budget analysis, and explicit implementation limitation to the revision.

Reviewer hxynOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work aims to address problems of existing GNNs that are based on Weisfeiler-Lehman (WL) test. The problems include compressing and mixing neighbor information, so that it is difficult to extract subgraph information for GNNs. Although one may solve these problems with attention and subgraph based methods, both strategies rely on soft weighting or predefined subgraph templates. Different from these current methods, this work propose a new GNN, namely BeamWitness, based on the policy that expands a connected subgraph rooted at each node through Beam search algorithm. The proposed BeamWitness can generates meaningful and effective subgraph structures rooted at different nodes, and can be naturally used for node-level and graph-level classification. Extensive experiments show the superior performance of BeamWitness.

Strengths and weaknesses

Strengths: Using Beam search algorithm to generate representative substructure, and capturing subgraph-level information for GNN architecture is interesting. Instead of aggregating information within fixed neighborhood, BeamWitness generates rooted subgraphs from nodes based on the policy trained from downstream task, so that selective subgraph representation can be extracted. Although this work is mainly based on subgraph extraction with existing Beam search algorithm and definition, the whole framework is new and seems novel to me. Excluding these, I find the experiments are thorough and completely, making this paper paper experimentally convincing.

Weaknesses: The main weakness of this work is that some of clarifications and discussions are not clear and hard to understand. First, the Beam search may generate more than one trajectory, Figure 2 also confirms my observation. For me, it is not clear how to select the most suitable trajectory for downstream tasks. Second, it seems that the proposed BeamWitness relies on generate compact subgraph through Beam search, and these subgraphs are essentially cycles. If a graph does not have any cycle at the beginning, how BeamWitness solve this situation. Third, as I see the subgraph generation mainly relies on Beam search. Why only use Beam, whether other search algorithm can also generate sycle-based subgraphs? For this issue, I also have a query, why we need to generate subgraphs like cycles? There are usually many kinds of subgraphs, such trees, paths and so on, why not use them?

Questions

I think some of clarity and discussion for this work need to be more clear, and I have raised them in Weaknesses. Please refer them for details and carefully answer them, these will be considered for my final judgement.

I also have another problem for authors. Whether you can also visualize the selective subgraphs that are informative for downstream tasks with representative datasets. This will help to understand how BeamWitness generate effective structures.

Limitations

Yes.

Final justification

The authors have adequately addressed most of my concerns through the rebuttal. I have therefore updated my score accordingly.

Formatting concerns

No major issues.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment of the novelty, technical quality, and experimental evaluation of our work. We also appreciate the questions about trajectory selection, the scope of the selected subgraphs, the choice of search procedure, and qualitative visualization. We agree that the cycle-based examples in Figure 2 may have suggested an unintended structural restriction.

1. Trajectory and witness selection

The reviewer identifies an important inference-time question: how multiple candidate trajectories are ranked and pruned, and how their terminal witnesses are selected for downstream prediction. We agree that we should present partial trajectories, terminal witnesses, and final witness aggregation more clearly.

A trajectory is a sequence of expansion actions that terminates either with a stop decision or upon reaching mmax⁡m_{\max}, and its terminal connected node set is the corresponding witness. BeamWitness retains multiple high-scoring partial trajectories during search and ultimately selects up to BtestB_{\mathrm{test}} terminal witnesses for prediction. At each search depth, all stop and add successors are ranked by the score σ\sigma. The top-BB unfinished successors remain in the active beam, while stopped successors and states reaching the maximum size enter the completed pool. After all roots finish, the completed pools are merged, and the globally highest-scoring up to BtestB_{\mathrm{test}} terminal witnesses are retained.

In our real-world experiments, candidates are ranked by prediction confidence. For a candidate node set SS rooted at rr, the witness encoder and classifier produce logits z(S)=gω(fψ(G[S],XS,r))z(S)=g_\omega(f_\psi(G[S],X_S,r)). The ranking score is σ(S)=max⁡c[softmax⁡(z(S))]c\sigma(S)=\max_c[\operatorname{softmax}(z(S))]_c, which is the model's highest predicted class probability. This is an inference-time ranking score rather than a training loss. For example, if two candidates produce class probabilities (0.82,0.12,0.06)(0.82,0.12,0.06) and (0.57,0.39,0.04)(0.57,0.39,0.04), their scores are 0.820.82 and 0.570.57, respectively, so the first candidate is ranked higher. The selected witness embeddings are then pooled for prediction.

A complete numerical walkthrough is provided in our response to Reviewer fGxK, Q3, under “Illustrative example of the BeamWitness inference pipeline.” It explicitly shows the active beam, per-root completed pools, global witness selection, independent witness encoding, and final mean pooling.

A finite beam may still prune a partial trajectory that would later produce a better witness. The search is therefore approximate. Retaining multiple active states, keeping multiple terminal witnesses, and applying confidence-based reranking mitigate the downstream effects of search error, but they cannot eliminate the possibility that a useful partial trajectory is pruned. We will make these stages explicit in Section 3.5 and Algorithm 1.

2. Scope of the selected subgraphs

A witness is any connected node set S⊆VS\subseteq V that contains its root rr. The returned witness is the induced subgraph G[S]G[S]. There is no constraint on cycle count or motif type.

Input graph Possible witnesses
Path Rooted path segments
Tree Rooted paths or subtrees
Cyclic graph Paths, branches, cycles, or mixed structures
General graph Any connected rooted induced subgraph within the size budget

If the input graph is acyclic, every induced witness is also acyclic. BeamWitness therefore runs without modification and returns paths or tree-shaped witnesses.

The five- and six-cycle examples in Figure 2 were chosen only to make two terminal witnesses easy to distinguish. They do not define the search space. We will revise the caption and add a small acyclic example.

3. Choice of search procedure

Beam search is one decoder for the learned policy or predictor scores. It is not part of the witness definition. Other search procedures are compatible with the framework.

Search method Property in this setting
Greedy search Equivalent to B=1B=1. It is inexpensive but cannot recover from an early poor decision.
Beam search Retains several depth-aligned candidates with a fixed bound on active states.
Best-first search Compatible, but requires a global priority queue and has less predictable expansion counts.
Diverse beam search Compatible, but introduces a diversity objective and an additional hyperparameter.
Exhaustive search Can identify the highest-scoring witness under the selected score, but has combinatorial cost.

We selected beam search as a bounded compromise between greedy and exhaustive search. We do not claim that it is the only valid decoder or that it guarantees the globally optimal witness.

In a joint beam/witness-budget diagnostic on one 112-graph PROTEINS test split, we evaluate the same trained model with Btest=BB_{\mathrm{test}}=B. Among the tested settings, B=4B=4 gives the best accuracy-cost trade-off. Accuracy increases from 0.732 at B=1B=1 to 0.750 at B=4B=4, but decreases to 0.741 at B=8B=8, while latency rises from 0.649 to 1.241 seconds per graph. Because BB controls both the active beam width and the number of returned witnesses, this is a dataset-specific joint-budget diagnostic rather than a pure beam-width ablation or evidence that B=4B=4 is generally optimal.

4. Visualization of informative subgraphs

We agree that these visualizations should be easier to locate. Appendix A.14 includes:

  • step-by-step expansions on BA-Shapes, Tree-Cycles, and Tree-Grid;
  • multi-root selected witnesses on MUTAG;
  • selected witnesses on PTC_FM;
  • selected witnesses on NCI1.

These examples include a house structure, a grid, molecular substructures, and other connected regions. We will add explicit references in the main text and include an acyclic worked example.

Reviewer hxyn · CommentOpenReview ↗

Response to Authors

Thank you for the detailed response. The authors have adequately addressed my main concerns, and I will therefore maintain my positive evaluation.

Authors · CommentOpenReview ↗

We thank the reviewer for the positive assessment. We promise that we will incorporate the explanations and experimental results into the revised manuscript based on your suggestions.

Reviewer fGxKOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In the literature, attention-based and subgraph-based methods have been proposed to address the limitations of standard GNNs, which is bounded by the W-L algorithm. However, both families still remain passive because they usually rely on soft weighting or predefined subgraph templates. To overcome these drawbacks, this paper develops Beam Witness, which is a novel graph framework, for graph representation learning. This approach formulates the subgraph identification process as an active search optimization problem. To obtain the solutions, this paper firstly train a search policy through task rewards rooted from a root vertex and further expands a connected subgraph one node at once or choose to terminate the whole search process at an early stage. During the search process, the Beam Search algorithm retains a small set of selected candidates, i.e., subgraphs, and uses them as witnesses for node and graph classification tasks. The experiments clearly show the efficiency and effectiveness of the proposed Beam Witness method.

Strengths and weaknesses

Strengths.

  1. Writing and Generalization: This paper is clearly written and well organized. The figures also well visualized the computational procedures and details. The proposed method has good generalization ability, and can be performed for both node and graph classification tasks.
  2. Novelty: This paper propose a selective graph representation learning framework by starting from a designated root node to grows connected candidate subgraphs with Beam search. This subgraph can generate informative trajectories, it not only enhances the local structural information representation, but also well identifies essential differences between subgraphs rooted from designated nodes. This can help to address the problem of compressing and mixing neighbor information for GNNs that rely on Weisfeiler-Lehman test.
  3. Experiments: The experiments are convincing. This paper not only evaluate the performance of node and graph classification on benchmark datasets, but also proposes some important evaluation protocols that can help to significantly explore the effectiveness of the proposed method, such as Counterfactual deletion, Sufficiency, Root-masked sufficiency, and Effective node ratio.

Weaknesses:

  1. Computational Efficiency: For the proposed Beam Witness method, the Beam search plays a core role for the architecture of the method. As we all know, the efficiency of Weisfeiler-Lehman is very fast, but it is not clear how about the Beam Witness. This paper does not provide any time complexity analysis and runtime evaluation.
  2. Clarity: Although Sec.3.4 explains how selected witnesses are encoded for prediction. Some details of the procedure is still not clear. The author may consider to provide a figure with a simple example may be useful to this problem in Appendix.
Questions
  1. Please provide some analysis about the computational efficiency for the proposed Beam Witness.
  2. Figure 2 shows that some trajectories may be dropped, such as the nodes with gray colour. Whether this may cause information loss and influence the performance?
  3. Figure 2 and the description “selective witness” make me a little confused. My concern is that you only generate witness for each node or selective nodes? If you mean the latter one, similar to Question 2, whether this may cause information loss?

If you mean the former one, whether the graph-level representation is computed by summing all witness embeddings? Whether the mixing will mix the local structural information? I see you stated here that h_G is obtained by aggregating embeddings of the final witnesses selected across multiple roots, how to aggregate them?

Limitations

Yes

Formatting concerns

No

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment of the presentation, generality, novelty, and experimental evaluation. We also appreciate the questions about computational cost, beam pruning, and graph-level aggregation. We agree that these parts should be stated more directly.

Q1. Computational efficiency

BeamWitness adds an explicit search stage. It is therefore more expensive than a single batched GNN forward pass. Its cost is bounded by the witness-size limit, frontier size, beam width, and number of roots.

Let KK be the number of roots, BB the per-root beam width, T≤mmax⁡−1T\leq m_{\max}-1 the number of expansion steps, and Fmax⁡F_{\max} the maximum effective frontier size. Let CσC_{\sigma} be the cost of scoring one successor. Each active state produces at most Fmax⁡F_{\max} add successors and one stop successor. The search-time complexity is O(KTB(Fmax⁡+1)Cσ)\mathcal{O}\left(KTB(F_{\max}+1)C_{\sigma}\right). Encoding the final witnesses requires at most O(BtestCenc)\mathcal{O}\left(B_{\mathrm{test}}C_{\mathrm{enc}}\right) additional computation, where CencC_{\mathrm{enc}} is the cost of one witness-encoder evaluation. When confidence or margin scoring is used, CσC_{\sigma} includes a witness-encoder and classifier evaluation.

If roots are processed in parallel, storing the active states and their materialized successors requires O(KB(Fmax⁡+1)mmax⁡)\mathcal{O}\left(KB(F_{\max}+1)m_{\max}\right) transient search-state memory. Separate memory is required for the per-root completed pools, model activations, and final witness embeddings. In our real-world settings, mmax⁡≤8m_{\max}\leq 8. Node classification uses one root per queried node and caps the effective frontier at 32. Graph classification uses four roots.

We also measured end-to-end inference latency on an RTX 3090. The measurements include rooted search, witness encoding, reranking, and prediction. They are single-seed implementation-level diagnostics after one warm-up.

Task and dataset B=1B=1 B=4B=4
Texas node query 0.10 s/node 0.72 s/node
PROTEINS graph prediction 0.16 s/graph 0.65 s/graph

A standard GNN remains substantially faster. The execution modes are also different. A node-classification GNN performs one batched full-graph pass, while BeamWitness runs an instance-specific rooted search for each query. GINE can batch graphs, while the current BeamWitness search is sequential. We therefore report absolute latency rather than a potentially misleading amortized ratio.

The PROTEINS result below shows the accuracy-cost trade-off on 112 test graphs.

Joint beam/witness budget Correct graphs Accuracy Macro-F1 Time per graph
B=1B=1 82/112 0.732 0.717 0.161 s
B=2B=2 83/112 0.741 0.722 0.318 s
B=4B=4 84/112 0.750 0.731 0.649 s
B=8B=8 83/112 0.741 0.720 1.241 s

For this diagnostic, we set Btest=BB_{\mathrm{test}}=B, so BB jointly controls the active beam and the number of returned witnesses. The table is therefore a joint beam/witness-budget analysis rather than a pure beam-width ablation. The gain saturates at a moderate budget. We will add the complexity analysis, runtime protocol, and this limitation to the revision.

Q2. Information loss from pruning

Yes. A finite beam may discard a partial trajectory that would later produce a better witness. Beam search is approximate, and we do not claim that pruning is lossless.

The gray branches in Figure 2 are discarded search hypotheses. They are not nodes removed from the input graph. BeamWitness mitigates the effects of finite-beam search in three ways:

  1. It retains several partial states instead of committing to one greedy trajectory.
  2. It keeps multiple terminal witnesses instead of requiring one final subgraph.
  3. It reranks completed witnesses by downstream confidence in the real-world experiments.

These mechanisms mitigate the downstream effects of search error but cannot recover a partial trajectory once it has been pruned. A larger budget also does not guarantee higher accuracy. Additional witnesses may be redundant and can dilute localized evidence during pooling. We will state this limitation explicitly and revise the Figure 2 caption.

Q3. Root selection and graph-level witness aggregation

The root strategy differs between the two tasks.

Task Roots Prediction procedure
Node classification The queried target node is the only root. Its final witnesses are independently encoded and pooled.
Graph classification Search starts from KK graph-level anchors. Completed witnesses from all roots are globally reranked, independently encoded, and pooled.

In our graph-classification experiments, the root set R\mathcal R contains the top-KK nodes by degree at inference, with K=4K=4. During training, KK roots are resampled uniformly each epoch.

For each root rr, the algorithm maintains a local active beam CrC_r and a completed pool WrW_r. After all roots finish, the completed pools are merged as W=⋃r∈RWrW=\bigcup_{r\in\mathcal R}W_r.

The globally highest-scoring BtestB_{\mathrm{test}} witnesses are retained. Each witness is encoded separately as hi=fψ(G[Si],XSi,ri)h_i=f_{\psi}(G[S_i],X_{S_i},r_i). The graph representation is then hG=ρ(h1,…,hBtest)h_G=\rho(h_1,\ldots,h_{B_{\mathrm{test}}}), where ρ\rho is order-invariant and selected on validation. Mean pooling is used in our real-world experiments.

Thus, nodes from different witnesses are not mixed before witness encoding. Each local structure is first represented independently. Only the witness-level embeddings are aggregated.

Illustrative example of the BeamWitness inference pipeline

Following the reviewers' and AC's suggestion, we use a multi-root graph-level example to show trajectory ranking and pruning, final witness selection, and multi-root aggregation.

Consider the acyclic graph below, using r1r_1 and r2r_2 as the search roots. Let the local beam width be B=3B=3, the final witness budget be Btest=4B_{\mathrm{test}}=4, and the size bounds be mmin⁡=2m_{\min}=2 and mmax⁡=4m_{\max}=4. These settings are illustrative.

Assume confidence-based scoring, σ(S)=max⁡cp(c∣G[S])\sigma(S)=\max_c p(c\mid G[S]). This score is used to retain the top-BB unfinished candidates at each expansion step and to select the final top-BtestB_{\mathrm{test}} terminal witnesses across all roots. The hypothetical scores below only illustrate this procedure.

The input is the following acyclic graph:

r1——a
│    ├——b——b1
│    ├——c——c1
│    ├——d——d1
│    └——g
x
│
r2——e
     ├——p——p1
     ├——q——q1
     ├——s——s1
     └——u

1. Pruning and ranking multiple trajectories

For root r1r_1, the search starts from Cr1(0)={{r1}}C_{r_1}^{(0)}=\{\{r_1\}\} and Wr1=∅W_{r_1}=\varnothing, where Cr1C_{r_1} is the active beam and Wr1W_{r_1} is the completed pool.

The first expansion gives {r1,a}\{r_1,a\} and {r1,x}\{r_1,x\}. Both remain active because the beam can contain up to three unfinished states.

At the next expansion, all stop and add successors are scored. Terminal successors enter Wr1W_{r_1}, while the top-BB unfinished successors form the next active beam. The relevant successors are:

Successor Score Result
stop at {r1,a}\{r_1,a\} 0.71 moved to Wr1W_{r_1}
stop at {r1,x}\{r_1,x\} 0.54 moved to Wr1W_{r_1}
{r1,a,b}\{r_1,a,b\} 0.89 retained in the active beam
{r1,a,c}\{r_1,a,c\} 0.86 retained in the active beam
{r1,a,d}\{r_1,a,d\} 0.82 retained in the active beam
{r1,a,g}\{r_1,a,g\} 0.60 pruned
{r1,x,r2}\{r_1,x,r_2\} 0.57 pruned

Other unfinished successors, including {r1,a,x}\{r_1,a,x\}, are assumed to score below 0.82 and are omitted for brevity.

Therefore, the next active beam is Cr1(2)={{r1,a,b},{r1,a,c},{r1,a,d}}C_{r_1}^{(2)}=\{\{r_1,a,b\},\{r_1,a,c\},\{r_1,a,d\}\}.

The stop successors have already entered Wr1W_{r_1} and do not occupy active-beam positions. Thus, B=3B=3 limits only the number of unfinished candidates retained at one search depth, not the total number of completed witnesses.

In the next round, each active state can stop at size three or add one node and reach mmax⁡=4m_{\max}=4. The leading terminal witnesses accumulated in Wr1W_{r_1} are, for example,

Witness from r1r_1 Score
{r1,a,b,b1}\{r_1,a,b,b1\} 0.96
{r1,a,b}\{r_1,a,b\} 0.89
{r1,a,c,c1}\{r_1,a,c,c1\} 0.88
{r1,a,d,d1}\{r_1,a,d,d1\} 0.84

The search from r2r_2 is conducted independently with the same policy, encoder, and scoring rule. Suppose its leading completed witnesses are

Witness from r2r_2 Score
{r2,e,p,p1}\{r_2,e,p,p1\} 0.95
{r2,e,q,q1}\{r_2,e,q,q1\} 0.92
{r2,e,s,s1}\{r_2,e,s,s1\} 0.90
{r2,e,p}\{r_2,e,p\} 0.83

Thus, each root has its own active beam and completed pool. The two searches do not merge partial states.

2. Selecting the final witnesses across roots

After both searches terminate, their completed pools are merged as W=Wr1∪Wr2W=W_{r_1}\cup W_{r_2}.

The globally highest-scoring up to Btest=4B_{\mathrm{test}}=4 terminal witnesses are selected. In this example they are

Global rank Root Selected witness Score
1 r1r_1 S1={r1,a,b,b1}S_1=\{r_1,a,b,b1\} 0.96
2 r2r_2 S2={r2,e,p,p1}S_2=\{r_2,e,p,p1\} 0.95
3 r2r_2 S3={r2,e,q,q1}S_3=\{r_2,e,q,q1\} 0.92
4 r2r_2 S4={r2,e,s,s1}S_4=\{r_2,e,s,s1\} 0.90

There is no fixed quota for each root. Three witnesses are selected from r2r_2 and one from r1r_1 here because the selection is global and score-based.

For node classification, there is only one root, so the local completed pool and the global pool coincide.

3. Aggregating the selected witnesses

The selected witnesses are not first merged into one larger subgraph. Each witness is independently encoded as hi=fψ(G[Si],XSi,ri)h_i=f_\psi(G[S_i],X_{S_i},r_i).

With mean pooling, hG=14∑i=14hih_G=\frac{1}{4}\sum_{i=1}^{4}h_i, followed by p(yG∣G)=softmax⁡(gω(hG))p(y_G\mid G)=\operatorname{softmax}(g_\omega(h_G)).

Therefore, node information is mixed only within each selected witness by fψf_\psi. Different witnesses interact only after they have been independently encoded, through order-invariant witness-level pooling.

Comments on the paper

2 comments
Area Chair oQPw · CommentOpenReview ↗

Dear Reviewers,

Thank you for your time and effort in the review process.

As the authors have submitted their formal response, it would be appreciated if you could read these and parcitipate in the dicussion.

At least, please acknowledge that you have read the response, even if you are not willing to change your evaluation.

Thank you for your continued engagement!

Best,

AC

Area Chair oQPw · CommentOpenReview ↗

Dear Reviewers,

The author rebuttals are in and the discussion deadline is almost here. Please take a moment to read the rebuttals, engage with the other reviewers, and update your assessment if needed. Your timely input is critical for a fair decision.

Thank you for your help, and please don't hesitate to reach out if there are any issues.

Best,

AC

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…