The relative positional embedding, in contrast to absolute positional embedding that uses 3D coordinates, employs a relative distance matrix and a bond angle matrix to generate positional embedding. These two matrices are individually processed through separate multi-layer perceptrons (MLPs) to match the dimensionality of the atomic representation and are then directly added to the atomic representation. The relative distance matrix provides information about the distances between each atom and all other atoms, while the arrangement of bond angles in the bond angle matrix is based on the order of atomic distances. This enables the model to deduce the relative positions of atoms from these matrices. It is important to note that the use of relative positional embedding achieves translational and rotational invariance, capabilities not possible with absolute positional embedding.