Introduction
The discovery of novel materials—such as high-performance battery electrolytes or superconductors—is a cornerstone of modern materials science. Generative AI, particularly diffusion models, has emerged as a powerful tool for "dreaming up" new crystal structures. However, a significant limitation in current architectures is the requirement to fix the number of atoms a priori. This "fixed-size" constraint forces models to generate structures within a rigid framework, often leading to strained or unstable results if the optimal configuration requires a different atom count.
Mirage Atom Diffusion (MiAD)
To address this bottleneck, we introduce Mirage Atom Diffusion (MiAD). The core innovation is a technique called mirage infusion, which allows the model to dynamically add or remove atoms during the generation process.
MiAD operates on an expanded domain where the model always processes a fixed maximum number of atoms ($N_m$). Atoms are assigned a discrete "type," including a special "Type 0" designated as a mirage. These mirage atoms act as placeholders that do not physically exist in the final crystal. During the diffusion process, the model can transition an atom's state between a mirage and a real element (e.g., Lithium, Oxygen). This effectively allows the structure to "materialize" or "vanish" atoms as it refines toward a stable state. To facilitate this, a masked loss function is employed, ensuring the model is only penalized for the positions of real atoms, granting mirage atoms the freedom to move unconstrained until needed.
Benchmarking and Results
MiAD was evaluated primarily on the MP-20 benchmark, which contains approximately 45,000 stable inorganic materials. The primary metric for success is the S.U.N. rate (Stable, Unique, and Novel), which ensures that generated materials are not only physically viable but also represent genuine new discoveries rather than memorized training data.
As shown in the results, MiAD achieves a state-of-the-art 8.2% S.U.N. rate, significantly outperforming previous leaders such as FlowLLM (4.7%) and WyFormer (4.8%). This represents a nearly 2.5x improvement over the base architecture, suggesting that the fixed-atom constraint was a primary bottleneck in crystal generation. Furthermore, MiAD demonstrates excellent scalability; when trained on the larger Alex-MP20 dataset, it outperformed heavyweights like MatterGen.
Discussion and Future Work
The flexibility of mirage infusion comes with increased computational costs, requiring approximately 4.3x more training time and 4.4x more memory due to the simulation of the maximum atom count. However, the dramatic improvement in the quality and novelty of generated crystals justifies this overhead. Future research will focus on optimizing these computational requirements and exploring the application of mirage infusion in other domains, such as structure-based drug design, where the optimal number of molecular components is often unknown at the start of the design process.
Summary updated