GPSK-300

Will Bryan · ghost-projects · May 2026

GPSK-300 is a 3-channel, 302M-parameter diffusion transformer that learns the reciprocal space representations of inorganic crystal structures, and an exact quadratic form for the lattice. Structures are deterministically recovered via a joint IFFT of the reciprocal space channels and single linear least-squares fit of the generated lattice metric tensor.

promptcomposition · symmetryMMDiT · 302Mrectified flow, latent64³×3 gridRe F · Im F · 1/d²decodeLSQ + iFFT, no NNcrystal

Feature representation

Each crystal is represented as a \(64^3 \times 3\) tensor on the integer Miller grid \((h,k,l) \in [-32,31]^3\):

$$X(\mathbf{h}) \;=\; \bigl(\,\mathrm{Re}\,F(\mathbf{h}),\; \mathrm{Im}\,F(\mathbf{h}),\; 1/d^2(\mathbf{h})\,\bigr)$$

The first two channels are the complex structure factor. Atom species is determined via the Cromer–Mann scattering factors, and the third channel, \(1/d^2\) is an exact quadratic in \((h,k,l)\). Its six coefficients define the reciprocal metric tensor.

Re F(h)Im F(h)1/d²(h)atomic positionsbroken symmetrylattice, quadratic in h

Sampling

Our model learns a rectified-flow velocity field over a latent space created by a 2.6M-parameter periodic VAE that steps the input grid down by 4x along each axis. GPSK-300 is conditioned on composition, crystal system, space group, band gap, formation energy, energy above hull, and magnetic ordering. Each stream is independently dropped out 10% of the time during training. The default sampling config is set at 50 Euler steps with classifier free guidance, and we take the best of a user set N samples.

real spaceRe F(h)Im F(h)1/d²(h)F(h)iFFT of F(h)atomic basisleast squares on 1/d²metric tensor G* → latticeact = 0, noiset = 1

Results on the target families

Given our focus on rare earth free permanent magents, much of our model evaluation focuses on magnetic families such as L1₀ tetragonal intermetallics. The c/a ratio that plays a large role in the magnetocrystalline anisotropy of a given magnet is recovered within 3% of the reference material in this L1₀ tetragonal family; ratios are recovered/reference:

Compositionref a (Å)ref c (Å)a ratioc ratiorole
FePt2.733.730.9951.003classic, K₁ ≈ 7 MJ/m³
CoPt2.683.700.9861.017high anisotropy
FeNi2.533.580.9870.985tetrataenite, RE-free
MnAl2.783.560.9650.998τ-MnAl, RE-free
Generated versus expected crystal structure

FePt

L1₀ tetragonal · trained

58% per-sample exact match (N = 48)

The classic L1₀ magnet, K₁ ≈ 7 MJ/m³. Recovered lattice lands at 0.995 of reference a and 1.003 of reference c.

How far does it generalize?

We purposefully held out L1₀ compositions like FePd and MnGa from training while also removing the entire hexagonal SmCo₅ family. Learned structural motifs extend well regardless of the chemical system, but having never seen a hexagonal system, GPSK-300 was (unsurprisingly) unable to recover SmCo₅ after pre-training.

per-sample exact StructureMatcher match, N = 48 samples per prompttrained L1₀FePt · CoPt · FeNi · MnAl58%held-out FePdcomposition unseen, family seen50%held-out MnGacomposition unseen, family seen46%unseen familySmCo₅ · YCo₅ · CeCo₅0%

Post-training

We fine-tuned the final pre-training checkpoint on a small curated set of squat CaCu₅ structures and re-prompted trying to hit our held-out targets. As little as a single sample was able to move the generated structure out of its tall default, and with one to five examples, SmCo₅, YCo₅, and CeCo₅ all land in the squat regime at c/a ≈ 0.88 against the 0.80 target.

CaCu₅ target c/a ≈ 0.801.81.20.8tall default, no recoverysquat, recovered from K = 101520100curated fine-tune examples K (squat CaCu₅)median c/a of generated hex

Conditioning

The seven conditioning streams emerged at different points throughout the training process. Symmetry arrives first, then space-group at roughly 70k training steps, then crystal system by 110k. All continuous properties took 2 to 3 times longer to emerge.

space groupcrystal systemcompositionband gapmagnetic orderingformation energyemergence threshold 0.30.80.400250k500ktraining stepconditioning correlation
901201.01.5cell angle γ (°)c/agenerated cell (median)median γ = 90° · c/a = 1.37

Limitations

  • Unseen families are recoverable only via quick post-trains. zero-shotting an unrepresented motif stays out of reach for this approach. The training corpus does have room to grow, but it does not seem like this representation is rich enough to achieve true unseen family recovery.
  • Big cells. Preserving atom count for a given request -> a generated structure is easy enough, but lattice accuracy begins to degrade substantially around the 40 atom mark.

GPSK-300 is available for free on Ouro, you can access it directy at https://ouro.foundation/services/will/gpsk-300 or via the Ouro API.