Perfumer: A Large Language Model-based Agentic Framework Accelerating Structural Relaxation and Electronic Band Prediction for First-Principle Calculation

Zhiwei Li, Yuhao Zhou, Yikai Yang, Haonan Wang, Qing Ye, Jiancheng Lv, Kazunari MatsudaarXiv 2026

TL;DR

Perfumer is an LLM-based agentic framework that automates and accelerates materials discovery by coordinating specialized machine learning models with traditional first-principles software. By using a "pre-relax then refine" strategy and a novel symmetry-aware neural network for band structures, it achieves a 2.75x speedup in structural relaxation and predicts electronic properties in milliseconds with high accuracy across 85 elements.

What Problem Does This Paper Address?

In materials science, Density Functional Theory (DFT) is the gold standard for predicting how atoms arrange themselves (structural relaxation) and how electrons behave (band structures). However, DFT is a "computational tax" on research: it is incredibly expensive, often requiring thousands of CPU hours for complex systems, and requires significant human expertise to configure.

While many machine learning (ML) models have been developed to replace specific parts of this workflow, they often exist in isolation. Researchers still spend a lot of time "babysitting" simulations—moving files between tools, fixing convergence errors, and manually setting up new candidate structures. The authors of this paper sought to create a unified system that is both faster than pure DFT and smart enough to handle the entire workflow via natural language.

Methods

The framework, named Perfumer, consists of three main components coordinated by a Large Language Model (LLM) "agent":

  1. The Perfumer Agent: Using models like DeepSeek-V4, the agent interprets natural language requests (e.g., "Find new materials for chips starting from GaN"). it plans the workflow, generates new candidate structures through chemical substitution, and handles tool execution.
  2. Perfumer-relax: This model uses a fine-tuned MACE (interatomic potential) architecture. Instead of replacing DFT, it performs "pre-relaxation"—doing the heavy lifting of moving atoms toward their equilibrium positions—before handing the structure to Quantum ESPRESSO (QE) for a final, high-precision "polish."
  3. Perfumer-band: This is a periodic Graph Neural Network (GNN) designed to predict electronic bands. Its "aha" feature is a latent Hermitian spectral head. Rather than trying to predict a massive, complex Hamiltonian matrix, it constructs a small (16x16) latent matrix. The eigenvalues of this matrix represent the band energies. Crucially, it uses Fourier expansions to bake reciprocal lattice periodicity and time-reversal symmetry directly into the model's architecture.

Datasets

The authors curated two massive datasets to train their specialized models:

  • Relaxation Dataset: 14,971 ionic configurations covering 62 elements, derived from validated Quantum ESPRESSO trajectories.
  • Band Structure Dataset: A curated collection of 130,367 material records aggregated from major public databases (Materials Project, JARVIS-DFT, AFLOW, and NOMAD).
  • Evaluation: The models were tested on a "held-out" set of 2,607 materials. Importantly, these were partitioned by chemical formula, ensuring the model was tested on composition families it had never seen during training.

Key Insights and Ideas

  • The "Warm Start" Strategy: The most significant speedups in relaxation don't come from replacing DFT entirely, but from using ML to provide a near-perfect starting point. This reduces the number of expensive "force evaluations" DFT must perform.
  • Physics-Informed Architecture: The Perfumer-band model doesn't just "learn" physics; it is constrained by it. By using a Hermitian matrix representation and Fourier modes, the model is mathematically incapable of violating basic symmetries like periodicity, making it far more robust than a standard "black box" regressor.
  • Broad Elemental Coverage: Unlike many models that struggle with heavy or magnetic elements, Perfumer shows strong performance on lanthanides and actinides, which are traditionally difficult for both ML and standard DFT.

Key Results

  • Efficiency: The hybrid relaxation workflow yielded a 2.75-fold overall speedup over standard Quantum ESPRESSO. For large 2D supercells, the speedup reached 8.24x.
  • Accuracy: The Perfumer-band model achieved a median Mean Absolute Error (MAE) of 0.157 eV across the test set. For specific materials like $DyIn_3$, the error was as low as 0.038 eV.
  • Inference Speed: Predicting 12 electronic bands takes roughly 97 milliseconds per material on a standard consumer CPU—roughly 2,100 times faster than a typical QE calculation.
  • Autonomy: In a demonstration, the agent successfully took a prompt for "chip materials," generated 12 candidates, screened them, and performed full relaxation-to-band workflows for the best five, all within 15 minutes.

Limitations and Future Work

  • Error Propagation: The authors note that future work is needed to quantify how small residual errors in the ML-assisted relaxation phase might propagate into the final band structure predictions.
  • Property Expansion: Currently, the framework focuses on structural relaxation and band energies. Expanding this to other properties like thermal conductivity or optical response would be a logical next step.
  • Validation: While the agent can propose and screen new materials, the "loop" still requires final experimental or high-level theoretical validation to confirm the discovery of truly new materials.

Summary updated

Abstract

First-principles structural relaxation and band calculations require substantial computation and expertise. Here we present Perfumer, a large language model-based agentic framework that couples Quantum ESPRESSO with two predictive models. Across tested structures, pre-relaxation with Perfumer-relax model followed by QE refinement yielded a 2.75-fold overall speedup over QE alone. Perfumer-band model combines a periodic graph neural network with a latent Hermitian spectral head returns 12 band energies at any requested wavevector, preserving reciprocal lattice periodicity and time-reversal symmetry without constructing Hamiltonian. Trained on 125,153 self-curated band structures, Perfumer-band model reaches a median per-material mean absolute error of 0.157 eV on 2,607 test materials, including lanthanide, actinide and magnetic compounds, from held-out composition families spanning 85 elements, taking about 97 ms per material on two consumer CPU cores. The agent turns natural-language requests into relaxation-to-band workflows, from a single uploaded structure to automatically constructed new candidates and returns predicted properties.
BibTeX
@misc{li2026perfumer,
  author = {Zhiwei Li and Yuhao Zhou and Yikai Yang and Haonan Wang and Qing Ye and Jiancheng Lv and Kazunari Matsuda},
  title = {{Perfumer: A Large Language Model-based Agentic Framework Accelerating Structural Relaxation and Electronic Band Prediction for First-Principle Calculation}},
  year = {2026},
  eprint = {2611.26349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26349},
}
Figure