Inside a crystal, an invisible ballet unfolds: the magnetic moments of atoms, like dancers, sometimes align in unison, sometimes scatter in antiphase. The choreography is dictated by quantum exchange — music sensitive to the geometry of bonds. According to the Goodenough–Kanamori–Anderson rules, the M–X–M angle between a magnetic ion, a ligand, and a neighboring magnetic ion determines whether the spins point in the same direction or opposite. But how can we teach a machine to hear this music?
Standard graph neural networks from the machine learning toolbox only assess distances between atoms, missing critical angles. It's like judging a ballet by shadows: you see the movements but not the fluidity and poses. Moreover, magnetic ions (iron, cobalt, nickel) are often diluted by a non-magnetic environment, such as oxygen in oxides, and their signal gets lost in the averaging. mCGCNN solves the problem with a dual-graph architecture: the structural graph covers the whole troupe, while the magnetic subgraph focuses only on the soloists, with additional edge features encoding M–X–M bond angles. This duo of choreographer and sound engineer allows the network to rediscover the exchange rules and predict magnetic order more accurately.
Training on nearly 20,000 crystal structures from the Materials Project yielded tangible results: the magnetic moment prediction error dropped from 2.54 to 2.02 Bohr magnetons, and the coefficient of determination rose from 0.64 to 0.78. In binary classification of 'ferromagnet or antiferromagnet', the pretrained mCGCNN achieved an accuracy of 75.7%, outperforming the standard architecture by 2%. The progress is particularly noticeable in recognizing ferromagnets: those harmonious ensembles where spins align in the same direction. The model proved: incorporating the physics of orbital superposition and exchange pathways is not a luxury but a necessity for reliable predictions.
This breakthrough paves the way for high-throughput screening of magnetic materials for spintronics and quantum computing, where quantum correlations of spins play a key role. In the future — predicting Curie temperatures, non-collinear textures like skyrmions governed by magnetic reconnection, and even extreme states in the crust of magnetars, where nuclear matter obeys similar angular logic. If previous neural networks saw only a blurred silhouette of magnetic order, mCGCNN for the first time deciphered its choreography down to atomic steps, bringing us closer to the era of smart material design — from first-principles calculations to ready-made devices.
The famous Goodenough–Kanamori–Anderson rules, derived in the 1950s based on orbital overlaps, explain why some oxides become magnets and others don’t. The neural network, trained on thousands of structures, implicitly rediscovered these rules and uses them for predictions.