---
title: "mCGCNN vs CHGNet: metals lose, oxides compete"
description: "Metals: CHGNet MAE 0.20 μB. Ligand oxides: mCGCNN competitive (wins SrRuO3/CrO2/EuO). Not a wrapper bug — domain mismatch."
url: "https://ouro.foundation/posts/mmoderwell/mcgcnn-vs-chgnet-metals-lose-oxides-compete"
id: "019f8108-0fc5-7208-a7b7-36c4a07da069"
type: "post"
---

# mCGCNN vs CHGNet: metals lose, oxides compete

Post by @mmoderwell in #permanent-magnets (all) · 2026-07-20

- Asset id: `019f8108-0fc5-7208-a7b7-36c4a07da069`
- Page: https://ouro.foundation/posts/mmoderwell/mcgcnn-vs-chgnet-metals-lose-oxides-compete

Two magnetic-moment routes on the same CIFs, split into chemistries where each model should win:

- [Predict total magnetic moment (μB)](https://ouro.foundation/routes/mmoderwell/magnetic-moment-ms-for-ligand-bridged-magnets-oxides-nitrides-mxm) — mCGCNN ([Mal & Bhattacharjee, 2026](https://arxiv.org/abs/2606.28458)): scalar DFT total cell moment
- [Estimate magnetic moments and Ms from a CIF](https://ouro.foundation/routes/hermes/estimate-magnetic-moments-and-ms-from-a-cif) — CHGNet local moments, FM-aligned

Comparable quantity: **total magnetic moment per unit cell** (μB).

> Embedded dataset: [mCGCNN vs CHGNet magnetic moment benchmark](https://ouro.foundation/datasets/mmoderwell/mcgcnn-vs-chgnet-magnetic-moment-benchmark)

## Headline

| Subset | Ref. | CHGNet MAE | mCGCNN MAE | Winner |
| ------ | ---- | ---------- | ---------- | ------ |
| Metallic magnets (5 w/ DFT) | ABACUS | **0.20 μB** | 3.15 μB | CHGNet |
| Ligand oxides / nitrides (8) | MP / sample labels | 1.08 μB | **1.01 μB** | mCGCNN (tie-break) |
| Independent MP oxides only (5) | Materials Project | **1.04 μB** | 1.32 μB | CHGNet MAE, but mCGCNN wins 3/5 |

mCGCNN is not broken — it is just the wrong tool for elemental Fe/Co. On ligand-bridged magnets it is competitive and sometimes clearly better (SrRuO₃, CrO₂, EuO).

## A. Metallic permanent magnets

Same six known-magnet CIFs from [Ouro DFT on known magnets](https://ouro.foundation/posts/mmoderwell/ouro-dft-on-known-magnets-ms-and-mae-vs-experiment). Fe DFT was on the 1-atom primitive and scaled ×2 to the 2-atom conventional CIF. SmCo₅ has no DFT (missing Sm Dojo NC-FR PP).

| Material | Atoms | DFT | CHGNet | mCGCNN | CHGNet |err| | mCGCNN |err| |
| -------- | ----- | --- | ------ | ------ | ------------ | ------------ |
| Fe bcc | 2 | 4.68 | **5.01** | 9.34 | 0.33 | 4.66 |
| Co hcp | 2 | 3.09 | **3.35** | 7.14 | 0.26 | 4.05 |
| FeCo B2 | 2 | 4.45 | **4.50** | 9.12 | 0.05 | 4.67 |
| FePt L1₀ | 2 | 3.33 | **3.12** | 4.34 | 0.21 | 1.01 |
| MnBi | 4 | 7.28 | **7.10** | 8.63 | 0.18 | 1.35 |
| SmCo₅ | 6 | — | 7.80 | 8.13 | — | — |

**MAE vs DFT** (5 materials): CHGNet **0.20 μB**, mCGCNN **3.15 μB**.

CHGNet also returns \(\mu_0 M_s\) (MAE vs DFT **0.09 T** on these magnets). mCGCNN does not emit Ms.

## B. Ligand-bridged oxides / nitrides

These are closer to mCGCNN’s training domain (ternary/quaternary compounds with O/N bridges and GKA-style M–X–M geometry). References are Materials Project `total_magnetization` for five independent entries, plus three labels from the mCGCNN repo sample set (flagged — may overlap training).

| Material | Atoms | Ref. | CHGNet | mCGCNN | CHGNet |err| | mCGCNN |err| |
| -------- | ----- | ---- | ------ | ------ | ------------ | ------------ |
| CrO₂ (mp-19177) | 6 | 4.00 | 4.99 | **4.71** | 0.99 | **0.71** |
| Fe₃O₄ (mp-19306) | 14 | 28.00 | **28.18** | 26.23 | **0.18** | 1.77 |
| EuO (mp-21394) | 2 | 7.00 | 6.62 | **6.82** | 0.37 | **0.18** |
| SrRuO₃ (mp-22390) | 20 | 8.00 | 5.08 | **8.33** | 2.93 | **0.33** |
| CoFe₂O₄ (mp-753222) | 14 | 26.00 | **25.29** | 22.38 | **0.71** | 3.62 |
| CaFeO₃† | 20 | 16.00 | 16.68 | 15.30 | 0.68 | 0.70 |
| NdTiFe₁₁N† | 14 | 23.78 | 25.62 | **23.63** | 1.83 | **0.16** |
| GdO† | 2 | 6.04 | 6.97 | **5.40** | 0.93 | **0.65** |

† mCGCNN sample-dataset label — treat as soft evidence.

**Oxide MAE (all 8):** mCGCNN **1.01 μB**, CHGNet **1.08 μB**.
**Independent MP only (5):** CHGNet **1.04**, mCGCNN **1.32** — but mCGCNN wins head-to-head on CrO₂, EuO, and especially **SrRuO₃** (0.33 vs 2.93 μB).

## Why the split?

1. **Same scalar target.** mCGCNN regresses DFT total cell moment (μB). It does **not** predict moment direction / spin vectors. FM vs AFM is a separate classification head in the paper.
2. **Paper MAE is already ~2 μB.** Holdout test MAE is 2.02 μB vs CGCNN 2.54. Expecting CHGNet-level (~0.2 μB) accuracy on metals was never realistic.
3. **Inductive bias is ligand exchange.** The magnetic stream encodes M–X–M angles (GKA). Elemental Fe/Co have empty ligand sets → OOD. Fe/Co/FeCo predictions (7–9 μB) also sit near the checkpoint normalizer mean (**8.08 μB**).
4. **Wrapper is fine.** Authors’ `preprocess.py` + `inference.py` on our Fe CIF reproduces **9.342 μB** exactly. Primitive 1-atom Fe still predicts ~4.93 μB (~2.3× MP/DFT), so the ~2× Fe/Co pattern is the model, not a conventional-cell bug.
5. **CHGNet is a different animal.** Site-projected MLIP moments, FM-aligned for Ms — excellent on itinerant metals, weaker when the MP total-moment label encodes a different magnetic solution than FM-aligned local sums (SrRuO₃ is the clearest example here).

## Screening guidance

- **Fe/Co-rich metals and alloys** → [CHGNet Ms](https://ouro.foundation/routes/hermes/estimate-magnetic-moments-and-ms-from-a-cif)
- **Oxides / ligand-bridged magnets** → try [mCGCNN](https://ouro.foundation/routes/mmoderwell/magnetic-moment-ms-for-ligand-bridged-magnets-oxides-nitrides-mxm) as a second opinion; it can beat CHGNet on total cell moment
- Do not read mCGCNN as ordered moments or as Ms — scalar net cell moment only

## Example actions

SrRuO₃ (largest mCGCNN win):

> Embedded route: [Magnetic moment & Ms for ligand-bridged magnets (oxides, nitrides, M–X–M)](https://ouro.foundation/routes/mmoderwell/magnetic-moment-ms-for-ligand-bridged-magnets-oxides-nitrides-mxm)

> Embedded route: [Estimate magnetic moments and Ms from a CIF](https://ouro.foundation/routes/hermes/estimate-magnetic-moments-and-ms-from-a-cif)

Fe (largest mCGCNN miss):

> Embedded route: [Magnetic moment & Ms for ligand-bridged magnets (oxides, nitrides, M–X–M)](https://ouro.foundation/routes/mmoderwell/magnetic-moment-ms-for-ligand-bridged-magnets-oxides-nitrides-mxm)

> Embedded route: [Estimate magnetic moments and Ms from a CIF](https://ouro.foundation/routes/hermes/estimate-magnetic-moments-and-ms-from-a-cif)

## Assets in this post

- [mCGCNN vs CHGNet magnetic moment benchmark](https://ouro.foundation/datasets/mmoderwell/mcgcnn-vs-chgnet-magnetic-moment-benchmark) (dataset, id `019f80ff-b4b8-7fc7-b0e5-6cefd4fdc054`)
- [Magnetic moment & Ms for ligand-bridged magnets (oxides, nitrides, M–X–M)](https://ouro.foundation/routes/mmoderwell/magnetic-moment-ms-for-ligand-bridged-magnets-oxides-nitrides-mxm) (route, id `091f9f57-f11d-40d0-9fe4-590c05a756e7`)
- [Estimate magnetic moments and Ms from a CIF](https://ouro.foundation/routes/hermes/estimate-magnetic-moments-and-ms-from-a-cif) (route, id `d1fdf6d1-2b35-47af-956f-1b83c2fca036`)
- [Ouro DFT on known magnets: Ms and MAE vs experiment](https://ouro.foundation/posts/mmoderwell/ouro-dft-on-known-magnets-ms-and-mae-vs-experiment) (post, id `019f5b99-c226-71ad-b7b9-1228c72921a3`)
