Radial kernel-based atomic system long-range representation construction method, device and storage medium
By employing radial spatial encoding and summary aggregation techniques, the problem of difficulty in incorporating far-end information into atomic-scale models is solved, thereby enhancing the accuracy and flexibility of atomic representation without explicitly constructing a full atom pair matrix.
Patent Information
- Application Number
- CN202611682615.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing atomic-scale models struggle to effectively incorporate far-end radial environment information without explicitly constructing a full atom pair matrix, and local adjacency relationships limit the establishment of system-level spatial connections.
By acquiring the atom types, three-dimensional coordinates, and boundary conditions, a radial spatial coding strategy is used to encode the atoms, generating radial features. Then, a summary aggregation and reading are performed through radial indexing, and long-range update information is fused by combining the atom scaling factor to achieve atom-by-atom characterization enhancement.
Without explicitly constructing a full atom pair matrix, this method effectively introduces far-end radial environment information, establishes system-level spatial relationships, maintains atom-by-atom read differences, and controls the scale of interactive computation, thereby enhancing the accuracy and flexibility of atomic characterization.
Smart Images

Figure CN123182835A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of machine learning technology, and in particular to a method, device and storage medium for constructing long-range characterizations of atomic systems based on radial kernels. Background Technology
[0002] Atomic-scale models typically establish local adjacency relationships based on truncation radii and extract atom-by-atom features, then predict target properties through multiple layers of information transmission and readout. To expand the scope of information propagation, methods such as increasing the number of layers, widening the truncation, or adding neighbors are commonly used. However, these methods are still limited by the connectivity of the adjacency graph, making it difficult to establish system-level spatial connections beyond local content.
[0003] To incorporate remote information, existing methods typically employ global attention or a summarization-first, then-read approach. Explicit full-atom pair interactions can distinguish between contributing and reading atoms, but the interaction relationship increases quadratically with the number of atoms. Summarization aggregation methods require first summarizing key-value information into a summary before the query reads it. While avoiding explicit atom pair matrices, this primarily summarizes key-value information based on content, failing to create matching indexes for spatial locations on both the contributing and reading ends. Furthermore, the reading end lacks scaling adapted to the spatial state of the read atoms themselves, making it difficult for atoms at different spatial locations to receive differentiated global updates when read from the same summary. Therefore, in summarization aggregation that avoids explicit atom pair matrices, radial indexing and read scaling have not yet formed a complementary relationship with content interactions, making it difficult for system-level remote information to be effectively incorporated into atom-by-atom characterization.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this application is to provide a method, device, and storage medium for constructing long-range characterizations of atomic systems based on radial kernels, aiming to solve the technical problem that existing atomic-scale models are unable to effectively introduce far-end radial environment information without explicitly constructing a full atom pair matrix and satisfying periodic image equivalence.
[0006] To achieve the above objectives, embodiments of this application provide a method for constructing long-range characterizations of atomic systems based on radial kernels. The method includes: The atom type, three-dimensional coordinates and boundary conditions of each atom in the effective atom set are obtained, and the local features of the effective atom set are extracted by the local model to obtain the atom-by-atom features; A radial spatial encoding strategy is determined based on the boundary conditions, and each atom is encoded based on the radial spatial encoding strategy to obtain the radial features of each atom, wherein the radial features contain multiple radial components. Content mapping is performed based on the aforementioned atom-by-atom features to obtain the query vector, key vector, and value vector of each atom. Then, the key vector and value vector of each atom are aggregated according to the radial index to obtain the key-value summary. Based on the radial features and query vector of each atom, the key value digest is read, and the reading result is scaled based on the scaling factor determined by each atom itself to obtain the long-range update information of each atom. The long-range update information is fused back into the corresponding atom-by-atom features to obtain the enhanced atomic representation.
[0007] In one embodiment, the step of determining a radial spatial encoding strategy based on the boundary conditions and encoding each atom based on the radial spatial encoding strategy to obtain the radial features of each atom includes: The atomic system to which each atom belongs is determined based on the boundary conditions described above; When the atomic system is a finite system, the common center is determined based on the three-dimensional coordinates of the effective atoms within the atomic system; The scaling radius of each atom is determined based on the distance of each atom from the common center and a preset positive length scale; The radial characteristics of each atom are obtained by mapping the scaling radius using multiple radial basis functions and normalizing the mapping results.
[0008] In one embodiment, the step of determining a radial spatial encoding strategy based on the boundary conditions and encoding each atom based on the radial spatial encoding strategy to obtain the radial features of each atom includes: The atomic system to which each atom belongs is determined based on the boundary conditions described above; When the atomic system is a three-dimensional periodic system, a set of reciprocal lattice vectors is constructed based on the unit cell matrix of the atomic system; The phase of each atom under each reciprocal lattice vector is determined based on the three-dimensional coordinates of each atom and the inner product of each reciprocal lattice vector in the set of reciprocal lattice vectors. Based on the modulus of each reciprocal lattice vector, the mode weights corresponding to each reciprocal lattice vector are determined through multiple radial basis functions; Based on the mode weights and the trigonometric function values of the phase of each atom under each reciprocal lattice vector, the radial features of each atom are generated.
[0009] In one embodiment, the step of summarizing and aggregating the bond vectors and value vectors of each atom according to radial indices to obtain a bond value summary includes: Calculate the cross product of the bond vector and value vector of each atom to obtain the bond-value cross product matrix; Extract the spatial feature components of each atom, and weight the corresponding bond value outer product matrix based on the spatial feature components; The weighted outer product matrix of the key values belonging to the same atomic system and corresponding to the same radial index is summed to obtain the key value summary corresponding to each radial index.
[0010] In one embodiment, the step of reading the key-value digest based on the radial features and query vector of each atom, and scaling the reading result based on the scaling factor determined by each atom itself to obtain the long-range update information of each atom includes: Based on the query vector of the read atom, the key value digests corresponding to each radial index are shrunk to obtain the intermediate read results corresponding to each radial index; Based on the radial components corresponding to each radial index in the radial features of the read atom, the intermediate read results are weighted and summed to obtain an unscaled read vector; The scaling factor of the atom is determined based on the sum of the radial components in the radial features of the read atom and the sum of the components of the bond vector of the read atom. The long-range update information is obtained by scaling the unscaled read vector using the atomic scaling factor.
[0011] In one embodiment, the step of extracting local features from the effective set of atoms using a local model to obtain atom-by-atom features includes: Based on the preset cutoff radius, the local neighborhood atoms of each atom are determined from the effective atom set, and a local neighborhood graph is constructed. Based on the relative three-dimensional coordinates between each atom and its corresponding local neighbor in the local neighborhood graph, the edge features between each atom and its corresponding local neighbor are obtained. The edge features and the current node features of each atom are input into a graph neural network for multiple rounds of message passing and aggregation updates to obtain the updated features of each atom. The rotation-invariant scalar features in the updated features are extracted as the atom-by-atom features.
[0012] In one embodiment, the step of fusing the long-range update information back to the corresponding atom-by-atom features to obtain the enhanced atom representation includes: The long-range update information is projected onto the same dimension as the atom-by-atom feature to obtain the projected feature. Obtain the preset gating underlying parameters, and perform a sigmoid function mapping on the gating underlying parameters to obtain the gating coefficients; The projection feature is multiplied channel by channel by the gating coefficient to obtain the long-range increment; The long-range increment is added to the corresponding atom-by-atom feature residual to obtain the enhanced atomic characterization.
[0013] In one embodiment, after the step of fusing the long-range update information back to the corresponding atom-by-atom features to obtain the enhanced atomic characterization, the method for constructing long-range characterizations of a radially nucleus-based atomic system further includes: The enhanced atomic representation is input into the energy readout layer to obtain the learning energy of each atom; The total energy of the atomic system is obtained by summing the learning energy of each atom and the preset elemental reference terms. The predicted atomic force of each atom is obtained by calculating the negative gradient of the total energy with respect to the three-dimensional coordinates of each atom.
[0014] This application also provides a device for constructing long-range characterizations of atomic systems based on radial nuclei. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the method for constructing long-range characterizations of atomic systems based on radial nuclei as described above.
[0015] This application embodiment also provides a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, it implements the steps of the long-range characterization construction method for atomic systems based on radial nuclei as described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: This application obtains the atom type, three-dimensional coordinates, and boundary conditions of each atom in an effective atom set, and extracts atom-by-atom features through a local model, providing a basic representation of the local chemical environment for subsequent processing. By determining a radial spatial encoding strategy based on boundary conditions and encoding each atom, radial features containing multiple radial components are obtained, enabling spatial location information to enter the atomic characterization in a manner compatible with the system boundary conditions, thus providing a geometric basis for establishing spatial relationships across local adjacency ranges. A key-value summary is obtained by summarizing and aggregating the bond vectors and value vectors of each atom based on radial indices, thus representing the internal structure of each atom. Content information and spatial indexes are aggregated at the system level, thereby compressing global information without explicitly constructing a full-atom pair matrix. Key-value summaries are read based on the radial features and query vectors of each atom, and the reading results are scaled using a scaling factor determined by each atom itself. This allows each atom to obtain differentiated information from the global summary based on its spatial location and content, while preventing the reading results from losing numerical control due to system scale or atom differences. Furthermore, by fusing long-range update information back into the corresponding atom-by-atom features, system-level spatial information and local content jointly participate in atom representation updates. Thus, the effects of introducing system-level spatial connections beyond local features, maintaining atom-by-atom reading differences, and controlling the scale of interactive computation are achieved. Attached Figure Description
[0017] Figure 1 This is a flowchart illustrating an embodiment of the method for constructing long-range characterizations of atomic systems based on radial nuclei in this application. Figure 2 This is a complete flowchart illustrating the first embodiment of the method for constructing long-range characterizations of atomic systems based on radial nuclei in this application. Figure 3 This is a schematic diagram of the finite system isoindex summary and atom-by-atom reading process provided in Embodiment 1 of the method for constructing long-range characterization of atomic systems based on radial nuclei in this application; Figure 4 This is a schematic diagram of the calculation process for the periodic modulus weight and matching phase of a three-dimensional periodic system, provided in Embodiment 1 of the method for constructing long-range characterization of atomic systems based on radial nuclei in this application. Figure 5 This is a flowchart illustrating Embodiment 2 of the method for constructing long-range characterizations of atomic systems based on radial nuclei in this application; Figure 6 This is a schematic diagram of the structure of the long-range characterization construction device for a radially nucleated atomic system, which is part of the hardware operating environment involved in the long-range characterization construction method for a radially nucleated atomic system in this embodiment of the application.
[0018] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0019] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application. To better understand the technical solutions of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0020] In computational chemistry, computational materials science, and atomic-scale machine learning, models typically convert the types, coordinates, and environmental conditions of atoms into atom-by-atom representations to predict energy, atomic forces, or structural updates. However, existing atomic-scale models (such as Deep Potential, PaiNN, and EquiformerV3) primarily rely on finitely truncated local adjacency to extract features. This local propagation is limited by the connectivity of the adjacency graph; for disconnected segments, simply increasing the message passing layer cannot establish cross-segment paths. Furthermore, indiscriminate pooling of features across the entire system is insufficient to represent the relationship between atoms at different radial positions and their distant environments. This results in configurations with identical local bonding structures but different distant environments generating similar inputs, failing to accurately respond to the influence of the distant environment.
[0021] To overcome local truncation and introduce distant information, global attention mechanisms are typically introduced. For example, SpookyNet incorporates nonlocal interactions into the atomic potential, and EFA establishes global interactions through Euclidean space encoding and linear key-value aggregation. However, explicitly calculating the spatial weights and content interactions of all atomic pairs causes the number of interactions to increase quadratically with the number of atoms. While a linear attention mechanism that aggregates first and then reads can reduce computation, when introducing radial spatial relationships into this process, if the strict correspondence between the spatial components at both ends, content features, and summary indexes is not clearly defined, simply compressing it to the total system will lose the necessary atom-by-atom read differences. Therefore, how to define the read coefficients, scaling rules, and update results for each atom without explicitly constructing the atom pair matrix is the core issue balancing computational scale and representational meaning.
[0022] Furthermore, in periodic systems, the physical structure remains unchanged after atoms cross the unit cell boundary and refold, but the arithmetic center of the folded coordinates may change depending on the selection of the periodic image. This makes it impossible to directly use the center encoding applicable to the complete coordinate set of isolated molecules. Although the reciprocal space method uses phase descriptions compatible with the lattice to maintain the equivalence of the periodic image, further spatial and content combination design is still needed to combine the radial weights on the reciprocal lattice vector modulus with the phase summary of the finite mode set, and to achieve atom-by-atom differentiated readings while avoiding full atom-to-matrix pairs.
[0023] Meanwhile, once long-range information enters the model, it must also meet the output requirements of different downstream tasks. Whether it is an energy scalar that needs to maintain overall rotational invariance, an electronic structure matrix that needs to process orbital indices, or different input states in generation tasks such as diffusion generation, flow matching, and autoregression, the long-range representation must maintain a one-to-one correspondence between atoms and have the ability to flexibly transition to complex transformation rules and output paths.
[0024] In view of the above-mentioned technical problems, this application proposes a method for constructing long-range characterizations of atomic systems based on radial kernels. The method includes: acquiring the atom type, three-dimensional coordinates, and boundary conditions of each atom in an effective atom set; extracting local features from the effective atom set using a local model to obtain per-atom features; determining a radial spatial encoding strategy based on the boundary conditions; encoding each atom based on this strategy to obtain radial features containing multiple radial components; performing content mapping based on the per-atom features to obtain the query vector, key vector, and value vector of each atom; and aggregating the key vector and value vector of each atom according to the radial index to obtain a key-value summary; reading the key-value summary based on the radial features and query vector of each atom; scaling the reading result based on the scaling factor determined by each atom itself to obtain long-range update information for each atom; and finally, fusing the long-range update information back into the corresponding per-atom features to obtain the enhanced atomic characterization.
[0025] Specifically, this application adopts the following combined design in terms of spatial construction and renewal mechanism: First, to address the difficulty of incorporating the far-end radial environment into local representations in finite systems, a radial spatial kernel is constructed using a common center and a normalized Gaussian mapping. The arithmetic center of coordinates is calculated for each effective atom group within the same system. The distance from each atom to this center is divided by a positive length scale, and a learnable Gaussian function for the center and width is input. Each atom is normalized according to the sum of its radial components and a lower bound, resulting in spatial features sharing the same radial index. Contributing atoms and reading atoms generate radial features based on the same mapping, and the inner product of the radial features at both ends implicitly forms the spatial kernel. This spatial kernel organizes information based on the radial position of atoms relative to the common center, allowing the movement of other atoms within the group to influence the spatial weights at both ends by changing the common center. The local representation continues to provide directional information not covered by the center radius.
[0026] Secondly, to address the challenge of balancing atom-by-atom differences with computational scale in long-range interactions, atom-by-atom enhanced updates are achieved using indexed summaries and atom-specific scaling. Queries, keys, and values are generated based on local content mapping. At the contribution end, a matrix summary is generated by weighting the key-value outer product of radial components and accumulating it according to the system and radial index. At the read end, the spatial components of the atom under the same radial index and the query-shrink summary are used to obtain updates related to the atom's content and radial position. The read result is scaled using the denominator determined by the atom's radial and positive bond components, and then fused back to the corresponding atom features through output projection and gated residuals. The denominator calculation does not summarize the bonds of other atoms, while the summary includes all contributing atoms within the valid group, thus executing the process in the order of aggregation followed by reading.
[0027] Furthermore, to address the issue of center encoding failing to satisfy periodic image equivalence due to coordinate center offset in periodic systems, a periodic space kernel is constructed using modulus radial weights and matched phases. Reciprocal lattice vectors are constructed from the unit cell, with shared, non-negative, and learnable radial weights configured on their moduli. The inner product of the reciprocal lattice vectors and atomic positions forms a lattice-compatible phase. At the contribution end, cosine- and sine-weighted bond-value extra products are aggregated according to mode. At the read end, the summary is contracted using matched phases and local atom queries, and after summing with radial weights, it is scaled using the sum of local atom positive bond components. When used for force or stress tasks, the relevant derivative dependencies of coordinates, unit cell, radial weights, and local content are fully preserved.
[0028] Compared with related technologies, the solution provided in this application addresses the inconsistencies caused by local truncation limitations and the offset of folded coordinate centers in periodic systems by generating radial features through common center mapping or reciprocal lattice phase encoding under different boundary conditions. Through radial index-based same-index summary aggregation and reading, a pure spatial kernel is implicitly formed without explicitly constructing a full atom pair matrix, avoiding the global interactive computational load from increasing with the square of the number of atoms. By introducing a local atom scaling factor determined only by the reading atom itself, numerical control is preserved while enabling each atom to acquire differentiated global information. Furthermore, by injecting long-range update information into the atom-by-atom features through gated residual fusion, enhanced characterization is provided for the prediction of atomic system properties and the generation of structures while retaining the original local geometric representation.
[0029] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a server, high-performance computing node, graphics processing unit cluster, personal computer, or cloud computing platform, or an electronic device, terminal device, or long-range characterization construction device or system for atomic systems based on radial kernels capable of realizing the above functions. The following description uses a long-range characterization construction system for atomic systems based on radial kernels as an example to illustrate this embodiment and the subsequent embodiments.
[0030] First Embodiment The first embodiment of this application proposes a method for constructing long-range characterizations of atomic systems based on radial kernels. Please refer to [reference needed]. Figure 1 The method includes steps S10 to S50: Step S10: Obtain the atom type, three-dimensional coordinates and boundary conditions of each atom in the effective atom set, and extract local features of the effective atom set through a local model to obtain atom-by-atom features.
[0031] In this embodiment, the overall process of a long-range call involves the cooperation of a local model and a long-range module. The local model refers to the module that extracts atom-by-atom features using truncated neighborhoods, local descriptors, or local message structures; the long-range module refers to the radial kernel module that performs subsequent radial spatial encoding, digest aggregation, and reading. Here, "long-range" means that information transmission is not limited by the host's local adjacency range, and the aggregation process can include nearest neighbors and atoms themselves; this name describes the range of information represented, and whether it reproduces a specific physical long-range potential and its asymptotic laws depends on the corresponding kernel, readout, and physical conventions.
[0032] The input to the combined model includes the types of atoms, three-dimensional coordinates in Å, system affiliation, and boundary conditions. The local model then generates atom-by-atom features, which are directly selected or adapted via an interface to form the content matrix for subsequent long-range calls. For finite systems, the input to long-range calls includes an N×C content matrix, N×3 coordinates, a system index of length N, and the number of atoms in each system; for periodic systems, the input also includes the unit cell of each system, periodic markers, and mode configuration, or reciprocal lattice vectors, phases, and weights constructed compatible with these data. Both types of calls return congruent N×C enhanced content. When pre-constructed periodic quantities are used for differentiation, their dependencies on coordinates, unit cells, and parameters must be preserved.
[0033] A combined model refers to a complete network architecture formed by combining local models and long-range modules. Local models are used to extract the local geometric and environmental features of atoms within their truncated neighborhoods, while long-range modules are used to perform radial spatial encoding, summary aggregation, and retrieval to inject remote environmental information into the atom-by-atom features.
[0034] Before performing feature extraction, the effective atom set must be defined. The effective atom set refers to the non-empty atom group allowed to participate in geometric encoding and content updates in this calculation call. This set excludes filling atoms, masked positions, and atoms that have not yet been generated or are prohibited from being read in the current generation step, ensuring that subsequent center calculations and summary aggregation are based only on the actual physical structure. Let g represent a non-empty effective atom group, i and j be the atom indices within the group, and Ng represent the number of atoms in the group; the total number of effective atoms in a batch is N, and the number of non-empty systems is G. Filling or masked atoms do not participate in center and summary calculations; different systems are aggregated separately, and the atom type, coordinates, local features, and output always use the same atom order. When the effective group changes, the center, radius, and summary must be recalculated; each system within a batch is calculated independently, and the atom order is restored after boundary grouping.
[0035] Atom-by-atom features refer to rotationally invariant scalar content extracted by the local model based on neighboring elements and the geometric environment within the cutoff radius. The dimension is denoted as C-dimensional. It is used to characterize the basic state of atoms in the local chemical environment and serves as the content basis for subsequent long-range information exchange.
[0036] To facilitate understanding of the spatial encoding, content mapping, and summary aggregation calculations involved in subsequent steps, the calculation symbols, dimensions, and meanings used in this embodiment are explained uniformly. The superscript T indicates transpose, and vectors are understood as column vectors; strain calculations in stress prediction also use a row-arranged coordinate matrix. Radial index a ranges from 1 to M, and query / key channel index b ranges from 1 to Dq. `softplus` is a smooth positive value mapping, and `sigmoid` is a mapping with values between 0 and 1; component-wise multiplication is denoted by ⊙. In the following embodiments, layer position superscripts are omitted, and parameters within the same layer are shared between atoms. The main symbols are as follows:
[0037] In one feasible implementation, step S10 includes steps S11 to S14: Step S11: Based on the preset cutoff radius, determine the local neighboring atoms of each atom from the effective atom set to construct a local neighborhood graph.
[0038] Geometric input is established based on the truncation rules and neighbor upper limits of the local model. Using a preset truncation radius as a threshold, for each atom i, atoms in the effective atom set whose Euclidean distance to atom i does not exceed this threshold are identified as local neighbors of atom i. The connectivity between each atom and its local neighbors constitutes a local neighborhood graph. For a three-dimensional periodic system, the construction of local neighborhoods involves lattice translation, i.e., considering atoms satisfying the truncation condition in all periodic images, with distances calculated from the translated adjacent coordinates.
[0039] Step S12: Based on the relative three-dimensional coordinates between each atom and its corresponding local neighboring atom in the local neighborhood graph, obtain the edge features between each atom and its corresponding local neighboring atom.
[0040] For each edge (i, j) in the local neighborhood graph, the relative three-dimensional displacement vector between adjacent atoms is calculated, and this displacement vector is geometrically encoded to obtain the edge feature. This edge feature encodes geometric information such as distance and direction between atoms, which can be achieved through radial basis expansion of distance, spherical harmonic function expansion, etc. For three-dimensional periodic systems, the calculation of the above displacement vector also needs to consider lattice translation.
[0041] Step S13: Input the edge features and the current node features of each atom into the graph neural network for multiple rounds of message passing and aggregation updates to obtain the updated features of each atom.
[0042] Graph neural networks perform message passing operations based on edge and node features: each atom collects messages sent by its local neighboring atoms and updates its own node features accordingly. Message passing can be performed in multiple rounds, in which each atom exchanges information and updates its features based on the local neighborhood graph. After multiple rounds of passing, the features of each atom contain chemical environment information from multiple layers of neighborhood. Optionally, the local model can be implemented using message passing neural networks, graph attention networks, equivariant message passing, or local descriptors plus mappings.
[0043] Step S14: Extract rotation-invariant scalar features from the updated features as atom-by-atom features.
[0044] After updating the features from the graph neural network output, the rotation-invariant zeroth-order scalar channel is extracted as atom-by-atom feature, denoted as . Rotation-invariant scalar features remain unchanged after global rotation input, making them suitable as content input for subsequent radial kernel long-range modules.
[0045] To introduce long-range information without disrupting the complex geometric information extracted by the local model, the aforementioned local model typically outputs both isotropic features containing directional information and scalar features without directional information. If the channel width of the scalar features output by the local model does not match the interface dimension of the subsequent long-range module, a linear mapping shared atom-by-atom can be used to adapt it to C-dimensional content. When the local model simultaneously outputs higher-order isotropic representations, this embodiment only selects the zero-order scalar channel without directional information to input into the long-range module, while retaining the original higher-order isotropic channels to continue participating in the geometric calculations of the local model. This achieves smooth injection of long-range information without disrupting the original spatial rotational isotropic properties.
[0046] As an example, when the local model uses the EquiformerV3 backbone, each local layer performs attention and feedforward updates using adjacency, geometric encoding, and atomic features. The updated zero-order channels are directly used as radial branches for inputting atomic features, while higher-order channels remain in the host network to continue participating in the original geometric calculations. In this example, the model first writes element embeddings into the zero-order channels, and then initializes the higher-order channels from zero and superimposes local edge geometric embeddings to form the input of the first local layer. Electronic state conditions (such as total charge and spin) are multiplied by a fixed random frequency, followed by sine / cosine mapping, splicing, linear layers, and SiLU activation to obtain conditional embeddings, which are then added to the initial scalars of each atom in the same system. This random frequency is saved as a buffer with the model after initialization to ensure that it remains unchanged during prediction.
[0047] Step S20: Determine the radial space encoding strategy according to the boundary conditions, and encode each atom based on the radial space encoding strategy to obtain the radial features of each atom, wherein the radial features contain multiple radial components.
[0048] Radial features are vector representations containing multiple radial components, generated based on the relative positions of each atom and the overall spatial reference of the system. A radial feature contains M radial components, each corresponding to a radial index 'a'. These radial components correspond to multiple learnable radial basis functions, used to quantify the weights of atoms at different spatial radial positions. Radial features encode the positional information of atoms in the system-level space and form the basis for subsequent construction of the spatial kernel. Depending on the boundary conditions used in the atomic system, this embodiment provides two radial spatial encoding strategies: a central radial encoding strategy for finite systems and a reciprocal radial encoding strategy for three-dimensional periodic systems.
[0049] Different boundary conditions determine the type of atomic system to which the effective set of atoms belongs, including finite systems with fixed spatial extents, such as molecules and clusters, and three-dimensional periodic systems formed by repeated expansion of unit cells, such as crystals and interfaces. Since finite systems and three-dimensional periodic systems have different mathematical requirements for spatial translation and periodic image equivalence, appropriate radial spatial encoding strategies need to be adaptively selected based on the boundary conditions.
[0050] In one feasible implementation, when the atomic system is a finite system, a central radial encoding strategy is adopted. Step S20 includes: determining the atomic system to which each atom belongs based on boundary conditions; when the atomic system is a finite system, determining a common center based on the three-dimensional coordinates of the effective atoms within the atomic system; determining the scaling radius of each atom based on the distance of each atom to the common center and a preset positive length scale; mapping the scaling radius through multiple radial basis functions and normalizing the mapping results to obtain the radial characteristics of each atom.
[0051] For a finite system, first, take the arithmetic mean of the effective atomic coordinates within the same system g to obtain a common center; then calculate the distance of each atom to this center and divide it by a fixed positive length scale. The scaling radius is obtained. The relationship between its geometric center and the scaling radius is as follows: (1) in, As the common center of system g, Let N be the three-dimensional coordinates of atom j within system g, and let Ng be the number of effective atoms in system g. The summation iterates through all effective atoms in system g.
[0052] The above center calculation does not use mass or element weights, but is based solely on the arithmetic mean of geometric coordinates. Since the common center is determined by the entire effective set, even if the positions of two given atoms remain unchanged, the movement or addition / removal of other atoms within the set may alter its central radius, thus making the spatial nucleus dependent on the configuration of the entire effective set. Therefore, when calculating coordinate derivatives, the coordinate dependencies of the center and radius are preserved in the computational graph.
[0053] (2) in, Let be the scaling radius (dimensionless) of atom i. Let i be the three-dimensional coordinates of atom i. The common center of system g to which atom i belongs. | represents the Euclidean norm, and s is a preset positive length scale, which is a fixed configuration value rather than a trainable parameter. For example, s can be 10 Å.
[0054] The norm in equation (2) = There is generally no classical derivative at this point, and the numerical value returned by automatic differentiation at this point cannot prove the differentiability of the composite energy. The single-atom group is always in this coincident state, and the zero forward radius does not guarantee the validity of the general second-order differentiation. Therefore, when continuous differentiation is required at the center coincident position and the lower limit switching point, a smooth radius variant can be used, with the radius, radial normalization, and denominator read as optional numerical configurations; its parameters and the form used are saved separately from the original configuration. Specifically, let the positive smoothing length be... The unit is Å, and the radius is defined as: The variable is in = It is zero at the given point and continuously differentiable with respect to displacement. An equivalent form can be used in the calculation: To avoid subtracting close numbers; the squared displacement is directly obtained from the sum of the squares of the three coordinate components, avoiding taking the unsmoothed norm first and then squaring it, thus preserving the zero-point non-differentiable operator in the automatic differentiation graph.
[0055] After replacing the radius in equation (2), we get Take again and The summary and read relationships are maintained using the same index. The superscript 'sm' identifies this smooth variant, positive... and Saved with configuration. This avoids hard lower bound switching in the denominator; the radial component sum is generally less than 1, and the denominator is no longer simplified to the bond component sum. The smoothed variant retains the common center, radial feature inner product, bond value summary, and organization of the atom scaling, but the specific values differ from the original formula and need to be evaluated according to their configuration. The error index and weight equivalence conclusions of the original model are not directly used. Periodic reads can also be retrieved separately. Smoothed replacement of hard lower bound, and recorded as different parameterizations.
[0056] Next, each obtained scaling radius is substituted into M learnable Gaussian functions for mapping, and then normalized according to the sum of the Gaussian components of that atom and their lower bounds, resulting in a radial vector containing multiple radial components. The radial vectors of all atoms together constitute the radial feature. The relationship between the Gaussian radial mapping and normalization is as follows: (3) in, For unnormalized components, For normalized components. Gaussian center. It is a dimensionless, learnable scalar on the radius axis, which is different from the meaning of the three-dimensional geometric center determined by coordinates in equation (1). M is the radial basis function number, and each atom is normalized within these M components.
[0057] Gaussian mapping and softplus take strictly positive values in real number operations, while floating-point calculations may underflow to zero. When the sum of the Gaussian components before normalization in equation (3) is not lower than the lower limit of the value, the sum of the radial components after normalization is 1; if the extreme radius triggers the lower limit, the equation is not guaranteed to hold. The lower limit of the denominator is only used to control the divisor and cannot guarantee that the gradient is non-zero or the output is valid on its own.
[0058] The length scale *s* is a fixed configuration value, and the Gaussian center and width low-level parameters participate in training. The width low-level parameters, after softplus transformation, become positive exponential coefficients; the larger these coefficients are, the narrower the unnormalized Gaussian. Radial parameters within the same module... and Shared across all atoms and batches, not separately for each element. The training loss updates these parameters along the aggregation, reading, and fusion paths, without requiring separate radial kernel labels.
[0059] As an example, It can be initialized with M equally spaced points on [0, 4]. The underlying parameters can be initialized to log(1.5).
[0060] Based on the aforementioned radial characteristics, the radial vectors of two atoms form a spatial kernel through their inner product, denoted as . This is the radial factor of equation (14). The spatial kernel is obtained by overlapping the Gaussian features of the common center radius, unlike applying a Gaussian function directly to the interatomic distance or the difference between two radii. The spatial components remain unchanged under common translation and rotation, and the same center radius will produce the same radial vector, with directional information continuing to be provided by the local content. Since it is normalized by the sum of components rather than the L2 norm, the diagonal value of the spatial kernel is generally not equal to 1.
[0061] During execution, only the radial components of each atom need to be saved. Through subsequent content mapping and subsystem aggregation, atom-by-atom reading and denominator scaling, the spatial kernel can be implicitly formed by shrinking at both ends according to the same index. Combined with the content inner product of the query and the key, there is no need to construct a full atom pair matrix.
[0062] The aforementioned implicitly formed spatial core It is a Gram matrix composed of the radial vectors of each atom. Since all radial components are non-negative, under exact arithmetic, this matrix satisfies symmetry, positive semi-definiteness, and non-negative terms. The central radius is essentially a distance metric. The radial characteristics and spatial core remain unchanged under the common translation and rotation of the system. This scalar invariance is directly guaranteed by the distance property, without the need for spherical angular integration. The central radius only captures distance relationships and cannot reconstruct the relative orientation or chirality of atoms. This angular information is provided by the content features extracted from the local model.
[0063] The common center is determined by the arithmetic mean of the coordinates of the entire effective atom set, making this spatial core dependent on the global environment: even if the positions of the two atoms at the read and contribute ends remain unchanged, the position of the common center will change as long as other atoms in the system move or are added or removed, thus changing the spatial weights of the two atoms. Therefore, the spatial factor in this scheme is not a two-body potential determined solely by fixed atom pairs, but rather a multi-body interaction with a global receptive field; combined with content characteristics, the combinatorial model can respond more sensitively to changes in the remote environment.
[0064] In another feasible implementation, when the atomic system is a three-dimensional periodic system, a reciprocal radial spatial encoding strategy is adopted, replacing the common center radius with a phase encoding compatible with the crystal lattice. Step S20 includes: determining the atomic system to which each atom belongs based on boundary conditions; when the atomic system is a three-dimensional periodic system, constructing a set of reciprocal lattice vectors based on the unit cell matrix of the atomic system; determining the phase of each atom under each reciprocal lattice vector based on the three-dimensional coordinates of each atom and the inner product of each reciprocal lattice vector in the set of reciprocal lattice vectors; determining the mode weight corresponding to each reciprocal lattice vector through multiple radial basis functions based on the modulus of each reciprocal lattice vector; and generating the radial features of each atom based on the mode weights and the trigonometric function values of the phase of each atom under each reciprocal lattice vector.
[0065] To facilitate understanding the derivation of this branch, the newly introduced symbols in periodic space coding and corresponding digest calculation are explained here. Symbols not mentioned above retain their definitions from the aforementioned finite system. The specific newly added symbols are as follows:
[0066] For a three-dimensional periodic system, its local adjacency involves lattice translation and uses the same unit cell convention as long-range branches. Let... It is a reversible 3×3 row unit cell matrix, where each row is a direct lattice basis vector, with units of Å; The atomic positions are represented by column vectors. Given a finite set of integer patterns, where each element n is a three-dimensional column vector of integers. The main representation uses a method that simultaneously includes... and A symmetric set, counted only once when using the zero mode. The inverted length scale is used. The calculation relationship between the inverted lattice vector, phase, and scaling frequency is as follows: (4) in, A three-dimensional reciprocal lattice vector, in Å. - ¹, on the symbol and content key Differentiate by index; It is a positive frequency scale, with units of Å. - ¹; and All are dimensionless; This represents the number of patterns.
[0067] By the row cell convention, the fractional coordinates of an atom can be represented as: Substituting the reciprocal lattice vector formula into the inner product, the phase can be equivalently rewritten as: This indicates that the phase is obtained by projecting the integer pattern vectors into the fractional coordinate space. For the pattern set... The specific selection can be configured by a fixed set of integers, an upper limit for physical wavenumbers, or multiple frequency groups; when filtering by wavenumber, positive and negative modes within the same shell must use a consistent truncation rule. When using a fixed mode table, the mode table is saved along with the model configuration and is independent of the order of atoms. If the configured mode set is empty, the result of periodic readings is defined as zero, and the output only retains the input content and other branches.
[0068] Based on the phase and dimensionless magnitude obtained from equation (4), this embodiment constructs a shared radial weight on the magnitude. Let... For the radial function number of the reciprocal space; , , These are respectively the radial center, width bottom-level parameters, and amplitude bottom-level parameters, and are independent of the parameters of the finite branches; This is a non-negative window function defined in units of the same wavenumber. Non-negative learnable reciprocal radial weights are set on the modulus of the reciprocal lattice vector, and their calculation relationship is as follows: (5) When using a fixed pattern set, non-negative frequency window The value can be 1; when using physical wavenumber truncation, a transition window that returns to zero at the truncation point and satisfies the requirement for continuous derivative order can be used. Reciprocal spatial frequency scale. Individually configured. The moduloability of system conditions, shared characteristics, and non-negativity are retained as weighting conditions to satisfy subsequent Gram expressions. Mode weights, along with content summaries, local atom scaling, and enhancement backlinks, jointly determine periodic updates.
[0069] The "radial" aspect of this weight refers to the frequency domain amplitude depending on the reciprocal lattice mode length. Since the mode phase also incorporates lattice and mode selection information, the real-space nucleus formed by finite modes generally does not depend solely on interatomic distances. Placing the weight and paired phases into the same eigenvector can be represented as an interpretative spatial feature: (6) This feature is 2Pg dimensional, and equation (6) is used to explain the decomposition of the spatial kernel. In actual execution, all weights can be placed at the read end, without calculating the square root. If only one representative of the positive and negative pattern pair is retained, the weights of the pair can be added together as the representative weight; when the values of positive and negative patterns in equation (5) are the same, the representative weight is twice that of a single pattern, and the zero pattern is still counted only once. In this way, the full pattern and the half pattern can represent the same kernel with the same total coefficient.
[0070] In terms of periodicity and geometrical changes, when the position of a single atom increases, lattice translation occurs. When m is an integer column vector, the phase increases only by an integer number of complete periods, while the sine and cosine values remain unchanged. When all atoms translate together, the phase difference remains constant; when the coordinates rotate together with the unit cell, the modulus of the reciprocal lattice vector and the inner product of the phase remain unchanged. When compatible transformation rules are used for local content, modulus selection, reconnection, and readout, these properties are passed down to the complete update process.
[0071] When the unit cell changes, the reciprocal lattice vectors and modulus weights are recalculated, preserving their dependencies on coordinates and content. For common affine deformations of fixed integer modes and fixed fractional coordinates, the phase remains unchanged, but the modulus weights and local content may change. When energy derivatives are involved, continuous differentiation paths are preserved within fixed execution branches; when adding or removing modes according to physical wavenumbers, the aforementioned transition window is used for connection.
[0072] Equivalent lattice basis replacement requires synchronous mapping modes to maintain the same physical wave vector. This implementation does not perform additional normalization by atomic number or volume, nor does it specify a consistent mapping for supercell replication, and therefore does not directly guarantee that the atom-by-atom updates remain unchanged after replication. Zero-frequency and self-terms belong to characteristic aggregation configurations, and this finite-mode nucleus does not replace the charge, background, and self-interaction conventions in physical Coulomb summation.
[0073] Step S30: Based on the atom-by-atom features, perform content mapping to obtain the query vector, bond vector, and value vector of each atom, and perform summary aggregation on the bond vector and value vector of each atom according to the radial index to obtain the key-value summary.
[0074] Content mapping refers to the process of mapping the atom-by-atom features output by a local model into vector representations of queries, keys, and values through linear or nonlinear transformations. Radial indexes are the indices of each dimension in the radial feature vector. Since radial features are generated by multiple radial basis functions or reciprocal patterns, each index corresponds to a specific spatial location or frequency component. Key-value summaries are matrix sets compressed from all contribution information within the effective atom set according to the radial indexes.
[0075] To achieve global information exchange without explicitly constructing an atom pair matrix, it is necessary to combine content mapping with radial space indexing, and transform the calculation of atom pairs into a "aggregate first, then read" form through algebraic rearrangement.
[0076] Specifically, step S30 includes: performing content mapping on atom-by-atom features to generate query vectors, bond vectors, and value vectors for each atom; calculating the outer product of the bond vectors and value vectors for each atom to obtain a bond-value outer product matrix; extracting the spatial feature components of each atom, with radial components for finite systems and phase components for periodic systems, and weighting the corresponding bond-value outer product matrices based on the spatial feature components; and summing the weighted bond-value outer product matrices belonging to the same atom system and corresponding to the same radial index to obtain a key-value summary.
[0077] The content mapping process is shared in both finite and periodic systems. Queries and keys use root-mean-square normalized content as input, which is then linearly mapped and processed using the softplus function to obtain positive components; values are directly linearly mapped using the content before normalization. The relationship can be expressed as: (7) in, For the normalized content features, , , These are the query vector, key vector, and value vector, respectively. , , This is the corresponding linear mapping matrix. RMSNorm takes the square root of the mean square with a positive stable term added in the channel dimension, uses this result as the divisor, and multiplies it by the learnable channel gain; softplus is a smooth positive mapping that ensures that the key and query components are positive.
[0078] During the abstract aggregation stage, the two types of atomic systems adopt their respective weighted summation methods due to their different spatial encoding strategies.
[0079] For a finite system, for each contributing atom j, first form the cross product of bond and value. Multiply by the a-th radial component By fixing the radial index 'a' within the same system and summing the contributions of all effective atoms, a bond value summary is obtained. (8) Each system thus obtains M sets of bond value summary matrices, which contain the self-contributions of atoms read subsequently, and are aggregated separately between different systems.
[0080] For the three-dimensional periodic system, the generation process of query, key, and value still follows equation (7), but the spatial weighting method of the summary aggregation stage is changed. The periodic system no longer uses the central radial component in the finite system, but instead, according to the reciprocal spatial mode, the cosine and sine phase-weighted key-value outer products are accumulated respectively to form the periodic key-value summary: (9) Each abstract is a Dq×Dv matrix, stored separately by system and mode. Within a batch, each system uses its own unit cell and mode; atomic blocks only accumulate partial abstracts for their respective systems. [Symbols here] The content key represents a dimensionless physical quantity, in equation (4). These represent three-dimensional reciprocal lattice vectors, distinguished by atomic indices and pattern indices, respectively.
[0081] Step S40: Based on the radial features and query vector of each atom, the key value summary is read, and the reading result is scaled based on the scaling factor determined by each atom itself to obtain the long-range update information of each atom.
[0082] The scaling factor for this atom refers to the normalized denominator calculated solely from the features of the currently read atom itself, used for adaptive scaling of the read results. Since the key-value digest summarizes the content information of the entire system, directly allocating it to all atoms in the same proportion would lose the differentiated requirements of each atom in its different spatial locations. Therefore, it is necessary to extract the atom-related portion from the key-value digest using the features of the read atom itself and the query vector, and then normalize it using a scaling factor that depends only on the atom itself. This allows each atom to receive a global update that matches its environment while maintaining a controllable computational scale.
[0083] Specifically, step S40 includes: shrinking the key-value digests corresponding to each radial index based on the query vector of the read atom to obtain intermediate read results corresponding to each radial index; performing a weighted summation of each intermediate read result based on the radial components corresponding to each radial index in the radial features of the read atom to obtain an unscaled read vector; determining the scaling factor of this atom based on the sum of each radial component in the radial features of the read atom and the sum of each component of the key vector of the read atom; scaling the unscaled read vector using the scaling factor of this atom to obtain long-range update information.
[0084] For a finite system, the process of reading atom i can be represented as: (10) in, This is the scaling factor for this atom. For long-term updates, This is the lower bound of the numerical value. The denominator is obtained by summing the radial and bond components of the atom itself, excluding the query vector and not summing the bonds of other atoms. When the sum of the radial components is 1 and the final lower bound of the denominator is not effective, the denominator is equal to the sum of the components of the atom's bond vector. The key value summary is responsible for summarizing system information, while the denominator is responsible for scaling at the read end; the two are clearly separated in their indexing and function.
[0085] For a three-dimensional periodic system, the readout process uses the matching phase of the read atom and the query for the contracted periodic bond value summary, multiplied by the mode weight and summed. The denominator directly uses the sum of the positive bond components of the atom and the lower limit of the value. The relationship between periodic readout and atom scaling is expressed as: (11) in, For the atomic scaling factor of the periodic system. This provides long-range update information for periodic systems. The periodic phase characteristic can be signed, so the denominator is directly defined by the positive key, without using the positive value interpretation of the sum of radial components in the finite form.
[0086] Through the above reading process, the cosine and sine phases at the contributing end are matched and multiplied with the phase at the reading end. This pattern-based same-index contraction makes the above operation mathematically equivalent to implicitly forming a pure spatial kernel, without the need to explicitly construct a spatial kernel matrix of all-atom pairs. Substituting equation (9) into equation (11), the spatial kernel corresponding to this periodic system can be expressed as: (12) Therefore, the complete reading process can also be equivalently represented as:
[0087] in, For complete mixed weights.
[0088] Shared non-negative pattern weights give the pure spatial kernel a symmetric, positive semi-definite Gram structure, but its matrix elements can still be negative. Complete mixed weights, containing different query / key mappings and atom-wise denominators, are typically asymmetric and not guaranteed to be positive semi-definite or have a row sum of 1. The above pairwise form is used for mathematical interpretation; actual calculations are performed by pattern summarization.
[0089] Complex summaries can also be used for the same calculation. ,use This represents the reading of paired triangular terms. Using negative phase at the contribution end and positive phase at the reading end, while maintaining consistent mode weight counts, yields equivalent real-valued results. If normalization is performed according to atom count, volume, or other scales, it serves as an independent configuration record that alters the model's numerical values.
[0090] Through the aforementioned atom-by-atom reading and scaling process, each atom can obtain long-range information related to its own content and spatial location from the key-value summary. The calculation of the denominator does not depend on the bond vectors of other atoms, avoiding the additional overhead of system-wide row normalization. This process, together with the aforementioned summary aggregation, achieves algebraic rearrangement, enabling the complete model to maintain linear time complexity for the number of atoms with a fixed feature width, and providing differentiated long-range update information for subsequent fusion and task readout.
[0091] Step S50: The long-range update information is fused back into the corresponding atom-by-atom features to obtain the enhanced atom representation.
[0092] Long-range increments refer to the changes that, after output projection and gating adjustment, are prepared to be superimposed on the original atomic features. When the long-range module is connected to a pre-trained local model, directly adding long-range information back to the original features with randomly initialized weights can easily destroy the effective representations already learned by the local model in the early stages of training. Therefore, a smooth and learnable fusion mechanism is needed to allow the model to gradually and stably incorporate long-range spatial information.
[0093] Specifically, step S50 includes: projecting the long-range update information onto the same dimension as the atom-by-atom feature through output projection to obtain the projected feature; obtaining the preset gating bottom-level parameters, performing a sigmoid function mapping on the gating bottom-level parameters to obtain the gating coefficients; multiplying the projected feature and the gating coefficients channel by channel to obtain the long-range increment; and adding the long-range increment to the corresponding atom-by-atom feature residual to obtain the enhanced atom representation.
[0094] Both the finite system and the three-dimensional periodic system employ the same gated residual fusion method. The finite system will read the results. As input, the periodic system will read the periodic results. As input, the enhanced content is obtained through output mapping and gating, and then written back or mapped as a long-range increment via the host interface. Periodic branches can have their output and gating parameters set independently. The relationship between their channel-by-channel gating residual updates is expressed as follows: (13) in, The output projection matrix is used to map long-range update information from Dv dimensions back to C dimensions; These are the underlying parameters for gating. The gating coefficient; This indicates channel-wise multiplication; the sigmoid function maps real numbers to the interval between 0 and 1. The gated underlying parameters are learnable network variables, and their initial values, along with the initialization of the output projection matrix, jointly determine the magnitude of the initial residual.
[0095] As an example, this embodiment describes the output projection matrix. Zero initialization is used, with the gating coefficients initially set to 0.05. Since the output projection weights are zero, and intermediate results are limited in the initial training phase, the newly added long-range increments are zero, making the model equivalent to the original local model in the early stages of training. As training progresses, the long-range increments are determined by the read values, output projections, and gating, and are gradually introduced. The small initial gating value itself does not constitute a global upper bound on the magnitude, but this zero-initialization strategy ensures a smooth transition of the model from purely local computation to computation involving long-range interactions.
[0096] Regarding the feature re-attachment method, if the width of the long-range module output matches the width of the corresponding scalar channel in the local model, the enhanced content can directly replace the corresponding scalar of the same width in the local model. When mapping back to the original representation is required, the difference before and after enhancement is used as the long-range increment, and then the mapping is performed to match the width of the original representation. When using incremental re-attachment, zero increment corresponds to zero update, avoiding the repeated overlay of the original content.
[0097] Finally, the reconnected features are handed over to the pre-determined subsequent local computation or task readout. Long-range modules can be connected only after the last local layer or between multiple local layers; each call uses the current content at that position to reconstruct the summary and read the update. The augmented scalar must actually influence the output through subsequent local layers, common normalization, higher-order gating, or task coefficients; if higher-order readouts only use the original branches not yet coupled with the augmented scalar, the final long-range update may not be able to enter the target computation. Therefore, the reconnection position and feature exit point are determined together.
[0098] As an example, in the layer-by-layer implementation of EquiformerV3, the updated zero-order scalar channel is fed into the next local layer along with the retained higher-order isovariant channels. Terminal normalization is then performed after all local layers are completed. For the same configuration, the center and radius of computation are mathematically identical across layers, but the radial and content mapping parameters are set independently, and the local inputs are updated with each layer. The terminal-only approach sets only one set of branch parameters, while the layer-by-layer approach includes multiple sets of independent branch parameters. Since the two use different parameter organizations, the original weights cannot be directly considered switchable.
[0099] Through the aforementioned gated residual fusion and zero-initialization mechanism, this embodiment achieves stable integration of long-range information and local features, enabling the enhanced atomic representation to effectively enter subsequent local computations or task readouts while preserving the integrity of the model's original high-order geometric representation. Combined with the aforementioned radial index-based summary aggregation and local atom scaling readout, the entire long-range interaction process maintains the atomic correspondence while keeping the computational scale within a range that grows linearly with the number of atoms.
[0100] For example, refer to Figure 2 , Figure 2 This paper presents a complete flowchart for constructing long-range characterizations of atomic systems based on radial kernels. After inputting the atom types, three-dimensional coordinates, system classification, and boundary conditions, the system extracts atom-by-atom content features using a local model and performs spatial encoding branching based on the current system's boundary conditions. If the system is determined to be finite, the common center radius is calculated and a normalized Gaussian radial mapping is performed; if it is determined to be a three-dimensional periodic system, the reciprocal lattice modulus weights and lattice compatibility phases are calculated. Based on the determined spatial features, the system performs weighted aggregation of the bond vectors and value vectors of each atom according to the system and spatial index to obtain a key-value summary. Subsequently, atom-by-atom matching and reading are performed, and the atom is scaled based on its own features.
[0101] After scaling, the read results are projected and gated residuals are fused with the original local content to obtain the enhanced atomic representation. The system determines whether there is another local layer in the current network; if there is, the enhanced representation is used as input, the local content is extracted again, and subsequent updates are performed in a loop; if there is no further local layer, the final enhanced atomic representation is sent to the task readout layer for energy readout and atomic force calculation.
[0102] refer to Figure 3 , Figure 3This paper presents a schematic diagram of a finite system-wide indexed summarization and atom-by-atom reading process based on radial kernel-based long-range characterization of atomic systems. The system calculates the common center for effective atomic groups within the same system and applies the same normalized Gaussian mapping to obtain the radial features of each atom. At the contribution end, for contributing atom j, the system obtains its radial component, bond vector, and value vector; at the reading end, for reading atom i, the system obtains its radial component, query vector, and bond vector. During the summary aggregation process, the contribution end fixes the radial index a, and spatially weights and accumulates the outer product of the bond values of each contributing atom by multiplying it by the corresponding radial component, obtaining a system summary matrix corresponding to each radial index. During the reading process, the reading end performs matching based on the same radial index, shrinks the system summary matrix using the query vector of the reading atom, multiplies it by the corresponding radial component, and then sums the results. The system calculates and determines the scaling denominator only based on the radial and bond components of the reading atom itself, and then adaptively scales the reading result obtained by dividing the summed result by this denominator. Finally, the scaled reading results are projected and gated, and the residuals are added back to the corresponding original local content, outputting enhanced features that maintain a one-to-one correspondence of atomic order.
[0103] refer to Figure 4 , Figure 4 This paper presents a schematic diagram of the calculation process for the periodic modulus weights and matching phases of a three-dimensional periodic system based on long-range characterization of atomic systems using radial kernels. The system calculates the three-dimensional reciprocal lattice vectors based on the input cell matrix and a finite set of integer patterns. Simultaneously, the system acquires the three-dimensional coordinates of the atoms and performs an inner product operation between the reciprocal lattice vectors and the atomic positions to generate lattice-compatible periodic phases. On the content processing side, the system extracts local content and maps it to query vectors, bond vectors, and value vectors for each atom. The system applies a radial function to the modulus of the reciprocal lattice vectors to calculate the non-negative radial weights shared by each pattern. In the summary aggregation stage, the system combines the periodic phases and content features, accumulating them separately for the system and reciprocal space patterns to form periodic key-value summaries in cosine and sine forms. Upon entering the reading stage, the system uses the periodic phases and query vectors matched by the read atoms to shrink the key-value summaries and performs a weighted summation based on the pattern weights. Subsequently, the system uses only the sum of the positive bond components of the read atoms themselves as the denominator to perform atom-specific scaling on the above reading results. Finally, the system projects and gates the scaled results, and then feeds the output in-order enhanced features into subsequent local computation or task readout layers.
[0104] Optionally, multiple sets of radial scales, radial centers, or inverted spatial frequency windows can be set on the basic relationship of a single call, and then spliced or weighted fused after aggregation. Multiple heads can each use different content projections and spatial parameters to form multiple long-range information channels. Conditions can be applied to input, query / key / value mapping, or gating, and can also modulate radial amplitude and task readout. The summary can be added to contributing atoms, and the same effective set can be divided into several atomic blocks. Each block calculates a partial summary of the same dimension and then adds them together. Reading can also be performed in blocks, and the atomic order is restored at the end. When the spatial basis, content parameters, and effective set are consistent, the block division maintains the original mathematical summation relationship.
[0105] This embodiment extracts atom-by-atom features through a local model, providing the foundational content including the local chemical environment for subsequent long-range interactions. By selecting common-center radial encoding or reciprocal lattice phase encoding based on boundary conditions, global spatial references are established for finite systems and three-dimensional periodic systems, respectively, without local truncation restrictions and satisfying the corresponding geometric transformation requirements. Through radial index-based summary aggregation and atom-by-atom reading based on the atom scaling factor, atom-by-atom differentiated updates are achieved without explicitly constructing a full atom pair matrix, and the computational scale of long-range interactions is controlled within a range that grows linearly with the number of atoms. By using gated residual fusion combined with zero initialization of output projection, the long-range increment is kept zero in the early stages of training, allowing the model to smoothly transition from purely local computation to computations including long-range interactions. The above process solves the problems that environments outside of local adjacency are difficult to include in atom representation, the computational cost of global interactions grows with the square of the number of atoms, and the fold coordinate center in periodic systems shifts with the change of the periodic image. While maintaining the equivalence of the periodic image and computational feasibility, it improves the prediction accuracy of atomic system energy and atomic forces.
[0106] Second Embodiment The second embodiment of this application provides a method for constructing long-range characterizations of atomic systems based on radial kernels. Contents identical or similar to those in the above embodiments can be found in the preceding description and will not be repeated hereafter. Based on this, please refer to... Figure 5 Following step S50, the method for constructing long-range characterizations of atomic systems based on radial nuclei further includes steps S60-S80: Step S60: Input the enhanced atomic representation into the energy readout layer to obtain the learning energy of each atom.
[0107] The enhanced atom representations output in the preceding steps have already incorporated information from local geometry and the distant environment. To evaluate the scalar contribution of individual atoms to the total energy of the system, they are input into an energy readout layer. This layer, composed of a shared linear mapping or a shallow neural network, maps the enhanced representations to scalars, namely the learned energy of each atom. This energy represents the contribution of a single atom to the total energy of the system, given the context of the entire system.
[0108] Step S70: Summing the learning energy of each atom and the preset elemental reference terms to obtain the total energy of the corresponding atomic system.
[0109] Absolute energy standards typically lack a definite physical meaning, therefore a pre-defined elemental reference energy is introduced. ,in This represents the atomic number. The total energy of the atomic system is obtained by adding the learning energy of each atom to the reference energy of its corresponding element. .
[0110] As a feasible implementation method, when the interatomic distance is extremely close, a ZBL short-range repulsion correction term can be introduced to accurately predict strong repulsion. Total energy The calculation relationship is expressed as follows:
[0111] in, For an effective set of atoms, The set of directed edges that actually participate in the computation. The edge distance between atoms. and These represent the short-range envelope and the shielding repulsion potential, respectively, with energy units in eV. (The text before the formula is incomplete and likely refers to a separate topic.) The coefficients are used to ensure that each disordered atom pair is calculated exactly once when all non-zero repulsive atom pairs have opposite corresponding edges. If the repulsion correction is turned off, the term after the plus sign is simply omitted.
[0112] Step S80: Calculate the negative gradient of the total energy with respect to the three-dimensional coordinates of each atom to obtain the predicted atomic force of each atom.
[0113] To ensure the model is suitable for molecular dynamics simulations or structure optimization, the physical consistency of forces must be guaranteed. After outputting the total energy, the number of atoms in the effective atomic set is used as a reference. Calculate the average energy per atom The negative gradient of the total energy with respect to the atomic coordinates is used to predict the atomic force.
[0114] Atomic forces target the negative gradient of the total energy with respect to coordinates, measured in eV / Å. Conservative forces must be obtained by differentiating the total energy; they cannot be replaced by the gradient of the average energy per atom, otherwise energy conservation would be violated. During differentiation, the gradient must penetrate not only the local model and energy readout layer but also the aforementioned long-range modules S20 to S50, including complete coordinate dependencies such as common centers or periodic phases, radial mappings, and gated fusions. If the learning and repulsion terms are calculated separately, their energies and forces must be added under the same configuration and edge set.
[0115] The original radius is generally not differentiable at the point where the atom coincides with the common center, and hard lower bounds and adjacency switching also need to be handled as execution branches. When continuous differentiation is required at the points of coincidence and lower bound switching, a matching smoothing variant can be used: with a positive smoothing length Define smooth radius Add the Gaussian components by their sum. Normalization involves reading the denominator, multiplying the sum of the radial components by the sum of the bond components, and then adding the product. In implementation, the smooth radius should be constructed directly using the sum of squares of the displacement components, avoiding the initial execution of the unsmoothed norm in the computation graph. The smoothed variant retains the organization of same-index aggregation and local atom scaling, but the numerical values differ from the original configuration and must be trained according to the configuration used. If a backbone network such as EquiformerV3 is used, it may employ partial gradient masking near the local polar axis. When the task requires a strictly complete output derivative, the local geometry must also use a differentiable path consistent with the forward pass.
[0116] To train the energy and force prediction model described above, this embodiment employs a joint training mechanism. The joint loss is calculated using reference energy and force labels, and the learnable parameters are updated via task readout, local backbone, and radial branch.
[0117] in, For training the system batch on device r, The energy per atom is represented by an asterisk (*), indicating a reference label. The energy term represents the absolute error per atom energy, and the force term represents the per-atom vector L2 error; 10 and 5 are loss weights with fixed numerical units. During training, the loss is averaged across the system within the device, and then the gradient is averaged across devices. The force index is evaluated using the per-axis component MAE, defined separately from the force vector error during training.
[0118] Third Embodiment The third embodiment of this application provides a method for constructing long-range characterizations of atomic systems based on radial nuclei. Contents identical or similar to those in the above embodiments can be referred to the above description and will not be repeated hereafter. The aforementioned second embodiment obtained atomic forces by differentiating energy with respect to coordinates. In actual material simulations, in addition to atomic forces, the macroscopic stresses experienced by the system are equally crucial: stress can be used to evaluate the mechanical response of materials under load, calculate elastic constants, and guide cell relaxation to find more stable geometric structures. Therefore, after obtaining the total energy of the system, this embodiment further provides a method for calculating the system stress tensor by differentiating energy with respect to cell strain.
[0119] Specifically, after step S70, the method further includes: applying a preset strain transformation to the three-dimensional coordinates and unit cell of each atom, and calculating the stress tensor of the atomic system based on the derivative of the total energy with respect to the strain.
[0120] In practical implementation, a zero-valued, differentiable, dimensionless strain matrix is set for each system. Since the atomic positions in the aforementioned steps are mostly represented by column vectors. This means that, since row vector conventions are required when calculating unit cell deformation, the three-dimensional coordinates of all atoms in the system are arranged in rows to form a working coordinate matrix. Simultaneously, the unit cell matrix is taken. This makes each row a unit cell basis vector. It is a three-dimensional identity matrix. (Strain matrix) The lower limit of the denominator in equation (3) Different. Regarding working coordinates and unit cell Simultaneously applying a symmetrical strain transformation, the transformation relationship is expressed as:
[0121] The local geometry and selected spatial core are recalculated using the transformed coordinates and unit cell. For finite system forms, the central radius needs to be recalculated; for periodic forms, the inverse unit cell matrix, reciprocal lattice vectors, radial frequencies, and periodic phases need to be recalculated. In three-dimensional reversible unit cell representations and fixed integer modes, the above expressions maintain the fractional coordinates, and the strain dependence of the reciprocal phase is precisely canceled; the reciprocal lattice vector modulus, radial weights, and local contents still participate in the differentiation.
[0122] Subsequently, the stress is output according to the normalized derivative of the undeformed unit cell volume and the convention of the positive energy-strain derivative. :
[0123] When the total energy is eV and the coordinates are Å, the volume unit is ų, and the stress unit is GPa. A positive energy-strain derivative is used here; the negative sign of the force formula cannot be directly applied. If other stress or virial notations are used in the label, they must be standardized before training. Strain differentiation must also retain complete dependencies and include both the unit cell and the working coordinates. The derivative object must be the total energy; the average energy per atom cannot be directly substituted. The component conventions for symmetric strain and engineering shear strain must be strictly distinguished.
[0124] In practice, the total energy, including the corresponding corrections, can be directly differentiated, or the strain derivatives of the learned energy and the correction energy can be calculated separately and then added together with the same volume, sign, and unit. During joint training, stress labels with consistent definitions are loaded and corresponding losses are set; when outputting energy, force, and stress simultaneously, a consistent energy derivative path is used. If a direct tensor stress head is used, it is configured as a separate task parameter and is not automatically assigned the same relationship as the energy derivative.
[0125] Calculating stress requires input with a non-zero and well-defined volume. For isolated molecules, which are artificial unit cells used for mapping, the volume is not a natural physical quantity, and the result normalized to this volume cannot be directly interpreted as the material's bulk stress. Periodic solids employ lattice-compatible reciprocal cores and volume definitions; the elastic response can be calculated using the corresponding strain derivatives or a specified strain sequence. For low-dimensional materials with a vacuum layer, stress can be output by area, effective thickness, or a selected three-dimensional volume, with units determined by the reduction convention.
[0126] Fourth embodiment The fourth embodiment of this application provides a method for constructing long-range characterizations of atomic systems based on radial kernels. Contents identical or similar to those in the above embodiments can be found in the preceding description and will not be repeated hereafter. This embodiment further illustrates the algebraic equivalent of the "aggregate first, read later" mechanism, and the data flow relationship of tensors during actual execution.
[0127] To illustrate what interatomic information is preserved in the key-value digest, the aforementioned mapping and aggregation process can be expanded using real algebra. Substituting equation (8) into the digest contraction term in equation (10), we obtain:
[0128] At this point, the radial feature components of the contributing and reading ends under the same index are multiplied and summed over 'a' to form a spatial kernel. Combining the inner product of content feature queries and keys, as well as the denominator scaling of this atom, a complete pairwise hybrid expression is obtained: (14) This expression provides the equivalent mathematical form of the aforementioned summary aggregation and reading steps. In a finite system, since all factors are non-negative and the denominator is positive, all terms of the mixed weights are non-negative; however, queries and keys use different mappings, and the denominator also varies with atoms. The complete weight matrix is usually asymmetric, and semi-positive definiteness cannot be directly inherited from a pure radial kernel; its row sum is not fixed at 1. In actual execution, the network does not need to add a full atom pair interaction step, but completes the calculation through summary aggregation and query contraction.
[0129] In actual tensor calculations, spatial components and content features are first combined, then contracted along the radial index and query / key channels respectively, with no cross-pairing between different radial components. Let N represent the total number of valid atoms in the batch, and G represent the number of non-empty atom groups. The tensor relationships in the calculation process are as follows:
[0130] The resulting N×C output maintains a one-to-one correspondence with atoms, allowing downstream applications to directly receive updated content without requiring remapping due to feature updates. The radial distribution is encoded by the central radius, while elements, electronic states, and local angular orientations are still represented by the content; even with the same central radius, different content can generate different queries and keys.
[0131] Based on the tensor relations described above, the calculation of the center and radius increases linearly with N, and each atom calculates M radial components. Therefore, radial mapping requires... Operations, queries / key / value pairs, and output mappings require... Operations, mainly aggregation and retrieval. The computation. With a fixed feature width C, radial feature number M, query / key width Dq, and value width Dv, the time complexity of a single finite-length call is... .
[0132] In terms of storage, direct tensor implementations generate atom-by-atom intermediate data of the N×M×Dq×Dv scale and store a summary of the G×M×Dq×Dv scale. Including the atom-by-atom content, the total storage at a fixed width increases linearly with N. Blocking limits the number of intermediate blocks residing simultaneously, and the active storage for backpropagation depends on the save or recalculation strategy.
[0133] For a three-dimensional periodic system, the main computational cost of its direct aggregation is the computational cost of each system. The sum of these factors, along with the construction of the radial frequency weights, increases with the number of modes Pg and the radial frequency dimension. Under a fixed mode number configuration, its dependence on the number of atoms N is linear; however, if a fixed upper limit for the physical wavenumber is used and the unit cell is enlarged, the mode number typically increases with volume, and the product of the number of atoms N and the number of modes P may increase quadratically. The finite-dimensional summary provides the linear implementation of the defined nucleus under a fixed configuration; the periodic resolution and the system growth pattern still determine the overall overhead.
[0134] The computational overhead of the complete task also includes local graphing, host layer, adapter, task readout, and target derivative. When a fixed N generation configuration repeatedly calls long-range modules, this overhead is multiplied by the number of calls; during autoregressive generation, the cumulative overhead varies with the final number of atoms as the prefix is recalculated each time an atom is added. The above computational scale is based on the algebraic rearrangement of the defined kernel; the execution time on specific hardware is affected by the actual configuration.
[0135] Fifth embodiment The fifth embodiment of this application provides a method for constructing long-range representations of atomic systems based on radial kernels. Contents identical or similar to those in the previous embodiments can be found in the above description and will not be repeated hereafter. In the aforementioned embodiments, the long-range module needs to be combined with various pre-set local models (such as EquiformerV3, PaiNN, etc.). The scalar feature dimensions output by the backbones of different local models often differ; when the long-range module is added as a new branch to a pre-trained local model, direct feature fusion can easily destroy the effective representations already learned by the host in the early stages of training. Therefore, this embodiment provides an interface dimension adaptation and smooth reconnection mechanism.
[0136] If the scalar feature dimension output by the local model is inconsistent with the width of the long-range module interface, dimension adaptation is required. The scalar features output by the host should be used instead. For example, firstly, through atom-by-atom shared input mapping The dimension is obtained as Content features :
[0137] Next, the long-term module is invoked to enhance the content features, resulting in enhanced content. Then, the difference between the enhanced content and the adapted content is calculated to obtain the long-range increment. :
[0138] Finally, through the unbiased matrix The long-range incremental feature is then back-projected back to the original dimension of the host system and added to the original scalar feature to obtain the back-hook result:
[0139] In the above process, input mapping It only applies to the original content and then backprojects. It only applies to long-range increments. When the initial long-range increment is zero, the backprojection result is also zero, and the eigenvalue equals the original host eigenvalue. This avoids repeatedly adding the original content and ensures the smoothness of feature rejoining. If non-linear rejoining is used, it can be defined as... To maintain a zero-incremental relationship.
[0140] If the output dimension of the local model matches the interface width of the long-range module, the input mapping and the loopback mapping can be made identical mappings, thus eliminating the need for interface adaptation.
[0141] Sixth Embodiment The sixth embodiment of this application provides two specific finite system machine learning atomic potential models, namely 5M LR and 20M LR, and illustrates their performance with test data. Content that is the same as or similar to the above embodiments can be referred to the above description, and will not be repeated hereafter.
[0142] Example 1: 5M LR model The 5M LR model employs a four-layer locally equivariant backbone network, with each layer having 128 channels, a maximum angular order of 2, a feedforward network width of 256, a local cutoff radius of 6 Å, and a neighbor limit of 30. A radial long-range branch, as described in the previous embodiment, is added after each local backbone layer. The model has a total of 5,559,391 parameters, including fixed element reference terms.
[0143] When processing an input batch, the atomic system and local graph are first prepared according to step S10. Then, in the four local layers, the current content features are extracted sequentially, and the aforementioned steps S20 to S50 (center radial mapping, key-value summary aggregation, reading, and gated fusion) are performed. After step S50, the process continues to the next layer. After the last layer, the task readout layer calculates the total energy, energy per atom, and atomic force, and optimizes using the aforementioned joint loss function. Local truncation only restricts the local backbone network; radial long-range branches are always aggregated according to all effective atoms within each system.
[0144] The model was trained for 12 epochs, with BF16 precision used for local computation and FP32 precision used for radial branching. Both the model and data random seeds were set to 3407; the optimizer used was AdamW, with both momentum coefficients at 0.95 and a numerical stability term of 10. -8 .
[0145] Example 2: 20M LR model The 20M LR model employs a seven-layer local backbone network with 128 channels, a maximum angular order of 3, a feedforward network width of 512, a local cutoff radius of 6 Å, and a neighbor limit of 300. The width, scale, and initialization configuration of the radial branches in each layer are the same as those in the 5M LR model. The aforementioned long-range updates are performed layer by layer, and the same energy and force readouts are performed at the end. The total number of parameters for this model is 20,623,711.
[0146] The model was trained for 12 epochs using FP32 precision on 32 H800 GPUs. The optimizer was AdamW, and the weight decay was set to 10. 3 The gradient clipping threshold is set to 100; the learning rate is increased from 3 × 10⁻⁶ over 100 warm-up steps. 5 Linear increase to 3×10 4 It then decays to 3×10 using a cosine strategy. 6 Each device uses a batch budget of up to 60,000 original neighboring edges and optimizes it using the aforementioned joint loss function.
[0147] The table below lists the evaluation results for the 5M baseline, 5M LR, and 20M LR models. The MAE (mean absolute error) is reduced by energy per atom, total energy per structure, and force coordinate components, respectively.
[0148] Calculations showed that the MAE (Maximum Equation of Error) of both LR models was lower than the baseline. Specifically, the 5M baseline had a total of 5,476,191 parameters, while the 5M LR had 83,200 more parameters, representing an increase of approximately 1.52%. The relative error reduction was calculated based on the baseline MAE. Calculated by dividing the baseline MAE by 100%, the energy per atom, total structural energy, and force of 5M LR are reduced by approximately 67.42%, 64.17%, and 36.32%, respectively; the corresponding reductions for 20M LR are approximately 74.66%, 73.40%, and 60.51%, respectively.
[0149] The above data reflects the overall configuration effect of the energy and force model for finite systems. Since the 5M LR includes radial long-range branching, electronic state conditions, and ZBL corrections, and the 20M LR further changes the model capacity, neighbor number, and numerical accuracy, the above error reduction cannot be simply interpreted as the ablation gain brought by the radial kernel alone, nor should it be used to directly infer its predictive effect in periodic systems or generation tasks.
[0150] It should be noted that the enhanced atomic representations described above, in addition to being used for energy, atomic force, and stress readouts, can also be configured for other task readouts based on target objects, aggregation levels, transformation rules, and conditional variables. For example, per-atom quantities can be applied to enhanced atomic content using shared mapping while retaining atomic indices; system scalars can be summed, averaged, or weighted pooled based on additivity; vector or tensor responses can be modulated by enhanced scalars and assembled according to the target order and parity; electronic structure matrices can be assembled by coupling orbital pair indices and basis sets; and spatial field query points can receive information from enhanced atomic representations and relative geometry. In the generation task, denoising networks, velocity field networks, autoregressive conditional prediction networks, normalized flow conditional networks, VAE encoding / decoding networks, or GAN generation / discrimination networks can call the aforementioned long-range modules according to their allowed readout structures, while maintaining the corresponding atomic indices. Each task specifies the output dimension, units, constraints, and labels, without changing the aforementioned radial encoding, summary aggregation, and local atomic scaling relationships.
[0151] This application provides a radial kernel-based long-range characterization construction device for atomic systems. The radial kernel-based long-range characterization construction device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the radial kernel-based long-range characterization construction method for atomic systems described in the first embodiment above.
[0152] The following is for reference. Figure 6 The diagram illustrates a structural schematic suitable for implementing the radial kernel-based long-range characterization construction device for atomic systems according to embodiments of this application. The radial kernel-based long-range characterization construction device for atomic systems according to embodiments of this application may include various hardware and software components for implementing the radial kernel-based long-range characterization construction method for atomic systems. Figure 6 The illustrated long-range characterization construction device for atomic systems based on radial nuclei is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0153] like Figure 6 As shown, the radial kernel-based long-range characterization construction device for atomic systems may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the radial kernel-based long-range characterization construction device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the radial nucleus-based long-range characterization construction device for atomic systems to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a radial nucleus-based long-range characterization construction device for atomic systems with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.
[0154] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0155] The radial kernel-based long-range characterization construction device for atomic systems provided in this application, employing the radial kernel-based long-range characterization construction method for atomic systems described in the above embodiments, can solve the technical problem that existing atomic-scale models struggle to effectively introduce far-end radial environmental information without explicitly constructing a full-atom pair matrix while satisfying periodic image equivalence. Compared with the prior art, the beneficial effects of the radial kernel-based long-range characterization construction device for atomic systems provided in this application are the same as those of the radial kernel-based long-range characterization construction method for atomic systems provided in the above embodiments, and other technical features in this radial kernel-based long-range characterization construction device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0156] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0157] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0158] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the method for constructing long-range characterization of atomic systems based on radial nuclei in the above embodiments.
[0159] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or apparatus. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0160] The aforementioned computer-readable storage medium may be included in a radially nucleated atomic system long-range characterization construction device; or it may exist independently and not assembled into a radially nucleated atomic system long-range characterization construction device.
[0161] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by a radial kernel-based long-range characterization construction device for atomic systems, the device performs the following actions: acquires the atom type, three-dimensional coordinates, and boundary conditions of each atom in an effective atom set; extracts local features from the effective atom set using a local model to obtain per-atom features; determines a radial spatial encoding strategy based on the boundary conditions; encodes each atom based on the radial spatial encoding strategy to obtain radial features of each atom, wherein the radial features contain multiple radial components; performs content mapping based on the per-atom features to obtain query vectors, key vectors, and value vectors of each atom; aggregates the key vectors and value vectors of each atom based on radial indexes to obtain key-value summaries; reads the key-value summaries based on the radial features and query vectors of each atom; scales the read results based on the scaling factor determined by each atom itself to obtain long-range update information for each atom; and fuses the long-range update information back into the corresponding per-atom features to obtain enhanced atomic characterization.
[0162] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., using an internet connection from an internet service provider).
[0163] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation that may be implemented in systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0164] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0165] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described method for constructing long-range characterizations of atomic systems based on radial kernels. This solves the technical problem that existing atomic-scale models struggle to effectively introduce far-end radial environment information without explicitly constructing a full-pair matrix while satisfying periodic image equivalence. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the long-range characterization construction method for atomic systems based on radial kernels provided in the above embodiments, and will not be elaborated upon here.
[0166] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for constructing long-range characterizations of atomic systems based on radial kernels.
[0167] The computer program product provided in this application can solve the technical problem that existing atomic-scale models are unable to effectively introduce far-end radial environment information without explicitly constructing a full atom pair matrix and satisfying the periodic image equivalence. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the long-range characterization construction method for atomic systems based on radial kernels provided in the above embodiments, and will not be repeated here.
[0168] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
[0169] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0170] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0171] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for constructing long-range characterizations of atomic systems based on radial kernels, characterized in that, The method for constructing long-range characterizations of atomic systems based on radial kernels includes: The atom type, three-dimensional coordinates and boundary conditions of each atom in the effective atom set are obtained, and the local features of the effective atom set are extracted by the local model to obtain the atom-by-atom features; A radial spatial encoding strategy is determined based on the boundary conditions, and each atom is encoded based on the radial spatial encoding strategy to obtain the radial features of each atom, wherein the radial features contain multiple radial components. Content mapping is performed based on the aforementioned atom-by-atom features to obtain the query vector, key vector, and value vector of each atom. Then, the key vector and value vector of each atom are aggregated according to the radial index to obtain the key-value summary. Based on the radial features and query vector of each atom, the key value digest is read, and the reading result is scaled based on the scaling factor determined by each atom itself to obtain the long-range update information of each atom. The long-range update information is fused back into the corresponding atom-by-atom features to obtain the enhanced atomic representation.
2. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, The step of determining the radial spatial encoding strategy based on the boundary conditions, and encoding each atom based on the radial spatial encoding strategy to obtain the radial features of each atom includes: The atomic system to which each atom belongs is determined based on the boundary conditions described above; When the atomic system is a finite system, the common center is determined based on the three-dimensional coordinates of the effective atoms within the atomic system; The scaling radius of each atom is determined based on the distance of each atom from the common center and a preset positive length scale; The radial characteristics of each atom are obtained by mapping the scaling radius using multiple radial basis functions and normalizing the mapping results.
3. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, The step of determining the radial spatial encoding strategy based on the boundary conditions, and encoding each atom based on the radial spatial encoding strategy to obtain the radial features of each atom includes: The atomic system to which each atom belongs is determined based on the boundary conditions described above; When the atomic system is a three-dimensional periodic system, a set of reciprocal lattice vectors is constructed based on the unit cell matrix of the atomic system; The phase of each atom under each reciprocal lattice vector is determined based on the three-dimensional coordinates of each atom and the inner product of each reciprocal lattice vector in the set of reciprocal lattice vectors. Based on the modulus of each reciprocal lattice vector, the mode weights corresponding to each reciprocal lattice vector are determined through multiple radial basis functions; Based on the mode weights and the trigonometric function values of the phase of each atom under each reciprocal lattice vector, the radial features of each atom are generated.
4. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, The step of summarizing and aggregating the bond vectors and value vectors of each atom according to radial index to obtain a key value summary includes: Calculate the cross product of the bond vector and value vector of each atom to obtain the bond-value cross product matrix; Extract the spatial feature components of each atom, and weight the corresponding bond value outer product matrix based on the spatial feature components; The weighted outer product matrix of the key values belonging to the same atomic system and corresponding to the same radial index is summed to obtain the key value summary corresponding to each radial index.
5. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, The steps of reading the key-value digest based on the radial features and query vector of each atom, and scaling the reading result based on the scaling factor determined by each atom itself to obtain the long-range update information of each atom include: Based on the query vector of the read atom, the key value digests corresponding to each radial index are shrunk to obtain the intermediate read results corresponding to each radial index; Based on the radial components corresponding to each radial index in the radial features of the read atom, the intermediate read results are weighted and summed to obtain an unscaled read vector; The scaling factor of the atom is determined based on the sum of the radial components in the radial features of the read atom and the sum of the components of the bond vector of the read atom. The long-range update information is obtained by scaling the unscaled read vector using the atomic scaling factor.
6. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, The step of extracting local features from the effective set of atoms using a local model to obtain atom-by-atom features includes: Based on the preset cutoff radius, the local neighborhood atoms of each atom are determined from the effective atom set, and a local neighborhood graph is constructed. Based on the relative three-dimensional coordinates between each atom and its corresponding local neighbor in the local neighborhood graph, the edge features between each atom and its corresponding local neighbor are obtained. The edge features and the current node features of each atom are input into a graph neural network for multiple rounds of message passing and aggregation updates to obtain the updated features of each atom. The rotation-invariant scalar features in the updated features are extracted as the atom-by-atom features.
7. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, The step of fusing the long-range update information back to the corresponding atom-by-atom features to obtain the enhanced atom representation includes: The long-range update information is projected onto the same dimension as the atom-by-atom feature to obtain the projected feature. Obtain the preset gating underlying parameters, and perform a sigmoid function mapping on the gating underlying parameters to obtain the gating coefficients; The projection feature is multiplied channel by channel by the gating coefficient to obtain the long-range increment; The long-range increment is added to the corresponding atom-by-atom feature residual to obtain the enhanced atomic characterization.
8. The method for constructing long-range characterizations of atomic systems based on radial kernels as described in claim 1, characterized in that, After the step of fusing the long-range update information back to the corresponding atom-by-atom features to obtain the enhanced atomic characterization, the method for constructing long-range characterizations of atomic systems based on radial kernels further includes: The enhanced atomic representation is input into the energy readout layer to obtain the learning energy of each atom; The total energy of the atomic system is obtained by summing the learning energy of each atom and the preset elemental reference terms. The predicted atomic force of each atom is obtained by calculating the negative gradient of the total energy with respect to the three-dimensional coordinates of each atom.
9. A device for constructing long-range characterizations of atomic systems based on radial nuclei, characterized in that, The radial core-based long-range characterization construction device for atomic systems includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the radial core-based long-range characterization construction method as described in any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the method for constructing long-range characterization of atomic systems based on radial nuclei as described in any one of claims 1 to 8.
