- Rating
- 5
- Clarity
- 4
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies how positional and symbolic attention mechanisms affect the accuracy of transformer-based language models on multi-hop reasoning tasks. The authors also investigate the internal mechanisms of attention heads and make empirical observations about their learning dynamics.
The key finding is that symbolic mechanisms may perform better than positional mechanisms for longer sequences. This is demonstrated using two structurally equivalent multi-hop reasoning tasks: a number task requiring positional hops and a letter task requiring symbolic hops
Head purity is introduced (the property that successful learning requires attention heads to behave as either purely positional or purely symbolic, rather than a mixture of both). This is shown empirically in Figure 2.
The authors also provide two theoretical results (Theorems 3.1 and 3.2) that support their empirical observations, showing that the identified functions can be implemented with RoPE-based attention and that their length generalization behavior can be predicted via a novel metric called discrepancy.
Strengths and weaknesses
Strengths:
-
Focus on learning dynamics (The paper tracks how positional and symbolic heads emerge over time (Figure 2), which is valuable for understanding when and why models succeed.)
-
Comprehensive result reporting
-
Mechanistic identification that the model implements, illustrated clearly in Figure 3.
-
Theory supports empiricism (Theorems 3.1 and 3.2) that explain why the observed differences in generalization occur.)
-
Validation on real models
Weakness:
-
Task specificity (The results are exclusively based on two highly structured hop tasks. It is unclear whether the main scientific conclusion (that symbolic mechanisms generalize better to long sequences) holds for other types of reasoning tasks.
-
I recommend that the authors perform a quantitative comparison with NoPE.
Questions
How do other LLM parameters e.g. number of heads, affect the results?
Limitations
Yes
Paper formatting concerns
NIL
We thank the reviewer for the positive appraisal of our work and the interesting comments and questions raised. Below we provide a point-by-point reply.
Weakness 1: We built natural-language versions of the number and letter tasks, we respectively named positional and symbolic hop task. Symbolic Hop Task: Given a color and a list of colored objects, return the object associated with the specified color. For example, input: blue [green book, blue moon, white room, green key], output: moon. Positional Hop Task: Given a position and a list of objects, return the object located at the specified position in the list. For example, input: 2 [green book, blue moon, white room, green key], output: moon. We tested gpt-5.4, 5.5 and 5.6 on 1 and 2-hop versions of these tasks. The results showed exactly the same patterns, with stronger length generalization in the symbolic task versus the positional one:
1-hop results:
2-hop results:
Weakness 2: We retrained the exact controlled architecture with NoPE (for Letter task) and NoPE+BOS instead of RoPE (for Number task), on both tasks, matching data/seed/hyperparameters exactly except for the positional encoding. Here are the final results:
Number task (NoPE + BOS): 98.51% (20 epochs, extended training ckpt-93,400) Letter task (NoPE): 99.92% (2 epochs, ckpt-13,500)
For the Number task, at an equal one-epoch training budget (step 6,750), NoPE+BOS already outperforms plain NoPE (29.58% vs. 16.65%): showing the BOS anchor is necessary for the model to learn at all and only reaches RoPE-competitive accuracy (98.51%) after roughly 20x more training (135,000 steps), showing it is also far more training-hungry than RoPE.
The symbolic/content-addressed mechanism (Letter task) is essentially unaffected by removing positional encoding entirely, while the positional/offset-addressed mechanism (Number task) collapses under NoPE and only recovers to RoPE accuracy with a BOS and substantially extended training.
We additionally tested length generalization (same setting used for panel B in Fig. 5 in Section 3.6) on the fully-trained checkpoints. Here we present accuracy for extra length 0, 10, 100, 1000, 2000 and 5000:
Number task:
Despite reaching 98.5% in-distribution, the NoPE+BOS number model catastrophically fails to generalize to even slightly longer contexts (near floor already at +10 tokens), indicating it learned a length-specific circuit rather than a genuinely extrapolating offset mechanism: RoPE degrades far more gracefully by comparison. Conversely, the letter-task NoPE model is unaffected and more robust to long context than the RoPE baseline, confirming that content-based retrieval is fundamentally position-independent.
Q1: We ran the requested multi-head experiment (MHA, 2 heads/layer) on both tasks (depth halved to 6 layers to keep the total parameter count comparable to the original 12L/1H model), reaching 100% test accuracy on both. We observe an identical head purity pattern as for the single head case. For the letter task, all heads revealed high symbolic scores (mean symbolic score = 0.998). The number task showed a clean depth-wise split: Heads of layers 1-2 were purely positional ( mean pos score = 0.971), layers 3-5 were purely symbolic (mean sym score = 0.948).
To address the interference/heuristic concern under MHA, we also performed ablations to test the relevance of each head, and found that both heads in a given layer were independently implementing the same functions, as the model’s accuracy was essentially not affected when either of the two heads was removed.