Fragment-Level Graph Encoding for Interpretable Molecular Property Prediction

Rafael Lopes Almeida, Ina Pöhner
10/21/2026
cs.LGstat.ML

Official code: 4D-Lab/frame (0 stars, MIT, last commit 2026-08-25).

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 five-fold 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

View on arXivView PDF

Code Implementations(1)

4D-Lab/frameOfficial100%
MIT

FRAME, a framework for learning fragment-based molecular representations to enhance the interpretability of graph neural networks in drug discovery.

01PythonSep 21, 20251 months agoMIT

Cite this paper

@article{almeida2026fragmentlevel,
  title  = {Fragment-Level Graph Encoding for Interpretable Molecular Property Prediction},
  author = {Rafael Lopes Almeida and Ina Pöhner},
  year   = {2026},
  eprint = {2610.29589},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29589v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29589.svg)](https://codeofpaper.com/paper/2610.29589)

Discussion