Manuscript Offprint

arXiv:2610.29589

Fragment-Level Graph Encoding for Interpretable Molecular Property Prediction

Rafael Lopes Almeida, Ina Pöhner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Graph neural networks (GNNs) are among the standard tools for molecular property prediction, but the atom-level explanations of their predictions are hard for medicinal chemists to act on. We propose a change of input representation rather than a new model: molecules are encoded as fragment-level graphs from BRICS decomposition, where each node is a synthetically meaningful fragment whose features are the element-wise sum of its atoms' features. Because only the representation changes, any message-passing GNN and any post-hoc attribution method produces explanations at the resolution of functional groups instead of single atoms. Across four architectures, four prediction tasks, and two explainers under scaffold splits, fragment-level encoding matches atom-level test accuracy on roughly fivefold smaller graphs. Integrated-Gradients attributions recover known pharmacophores above chance on two enzyme targets, namely BACE at 1.5 times the chance rate, and PTR1 at 3.2 times. A like-for-like comparison against an aggregated atom-level baseline shows that post-hoc aggregation is not a stable substitute: its BACE hit rate range both exceeds and falls below the fragment model's hit rate depending on two arbitrary aggregation choices, whereas fragment-level training yields a single convention-free attribution at no predictive cost. The code is available at: https://github.com/4D-Lab/frame

1 Introduction

Molecular property prediction in drug discovery supports computational prioritization of compounds before committing costly synthesis and assay resources. Graph neural networks (GNNs) have become a popular choice because they operate directly on the molecular graph and learn structural features tied to biological activity [1,2][1, 2], reaching state-of-the-art performance on MoleculeNet benchmarks [3][3].

However, these models are still largely uninterpretable. When a model flags a molecule as active, a medicinal chemist wants to understand why, and which parts of the molecule drive it, not only whether the prediction is right. Post-hoc methods such as Integrated Gradients (IG) [4], GNNExplainer [5], and attention-based attribution [6] assign importance to individual atoms and bonds. The difficulty is one of resolution: chemists reason in functional groups, pharmacophores, and ring systems [7], so an atom heatmap that ranks carbon 14 above carbon 12 gives little to act on during lead optimization. Fragment-based drug design already assembles and optimizes molecules at the fragment/building block level [7, 8]. Explanations at that same resolution would thus speak the language chemists already use.

We close this gap with a molecular graph encoding built from BRICS decomposition [9]. BRICS (Breaking of Retrosynthetically Interesting Chemical Substructures) applies sixteen retrosynthetically motivated rules that cleave bonds at known synthetic disconnections, so the resulting fragments are both chemically meaningful and synthetically accessible. In our encoding, each BRICS fragment is a single node whose feature vector is the element-wise sum of its atoms' features, and inter-fragment edges mark the cleavage sites. The graph shrinks from dozens of atom nodes to a handful of fragment nodes while keeping the original feature information, and the granularity of any attribution method rises from atoms to interpretable substructures.

The contribution is a change in data representation, not a new architecture or a new explainer. Swapping atom-level graphs for fragment-level graphs coarsens the graph and re-expresses GNN explanations over chemically meaningful units, with no architectural modifications, custom explainers, or extra training objectives, and it drops into an existing pipeline as a preprocessing step. We evaluate four architectures to demonstrate that the behavior holds across different message-passing strategies, and two mechanistically different explainers to probe whether it is an artifact of one attribution method. Our contributions are:

  1. A BRICS fragment-level graph encoding that lifts GNN explanation resolution from atoms to synthesizable substructures, with no change to the model or the explainer, usable as a drop-in preprocessing step.

  2. A quantitative evaluation protocol that pairs predictive metrics with three explanation met-

∗^{*}Corresponding Author.

rics (fragment hit rate against known pharmacophores, attribution concentration, and cross-explainer agreement), all under scaffold splits, including an aggregated atom-level control that isolates the representation change from post-hoc aggregation.

  1. Evidence across four prediction tasks, four architectures, and two explainers that fragment encoding preserves predictive accuracy on far smaller graphs and recovers known pharmacophores above chance, while delineating where it helps (localized drug target interactions) and where it does not (a globally driven property).

References (63)