{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/mattergen-a-generative-model-for-inorganic","title":"MatterGen: a generative model for inorganic materials design","arxiv_id":"2312.03687","date":"2023-12-06","proceeding":null,"authors":["Claudio Zeni","Robert Pinsler","Daniel Zügner","Andrew Fowler","Matthew Horton","Xiang Fu","Sasha Shysheya","Jonathan Crabbé","Lixin Sun","Jake Smith","Bichlien Nguyen","Hannes Schulz","Sarah Lewis","Chin-wei Huang","Ziheng Lu","Yichi Zhou","Han Yang","Hongxia Hao","Jielan Li","Ryota Tomioka","Tian Xie"],"abstract":"The design of functional materials with desired properties is essential in driving technological advances in areas like energy storage, catalysis, and carbon capture. Generative models provide a new paradigm for materials design by directly generating entirely novel materials given desired property constraints. Despite recent progress, current generative models have low success rate in proposing stable crystals, or can only satisfy a very limited set of property constraints. Here, we present MatterGen, a model that generates stable, diverse inorganic materials across the periodic table and can further be fine-tuned to steer the generation towards a broad range of property constraints. To enable this, we introduce a new diffusion-based generative process that produces crystalline structures by gradually refining atom types, coordinates, and the periodic lattice. We further introduce adapter modules to enable fine-tuning towards any given property constraints with a labeled dataset. Compared to prior generative models, structures produced by MatterGen are more than twice as likely to be novel and stable, and more than 15 times closer to the local energy minimum. After fine-tuning, MatterGen successfully generates stable, novel materials with desired chemistry, symmetry, as well as mechanical, electronic and magnetic properties. Finally, we demonstrate multi-property materials design capabilities by proposing structures that have both high magnetic density and a chemical composition with low supply-chain risk. We believe that the quality of generated materials and the breadth of MatterGen's capabilities represent a major advancement towards creating a universal generative model for materials design.","url_abs":"https://arxiv.org/abs/2312.03687v2","url_pdf":"https://arxiv.org/pdf/2312.03687v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"mattergen-a-generative-model-for-inorganic","repo_url":"https://github.com/janosh/pymatviz","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"mattergen-a-generative-model-for-inorganic","repo_url":"https://github.com/microsoft/mattergen","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"model","task_name":"model"}],"methods":[{"method_slug":"adapter","method_name":"Adapter"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2312.03687","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.03687"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/microsoft/mattergen","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/janosh/pymatviz","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":4},"by_repo_kind":{"listed":{"samples":4,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"16242ba3b47b3432","entry":"atomic_numbers_to_mask","repo":"microsoft/mattergen","repo_kind":"listed","path":"mattergen/denoiser.py","file_url":"https://github.com/microsoft/mattergen/blob/HEAD/mattergen/denoiser.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"16242ba3b47b3432"}},{"code_sha256_prefix":"0b1536daa866b346","entry":"get_default_optimizer","repo":"microsoft/mattergen","repo_kind":"listed","path":"mattergen/diffusion/lightning_module.py","file_url":"https://github.com/microsoft/mattergen/blob/HEAD/mattergen/diffusion/lightning_module.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0b1536daa866b346"}},{"code_sha256_prefix":"03958afbc7e37a36","entry":"mask_logits","repo":"microsoft/mattergen","repo_kind":"listed","path":"mattergen/denoiser.py","file_url":"https://github.com/microsoft/mattergen/blob/HEAD/mattergen/denoiser.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"03958afbc7e37a36"}},{"code_sha256_prefix":"a2254a97c2172a09","entry":"tensor_is_not_nan","repo":"microsoft/mattergen","repo_kind":"listed","path":"mattergen/property_embeddings.py","file_url":"https://github.com/microsoft/mattergen/blob/HEAD/mattergen/property_embeddings.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a2254a97c2172a09"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}