arXiv:2611.03154cs.LGNov 2026

Manuscript Offprint

arXiv:2611.03154

PaddleMaterials: An End-to-End Deep Learning Toolkit for Materials Science

Xuwei Liu, Zhimin Zhang, Xiaoguang Hu, Zhongwei Liu, Yuanhui Sun, Jun Huo, Hua Wu, Haifeng Wang

PaddleMaterials: An End-to-End Deep Learning Toolkit for Materials Science

Xuwei Liu 1∗^{1*}, Zhimin Zhang 1^{1}, Xiaoguang Hu 1^{1}, Zhongwei Liu 2^{2}, Yuanhui Sun 2^{2}, Jun Huo 1^{1}, Hua Wu 1^{1}, Haifeng Wang 1∗^{1*}

1^{1}Baidu Inc., Beijing, 100094, China

2^{2}Suzhou National Laboratory, Suzhou, 215123, China

∗^{*}Corresponding authors: liuxuwei01@baidu.com, wanghaifeng@baidu.com

Abstract

Machine learning tasks in materials science support structure design, atomistic simulation and experimental characterization, but the associated models, data representations and research workflows are usually developed independently. Integrating these tasks requires not only unifying software interfaces but also preserving the specific features of each task and making the scientific semantics and computational behavior of cross-task combinations verifiable. To this end, we present PaddleMaterials, an open-source unified framework for model development and scientific application. At its core, the framework explicitly models the computational structure and scientific semantics of tasks and brings model composition and execution mechanisms into a single system, thereby improving the verifiability of cross-task operations and characterizing performance under a unified execution system. Through shared mechanisms for data processing, training and evaluation, pretrained-model management and task application, the platform organizes six task classes: property prediction, structure generation, machine-learning interatomic potentials (MLIPs), electronic-structure fields, spectrum elucidation and microscopy image processing. Each task retains its own structure, graph, field, spectrum or image representation, while scientific-role records preserve the physical quantities, units, aggregation conventions and reference information at its input and output boundaries. The platform uses deep-learning compiler technology to accelerate model execution: through graph optimization, operator fusion and code generation for the target hardware, a model can switch from immediate dynamic-graph execution to compiled execution without changes to its definition. We validated both execution paths on 65 model instances in 11 model groups: relative to dynamic-graph execution, every model instance in 8 of the groups ran faster under compiled execution, with group median speedups of 11%–224% and group maximum speedups of 11%–336%. In two case studies, the inorganic material LiMnO₂ and the organic molecule toluene, the platform linked structure generation or spectrum elucidation, MLIP relaxation, and property and electron-density prediction into continuous workflows, with same-geometry density functional theory (DFT) calculations as external references. For LiMnO₂, the formation-energy predictions on the generated and relaxed structures differed from the same-geometry PBE+U results by no more than 7 meV atom⁻¹, and the total computational cost of the model steps was less than 1/20 of that of one DFT single-point calculation. These results show that, compared with existing platforms that mainly target structure–property prediction, interatomic potentials or structure generation, PaddleMaterials also brings electron-density, spectral and microscopy-image tasks into one framework while keeping their dedicated representations, makes cross-task combinations verifiable through explicit scientific-semantics conventions, and lets heterogeneous models share one compiled execution backend by changing a single execution setting, which keeps the barrier to use low and raises execution efficiency.

Introduction

Discovering new materials with target properties and establishing predictive links from composition, structure, processing history and service conditions to material properties (that is, structure–property relationships) are among the central goals of materials science research. Establishing such relationships often relies on multiscale simulation and can be cast as a high-dimensional coupled problem defined jointly by material parameters, cross-scale state variables and physical constraints. However, the solution space is enormous: it involves continuous high-dimensional state and parameter spaces and is accompanied by a combinatorial explosion arising from composition, structure, processing and other variables. As a result, systematic exploration that relies on exhaustive sampling or high-fidelity simulation is generally limited by the curse of dimensionality and high computational cost. Experiments and first-principles calculations can provide references, but they can hardly cover such a vast design space directly.

Deep learning offers a new route out of this dilemma. With its capabilities in high-dimensional function approximation and representation learning, it can combine regularities in data with physical priors to achieve efficient search, compact representation and generalizable inference in complex spaces. Materials science enabled by artificial intelligence (AI for Materials) has gradually become an important research approach that connects materials data, computational models and design goals. Turning these methods into reusable research capabilities, however, first requires coping with the diversity of model architectures. For materials modeling, graph neural networks and their equivariant architectures encode interatomic relationships and geometric symmetries to learn material properties and interactions, and diffusion models learn structural distributions and conditional dependencies to generate candidate structures [1, 2]. For scientific computing, physics-informed neural networks (PINNs) incorporate governing equations and initial and boundary conditions into the training objective to solve forward and inverse problems of partial differential equations, and Fourier neural operators (FNOs) learn mappings between function spaces to provide reusable approximate solvers [3, 4]. This diversity continues to extend to frontier deep learning architectures: flow matching generates crystal and molecular structures through more stable continuous transformations [5, 6]; large language model architectures encode materials as sequences to unify generation and property inference [7, 8]; multimodal models fuse structural, textual, spectral and other information to build cross-modal representations [9]; and foundation models pretrained across material systems provide transferable approximations for universal machine-learning interatomic potentials [10, 11]. These methods stem from the transfer of general-purpose architectures to scientific problems and also rely on dedicated designs oriented toward physical laws. Model development therefore requires coordinated trade-offs among network architecture, data representation, physical inductive bias, training objective and inference procedure, and it also requires the host platform to keep accommodating continually evolving frontier architectures.

Model diversity is further intertwined with the heterogeneity of material objects, research scales and experimental observation modes, giving AI for Materials a pronounced multitask character (Fig. 1). Research tasks have expanded from conventional structure–property prediction to multiple directions, including structure generation, spectrum elucidation, atomic-resolution and microscopy image analysis, electron-density prediction, machine-learning interatomic potentials, retrosynthesis analysis, and cross-scale microstructure and process optimization. Different tasks deal with different scientific objects and target variables, and their data must be expressed in multiple modalities, including graphs that describe interatomic relationships (molecular graphs and periodic crystal structures), sequence representations (structural encodings such as SMILES/SELFIES and composition formulas), continuous spatial fields (such as electron density), spectra, microscopy and atomic-resolution images, and even text that carries synthesis and literature knowledge [12–14]. It is therefore difficult to rely on a single general-purpose representation or a single modeling paradigm. Meanwhile, these tasks often rely on different types of learning models and inference mechanisms, and they can be combined and chained in specific materials research and development workflows. Consequently, an AI for Materials platform needs not only to cover diverse materials tasks but also to support both model development (data processing, construction of scientific representations, and model training and evaluation) and model application (applying existing models to new material structures, simulation conditions and experimental characterization) [1, 2, 12].

Existing open-source platforms and benchmarks have advanced this goal from different angles (Table 1), but three limitations remain. First, functional coverage is limited. MatGL organizes property models and interatomic potentials around graph deep learning [14]; M²Hub provides unified benchmarks for screening, inverse design and simulation [13]; Matbench establishes comparable benchmarks for materials property prediction through standardized datasets and evaluation tasks [15]; and the Open MatSci ML Toolkit supports equivariant model development and scalable training centered on Open Catalyst [16]. Each covers part of the task spectrum, and tasks such as electron-density prediction, spectrum elucidation and microscopy image processing are not yet included, so researchers often have to assemble several tools. Second, the engineering loop is not closed. Even when the required models have been implemented, some tools remain centered on specific methods or on benchmark construction, leaving gaps between model development and model application; training control, model saving and invocation, and inference deployment often require further development by users. Third, the underlying architectural abstractions and usability are insufficient. The key to supporting diverse AI for Materials tasks is to share the software control flow while isolating and preserving non-negligible scientific differences such as coordinates, units, physical conservation laws and boundary conditions. Existing tools lack clear underlying architectural abstractions, so general engineering code is coupled with task-specific physical logic: general-purpose platforms struggle to express these differences, whereas platforms built for a single task class struggle to reuse their software mechanisms for new tasks. The ecosystem also lacks comprehensive examples that run from scientific data loading and model construction to directly calling pretrained models to solve practical problems, and the shortage of systematic documentation and examples makes the tools hard to learn and limits their adoption among materials researchers. The field therefore needs an end-to-end AI infrastructure that unifies multimodal representations and multitask workflows, provides a complete engineering chain from model development to application, and offers a rich set of pretrained models and ready-to-use examples.

PaddleMaterials is positioned as an end-to-end toolkit for AI for Materials to meet this need. Built on PaddlePaddle, it targets research objects such as inorganic crystals and organic molecules, organizes property prediction, structure generation, machine-learning interatomic potentials, electron-density prediction, spectrum elucidation and microscopy image enhancement under a unified entry point, and provides the accompanying datasets, model implementations and pretrained models. Its main design principles are modularity, registry-based extensibility, single-file model organization, standardized execution workflows and interoperability with scientific computing tools such as pymatgen, RDKit and ASE. Software mechanisms such as data loading, training control, and model saving and invocation are reused across tasks as shared infrastructure, whereas coordinates, units, boundary conditions, prediction targets and evaluation methods are specified explicitly by each task, and the domain-specific representations, predictors and samplers that each task requires are retained. This establishes a reusable engineering separation between shared workflows and task differences, and comprehensive cross-task examples lower the barrier to use. PaddleMaterials thus integrates multitask coverage, an end-to-end chain from model development to application, reusable software mechanisms and task-level scientific conventions into one low-barrier toolkit, rather than adding another single model or benchmark.

This paper first gives a unified formal description of materials tasks, reviews the heterogeneous tasks covered by the platform and the requirements they place on a unified software design, and introduces the platform architecture and core software abstractions designed to meet these requirements. It then reports comparisons with reference implementations on public benchmarks and experiments on compiled execution based on deep-learning compiler technology, and finally examines the complete workflow from material objects to model execution through cross-task application cases. In the evaluation, we discuss functional coverage, the correctness and efficiency of software execution, consistency with reference results, and utility for materials research and development separately, so as not to conflate the availability of software functions, numerical consistency, runtime performance and practical scientific value into conclusions at a single level.

Figure

Fig. 1 | PaddleMaterials: an AI framework for diverse material classes, data representations and materials research tasks. From the outer to the inner ring, the figure presents representative material classes, data representations and AI tasks for materials research. Material classes include inorganic materials, metals and alloys, framework materials, organic materials, solutions, catalytic materials, polymers and energy materials. Data representations comprise strings, graphs, fields, images, spectra, trajectories and text. Tasks span materials design, simulation, characterization and experimentation, including property prediction, structure generation, machine-learning interatomic potentials, electron-density prediction, spectrum elucidation and enhancement, precursor prediction and reaction-condition prediction. The examples illustrate the scope of materials research and do not imply one-to-one correspondences between the rings.

Table 1 | Scientific scope and reported evaluation of selected materials machine learning platforms [13, 14, 16].

PlatformScientific scopeShared infrastructureEvaluation
M²HubVirtual screening, inverse design and molecular simulation, formulated as property prediction, generative materials design and machine-learning force-field tasks.Curated datasets and graph preprocessing; common training and evaluation pipelines; split protocols suited to each dataset; generative metrics and oracle functions.Representative property prediction benchmarks under applicable random, composition and system splits; training runtime comparisons.
Open MatSci ML ToolkitGraph and point-cloud learning for energies, forces and other material properties across multiple datasets; CDVAE crystal generation supported in version 1.0.Shared data, model and task abstractions; graph and point-cloud transforms; common training and evaluation; distributed execution; multi-task and multi-dataset learning.OC20 validation/test errors and compute scaling; single-task, multi-task and multi-dataset benchmarks; CDVAE generation metrics in the v1.0 release report.
MatGLGraph deep learning for molecular and crystalline property prediction and interatomic potentials, with interfaces for atomistic simulation.Structure-to-graph pipelines; reusable invariant/equivariant GNN layers; PyTorch Lightning-based training; pretrained models; ASE and LAMMPS interfaces.Property and potential benchmarks; transfer learning and extrapolation tests; atomistic application validation; inference timing and scaling of molecular dynamics simulations with system size.
PaddleMaterials (this study)Model development and application for materials such as inorganic crystals and organic molecules, covering six task classes: property prediction, structure generation, machine-learning interatomic potentials, electron-density prediction, spectrum elucidation and microscopy image enhancement.Shared mechanisms for data processing, training/evaluation and task application; pretrained-model packages; explicitly documented scientific input/output conventions; optional CINN compiled execution for selected model computations.Comparison of 11 migrated models with the results of the original implementations on public benchmarks for six task classes; two cross-task application case studies, LiMnO₂ and toluene, with same-geometry DFT references; eager–CINN dual-path verification and performance tests of 65 model instances.

References (34)