[Paper Review] DASH: Dynamic Attention-Based Substructure Hierarchy for Partial Charge Assignment
DASH introduces a dynamic, attention-based substructure hierarchy that extracts interpretable partial charge assignments from a graph neural network (GNN) without relying on complex ML libraries. It achieves GNN-level accuracy in partial charge prediction while being 100–10,000× faster than traditional QM methods like MBIS and RESP, and fully interpretable via a human-readable tree structure with error bars.
We present a robust and computationally efficient approach for assigning partial charges of atoms in molecules. The method is based on a hierarchical tree constructed from attention values extracted from a graph neural network (GNN), which was trained to predict atomic partial charges from accurate quantum-mechanical (QM) calculations. The resulting dynamic attention-based substructure hierarchy (DASH) approach provides fast assignment of partial charges with the same accuracy as the GNN itself, is software-independent, and can easily be integrated in existing parametrization pipelines as shown for the Open force field (OpenFF). The implementation of the DASH workflow, the final DASH tree, and the training set are available as open source / open data from public repositories.
Motivation & Objective
- To develop a fast, accurate, and interpretable method for atomic partial charge assignment in molecules.
- To overcome the limitations of black-box ML models, including dependency on unstable libraries and lack of interpretability.
- To create a software-independent framework that can be easily integrated into existing force field parametrization pipelines.
- To enable user-editable, physically reasonable partial charges with quantified uncertainty estimates.
- To provide a scalable solution for large-scale applications such as virtual screening and enzyme substrate prediction.
Proposed method
- A graph neural network (GNN) is trained on 393,692 unique molecules with TPSSh/def2-TZVP QM reference charges from the MBIS method.
- Attention values from the GNN are extracted to build a dynamic substructure hierarchy (DASH tree), where atom types are ordered by their attention contribution to the prediction.
- The DASH tree structure is constructed by recursively grouping atoms based on attention scores, with hyperparameters for maximum depth and attention threshold optimized during training.
- Partial charges are assigned by traversing the DASH tree and aggregating contributions from substructures, followed by post-assignment normalization and symmetrization for physical consistency.
- The method relies only on RDKit for molecular input and feature extraction, ensuring long-term software stability.
- The final DASH model is stored as a human-readable tree structure, enabling full interpretability and manual adjustment of assignments.
Experimental results
Research questions
- RQ1Can a GNN-derived attention hierarchy produce partial charge assignments as accurate as the original GNN while being significantly faster?
- RQ2Can the attention-based substructure hierarchy provide interpretable, human-readable charge assignments with quantified uncertainty?
- RQ3How does the DASH method compare in speed and accuracy to established methods like AM1-BCC, RESP, and MBIS?
- RQ4Can the DASH framework be made independent of rapidly evolving ML libraries and still maintain high performance?
- RQ5To what extent can users manually modify DASH assignments for application-specific needs?
Key findings
- DASH achieves partial charge prediction accuracy comparable to the underlying GNN, with a root mean square error (RMSE) close to that of MBIS reference charges.
- DASH is 100–10,000× faster than MBIS and RESP, with a computation time of 3.87 seconds per molecule on a 16-core CPU, compared to 8,490 seconds for MBIS.
- The method is 200× faster than AM1-BCC and 10,000× faster than RESP, while maintaining high accuracy.
- DASH provides interpretable, human-readable charge assignments through a hierarchical tree structure, allowing users to inspect and modify individual assignments.
- The DASH model is software-independent, relying only on stable RDKit functionality, and avoids dependency on volatile ML libraries like PyTorch.
- The DASH tree enables error bar estimation and supports physical consistency through post-assignment normalization and symmetrization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.