LLM Meets Diffusion: A Hybrid Framework for Crystal Material Generation

Subhojyoti Khastagir (Indian Institute of Technology, Kharagpur) · KISHALAY DAS (Indian Institute of Technology, Kharagpur) · Pawan Goyal (IIT Kharagpur) · Seung-Cheol Lee (Indo Korea Science and Technology Center, Bangalore, India) · Satadeep Bhattacharjee (Indo Korea Science and Technology Center, Bangalore, India) · niloy ganguly (IIT Kharagpur)
atomic coordinatesatomic positionscompositional validityconditional generationdiffusion modelequivariant denoising modelsgenerative modelinghybrid frameworkintermediate representationlattice parameterslattice structureperiodic crystal structuresstructural validityuser-defined constraints

Recent advances in generative modeling have shown significant promise in designing novel periodic crystal structures. Existing approaches typically rely on either large language models (LLMs) or equivariant denoising models, each with complementary strengths: LLMs excel at handling discrete atomic types but often struggle with continuous features such as atomic positions and lattice parameters, while denoising models are effective at modeling continuous variables but encounter difficulties in generating accurate atomic compositions. To bridge this gap, we propose CrysLLMGen, a hybrid framework that integrates an LLM with a diffusion model to leverage their complementary strengths for crystal material generation. During sampling, CrysLLMGen first employs a fine-tuned LLM to produce an intermediate representation of atom types, atomic coordinates, and lattice structure. While retaining the predicted atom types, it passes the atomic coordinates and lattice structure to a pre-trained equivariant diffusion model for refinement. Our framework outperforms state-of-the-art generative models across several benchmark tasks and datasets. Specifically, CrysLLMGen not only achieves a balanced performance in terms of structural and compositional validity but also generates more stable and novel materials compared to LLM-based and denoising-based models Furthermore, CrysLLMGen exhibits strong conditional generation capabilities, effectively producing materials that satisfy user-defined constraints. Code is available at \url{https://github.com/kdmsit/crysllmgen}