Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Oct 29.
Published in final edited form as: J Chem Theory Comput. 2025 Oct 6;21(19):9710–9725. doi: 10.1021/acs.jctc.5c01193

End-to-End Modeling of Reaction Field Energy Using Data-Driven Geometric Graph Neural Networks

Yongxian Wu 1, Qiang Zhu 1, Ray Luo 1
PMCID: PMC12561908  NIHMSID: NIHMS2118101  PMID: 41048018

Abstract

Electrostatic interactions are fundamental to the structure, dynamics, and function of biomolecules, with broad applications in protein–ligand binding, enzymatic catalysis, and nucleic acid regulation. The Poisson–Boltzmann (PB) equation provides a physically grounded framework for modeling these interactions. However, solving the PB equation for large and complex biomolecular systems remains computationally expensive as traditional numerical solvers scale poorly with system size. While the Generalized Born (GB) model offers a more computationally efficient approximation, it does so at the cost of reduced accuracy relative to full PB solutions. To overcome these limitations, we propose PBGNN, a novel end-to-end framework that uses data-driven geometric graph neural networks to directly approximate PB electrostatic energies without relying on the GB approximation. PBGNN incorporates sinusoidal embeddings of atomic charges and a message-passing architecture to efficiently capture long-range interactions in large biomolecules. To address training instability caused by high variance in atomic electrostatic potentials, we introduce a charge-weighted mean squared error (CMSE) optimization objective that improves convergence. We benchmark PBGNN on the AMBER PBSA suite and PBSMALL, a new dataset designed for rapid evaluation of small-molecule electrostatics in drug discovery contexts. The results demonstrate that PBGNN consistently achieves high accuracy in predicting the PB energy with linear computational complexity. Furthermore, it provides reliable and precise PB free energy predictions for both large biomolecular complexes and small-molecule datasets, showcasing its strong generalizability, scalability, and potential utility in drug discovery tasks requiring accurate electrostatic modeling of small molecules. Comprehensive ablation studies further reveal the impact of architectural components, such as geometric representation, objective design, and cutoff strategy, informing future research directions. Finally, we release PBGNN as an open-source, self-contained codebase, along with preprocessed datasets and a complete training and evaluation pipeline, to support scalable and accurate electrostatic analysis that facilitates future research in associated areas.

Graphical Abstract

graphic file with name nihms-2118101-f0001.jpg

1. INTRODUCTION

Electrostatic interactions are fundamental to understanding the structure, dynamics, and function of molecules across a wide range of scientific disciplines, including but not limited to computational biochemistry and biophysics. These interactions are critical not only for the stability and formation of biomolecular structures but also for regulating essential biological processes such as protein–ligand binding,1,2 enzyme catalysis,3–5 and DNA transcription.6–8 A key tool for modeling these interactions is the Poisson–Boltzmann (PB) equation, which describes the electrostatic potential in and around charged biomolecules immersed in an ionic solution.9,10 The accurate and efficient solution of the PB equation is vital for elucidating the underlying electrostatic mechanisms that govern biomolecular behavior. For instance, in drug discovery, precise electrostatic calculations enable the reliable prediction of binding affinity and specificity, which in turn impacts the efficacy and safety of therapeutic candidates,11,12 although PB-based methods are known to exhibit accuracy degradation in the high-accuracy regime.13–15

However, solving the PB equation for large and complex biomolecular systems is computationally demanding due to the intricate geometries involved and the need to model the mobile ionic environment. Traditional numerical methods, including finite difference16–18 and finite element methods,19,20 although accurate, suffer from poor scalability.21–25 Among these, the finite difference method is commonly employed due to its relative simplicity and has been implemented in widely used solvers such as AMBER PBSA,12,26–29 Delphi,30,31 APBS,10,32 MIBPB,33,34 and CHARMM PBEQ.35 While effective for small systems, these solvers become a computational bottleneck when applied to large biomolecular complexes or high-throughput tasks such as molecular dynamics simulations or virtual screening.36 Thus, developing faster, yet still accurate alternatives to classical PB solvers is essential for advancing scalable and interactive modeling of biomolecular electrostatics.10 To address these limitations, several methods have been proposed. Among them, the Generalized Born (GB) model21–24 offers a more computationally efficient approximation to long-range electrostatic interactions by modeling the solvation free energy as a superposition of effective spherical cavities. While the GB model improves computational efficiency and scalability, it sacrifices some accuracy compared to full PB solutions.

Recent advances in machine learning, particularly neural networks, offer new opportunities for data-driven modeling in biomolecular systems. These models leverage large datasets to learn complex spatial relationships, achieving notable success across chemistry and physics applications.37–46 Additionally, with the growing availability of high-performance hardware such as Graphics Processing Units (GPUs) and Tensor Processing Units (TPUs), neural network-based PB energy prediction models have become increasingly feasible, owing to the fast inference speeds of neural networks on such accelerators. For instance, PBML25 learns a correction model for the GB energy by modeling the residual between PB and GB predictions. While effective, this approach inherits the limitations of the GB model, as it relies on it as a backbone.

In this work, we present PBGNN, a novel, fully end-to-end framework that directly approximates PB electrostatic energies without relying on the GB model. PBGNN is motivated by recent advances in data-driven geometric deep learning and graph neural networks (GNNs). It constructs invariant geometric graphs that preserve fundamental physical symmetries, including invariance to translation, rotation, reflection, and discretization, thereby offering a robust representation of biomolecular systems. To enhance learning, we incorporate sinusoidal feature embeddings for scalar inputs and adopt a message-passing architecture to efficiently capture long-range interactions in large biomolecules. Furthermore, we introduce a charge-conditioned regression objective, termed charge-weighted mean squared error (CMSE), which mitigates optimization challenges arising from high variance in atomic electrostatic potentials, thereby improving training stability and convergence. Given the critical role of small molecules in drug discovery, accurate modeling of their electrostatic properties is essential for tasks such as ligand docking, lead optimization, and virtual screening. To facilitate evaluation in this regime, we introduce a new dataset, PBSMALL. PBSMALL is designed to enable the rapid prototyping and benchmarking of machine learning models for PB energy predictions and to support broader research within the community in this area.

We evaluated PBGNN on a diverse set of unseen biomolecules, including systems from the AMBER PBSA suite and PBSMALL. The results demonstrate that PBGNN consistently outperforms the GB model in PB energy prediction while maintaining robustness across variations in the molecular structure and grid resolution. Notably, PBGNN exhibits favorable scalability, achieving linear computational complexity in the PB energy prediction compared to the quadratic complexity of the GB model on CPUs. This enables more efficient electrostatic energy analysis for large-scale biomolecular systems. We further conducted comprehensive ablation studies to assess the individual contributions of architectural components, including geometric representation, loss function, and cutoff strategy, to the overall performance. These investigations offer insights into the key challenges and design considerations associated with modeling PB energy via an end-to-end approach, which informs future research directions. Finally, we have made our method available as an open-source, self-contained codebase, which includes both preprocessed datasets along with the complete training and evaluation pipeline. This release provides the research community with a scalable and accurate solution for the large-scale electrostatic analysis of biomolecular systems and facilitates future research in this area.

2. METHOD

In this section, we first briefly review the essential background knowledge of PB free energy calculations and then elaborate on the proposed PBGNN method. An overview of our proposed PBGNN is shown in Figure 1.

Figure 1.

Figure 1.

Overview of the PBGNN framework for predicting electrostatic solvation free energy. (a) Input features extracted from PQR files include atom positions ri, and atom charges qi. (b) The molecular graph is constructed using a cutoff-based approximate nearest neighbor search to form an adjacency matrix, followed by sinusoidal embedding to produce atom-wise features H. These features, along with the graph structure and spatial distances, are passed through a message-passing graph neural network (PBGNN) to predict atomic potential contributions yˆi. (c) The predicted electrostatic solvation free energy ΔGˆ is computed as a weighted sum of per-atom potentials by using the atomic charges.

2.1. PB Electrostatic Solvation Free Energy.

To analyze electrostatic potentials in biomolecular systems, the PB model is commonly employed. The PB model for the electrostatic potential of biomolecular systems is defined over the interior solute domain, Ωint, and the exterior solvent domain, Ωext, where dissolved ions are approximated by the Boltzmann distribution. In the interior solute domain Ωint, fixed charges qi∣i=1:Na are located at their corresponding atomic centers ri∣i=1:Na, where Na is the number of atoms. These two domains are separated by a dielectric interface Γ, with the solvent-excluded surface or molecular surface being the most commonly used interface.47 Figure 2a illustrates the PB model. Based on this, the corresponding electrostatic potential described by the PB model16 is formulated as

∇⋅(ϵ(r)∇ϕ(r))=−ρ(r)−λ(r)∑iniqiexp−qiϕ(r)/kT (1)

where ϕ(r) represents the electrostatic potential at a given field position r,ϵ(r) is the spatially varying dielectric constant, and ρ(r) is the charge density. The second term on the right side represents the mobile ion charge density in the solvent, where λ(r) is the masking function for the Stern layer, ni is the number density of ion type i,qi is the charge of ion type i,k is the Boltzmann constant, and T is the temperature. The dielectric constant ϵ(r) is defined as

ϵ(r)=ϵ1,r∈Ωint,ϵ2,r∈Ωext, (2)

Figure 2.

Figure 2.

Illustration of molecular features and sinusoidal encoding. (a) Schematic representation of the PB model. The solute domain Ωint and solvent domain Ωext are separated by the solvent-excluded surface Γ. Atoms are depicted as spheres with “+” and “−” symbols indicating partial charges, and the probe sphere represents the solvent-accessible boundary. (b) Visualization of sinusoidal positional encoding applied to the atom charge feature q(i), illustrating how different charge values are mapped across the embedding dimensions.

In many cases, particularly when the electrostatic potential is small relative to thermal energy (i.e., qiϕ(r)/kT≪1), the nonlinear PB equation can be approximated by its linearized form.27,48,49 This leads to the following expression:

∇⋅(ϵ(r)∇ϕ(r))−λ(r)∑iniqi2ϕ(r)/kT=−ρ(r) (3)

Consequently, many partial differential equation (PDE) solving techniques, such as the finite difference method (FDM)50–53 and preconditioned conjugate gradient methods,10 have been employed to calculate the electrostatic potential value ϕ(r). To this end, the PB electrostatic solvation free energy ΔG is calculated as

ΔG=12∑i=1Naqiϕrxnri (4)

where ϕrxnri represents the reaction field potential, which can be computed directly via a singularity-free form of eq 1.29 Efficiently finding numerical solutions to the PB equation for biomolecules is challenging due to the requirements of solving the PDE. To address this, several methods, such as the GB model,54 have been proposed to improve computational efficiency by providing approximations to the PB model. While previous works have significantly advanced this area,16–18,21–24 the computationally intensive nature of accurately solving the PB equation remains a major limitation, particularly when scaling up to large biomolecules containing tens of thousands to millions of atoms.

2.2. PBGNN: End-to-End PB Energy Prediction Model Using Data-Driven Invariant Geometric Graph Neural Network.

A molecule ℳ consisting of Na atoms in Euclidean space is represented as ℳ=a1,…,aNa, where each atom ai is defined as a tuple ai=qi,ri, with qi denoting the atomic charge and ri representing the spatial position of the atom. Our objective is to develop an end-to-end, data-driven machine learning model f, based on a neural network architecture, that predicts the PB electrostatic solvation free energy, denoted as ΔGˆ, from the molecular structure ℳ. Designing such a model poses significant challenges that must be addressed to ensure physical fidelity and computational feasibility. Specifically, the model must: (1) efficiently capture long-range electrostatic interactions, which are an essential requirement dictated by the PB framework; (2) respect fundamental physical symmetries, including invariance to translations, rotations, permutations, and discretization artifacts; and (3) scale effectively to large biomolecular systems without relying on the GB model.

To address these challenges, we propose PBGNN, an end-to-end, data-driven PB energy prediction model grounded in graph neural networks. The details of our proposed method are provided in subsequent sections.

2.2.1. Invariant Geometric Graph for Biomolecules.

To account for long-range electrostatic interactions among atoms in a biomolecule, the PB model explicitly formulates the problem as a partial differential equation. In contrast, we propose representing the geometry and topology of a molecule using a graph-based approach in PBGNN. However, it is well established that GNNs struggle to preserve essential physical symmetries, such as invariance to translations, rotations, and grid discretization, which are critical for accurately modeling PB electrostatic solvation free energy.55

To address this challenge, we propose an invariant geometric graph representation to more effectively capture the geometry and topology of biomolecules in modeling the PB electrostatic solvation free energy. An undirected geometric graph representation of a biomolecule is formally defined as

𝒢→:=(A,H,R→) (5)

where A∈[0,1]Na×Na denotes the adjacency matrix that encodes the connectivity among all Na atoms in a biomolecule ℳ,H∈RNa×Ch represents the atom feature matrix, with each row corresponding to a Ch-dimensional feature vector describing atomic properties learned by neural networks, and R→ denotes the matrix containing the spatial positions of all atoms. An illustration of the invariant geometric graph is presented in Figure 1b. The i-th row of H and R→, denoted as hi∈R𝒞h and ri∈R3, represent the feature vector and the spatial position of atom ri, respectively. Geometric graphs have been shown to preserve invariance under node permutations, orthogonal transformations, and translations.56 Therefore, the geometric graph representation 𝒢→ of a molecule ℳ remains invariant under molecular translations, rotations, permutations, and discretization artifacts.

To model long-range electrostatic interactions, we consider the geometry and topology of the biomolecules. Specifically, for each atom ai, an interaction with atom aj is defined if and only if the Euclidean distance between them is less than a predefined cutoff threshold K Å, referred to as the cutoff distance. This interaction can be formally expressed as

dij=ri−rj,Aij=1dij<K, (6)

where dij denotes the Euclidean distance between atoms ai and aj, and 1[⋅] is the indicator function that returns 1 if the condition is satisfied and 0 otherwise. It is important to note that this computation is performed over all possible atom pairs in the molecular system ℳ to construct the adjacency matrix A, resulting in Na2 pairwise combinations. We discuss strategies for computing this formulation efficiently in subsequent sections.

For each node in the graph, PBGNN utilizes the atomic charge qi∣i=1:Na as the input feature. We adopt a sinusoidal feature embedding strategy to encode the scalar input, rather than directly using the scalar charge value as the node feature. Inspired by the neural tangent kernel literature,57 incorporating features across multiple frequencies facilitates more efficient convergence in neural networks. Specifically, PBGNN encodes each atomic charge into a Ch-dimensional vector, thereby enabling the neural network to better capture the underlying semantics of the scalar quantity. Figure 2b illustrates the core idea of this sinusoidal embedding approach using 32-dimensional vectors: it allows the PBGNN to distinguish between positive and negative scalar values through the flipped pattern observed in the first 16 dimensions and to interpret quantitative differences via variations in frequency components. In detail, sinusoidal feature embedding can be formulated as an embedding function that maps a scalar input (i.e., the atomic charge qi) to a Ch-dimensional vector. This process is defined as follows:

hij:=sinωj⋅qi,jmod2=0cosωj⋅qi,jmod2=1,ωj=exp−iCh−1logθ (7)

where hi∈RCh denotes the embedding vector of the atomic charge qi corresponding to the i-th row of the atom feature matrix H in the geometric graph representation 𝒢→. Each dimension j encodes the value of qi at a specific frequency ωj. The hyperparameter θ regulates the range of frequencies used in the embedding, thereby influencing the representational capacity of the resulting vector.

2.2.2. Message Passing for Capturing Long-Range Interactions in PBGNN.

2.2.2.1. Overview of Message Passing for Long-Range Interactions.

Based on the defined adjacency matrix A and the atom feature matrix H in the geometric graph 𝒢→, it is essential to guide the neural network in learning long-range charge interaction patterns during optimization. Inspired by the message-passing algorithm58 in graph neural networks, we employ a graph message-passing framework to model charge interactions within the PB context. As illustrated in Figure 1b, the graph message-passing blocks are designed to iteratively update the atomic representations of H based on the molecular geometry encoded by A. This update process can be formally expressed as

hi′=∑j=1NaAij∘σfri−rj∘Whhj (8)

where hi′ is the updated feature embedding, ° denotes element-wise multiplication, and Wh∈RCh×Ch is a parametrized weight matrix that transforms the interaction message. The function σf is a parametrized filter that modulates the strength of message passing based on the interatomic distance. The detailed formulation of σf is provided in the subsequent paragraph.

2.2.2.2. Parameterized Filter for Interaction Strength Control.

From eq 8, it is evident that the adjacency matrix A imposes a hard cutoff to define the atomic neighbors. Beyond this structural constraint, the parametrized filter σf further modulates interaction behaviors in a data-driven manner. Given the wide range of biomolecular sizes, it is crucial for σf to effectively capture interatomic distances across different molecular scales. Inspired by continuous convolutional filters,59 σf is designed to incorporate Nk radial basis function (RBF) values φi∣i=1:Nk as intermediate features:

φk(‖ri−rj‖)=exp(‖dij−ck‖2) (9)

where the k-th radial basis function φk is centered at ck. The centers ck are uniformly distributed from 0 to K Å at intervals of 0.1 Å, ensuring that the filters effectively cover the full range of interatomic distances observed in the dataset. Consequently, σf outputs the corresponding message-passing strength based on the encoded radial basis features:

v=Wfφ1,…,φNkT (10)
σf‖ri−rj‖=expv1∑k=1Nkexpvk,…,exp(vNk)∑k=1Nkexpvk (11)

where Wf∈RCh×Nk is a parametrized matrix that projects the radial features to the corresponding message-passing strengths v∈RNk, and eq 11 normalizes the message-passing strengths to values between 0 and 1.

2.2.2.3. Geometric Graph Representation Update.

Finally, following eq 8, the atomic representations in the geometric graph are updated as

H←H+h1′⋮hNa′ (12)

Here, [⋮] denotes the vertical (rowwise) concatenation operator.

The graph message passing procedure is iteratively applied to progressively capture long-range atomic interactions. In our experiments, performing five iterations of this procedure yields promising results in approximating the PB model.

2.2.3. Stabilize Atomic Reaction Field Potential Optimization Process.

After modeling atomic interactions through multiple iterations of the graph message-passing procedure in eq 8, the final atomic features H are utilized to optimize the prediction of atomic reaction field potentials:

yˆ=HWoT (13)

where Wo∈R1×Ch is a parameter matrix that projects the atomic feature vector h in Ch-dimensional space into the corresponding atomic potential, denoted as yˆ=yˆi∣i=1:Na. A straightforward optimization objective is to minimize the discrepancy between the predicted potential yˆi∣i=1:Na and the ground truth potential ϕrxnri∣i=1:Na using the mean squared error (MSE) loss:

ℒMSE=1Na∑i=1Nayˆi−ϕrxnri2 (14)

However, in practice, this objective function fails to converge. This is attributed to the large variance in reaction field potential ϕrxn(r), which induces biased gradient estimates and leads to convergence failure during stochastic optimization. To address this issue, we propose a charge-conditioned regression objective, referred to as the Charge-weighted Mean Squared Error (CMSE), which demonstrates improved convergence behavior and effectiveness in optimizing the PBGNN:

ℒCMSE=1Na∑i=1Naqiyˆi−ϕrxnri2 (15)

where each term is weighted by the absolute value of the corresponding atomic charge. This design is motivated by the observation that atomic electrostatic potentials are strongly correlated with the magnitudes of the atomic charges. In the CMSE formulation, the gradient of ℒCMSE with respect to the parameters Θ=Wb,Wf,Wo of PBGNN is derived as follows:

∂ℒCMSE∂Θ=∂ℒCMSE∂yˆi×∂yˆi∂Θ (16)
=1Na×ddyˆi[qiyˆi−ϕrxnri2]×∂yˆi∂Θ (17)
=1Na×2qiyˆi−ϕrxnri×∂yˆi∂Θ (18)
=qi⏟firstterm2Nayˆi−ϕrxnri×∂yˆi∂Θ⏟secondterm, (19)

where the second term corresponds to the gradient of the MSE objective, while the CMSE objective introduces an additional weighting factor (the first term) based on the absolute atomic charge. This formulation implies that atoms with larger absolute charges qi contribute more significantly to the overall gradient, thereby aligning with the intended emphasis on high-charge atoms during training. In contrast, the standard MSE objective treats all atoms uniformly, regardless of the substantial variance in their electrostatic potentials, which often leads to unstable optimization. In our experiments, the proposed CMSE objective consistently enabled a more stable training process and demonstrated robust convergence.

Algorithm 1. Training Procedure of PBGNN for Approximating the PB Model.

Let 𝒟 be the training dataset, consisting of L molecules {(ℳ(1),ϕrxn(1)(r)),…,(ℳ(L),ϕrxn(L)(r))}.

Let Θ={Wh,Wf,Wo} be the set of trainable parameters of PBGNN.

graphic file with name nihms-2118101-t0012.jpg

Upon completion of training, the PB electrostatic solvation free energy predicted by PBGNN is computed as

ΔGˆ=12∑i=1Naqiyˆi (20)

where qi denotes the atomic charge and yˆi is the predicted atomic reaction field potential at atom i. For clarity, a detailed framework for optimizing the parameter set of PBGNN is provided in Algorithm 1.

2.3. Efficient Implementation for Large-Scale Biomolecular Systems.

As discussed above, a key computational challenge in PBGNN arises from constructing the adjacency matrix A for large-scale biomolecular systems. This process requires computing pairwise distances, as defined in eq 6, across all Na2 atom pairs to identify neighbors within a predefined cutoff distance K for each atom. For large systems such as biomolecules with over 10,000 atoms, this becomes computationally intractable.

To accelerate neighbor list construction, an efficient approach is to leverage GPU-based computation. However, the limited memory capacity of GPUs significantly hinders the scalability of PBGNN for both training and inference on large-scale systems. In practice, out-of-memory (OOM) errors frequently occur when constructing neighbor lists for biomolecules containing more than 5000 atoms, particularly when the cutoff distance K exceeds 10 Å. To address this bottleneck, we adopt an approximate nearest neighbor (ANN) method, inspired by the algorithm proposed by Maneewongvatana and Mount60 and Malkov and Yashunin,61 which offers a more efficient alternative to the standard GPU-based exact nearest neighbor search. With ANN-based neighbor list construction, PBGNN can scale effectively to biomolecular systems with over 10,000 atoms, as demonstrated in our experiments.

In addition to efficient neighbor search, batchwise stochastic gradient optimization is essential for stable and scalable neural network training, as it reduces the gradient variance. However, packing a batch of geometric graphs 𝒢→ corresponding to biomolecules poses a challenge due to variable atom counts and neighbor list sizes. A common approach is to pad each graph to match the largest one in the batch, but this leads to excessive memory overhead, often exceeding GPU limits. To overcome this, we implement a memory-efficient batch representation that avoids padding. Instead, we used an index vector to identify individual biomolecules within the concatenated data structures. This strategy significantly improves memory efficiency and enables parallel training across biomolecular systems of varying sizes, thereby enhancing the scalability of the PBGNN.

3. RESULTS AND DISCUSSIONS

3.1. Experimental Setup.

3.1.1. Dataset Curation.

To assess the performance of the proposed PBGNN in predicting PB free energy, we curated biomolecules from diverse systems included in the AMBER PBSA benchmark suite.62 This benchmark spans a wide range of biomolecular structures, including proteins, nucleic acids, and protein complexes. Specifically, the PBSA dataset comprises 570 proteins and 353 nucleic acid structures, selected for their distinct functional characteristics and greater structural rigidity relative to proteins. In addition, it includes 299 protein complex structures, which are substantially larger than individual proteins, to evaluate the model’s scalability. These datasets were selected to encompass a range of molecular scales, functional characteristics, and structural flexibilities distinct from typical proteins. The inclusion of systems varying in size, from small proteins comprising 268 atoms to large complexes containing up to 1,42,324 atoms, offers a stringent evaluation of PBGNN’s scalability and robustness across structurally heterogeneous biomolecular environments.

To further evaluate the generalization capability of PBGNN across different molecular scales, we additionally compiled a dataset of relatively small molecules (PBSMALL), consisting of 812 entries, to examine the model’s performance in predicting PB free energy in this regime. The PBSMALL dataset spans molecules ranging from 3 to 62 atoms, representing a regime where quantum mechanical effects and fine-grained charge interactions are particularly pronounced. This dataset was curated to reflect the critical role of small molecules in drug design, where accurate electrostatic modeling is essential for tasks such as ligand docking, lead optimization, and virtual screening. Details of both benchmarks are provided in the Supporting Information (Section S1).

Regarding the energy calculations, the PB energy for each molecule was computed by using the numerical solver provided in the AMBER/PBSA program, configured with the default atomic cavity radii specified in the topology files and a solvent probe radius of 1.4 Å. A uniform grid spacing of 0.35 Å was applied across all molecules, with all other simulation parameters aligned with those used in the AMBER 23 PBSA module.63,64 The GB energy was calculated using the solver in the PMEMD program,62–64 with the PBRadii parameter set to mbondi. Three versions of the igb parameter (1, 2, and 5) were evaluated.22,65–67 These specific igb values were chosen because they are compatible with the mbondi radii set, which allows atomic radii smaller than 1 Å. Since the energy calculation is influenced by PBRadii, and the PBGNN model is trained using the mbondi radii, evaluating GB models under the same radii configuration ensures consistency and enables a fair comparison across methods. The detailed configurations for both PB and GB calculations are provided in Section S2.

We adopted an 80/20 split for training and test sets in both datasets, ensuring that no test-set biomolecules were included in the training phase. All reported results are evaluated on the held-out test set. The implementation details, including hyperparameter configurations and training procedures, are summarized in Table 1 and Section S4.

Table 1.

Detailed Training Setup of PBGNN

hyperparameter value
optimizer Adam
learning rate γ 0.0005
batch size b 4
cutoff threshold K 15 (PBSA), 30 (PBSMALL)
maximum training iterations T 32,000
loss function ℒCMSE
atom feature hidden dimension Ch 128
number of radial basis functions Nk 128
frequencies used in the embedding θ 10,000
message passing iteration number Tmsg 5

3.1.2. Evaluation Metrics.

To quantify the accuracy of surface modeling, we employed three evaluation metrics: the coefficient of determination (R2), the mean absolute error (MAE), and the mean absolute percentage error (MAPE). Specifically, R2 measures the proportion of variance in the ground truth PB electrostatic solvation free energy ΔG that is explained by the predicted values ΔGˆ:

R2=1−∑i=1n(ΔGi−ΔGˆi)2∑i=1nΔGi−ΔG‾2 (21)

where n is the number of molecules evaluated and ΔG‾ is the mean of the ground truth values. The MAE quantifies the average absolute deviation between the predicted and ground truth PB free energy values:

MAE=1n∑i=1n|ΔGˆi−ΔGi| (22)

The MAPE measures the average relative error, expressed as a percentage, between the predicted and ground truth values:

MAPE=100×1n∑i=1nΔGˆi−ΔGiΔGi (23)

A detailed description of each metric is provided in the Supporting Information (Section S1.3).

3.2. Accuracy Analysis of PBGNN in Predicting PB Free Energy.

In this experiment, we evaluated the performance of PBGNN in predicting PB free energy across two benchmark datasets: AMBER PBSA and PBSMALL. Our evaluation focused on two main aspects: (1) whether PBGNN, based on the geometric graph architecture, achieves high predictive accuracy compared to the original PB solver; and (2) how its performance compares to that of a faster, approximate GB model. We employed three standard regression metrics to quantify prediction accuracy: the R2, MAE, and MAPE. These metrics collectively assess both the absolute and relative accuracy of the predicted PB free energies, providing a comprehensive evaluation of the model’s performance.

For completeness, we also clarify the relationship between PBGNN and the recently proposed PBML model.25 Unlike PBGNN, which provides an end-to-end prediction of PB free energies directly from molecular structures, PBML is formulated as a correction model that learns the residual between PB and GB energies. As a result, PBML requires GB energies as input, and its inference cost necessarily includes both the GB calculation and the PBML correction step. This design makes PBML fundamentally different from PBGNN, and prevents a one-to-one comparison in terms of accuracy and runtime within our current experimental setting. For this reason, we did not include PBML in our experimental evaluation. We highlight this distinction to help readers better understand the methodological positioning of PBGNN relative to existing ML-based approaches.

3.2.1. PBGNN Accurately Predicts PB Free Energy across Biomolecules of Various Sizes.

We first conducted experiments to evaluate the performance of PBGNN in predicting PB free energy using the AMBER PBSA benchmark. Specifically, we compared the predicted energies from PBGNN with those obtained using a traditional numerical PB solver across three categories of biomolecules. The results are presented in Figure 3a. As shown in the figure, PBGNN demonstrates strong agreement with the numerical PB solver for the energy prediction task. In particular, the regression analysis yields a slope of 0.98 and an R2 of approximately 0.995, indicating a high predictive accuracy. This conclusion is further supported by the similarity in marginal distributions between the predicted energy values and the ground truth values from the numerical solver across the three biomolecular categories.

Figure 3.

Figure 3.

Scatter plots illustrate the predicted PB free energies (kcal/mol) from PBGNN versus the ground truth values for both the AMBER PBSA benchmark and the curated PBSMALL dataset. (a) Accuracy on the AMBER PBSA benchmark: This scatter plot displays the correlation between predicted and reference energy values across three molecular categories: nucleic acids (purple), proteins (red), and protein complexes (green). The linear regression fit demonstrates strong agreement with an overall slope of 0.98 and an R2 of 0.995. (b) Accuracy on the PBSMALL dataset: This plot shows the relationship between predicted and true energy values, highlighting both consistency and variability in the predictions. The linear fit yields a slope of 0.94 and an R2 of 0.968, indicating robust performance on this diverse, curated dataset.

A detailed accuracy analysis was conducted for nucleic acid, protein, and protein complex systems on the AMBER PBSA benchmark, as presented in Figure 4. These three categories span a wide range of molecular sizes, from small nucleic acids (with a minimum of 268 atoms) to large protein complexes (up to 1,40,000 atoms), thereby providing a comprehensive spectrum of molecular geometries and scales to evaluate the robustness of PBGNN. The results indicate that PBGNN consistently demonstrates strong predictive performance across diverse biomolecular sizes and energy ranges. In particular, PBGNN achieves accurate PB free energy predictions on unseen molecules with R2 values exceeding 0.98 across all three molecular categories. However, a slight performance degradation is observed in larger systems. For instance, the slope of the regression line for protein complexes is 0.85, compared to 0.98 for nucleic acids and 0.94 for proteins. This decline is primarily attributed to the limited cutoff distance K used in PBGNN (K=15 for AMBER PBSA), which constrains the model’s ability to fully capture long-range atomic interactions in large biomolecular systems, thereby slightly reducing predictive accuracy. Moreover, PBGNN exhibits a strong generalization across varying energy scales. The three systems exhibit markedly different energy profiles, with proteins ranging from 0 to −5000 kcal/mol and nucleic acids extending from 0 to −60,000 kcal/mol. In summary, these experiments highlight the robustness and accuracy of PBGNN across a diverse range of biomolecular sizes and electrostatic energy scales.

Figure 4.

Figure 4.

A detailed accuracy analysis on the AMBER PBSA benchmark was conducted for each biomolecular system, including nucleic acids, proteins, and protein complexes. The regression analysis results, including the slope and R2, are annotated in each corresponding plot. All energy values are reported in kcal/mol.

As the PB free energy plays a critical role in drug discovery, particularly in estimating binding affinities where small ligands are key components, we further evaluated the accuracy of PBGNN on the PBSMALL benchmark. PBSMALL is specifically designed for small molecules, with all entries consisting of fewer than 65 atoms. The evaluation results are shown in Figure 3b. PBGNN demonstrates strong predictive performance even for small molecules, exhibiting a high correlation with PB energies computed using the numerical PB solver. Specifically, the regression analysis yields an R2 of 0.968 and a slope of 0.94, confirming the accuracy of PBGNN in predicting PB free energies for small-molecule systems.

3.2.2. PBGNN Achieves Improved Accuracy Compared to the GB Model.

The GB model is an efficient and widely used method designed to accelerate free energy calculations while maintaining reasonable accuracy, making it a strong baseline for comparison with PBGNN. To assess their relative performance, we conducted an accuracy evaluation between PBGNN and the GB model, considering three versions of the igb parameter (1, 2, and 5), in approximating PB free energies on both the AMBER PBSA and PBSMALL benchmark datasets. Accuracy was evaluated using the MAPE, as illustrated by the molecule-wise scatter plots in Figures 5 and 6. Summary statistics of the results are presented in Table 2.

Figure 5.

Figure 5.

Accuracy of PB free energy predictions by PBGNN and the GB model on the AMBER PBSA benchmark was evaluated using MAPE (%). Both the MAPE values and the atom count distributions are annotated along the respective axes.

Figure 6.

Figure 6.

Accuracy of PB free energy predictions by PBGNN and the GB model on the PBSMALL benchmark was evaluated using MAPE (%). Both the MAPE values and the atom count distributions are annotated along the respective axes.

Table 2.

Statistical Comparison of PB Free Energy Prediction Errors between the GB Model and PBGNN on the AMBER PBSA and PBSMALL Benchmarks, Measured by MAPEa

method Q1 (%) median (%) Q3 (%) μ(%) σ(%)
AMBER PBSA
GB (igb = 1) 1.94 3.18 5.65 4.19 3.21
GB (igb = 2) 2.35 3.40 5.17 3.97 2.32
GB (igb = 5) 2.09 3.54 4.66 3.57 1.98
PBGNN 1.10 2.59 5.17 3.82 3.71
PBSMALL
GB (igb = 1) 2.55 5.45 12.96 13.68 28.97
GB (igb = 2) 4.69 8.20 13.63 17.43 35.42
GB (igb = 5) 2.73 6.31 15.41 17.43 33.73
PBGNN 2.18 4.62 8.57 8.50 12.55
a

Reported metrics include the first quartile (Q1), median, third quartile (Q3), mean (μ), and standard deviation (σ).

On the AMBER PBSA benchmark, as shown in Figure 5, PBGNN achieved a lower median MAPE of 2.59%, compared to 3.18% for the GB model with igb = 1, 3.40% with igb = 2, and 3.54% with igb = 5, indicating improved consistency. Across the GB models from igb = 1 to igb = 5, we observed a steady improvement in performance, with the mean MAPE decreasing from 4.19% to 3.57%. The mean MAPE of PBGNN (3.82%) was also slightly lower than that of the GB model with igb = 1 (4.19%) and igb = 2 (3.97%), while remaining comparable to the GB model with igb = 5 (3.57%). Notably, as shown in Table 2, PBGNN maintained competitive error dispersion, with a first quartile (Q1) value of 1.10% and a third quartile (Q3) value of 5.17%, compared to Q1 of 1.94% and Q3 of 5.65% for the GB model with igb = 1, although its standard deviation was slightly higher (3.71% vs 3.21%). In terms of mean and standard deviation of the MAPE, GB (igb = 5) achieved the lowest mean percentage error and exhibited reduced variability, reflecting progressive improvements across the GB series. Nevertheless, PBGNN attains comparable performance to GB (igb = 5), with a lower Q1 and median percentage error, despite a slightly higher mean and standard deviation. This discrepancy may be attributed to PBGNN’s increased sensitivity to molecular size, which presents an interesting direction for future investigation. In summary, these results collectively demonstrate a modest improvement in both the accuracy and variability of the PB energy approximation by PBGNN across diverse biomolecular systems.

Meanwhile, on the PBSMALL benchmark, which presents a more challenging setting due to the small molecular sizes, the GB model with igb = 1 performs best among the three GB variants. It achieves a lower mean MAPE of 13.68% and a median MAPE of 5.45%, compared to a mean of 17.43% and a median of 6.31% for igb = 5. PBGNN again outperformed the GB model with igb = 1. It achieved a median MAPE of 4.62% versus 5.45% for GB with igb = 1, and a significantly lower mean MAPE of 8.50% compared to 13.68% for GB with igb = 1 (Figure 6). Additionally, the standard deviation of PBGNN’s error was substantially reduced (12.55% vs 28.97%). Collectively, these results demonstrate the enhanced robustness and generalization capability of PBGNN in small-molecule systems.

Overall, the experimental results indicate that PBGNN achieves reliable and precise PB free energy predictions for both large biomolecular complexes and small-molecule datasets. Its robust performance, especially in terms of median and mean MAPE on PBSMALL, demonstrates the model’s strong generalizability and its potential utility in drug discovery tasks that require accurate small-molecule electrostatics modeling.

3.3. Efficiency Analysis of PBGNN Compared with Numerical Solvers.

The numerical PB solver provides highly accurate electrostatic energy estimates but suffers from substantial computational overhead, particularly for large molecular systems. The GB model was developed as a faster alternative to approximate the PB energies at reduced computational cost. Both PB and GB solvers support CPU and GPU implementations; however, it remains unclear how their runtime performance scales across different molecular sizes and hardware configurations. Furthermore, although PBGNN has demonstrated strong accuracy and a high correlation with the PB solver, its runtime efficiency relative to that of these traditional methods has not been systematically assessed.

To address these questions, we conducted a comprehensive runtime evaluation on the AMBER PBSA benchmark using both CPU and GPU platforms. We recorded the elapsed time required for electrostatic energy computations across all molecules in the benchmark dataset using seven solver configurations: PB-CPU, PB-GPU, GB-SANDER-CPU, GB-PMEMD-CPU, GB-PMEMD-GPU, PBGNN-CPU, and PBGNN. The PB solver corresponds to the implementation in the AMBER/PBSA software,27,28,62,63,68 while the GB solvers include both the AMBER/SANDER22,62,63,65–67 and the highly optimized PMEMD implementations.62,63,69,70 PBGNN is a neural network-based model designed for efficient execution on GPUs; however, to enable a comprehensive comparison, we also report its runtime under CPU-only execution (PBGNN-CPU). The number of atoms in the benchmark spans a wide range, from small molecules (<1000 atoms) to large biomolecular complexes (>15,000 atoms), enabling a thorough scalability analysis. For each molecule, we measured the elapsed time required to compute the electrostatic solvation energy. All CPU-based timing experiments were performed on a multi-socket machine featuring Intel(R) Xeon(R) Gold 6230 processors running at 2.10 GHz, comprising four sockets, each containing 20 physical cores. GPU-based experiments were conducted on a system equipped with an NVIDIA GeForce RTX 4090 GPU with 24 GB of memory.

As shown in Figure 7, PB-CPU exhibits the longest runtime across all molecule sizes, reaching up to 1 × 104 s for the largest systems. PB-GPU reduces this runtime by roughly one to two orders of magnitude but remains computationally intensive for large molecules. GB methods significantly reduce runtime, with GB-SANDER-CPU, GB-PMEMD-CPU, and GB-PMEMD-GPU typically completing in under 10 s. In contrast, PBGNN achieves sub-second inference times for almost all molecules in the dataset. The regression curves in Figure 7b further underscore the scalability advantage of PBGNN. While the runtime of GB-SANDER-CPU shows quadratic growth with respect to atom count, both PBGNN and GB-PMEMD-GPU maintain nearly constant runtime profiles, indicative of linear or sublinear scaling behavior. Notably, GB-PMEMD-GPU relies on manually optimized CUDA kernels,62,63,69,70 which require substantial development time and specialized expertise. In contrast, PBGNN achieves efficient inference without the need for platform-specific manual optimization, enabling a more accessible and flexible deployment for researchers without compromising runtime performance. For systems with more than 10,000 atoms, PBGNN demonstrates over 1,000 times speedup relative to PB-CPU and approximately 5 times speedup relative to GB-SANDER-CPU.

Figure 7.

Figure 7.

Runtime performance comparison across PB, GB, and PBGNN. (a) Scatter plot showing the elapsed time (in seconds) versus the number of atoms for different solvers across CPU and GPU platforms. Each point represents a molecule from the benchmark dataset. Marginal distributions of atom counts (top) and elapsed times (right) are shown for each method. (b) Smoothed regression curves of runtime versus atom counts for GB-SANDER-CPU, GB-PMEMD-GPU, and PBGNN. Shaded areas represent the 95% confidence interval. PBGNN demonstrates substantially lower runtime, especially for large molecules, without requiring manual CUDA kernel optimization owing to its efficient neural approximation.

To further quantify these gains, we computed the average speedup across three biomolecular categories, namely, nucleic acids, proteins, and protein complexes, relative to the PB-CPU baseline (Figure 8a). Notably, the inference performance of PBGNN-CPU is comparable to that of PB-GPU, underscoring the effectiveness of multithreaded CPU computation for neural network inference. On average, PBGNN achieves a speedup exceeding 104 times compared to PB-CPU across all categories. Additionally, Figure 8b shows that PBGNN outperforms GB-SANDER-CPU by an average factor of 4.74 times, with the largest improvements observed in protein complexes. We also observed that GB-PMEMD-GPU achieves substantial speedup on large protein complexes, whereas the acceleration on small nucleic acids is marginal. This discrepancy arises from the trade-off between data transfer time and GPU execution time. For small systems, the overhead associated with transferring data between the host (CPU) and the device (GPU) dominates the total runtime, effectively diminishing the benefits of parallel execution on the GPU. In contrast, for larger systems, the computational workload is sufficient to amortize the data transfer overhead, allowing the GPU’s parallelism to significantly accelerate the calculations. Notably, PBGNN exhibits a more consistent balance across different molecular sizes, maintaining a high efficiency without incurring significant data transfer overhead. These results underscore PBGNN’s capability to deliver real-time inference without compromising prediction accuracy.

Figure 8.

Figure 8.

Speedup comparison across different solvers and molecular categories. (a) Bar plot showing the speedup of PB-GPU, GB-SANDER-CPU, GB-PMEMD-CPU, GB-PMEMD-GPU, PBGNN-CPU, and PBGNN relative to PB-CPU across three biomolecular categories: nucleic acids, proteins, and protein complexes. PBGNN achieves a speedup of over 104 times relative to PB-CPU on average. (b) Zoomed-in comparison of speedup over the GB-SANDER-CPU baseline. The dashed line indicates the average speedup of PBGNN over GB-SANDER-CPU (Mean: 4.74×). PBGNN consistently outperforms both GB-SANDER-CPU and GB-PMEMD-GPU baselines across all categories, demonstrating its runtime efficiency.

In conclusion, our experiments demonstrate that PBGNN not only matches the numerical PB solver in accuracy but also delivers a dramatically faster runtime. Its superior scalability and low latency establish it as a promising tool for high-throughput and large-scale biomolecular modeling tasks.

3.4. Geometric Graph Representation Analysis of PBGNN.

PBGNN demonstrates a comparable ability to predict PB free energy to the numerical PB solver while offering a significantly more efficient approach to energy calculation tasks, particularly for large molecular systems. As a data-driven PB energy solver, a major advantage of PBGNN is its ability to substantially reduce reliance on domain-specific expertise for efficient PB energy computation. However, it relies on robust data-driven training and evaluation processes to achieve accurate predictions. Therefore, it is essential to investigate the key design properties of PBGNN to gain a deeper understanding of how the neural network performs the PB energy prediction.

3.4.1. Importance of Geometric Representations in the PB Free Energy Prediction.

The accurate modeling of electrostatic solvation free energy using PB theory inherently requires a consideration of complex atomic interactions governed by molecular geometry. To assess whether explicitly incorporating geometric information via graph-based neural networks improves prediction accuracy, we compared PBGNN, which leverages molecular geometry through a graph neural network, with a 3D convolutional neural network (ConvNet) baseline37 that does not use a graph structure. While the ConvNet captures spatial context through voxelized molecular grids, it lacks the inductive bias required to model atom-wise interactions critical for PB energy computation. The detailed architecture of the ConvNet employed in this experiment is provided in Section S3. Notably, PBGNN achieves superior predictive performance with a significantly smaller parameter count (0.5 M vs 2.0 M), highlighting its architectural efficiency. We evaluated both models on two datasets: the AMBER PBSA benchmark and the curated PBSMALL dataset. The performance was assessed using three standard regression metrics: R2, MAE, and MAPE. As shown in Table 3, PBGNN consistently outperforms ConvNet across all metrics and datasets. On the AMBER PBSA benchmark, PBGNN achieves an R2 of 0.995, substantially higher than ConvNet’s 0.931, while reducing the MAE from 481.947 to 151.54 kcal/mol and the MAPE from 10.268% to 3.822%. Similarly, on the PBSMALL dataset, PBGNN obtains an R2 of 0.968, outperforming ConvNet’s 0.915. The MAE is reduced from 1.204 to 0.475 kcal/mol, and the MAPE drops from 22.187% to 8.503%.

Table 3.

Performance Comparison of PB Free Energy Prediction with and without Geometric Representations, Evaluated Using R2, MAE (kcal/mol), and MAPE (%) Metricsa

method # parameters R2 (↑) MAE (↓) MAPE (↓)
AMBER PBSA
ConvNet 2.0M 0.931 481.947 10.268
PBGNN 0.5M 0.995 151.54 3.822
PBSMALL
ConvNet 2.0M 0.915 1.204 22.187
PBGNN 0.5M 0.968 0.475 8.503
a

Results are reported for two benchmark datasets, AMBER PBSA and PBSMALL. PBGNN, which encodes explicit geometric inputs, consistently achieves superior performance across all metrics and datasets compared to the non-geometry-based ConvNet baseline.

These results confirm that the incorporation of geometric graph representations significantly enhances the model performance in PB free energy prediction. Despite having 4 times fewer parameters, PBGNN achieves higher accuracy by more effectively modeling interatomic relationships relevant to the PB equation. This finding highlights the critical role of geometry-aware architectures in developing physically grounded and data-efficient neural predictors for biomolecular applications.

3.4.2. Effect of Optimization Objective on PB Free Energy Prediction.

The choice of training objective plays a critical role in determining the accuracy and generalization of neural predictors. While MSE is a widely used objective for regression tasks, it treats all prediction errors equally, regardless of their physical or structural context. In contrast, we propose the CMSE loss that incorporates domain-specific knowledge relevant to PB free energy modeling. This experiment aims to evaluate whether training with CMSE can improve predictive performance compared to that of the standard MSE.

We trained both PBGNN and ConvNet using MSE and CMSE on two benchmark datasets: AMBER PBSA and PBSMALL. Model performance was assessed using the R2, MAE, and MAPE. As summarized in Figure 9, models trained with CMSE consistently outperform their MSE-trained counterparts across all evaluation metrics. On the AMBER PBSA benchmark, CMSE improves R2 from 0.740 to 0.931 for ConvNet and from 0.878 to 0.995 for PBGNN. Correspondingly, MAE drops from 1253.364 to 481.947 kcal/mol (ConvNet) and from 964.613 to 151.540 kcal/mol (PBGNN), while MAPE is reduced from 34.565% to 10.268% (ConvNet) and from 29.500% to 3.822% (PBGNN). Similar trends are observed on the PBSMALL dataset, where CMSE increases R2 from 0.763 to 0.915 (ConvNet) and from 0.884 to 0.968 (PBGNN), while substantially reducing MAE and MAPE (MAE drops from 1.204 and 0.475 kcal/mol; MAPE drops from 22.187% and 8.503% for PBGNN, respectively).

Figure 9.

Figure 9.

Performance Comparison of PBGNN and ConvNet using different optimization objectives. Bar plots show the performance of models trained with MSE and the proposed CMSE on two benchmarks: AMBER PBSA (top row) and PBSMALL (bottom row). Evaluation metrics include R2, MAE (kcal/mol), and MAPE (%). Models trained with CMSE consistently outperform those trained with MSE across all evaluation metrics, indicating that CMSE improves the prediction accuracy.

These results confirm that the CMSE objective leads to significant improvements in predictive accuracy and robustness across both models and datasets. By incorporating structural and physical context into the loss formulation, CMSE guides the model to focus on energetically meaningful discrepancies, resulting in better alignment with ground truth PB free energies. Therefore, CMSE serves as a principled and effective training objective for electrostatic energy prediction tasks.

3.4.3. Effect of Cutoff Distance on Prediction Accuracy.

In geometric graph representations, the choice of cutoff distance, K determines the spatial range of interactions considered during message passing. In the context of PB free energy prediction, electrostatic interactions are inherently long-range, and a limited cutoff may hinder the model’s ability to accurately capture relevant dependencies accurately. This experiment aims to investigate the impact of varying the cutoff distance on the prediction performance of PBGNN. It is important to note that the cutoff distance cannot be increased arbitrarily due to constraints on GPU memory.

We trained PBGNN using different cutoff distances on two benchmark datasets: AMBER PBSA and PBSMALL. Changing the cutoff alters the number of neighboring atoms considered for each node during graph construction. We evaluated model performance using R2 and MAPE. For both datasets, we selected the largest cutoff distances feasible on a consumer-grade GPU (NVIDIA RTX A6000 GPU) with 48 GB memory, resulting in K=15 for the AMBER PBSA benchmark and K=30 for the PBSMALL benchmark.

As shown in Figure 10, increasing the cutoff distance consistently improves the model performance. On the AMBER PBSA dataset, MAPE decreases from approximately 16% at a cutoff of 4 Å to below 5% at 15 Å, while R2 increases from 0.80 to 0.99. A similar trend is observed for the PBSMALL dataset, where R2 increases from 0.85 to 0.96 and MAPE decreases from approximately 20% to 9% as the cutoff grows from 5 to 30 Å. These results demonstrate that incorporating longer-range atomic interactions is essential for accurate electrostatic energy modeling. The improvement in both MAPE and R2 with increasing cutoff distances highlights the importance of capturing long-range dependencies in PB-based energy estimation and suggests that careful tuning of this parameter can enhance the predictive capability of PBGNN without altering the model architecture.

Figure 10.

Figure 10.

Impact of cutoff distance on prediction accuracy for PBGNN across two benchmark datasets: AMBER PBSA and PBSMALL. The left column presents the R2, and the right column displays the MAPE (%) metric. As the cutoff distance increases, R2 increases and MAPE decreases for both datasets, indicating improved predictive performance with longer-range interactions.

4. CONCLUSION

This study presents PBGNN, a data-driven framework that approximates PB electrostatic solvation free energies with high accuracy and computational efficiency. Leveraging a geometric graph neural network architecture and a charge-weighted mean squared error loss function for atom-wise potential training, PBGNN is designed to capture long-range electrostatic interactions in PB energy prediction across a broad range of molecular systems, from small drug-like molecules to large biomolecular complexes.

Comprehensive evaluations on the AMBER PBSA benchmark and the curated PBSMALL dataset demonstrate that PBGNN achieves predictive accuracy comparable to the numerical PB solver, with R2 values exceeding 0.98 across all major biomolecular categories. It also outperforms widely used GB models in terms of median and mean MAPE, particularly on small-molecule systems, where accurate electrostatics is critical for drug discovery applications. Compared with 3D convolutional networks, PBGNN exhibits superior accuracy with a significantly smaller parameter count, underscoring the efficiency and expressiveness of its geometric graph-based design.

From a performance standpoint, PBGNN delivers substantial speedups compared to traditional solvers. It surpasses GB-SANDER-CPU by an average factor of 4.7 times and achieves up to 10,000 times speedup over PB-CPU, while maintaining near-linear scalability with respect to molecular size. Unlike GB-PMEMD-GPU, which requires manually optimized CUDA kernels, PBGNN achieves high inference efficiency without platform-specific engineering, enabling easy deployment across diverse computational environments.

Ablation studies further validate the importance of architectural choices, including geometric representation, optimization objectives, and the cutoff distance. Increasing the cutoff improves performance, although practical constraints imposed by GPU memory set an upper limit on feasible values. Future work may explore dynamic or adaptive graph construction techniques to more effectively capture long-range dependences in large systems.

One limitation of this work is that PBGNN was trained only on mbondi-based PB energies. This choice was made because the PB model adopts mbondi as the default setting. Accordingly, we trained PBGNN using PB energies calculated with mbondi and compared all methods (igb = 1, 2, and 5) under the same mbondi condition to ensure consistency. To further examine PBGNN’s zero-shot performance on unseen setups such as mbondi2 and mbondi3, we reported additional results in Section S5 of the Supporting Information. PBGNN demonstrated comparable performance even under these untrained radii settings. Looking forward, extending PBGNN to support additional radii sets or developing a unified model capable of handling multiple configurations represents a promising direction for future research.

Another limitation arises from the PB method itself. While the accuracy of PB/GB models is often benchmarked against experimental hydration free energies (HFEs),23 success in this regime does not necessarily guarantee equivalent accuracy for the electrostatic component of binding free energy. Although PB-based methods have been extensively validated and are widely applied in biomolecular binding studies, their performance in the high-accuracy regime requires careful interpretation. Prior studies have shown that even modest errors in hydration free energy predictions can translate into much larger uncertainties in estimating the electrostatic component of binding,13,15 motivating further refinement of PB solvers.14 Related work in explicit solvation has likewise demonstrated that widely used water models such as TIP3P and TIP4P can reproduce accurate hydration free energies still yield significantly larger difference in binding electrostatics.71–73 These observations underscore the importance of recognizing the inherent limitations of both continuum and explicit approaches when applying them to predict binding energetics at a fine resolution.

In summary, PBGNN offers an accurate, scalable, and efficient solution for PB energy prediction, bridging the gap between physical rigor and computational tractability. Its performance on both small- and large-scale systems highlights its potential for broad applicability in molecular modeling, including high-throughput virtual screening, drug design, and electrostatics-driven simulations. The open-source release of the code, datasets, and training pipeline will facilitate reproducibility and foster further research in the area of neural approximations for biomolecular electrostatics.

Supplementary Material

SI

ASSOCIATED CONTENT

Supporting Information

The Supporting Information is available free of charge at https://pubs.acs.org/doi/10.1021/acs.jctc.5c01193.

Benchmark dataset details, evaluation metrics, convolutional neural network architecture used as a baseline, and training configurations. To enable better reproducibility, code used to train and evaluate the models is available at: https://github.com/yxwu21/PBGNN, and the preprocessed data files for the AMBER/PBSA and PBSMALL datasets are available at: 10.5281/zenodo.15867553 (PDF)

ACKNOWLEDGMENTS

The authors gratefully acknowledge the research support from NIH/NIGMS (GM130367 to R.L.).

Footnotes

The authors declare no competing financial interest.

Complete contact information is available at: https://pubs.acs.org/10.1021/acs.jctc.5c01193

REFERENCES

  • (1).Sharp KA; Honig B Electrostatic interactions in macromolecules: theory and applications. Annu. Rev. Biophys. Biophys. Chem. 1990, 19, 301–332. [DOI] [PubMed] [Google Scholar]
  • (2).Onufriev AV; Alexov E Protonation and pK changes in protein–ligand binding. Q. Rev. Biophys. 2013, 46, 181–209. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (3).Warshel A; Russell ST Calculations of electrostatic interactions in biological systems and in solutions. Q. Rev. Biophys. 1984, 17, 283–422. [DOI] [PubMed] [Google Scholar]
  • (4).Page MI; Jencks WP Entropic contributions to rate accelerations in enzymic and intramolecular reactions and the chelate effect. Proc. Natl. Acad. Sci. U. S. A. 1971, 68, 1678–1683. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (5).Kraut DA; Carroll KS; Herschlag D Challenges in enzyme mechanism and energetics. Annu. Rev. Biochem. 2003, 72, 517–571. [DOI] [PubMed] [Google Scholar]
  • (6).Record MT Jr; Lohman TM; De Haseth P. Ion effects on ligand-nucleic acid interactions. J. Mol. Biol. 1976, 107, 145–158. [DOI] [PubMed] [Google Scholar]
  • (7).von Hippel PH; Bear DG; Morgan WD; McSwiggen JA Protein-nucleic acid interactions in transcription: a molecular analysis. Annu. Rev. Biochem. 1984, 53, 389–446. [DOI] [PubMed] [Google Scholar]
  • (8).Zakrzewska K; Madami A; Lavery R Poisson-Boltzmann calculations for nucleic acids and nucleic acids complexes. Chem. Phys. 1996, 204, 263–269. [Google Scholar]
  • (9).Fogolari F; Brigo A; Molinari H The Poisson–Boltzmann equation for biomolecular electrostatics: a tool for structural biology. J. Mol. Recognit. 2002, 15, 377–392. [DOI] [PubMed] [Google Scholar]
  • (10).Baker NA; Sept D; Joseph S; Holst MJ; McCammon JA Electrostatics of nanosystems: application to microtubules and the ribosome. Proc. Natl. Acad. Sci. U. S. A. 2001, 98, 10037–10041. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (11).Davis ME; McCammon JA Electrostatics in biomolecular structure and dynamics. Chem. Rev. 1990, 90, 509–521. [Google Scholar]
  • (12).Kollman PA; Massova I; Reyes C; Kuhn B; Huo S; Chong L; Lee M; Lee T; Duan Y; Wang W; et al. Calculating structures and free energies of complex molecules: combining molecular mechanics and continuum models. Acc. Chem. Res. 2000, 33, 889–897. [DOI] [PubMed] [Google Scholar]
  • (13).Merz KM Jr Limits of free energy computation for protein-ligand interactions. J. Chem. Theory Comput 2010, 6, 1769–1776. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (14).Fenley MO; Harris RC; Mackoy T; Boschitsch AH Features of CPB: AP oisson–B oltzmann solver that uses an adaptive cartesian grid. J. Comput. Chem. 2015, 36, 235–243. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (15).Faver JC; Benson ML; He X; Roberts BP; Wang B; Marshall MS; Kennedy MR; Sherrill CD; Merz KM Jr Formal estimation of errors in computed absolute interaction energies of protein-ligand complexes. J. Chem. Theory Comput. 2011, 7, 790–797. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (16).Nicholls A; Honig B A rapid finite difference algorithm, utilizing successive over-relaxation to solve the Poisson–Boltzmann equation. J. Comput. Chem. 1991, 12, 435–445. [Google Scholar]
  • (17).Bruccoleri RE; Novotny J; Davis ME; Sharp KA Finite difference Poisson-Boltzmann electrostatic calculations: Increased accuracy achieved by harmonic dielectric smoothing and charge antialiasing. J. Comput. Chem. 1997, 18, 268–276. [Google Scholar]
  • (18).Grant JA; Pickup BT; Nicholls A A smooth permittivity function for Poisson–Boltzmann solvation methods. J. Comput. Chem. 2001, 22, 608–640. [Google Scholar]
  • (19).Holst M; Mccammon JA; Yu Z; Zhou Y; Zhu Y Adaptive finite element modeling techniques for the Poisson-Boltzmann equation. Commun. Comput. Phys. 2012, 11, 179–214. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (20).Chen L; Holst MJ; Xu J The finite element approximation of the nonlinear Poisson–Boltzmann equation. SIAM J. Numer. Anal. 2007, 45, 2298–2320. [Google Scholar]
  • (21).Bashford D; Case DA Generalized born models of macromolecular solvation effects. Annu. Rev. Phys. Chem. 2000, 51, 129–152. [DOI] [PubMed] [Google Scholar]
  • (22).Tsui V; Case DA Theory and applications of the generalized Born solvation model in macromolecular simulations. Biopolymers: Original Research on Biomolecules 2000, 56, 275–291. [DOI] [PubMed] [Google Scholar]
  • (23).Onufriev AV; Case DA Generalized born implicit solvent models for biomolecules. Annu. Rev. Biophys. 2019, 48, 275–296. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (24).Lee MS; Salsbury FR Jr; Brooks CL III Novel generalized Born methods. J. Chem. Phys. 2002, 116, 10606–10614. [Google Scholar]
  • (25).Chen J; Xu Y; Yang X; Cang Z; Geng W; Wei G-W Poisson-Boltzmann-based machine learning model for electrostatic analysis. Biophys. J. 2024, 123, 2807–2814. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (26).Wang J; Cai Q; Xiang Y; Luo R Reducing grid dependence in finite-difference Poisson–Boltzmann calculations. J. Chem. Theory Comput. 2012, 8, 2741–2751. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (27).Wang J; Luo R Assessment of linear finite-difference Poisson–Boltzmann solvers. J. Comput. Chem. 2010, 31, 1689–1698. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (28).Cai Q; Hsieh M-J; Wang J; Luo R Performance of nonlinear finite-difference Poisson-Boltzmann solvers. J. Chem. Theory Comput. 2010, 6, 203–211. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (29).Cai Q; Wang J; Zhao H-K; Luo R On removal of charge singularity in Poisson–Boltzmann equation. J. Chem. Phys. 2009, 130, No. 145101. [DOI] [PubMed] [Google Scholar]
  • (30).Li L; Li C; Zhang Z; Alexov E On the dielectric “constant” of proteins: smooth dielectric function for macromolecular modeling and its implementation in DelPhi. J. Chem. Theory Comput. 2013, 9, 2126–2136. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (31).Li C; Jia Z; Chakravorty A; Pahari S; Peng Y; Basu S; Koirala M; Panday SK; Petukh M; Li L; Alexov E DelPhi suite: new developments and review of functionalities. J. Comput. Chem. 2019, 40, 2502–2508. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (32).Konecny R; Baker NA; McCammon JA iAPBS: a programming interface to the adaptive Poisson–Boltzmann solver. Comput. Sci. Discovery 2012, 5, No. 015005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (33).Chen D; Chen Z; Chen C; Geng W; Wei G-W MIBPB: a software package for electrostatic analysis. J. Comput. Chem. 2011, 32, 756–770. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (34).Zhou Y; Zhao S; Feig M; Wei G-W High order matched interface and boundary method for elliptic equations with discontinuous coefficients and singular sources. J. Comput. Phys. 2006, 213, 1–30. [Google Scholar]
  • (35).Jo S; Vargyas M; Vasko-Szedlar J; Roux B; Im W PBEQ-Solver for online visualization of electrostatic potential of biomolecules. Nucleic Acids Res. 2008, 36, W270–W275. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (36).Lu B; Zhou Y; Holst M; McCammon J Recent progress in numerical methods for the Poisson-Boltzmann equation in biophysical applications. Commun. Comput. Phys. 2008, 3, 973–1009. [Google Scholar]
  • (37).LeCun Y; Bengio Y; Hinton G Deep learning. Nature 2015, 521, 436–444. [DOI] [PubMed] [Google Scholar]
  • (38).Krizhevsky A; Sutskever I; Hinton GE Imagenet classification with deep convolutional neural networks Adv. Neural Inf. Process. Syst 2012; Vol. 25. [Google Scholar]
  • (39).Goodfellow I; Pouget-Abadie J; Mirza M; Xu B; Warde-Farley D; Ozair S; Courville A; Bengio Y Generative adversarial nets Adv. Neural Inf. Process. Syst. 2014; Vol. 27. [Google Scholar]
  • (40).Kingma DP; Welling M Auto-encoding variational bayes, arXiv:1312.6114. arXiv.org e-Print archive. 2013. https://arxiv.org/abs/1312.6114. [Google Scholar]
  • (41).Altae-Tran H; Ramsundar B; Pappu AS; Pande V Low data drug discovery with one-shot learning. ACS Cent. Sci. 2017, 3, 283–293. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (42).Segler MHS; Kogej T; Tyrchan C; Waller MP Generating focused molecule libraries for drug discovery with recurrent neural networks. ACS Cent. Sci. 2018, 4, 120–131. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (43).Zhu Q; Jia Q; Liu Z; Ge Y; Gu X; Cui Z; Fan M; Ma J Molecular partition coefficient from machine learning with polarization and entropy embedded atom-centered symmetry functions. Phys. Chem. Chem. Phys. 2022, 24, 23082–23088. [DOI] [PubMed] [Google Scholar]
  • (44).Wei H; Zhao Z; Luo R Machine-Learned Molecular Surface and Its Application to Implicit Solvent Simulations. J. Chem. Theory Comput. 2021, 17, 6214–6224. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (45).Jia Q; Ni Y; Liu Z; Gu X; Cui Z; Fan M; Zhu Q; Wang Y; Ma J Fast prediction of lipophilicity of organofluorine molecules: deep learning-derived polarity characters and experimental tests. J. Chem. Inf. Model. 2022, 62, 4928–4936. [DOI] [PubMed] [Google Scholar]
  • (46).Wu Y; Luo R Grid-Context Convolutional Model for Efficient Molecular Surface Construction from Point Clouds. J. Chem. Theory Comput. 2025, 21, 7648–7661, DOI: 10.1021/acs.jctc.5c00266. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (47).Connolly ML Solvent-accessible surfaces of proteins and nucleic acids. Science 1983, 221, 709–713. [DOI] [PubMed] [Google Scholar]
  • (48).Davis ME; McCammon JA Dielectric boundary smoothing in finite difference solutions of the Poisson equation: an approach to improve accuracy and convergence. J. Comput. Chem. 1991, 12, 909–912. [Google Scholar]
  • (49).Honig B; Nicholls A Classical electrostatics in biology and chemistry. Science 1995, 268, 1144–1149. [DOI] [PubMed] [Google Scholar]
  • (50).Davis ME; McCammon JA Solving the finite difference linearized Poisson-Boltzmann equation: A comparison of relaxation and conjugate gradient methods. J. Comput. Chem. 1989, 10, 386–391. [Google Scholar]
  • (51).Holst M; Saied F Multigrid solution of the Poisson—Boltzmann equation. J. Comput. Chem. 1993, 14, 105–113. [Google Scholar]
  • (52).Rocchia W; Alexov E; Honig B Extending the applicability of the nonlinear Poisson-Boltzmann equation: multiple dielectric constants and multivalent ions. J. Phys. Chem. B 2001, 105, 6507–6514. [Google Scholar]
  • (53).Luo R; David L; Gilson MK Accelerated Poisson–Boltzmann calculations for static and dynamic systems. J. Comput. Chem. 2002, 23, 1244–1253. [DOI] [PubMed] [Google Scholar]
  • (54).Still WC; Tempczyk A; Hawley RC; Hendrickson T Semianalytical treatment of solvation for molecular mechanics and dynamics. J. Am. Chem. Soc. 1990, 112, 6127–6129. [Google Scholar]
  • (55).Keriven N; Peyré G Universal invariant and equivariant graph neural networks Adv. Neural Inf. Process. Syst. 2019; Vol. 32. [Google Scholar]
  • (56).Han J; Cen J; Wu L; Li Z; Kong X; Jiao R; Yu Z; Xu T; Wu F; Wang Z et al. A survey of geometric graph neural networks: Data structures, models and applications, arXiv:2403.00485. arXiv.org e-Print archive. 2024. https://arxiv.org/abs/2403.00485. [Google Scholar]
  • (57).Tancik M; Srinivasan P; Mildenhall B; Fridovich-Keil S; Raghavan N; Singhal U; Ramamoorthi R; Barron J; Ng R Fourier features let networks learn high frequency functions in low dimensional domains. Adv. Neural Inf. Process. Syst. 2020, 33, 7537–7547. [Google Scholar]
  • (58).Gilmer J; Schoenholz SS; Riley PF; Vinyals O; Dahl GE Neural message passing for quantum chemistry Int. Conf. Mach. Learn. 2017, pp 1263–1272. [Google Scholar]
  • (59).Schütt K; Kindermans P-J; Sauceda Felix HE; Chmiela S; Tkatchenko A; Müller K-R Schnet: A continuous-filter convolutional neural network for modeling quantum interactions Adv. Neural Inf. Process. Syst. 2017; Vol. 30. [Google Scholar]
  • (60).Maneewongvatana S; Mount DM Analysis of approximate nearest neighbor searching with clustered point sets, arXiv:cs/9901013. arXiv.org e-Print archive. 1999. https://arxiv.org/abs/cs/9901013. [Google Scholar]
  • (61).Malkov YA; Yashunin DA Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence 2020, 42, 824–836. [DOI] [PubMed] [Google Scholar]
  • (62).Case DA; Skrynnikov NR; Cheatham TE III; Mikhailovskii O; Simmerling C; Xue Y; Roitberg A; Xue Y; Roitberg A; Izmailov SA; Merz KM; Kasavajhala K et al. AMBER 23 Reference Manual; University of California, 2023. [Google Scholar]
  • (63).Case DA; Aktulga HM; Belfon K; Cerutti DS; Cisneros GA; Cruzeiro VWD; Forouzesh N; Giese TJ; Gootz AW; Gohlke H; et al. AmberTools. J. Chem. Inf. Model. 2023, 63, 6183–6191. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (64).Case DA; Cheatham TE III; Darden T; Gohlke H; Luo R; Merz KM Jr; Onufriev A; Simmerling C; Wang B; Woods RJ The Amber biomolecular simulation programs. J. Comput. Chem. 2005, 26, 1668–1688. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (65).Tsui V; Case DA Molecular dynamics simulations of nucleic acids with a generalized Born solvation model. J. Am. Chem. Soc. 2000, 122, 2489–2498. [Google Scholar]
  • (66).Onufriev A; Bashford D; Case DA Modification of the generalized Born model suitable for macromolecules. J. Phys. Chem. B 2000, 104, 3712–3720. [Google Scholar]
  • (67).Onufriev A; Bashford D; Case DA Exploring protein native states and large-scale conformational changes with a modified generalized born model. Proteins: Struct., Funct., Bioinf 2004, 55, 383–394. [DOI] [PubMed] [Google Scholar]
  • (68).Tan C; Yang L; Luo R How well does Poisson-Boltzmann implicit solvent agree with explicit solvent? A quantitative analysis. J. Phys. Chem. B 2006, 110, 18680–18687. [DOI] [PubMed] [Google Scholar]
  • (69).Salomon-Ferrer R; Gotz AW; Poole D; Le Grand S; Walker RC Routine microsecond molecular dynamics simulations with AMBER on GPUs. 2. Explicit solvent particle mesh Ewald. J. Chem. Theory Comput. 2013, 9, 3878–3888. [DOI] [PubMed] [Google Scholar]
  • (70).Le Grand S; Götz AW; Walker RC SPFP: Speed without compromise—A mixed precision model for GPU accelerated molecular dynamics simulations. Comput. Phys. Commun. 2013, 184, 374–380. [Google Scholar]
  • (71).Ivanov SM Calculated hydration free energies become less accurate with increases in molecular weight. PLoS One 2024, 19, No. e0309996. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • (72).Fadda E; Woods RJ On the role of water models in quantifying the binding free energy of highly conserved water molecules in proteins: the case of concanavalin A. J. Chem. Theory Comput. 2011, 7, 3391–3398. [DOI] [PubMed] [Google Scholar]
  • (73).Izadi S; Anandakrishnan R; Onufriev AV Building water models: a different approach. J. Phys. Chem. Lett 2014, 5, 3863–3871. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

SI

RESOURCES