Attention Tracks Reaction Centers, But Doesn't Need Them: A Causal Study of a Retrosynthesis Transformer
Anonymous authors
ICLR 2027
TL;DR. Causal ablation reveals that the transformer layer most responsible for chemical predictions has the weakest correlation with reaction centers, a paradox explained by attention entropy.
Abstract. Attention weights in transformer-based chemistry models are widely treated as an interpretability signal — attention concentrated on a molecule's reaction center is commonly cited as evidence that a model has "learned" the relevant chemistry. We test this assumption directly using causal intervention. In a retrosynthesis Chemformer trained on USPTO-50k, encoder attention correlates strongly with ground-truth reaction centers (within-molecule AUC 0.902 vs. 0.836 for hand-engineered structural descriptors), replicating the correlational finding that motivates this interpretability practice. However, zero-ablating attention heads and measuring the resulting change in generation likelihood reveals that causal necessity is inversely related to this correlation: the heads most predictive of reaction centers are among the least necessary for generation, while 74.9% of total ablation damage concentrates in the encoder's first layer — the layer with the lowest reaction-center correlation of any layer in the network. We show this necessity is not decomposable into individual head contributions: the sum of single-head ablation effects in layer 1 is 115× smaller than the effect of ablating all eight heads jointly, and which single head survives a near-total ablation determines whether the model recovers 84% or 31% of baseline performance. We trace this structure to a measurable property of each head: attention entropy predicts sole-survivor sufficiency (ρ = −0.857) in the opposite direction from necessity, explaining why sharp, low-entropy positional heads are individually redundant yet individually sufficient, while diffuse, high-entropy heads are collectively necessary yet cannot reconstruct function alone. Our results extend the attention-is-not-explanation literature from NLP classification into generative chemistry models, and show that correlational interpretability claims in this domain — as in concurrent findings on 3D-geometry alignment in other chemical language models — do not reliably predict where causal computation actually occurs.
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 paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 17:10 UTC.
- Rating
- 1/4
- Confidence
- 4/4
- Soundness
- 1/3
- Presentation
- 2/3
- Informativeness
- 1/3
Read review
Summary
Strengths
- The paper provides a careful causal analysis of a common interpretability assumption in chemistry Transformers. It clearly shows that attention alignment with reaction centers does not necessarily identify the computation that is important for retrosynthesis generation.
- The analysis is broader than a simple attention visualization study. Layer ablation, cumulative ablation, leave one in experiments, and entropy analysis jointly reveal non additive interactions among attention heads and distinguish causal necessity from sufficiency.
Weaknesses
- The contribution is primarily a model analysis rather than a new learning method, architecture, or algorithm. Most of the technical contribution consists of applying existing ablation and interpretability techniques to a single retrosynthesis model. The resulting observations are interesting, but the methodological novelty and broader machine learning contribution are limited.
- The main mechanistic claims are based on one fine tuned Chemformer checkpoint, encoder self attention only, and zero ablation. It is therefore unclear whether first layer dominance, threshold behavior, and the entropy relationship are stable properties of chemistry Transformers or specific to this model and intervention setting.
Questions for the authors
- What is the main methodological contribution beyond applying established head ablation and attention analysis techniques to Chemformer?
- Do the main findings reproduce across different Chemformer training seeds or independently fine tuned checkpoints?
- Do first layer dominance and the non additive threshold effect remain under mean ablation or resample ablation rather than zero ablation?
- Why is the analysis restricted to encoder self attention when decoder self attention and cross attention are also directly involved in reactant generation?
- Have the authors tested whether the reported entropy relationship holds in another chemistry Transformer architecture, or is the claim currently specific to this checkpoint?
- Rating
- 1/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 1/3
Read review
Summary
This paper investigates whether attention to reaction centers reflects causal importance in a retrosynthesis Transformer. Using head-level ablation on Chemformer, the authors find that heads strongly correlated with reaction centers have little impact on generation when removed, while most ablation damage is concentrated in the first encoder layer. They further identify non-additive interactions among attention heads and a correlation between attention entropy and head sufficiency.
Strengths
Understanding how retrosynthesis models represent and utilize reaction-center information is an important problem, given the extensive research on explicitly incorporating reaction centers into retrosynthesis prediction.
Weaknesses
-
Limited novelty and mechanistic insight. Although the paper presents extensive empirical analyses, I find the main observations largely consistent with existing understanding of Transformer behavior. The distinction between attention correlation and causal importance is already well established, and the redundancy and interactions among attention heads are not particularly surprising. More importantly, the analyses do not lead to a substantially new understanding of how the model actually performs retrosynthesis or utilizes chemical information. As a result, I find the contribution limited beyond confirming previously known interpretability concerns in a chemistry-specific setting.
-
Unclear connection between the observed phenomena and reaction-center information. The finding that the first encoder layer dominates ablation damage may simply reflect the general importance of early representations in Transformers, rather than anything specific to retrosynthesis. Similarly, the strong non-additivity of attention-head ablation could arise from generic redundancy and interactions among heads. These observations do not necessarily reveal any distinctive mechanism related to reaction centers. Consequently, it is unclear what additional conclusions about retrosynthesis or chemical reasoning can be drawn from these experiments.
-
The central claim appears overstated. The fact that ablating reaction-center-correlated attention heads causes little performance degradation does not establish that the model does not need reaction-center information. The model may still encode and utilize such information through other attention heads, layers, or implicit representations that the current analysis does not identify. In particular, the experiments intervene on attention heads rather than reaction-center information itself. Therefore, the results support a narrower conclusion—that attention correlation is not a reliable indicator of head-level causal necessity—rather than the stronger implication suggested by the title that reaction-center information is unnecessary for retrosynthesis prediction.
Questions for the authors
-
What evidence supports the conclusion that reaction-center information is unnecessary, rather than being encoded and utilized through other components of the model?
-
To what extent are the first-layer dominance and non-additive head interactions specific to retrosynthesis, rather than general properties of Transformers?
- Rating
- 3/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper tests whether attention on reaction centers in a chemistry transformer indicates where the model's computation happens. In a Chemformer fine-tuned for USPTO-50k retrosynthesis, encoder attention predicts reaction centers better than structural descriptors, yet zero-ablating heads shows that the most reaction-center-correlated heads are among the least necessary, while the first encoder layer, the least correlated one, accounts for most of the damage measured by teacher-forced likelihood. The paper further reports that layer-1 heads behave non-additively and that attention entropy is associated with whether a single surviving head can restore function.
Strengths
Testing attention-based explanations of reaction models with interventions addresses a real weakness in chemistry-model interpretability, and the finding is interesting but reported honestly.
Single-head, joint, cumulative and leave-one-in ablations reveal behavior that single-head ablation alone would miss.
Weaknesses
W1. Necessity is concentrated in layer 1 by about two orders of magnitude, and the compared head sets differ in layer composition. The high-salience heads sit in a later layer, while the most damaging low-salience set contains several layer-1 heads. The salience–necessity inversion can therefore be explained by a layer effect alone, and outside layer 1 the differences are very small.
Zero-ablation of all layer-1 heads pushes downstream activations off-distribution, which alone could produce the layer-1 concentration and the non-additive threshold. The only metric is teacher-forced likelihood with effects around 1e-3, so "generation performance" overstates what is measured.
W2. Instead of removing reaction-center-correlated heads, the author should also try to intervene on the information itself, such as knocking out attention to reaction-center tokens across all heads. I am not sure whether this is available, but 1 attention head usually contains too many things and it is hard to say a head is "reaction-center-correlated heads"
Minor
Ablating layers 1–3 is more damaging than ablating all heads. How to explain this?
Questions for the authors
See weakness
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
The paper presents a mechanistic interpretability study of encoder self attention in a Chemformer trained for retrosynthesis on USPTO 50K. This work is not a new retrosynthesis algorithm or model. It analyzes whether attention weights that correlate with reaction centers are causally responsible for generation. The authors first confirm that attention predicts reaction centers better than hand engineered structural descriptors. They then perform head and layer level zero ablations and find that highly reaction center correlated heads are often causally unimportant, while the first encoder layer accounts for most ablation damage despite having weak reaction center correlation. Further cumulative and leave one in experiments reveal strong non additive interactions among first layer heads. Attention entropy is then used to distinguish sharp positional heads that are individually sufficient from diffuse heads that are collectively necessary. The paper also reports negative results for electronic descriptors and reaction class specialization.