---
title: "How far from converged is ggen's random structure search?"
description: "200 relaxed trials for seven formulas say the default 15-trial budget finds a known ground state about half the time at 12 to 16 atoms, alloy cells never converge, and early pruning cannot work."
url: "https://ouro.foundation/posts/mmoderwell/how-far-from-converged-is-ggens-random-structure-search"
id: "01a1192c-de4d-7f84-af79-79570c3b8abe"
type: "post"
---

# How far from converged is ggen's random structure search?

Post by @mmoderwell in #materials-science (all) · 2026-10-08

- Asset id: `01a1192c-de4d-7f84-af79-79570c3b8abe`
- Page: https://ouro.foundation/posts/mmoderwell/how-far-from-converged-is-ggens-random-structure-search

ggen's `explore` gives every stoichiometry 15 random PyXtal cells spread over 5 space groups, relaxes all of them with ORB, and keeps the lowest energy. Hull distances are relative, so if that budget undersamples a competing phase, a mediocre neighbor looks stable. Before trying to make the search smarter, we wanted to know how far from converged it is.

## Setup

Seven formulas. Five are known compounds whose ORB-relaxed Materials Project ground state we have, so there is a ground truth. Two are Fe-Co(-Mn) alloy cells with no known phase. For each, 200 candidates were proposed exactly as `explore` proposes them (4 seeds × 50 trials over 5 space groups each) and all were relaxed with the pooled torch-sim relaxer (FIRE, 400 steps, fmax 0.01 eV/Å, ORB v3 conservative, one A10G). Every trial keeps its final energy, the energy after 20, 50 and 100 steps from the same starting cell, its space group, and a basin id from pymatgen's `StructureMatcher`. The whole study cost under a dollar of GPU time.

## The headline

Resampling the 200 outcomes gives the chance that the best of *n* trials lands within 5 meV/atom of the best of 200:

> Embedded dataset: [ggen random search convergence: best-of-n curves](https://ouro.foundation/datasets/mmoderwell/ggen-random-search-convergence-best-of-n-curves)

| Formula | Atoms | Best of 200 | Reference (ORB) | Gap | P(within 5 meV) at 15 trials | at 50 | at 75 |
| ------- | ----- | ----------- | --------------- | --- | ---------------------------- | ----- | ----- |
| Fe3Ge | 4 | -7.6018 Pm-3m | MP Pm-3m -7.6017 | 0 | 80% | 100% | 100% |
| Fe8B4 | 12 | -8.1784 I4/mcm | MP Fe2B -8.1782 | 0 | 43% | 87% | 97% |
| Fe4Sn8 | 12 | -5.4657 I4/mcm | MP FeSn2 -5.4654 | 0 | 46% | 91% | 98% |
| Fe12B4 | 16 | -8.2330 Pnma | MP Fe3B -8.2327 | 0 | 40% | 83% | 94% |
| Fe10Si6 | 16 | -7.7266 Cmcm | MP Fe5Si3 -7.687 | -40 meV | 39% | 82% | 94% |
| Co2Fe15 | 17 | -8.3087 R-3m | ggen DB -8.3065 | -2 meV | 60% | 96% | 100% |
| Co3Fe5Mn12 | 20 | -8.6630 P1 | ggen DB -8.6359 | -27 meV | 14% | 43% | 61% |

Two things at once. The proposer is fine: with 200 trials every known ground state was recovered to within a meV. The budget is not: at the default 15 trials, a 12 to 16 atom ground state is missed by more than 5 meV/atom about half the time, and the 90th-percentile miss is over 100 meV/atom. Emulating `explore` exactly (3 trials in each of 5 space groups), the four seeds for Fe8B4 missed by 0, 0, 127 and 133 meV/atom. It is a lottery. About 75 trials gets to 95%.

## Where the ground state lives

> Embedded dataset: [ggen random search convergence: all 1,390 relaxed trials](https://ouro.foundation/datasets/mmoderwell/ggen-random-search-convergence-all-1390-relaxed-trials)

For the known compounds the ground-state basin is hit by 3 to 5% of trials and almost nothing else is close. Fe4Sn8 has exactly one basin within 50 meV/atom of the best, hit 8 times out of 200. Fe8B4 has three, Fe12B4 three.

The basin was reached from several *different* proposed space groups: Fe8B4 from SG 79, 131, 165 and 84; Fe4Sn8 from 26, 38, 112, 162 and 74; Fe12B4 from 19 and 200. The symmetry you start in does not decide the outcome; the basin of attraction under relaxation does. One consequence is free: resampling 15 trials as 15 space groups × 1 instead of 5 × 3 raises the hit chance from 29% to 42% for Fe12B4, with no prior about which groups to prefer.

> Embedded file: [Fe8B4 I4/mcm, recovered Fe2B ground state (ORB -8.1784 eV/atom)](https://ouro.foundation/files/mmoderwell/fe8b4-i4-mcm-recovered-fe2b-ground-state-orb-8-1784-ev-atom)

## Alloy cells are a different problem

Co3Fe5Mn12 found 197 distinct basins in 200 trials, 37 of them within 50 meV/atom of the best, every single one hit exactly once. Co2Fe15 had 13 low basins, 10 of them singletons. These are site-ordering variants of a bcc or close-packed solid solution. There is no ground-state basin to converge to, the orderings differ by a few meV/atom, and random restart will keep finding new ones indefinitely. The Co3Fe5Mn12 winner beat the database entry by 27 meV/atom and would keep going. Claims about compositions like these belong to a cluster expansion or special quasirandom structures, not to "the lowest random cell we found".

> Embedded file: [Co3Fe5Mn12 P1, best of 200 random trials (ORB -8.6630 eV/atom)](https://ouro.foundation/files/mmoderwell/co3fe5mn12-p1-best-of-200-random-trials-orb-8-6630-ev-atom)

## Fe10Si6

The best Fe10Si6 cell is Cmcm at -7.7266 eV/atom, 40 meV/atom below the ORB energy of the Materials Project Fe5Si3 phase. On the ORB Fe-Si hull it sits 6 meV/atom above the Fe3Si (Fm-3m, -8.0131) to FeSi (P2_13, -7.4522) tie line, so it is a near-hull ordered bcc-derived arrangement rather than a new stable phase. MP has Fe5Si3 at 34 meV above hull in DFT, which is consistent. Worth a look, not a discovery.

> Embedded file: [Fe10Si6 Cmcm, best of 200 random trials (ORB -7.7266 eV/atom)](https://ouro.foundation/files/mmoderwell/fe10si6-cmcm-best-of-200-random-trials-orb-7-7266-ev-atom)

## Early pruning by energy cannot work, and is not needed

Spearman correlation between the energy after *k* relaxation steps and the final energy:

| Formula | initial | step 20 | step 50 | step 100 |
| ------- | ------- | ------- | ------- | -------- |
| Fe3Ge | -0.02 | 0.54 | 0.80 | 0.97 |
| Fe8B4 | -0.27 | -0.09 | 0.10 | 0.62 |
| Fe4Sn8 | -0.02 | 0.08 | 0.16 | 0.56 |
| Fe12B4 | 0.00 | 0.01 | 0.13 | 0.36 |
| Fe10Si6 | 0.12 | 0.07 | 0.32 | 0.59 |
| Co2Fe15 | 0.00 | -0.10 | -0.10 | 0.15 |
| Co3Fe5Mn12 | -0.03 | -0.13 | -0.17 | -0.03 |

For cells of 12 atoms or more, the ranking after 20 or 50 steps carries no information, and the eventual winner is often near the bottom early on: the Fe8B4 winner ranked 192nd of 196 at step 20. The trajectories explain it. Trials that have converged by step 100 are the junk (mean gap 300 to 1000 meV/atom to the best), while the trials still descending are the ones that end low. torch-sim already drops converged structures from the batch, so the compute is already going to exactly the trials that matter. There is nothing to prune.

## A prior-free "are we done" signal

The raw rate of landing in a never-seen basin never falls below 56%, because most basins are distinct junk, so it says nothing about convergence. Restricted to trials within 50 meV/atom of the current best, the Good-Turing estimate of unseen basin mass (the singleton fraction) is 0 to 0.22 for the compounds and 0.62 to 1.0 for the alloys. That is the per-composition stopping rule we want: it converges for compounds, never for alloys, and it needs no prior about what the answer looks like.

## Other observations

- Inflated cells (volume more than 1.3× the winner's): 56% of trials at 4 atoms, 10 to 16% at 12 to 16 atoms, 4% at 17 to 20. A starting-volume problem for small cells only.
- Unconverged after 400 steps: 0 to 2%.

## What this means for explore

1. 15 trials is roughly a coin flip at 12 to 16 atoms. Hulls built at the default budget are not reliable at the cell sizes where novelty lives.
2. The budget should scale with cell size or adapt per composition using the restricted new-basin signal, and alloy-like compositions need a different treatment.
3. Spread trials over as many space groups as possible, one each.
4. Early pruning comes off the roadmap.
5. This study only measures random restart. The fact that the ground-state basin is reached from many different starting symmetries suggests it has a large basin of attraction, which is what minima hopping relies on. Kick-and-redescend from near-hull winners is the next experiment.

## Data

All 1,390 relaxed trials are in [the trials dataset](https://ouro.foundation/datasets/mmoderwell/ggen-random-search-convergence-all-1390-relaxed-trials) and the resampled curves in [the curves dataset](https://ouro.foundation/datasets/mmoderwell/ggen-random-search-convergence-best-of-n-curves). Winning cells: [Fe3Ge Pm-3m](https://ouro.foundation/files/mmoderwell/fe3ge-pm-3m-recovered-ground-state-orb-7-6018-ev-atom), [Fe8B4 I4/mcm](https://ouro.foundation/files/mmoderwell/fe8b4-i4-mcm-recovered-fe2b-ground-state-orb-8-1784-ev-atom), [Fe4Sn8 I4/mcm](https://ouro.foundation/files/mmoderwell/fe4sn8-i4-mcm-recovered-fesn2-ground-state-orb-5-4657-ev-atom), [Fe12B4 Pnma](https://ouro.foundation/files/mmoderwell/fe12b4-pnma-recovered-fe3b-ground-state-orb-8-2330-ev-atom), [Fe10Si6 Cmcm](https://ouro.foundation/files/mmoderwell/fe10si6-cmcm-best-of-200-random-trials-orb-7-7266-ev-atom), [Co2Fe15 R-3m](https://ouro.foundation/files/mmoderwell/co2fe15-r-3m-best-of-200-random-trials-orb-8-3087-ev-atom), [Co3Fe5Mn12 P1](https://ouro.foundation/files/mmoderwell/co3fe5mn12-p1-best-of-200-random-trials-orb-8-6630-ev-atom).

## Assets in this post

- [ggen random search convergence: best-of-n curves](https://ouro.foundation/datasets/mmoderwell/ggen-random-search-convergence-best-of-n-curves) (dataset, id `01a1192a-630f-76c2-a8fc-c769f4f6e180`)
- [ggen random search convergence: all 1,390 relaxed trials](https://ouro.foundation/datasets/mmoderwell/ggen-random-search-convergence-all-1390-relaxed-trials) (dataset, id `01a1192a-86d9-7c75-a4cf-2cb773f324e4`)
- [Fe8B4 I4/mcm, recovered Fe2B ground state (ORB -8.1784 eV/atom)](https://ouro.foundation/files/mmoderwell/fe8b4-i4-mcm-recovered-fe2b-ground-state-orb-8-1784-ev-atom) (file, id `0427859f-278b-40e5-9cd6-65449bb73b19`)
- [Co3Fe5Mn12 P1, best of 200 random trials (ORB -8.6630 eV/atom)](https://ouro.foundation/files/mmoderwell/co3fe5mn12-p1-best-of-200-random-trials-orb-8-6630-ev-atom) (file, id `5809f491-a766-4279-8081-a68caa30a6cc`)
- [Fe10Si6 Cmcm, best of 200 random trials (ORB -7.7266 eV/atom)](https://ouro.foundation/files/mmoderwell/fe10si6-cmcm-best-of-200-random-trials-orb-7-7266-ev-atom) (file, id `e5270f07-2546-449d-a063-2e7cc49dd53d`)
- [Fe3Ge Pm-3m, recovered ground state (ORB -7.6018 eV/atom)](https://ouro.foundation/files/mmoderwell/fe3ge-pm-3m-recovered-ground-state-orb-7-6018-ev-atom) (file, id `a5c18714-732f-445e-8d23-ae480bfe2432`)
- [Fe4Sn8 I4/mcm, recovered FeSn2 ground state (ORB -5.4657 eV/atom)](https://ouro.foundation/files/mmoderwell/fe4sn8-i4-mcm-recovered-fesn2-ground-state-orb-5-4657-ev-atom) (file, id `f1730e49-2951-40bf-b34d-5e7883f2e575`)
- [Fe12B4 Pnma, recovered Fe3B ground state (ORB -8.2330 eV/atom)](https://ouro.foundation/files/mmoderwell/fe12b4-pnma-recovered-fe3b-ground-state-orb-8-2330-ev-atom) (file, id `d3aa444a-c256-414b-8ffe-e6c8432e98f9`)
- [Co2Fe15 R-3m, best of 200 random trials (ORB -8.3087 eV/atom)](https://ouro.foundation/files/mmoderwell/co2fe15-r-3m-best-of-200-random-trials-orb-8-3087-ev-atom) (file, id `5f790ff1-03cd-4cac-b64e-380f946d6232`)
