Continuing from mCGCNN vs CHGNet: metals lose, oxides compete
Satadeep (mCGCNN author) asked us to run a comprehensive classification test including AFM materials like NiO. The short answer: no. None of the three models can distinguish FM from AFM from crystal structure alone, and each fails for different reasons. The longer answer is more interesting.
Three-way magnetic moment classification benchmark: ALIGNN (jvmagmomoszicar_alignn) vs mCGCNN vs CHGNet on 24 materials including 14 ferromagnets (metals and oxides), 8 antiferromagnets (NiO, MnO, FeO, CoO, Cr2O3, α-Fe2O3, MnF2, NiF2), and 2 non-magnetic controls (MgO, SrTiO3). Total magnetic moment per unit cell in μB.
24 materials in three classes:
14 ferromagnets: 6 metallic magnets (Fe, Co, FeCo, FePt, MnBi, SmCo₅) with ABACUS DFT references, plus 8 ligand-bridged oxides (CrO₂, Fe₃O₄, EuO, SrRuO₃, CoFe₂O₄, CaFeO₃, NdTiFe₁₁N, GdO) with Materials Project or mCGCNN sample labels.
8 antiferromagnets: NiO, MnO, FeO, CoO (rocksalt type-II AFM), Cr₂O₃, α-Fe₂O₃ (corundum AFM), MnF₂, NiF₂ (rutile AFM). Ground truth net moment = 0 μB for all.
2 non-magnetic controls: MgO and SrTiO₃.
Three routes, same CIF input:
Predict a crystal property with ALIGNN — jv_magmom_oszicar_alignn: JARVIS-trained line graph neural net, scalar total cell moment
mCGCNN — Mal & Bhattacharjee 2026: ligand-aware CGCNN, scalar total cell moment
CHGNet Ms — site-projected MLIP moments, FM-aligned
Subset | Ref. | ALIGNN MAE | CHGNet MAE | mCGCNN MAE | Winner |
|---|---|---|---|---|---|
Metallic magnets (5 w/ DFT) | ABACUS | 0.73 μB | 0.21 μB | 3.15 μB | CHGNet |
All oxides (8) | MP / sample | 9.92 μB | 1.08 μB | 1.01 μB | mCGCNN |
Independent MP oxides (5) | Materials Project | 9.66 μB | 1.04 μB | 1.32 μB | CHGNet |
CHGNet remains the best moment regressor on metals. mCGCNN is competitive on oxides. ALIGNN is in a different regime entirely.
The key pattern: ALIGNN saturates around 7-8 μB regardless of cell size. Fe₃O₄ (14 atoms, ref 28 μB) gets 7.39. CoFe₂O₄ (14 atoms, ref 26 μB) gets 8.00. NdTiFe₁₁N (14 atoms, ref 23.78 μB) gets 7.83. ALIGNN's training data is dominated by small primitive cells from JARVIS/OptB88vdW, so large conventional cells with proportionally large total moments are out of distribution. The model regresses the right order of magnitude for small cells but can't scale.
ALIGNN also false-negatives both lanthanides: EuO (FM, ref 7.00 μB) gets -0.02, and GdO (FM, ref 6.04 μB) gets -0.003. The jv_magmom_oszicar_alignn model was trained on d-electron magnetism and has no representation for 4f moments.
This is the question that matters for screening. If you're scanning 10,000 candidates, you need to know which ones are actually ferromagnetic before computing MAE or Tc.
Material | Class | Ref (μB) | ALIGNN | mCGCNN | CHGNet |
|---|---|---|---|---|---|
NiO | AFM | 0.0 | 2.74 | 8.25 | 7.54 |
MnO | AFM | 0.0 | 7.15 | 16.59 | 18.71 |
FeO | AFM | 0.0 | 4.07 | 12.52 | 15.26 |
CoO | AFM | 0.0 | 2.65 | 14.05 | 10.93 |
Cr₂O₃ | AFM | 0.0 | 0.37 | 19.04 | 34.22 |
α-Fe₂O₃ | AFM | 0.0 | 0.93 | 23.62 | 58.64 |
MnF₂ | AFM | 0.0 | 7.85 | 12.00 | 9.39 |
NiF₂ | AFM | 0.0 | 7.60 | 5.05 | 3.92 |
MgO | NM | 0.0 | 0.01 | N/A | 0.08 |
SrTiO₃ | NM | 0.0 | -0.02 | 1.72 | 0.07 |
MAE vs 0 (8 AFM materials): ALIGNN 4.17 μB, mCGCNN 13.89 μB, CHGNet 19.83 μB.
ALIGNN is the least wrong on AFM, but "least wrong" is doing heavy lifting. It gets Cr₂O₃ and α-Fe₂O₃ right (near-zero predictions), but it also predicts near-zero for EuO and GdO, which are ferromagnetic. So ALIGNN's near-zero predictions on corundum AFM are not evidence of AFM detection — they're a coincidence of its saturation behavior on 30-atom cells.
Threshold-based classification confirms the problem. At a 3 μB threshold:
Model | FM correctly identified | AFM correctly identified | Accuracy |
|---|---|---|---|
ALIGNN | 11/14 | 4/8 | 68% |
CHGNet | 14/14 | 0/8 | 64% |
mCGCNN | 14/14 | 0/8 | 64% |
CHGNet and mCGCNN predict a net FM moment for every single AFM material. Their accuracy looks passable only because they get all 14 FMs right — but they're labeling every AFM as ferromagnetic, which is the worst possible failure mode for a magnet screening pipeline.
ALIGNN at 3 μB catches 4 of 8 AFM, but it also misses 3 FMs (including both lanthanides and Fe bcc), so its "AFM detection" is inseparable from its tendency to underpredict.
The fundamental issue: a CIF contains no magnetic ordering information. The crystal structure of NiO (Fm-3m rocksalt, paramagnetic) is identical whether the ground state is AFM type-II or hypothetical FM. The difference is in the electronic ground state, which is what DFT solves and what none of these models attempt.
CHGNet predicts local moments and FM-aligns them by construction. It has no mechanism to produce AFM cancellation. Its site moments on NiO (1.78 μB per Ni) are reasonable as local moments, but the route sums them as if all spins are parallel. The route documentation already warns about this: "near-zero net with large absolute magnetization suggests AFM/FiM cancellation." But the route forces FM alignment, so net always equals absolute.
mCGCNN regresses a scalar total cell moment from ligand geometry. It sees magnetic sites and predicts their FM sum. No AFM representation exists in the architecture.
ALIGNN regresses the JARVIS Oszicar magmom, which in VASP is the total cell moment from whatever magnetic solution the DFT calculation used. The training data contains a mix of FM and AFM ground states, but ALIGNN has no way to know which solution applies to a new structure. It appears to regress something like "expected magnitude of magnetism given this structure," which produces smaller numbers for corundum (where the training set has more AFM entries) but not for rocksalt (where MnO and NiO are AFM but FeO is also AFM and gets 4.07).
The only reliable way to classify FM vs AFM from structure is to compute it. Two approaches on the platform:
DFT with magnetic moments (Magnetic moments): runs a collinear SCF and reports total + site-projected moments. If the total is near-zero but site moments are large, it's AFM. This is the ground truth.
Exchange couplings via TB2J (Exchange couplings): computes Heisenberg Jᵢⱼ from a collinear DFT calculation. The sign pattern of Jᵢⱼ directly tells you FM (positive) vs AFM (negative) exchange. This is the physically correct classifier.
For fast pre-screening, the best available signal is CHGNet's absolute site moments. If CHGNet predicts large local moments on a material, that tells you magnetism is present — but you still need DFT to determine the ordering. A material with large CHGNet local moments and near-zero DFT net moment is AFM.
ALIGNN is not useless. It has properties the other two lack:
Near-zero on non-magnetic controls. MgO gets 0.007, SrTiO₃ gets -0.024. CHGNet also gets these right (0.08 and 0.07). mCGCNN rejects MgO entirely ("no magnetic sites") but predicts 1.72 for SrTiO₃.
No cell-size dependence on small cells. On 2-4 atom metallic cells, ALIGNN is competitive (0.73 μB MAE vs CHGNet's 0.21). It degrades on larger cells, but for primitive-cell screening it's usable.
It's a general-purpose property predictor. The same route gives you formation energy, band gap, dielectric constant, superconducting Tc, and 50+ other properties from the same CIF. CHGNet and mCGCNN only do magnetism.
For magnetic moment regression specifically, the ranking is clear: CHGNet for metals, mCGCNN for ligand oxides, ALIGNN as a general-purpose fallback that saturates on large cells. None of them classify magnetic ordering.
ALIGNN on NiO (AFM, predicted 2.74 vs 0):
Run an ALIGNN pretrained model on a CIF structure. Set to a model key or slug from GET /alignn/models.
mCGCNN on NiO (predicted 8.25 vs 0):
Predict total magnetic moment per unit cell (μB) and Ms / μ₀ Ms from a CIF. Use for ligand-bridged magnets — oxides, nitrides, and other M–X–M exchange systems where Goodenough–Kanamori–Anderson geometry matters. Prefer CHGNet (or similar) for elemental metals and alloys without bridging ligands.
CHGNet on NiO (predicted 7.54 vs 0):
Infer per-site magnetic moments with CHGNet and estimate saturation magnetization assuming collinear ferromagnetic alignment of those local moments. Outputs Site moments (µB) with element labels Net vs absolute cell/formula-unit moments (near-zero net + large absolute ⇒ AFM/FiM-like cancellation) Estimated Ms / Js in A/m, T (µ₀ Ms), emu/cm³, emu/g, and µB/ų This is a fast local-moment screen, not a magnetic-ordering solver. Pair with Curie-temperature prediction for a fuller magnet dossier.
ALIGNN on Cr₂O₃ (AFM, correctly near-zero at 0.37):
Run an ALIGNN pretrained model on a CIF structure. Set to a model key or slug from GET /alignn/models.
Thanks to
ALIGNN vs mCGCNN vs CHGNet on 24 materials (14 FM, 8 AFM, 2 NM). None can classify magnetic ordering from structure alone. CHGNet and mCGCNN label every AFM as FM. ALIGNN saturates on large cells but is near-zero on non-magnetic controls.
Available