arXiv:2611.02277cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02277

Atom-Wise Allocation of Message-Passing Scale for Molecular Property Prediction

Regina Qianru Zhang, Honggang Wen, Zongru Li, Jinsong Ouyang, Zhiqin Chu, Pietro Liò, Xiaofeng Liu, Siu-Ming Yiu

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

Abstract

Molecular properties depend on chemical structure at different ranges, from local polar groups governing solvation to extended substructures shaping bioactivity, yet graph neural networks usually fix one propagation scale for every atom. We present PRISM (Per-atom Routing over Intermediate States of Message Passing), in which each atom's encoded features produce a bounded scalar that positions a unimodal distribution over retained message-passing states and matching circular-fingerprint radii. Because one coordinate translates the whole profile, allocated depth responds to the routing scalar in closed form: at fixed temperature it is nondecreasing, its sensitivity scales with the profile variance, and it saturates in the clipped regions. Beyond providing closed-form analyzability, this constrained one-parameter profile matches or significantly outperforms parameter-matched, unconstrained node-wise gates and Jumping Knowledge attention. Under scaffold partitions with equal tuning budgets against eight graph, fingerprint, and geometric baselines, PRISM trained from scratch without three-dimensional coordinates achieves the lowest mean error on aqueous solubility and hydration free energy and strong accuracy on BACE and BBBP. As a general layer-combination rule, PRISM transfers directly to GCN, GIN, and GAT backbones, reducing hydration free energy error by up to 29% relative to last-layer readout. Applied to a pre-trained GIN, it improves on last-layer readout on four of six endpoints and gives the lowest lipophilicity error overall. In trained models, allocated depth differs systematically between atom types in a task-dependent way, and permitting profiles among a molecule's atoms raises prediction error on several endpoints, so the rule acts as a learned counterpart of atom typing.

Introduction

A molecular property depends on chemical information gathered over different ranges. Aqueous solubility and lipophilicity respond to whole-molecule descriptors such as size, polarity, aromatic proportion, and flexibility1,2^{1,2}, whereas hydration free energy is dominated by the identity and solvent exposure of a few polar groups3^{3}. Circular fingerprints handle this by enumerating atom-centered substructures at several neighborhood radii and leaving the downstream model to decide which radii matter. Learned fingerprints and message-passing networks make the same neighborhood transformations trainable4−6^{4-6}. The radius at which an atom's environment becomes informative is a modeling choice, and there is no reason to expect one choice to suit every atom.

This choice matters for molecules for three reasons. First, molecular graphs are small and sparse, and the longest shortest path in a drug-like molecule is typically below about 20 bonds. Useful propagation scales therefore differ by one or two hops, the range over which circular-fingerprint radii are chosen, and a single global depth that is one hop too large for one atom is one hop too small for another. Second, atoms in a molecule play chemically distinct roles. Classical additive models of physicochemical properties assign each atom a contribution that depends on its type and local neighborhood, as in Wildman and Crippen log PP atom types and Benson group additivity7,8^{7,8}. In both, the atom's own type determines how much of its environment is relevant. Third, the endpoints studied here mix such additive group contributions with whole-molecule terms such as size, so the same molecule contains atoms whose useful information is local and atoms whose useful information is extended. An allocation conditioned on atom type serves as a learnable counterpart of atom typing, and the experiments below test this interpretation directly by disrupting the atom-to-profile correspondence and by constructing a benchmark whose target rewards atom-dependent radii.

Message-passing architectures usually make that choice once, globally. A network with LL layers reads its final layer, so every atom is described at the same propagation scale, and any local distinction the readout needs must survive LL rounds of neighbor mixing. Deeper networks do not resolve this. Repeated propagation drives atom representations toward one another9,10^{9,10}, and narrow regions of a graph compress the information passing through them11^{11}. Retaining intermediate layers and combining them is the standard response12,13^{12,13}, but a uniform average, or a single learned weight profile shared by all atoms, still applies one combination throughout the molecule. It cannot weight a heteroatom toward its immediate environment while weighting an aromatic carbon toward a more extended one.

Several established methods address parts of this. Jumping Knowledge networks aggregate across neighborhood ranges with node-dependent, essentially unconstrained selection over layers, and adaptive propagation gives nodes learned halting decisions that stop computation early12,14^{12,14}. Residual and identity mappings make deep stacks trainable, and curvature-based rewiring modifies the graph itself to relieve bottlenecks13,15^{13,15}. Multi-scale and multi-modal molecular encoders pursue a related goal from a different direction. MMGIN combines a graph isomorphism network over the molecular graph with a parallel fingerprint channel, so that substructure information at fixed fingerprint radii complements learned graph features in multitask toxicity prediction16^{16}. MSIGR-PLA integrates multi-scale protein-ligand interaction features from graph convolution, cross-attention, and graph transformer mod-ules with global sequence- and structure-level representations for affinity prediction 17^{17}. Both enrich the molecular representation by fusing several fixed views or scales, with the fusion applied identically to every atom. PRISM addresses a narrower and complementary question by asking how much each retained depth in a single message-passing stack should contribute to a given atom's representation. The approaches are compatible, and a fingerprint channel or an interaction module could be paired with per-atom depth allocation. Together, these established methods leave open an intermediate design point in which a per-atom allocation is more expressive than a shared profile and more constrained than free per-layer weights, with behavior that can be characterized in closed form.

PRISM (Per-atom Routing over Intermediate States of Message Passing) occupies that point. Just as an optical prism separates light into its components, the method separates a molecule's message-passing computation into retained propagation scales and recombines them atom by atom. The core contribution is a layer-combination rule, scalar-parameterized routing over a representation bank, that sits on top of any message-passing operator. It is not a new operator, and it transfers to GCN, GIN, and GAT backbones (see Results). As outlined in Figure 1, each atom's encoded input features produce one bounded scalar, which positions a unimodal distribution over a bank of retained post-update states. Because a single coordinate moves the whole profile, neighboring layer weights stay coupled, and the scalar has a derivable, monotone effect on the atom's allocated depth, including in the boundary regions where clipping saturates the response. By default, the scalar is computed from the atom's input encoding rather than from an aggregated neighborhood, so the learned allocation is conditioned on atom type and local descriptors rather than on the surrounding environment, and the unimodal family excludes arbitrary layer profiles. Three further components accompany the allocation in the full architecture: a fingerprint-resolved bank that pairs each message-passing depth with the corresponding circular-fingerprint radius, a parallel local branch regularized by an anti-collapse feature-energy hinge (with a bond-smoothness penalty on the routing scalar evaluated in ablation), and a readout concatenating mean and sum pooling, whose complementary roles in invariant graph prediction are established 18,19^{18,19}. These address distinct constraints, so any predictive gain is a property of the combination, and the ablations below separate their contributions.

This work asks three questions. Does atom-dependent allocation of propagation scale improve molecular property prediction in a matched comparison, and does it improve on the last-layer readout of a pre-trained network? Which components produce that improvement? And what does the design cost in computation? We answer the first with physicochemical regression on ESOL, FreeSolv, and Lipophilicity and classification on BACE, BBBP, and SIDER under scaffold partitions, against graph, geometric, message-passing, and fingerprint baselines with reported parameter counts, matched tuning budgets, and paired tests over the partitions, and by applying PRISM allocation to the pre-trained GIN of Hu et al. 20^{20} in place of its last-layer readout. We answer the second with component removals, node-dependent layer-weighting alternatives including gates and Jumping Knowledge, a transfer of the allocation module to three standard backbones, a within-molecule shuffling of the learned profiles, and a synthetic benchmark that rewards atom-dependent radii. We answer the third with parameter, FLOP, time, and memory measurements and with a depth sweep on Peptides-struct 21^{21}.

a Atom-wise routing

Figure

b Representation bank and allocation

local branch hilocalh_{i}^{local} (parallel bonded updates)

C Readout

mean and sum pooling

Figure 1: Atom-wise allocation of propagation scale in PRISM. (a) Routing: each atom's descriptors are encoded by categorical embedding tables into ziz_i, and a routing network maps ziz_i to a bounded scalar κi\kappa_i. Atoms of acetaminophen are colored by an illustrative κi\kappa_i from shallow (blue) to deep (orange), and atoms ii (hydroxyl oxygen) and jj (ring carbon) are followed through the figure. (b) Fingerprint-resolved bank and allocation: the bank holds LL states gi(l)g_i^{(l)}, each the representation after l+1l+1 message-passing updates plus an embedding of the atom's circular-fingerprint (ECFP) environment at radius l+1l+1. Filled and ringed atoms mark the radius-(l+1)(l+1) environments of ii and jj. The updates come from GINE layers trained from scratch or from a pre-trained GIN20^{20}. The lower panels show the clipped map from κi\kappa_i to the center μi\mu_i, the Gaussian layer weights pi,lp_{i,l} of i^\hat{i} and jj, and the weights of every atom of the molecule. (c) Readout: the weighted mixture h^i\hat{h}_i is concatenated with the local-branch representation, normalized, pooled by mean and sum over atoms, and passed to the prediction head. The κi\kappa_i values and profiles are illustrative.