- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper identifies three problems behind LLM failing to under solve graph tasks. 1, transformers used for LLM break the permutation invariance of graphs. 2, A direct consequence of 1 is that self-attention mechanism with position encoding does not preserve graph topology natively. 3, Auto-regressive decoding does not enforce algorithmic traces.
Hence, the authors propose TRACER. TRACER uses a topology-aware residual attention to boost attention between nodes within distance. It then trains the model with randomly permuted graph input to teach model to understand invarance. During training it uses a process reward to strengthen the intermediate reasoning process.
The empirical results show consistent improvement over baseline model.
Strengths and weaknesses
Strength
The paper propose a generic method to enhance graph attention within the regular transformer LLM architecture, potentially without impacting regular token attentions. It also propose a Flash-attention compatibility trick, which ensures the standard kernel still runs.
A comprehensive set of experiments were conducted, and validate the effectiveness of TRACER. In particular, the results on easy tasks are surprisingly good.
Weaknesses
-
TRA is essentially distance-based position encoding in Graph Transformer literature. While the related work section in appendix discussed this a bit, the connection should be made clear in main text. Also, training with randomly permuted isomorphic examples is also widely adopted, not just in Graph Transformer but also in LLM + Graph works.
-
A big claim in this paper is that the design allows better understanding of the topology. However, we observe that, the improvement over baselines are most significant on easy graph tasks, while we even see worse performance on hard tasks. While Qwen model is not the backbone, it is still conventional transformer but can outperform topolgy-equipped TRACER, why is that? What if you apply TRACER to Qwen (the cost should be the same). The underlying question is did the proposed architecture/training mechanism solve topology problems transfomers are fundamentally unsolvable/intractablle, or its just a matter of training techniques.
-
How did you do SFT on LLM? Did you also use the randomly permuted examples. I think it is important to answer if randomly permuted examples are sufficient to tackle the invariance problem.
Questions
-
Is the ablation row 2 doing randomly permuted sample training?
-
Have tried applying this to more real-world tasks, so we understand how important /useful it is to have a model natively support graph and language at the same time.
Limitations
yes
Paper formatting concerns
na
Final justification
The author resolved the majority of my concerns.
Regarding the score:
Reason for why not lower
- The system is functioning well together.
- The authors provide clear and solid experimental results in the submission.
- In the follow-up rebuttal session, the authors show the framework is robust against models, and is effective on real data.
Reason for why not higher
- This paper propose a delicate system, from handling isomorphism to training, but the fundamental ideas are shared across multiple domains, and the adoption to the graph is not unique. So I think this will not spur too much excitement for the community.
Given the reason above, I think the paper is still a good paper, and prone to acceptance, I will keep my score.
Thank you for your valuable feedback. We respond to the raised concerns below.
W1: TRA is essentially distance-based position encoding in Graph Transformer. The connection should be clear in main text. Training with randomly permuted isomorphic examples is also widely adopted.
A1: For the first question, we will make the connection explicit in the main text of the revised paper. Here we clarify that although TRA indeed uses graph distance as the source of structural information, it is not simply a distance positional encoding transplanted from a Graph Transformer (GT). The key difference is that distance-based positional encodings in GT typically provide structural information as node-level positional or relational features. In contrast, TRA operates inside a pretrained text Transformer and injects graph structure directly into the attention logits as a learned gated residual as Eq.(3) in the paper. Thus, TRA does not replace or augment the LLM’s positional encoding, but it preserves the original content attention and adds a topology-dependent residual on top of it. In other words, TRA is a gated residual rather than a positional encoding. Moreover, because LLM inputs are textual serializations rather than node sequences, TRA must first map token mentions to graph entities and lift node-level topology to token-token relations. We further factorize this residual into low-rank Q, K augmentations as Eq.(5) so that it remains compatible with standard Flash-Attention without materializing a dense T×T graph-bias matrix. These aspects distinguish TRA from conventional distance-based positional encoding in GT.
For the second question, we agree that training on randomly permuted isomorphic examples is not a new technology, however, the novelty of this work lies not in the isomorphic augmentation itself but in what is imposed on top of it. Prior work typically treats each permuted graph as an independent training example. This exposes the model to different serializations, but does not explicitly require the model to recognize them as the same underlying graph or to follow the same reasoning process across them. In the proposed TRACER, the augmented examples are instead explicitly coupled during optimization. At the representation level, Eq.(7) aligns the graph-summary representations of different serializations, encouraging them to map to a shared internal graph representation. At the reasoning level, the cross-serialization reward Rconsis jointly optimizes rollouts from equivalent serializations and directly encourages their reasoning traces to become isomorphic after canonicalization. Therefore, compared with standard permutation augmentation, TRACER does not merely teach the model to solve many permuted versions independently, it also explicitly enforces that they are processed as the same graph with consistent internal representations and reasoning trajectories. This distinction is particularly important for graph computation, where the desired behavior is invariance to arbitrary node relabeling and edge ordering.
W2: The improvements are significant on easy tasks, while worse on hard tasks. Why can Qwen outperform TRACER? What if you apply TRACER to Qwen? Did the proposed architecture/training mechanism solve topology problems Transformers are fundamentally unsolvable/intractable, or is it just a training technique?
A2: First, we would like to clarify that Qwen3-8B does not outperform TRACER overall. Qwen's average accuracy is 43.92%, compared with 67.31% for TRACER, and Qwen wins on only one of the nine tasks. On the two NP-C tasks, Qwen3-8B is stronger on Hamiltonian Path, while our TRACER is stronger on Subgraph Matching. Moreover, on all three polynomial complexity tasks, TRACER substantially outperforms Qwen3-8B. In our view, the stronger performance of vanilla Qwen3-8B over Llama-based TRACER on a single task can be attributed to two factors. The first is architecture. Both models are decoder-only Transformers, but their internal designs differ in ways documented in their respective technical reports [1, 2]. For example, Qwen3-8B uses 36 layers, 32 query heads and 8 KV heads, and additionally adopts QK-Norm, while Llama 3.1 follows a different architectural configuration. Such differences can affect the intrinsic reasoning capability of the backbone. The second cause, which we regard as the more essential one, is the pre-training corpus. Although both models are open-weight, they are released by different companies their exact training data mixtures are not fully disclosed, so how much graph-algorithmic text, combinatorial search code, or path-construction data each model has already absorbed is unobservable to us. This is a plausible explanation for a task like Hamiltonian Path, whose answer format rewards prior familiarity with backtracking search. Qwen3 further reports pre-training on roughly 36T tokens with an increased emphasis on STEM, coding, reasoning, and synthetic data, against roughly 15T tokens for Llama3. The disparity in corpus scale and composition is thus a strong clue as to why Qwen3-8B performs better on this particular task.
In the table below, we run the identical recipe on a Qwen3-8B backbone and report the results on NP-C tasks. The results show that TRACER consistently improves both backbones, including the substantially stronger Qwen3-8B. This demonstrates that the benefits of TRACER’s post-training strategy are not specific to a particular backbone. Instead, TRACER provides significant improvements on top of the graph reasoning capabilities already acquired during pre-training across different LLM backbones.
[1] Qwen3 Technical Report.
[2] The Llama 3 Herd of Models.
W3: How did you do SFT on LLM? Did you also use the randomly permuted examples? It is important to answer if randomly permuted examples are sufficient to tackle the invariance problem.
A3: As described in Stage 1 of Section 3.2, the SFT in the proposed model is multi-augmentation SFT over randomly permuted serializations, with hyperparameters in Appendix D.5. Concretely, for each training instance (G,q,τ⋆,a⋆) we draw k=4 equivalent serializations from [G]∼. The query, ground-truth trace, and answer are then consistently transformed under the corresponding permutations, yielding equivalent training examples that represent the same underlying graph and computation. The objective of SFT combines two terms: Ltask in Eq.(6) is the standard token-level cross-entropy on the trace-plus-answer span averaged over all augmentations with prompt tokens masked, and Lrepr in Eq.(7) is the anchor-based cosine distance between the last-layer hidden state of a special token
[Graph]which is a summary token appended to the graph-description block, which penalizes representational drift across the serialization. Therefore, randomly permuted examples are indeed used during SFT.Empirically, Table 8 in Appendix E.2 and Fig. 2 together show that post-training on randomly permuted examples substantially encodes invariance to isomorphic permutations into the LLM. In Table 8, multi-augmentation SFT alone, without TRA, improves average accuracy from 54.56% to 60.72%. Fig. 2 further shows that the SFT stage raises answer consistency from 68.1% to 86.2% and trace agreement from 50.8% to 70.1% relative to single-serialization SFT. These results demonstrate that randomly permuted examples are an effective and important mechanism for learning serialization invariance. The remaining components of TRACER are designed to strengthen this invariance at complementary levels. Eq. (7) explicitly aligns the internal graph representations across equivalent serializations, while the Stage-2 trace-isomorphism reward directly couples the reasoning traces generated from different members of [G]∼. Thus, random permutation augmentation provides the primary supervised signal for invariance, and the representation- and trace-level objectives (Eq.(7) and Stage-2 of Sec 3.2) further consolidate this property inside the model.
Q1: Is the ablation row 2 doing randomly permuted sample training?
A4: Yes, for the ablation study in Table 5, row 2 (TRACER-SFT) does use randomly permuted training examples. Specifically, it follows the multi-augmentation SFT procedure in Section 3.2. For each training graph, we sample permutation-equivalent serializations and optimize the SFT objective in Eq.(8).
Q2: Have tried applying this to more real-world tasks, so we understand how important/useful it is to have a model natively support graph and language at the same time.
A5: This work aims to enable LLMs to directly understand and reason over graph-structured data that can be serialized into text within the backbone LLM’s context window. It is therefore best suited to real-world tasks whose graphs fit the backbone's context limit. Molecular graphs are a representative case. To evaluate TRACER in this setting, we conduct an additional experiment on molecular graph similarity computation using the AIDS700 and NCI109 benchmarks from SimGNN (WSDM 2019). Given a query compound and a database compound, the task is to estimate their normalized graph edit distance, a fundamental operation for similarity-based chemical database search. We use the corresponding training sets to post-train TRACER following the same framework described in the paper and report MSE (×10−3) below.
These results show that TRACER transfers effectively to real-world molecular graph similarity tasks. This provides direct evidence that TRACER can support practical applications requiring native graph computation within an LLM.