This paper proposes ED-DiT, a physics-guided diffusion pretraining framework for 3D electron density point clouds, aimed at learning transferable molecular representations that can adapt to multiple classes of electron-structure-related downstream tasks.
Electron density provides a continuous 3D description of molecular electronic structure, capturing both local spatial patterns and global physical quantities of molecules.
Pretraining paradigms have already shown strong application potential in learning transferable representations, but in electron-density-based molecular learning scenarios, exploration of relevant pretraining directions remains insufficient. Prior related modeling efforts were mostly designed separately for specific downstream tasks, and the generalization support of a shared electron density encoder across diverse downstream tasks has not yet been systematically validated.
The study formalizes self-supervised pretraining on 3D electron density as a transferable molecular representation learning problem, clarifying the core research boundary: verifying whether self-supervised pretraining on electron density fields can learn shared representations that transfer across various electron-structure-related tasks.
ED-DiT's core self-supervised pretraining framework is designed for 3D electron density point clouds, combining a masked diffusion denoising task with physical constraints: it performs diffusion noise prediction on masked log-density tokens while incorporating an electron count consistency constraint as part of the pretraining objective.
After pretraining, ED-DiT's encoder can output shared electronic structure representations with strong transferability. These representations can be directly adapted to multiple classes of downstream electron-density-related tasks, covering property prediction, open-shell/closed-shell classification, molecule-electron density retrieval, and molecule-conditioned electron density prediction. The figure below helps you fully understand ED-DiT's complete pipeline from pretraining to downstream adaptation.
On the property prediction and classification tasks of the EDBench benchmark, ED-DiT consistently outperforms same-architecture baselines trained from scratch, achieving the best performance among EDBench point cloud baselines on all reported property and classification tasks. On the bidirectional molecule-electron density retrieval task, ED-DiT's Top-1 accuracy is near-perfect, matching or exceeding baselines trained from scratch, and substantially outperforming the Geoformer-based baseline methods.
In the evaluation of the molecule-conditioned electron density prediction task, ED-DiT achieved the best performance among all compared methods: compared with the same-architecture baseline trained from scratch, its mean absolute error decreased from 0.4165 to 0.1213, and its root mean square error decreased from 2.2474 to 1.3753, while also outperforming the official HGEGNN baseline and the DeepDFT method on both metrics. This result validates the effectiveness of the pretrained electron density backbone on density-level prediction tasks.
To verify whether electron density pretraining can improve data efficiency on downstream tasks, the study compares the property prediction performance of ED-DiT with models trained from scratch under settings with different proportions of labeled training data. Across the vast majority of labeled-data proportion settings on the four downstream tasks OE, EC, MM, and OCS, ED-DiT outperforms the from-scratch baseline, and these performance gains are especially pronounced in the low-label regime: using only 1% labeled data, ED-DiT improves the AUROC of the OCS task from 0.5438 to 0.9693 while reducing the RMSE of the MM task from 1.06116 to 0.69457. Similar improvements are observed in the 10% labeled data setting, where ED-DiT's AUROC on the OCS task approaches saturation and the prediction error on the MM task also drops markedly. This indicates that self-supervised pretraining on electron density fields can provide transferable electronic structure priors for downstream tasks.
The study performs quantile statistics on prediction errors across different ranges of local electron density variation, observing that prediction errors remain low from the first to the third quantile and rise sharply only in the fourth quantile, a pattern consistent with the qualitative observation that residuals concentrate in regions with drastic local electron density variation. ED-DiT outperforms the from-scratch baseline across all quantile ranges. In the most difficult fourth-quantile region, ED-DiT reduces the MAE from 0.9753 to 0.4182 and the RMSE from 4.1111 to 2.0080, a 51.2% relative RMSE reduction, confirming that the performance gains from pretraining carry over to density prediction even in scenarios with the strongest local electron density variation.