Model and training
NeSK (Neural Slater-Koster) combines NEP descriptors of atomic environments with a Slater-Koster tight-binding Hamiltonian. The descriptors determine environment-dependent onsite energies and hopping integrals; diagonalizing the Hamiltonian gives the electronic bands. Training adjusts the descriptor and neural-network parameters to reproduce reference band energies.
Atomic environments and hopping integrals
Each atom has a descriptor vector containing two-body radial components and three-body angular components. The radial functions are expanded in a basis with trainable coefficients for each ordered pair of central and neighbor species. The descriptor dimensions and radial expansions are controlled by n_max, basis_size, and l_max. Descriptor scaling is determined from the training structures and is stored with the trained model.
A species-dependent neural network maps the scaled descriptor \(\widetilde{\mathbf q}_i\) to the onsite energies of atom \(i\). There is one onsite energy for each orbital shell: all three \(p\) orbitals share one value, and all five \(d\) orbitals share one value when the basis includes that shell.
For each unordered element pair, a second neural network takes the mean descriptor \((\widetilde{\mathbf q}_i+\widetilde{\mathbf q}_j)/2\) and produces environment factors \(e_n^{ij}\). The hopping integral for Slater-Koster channel \(\mu\) has the form
where \(t_i\) is the species of atom \(i\), \(g_n^{t_i t_j}\) is the radial function used in the descriptors, and \(W_{\mu n}\) and \(b_\mu\) are trainable parameters for the element pair. The hopping cutoff function is
and is zero for \(r\geq r_{\mathrm{c,h}}\). The radial, angular, and hopping cutoffs are specified with cutoff. Both neural networks have one hidden layer with a hyperbolic-tangent activation; neuron controls their respective widths.
Hamiltonian and bands
The basis keyword selects the orbitals on every atom.
Slater-Koster angular factors convert the hopping integrals into matrix elements between orbitals using the direction of each bond. The periodic Hamiltonian includes all image bonds within the hopping cutoff. In the cell-periodic orbital convention used here, a bond from atom \(i\) to an image of atom \(j\) displaced by the lattice translation \(\mathbf R\) contributes
together with its Hermitian conjugate. The diagonal also contains the onsite energies. The orbital basis is orthogonal, and the bands are the eigenvalues of
Input \(\mathbf k\) points use fractional reciprocal-lattice coordinates; the reciprocal vectors include \(2\pi\). The eigenvalues are ordered from lowest to highest at each \(\mathbf k\) point. For a structure containing \(N\) atoms and \(M\) orbitals per atom, the Hamiltonian has dimension \(NM\).
Band selection and accuracy
The reference-band window and its lower index \(b_{\min}\) are set by band_range.
For the selected structure \(s\) in a training batch, the band RMSE is
Here \(K_s\) contains the selected \(\mathbf k\) points of structure \(s\), \(w_n\) is set by band_weight, and \(B_a\) is the number of bands included in the batch error. Full-set evaluations use all selected bands and all supplied \(\mathbf k\) points. The full-set RMSE is the square root of the arithmetic mean of the individual structure mean squared errors. The final MAE is the arithmetic mean of the individual structure mean absolute errors, with the same band weights. Both final errors include the model energy shift and are reported in eV.
Training uses AdamW. See loss.out for the reported metrics.