<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://shihabahmed.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://shihabahmed.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-12-01T09:54:50-08:00</updated><id>https://shihabahmed.com/feed.xml</id><title type="html">Shihab Ahmed</title><subtitle>Shihab Ahmed works on machine learning for chemistry and materials science and computational tribology, combining molecular design, chemical data, and reactive simulations.</subtitle><author><name>Shihab Ahmed</name></author><entry><title type="html">Machine-learning interatomic potentials, explained from zero</title><link href="https://shihabahmed.com/perspectives/machine-learning-interatomic-potentials-explained/" rel="alternate" type="text/html" title="Machine-learning interatomic potentials, explained from zero" /><published>2026-10-22T00:00:00-07:00</published><updated>2026-10-22T00:00:00-07:00</updated><id>https://shihabahmed.com/perspectives/machine-learning-interatomic-potentials-explained</id><content type="html" xml:base="https://shihabahmed.com/perspectives/machine-learning-interatomic-potentials-explained/"><![CDATA[<p>You open a paper about molecular simulation and find names such as MACE, NequIP, and Deep Potential. Then come the settings: a cutoff, interaction layers, hidden features, angular momentum, an energy head, force weights, and fine-tuning. It is easy to recognize the words without understanding what the model actually does.</p>

<p>This article starts before all of that. We will begin with two atoms, follow how their energy changes with distance, and explain how a computer learns that relationship. From there, we will build up to many atoms, neural networks, graphs, modern architectures, and the different things people mean by a <strong>head</strong>. No machine-learning background is assumed. A few equations appear, but each is followed by its meaning in words.</p>

<blockquote>
  <p><strong>The central idea:</strong> a machine-learning interatomic potential learns a rule for the energy of an arrangement of atoms. In an energy-based model, the forces come from the slope of that learned energy. Molecular dynamics uses those forces to move the atoms. The architecture determines how the model represents the arrangement; the training data determine which physical situations it has learned about.</p>
</blockquote>

<p>The discussion draws on published research and the developers’ documentation, rather than on a training experiment of my own. Software details were checked in October 2026. The architecture examples explain the main ideas; they are not a ranking of every available model.</p>

<details class="essay-toc" open="">
<summary>In this post</summary>
<ol>
<li><a href="#the-job-an-energy-landscape-for-atoms">The job: an energy landscape for atoms</a></li>
<li><a href="#a-two-atom-example">A two-atom example</a></li>
<li><a href="#what-an-mlip-receives-and-returns">What an MLIP receives and returns</a></li>
<li><a href="#what-learning-actually-means">What learning actually means</a></li>
<li><a href="#why-the-model-sees-neighborhoods">Why the model sees neighborhoods</a></li>
<li><a href="#the-symmetries-the-model-must-respect">The symmetries the model must respect</a></li>
<li><a href="#from-atoms-to-a-graph-neural-network">From atoms to a graph neural network</a></li>
<li><a href="#equivariance-without-the-intimidating-words">Equivariance without the intimidating words</a></li>
<li><a href="#the-main-architecture-families">The main architecture families</a></li>
<li><a href="#inside-mace-step-by-step">Inside MACE, step by step</a></li>
<li><a href="#what-a-head-actually-is">What a head actually is</a></li>
<li><a href="#foundation-models-and-fine-tuning">Foundation models and fine-tuning</a></li>
<li><a href="#building-a-training-set-that-teaches-the-right-physics">Building a training set that teaches the right physics</a></li>
<li><a href="#from-a-trained-model-to-molecular-dynamics">From a trained model to molecular dynamics</a></li>
<li><a href="#what-can-go-wrong">What can go wrong</a></li>
<li><a href="#a-worked-example-for-oxidation-chemistry">A worked example for oxidation chemistry</a></li>
<li><a href="#reading-papers-and-model-settings">Reading papers and model settings</a></li>
<li><a href="#a-beginners-route-through-the-subject">A beginner's route through the subject</a></li>
<li><a href="#glossary">Glossary</a></li>
<li><a href="#references">References</a></li>
</ol>
</details>

<h2 id="the-job-an-energy-landscape-for-atoms">The job: an energy landscape for atoms</h2>

<h3 id="what-an-interatomic-potential-is">What an interatomic potential is</h3>

<p>Imagine a water molecule. You can stretch an O–H bond, bend the H–O–H angle, or bring another molecule close to it. Each arrangement has an energy. Some arrangements are comfortable, some are strained, and some bring atoms so close together that they strongly repel.</p>

<p>An <strong>interatomic potential</strong> is a mathematical rule that assigns an energy to an arrangement of atoms. Here, <em>potential</em> means potential energy: energy associated with configuration. It does not mean a voltage, and it does not mean an atom’s future possibilities.</p>

<p>The rule must also let us obtain forces. A force tells an atom which way to accelerate. If moving an atom slightly to the right lowers the energy, the force points to the right. In an energy-based potential, forces are calculated from the energy’s downhill slope. We will make this precise in the next section.</p>

<p>An <strong>MLIP</strong>, short for <em>machine-learning interatomic potential</em>, is a potential whose rule has been fitted using machine learning. You will also encounter <em>machine-learning potential</em>, <em>ML force field</em>, and <em>neural-network potential</em>. These names overlap, although an MLIP need not use a neural network. Some use linear models or statistical methods called Gaussian processes. <sup><a href="#ref-1" aria-label="Reference 1">[1]</a> <a href="#ref-2" aria-label="Reference 2">[2]</a></sup></p>

<h3 id="where-the-target-energy-comes-from">Where the target energy comes from</h3>

<p>For most electronic-structure MLIPs, the reference energy comes from quantum calculations, commonly <strong>density functional theory</strong>, or DFT. DFT approximately solves the electron problem for a given arrangement of nuclei. Its total energy becomes the potential energy governing nuclear motion. If DFT itself is unfamiliar, <a href="/perspectives/quantum-chemistry-codes-explained/">Quantum chemistry codes, explained from zero</a> covers the background.</p>

<p>The usual picture is the <strong>Born–Oppenheimer approximation</strong>: electrons adjust rapidly to nuclei that move much more slowly. For a specified electronic state, we can therefore regard the energy as a function of the nuclear positions. The collection of these energies is the <strong>potential energy surface</strong>, or PES. With two atoms it can be a curve; with many atoms it is a landscape in many dimensions.</p>

<p>A training calculation might provide the energy of a distorted water molecule and the forces on its three atoms. Repeat this for many arrangements, and the MLIP learns an approximation to the reference surface. It normally does not explicitly solve for the electrons during use. That avoided electronic calculation is the main reason for the speedup. <sup><a href="#ref-3" aria-label="Reference 3">[3]</a> <a href="#ref-4" aria-label="Reference 4">[4]</a></sup></p>

<p>The reference method still matters. A model trained to imitate a particular DFT setup inherits its strengths and errors. “DFT accuracy” usually means agreement with the chosen DFT reference on specified tests; it is not a promise of exact chemistry or experimental accuracy.</p>

<h3 id="how-this-differs-from-a-conventional-force-field">How this differs from a conventional force field</h3>

<p>A conventional molecular force field often starts with prescribed terms for bond stretching, angle bending, electrostatics, and nonbonded interactions. Its parameters are fitted too. Machine learning does not introduce the idea of fitting; it offers flexible ways to represent and fit the energy relationship.</p>

<p>Some conventional force fields use a fixed bonding topology. Others are reactive: ReaxFF, for example, uses distance-dependent bond orders to let bonds form and break. Reactivity is therefore not exclusive to MLIPs. <sup><a href="#ref-5" aria-label="Reference 5">[5]</a></sup></p>

<p>Both approaches can be used with classical nuclear dynamics, and both need validation for their intended chemistry. An MLIP’s practical advantage is its ability to approximate a complex reference surface efficiently when the training data and representation are suitable.</p>

<h3 id="the-potential-and-the-simulation-do-different-jobs">The potential and the simulation do different jobs</h3>

<p>A molecular-dynamics program keeps track of positions, velocities, masses, and time. At each timestep it asks the potential for forces, then advances the atoms using an integration algorithm. A thermostat may regulate temperature; a barostat may regulate pressure. Neither is automatically part of the MLIP.</p>

<figure class="review-workflow"><p>Current atom positions → MLIP energy and forces → Dynamics algorithm moves atoms → New positions → Repeat</p><figcaption>The potential supplies interactions. The dynamics algorithm supplies the motion through time.</figcaption></figure>

<p>Consequently, an MLIP is not a stored movie of atoms moving. It can evaluate a structure that was not in a trajectory at all. It can also be used to optimize a geometry, estimate a reaction barrier, or calculate how a crystal responds to a distortion. ASE, the Atomic Simulation Environment, makes this distinction explicit: a <em>calculator</em> provides energies and forces, while separate tools perform optimization or dynamics. <sup><a href="#ref-6" aria-label="Reference 6">[6]</a> <a href="#ref-7" aria-label="Reference 7">[7]</a></sup></p>

<h2 id="a-two-atom-example">A two-atom example</h2>

<p>Before discussing a neural network, consider a deliberately simple model of two atoms connected by a spring. Let their separation be r, and let the comfortable separation be r₀. Near that separation, a familiar energy model is:</p>

<figure class="review-workflow"><p><strong>E(r) = ½ k(r − r₀)²</strong></p><figcaption>The energy grows as the atoms move away from their comfortable separation. The number k controls the stiffness.</figcaption></figure>

<p>We will use invented values: r₀ = 1 Å and k = 4 eV/Å². An ångström, Å, is 10⁻¹⁰ metres, a useful unit for atomic distances. An electronvolt, eV, is a unit of energy. These numbers illustrate the mathematics; they are not parameters for a real chemical bond.</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Separation r</th>
      <th>Energy E</th>
      <th>Force on the atom on the right</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0.8 Å</td>
      <td>0.08 eV</td>
      <td>+0.8 eV/Å: pushes it right, increasing separation</td>
    </tr>
    <tr>
      <td>1.0 Å</td>
      <td>0 eV</td>
      <td>0: the comfortable separation</td>
    </tr>
    <tr>
      <td>1.2 Å</td>
      <td>0.08 eV</td>
      <td>−0.8 eV/Å: pulls it left, decreasing separation</td>
    </tr>
  </tbody>
</table>

<p>This table says something important: <strong>the same energy does not imply the same force</strong>. The two outer configurations have the same height on the curve, but they lie on opposite slopes.</p>

<p>The force on the right-hand atom, when the left-hand atom is held fixed, is:</p>

<figure class="review-workflow"><p><strong>F = −dE/dr = −k(r − r₀)</strong></p><figcaption>The derivative dE/dr is the slope. The minus sign makes the force point downhill.</figcaption></figure>

<p>You do not need calculus to understand the role of the derivative. Imagine nudging the atom and measuring how quickly energy changes. A steep energy change means a large force. A flat curve means a small force.</p>

<h3 id="what-machine-learning-changes">What machine learning changes</h3>

<p>For this spring, someone chose the equation first. Fitting it means finding a suitable stiffness and comfortable separation. A real bond is more complicated: strong compression gives steep repulsion, and stretching far enough can dissociate the atoms. The spring formula cannot describe the full dissociation curve.</p>

<p>A flexible learned model can instead fit a more general curve from reference examples. For a two-atom system with fixed elements and electronic state, its input can be just the separation. With many atoms, one distance is insufficient: bond angles, neighboring elements, and the rest of the relevant environment also matter.</p>

<p>The aim is not merely to connect the known energy points. The fitted curve must have sensible slopes between them. A curve can pass close to every energy label while wiggling badly between labels, producing incorrect forces. Force information helps constrain those slopes. Energy-conserving force-field research develops this connection explicitly. <sup><a href="#ref-4" aria-label="Reference 4">[4]</a></sup></p>

<h3 id="why-the-zero-of-energy-is-not-the-force">Why the zero of energy is not the force</h3>

<p>Add 10 eV everywhere on the spring curve. Every slope stays the same, so every force stays the same. The atoms move exactly as before. This is why an energy offset and a force error are different problems.</p>

<p>For a real model, energy references require care when comparing compositions or combining datasets. Forces alone cannot determine a separate constant energy offset for each element. We will return to this when discussing atomic reference energies and heads.</p>

<h2 id="what-an-mlip-receives-and-returns">What an MLIP receives and returns</h2>

<h3 id="inputs-a-structure-not-just-a-molecular-formula">Inputs: a structure, not just a molecular formula</h3>

<p>“Water” or “H₂O” is insufficient input. The model needs to distinguish a bent molecule from a stretched or dissociating one. A typical atomistic input contains:</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Input</th>
      <th>Plain meaning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Element of every atom</td>
      <td>Which nuclei are present: H, C, O, Fe, and so on</td>
    </tr>
    <tr>
      <td>Position of every atom</td>
      <td>Three coordinates locating each atom</td>
    </tr>
    <tr>
      <td>Simulation cell</td>
      <td>The three vectors defining a periodic box, when used</td>
    </tr>
    <tr>
      <td>Periodic-boundary flags</td>
      <td>Which directions repeat</td>
    </tr>
    <tr>
      <td>Additional state information, if supported</td>
      <td>For example, total charge, spin multiplicity, or a dataset/method selector</td>
    </tr>
  </tbody>
</table>

<p>Coordinates are often stored in ångströms. Elements may be stored as <strong>atomic numbers</strong>, such as 1 for hydrogen and 8 for oxygen. Their numerical order is not a claim that oxygen is “eight times hydrogen”; the model treats element identity appropriately.</p>

<p>The cell and periodic flags matter. Two atoms near opposite faces of a periodic box may be neighbors through the boundary. Ignoring the cell can make nearby atoms look far apart.</p>

<p>Most ordinary potentials do not need atomic velocities to predict potential energy. Nuclear masses enter the dynamics calculation; changing an isotope generally changes the nuclear motion rather than the underlying Born–Oppenheimer electronic energy surface.</p>

<h3 id="outputs-energy-forces-and-sometimes-more">Outputs: energy, forces, and sometimes more</h3>

<p>A common model produces one total energy and three force components per atom. Periodic models may also provide stress. A three-atom water molecule therefore has one energy and nine force components; a 100-atom structure has one energy and 300 force components.</p>

<p>These numbers are <strong>outputs</strong>. They should not all be confused with separate learned heads. In many models, the network directly predicts energy, then a mathematical derivative produces forces and stress. NequIP’s documentation, for example, separates an energy model from the machinery enabling these derivatives. <sup><a href="#ref-8" aria-label="Reference 8">[8]</a></sup></p>

<p>For a many-atom energy, the force on atom i is:</p>

<figure class="review-workflow"><p><strong>Fᵢ = −∂E/∂rᵢ</strong></p><figcaption>Move atom i in each of the three directions and ask how the total energy changes.</figcaption></figure>

<p>Here rᵢ means the position of atom i. The symbol ∂ means that we change one coordinate while holding the others fixed. The force is a vector: a number with both magnitude and direction.</p>

<h3 id="stress-virial-and-pressure">Stress, virial, and pressure</h3>

<p>For a periodic cell, <strong>stress</strong> describes how the energy changes when the cell and its contents are stretched or sheared. It is represented by a 3 × 3 array of numbers. It comes from a derivative with respect to <em>strain</em>, meaning a small deformation.</p>

<p>One common convention writes the potential contribution as σ = (1/V) ∂E/∂ε, where V is the cell volume and ε describes strain. The <strong>virial</strong> is closely related; in the ASE/NequIP convention, virial = −Vσ. Some electronic-structure programs use the opposite sign for stress, so datasets require explicit conversion. <sup><a href="#ref-9" aria-label="Reference 9">[9]</a></sup></p>

<p>The pressure in a moving simulation also contains a contribution from nuclear motion. A DFT stress label is not, by itself, the entire instantaneous pressure of a finite-temperature MD trajectory. ASE documents the distinction through its option to include the ideal-gas, or kinetic, contribution when requesting stress. <sup><a href="#ref-10" aria-label="Reference 10">[10]</a></sup></p>

<p>A model can calculate stress from its energy even if it was trained without stress labels, provided its representation and implementation support the required deformation derivative. Whether that stress is accurate is a separate question. Stress labels and deformation tests help establish that.</p>

<h3 id="charge-and-spin-are-not-optional-physics">Charge and spin are not optional physics</h3>

<p>Total charge counts the electron imbalance: +1 means one electron fewer than the neutral system; −1 means one extra. <strong>Spin</strong> is a quantum property of electrons. <strong>Spin multiplicity</strong> labels their combined total spin: 1 for an ordinary closed-shell molecule, 2 for a radical with one unpaired electron, and 3 for ground-state O₂. In general it is 2S + 1, where S is total spin; counting unpaired electrons plus one works only when their spins align.</p>

<p>The same nuclei at the same positions can have different energies if the number or arrangement of electrons differs. A neutral molecule and its ion do not generally share one energy surface. Different spin states can also differ.</p>

<p>An input that contains only elements and positions cannot distinguish two examples that differ only in an unprovided charge or spin state. The problem is missing information, not insufficient neural-network size. Some models take extra state inputs; others apply to a restricted set of states or approximate a particular ground-state convention. Charge-aware potentials provide explicit examples of extending the usual input. <sup><a href="#ref-11" aria-label="Reference 11">[11]</a></sup></p>

<h2 id="what-learning-actually-means">What learning actually means</h2>

<h3 id="architecture-parameters-and-checkpoint">Architecture, parameters, and checkpoint</h3>

<p>An <strong>architecture</strong> is the arrangement of operations used by the model: what information enters, how it is transformed, and how an answer is produced.</p>

<p><strong>Parameters</strong>, often called <em>weights</em>, are the adjustable numbers inside those operations. Training changes their values.</p>

<p>A <strong>checkpoint</strong> is a saved trained model, usually including its architecture settings and learned weights. Some training checkpoints also contain optimizer state for resuming training. Two checkpoints can use the same architecture but have very different accuracy because they learned from different data or different reference methods.</p>

<p>Think of an architecture as the design of a measuring instrument, and a checkpoint as that instrument after a particular calibration. Knowing the instrument’s name is not enough to know what calibration was used.</p>

<h3 id="a-neural-network-is-an-adjustable-function">A neural network is an adjustable function</h3>

<p>A simple neural network takes a list of numbers, combines them using adjustable weights, applies nonlinear transformations, and repeats. A <strong>layer</strong> is one stage in that sequence. A <strong>feature</strong> is a number, or group of numbers, describing something the model currently knows about the input.</p>

<p>For two atoms, early features might distinguish short, medium, and long separations. Later features combine those descriptions to predict energy. For many atoms, features describe more complicated surroundings.</p>

<p><strong>Nonlinear</strong> means that changing an input does not have to produce a proportionate change in the output. Without appropriate nonlinear operations or nonlinear input features, a stack of linear transformations would collapse into a single linear transformation. Complex chemistry needs a more flexible relationship.</p>

<p>A <strong>hidden layer</strong> is an intermediate stage, before the final output. “Hidden” means internal to the model; it does not mean that it contains a physically hidden atom or electron. Its features are generally learned numerical descriptions, not directly measurable chemical quantities.</p>

<h3 id="training-compares-predictions-with-labels">Training compares predictions with labels</h3>

<p>A <strong>label</strong> is a reference answer associated with an input structure. For an MLIP, labels commonly include total energy, forces, and sometimes stress. Training repeatedly predicts those quantities, compares them with the labels, and adjusts the model to reduce the mismatch.</p>

<p>A <strong>loss function</strong> turns those mismatches into a single score for the optimizer. One illustrative choice is:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>loss = energy_weight × average[(energy error per atom)²]
     + force_weight  × average[(force-component error)²]
     + stress_weight × average[(stress-component error)²]
</code></pre></div></div>

<p>“Error” means prediction minus reference. Squaring makes positive and negative errors both contribute positively and penalizes large errors strongly. “Average” means average over the relevant structures or components. Packages differ in normalization, weighting, and whether they use squared error or another penalty. NequIP documents these choices explicitly. <sup><a href="#ref-12" aria-label="Reference 12">[12]</a></sup></p>

<p>The weights matter because energy, force, and stress have different units and numerical scales. A force weight of 100 in one implementation does not automatically mean the same thing as 100 in another. Check the actual loss definition before comparing settings.</p>

<p>A 100-atom structure supplies 300 force components, but these are not 300 independent structures. They obey geometric relationships and come from one configuration. Force labels provide rich slope information; they do not eliminate the need for diverse configurations.</p>

<h3 id="two-different-derivatives-are-involved">Two different derivatives are involved</h3>

<p><strong>Automatic differentiation</strong> is software that computes derivatives through a sequence of linked operations. It uses the <strong>chain rule</strong>, the calculus rule for combining how each operation changes its input. This avoids manually deriving the entire network or nudging every coordinate numerically. PyTorch calls this machinery <em>autograd</em>. <sup><a href="#ref-13" aria-label="Reference 13">[13]</a></sup></p>

<p>There are two uses to keep separate:</p>

<ol>
  <li>Differentiate energy with respect to <strong>positions</strong> to obtain forces.</li>
  <li>Differentiate the training loss with respect to <strong>model weights</strong> to improve the model.</li>
</ol>

<p>Training on forces therefore involves differentiating through an energy derivative. This is one reason force training can require considerably more memory and work than predicting energies alone. Automatic differentiation follows the implemented function; it does not check whether that function represents sensible physics.</p>

<h3 id="epochs-batches-and-learning-rate">Epochs, batches, and learning rate</h3>

<p>A <strong>batch</strong> is a group of training structures processed together. An <strong>epoch</strong> is roughly one pass through the training set. An <strong>optimizer</strong> is the algorithm that updates weights. Its <strong>learning rate</strong> controls the update size.</p>

<p>A large learning rate can make training unstable; a very small one can make progress slow. More epochs give more opportunities to fit the training set, but can also make the model fit accidental details rather than general patterns. That is <strong>overfitting</strong>.</p>

<p>To detect this, divide the data into training, validation, and test sets. Training adjusts weights. Validation helps choose settings and when to stop. The test set estimates performance after those choices are finished. If you repeatedly choose models based on the test result, that set has effectively become another validation set. The independence of the split matters more than a fashionable percentage. <sup><a href="#ref-14" aria-label="Reference 14">[14]</a></sup></p>

<h2 id="why-the-model-sees-neighborhoods">Why the model sees neighborhoods</h2>

<h3 id="add-up-local-contributions">Add up local contributions</h3>

<p>A widely used design predicts a contribution for every atom and adds the contributions:</p>

<figure class="review-workflow"><p><strong>E = ε₁ + ε₂ + … + εₙ</strong></p><figcaption>Each εᵢ is a learned contribution based on atom i and its relevant environment. The sum is the system's energy.</figcaption></figure>

<p>This was a central idea of the Behler–Parrinello neural-network potential: use local atomic environments to build an energy model that can handle many atoms. An oxygen atom in one water molecule and an oxygen atom in another can be evaluated using the same learned rule. <sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup></p>

<p>This helps the model handle different system sizes. For well-separated, noninteracting copies of the same system, doubling the copies should double the energy. That is <strong>extensivity</strong>. The energy per atom is an <strong>intensive</strong> quantity in a uniform bulk system: it does not grow just because the sample becomes larger.</p>

<p>When an atom moves, it changes its neighbors’ environments too. Its force therefore comes from differentiating the total energy sum, rather than only the contribution assigned to that atom.</p>

<p>Local decomposition is a modeling strategy, not a statement that a DFT calculation uniquely assigns one physical energy to each atom. Usually only the total energy and forces are supervised. Different internal atomic contributions can produce the same totals. Do not automatically interpret an unusually high learned atomic energy as an experimentally defined measure of reactivity.</p>

<h3 id="the-cutoff-radius">The cutoff radius</h3>

<p>A <strong>cutoff radius</strong>, often written r<sub>cut</sub> or <code class="language-plaintext highlighter-rouge">r_max</code>, determines which nearby atoms enter a local calculation or a graph edge. For a 5 Å cutoff, an atom directly sees neighbors within 5 Å. This is a spatial distance, not the number of atoms and not a maximum bond length.</p>

<p>A model should smoothly reduce an interaction’s contribution as a neighbor approaches the cutoff. If the contribution suddenly vanished when an atom crossed an invisible sphere, energy or forces could jump. A <strong>cutoff envelope</strong> is the mathematical function used to make that fading smooth. The required smoothness also depends on whether we need only forces or higher derivatives such as those used for vibrations. SOAP and modern neural-network implementations explicitly address differentiable descriptions of neighborhoods. <sup><a href="#ref-15" aria-label="Reference 15">[15]</a> <a href="#ref-16" aria-label="Reference 16">[16]</a></sup></p>

<p>A neighbor-list <strong>skin</strong> is different. A dynamics program may keep a slightly larger list so it does not need to rebuild neighbors every step. The extra bookkeeping distance does not automatically extend the model’s physical cutoff.</p>

<h3 id="local-does-not-mean-pairwise">Local does not mean pairwise</h3>

<p>A <strong>pair potential</strong> assigns an energy to each pair, commonly as a function of distance alone. A local MLIP can depend on several neighbors simultaneously. It can therefore respond to bond angles and crowded arrangements even though its view is spatially limited.</p>

<p>For example, the energy associated with an oxygen and two hydrogens depends on the H–O–H angle, not just on considering the two O–H interactions separately. A <strong>three-body</strong> description involves three atoms together. A <strong>four-body</strong> description involves four. This is about simultaneous dependence, not the number of atoms in the simulation box. Atomic cluster expansions organize such many-atom information systematically. <sup><a href="#ref-17" aria-label="Reference 17">[17]</a></sup></p>

<h3 id="information-can-travel-beyond-one-cutoff">Information can travel beyond one cutoff</h3>

<p>In an ordinary message-passing graph network, an atom first receives information from its neighbors. At the next layer, those neighbors already carry information from their own neighbors. The <strong>receptive field</strong>, meaning the region that can influence a feature, can therefore extend beyond one cutoff.</p>

<p>With L such layers and edge cutoff r<sub>cut</sub>, information can in principle travel over L graph hops, spanning distances up to roughly Lr<sub>cut</sub>. This is an upper reach, not a guarantee that all distant influences are learned well. It also does not reproduce a true infinite-range electrostatic interaction. Strictly local models such as Allegro use a different design: increasing their internal depth does not propagate atom-centered messages through progressively more distant neighborhoods. <sup><a href="#ref-18" aria-label="Reference 18">[18]</a> <a href="#ref-19" aria-label="Reference 19">[19]</a></sup></p>

<h3 id="what-local-models-leave-out">What local models leave out</h3>

<p>Electrostatic interactions between charges and dispersion attractions can remain important over long distances. A finite local description may fit their effects within a narrow environment, yet fail when the distant surroundings change.</p>

<p>Possible solutions include explicit long-range energy terms, learned charges with a global charge-equilibration calculation, or architectures designed to exchange information over longer distances. In a charge-equilibration model, charges are allowed to redistribute subject to a constraint such as the known total charge. A fourth-generation high-dimensional neural-network potential demonstrated this treatment of non-local charge transfer. <sup><a href="#ref-11" aria-label="Reference 11">[11]</a></sup></p>

<p>The lesson is to check what the model actually includes. A bigger local cutoff may help a particular calculation, but “more neighbors” and “correct long-range physics” are different claims.</p>

<p>A recent example is the 2026 <strong>MACE-POLAR-1</strong> preprint. It extends local MACE features with explicit long-range electrostatics and polarization: the charge distribution responds to its surroundings. Its formulation handles variable total charge and spin through additional charge- and spin-density machinery. This capability belongs to that extended model design; it should not be assumed for every checkpoint using the MACE name.<sup><a href="#ref-20" aria-label="Reference 20">[20]</a></sup></p>

<h2 id="the-symmetries-the-model-must-respect">The symmetries the model must respect</h2>

<p>An isolated molecule should not change its energy because someone moves it across the room, rotates it, or renumbers identical atoms. Using these facts makes learning more efficient and prevents unphysical dependencies.</p>

<h3 id="translation">Translation</h3>

<p>Move every atom by the same amount. Internal distances are unchanged, so the energy of an isolated system without an external position-dependent field should stay the same. This is <strong>translation invariance</strong>.</p>

<p>Using relative positions between atoms automatically removes the arbitrary origin. A model should not need thousands of examples to learn that a water molecule at x = 10 has the same internal energy as the same molecule at x = 0.</p>

<h3 id="rotation">Rotation</h3>

<p>Rotate the entire molecule. The energy should stay the same. A force arrow, however, must rotate with the molecule.</p>

<p><strong>Invariant</strong> means the quantity stays unchanged. <strong>Equivariant</strong> means it changes in a specified, consistent way when the input is transformed. Energy is a rotationally invariant scalar. Force is a rotationally equivariant vector. Equivariance is not a separate correction added to a predicted force; it is a property of the mapping.</p>

<h3 id="permutation-of-identical-atoms">Permutation of identical atoms</h3>

<p>Swap the labels of two hydrogen atoms while keeping the physical arrangement the same. The energy must be unchanged. The corresponding force entries must follow the relabeling.</p>

<p>The model should distinguish hydrogen from oxygen, but it should not distinguish two hydrogens merely because one was listed first in a file. Summing neighbor information and summing atomic energy contributions are useful ways to respect this <strong>permutation symmetry</strong>.</p>

<h3 id="what-these-rules-assume">What these rules assume</h3>

<p>For the usual nonrelativistic energy of a system without symmetry-breaking external fields, reflection symmetry is also relevant. Reflect the entire isolated arrangement and the corresponding energy should be unchanged. This does not imply that two molecules in a chiral environment always behave identically. <em>Chiral</em> means having handedness, like a left or right hand; the surrounding environment is part of the physical arrangement too.</p>

<p>A field, a surface kept fixed while only the molecule rotates, or another external condition can change the symmetry of the problem. The transformation must include all relevant physical inputs. Descriptor research and equivariant-network papers explain these symmetry requirements in detail. <sup><a href="#ref-15" aria-label="Reference 15">[15]</a> <a href="#ref-18" aria-label="Reference 18">[18]</a></sup></p>

<h2 id="from-atoms-to-a-graph-neural-network">From atoms to a graph neural network</h2>

<h3 id="atoms-become-nodes-nearby-pairs-become-edges">Atoms become nodes; nearby pairs become edges</h3>

<p>A <strong>graph</strong> is a set of nodes connected by edges. For an atomistic model, each atom is a node, and a pair of nearby atoms can be connected by an edge. The edge carries geometric information, such as their distance and direction.</p>

<p>This graph normally describes proximity. An edge is not automatically a chemical bond. Two molecules approaching each other can gain edges before any chemical reaction occurs. If a model rebuilds its neighbor graph from positions, it does not need a permanent list of bonded pairs.</p>

<p>This is one reason a suitable MLIP can describe bond formation and breaking: the energy is a function of the changing arrangement. It still needs appropriate training coverage and electronic-state assumptions. The absence of a fixed bond list does not establish reaction accuracy.</p>

<h3 id="embeddings-turn-identities-into-usable-numbers">Embeddings turn identities into usable numbers</h3>

<p>An <strong>embedding</strong> is a learned numerical representation. The model might turn “oxygen” into a list of, say, 64 numbers. Those numbers are adjusted during training so that the later network can use element identity effectively.</p>

<p>They are not 64 measured properties of oxygen. They are working coordinates in the model’s internal feature space. Initially, two oxygen atoms can have the same element embedding. After interactions with their surroundings, oxygen in water and oxygen in a carbonyl can have different environment features.</p>

<h3 id="messages-describe-a-neighbors-influence">Messages describe a neighbor’s influence</h3>

<p>A <strong>message</strong> is a numerical contribution sent along an edge. It may depend on the neighboring atom’s features, the distance, and the direction between atoms. Each atom gathers incoming messages, commonly by summing them, then updates its own features.</p>

<p>A schematic equation is:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>new features of atom i = update(
    old features of atom i,
    sum of messages from its neighbors
)
</code></pre></div></div>

<p>For a water molecule, oxygen receives messages from nearby hydrogens and any neighboring molecules. Later layers can refine what those surroundings mean. This is a <strong>graph neural network</strong>, or GNN, when the message and update rules contain learned neural-network operations.</p>

<h3 id="the-readout-turns-features-into-energy">The readout turns features into energy</h3>

<p>After the interaction stages, a <strong>readout</strong> converts each atom’s internal features into an energy contribution. Summing those contributions gives the total energy. “Readout” is one meaning of “head,” which we will examine separately.</p>

<figure class="review-workflow"><p>Elements and coordinates → Neighbor graph → Element and geometry features → Interaction layers → Energy readout → Total energy → Forces by differentiation</p><figcaption>A common energy-based graph potential. Different architectures change how the geometry and interactions are represented.</figcaption></figure>

<p>An interaction layer is therefore not a simulation timestep. Ten layers do not mean that the model has advanced the atoms ten times. All the layers work on the current configuration before the dynamics algorithm makes its next move. SchNet is an early influential example of learning atomistic interactions through this kind of continuous geometric message passing. <sup><a href="#ref-21" aria-label="Reference 21">[21]</a></sup></p>

<h2 id="equivariance-without-the-intimidating-words">Equivariance without the intimidating words</h2>

<h3 id="a-number-an-arrow-and-a-directional-pattern">A number, an arrow, and a directional pattern</h3>

<p>A scalar feature is a number that does not change when the structure rotates. A distance is a simple example. A vector feature behaves like an arrow: its three components change when the structure rotates.</p>

<p>An equivariant network can keep both kinds of information internally. It does not need to throw away every direction immediately just because its final energy must be a scalar. NequIP uses geometric features that transform predictably, and PaiNN provides a particularly accessible scalar-and-vector construction. <sup><a href="#ref-22" aria-label="Reference 22">[22]</a></sup></p>

<p>More complicated features describe richer directional patterns. A useful mental picture is a pattern painted on a sphere around an atom. Rotating the atomic neighborhood rotates the pattern. The network tracks the pattern using components whose transformation rules are known.</p>

<h3 id="spherical-harmonics">Spherical harmonics</h3>

<p><strong>Spherical harmonics</strong> are standard mathematical building blocks for functions of direction on a sphere. They play a role for directions similar to the role of sine and cosine waves for a repeating signal.</p>

<p>Their angular degree is written l. In three dimensions, a degree-l set has 2l + 1 components:</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Degree</th>
      <th>Components</th>
      <th>Simple picture</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>l = 0</td>
      <td>1</td>
      <td>A direction-independent number</td>
    </tr>
    <tr>
      <td>l = 1</td>
      <td>3</td>
      <td>A vector-like directional pattern</td>
    </tr>
    <tr>
      <td>l = 2</td>
      <td>5</td>
      <td>A more detailed quadrupolar pattern</td>
    </tr>
  </tbody>
</table>

<p>These are representation types, not electron orbitals being solved by the MLIP. The same mathematics appears in quantum mechanics, which explains the familiar names, but an <code class="language-plaintext highlighter-rouge">l_max</code> setting does not mean the model is running an orbital calculation.</p>

<h3 id="irreps-parity-and-channels">Irreps, parity, and channels</h3>

<p>An <strong>irreducible representation</strong>, usually shortened to <em>irrep</em>, is a basic block of components with a particular transformation rule. You can read the label as an instruction: “these numbers must rotate together in this way.”</p>

<p>In the e3nn notation, <code class="language-plaintext highlighter-rouge">0e</code> is an ordinary scalar and <code class="language-plaintext highlighter-rouge">1o</code> behaves like an ordinary vector. The <code class="language-plaintext highlighter-rouge">e</code> and <code class="language-plaintext highlighter-rouge">o</code> describe <strong>parity</strong>: whether the components keep or reverse their sign under inversion, which changes every relative position r into −r. A magnetic-moment-like axial vector and a displacement-like polar vector do not have the same inversion rule. <sup><a href="#ref-23" aria-label="Reference 23">[23]</a></sup></p>

<p>A <strong>channel</strong> is one copy of a feature type. A model can have many scalar channels and many vector channels, allowing it to represent different learned patterns with the same geometric behavior.</p>

<p>For example, the expression <code class="language-plaintext highlighter-rouge">64x0e + 64x1o</code> means 64 scalar channels plus 64 vector channels. Since each vector has three components, it represents 64 + 64 × 3 = 256 numerical components per atom at that stage. “64 channels” is therefore not always “64 individual numbers.”</p>

<h3 id="tensor-products">Tensor products</h3>

<p>A <strong>tensor product</strong> combines geometric features while preserving the correct transformation behavior. With vectors, familiar examples include a dot product that produces a scalar and combinations that produce more elaborate directional information.</p>

<p>General equivariant networks organize these combinations using known angular-coupling rules. The name <em>Clebsch–Gordan coefficients</em> refers to fixed mathematical numbers used in these rules. They are not additional DFT labels. The network learns how strongly to use the allowed combinations.</p>

<p>You can understand the architecture without calculating these coefficients: the point is to combine directional information without accidentally making the answer depend on how the coordinate axes were chosen. The e3nn tensor-product documentation shows how such combinations are constructed. <sup><a href="#ref-24" aria-label="Reference 24">[24]</a></sup></p>

<h3 id="three-settings-that-describe-different-things">Three settings that describe different things</h3>

<p>Do not merge these ideas:</p>

<ul>
  <li><strong>Angular degree</strong> controls the directional representation types carried or used by the model.</li>
  <li><strong>Body order</strong> describes simultaneous dependence on groups of atoms in a particular expansion or operation.</li>
  <li><strong>Interaction depth</strong> counts successive stages that combine or propagate information.</li>
</ul>

<p>Increasing one does not simply replace increasing another. A model can use rich many-body information within a local neighborhood and relatively few message-passing stages. MACE was designed around that possibility. <sup><a href="#ref-25" aria-label="Reference 25">[25]</a></sup></p>

<h2 id="the-main-architecture-families">The main architecture families</h2>

<p>The names can feel like a collection of unrelated inventions. A more useful way to organize them is by asking two questions: <strong>how is an atomic environment represented, and what mathematical model turns that representation into energy?</strong></p>

<h3 id="fixed-descriptors-with-a-fitted-energy-model">Fixed descriptors with a fitted energy model</h3>

<p>A <strong>descriptor</strong> is a numerical summary of a structure or neighborhood. It might describe how many neighbors sit at different distances and how their directions relate. A <em>fixed</em> descriptor has a prescribed mathematical definition; its numerical value still changes when the atoms move.</p>

<p>Behler–Parrinello-style models use <strong>symmetry functions</strong>, carefully chosen functions of neighboring distances and angles. A neural network maps each atom’s descriptor to an energy contribution. ANI uses a related atom-centered representation with element-resolved information, demonstrating transfer across organic molecules within its defined chemical scope. <sup><a href="#ref-26" aria-label="Reference 26">[26]</a></sup></p>

<p><strong>SOAP</strong>, the Smooth Overlap of Atomic Positions, describes a neighborhood using a smooth density around neighboring atoms and rotationally invariant comparisons of its shape. <strong>GAP</strong>, the Gaussian Approximation Potential framework, uses Gaussian-process regression to learn an energy model; SOAP is a common descriptor used with GAP, not another name for the regression method. <sup><a href="#ref-2" aria-label="Reference 2">[2]</a> <a href="#ref-15" aria-label="Reference 15">[15]</a></sup></p>

<p>A <strong>Gaussian process</strong> is a statistical model of functions. In this setting, a <em>kernel</em> measures similarity between environments, and the fitted model combines reference information to make a prediction. Practical GAP models use sparse representative environments to control cost. Gaussian-process uncertainties are useful, but depend on assumptions about the model and data; they are not automatic guarantees of physical accuracy.</p>

<h3 id="linear-models-with-rich-many-body-features">Linear models with rich many-body features</h3>

<p>“Linear” can sound too simple for chemistry, but it means linear in the fitted coefficients, not necessarily linear in atom positions. The features themselves can be complicated nonlinear functions of geometry.</p>

<p><strong>SNAP</strong>, the Spectral Neighbor Analysis Potential, uses a particular set of neighborhood descriptors called bispectrum components. In its original form, atomic energy is a linear combination of those components. <sup><a href="#ref-27" aria-label="Reference 27">[27]</a></sup></p>

<p><strong>Moment Tensor Potentials</strong>, or MTPs, build neighborhood information from weighted sums of products of relative-position components. These are combined into rotation-invariant quantities, and the energy is fitted using the resulting basis. <sup><a href="#ref-28" aria-label="Reference 28">[28]</a></sup></p>

<p><strong>ACE</strong>, the Atomic Cluster Expansion, systematically constructs symmetry-respecting many-body basis functions for atomic environments. An ACE potential can use a linear expansion, while other models build nonlinear or neural-network constructions using related ideas. This is a useful bridge to understanding MACE. <sup><a href="#ref-17" aria-label="Reference 17">[17]</a></sup></p>

<p>These methods show why “not a deep neural network” does not mean “not a machine-learning potential.” Their accuracy and cost depend on the representation, fitted model, and training coverage.</p>

<h3 id="learned-invariant-representations">Learned invariant representations</h3>

<p><strong>SchNet</strong> learns distance-dependent filters that transform and exchange atomic features. Its internal atom features are rotationally invariant. <strong>DimeNet</strong> adds explicit angular information through directional messages involving atom triplets. <sup><a href="#ref-21" aria-label="Reference 21">[21]</a> <a href="#ref-29" aria-label="Reference 29">[29]</a></sup></p>

<p>Distance-based does not mean that a multilayer model is simply adding independent pair energies. Repeated interactions can encode many-atom dependencies. Explicit angle information and equivariant features are different ways to make useful geometry easier to learn.</p>

<p><strong>Deep Potential</strong> learns local environment representations and maps them to atomic energy contributions. <strong>DeePMD-kit</strong> is a software framework for these models, rather than a single frozen architecture; its supported descriptors and fitting networks have expanded over time. The original Deep Potential molecular-dynamics paper and the framework documentation are distinct sources to consult. <sup><a href="#ref-30" aria-label="Reference 30">[30]</a> <a href="#ref-31" aria-label="Reference 31">[31]</a></sup></p>

<h3 id="equivariant-message-passing-networks">Equivariant message-passing networks</h3>

<p><strong>PaiNN</strong> carries scalar and vector features and updates them together. <strong>NequIP</strong> uses equivariant geometric representations to build atom-centered interaction networks. Both keep directional information inside the model while producing an invariant energy. <sup><a href="#ref-22" aria-label="Reference 22">[22]</a> <a href="#ref-18" aria-label="Reference 18">[18]</a></sup></p>

<p><strong>MACE</strong> combines equivariant message passing with higher-order local feature combinations inspired by atomic cluster expansions. It can build expressive many-body messages without relying only on a long chain of ordinary message-passing layers. We will walk through it next. <sup><a href="#ref-25" aria-label="Reference 25">[25]</a></sup></p>

<p>Equivariance is a useful architectural constraint, not an accuracy certificate. A properly equivariant model trained on the wrong reference data still gives the wrong answer consistently under rotation.</p>

<h3 id="strictly-local-equivariant-models">Strictly local equivariant models</h3>

<p><strong>Allegro</strong> uses learned equivariant tensor-product operations within a fixed local environment, without atom-centered message passing across successively larger neighborhoods. It is designed with large-scale, parallel atomistic simulation in mind. <sup><a href="#ref-19" aria-label="Reference 19">[19]</a></sup></p>

<p>Its energy construction includes local edge-associated contributions, but those contributions depend on the surrounding environment. An “edge energy” is therefore not necessarily an ordinary pair potential depending only on that edge’s distance.</p>

<h3 id="equivariant-attention-models">Equivariant attention models</h3>

<p><strong>Attention</strong> learns how strongly to weight different pieces of available information. In a neighborhood, different neighbors can receive different learned weights depending on the current features and geometry. An <strong>attention head</strong> is one parallel weighting-and-combination operation.</p>

<p><strong>EquiformerV2</strong> is an example of an equivariant transformer architecture combining attention with structured geometric representations. Attention can be restricted to a local graph; the word <em>transformer</em> does not mean every atom communicates with every other atom in the system. It also does not mean that the model is a language model. <sup><a href="#ref-32" aria-label="Reference 32">[32]</a></sup></p>

<h3 id="a-compact-map-of-the-names">A compact map of the names</h3>

<table class="wrap">
  <thead>
    <tr>
      <th>Name</th>
      <th>Main architectural idea</th>
      <th>A distinction to remember</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Behler–Parrinello / ANI</td>
      <td>Atom-centered descriptors plus neural networks</td>
      <td>Symmetry is built into the environment representation</td>
    </tr>
    <tr>
      <td>GAP with SOAP</td>
      <td>Statistical regression using environment similarity</td>
      <td>SOAP describes environments; GAP fits the energy relationship</td>
    </tr>
    <tr>
      <td>SNAP / MTP / ACE</td>
      <td>Rich invariant basis functions, often with linear fitting</td>
      <td>Linear coefficients can multiply nonlinear geometric features</td>
    </tr>
    <tr>
      <td>SchNet / DimeNet</td>
      <td>Learned invariant interactions; explicit angles in DimeNet</td>
      <td>Invariant does not mean pairwise-only</td>
    </tr>
    <tr>
      <td>Deep Potential</td>
      <td>Learned local descriptors and energy fitting</td>
      <td>DeePMD-kit supports multiple model variants</td>
    </tr>
    <tr>
      <td>PaiNN / NequIP</td>
      <td>Scalar/vector or more general equivariant interactions</td>
      <td>Internal directions transform with the atomic environment</td>
    </tr>
    <tr>
      <td>MACE</td>
      <td>Equivariant higher-order local combinations and message passing</td>
      <td>Body order and layer count are separate ideas</td>
    </tr>
    <tr>
      <td>Allegro</td>
      <td>Strictly local equivariant many-body representation</td>
      <td>Internal depth does not expand atom-centered message-passing reach</td>
    </tr>
    <tr>
      <td>EquiformerV2</td>
      <td>Equivariant attention</td>
      <td>Attention heads are different from energy heads</td>
    </tr>
  </tbody>
</table>

<p>These categories overlap. An architecture may use descriptors, tensor products, message passing, and attention in different combinations. A comparison table is a map of the main design choices, not a rule that every implementation belongs in exactly one box.</p>

<h2 id="inside-mace-step-by-step">Inside MACE, step by step</h2>

<p>MACE is worth examining closely because it brings many of the terms together. This is a conceptual walkthrough of the energy-based architecture. Particular checkpoints and newer variants can add or change components.</p>

<h3 id="1-build-the-neighborhood-graph">1. Build the neighborhood graph</h3>

<p>Start with elements, positions, and any periodic cell. Find nearby pairs within the model’s cutoff. For every edge, calculate a relative displacement, its length, and its direction. Periodic-image shifts must be included when a neighbor lies across a cell boundary.</p>

<h3 id="2-encode-the-elements-and-distances">2. Encode the elements and distances</h3>

<p>An element embedding creates initial atomic features. Distances are expanded in <strong>radial basis functions</strong>: several smooth functions that respond differently at different separations. Instead of seeing one bare number, the network gets a collection of distance-sensitive signals.</p>

<p>For intuition, imagine overlapping distance windows, with one responding strongly near 1 Å and another near 2 Å. Actual bases can use oscillatory functions rather than those simple windows, but the purpose is similar: provide a flexible description of how interactions vary with separation. The official implementation includes radial embeddings and a smooth polynomial cutoff. <sup><a href="#ref-16" aria-label="Reference 16">[16]</a></sup></p>

<h3 id="3-encode-directions">3. Encode directions</h3>

<p>Spherical harmonics describe the edge directions. These geometric quantities are combined with distance-dependent weights and atom features to form equivariant neighbor contributions. Summing contributions over neighbors produces local environment features.</p>

<h3 id="4-combine-neighbor-information-into-higher-order-features">4. Combine neighbor information into higher-order features</h3>

<p>The <strong>product-basis</strong> stage forms symmetry-allowed products of the aggregated features. Multiplying environment summaries lets the model represent joint patterns involving several neighbors.</p>

<p>A useful schematic is:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>one neighbor contribution       → center + one neighbor
products of two contributions   → center + up to two neighbors
products of three contributions → center + up to three neighbors
</code></pre></div></div>

<p>Thus a correlation order of three can construct terms involving the center and up to three distinct neighbors: four-body information in that local expansion. Repeated neighbor indices also contribute lower-order terms. With multiple interaction stages and nonlinear readouts, this is not a claim that the complete final model is strictly limited to four-body physics. The MACE paper and its product-basis implementation explain the construction. <sup><a href="#ref-25" aria-label="Reference 25">[25]</a> <a href="#ref-16" aria-label="Reference 16">[16]</a></sup></p>

<p>This is also different from saying that only four atoms fit inside the cutoff. There can be many more neighbors in the environment.</p>

<h3 id="5-update-features-and-read-out-energy">5. Update features and read out energy</h3>

<p>Interaction and product stages update each atom’s representation. Readout blocks convert suitable invariant features into atomic energy contributions. MACE can combine contributions from multiple stages; it need not wait until the final layer to read out everything.</p>

<p>The model also includes element-dependent reference energies and, in some variants, scaling or shift terms. These bookkeeping choices matter for interpreting the predicted total. The official model implementation shows the embeddings, interaction blocks, product blocks, readouts, and final energy assembly in one place. <sup><a href="#ref-33" aria-label="Reference 33">[33]</a></sup></p>

<h3 id="6-differentiate-the-selected-total-energy">6. Differentiate the selected total energy</h3>

<p>For an energy-based MACE potential, forces come from differentiating that assembled energy with respect to positions. Stress and virials can be obtained through the corresponding deformation derivatives. They are not independent guesses merely because they appear as separate entries in the returned output dictionary. <sup><a href="#ref-33" aria-label="Reference 33">[33]</a></sup></p>

<p>The complete route is therefore geometry → structured features → energy → derivatives. The model’s learned many-body geometry and the calculus connecting energy to force both matter.</p>

<h2 id="what-a-head-actually-is">What a head actually is</h2>

<p>A <strong>head</strong> usually means a part of a model that turns an internal representation into an output. Unfortunately, the same word is used for several different things. Always ask what is being selected or predicted.</p>

<h3 id="1-an-energy-readout-head">1. An energy readout head</h3>

<p>Imagine that the main network has finished describing each atom’s environment. The energy head turns that description into a number. Summing the numbers gives total energy.</p>

<p>The shared feature-building network is often called the <strong>backbone</strong> or <strong>trunk</strong>. The head is the final interpretation of its features. This is a useful simplification, although real models can have several intermediate readouts and head-specific scaling or reference terms.</p>

<p>For an ordinary energy head, the output must transform as an invariant scalar. A vector-valued hidden feature is not directly summed as an energy without a suitable invariant construction. The readout classes in MACE provide concrete examples of these output mappings. <sup><a href="#ref-16" aria-label="Reference 16">[16]</a></sup></p>

<h3 id="2-a-force-output-is-not-necessarily-a-learned-force-head">2. A force output is not necessarily a learned force head</h3>

<p>In an energy-based model:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>features → energy head → total energy
                              ↓ derivative with respect to positions
                            forces
</code></pre></div></div>

<p>There can be one learned energy model and many derivative outputs. This is why seeing <code class="language-plaintext highlighter-rouge">energy</code>, <code class="language-plaintext highlighter-rouge">forces</code>, and <code class="language-plaintext highlighter-rouge">stress</code> in an interface does not establish that the model has three independently trained prediction heads.</p>

<p>Other models predict forces directly. Such a force predictor must be checked for <strong>conservativeness</strong>: whether there is one consistent potential energy whose negative gradient equals the predicted forces. In general, predicting both an energy and forces separately does not enforce that relationship. Special constructions can enforce it, including force-domain methods. <sup><a href="#ref-4" aria-label="Reference 4">[4]</a> <a href="#ref-8" aria-label="Reference 8">[8]</a></sup></p>

<p>For a smooth conservative field, the work around a closed path is zero. In plain terms, taking atoms around a loop back to the same arrangement cannot yield free net energy from the potential. A model can be rotation-equivariant yet fail this energy-consistency condition. The two constraints answer different questions.</p>

<h3 id="3-property-heads">3. Property heads</h3>

<p>A shared representation can also predict a <strong>dipole moment</strong>, a measure of charge separation, or a <strong>polarizability</strong>, describing how the electron cloud responds to an electric field. These outputs have their own geometric transformation rules and require suitable training targets or physical constructions.</p>

<p>PhysNet is an example of a model designed for energies, forces, dipole moments, and partial charges. Its electrostatic treatment makes predicted charges part of the energy model, rather than merely decorative extra numbers. <sup><a href="#ref-34" aria-label="Reference 34">[34]</a></sup></p>

<p>A property head does not appear automatically just because the backbone seems chemically informative. Adding an untrained dipole head would not give a reliable dipole model. Likewise, a reported partial charge depends on its definition or construction; it is not generally a uniquely measurable charge sitting on an atom.</p>

<h3 id="4-dataset-or-method-heads">4. Dataset or method heads</h3>

<p>Suppose we have two datasets: A contains PBE reference calculations, and B contains calculations using a different functional. The same geometry can legitimately have different labels in A and B.</p>

<p>If we feed both examples to one unconditioned output, we ask it to produce two answers for the same input. Separate heads offer one way to resolve this:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>                     ┌→ head A → energy for reference setup A
shared representation
                     └→ head B → energy for reference setup B
</code></pre></div></div>

<p>In a multihead MACE construction, readouts and element reference energies can depend on the selected head. Some variants also include head-dependent scale and shift values. The core feature-building network can be shared. <sup><a href="#ref-33" aria-label="Reference 33">[33]</a></sup></p>

<p>A method head is not necessarily just a constant correction. Different reference methods can change bond stiffness, reaction barriers, and relative stability. Their energy surfaces can have different shapes.</p>

<p>At inference time, the chosen head determines which learned target you request. An adsorption energy, for example, requires compatible energies for the adsorbed system, clean surface, and isolated molecule. Switching heads between terms does not produce a consistent energy difference merely because every number came from one checkpoint.</p>

<h3 id="5-replay-and-target-heads-during-fine-tuning">5. Replay and target heads during fine-tuning</h3>

<p>A foundation model has already learned from a broad dataset. Fine-tuning changes it using a more focused target dataset. The shared network can become better on the target while losing some earlier capability: <strong>catastrophic forgetting</strong>.</p>

<p>MACE’s <strong>multihead replay</strong> protocol combines target data with a replay dataset and uses separate heads while training. “Replay” means continuing to show examples intended to retain earlier behavior. It does not mean replaying an MD trajectory as a movie. <sup><a href="#ref-35" aria-label="Reference 35">[35]</a></sup></p>

<p>The replay labels can be original reference calculations or <strong>pseudolabels</strong>, predictions from the earlier model. Pseudolabels teach the updated model to retain the previous model’s behavior on those structures; they do not turn previous predictions into newly verified quantum answers. Replay can reduce forgetting, but its effectiveness still needs evaluation for the intended task.</p>

<p>This is more than attaching a fresh final layer while assuming everything else stays frozen. Which weights are updated depends on the fine-tuning protocol.</p>

<h3 id="6-attention-heads">6. Attention heads</h3>

<p>An attention head works inside an attention mechanism. Several heads let the model form several learned weighted combinations of available features. Their results are combined and passed onward.</p>

<p>These are not separate PBE and hybrid-DFT energy surfaces. They need not correspond to named chemical effects, such as “hydrogen-bond head” and “dispersion head.” Even when patterns emerge, such interpretations need evidence. EquiformerV2 illustrates attention in an equivariant atomistic architecture. <sup><a href="#ref-32" aria-label="Reference 32">[32]</a></sup></p>

<h3 id="7-heads-ensembles-experts-and-tasks">7. Heads, ensembles, experts, and tasks</h3>

<p>An <strong>ensemble</strong> is a collection of models. Running several independently trained models on the same structure gives several predictions whose spread can help estimate uncertainty. Several output heads sharing one backbone are not automatically an independent ensemble.</p>

<p>An <strong>expert</strong> is a component used by a mixture-of-experts model. A routing rule controls how experts contribute. Experts increase or organize internal model capacity; they need not be separate final output heads.</p>

<p>UMA is a useful concrete example. Its developers describe a <em>mixture of linear experts</em> with task-dependent routing and a <strong>single output head</strong>. The task input identifies the reference-data domain and level of theory to emulate. In its molecular task, total charge and spin multiplicity are also relevant inputs. A selectable task is therefore not proof that the architecture has one output head per task. <sup><a href="#ref-36" aria-label="Reference 36">[36]</a> <a href="#ref-37" aria-label="Reference 37">[37]</a></sup></p>

<table class="wrap">
  <thead>
    <tr>
      <th>Term in a paper or interface</th>
      <th>What to check</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Energy head</td>
      <td>Does it predict atomic contributions, a total, or a correction?</td>
    </tr>
    <tr>
      <td>Force head</td>
      <td>Are forces directly predicted or derived from energy?</td>
    </tr>
    <tr>
      <td>Property head</td>
      <td>What property, symmetry, and labels define the output?</td>
    </tr>
    <tr>
      <td>Dataset / method head</td>
      <td>Which reference setup does it represent?</td>
    </tr>
    <tr>
      <td>Replay head</td>
      <td>What earlier behavior is the replay dataset intended to preserve?</td>
    </tr>
    <tr>
      <td>Attention head</td>
      <td>What internal information is weighted and combined?</td>
    </tr>
    <tr>
      <td>Task / expert</td>
      <td>Is this an input condition, routing mechanism, output branch, or something else?</td>
    </tr>
  </tbody>
</table>

<h2 id="foundation-models-and-fine-tuning">Foundation models and fine-tuning</h2>

<h3 id="the-architecture-is-not-the-trained-domain">The architecture is not the trained domain</h3>

<p>A <strong>foundation model</strong> is a broadly pretrained model intended to support several downstream applications. In atomistic modeling, this usually means a model trained on a large and varied collection of reference structures, which can be used directly or adapted.</p>

<p>MACE is an architecture. MACE-MP is a family of materials-oriented trained models, while MACE-OFF models target organic molecular chemistry. Their training data and reference calculations differ. Using the same architectural ideas does not make their energies interchangeable. <sup><a href="#ref-38" aria-label="Reference 38">[38]</a> <a href="#ref-39" aria-label="Reference 39">[39]</a></sup></p>

<p>Similarly, M3GNet and CHGNet combine specific architectural designs with broad materials pretraining. M3GNet explicitly includes three-body interactions. CHGNet uses magnetic-moment information during training to help learn charge-related structure. “Charge-informed” should not be read as a promise that any user can set any ionic or magnetic state and obtain its exact energy. <sup><a href="#ref-40" aria-label="Reference 40">[40]</a> <a href="#ref-41" aria-label="Reference 41">[41]</a></sup></p>

<p>The relevant question is what a particular checkpoint was trained to represent: which elements, structures, electronic states, reference method, and operating conditions.</p>

<h3 id="element-coverage-is-only-one-kind-of-coverage">Element coverage is only one kind of coverage</h3>

<p>A model may recognize the symbols H, C, O, and Fe without being reliable for a lubricant oxidizing on an iron surface. That application combines molecules, radicals, a metal, adsorption, compressed contacts, and potentially several spin states.</p>

<p><strong>Element coverage</strong> means the model supports those species. <strong>Environment coverage</strong> means it has learned relevant local arrangements. <strong>State coverage</strong> concerns charge, magnetism, electronic state, and other conditions. Passing the first check does not pass the other two.</p>

<p>Foundation-model cards and release documentation summarize intended domains, reference methods, and limitations. These details can change between releases, so record an explicit checkpoint instead of relying on a moving software default. <sup><a href="#ref-42" aria-label="Reference 42">[42]</a></sup></p>

<h3 id="four-different-ways-to-adapt-a-model">Four different ways to adapt a model</h3>

<p><strong>Training from scratch</strong> starts from an untrained model and fits your data. It gives control over the setup but requires enough suitable data to learn the needed relationships.</p>

<p><strong>Full fine-tuning</strong> starts from pretrained weights and updates them on target data. It can need less target data, but can also inherit limitations or forget earlier behavior.</p>

<p><strong>Head-only fine-tuning</strong> freezes the backbone and trains a selected readout. This is cheaper or more constrained, but it assumes that the fixed representation already contains what the new task needs.</p>

<p><strong>Low-rank adaptation</strong>, often called LoRA, trains restricted updates to some weight matrices rather than freely changing every weight. “Low rank” means that the update is expressed through smaller factors, limiting how it can change the original transformation. It is another adaptation method, not another meaning of a physical energy head. Official MACE guidance compares these approaches and replay-based fine-tuning. <sup><a href="#ref-43" aria-label="Reference 43">[43]</a></sup></p>

<p>There is also <strong>delta learning</strong>: predict a correction to a baseline energy, then add baseline and correction. For example, a model may learn the difference between a cheaper method and a more expensive target. The baseline still has to be evaluated, and the correction must be fitted with a consistent definition of the difference. <sup><a href="#ref-44" aria-label="Reference 44">[44]</a></sup></p>

<h3 id="atomic-reference-energies-and-e0s">Atomic reference energies and E0s</h3>

<p>Total energies can contain large element-dependent baselines. It is often helpful to write:</p>

<figure class="review-workflow"><p><strong>Total energy = sum of element reference energies + learned interaction energy</strong></p><figcaption>The references provide a baseline. The model learns the remaining environment-dependent part.</figcaption></figure>

<p>In MACE discussions, these reference values are commonly called <strong>E0s</strong>. They may be based on isolated-atom calculations or set through a fitting procedure. Do not assume that any fitted intercept is a physically correct isolated-atom energy.</p>

<p>Adding a constant per element does not change forces for a fixed composition. That makes it possible to have apparently good forces alongside badly aligned total energies. For composition-changing comparisons, isolated fragments, or combining reference methods, the alignment requires particular care. Some model variants also distribute offsets between explicit references and learned biases. MACE’s fine-tuning guidance discusses these issues. <sup><a href="#ref-45" aria-label="Reference 45">[45]</a></sup></p>

<p>In a balanced reaction evaluated with one consistent model, purely element-count-dependent constants cancel. A wrong dissociation curve or wrong relative electronic-state energy does not disappear through that cancellation. Correct bookkeeping and correct chemistry both matter.</p>

<h3 id="how-to-choose-a-starting-checkpoint">How to choose a starting checkpoint</h3>

<p>Begin with the scientific question, not the largest parameter count. Check the supported elements, training domains, charge and spin handling, reference method, dispersion treatment, licensing, and available simulation interfaces. Then evaluate a small representative reference set before committing to a long calculation.</p>

<p>A pretrained model can be useful immediately, but that usefulness is an empirical property of the checkpoint on your task. It does not follow from the word “universal.”</p>

<h2 id="building-a-training-set-that-teaches-the-right-physics">Building a training set that teaches the right physics</h2>

<h3 id="a-dataset-is-a-collection-of-situations">A dataset is a collection of situations</h3>

<p>A thousand relaxed water molecules do not automatically teach a model how water dissociates, how an ion is solvated, or what happens against a metal surface. Training examples must cover the arrangements and states relevant to the intended calculation.</p>

<p>Useful sources include distorted structures, molecular conformations (different shapes of the same molecule), thermal trajectories, strained cells, defects such as missing atoms, liquids, interfaces, and configurations near important reaction paths. The needed mixture depends on the question. Active-learning platforms such as DP-GEN organize data collection around exploration, reference labeling, and repeated improvement. <sup><a href="#ref-46" aria-label="Reference 46">[46]</a></sup></p>

<p>A training set is not just a file size. One million nearly identical frames can contain less useful new information than a much smaller set spanning distinct environments. This is especially important when a rare event controls the observable.</p>

<h3 id="consistent-reference-calculations">Consistent reference calculations</h3>

<p>Labels should be generated with a defined reference method and settings appropriate to the task. Mixing unrelated functionals, pseudopotentials, spin conventions, or dispersion treatments in one unconditioned output can create conflicting targets.</p>

<p>Consistency does not always mean using an identical number for every setting. Different cell sizes may require different k-point meshes to maintain a comparable sampling density. The underlying reference protocol and convergence accuracy should remain controlled and documented.</p>

<p>For metallic calculations with electronic smearing—partly filling electronic states to help the calculation converge—check which energy is consistent with the reported forces. An extrapolated zero-smearing energy and the finite-smearing free-energy surface are not automatically the same training target. ASE’s documentation explicitly notes that a calculator can distinguish these energy definitions. <sup><a href="#ref-10" aria-label="Reference 10">[10]</a></sup></p>

<p>The label precision must also suit the desired accuracy. An unconverged reference calculation is not made more trustworthy by storing many digits after the decimal point.</p>

<h3 id="what-a-structure-file-needs-to-preserve">What a structure file needs to preserve</h3>

<p>An extended XYZ file can hold elements, positions, per-atom properties, a cell, periodic flags, and per-structure information such as energy. Other packages use different formats. The important thing is the meaning of the fields, not the filename extension. ASE documents how extended XYZ maps these properties. <sup><a href="#ref-47" aria-label="Reference 47">[47]</a></sup></p>

<p>Before fitting, inspect a few records by hand and through the intended data reader. Check whether energy is total or per atom, which force column belongs to which atom, and whether the cell vectors are interpreted as rows or columns.</p>

<p>An eV/Å force is not an eV force, and a stress in gigapascals is not numerically interchangeable with stress in eV/Å³. Stress may be stored as a 3 × 3 matrix or as six independent components in a particular order. A virial has energy units, whereas stress has energy-per-volume units. Names alone are not enough to establish compatibility.</p>

<h3 id="split-by-the-scientific-challenge">Split by the scientific challenge</h3>

<p>Neighboring frames in one trajectory often look almost identical. Randomly mixing them across training and test sets can make the test mostly measure interpolation between familiar frames.</p>

<p>A more informative split may hold out complete trajectories, molecular families, crystal structures, compositions, temperatures, or reaction paths. Choose the split to match the intended generalization claim. Holding out a different temperature does not necessarily test transfer to a different chemical species.</p>

<p>Keep a genuinely independent final test set. If new active-learning data are added, track which structures became training data so that the final evaluation does not silently include them.</p>

<h3 id="active-learning">Active learning</h3>

<p><strong>Active learning</strong> lets the model help decide which new reference calculations would be useful. The basic loop is:</p>

<figure class="review-workflow"><p>Initial reference structures → Train → Explore with the model → Identify informative or uncertain structures → Reference calculations → Expand the dataset → Retrain</p><figcaption>The goal is to spend expensive labeling effort where it improves coverage.</figcaption></figure>

<p>Podryabinkin and Shapeev developed an extrapolation-based selection approach for linearly parametrized potentials. It evaluates how far candidate configurations stretch the fitted representation. <sup><a href="#ref-48" aria-label="Reference 48">[48]</a></sup></p>

<p>DP-GEN uses disagreement between independently trained models as part of a concurrent-learning workflow. FLARE demonstrates on-the-fly learning using Bayesian force models and uncertainty estimates. These are different implementations of the broader idea, not one universal uncertainty formula. <sup><a href="#ref-46" aria-label="Reference 46">[46]</a> <a href="#ref-49" aria-label="Reference 49">[49]</a></sup></p>

<p>Selection should capture informative diversity. A thousand adjacent frames from the same unfamiliar event can be redundant. It is also useful to include deliberately chosen physical tests, such as compressed contacts or an important transition pathway, rather than expecting an uncertainty indicator to discover every relevant failure.</p>

<h3 id="what-an-uncertainty-estimate-means">What an uncertainty estimate means</h3>

<p>An <strong>uncertainty estimate</strong> measures some aspect of how unsure a model or modeling procedure appears to be. It is not the same quantity as the actual error, which requires a reference answer.</p>

<p>An ensemble disagreement can be small because all members learned the same wrong trend. A statistical uncertainty can be misleading if its assumptions fail far from the training distribution. A model may even be confident about an electronic state it was never given a way to identify.</p>

<p>A practical <strong>calibration</strong> check compares uncertainty with observed reference errors on independent examples. If high uncertainty tends to flag large errors, the signal is useful for selection. A numerical uncertainty threshold should be chosen and tested for the model, units, and application; it is not a material-independent safety limit. Bayesian active-learning work makes the role of a defined uncertainty model explicit. <sup><a href="#ref-49" aria-label="Reference 49">[49]</a></sup></p>

<h2 id="from-a-trained-model-to-molecular-dynamics">From a trained model to molecular dynamics</h2>

<h3 id="first-evaluate-one-structure">First, evaluate one structure</h3>

<p>Before a long trajectory, ask the model for the energy and forces of a familiar structure. Compare with its reference calculation. Check a slightly distorted structure too: at an optimized geometry, forces close to zero are an easy and incomplete test.</p>

<p>At this stage, confirm the element mapping, coordinate units, periodic flags, charge and spin inputs, selected head or task, and model precision. A wrong atomic-number map can produce a formally valid calculation with the wrong physical meaning.</p>

<p>An ASE calculator provides a convenient common interface for requesting energies and forces. LAMMPS and other simulation engines can run supported MLIP implementations through their own interfaces. Model compatibility, package versions, and deployment details still need checking. <sup><a href="#ref-6" aria-label="Reference 6">[6]</a></sup></p>

<h3 id="then-let-a-dynamics-algorithm-move-the-atoms">Then let a dynamics algorithm move the atoms</h3>

<p>Newton’s law relates force to acceleration:</p>

<figure class="review-workflow"><p><strong>acceleration = force / mass</strong></p><figcaption>The MLIP supplies the force. The integrator uses it with masses, positions, and velocities to advance the system.</figcaption></figure>

<p>An <strong>integrator</strong>, such as velocity Verlet, takes a small time step and updates motion. A timestep is often measured in femtoseconds: 1 fs = 10⁻¹⁵ seconds. Hydrogen-containing systems can need particularly short steps because their fast vibrations must be resolved. The appropriate step must be tested; replacing DFT with an MLIP does not remove the time resolution required by the physical motion.</p>

<p>A <strong>thermostat</strong> controls the thermal behavior of the simulation, and a <strong>barostat</strong> controls cell fluctuations associated with pressure. ASE’s MD documentation describes these as separate simulation components. <sup><a href="#ref-7" aria-label="Reference 7">[7]</a></sup></p>

<h3 id="check-energy-behavior-in-the-right-ensemble">Check energy behavior in the right ensemble</h3>

<p>An <strong>ensemble</strong> specifies the conditions of the simulation. The common abbreviations are:</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Ensemble</th>
      <th>What is controlled</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>NVE</td>
      <td>Number of atoms, volume, and total energy for an isolated classical system</td>
    </tr>
    <tr>
      <td>NVT</td>
      <td>Number of atoms, volume, and temperature</td>
    </tr>
    <tr>
      <td>NPT</td>
      <td>Number of atoms, pressure, and temperature</td>
    </tr>
  </tbody>
</table>

<p>Here total energy means potential plus nuclear kinetic energy, the energy of the atoms’ motion. In a suitable NVE check, examine whether that total behaves sensibly and whether reducing the timestep improves the result. A discrete integrator, finite numerical precision, constraints, or implementation errors can all affect the observed behavior.</p>

<p>A conservative energy-based potential gives a consistent underlying force field, but it does not make a finite-step trajectory exactly energy conserving. A thermostat can remove energy introduced by numerical or modeling problems, so stable temperature alone is insufficient evidence of a good potential.</p>

<h3 id="speed-has-a-complete-system-meaning">Speed has a complete-system meaning</h3>

<p>A timing result depends on atom count, neighbor count, cutoff, architecture, numerical precision, hardware, batch size, and the simulation engine. A small molecule on a GPU may spend considerable time in overhead; a large periodic system may spend it in neighbor interactions or communication between devices.</p>

<p>At a fixed density and cutoff, many local models have approximately size-proportional evaluation cost. That useful scaling does not mean identical prefactors, unlimited GPU memory, or perfect scaling across many GPUs. Message passing and domain communication also affect parallel performance.</p>

<p>Report wall time per MD step, or simulated time per day at a stated timestep, under a reproducible setup. An energy-only forward-pass timing is not the same benchmark as energy-plus-force dynamics. Allegro’s design specifically addresses the scalability implications of keeping its learned interactions strictly local. <sup><a href="#ref-19" aria-label="Reference 19">[19]</a></sup></p>

<h2 id="what-can-go-wrong">What can go wrong</h2>

<h3 id="a-good-average-error-can-hide-the-important-failure">A good average error can hide the important failure</h3>

<p><strong>MAE</strong>, mean absolute error, averages the magnitude of prediction errors. <strong>RMSE</strong>, root mean squared error, takes the square root of the mean squared error and is more sensitive to large errors. Either needs a stated quantity and unit.</p>

<p>An energy MAE per atom, a total-energy MAE per structure, a force-component MAE, and a force-vector error are different metrics. For one 1,000-atom configuration, a total-energy error of 1 eV is only 1 meV per atom, because 1 meV is 0.001 eV. That normalized number does not by itself tell us the error in a reaction barrier or a small energy difference.</p>

<p>Errors can cancel between related configurations or add unfavorably. A low average over a mostly easy test set can also hide a poor description of radicals, rare transition structures, or a minority element. Report errors for relevant subsets and examine the observable itself.</p>

<p>Fu and colleagues’ <em>Forces are not Enough</em> benchmark directly compared conventional prediction errors with simulation metrics and found that force accuracy alone did not reliably summarize simulation performance. <sup><a href="#ref-50" aria-label="Reference 50">[50]</a></sup></p>

<h3 id="the-model-can-invent-an-unphysical-energy-valley">The model can invent an unphysical energy valley</h3>

<p>Between familiar examples, an insufficiently constrained surface can contain a <strong>hole</strong>: a region of spuriously low energy. Atoms may then collapse into an implausible arrangement that the model incorrectly prefers.</p>

<p>A repulsive baseline can help with close approaches. <strong>ZBL</strong>, the Ziegler–Biersack–Littmark screened nuclear repulsion, is one established short-range form; LAMMPS documents its use for high-energy collisions. <sup><a href="#ref-51" aria-label="Reference 51">[51]</a></sup></p>

<p>Adding repulsion requires a consistent energy definition and appropriate fitting or subtraction of the baseline. Simply overlaying an arbitrary extra term can count interactions twice or distort the fitted reference. A repulsive term also does not establish correct chemistry at intermediate distances. The full model still needs tests of compression, bond distortion, and unexplored configurations.</p>

<h3 id="long-range-physics-can-be-missing-or-counted-twice">Long-range physics can be missing or counted twice</h3>

<p>A model trained on dispersion-corrected labels may already represent some dispersion within its learned range. Adding a correction afterward without checking the model’s intended construction can count some contributions twice.</p>

<p>Conversely, a short-range fit does not automatically recover the correct attraction between widely separated fragments merely because its reference method included dispersion. A model with an explicit electrostatic and dispersion construction, such as PhysNet, illustrates a different design from a purely local fit. <sup><a href="#ref-34" aria-label="Reference 34">[34]</a></sup></p>

<p>The question is both what the labels contain and how the deployed model represents that contribution at the separations you will use.</p>

<h3 id="stable-dynamics-can-still-describe-the-wrong-physics">Stable dynamics can still describe the wrong physics</h3>

<p>A simulation may run without crashing while giving the wrong density, diffusion rate, vibrational spectrum, phase stability, adsorption energy, or reaction barrier. Those are scientific errors rather than software failures.</p>

<p>A published study of <strong>systematic softening</strong> found underprediction of energy and force changes in several then-available universal materials potentials across a range of tests. That result concerns the studied checkpoints and benchmarks; it should not be turned into a claim that every current MLIP has exactly the same error. <sup><a href="#ref-52" aria-label="Reference 52">[52]</a></sup></p>

<p>Likewise, a model’s success on a leaderboard establishes performance under that benchmark’s definitions. It does not establish its accuracy for an unrelated reactive liquid or sliding interface.</p>

<h3 id="more-model-capacity-cannot-repair-an-ill-defined-target">More model capacity cannot repair an ill-defined target</h3>

<p>If identical inputs have conflicting labels because charge, spin, reference method, or a necessary environmental variable was omitted, a larger network cannot make the target single-valued. It can fit noise or compromise between examples, but the physical ambiguity remains.</p>

<p>Another example is a <strong>coarse-grained</strong> model, in which several atoms are replaced by one effective particle. Its effective interactions can depend on temperature and what degrees of freedom were removed. That is a different modeling problem from fitting an ordinary all-atom ground-state energy surface.</p>

<h3 id="electronic-and-nuclear-quantum-effects-remain-separate-issues">Electronic and nuclear quantum effects remain separate issues</h3>

<p>Most standard ground-state MLIPs do not explicitly follow excited electronic states, electron transfer between distinct states, or spin transitions during a reaction. Specialized models can extend the picture, but their inputs and equations must represent the required electronic physics.</p>

<p>An ordinary classical-nuclei trajectory also does not automatically include zero-point nuclear motion or tunneling. An MLIP can supply energies for methods that treat nuclear quantum effects, such as path-integral simulations, but a fast classical trajectory is not equivalent to those methods. The general force-field literature distinguishes the learned potential from the sampling and dynamical methods applied to it. <sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup></p>

<h2 id="a-worked-example-for-oxidation-chemistry">A worked example for oxidation chemistry</h2>

<p>Consider the hydrogen-transfer step through which a phenolic antioxidant intercepts a peroxyl radical:</p>

<figure class="review-workflow"><p><strong>ArOH + ROO• → ArO• + ROOH</strong></p><figcaption>ArOH is a phenol-type antioxidant. ROO• is a peroxyl radical. The dot marks an unpaired electron.</figcaption></figure>

<p>We want to examine how the surroundings affect this reaction. The following is an illustrative study design, not a reported calculation or a recommendation that one existing checkpoint is already validated for it.</p>

<h3 id="define-the-physical-target">Define the physical target</h3>

<p>Decide which reactants, solvent or base-oil environment, temperature range, and electronic-state treatment matter. Specify whether this is a gas-phase pair, a liquid, or a surface reaction. A model validated for isolated neutral molecules has not thereby been validated for a reactive iron–lubricant interface.</p>

<p>For this reacting system, establish an appropriate total charge and spin state in the reference calculations. If several electronic states are relevant, decide whether describing the reaction on just one electronic-state energy surface is an acceptable approximation. Changing a model’s head cannot substitute for that physical decision.</p>

<h3 id="choose-reference-structures-beyond-the-endpoints">Choose reference structures beyond the endpoints</h3>

<p>Include the separated reactants, their encounter arrangements, structures with hydrogen between donor and acceptor, products, and variations in nearby molecules. Include representative thermal distortions and close contacts.</p>

<p>A model that sees only comfortable reactants and products may invent the path between them. An equilibrium test set might then look excellent while the hydrogen-transfer barrier is wrong.</p>

<h3 id="decide-between-a-pretrained-model-and-a-fitted-model">Decide between a pretrained model and a fitted model</h3>

<p>Inspect potential starting checkpoints for molecular and radical coverage, supported elements, charge/spin conditioning, reference method, and boundary conditions. Evaluate representative structures with the checkpoint and the intended reference method.</p>

<p>If target accuracy is inadequate, obtain additional reference labels and consider fine-tuning or a task-specific fit. Keep the head, task selection, and energy-reference convention consistent when comparing reactants, products, and pathway structures.</p>

<h3 id="validate-quantities-that-answer-the-question">Validate quantities that answer the question</h3>

<p>Compare reaction energies and energy profiles, force directions near the reaction path, relevant bond stretches, and intermolecular interactions. Then examine dynamics under the intended conditions.</p>

<p>Even a good electronic barrier does not directly give a liquid-phase reaction rate. Temperature, entropy, solvent rearrangements, and rare-event sampling matter. A <strong>free-energy barrier</strong> includes the statistical effect of the surrounding configurations; it is not simply the highest potential energy encountered in one short trajectory.</p>

<p>For a sense of the sensitivity, at about 298 K a free-energy-barrier change of roughly 0.06 eV corresponds to about a factor of ten in a transition-state-theory rate, with the other factors held fixed. This follows from the exponential factor exp(−ΔG‡/k<sub>B</sub>T), where k<sub>B</sub> is Boltzmann’s constant and T is absolute temperature. A small error can therefore be chemically important even when an average benchmark score looks encouraging. <sup><a href="#ref-53" aria-label="Reference 53">[53]</a></sup></p>

<h3 id="examine-reactions-after-the-trajectory-exists">Examine reactions after the trajectory exists</h3>

<p>The MLIP supplies interactions. Identifying species, tracking hydrogen transfers, and estimating a rate are analysis steps. Defining an event using a distance threshold may require care to avoid counting rapid back-and-forth fluctuations as separate completed reactions.</p>

<p>For friction or wear, the distinction is similar: an MLIP does not output the friction coefficient merely because it evaluates an interface. The simulation must impose a defined load, sliding motion, and thermal treatment, and the measured forces must be analyzed under those conditions.</p>

<h2 id="reading-papers-and-model-settings">Reading papers and model settings</h2>

<h3 id="translate-the-architecture-description">Translate the architecture description</h3>

<p>Suppose a paper describes a local equivariant model with a 5 Å cutoff, two interaction stages, 64 scalar and 64 vector channels, and a correlation order of three. Read it in pieces:</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Setting</th>
      <th>Meaning</th>
      <th>What it does not establish</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cutoff = 5 Å</td>
      <td>Direct graph edges or local environments use this distance scale</td>
      <td>All longer-range physics is negligible</td>
    </tr>
    <tr>
      <td>Two interaction stages</td>
      <td>Two successive representation updates</td>
      <td>Two MD timesteps, or two physical chemical reactions</td>
    </tr>
    <tr>
      <td>64 scalar + 64 vector channels</td>
      <td>Several learned patterns with defined rotation behavior</td>
      <td>64 atoms, elements, or prediction heads</td>
    </tr>
    <tr>
      <td>Correlation order = 3 in a MACE product basis</td>
      <td>Products can include three neighbor contributions</td>
      <td>The final stacked nonlinear model is globally limited to three-body interactions</td>
    </tr>
    <tr>
      <td>Energy readout</td>
      <td>Features are mapped to energy contributions</td>
      <td>Forces are independently predicted</td>
    </tr>
    <tr>
      <td>A chosen method head</td>
      <td>One learned reference target is requested</td>
      <td>Different heads can be mixed freely in energy differences</td>
    </tr>
  </tbody>
</table>

<p>This description tells you how the model processes inputs. It does not yet tell you what was in the training data or which checkpoint was used.</p>

<h3 id="read-angular-settings-literally">Read angular settings literally</h3>

<p>In MACE-related code and descriptions, the maximum degree used for edge spherical harmonics and the maximum degree retained in hidden atom features need not be identical. You may encounter names such as <code class="language-plaintext highlighter-rouge">max_ell</code>, <code class="language-plaintext highlighter-rouge">max_L</code>, and <code class="language-plaintext highlighter-rouge">hidden_irreps</code> in different interfaces.</p>

<p>Check the definition in that implementation. A scalar final energy does not mean every intermediate angular feature was scalar. Conversely, a high angular cutoff in one operation does not mean the model retains all those feature types everywhere.</p>

<p>A <strong>hyperparameter</strong> is a design or training setting chosen outside ordinary weight fitting: cutoff, width, layer count, learning rate, and loss weights are examples. A <strong>parameter</strong> usually means one of the weights learned during training. Some software uses the words less strictly, so context matters.</p>

<h3 id="read-the-data-and-evaluation-as-carefully-as-the-architecture">Read the data and evaluation as carefully as the architecture</h3>

<p>Look for the reference method, energy definitions, elements, charge/spin treatment, boundary conditions, data-generation procedure, and split strategy. Then check which quantities were evaluated and under which conditions.</p>

<p>“Trained on millions of structures” describes scale. It does not tell you whether the rare configuration controlling your application was present. “Accurate forces” needs units, a dataset, and an error definition. “Reactive” needs evidence for the reactions of interest.</p>

<h3 id="know-what-the-common-dataset-names-imply">Know what the common dataset names imply</h3>

<p>A dataset of crystal relaxation trajectories emphasizes configurations encountered while optimizing solids. A molecular conformer dataset emphasizes alternative arrangements of molecules. A catalyst dataset may emphasize adsorbates on surfaces. They teach different parts of configuration space, even when they share some elements.</p>

<p>For a concrete example, the original MACE-MP work uses broad inorganic materials data, while MACE-OFF uses molecular reference data. UMA explicitly documents different tasks associated with different reference datasets and levels of theory. These distinctions are part of interpreting a trained potential, not incidental administrative details. <sup><a href="#ref-38" aria-label="Reference 38">[38]</a> <a href="#ref-39" aria-label="Reference 39">[39]</a> <a href="#ref-37" aria-label="Reference 37">[37]</a></sup></p>

<h3 id="record-enough-information-to-reproduce-the-result">Record enough information to reproduce the result</h3>

<p>A usable record includes the exact checkpoint or model-file hash, package version, chosen head/task, supported-state inputs, numerical precision, and any added energy terms. For training, also keep the dataset definition, split, reference settings, configuration, and random seeds.</p>

<p>For a simulation, add the structure and boundary conditions, timestep, masses, integrator, thermostat/barostat, constraints, and analysis definition. Stating only “we used MACE” is like stating only “we used DFT”: it leaves important choices unspecified.</p>

<h2 id="a-beginners-route-through-the-subject">A beginner’s route through the subject</h2>

<p>If the architecture names are still overwhelming, study the ideas in this order:</p>

<ol>
  <li><strong>Energy and force.</strong> Use the two-atom table until the downhill direction makes sense.</li>
  <li><strong>Fitting.</strong> Understand a reference label, a prediction, a loss, and a weight update.</li>
  <li><strong>Local environments.</strong> Understand why a model sums atomic contributions and uses a cutoff.</li>
  <li><strong>Graphs.</strong> Follow elements → neighbors → messages → updated features → energy.</li>
  <li><strong>Symmetry.</strong> Separate an unchanged energy from a force arrow that rotates.</li>
  <li><strong>One architecture.</strong> Trace MACE or NequIP through its actual components before comparing ten models.</li>
  <li><strong>Heads and checkpoints.</strong> Identify the reference target and the output you are selecting.</li>
  <li><strong>Validation.</strong> Test the energy surface, dynamics, and scientific observable relevant to your application.</li>
</ol>

<p>For further reading, start with the general review by Unke and colleagues, then read an architecture paper alongside its implementation. The Behler–Parrinello paper explains the local atomic-energy idea; SchNet introduces learned atomistic interactions; PaiNN, NequIP, MACE, and Allegro develop different geometric constructions. The documentation links in the references are there to connect the paper’s ideas with the names found in real code.</p>

<p>The useful question becomes specific: <strong>for this checkpoint, input state, and reference method, is the learned energy surface reliable in the region my calculation will explore?</strong> That is the connection between understanding an MLIP and using one well.</p>

<h2 id="glossary">Glossary</h2>

<dl>
  <dt>Architecture</dt>
  <dd>The model’s arrangement of operations and information flow.</dd>
  <dt>Atomic reference energy / E0</dt>
  <dd>An element-dependent energy baseline; its meaning depends on how it was obtained and used.</dd>
  <dt>Backbone / trunk</dt>
  <dd>The shared part that builds internal representations before a prediction head.</dd>
  <dt>Body order</dt>
  <dd>How many atoms jointly enter a term in an expansion; it is different from the number of layers.</dd>
  <dt>Charge / spin multiplicity</dt>
  <dd>Inputs describing electron imbalance and combined spin; the same nuclei can have different energies in different states.</dd>
  <dt>Checkpoint</dt>
  <dd>A saved trained model with learned weights and the information needed to interpret them.</dd>
  <dt>Conservative force</dt>
  <dd>A force consistent with the negative gradient of a potential energy.</dd>
  <dt>Cutoff</dt>
  <dd>The distance limit for a specified local environment or graph connection.</dd>
  <dt>Descriptor</dt>
  <dd>A numerical description of an atomic environment.</dd>
  <dt>Embedding</dt>
  <dd>A learned numerical representation, often used to encode element identity or a task.</dd>
  <dt>Energy surface / PES</dt>
  <dd>Energy considered as a function of atom positions for a specified physical state.</dd>
  <dt>Equivariance</dt>
  <dd>Predictable transformation of an output or feature when the input is transformed.</dd>
  <dt>Feature / channel</dt>
  <dd>An internal description used by the model; a channel is one copy of a feature type.</dd>
  <dt>Fine-tuning</dt>
  <dd>Further training starting from pretrained weights.</dd>
  <dt>Foundation model</dt>
  <dd>A broadly pretrained model intended to support several downstream applications.</dd>
  <dt>Graph / node / edge</dt>
  <dd>A representation of atoms and their connections; atomistic edges commonly indicate proximity.</dd>
  <dt>Head / readout</dt>
  <dd>An output mapping, although attention heads and other uses require their own definitions.</dd>
  <dt>Hyperparameter</dt>
  <dd>A chosen architecture or training setting, such as cutoff or learning rate.</dd>
  <dt>Inference</dt>
  <dd>Evaluating a trained model on an input, without updating its weights.</dd>
  <dt>Invariance</dt>
  <dd>No change in a quantity under a specified transformation.</dd>
  <dt>Irrep</dt>
  <dd>A block of components with a defined transformation rule, such as scalar or vector behavior.</dd>
  <dt>Label</dt>
  <dd>A reference answer associated with a structure.</dd>
  <dt>Loss</dt>
  <dd>A score measuring prediction errors during training.</dd>
  <dt>Message passing</dt>
  <dd>Updating atom features using information from connected neighbors.</dd>
  <dt>Parameter / weight</dt>
  <dd>An adjustable model number fitted during training.</dd>
  <dt>Receptive field</dt>
  <dd>The region of the input that can influence a specified feature or output.</dd>
  <dt>Replay</dt>
  <dd>Including earlier-domain examples during adaptation to help retain earlier behavior.</dd>
  <dt>Stress / virial</dt>
  <dd>Related measures of response to deformation; their units and sign conventions differ.</dd>
  <dt>Training / validation / test</dt>
  <dd>Data used to fit weights, choose settings, and independently evaluate the final model.</dd>
  <dt>Uncertainty</dt>
  <dd>A model-dependent indication of confidence that must be checked against actual errors.</dd>
</dl>

<h2 id="references">References</h2>

<ol class="references">
<li id="ref-1">Unke, O. T., et al. (2021). <a href="https://doi.org/10.1021/acs.chemrev.0c01111">Machine Learning Force Fields.</a> Chemical Reviews, 121, 10142–10186.</li>
<li id="ref-2">Bartók, A. P., Payne, M. C., Kondor, R., &amp; Csányi, G. (2010). <a href="https://doi.org/10.1103/PhysRevLett.104.136403">Gaussian Approximation Potentials: The Accuracy of Quantum Mechanics, without the Electrons.</a> Physical Review Letters, 104, 136403.</li>
<li id="ref-3">Behler, J., &amp; Parrinello, M. (2007). <a href="https://doi.org/10.1103/PhysRevLett.98.146401">Generalized Neural-Network Representation of High-Dimensional Potential-Energy Surfaces.</a> Physical Review Letters, 98, 146401.</li>
<li id="ref-4">Chmiela, S., et al. (2017). <a href="https://doi.org/10.1126/sciadv.1603015">Machine learning of accurate energy-conserving molecular force fields.</a> Science Advances, 3, e1603015.</li>
<li id="ref-5">van Duin, A. C. T., Dasgupta, S., Lorant, F., &amp; Goddard, W. A. (2001). <a href="https://doi.org/10.1021/jp004368u">ReaxFF: A Reactive Force Field for Hydrocarbons.</a> The Journal of Physical Chemistry A, 105, 9396–9409.</li>
<li id="ref-6">ASE developers. <a href="https://docs.ase-lib.org/ase/calculators/calculators.html">Calculators.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-7">ASE developers. <a href="https://docs.ase-lib.org/ase/md.html">Molecular dynamics.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-8">NequIP developers. <a href="https://nequip.readthedocs.io/en/latest/guide/configuration/model.html">Model Hyperparameters: energy-only models and derivative outputs.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-9">NequIP developers. <a href="https://nequip.readthedocs.io/en/latest/guide/reference/conventions.html">Conventions: pressure, stress, and virials.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-10">ASE developers. <a href="https://docs.ase-lib.org/ase/atoms.html">The Atoms object: energy definitions and stress.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-11">Ko, T. W., Finkler, J. A., Goedecker, S., &amp; Behler, J. (2021). <a href="https://doi.org/10.1038/s41467-020-20427-2">A fourth-generation high-dimensional neural network potential with accurate electrostatics including non-local charge transfer.</a> Nature Communications, 12, 398.</li>
<li id="ref-12">NequIP developers. <a href="https://nequip.readthedocs.io/en/latest/guide/configuration/metrics.html">Loss and Metrics.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-13">PyTorch developers. <a href="https://docs.pytorch.org/tutorials/beginner/blitz/autograd_tutorial.html">A Gentle Introduction to torch.autograd.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-14">MACE developers. <a href="https://mace-docs.readthedocs.io/en/latest/guide/training.html">Training.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-15">Bartók, A. P., Kondor, R., &amp; Csányi, G. (2013). <a href="https://doi.org/10.1103/PhysRevB.87.184115">On representing chemical environments.</a> Physical Review B, 87, 184115.</li>
<li id="ref-16">MACE developers. <a href="https://github.com/ACEsuit/mace/blob/main/mace/modules/blocks.py">mace/modules/blocks.py: radial embeddings, product bases, and readout blocks.</a> Official source code; accessed October 22, 2026.</li>
<li id="ref-17">Drautz, R. (2019). <a href="https://doi.org/10.1103/PhysRevB.99.014104">Atomic cluster expansion for accurate and transferable interatomic potentials.</a> Physical Review B, 99, 014104.</li>
<li id="ref-18">Batzner, S., et al. (2022). <a href="https://doi.org/10.1038/s41467-022-29939-5">E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials.</a> Nature Communications, 13, 2453.</li>
<li id="ref-19">Musaelian, A., et al. (2023). <a href="https://doi.org/10.1038/s41467-023-36329-y">Learning local equivariant representations for large-scale atomistic dynamics.</a> Nature Communications, 14, 579.</li>
<li id="ref-20">Batatia, I., et al. (2026). <a href="https://arxiv.org/abs/2602.19411">MACE-POLAR-1: A Polarisable Electrostatic Foundation Model for Molecular Chemistry.</a> arXiv:2602.19411 (preprint).</li>
<li id="ref-21">Schütt, K. T., et al. (2017). <a href="https://arxiv.org/abs/1706.08566">SchNet: A continuous-filter convolutional neural network for modeling quantum interactions.</a> Advances in Neural Information Processing Systems, 30; author manuscript arXiv:1706.08566.</li>
<li id="ref-22">Schütt, K., Unke, O., &amp; Gastegger, M. (2021). <a href="https://proceedings.mlr.press/v139/schutt21a.html">Equivariant Message Passing for the Prediction of Tensorial Properties and Molecular Spectra.</a> Proceedings of Machine Learning Research, 139, 9377–9388.</li>
<li id="ref-23">e3nn developers. <a href="https://docs.e3nn.org/en/stable/guide/irreps.html">Irreducible representations.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-24">e3nn developers. <a href="https://docs.e3nn.org/en/stable/api/o3/o3_tp.html">Tensor Product.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-25">Batatia, I., Kovács, D. P., Simm, G. N. C., Ortner, C., &amp; Csányi, G. (2022). <a href="https://papers.neurips.cc/paper_files/paper/2022/hash/4a36c3c51af11ed9f34615b81edb5bbc-Abstract-Conference.html">MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields.</a> Advances in Neural Information Processing Systems, 35.</li>
<li id="ref-26">Smith, J. S., Isayev, O., &amp; Roitberg, A. E. (2017). <a href="https://doi.org/10.1039/C6SC05720A">ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost.</a> Chemical Science, 8, 3192–3203.</li>
<li id="ref-27">Thompson, A. P., Swiler, L. P., Trott, C. R., Foiles, S. M., &amp; Tucker, G. J. (2015). <a href="https://doi.org/10.1016/j.jcp.2014.12.018">Spectral neighbor analysis method for automated generation of quantum-accurate interatomic potentials.</a> Journal of Computational Physics, 285, 316–330.</li>
<li id="ref-28">Shapeev, A. V. (2016). <a href="https://doi.org/10.1137/15M1054183">Moment Tensor Potentials: A Class of Systematically Improvable Interatomic Potentials.</a> Multiscale Modeling &amp; Simulation, 14, 1153–1173.</li>
<li id="ref-29">Klicpera, J., Groß, J., &amp; Günnemann, S. (2020). <a href="https://arxiv.org/abs/2003.03123">Directional Message Passing for Molecular Graphs.</a> International Conference on Learning Representations; author manuscript arXiv:2003.03123.</li>
<li id="ref-30">Zhang, L., et al. (2018). <a href="https://doi.org/10.1103/PhysRevLett.120.143001">Deep Potential Molecular Dynamics: A Scalable Model with the Accuracy of Quantum Mechanics.</a> Physical Review Letters, 120, 143001.</li>
<li id="ref-31">DeePMD-kit developers. <a href="https://docs.deepmodeling.com/projects/deepmd/en/latest/model/index.html">Model guide.</a> Official descriptor and fitting-network documentation; accessed October 22, 2026.</li>
<li id="ref-32">Liao, Y.-L., Wood, B., Das, A., &amp; Smidt, T. (2024). <a href="https://arxiv.org/abs/2306.12059">EquiformerV2: Improved Equivariant Transformer for Scaling to Higher-Degree Representations.</a> International Conference on Learning Representations; author manuscript arXiv:2306.12059.</li>
<li id="ref-33">MACE developers. <a href="https://github.com/ACEsuit/mace/blob/main/mace/modules/models.py">mace/modules/models.py: energy assembly, multihead selection, and derivative outputs.</a> Official source code; accessed October 22, 2026.</li>
<li id="ref-34">Unke, O. T., &amp; Meuwly, M. (2019). <a href="https://doi.org/10.1021/acs.jctc.9b00181">PhysNet: A Neural Network for Predicting Energies, Forces, Dipole Moments, and Partial Charges.</a> Journal of Chemical Theory and Computation, 15, 3678–3693.</li>
<li id="ref-35">MACE developers. <a href="https://mace-docs.readthedocs.io/en/latest/guide/multihead_finetuning.html">Multihead Replay Finetuning.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-36">Wood, B. M., et al. (2025). <a href="https://arxiv.org/abs/2506.23971">UMA: A Family of Universal Models for Atoms.</a> arXiv:2506.23971 (preprint).</li>
<li id="ref-37">FAIR Chemistry developers. <a href="https://facebookresearch.github.io/fairchem/uma/">UMA Models: mixture-of-linear-experts routing, tasks, charge, and spin.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-38">Batatia, I., et al. (2025). <a href="https://doi.org/10.1063/5.0297006">A foundation model for atomistic materials chemistry.</a> The Journal of Chemical Physics, 163, 184110.</li>
<li id="ref-39">Kovács, D. P., et al. (2025). <a href="https://doi.org/10.1021/jacs.4c07099">MACE-OFF: Short-Range Transferable Machine Learning Force Fields for Organic Molecules.</a> Journal of the American Chemical Society, 147, 17598–17611.</li>
<li id="ref-40">Chen, C., &amp; Ong, S. P. (2022). <a href="https://doi.org/10.1038/s43588-022-00349-3">A universal graph deep learning interatomic potential for the periodic table.</a> Nature Computational Science, 2, 718–728.</li>
<li id="ref-41">Deng, B., et al. (2023). <a href="https://doi.org/10.1038/s42256-023-00716-3">CHGNet as a pretrained universal neural network potential for charge-informed atomistic modelling.</a> Nature Machine Intelligence, 5, 1031–1041.</li>
<li id="ref-42">MACE developers. <a href="https://mace-docs.readthedocs.io/en/latest/guide/foundation_models.html">Foundation models.</a> Official model and reference-method documentation; accessed October 22, 2026.</li>
<li id="ref-43">MACE developers. <a href="https://mace-docs.readthedocs.io/en/latest/guide/finetuning.html">Fine-tuning Foundation Models.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-44">Ramakrishnan, R., Dral, P. O., Rupp, M., &amp; von Lilienfeld, O. A. (2015). <a href="https://doi.org/10.1021/acs.jctc.5b00099">Big Data Meets Quantum Chemistry Approximations: The Δ-Machine Learning Approach.</a> Journal of Chemical Theory and Computation, 11, 2087–2096.</li>
<li id="ref-45">MACE developers. <a href="https://mace-docs.readthedocs.io/en/latest/guide/finetuning_guidance.html">Fine-tuning Guidance.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-46">Zhang, Y., et al. (2020). <a href="https://doi.org/10.1016/j.cpc.2020.107206">DP-GEN: A concurrent learning platform for the generation of reliable deep learning based potential energy models.</a> Computer Physics Communications, 253, 107206.</li>
<li id="ref-47">ASE developers. <a href="https://docs.ase-lib.org/ase/io/formatoptions.html#extxyz">Format Specific Options: extended XYZ.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-48">Podryabinkin, E. V., &amp; Shapeev, A. V. (2017). <a href="https://doi.org/10.1016/j.commatsci.2017.08.031">Active learning of linearly parametrized interatomic potentials.</a> Computational Materials Science, 140, 171–180.</li>
<li id="ref-49">Vandermause, J., et al. (2020). <a href="https://doi.org/10.1038/s41524-020-0283-z">On-the-fly active learning of interpretable Bayesian force fields for atomistic rare events.</a> npj Computational Materials, 6, 20.</li>
<li id="ref-50">Fu, X., et al. (2023). <a href="https://arxiv.org/abs/2210.07237">Forces are not Enough: Benchmark and Critical Evaluation for Machine Learning Force Fields with Molecular Simulations.</a> Transactions on Machine Learning Research; author manuscript arXiv:2210.07237.</li>
<li id="ref-51">LAMMPS developers. <a href="https://docs.lammps.org/pair_zbl.html">pair_style zbl command.</a> Official documentation; accessed October 22, 2026.</li>
<li id="ref-52">Deng, B., et al. (2025). <a href="https://doi.org/10.1038/s41524-024-01500-6">Systematic softening in universal machine learning interatomic potentials.</a> npj Computational Materials, 11, 9.</li>
<li id="ref-53">IUPAC. <a href="https://goldbook.iupac.org/terms/view/T06470">Transition state theory.</a> Compendium of Chemical Terminology (Gold Book), 5th edition.</li>
</ol>]]></content><author><name>Shihab Ahmed</name></author><category term="Explainers" /><summary type="html"><![CDATA[A beginner-friendly, detailed guide to MLIPs: energy and forces, training data, neural networks, graphs, equivariance, MACE and other architectures, prediction heads, foundation models, and reliable molecular dynamics.]]></summary></entry><entry><title type="html">Quantum chemistry codes, explained from zero</title><link href="https://shihabahmed.com/perspectives/quantum-chemistry-codes-explained/" rel="alternate" type="text/html" title="Quantum chemistry codes, explained from zero" /><published>2026-10-08T20:00:00-07:00</published><updated>2026-10-08T20:00:00-07:00</updated><id>https://shihabahmed.com/perspectives/quantum-chemistry-codes-explained</id><content type="html" xml:base="https://shihabahmed.com/perspectives/quantum-chemistry-codes-explained/"><![CDATA[<p>Gaussian, ORCA, Quantum ESPRESSO, VASP, and CP2K all do the same basic job, yet their inputs read like different languages. An ORCA input asks for <code class="language-plaintext highlighter-rouge">B3LYP D3BJ def2-TZVP</code>. A Quantum ESPRESSO input asks for <code class="language-plaintext highlighter-rouge">ecutwfc</code>, <code class="language-plaintext highlighter-rouge">degauss</code>, and <code class="language-plaintext highlighter-rouge">K_POINTS</code>. The papers that use them assume you already know why. This post builds that vocabulary from zero. It assumes high-school chemistry and nothing more, and it is long on purpose: the key terms are explained as we go.</p>

<blockquote>
  <p><strong>The central idea:</strong> every one of these programs answers the same question approximately: given where the atoms are, where do the electrons go, and what energy results? They differ in three choices: how rough the approximation is (the <em>method</em>), how the electrons are written down for the computer (the <em>basis set</em>), and whether the system is a lone molecule or a pattern that repeats forever (the <em>boundary conditions</em>). Almost every term below belongs to one of those three choices.</p>
</blockquote>

<details class="essay-toc" open="">
<summary>In this post</summary>
<ol>
<li><a href="#the-one-problem-every-program-solves">The one problem every program solves</a></li>
<li><a href="#three-choices-that-separate-the-programs">Three choices that separate the programs</a></li>
<li><a href="#choice-1-the-method">Choice 1: the method</a></li>
<li><a href="#choice-2-the-basis-set">Choice 2: the basis set</a></li>
<li><a href="#choice-3-isolated-or-periodic">Choice 3: isolated or periodic</a></li>
<li><a href="#what-you-ask-the-program-to-do">What you ask the program to do</a></li>
<li><a href="#the-five-programs">The five programs</a></li>
<li><a href="#which-program-for-which-job">Which program for which job</a></li>
<li><a href="#reading-a-method-line">Reading a method line</a></li>
<li><a href="#a-one-line-glossary">A one-line glossary</a></li>
<li><a href="#references">References</a></li>
</ol>
</details>

<h2 id="the-one-problem-every-program-solves">The one problem every program solves</h2>

<p>An atom is a tiny, heavy, positively charged nucleus surrounded by much lighter, negatively charged electrons. Chemistry is mostly about the electrons: bonds form, break, and rearrange because electrons move between and around nuclei.</p>

<p>Electrons obey quantum mechanics, and its central equation is the Schrödinger equation. Solving it exactly would give everything: energies, bond lengths, spectra. The catch is that it can be solved exactly only in the simplest cases, such as a hydrogen atom with its single electron. With two or more electrons, every electron repels every other one, so the motion of each depends on all the others at once.</p>

<p>The size of the problem also grows explosively. The full description of the electrons, the <em>wavefunction</em>, depends on three coordinates for every electron. Benzene has 42 electrons, so its wavefunction is a function of 126 variables. Storing it on a coarse grid of only 10 points per variable would take 10<sup>126</sup> numbers, far more than the roughly 10<sup>80</sup> atoms in the observable universe. Every program therefore solves the problem approximately, and most of the vocabulary in this post names the approximations.</p>

<h3 id="fixed-nuclei-moving-electrons">Fixed nuclei, moving electrons</h3>

<p>One approximation is so universal that programs rarely mention it. A proton is about 1,836 times heavier than an electron, so nuclei move far more slowly than electrons. Programs therefore hold the nuclei still, solve for the electrons around them, and only then consider moving the nuclei. This is the Born–Oppenheimer approximation. In practice it means every calculation starts from a list of atom positions, called the <em>geometry</em> or <em>structure</em>.</p>

<h3 id="what-comes-out-energy-forces-properties">What comes out: energy, forces, properties</h3>

<p>For a given geometry, a program returns:</p>

<ul>
  <li><strong>Energy:</strong> one number for that arrangement of atoms. For the same set of atoms, lower energy generally means more stable.</li>
  <li><strong>Forces:</strong> for each atom, the direction and strength of the push it feels. A force is the downhill slope of the energy: if moving an atom to the left lowers the energy, the force on that atom points left. Forces are what let a program move atoms, either to find a stable structure or to run molecular dynamics.</li>
  <li><strong>Properties:</strong> everything else that follows from the electrons, such as atomic charges, dipole moments, vibrational frequencies, spectra, magnetism, and band structures.</li>
</ul>

<p>It helps to picture the energy as a landscape. Each possible arrangement of the atoms is a location, and the energy is the height. Stable molecules sit in valleys. A reaction is a path from one valley to another, and the highest point along the easiest path is the <em>transition state</em>. Its height above the starting valley is the <em>barrier</em>, which controls how fast the reaction goes. This landscape is called the <em>potential energy surface</em>, and most calculation types are different ways of exploring it.</p>

<figure class="essay-figure">
<img src="/assets/blog/qc-energy-landscape.png" alt="Schematic energy curve with a reactant valley on the left, a transition state at the top of a hill, and a lower product valley on the right. Arrows mark the barrier and the reaction energy, an arrow on the slope shows the force pointing downhill, and green dots along the curve represent NEB images." width="3500" height="2300" loading="lazy" />
<figcaption>A schematic potential energy surface along one reaction path. A relaxation slides into a nearby valley, NEB places a chain of images along the path to estimate the barrier, and molecular dynamics moves the atoms with the forces.</figcaption>
</figure>

<h3 id="only-differences-matter">Only differences matter</h3>

<p>The total energy a program prints is usually a large number, but chemistry comes from energy differences. An all-electron calculation on a single water molecule gives a total energy of roughly −76 hartree, about −2,070 eV, while many chemical changes involve differences of tenths to several electronvolts. Useful quantities are differences between calculations: product minus reactant, adsorbed minus separated, transition state minus reactant.</p>

<p>That has a consequence that is easy to miss. Do not mix total energies from different methods or settings in one energy difference. Different pseudopotentials can shift the zero of energy, while different functionals change the approximation itself. Two programs can agree if they use equivalent, converged settings, but using one consistent setup is the safest starting point. Errors then partly cancel, which is a large part of why approximate methods work as well as they do.</p>

<h3 id="units-you-will-meet">Units you will meet</h3>

<p>Gaussian, ORCA, and CP2K report energies in hartree, Quantum ESPRESSO in rydberg, and VASP in electronvolts. Chemistry papers often use kcal/mol or kJ/mol.</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Unit</th>
      <th>In eV</th>
      <th>In kcal/mol</th>
      <th>Where you see it</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1 hartree (Ha)</td>
      <td>27.211</td>
      <td>627.5</td>
      <td>Gaussian, ORCA, CP2K output</td>
    </tr>
    <tr>
      <td>1 rydberg (Ry) = 0.5 Ha</td>
      <td>13.606</td>
      <td>313.8</td>
      <td>Quantum ESPRESSO input and output</td>
    </tr>
    <tr>
      <td>1 eV</td>
      <td>1</td>
      <td>23.06</td>
      <td>VASP, most physics papers</td>
    </tr>
    <tr>
      <td>1 kcal/mol = 4.184 kJ/mol</td>
      <td>0.0434</td>
      <td>1</td>
      <td>Chemistry papers</td>
    </tr>
  </tbody>
</table>

<p>Some reference points: “chemical accuracy” usually means errors below 1 kcal/mol (about 0.04 eV). Thermal energy at room temperature is about 0.6 kcal/mol (0.026 eV). Breaking the O–H bond of phenol, the kind of bond a phenolic antioxidant gives up, takes about 87 kcal/mol (3.8 eV).</p>

<h2 id="three-choices-that-separate-the-programs">Three choices that separate the programs</h2>

<p>With the problem defined, the differences between programs come down to three choices:</p>

<ol>
  <li><strong>Method:</strong> which approximation to the electron problem is used, for example DFT with a particular functional, or a wavefunction method such as CCSD(T).</li>
  <li><strong>Basis set:</strong> how the electrons’ orbitals are written down as numbers the computer can store, either as Gaussian functions centered on atoms or as plane waves filling a box.</li>
  <li><strong>Boundary conditions:</strong> whether the system is a single molecule in empty space, or a box that repeats forever in every direction, like a crystal.</li>
</ol>

<p>The next three sections take these in order. The rest of the post covers what you ask a program to do and the programs themselves.</p>

<h2 id="choice-1-the-method">Choice 1: the method</h2>

<h3 id="density-functional-theory-dft">Density functional theory (DFT)</h3>

<p>DFT rests on a theorem proved by Hohenberg and Kohn in 1964: the lowest-energy state of a set of electrons is completely determined by the <em>electron density</em>, a map of how many electrons there are at each point in space.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup> The density depends on only three coordinates (x, y, z), however many electrons there are. Benzene’s 126-variable wavefunction is replaced by a 3-variable density.</p>

<p>The theorem says the energy <em>can</em> be computed from the density, but not <em>how</em>. Kohn and Sham supplied the practical recipe in 1965.<sup><a href="#ref-2" aria-label="Reference 2">[2]</a></sup> They replaced the real, interacting electrons with a model of electrons that do not interact with one another but are constructed to have the same density. This lets them calculate most of the energy directly. The remaining unknown part is collected into one term, the <strong>exchange-correlation energy</strong>:</p>

<ul>
  <li><em>Exchange</em> comes from the Pauli principle: two electrons with the same spin avoid each other.</li>
  <li><em>Correlation</em> is the remaining way electrons dodge one another because they repel.</li>
</ul>

<p>The exchange-correlation energy is a small part of the total, but it is crucial for chemistry, and its exact form is unknown. It must be approximated, and that approximation is the main difference between the many flavors of DFT. Conventional DFT calculations often grow in cost roughly as the cube of the system size, which makes calculations on hundreds of atoms practical.</p>

<h3 id="what-a-functional-is">What a “functional” is</h3>

<p>A <em>function</em> takes a number and returns a number: f(x) = x². A <em>functional</em> takes an entire function and returns a number. The area under a curve is a familiar example: give it the whole curve and get back one number. The exchange-correlation functional takes the whole electron density and returns one energy. “Which functional?” therefore means “which approximation to the exchange-correlation energy?”</p>

<h3 id="the-functional-ladder">The functional ladder</h3>

<p>Perdew pictured the families of functionals as rungs of a ladder, “Jacob’s ladder”, from simpler to more detailed approximations.<sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup> Each rung uses more information and usually costs more. A higher rung does not guarantee a better answer.</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Rung</th>
      <th>Extra information used</th>
      <th>Examples</th>
      <th>Typical use</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>LDA (local density approximation)</td>
      <td>The density at each point</td>
      <td>LDA</td>
      <td>Still used for some solids</td>
    </tr>
    <tr>
      <td>GGA (generalized gradient approximation)</td>
      <td>+ how quickly the density changes (its gradient)</td>
      <td>PBE</td>
      <td>Solids, metals, surfaces</td>
    </tr>
    <tr>
      <td>meta-GGA</td>
      <td>+ the kinetic energy density</td>
      <td>SCAN, r²SCAN</td>
      <td>A step above GGA, similar cost</td>
    </tr>
    <tr>
      <td>Hybrid</td>
      <td>+ a fraction of exact (Hartree–Fock) exchange</td>
      <td>B3LYP, PBE0, ωB97X</td>
      <td>Molecules, reaction energies, barriers</td>
    </tr>
    <tr>
      <td>Double hybrid</td>
      <td>+ a correlation term from wavefunction theory</td>
      <td>B2PLYP</td>
      <td>High-accuracy molecular work</td>
    </tr>
  </tbody>
</table>

<p><strong>GGA, such as PBE.</strong> PBE is a common choice for solids, metals, and surfaces.<sup><a href="#ref-4" aria-label="Reference 4">[4]</a></sup> It is cheap and often gives good structures. A major weakness is <em>self-interaction error</em>: in an approximate functional, an electron partly repels itself, so electrons tend to spread out too much. In practice, reaction barriers often come out too low, band gaps too small, and localized electrons, such as those in radicals or transition-metal oxides, can be described poorly.</p>

<p><strong>meta-GGA, such as r²SCAN.</strong> The kinetic energy density lets a functional recognize what kind of region it is in, for example a single bond or a metal. SCAN improved accuracy for many systems but was numerically delicate. r²SCAN keeps most of that accuracy, is numerically stable, and costs about the same as a GGA.<sup><a href="#ref-5" aria-label="Reference 5">[5]</a></sup></p>

<p><strong>Hybrid, such as B3LYP, PBE0, or ωB97X.</strong> Hartree–Fock theory (below) treats exchange exactly and has no self-interaction error. Hybrids mix a fraction of that exact exchange into a GGA: 20% in B3LYP and 25% in PBE0.<sup><a href="#ref-6" aria-label="Reference 6">[6]</a> <a href="#ref-7" aria-label="Reference 7">[7]</a></sup> Range-separated hybrids such as ωB97X vary the mixture with the distance between electrons and use more exact exchange at long range.<sup><a href="#ref-8" aria-label="Reference 8">[8]</a></sup> Hybrids give better barriers and reaction energies, which is why they are the default for molecular chemistry. Their cost depends on the basis set (next section). In Gaussian-basis programs such as ORCA and Gaussian, hybrids are routine for molecules of a hundred atoms or more. In plane-wave programs such as Quantum ESPRESSO and VASP, they are often ten or more times more expensive than a GGA, so periodic studies mostly use GGA or meta-GGA functionals.</p>

<h3 id="dispersion-corrections-d3-and-d4">Dispersion corrections: D3 and D4</h3>

<p>Even neutral, nonpolar molecules attract one another weakly. The electron cloud of a molecule fluctuates, creating momentary dipoles that induce matching dipoles in its neighbors. The result is a weak, always-attractive force called London dispersion, one kind of van der Waals interaction. Dispersion is what holds the hydrocarbon molecules of a base oil together as a liquid.</p>

<p>Many common GGAs and hybrids miss most of it. They do not capture the long-range correlation between fluctuations in two separate electron clouds. For nonpolar molecules a few ångströms apart (1 Å = 10⁻¹⁰ m), this can mean badly underestimating the attraction.</p>

<p>The usual fix adds an attraction between pairs of atoms. Its energy falls roughly as 1/r⁶ at long distances, where r is the distance between atoms, and it is weakened at short distances to avoid counting the same effects twice. Grimme’s D3 is a widely used version,<sup><a href="#ref-9" aria-label="Reference 9">[9]</a></sup> often with Becke–Johnson damping, written D3(BJ).<sup><a href="#ref-10" aria-label="Reference 10">[10]</a></sup> D4 also makes the attraction depend on each atom’s charge.<sup><a href="#ref-11" aria-label="Reference 11">[11]</a></sup> The added cost is small, and the method is then written, for example, as PBE-D3(BJ) or B3LYP-D4. Use a correction matched to the functional; some functionals already include dispersion. Dispersion matters most for liquids, adsorption on surfaces, molecular crystals, and molecules associating with one another. It can also matter within large molecules, where distant parts fold together.</p>

<h3 id="dftu">DFT+U</h3>

<p>In transition-metal oxides such as hematite (Fe₂O₃), the metal’s d electrons are fairly localized on individual metal atoms. Self-interaction error in a GGA smears them out, which can give band gaps that are far too small, wrong magnetic moments, and poor oxidation energies. DFT+U adds an energy penalty, named after the Hubbard model, that favors each d orbital of a given spin being fully occupied or empty, which encourages electrons to stay on individual atoms.<sup><a href="#ref-12" aria-label="Reference 12">[12]</a></sup> The size of the penalty, U, is usually a few electronvolts. It depends on the element, its chemical environment, and the calculation setup, and is either fitted to experimental data or computed from first principles.</p>

<p>Two cautions. Do not casually mix energies computed with different U values; comparisons need a consistent choice or a justified correction scheme. Also, U is common for localized electrons in oxides but is not normally needed for metallic iron, which is often modeled with plain spin-polarized PBE. Comparing metallic Fe with iron oxide therefore needs extra care.</p>

<h3 id="wavefunction-methods-hf-mp2-and-ccsdt">Wavefunction methods: HF, MP2, and CCSD(T)</h3>

<p>The alternative to DFT is to approximate the wavefunction itself, through a series of methods of increasing accuracy and cost.</p>

<ul>
  <li><strong>Hartree–Fock (HF)</strong> lets each electron move in the <em>average</em> field of all the others. Exchange is exact, but correlation is missing entirely, so HF energies are not accurate enough for most chemistry. HF is the starting point for the methods below and the source of the “exact exchange” in hybrid functionals.</li>
  <li><strong>MP2</strong> (second-order Møller–Plesset perturbation theory) adds an estimate of correlation on top of HF. It is a real improvement and captures dispersion, though it can overestimate it.</li>
  <li><strong>CCSD(T)</strong> (coupled cluster with single, double, and perturbative triple excitations) is often called the “gold standard” of quantum chemistry.<sup><a href="#ref-13" aria-label="Reference 13">[13]</a></sup> For many ordinary molecules with a large enough basis set, it can reach chemical accuracy. It is less reliable for stretched bonds and some transition-metal systems. Its cost grows as the seventh power of system size: doubling the molecule multiplies the cost by about 128. Conventional CCSD(T) is therefore limited to small molecules.</li>
</ul>

<p><strong>DLPNO-CCSD(T)</strong> makes coupled cluster affordable for larger molecules.<sup><a href="#ref-14" aria-label="Reference 14">[14]</a></sup> It uses the fact that correlation between distant electrons is weak and can be compressed or neglected, so the cost can grow almost linearly with size. With tight settings it often closely reproduces conventional CCSD(T), and can handle molecules of roughly 50–150 atoms or more, depending on hardware and settings. These methods are mainly used in molecular programs such as ORCA, although some periodic programs also support wavefunction methods.</p>

<p>A common strategy combines the two families: optimize the geometry with DFT, then compute a more accurate energy at that fixed geometry with DLPNO-CCSD(T).</p>

<h2 id="choice-2-the-basis-set">Choice 2: the basis set</h2>

<h3 id="what-a-basis-set-is">What a basis set is</h3>

<p>An orbital describes where an electron is likely to be found. Mathematically it is a smooth function in three dimensions. A computer cannot store an arbitrary smooth function, so programs build each orbital from a fixed set of simpler building blocks, the <em>basis functions</em>, and store only how much of each block to use. It is like mixing any color from a fixed set of paints, or building any sound from pure tones. More building blocks describe orbitals more accurately and cost more. The collection of building blocks is the <em>basis set</em>, and there are two main families.</p>

<figure class="essay-figure">
<img src="/assets/blog/qc-basis-sets.png" alt="Two panels over a 20 Å box containing two atoms. Panel a shows Gaussian functions of several widths centered on the two atoms, with the empty regions at both ends labeled as having no functions and no cost. Panel b shows cosine waves of increasing frequency spanning the whole box, with the shortest wave labeled as set by the cutoff energy." width="3500" height="3600" loading="lazy" />
<figcaption>Two ways to write down orbitals. (a) Gaussian-type orbitals are bumps of different widths centered on each atom; empty space needs no extra basis functions, although their tails extend into it. (b) Plane waves fill the whole box, including the empty space; the cutoff energy sets the shortest wave included.</figcaption>
</figure>

<h3 id="gaussian-type-orbitals">Gaussian-type orbitals</h3>

<p>Molecular programs build orbitals from Gaussian functions: bell-shaped bumps of the form exp(−αr²) centered on each atom, multiplied by simple factors that give them s, p, or d shapes. Real atomic orbitals are not Gaussian, so several Gaussians of different widths are combined for each orbital. Gaussians are used anyway because the integrals a calculation needs between them have simple formulas, which makes them fast.</p>

<p>Basis set names look cryptic, but they encode size:</p>

<ul>
  <li><strong>6-31G*</strong> (Pople style): each core orbital is made from six Gaussians, and each valence orbital is split into two parts made from three Gaussians and one. The star adds <em>polarization functions</em>, d-shaped functions on heavy atoms that let orbitals distort in bonds. A plus sign, as in 6-31+G*, adds <em>diffuse functions</em>: wide Gaussians needed for anions and weak interactions.</li>
  <li><strong>def2-SVP, def2-TZVP, def2-QZVP</strong> (Karlsruhe): split valence, triple-zeta valence with polarization, and quadruple-zeta.<sup><a href="#ref-15" aria-label="Reference 15">[15]</a></sup> “Zeta” counts how many functions describe each valence orbital; more zeta means more flexibility. For elements heavier than krypton, the def2 sets replace the inner electrons with an <em>effective core potential</em>, the molecular-code version of the pseudopotentials described below.</li>
  <li><strong>cc-pVTZ and aug-cc-pVTZ</strong> (Dunning): designed to converge systematically with correlated methods such as CCSD(T). “aug” adds diffuse functions.</li>
</ul>

<p>The number of basis functions grows with the number of atoms, so the cost depends on how many atoms there are, not on the space around them. Empty space is free, which is the main reason molecular programs are efficient for molecules.</p>

<p>One side effect: when two molecules approach, each can borrow the other’s basis functions to describe its own electrons better, which makes binding look artificially strong. This <em>basis set superposition error</em> shrinks with larger basis sets and can be corrected with the counterpoise method.</p>

<h3 id="plane-waves">Plane waves</h3>

<p>Periodic programs build orbitals from plane waves: sine and cosine waves that extend across the whole simulation box. The repeating part of each orbital is built from waves that fit the box exactly, with a whole number of wavelengths, just as only certain notes fit on a guitar string. Any smooth, periodic function can be built from enough of them. The k-points explained below describe how the orbital’s phase changes between boxes.</p>

<p>The basis is controlled by one number, the <strong>cutoff energy</strong>. Each wave has a kinetic energy that grows as its wavelength shrinks, and the program includes every wave below the cutoff. A higher cutoff includes shorter waves, which describe finer detail. In Quantum ESPRESSO the cutoff is <code class="language-plaintext highlighter-rouge">ecutwfc</code>, in rydberg: 60 Ry is 60 × 13.6 ≈ 816 eV. In VASP it is <code class="language-plaintext highlighter-rouge">ENCUT</code>, in eV. Because one knob sets the quality, convergence is easy to check: raise the cutoff until the quantity you care about stops changing. Quantum ESPRESSO also has a second cutoff for the electron density, <code class="language-plaintext highlighter-rouge">ecutrho</code>. It is commonly 4 × <code class="language-plaintext highlighter-rouge">ecutwfc</code> for norm-conserving pseudopotentials and 8–12 × for ultrasoft ones. PAW may need 4 × or more, depending on the dataset; always check convergence.<sup><a href="#ref-33" aria-label="Reference 33">[33]</a></sup></p>

<p>The weakness is the mirror image of the Gaussians’ strength. Plane waves fill the whole box whether atoms are there or not, so their number grows with the box volume. Doubling the box edge multiplies the volume, and roughly the number of plane waves, by eight. You pay for every cubic ångström, vacuum included.</p>

<h3 id="pseudopotentials">Pseudopotentials</h3>

<p>Near a nucleus, valence orbitals oscillate rapidly, because they must stay orthogonal to the core orbitals beneath them. Describing those wiggles with plane waves would need very short waves and an enormous cutoff. Yet the core electrons, such as the 1s electrons of carbon and oxygen, are chemically inert: they hardly change when bonds form.</p>

<p>A <em>pseudopotential</em> replaces the nucleus and its core electrons with a smoother effective potential. The valence orbitals it produces, the <em>pseudo-orbitals</em>, are smooth and node-free inside a chosen core radius, r<sub>c</sub>, and identical to the true orbitals outside it, where bonding happens. The calculation then needs far fewer plane waves and treats only the valence electrons.</p>

<figure class="essay-figure">
<img src="/assets/blog/qc-pseudopotential.png" alt="Plot of an orbital against distance from the nucleus. Inside a shaded core region, the true all-electron orbital oscillates and crosses zero twice, while the dashed pseudo-orbital rises smoothly. Beyond the core radius the two curves are identical." width="3500" height="2200" loading="lazy" />
<figcaption>Schematic of a valence orbital near a nucleus. The true orbital oscillates inside the core region; the pseudo-orbital is smooth there and identical beyond the core radius r<sub>c</sub>, so far fewer plane waves are needed to describe it.</figcaption>
</figure>

<p>There are three main types:</p>

<ul>
  <li><strong>Norm-conserving (NC):</strong> the pseudo-orbital holds the same amount of charge inside r<sub>c</sub> as the true one.<sup><a href="#ref-16" aria-label="Reference 16">[16]</a></sup> Simple and robust, but it needs a relatively high cutoff.</li>
  <li><strong>Ultrasoft (US):</strong> relaxes that condition to allow much smoother orbitals and a lower cutoff, at the price of extra bookkeeping.<sup><a href="#ref-17" aria-label="Reference 17">[17]</a></sup></li>
  <li><strong>Projector augmented wave (PAW):</strong> also smooth and inexpensive, but it keeps the information needed to reconstruct the true orbital near the nucleus.<sup><a href="#ref-18" aria-label="Reference 18">[18]</a></sup> It can approach all-electron accuracy and is the standard in VASP. Accuracy depends on the dataset and convergence, rather than the type alone.</li>
</ul>

<p>Quantum ESPRESSO users often take pseudopotentials from PSLibrary, a set of ultrasoft and PAW pseudopotentials covering most of the periodic table,<sup><a href="#ref-19" aria-label="Reference 19">[19]</a></sup> or from SSSP, a tested collection with recommended cutoffs.<sup><a href="#ref-20" aria-label="Reference 20">[20]</a></sup> PSLibrary file names are informative. In <code class="language-plaintext highlighter-rouge">Fe.pbe-spn-kjpaw_psl.0.2.1.UPF</code>, <code class="language-plaintext highlighter-rouge">pbe</code> is the functional it was built for, <code class="language-plaintext highlighter-rouge">spn</code> means the 3s and 3p semicore electrons are treated as valence electrons (with a nonlinear core correction), <code class="language-plaintext highlighter-rouge">kjpaw</code> means PAW, and the rest is the library version. A pseudopotential is generated for one functional. Using it with another, for example a PBE pseudopotential in a hybrid calculation, is an approximation, though a common and usually acceptable one.</p>

<h2 id="choice-3-isolated-or-periodic">Choice 3: isolated or periodic</h2>

<h3 id="molecules-in-empty-space">Molecules in empty space</h3>

<p>Molecular programs such as Gaussian and ORCA treat a molecule as alone in infinite empty space, as in a dilute gas. A solvent can be added approximately with an <em>implicit solvation model</em> (such as PCM or SMD), which represents the solvent as a continuous polarizable medium instead of individual molecules.</p>

<h3 id="periodic-boundary-conditions">Periodic boundary conditions</h3>

<p>A real piece of metal or a drop of oil contains around 10<sup>23</sup> atoms. Periodic programs make that manageable by simulating one box, the <em>cell</em>, and treating it as surrounded on all sides by identical copies of itself, forever. These are <em>periodic boundary conditions</em> (PBC). An atom that leaves through one face re-enters through the opposite face, like a character in an old arcade game who walks off one side of the screen and reappears on the other. A crystal really is a repeating pattern, so a small cell describes a perfect crystal exactly. A liquid in a large enough periodic box behaves like bulk liquid with no surface.</p>

<figure class="essay-figure">
<img src="/assets/blog/qc-periodic-setups.png" alt="Four schematic panels, each showing a central simulation cell with a solid outline surrounded by faded periodic copies. (a) A small two-atom crystal cell. (b) A three-by-three supercell with one orange substituted atom. (c) A tall cell containing a few atomic layers at the bottom and vacuum above. (d) A small molecule in a box, with an arrow marking about 10 Å of vacuum to its copy in the next cell." width="4200" height="4200" loading="lazy" />
<figcaption>Common periodic setups. The solid outline is the simulated cell; faded copies are its periodic images. (a) A crystal is one small repeating cell. (b) A supercell keeps a defect away from its own copies. (c) A slab is a few atomic layers with vacuum above, a model of a surface. (d) A molecule in a box is kept apart from its copies by vacuum.</figcaption>
</figure>

<h3 id="supercells">Supercells</h3>

<p>Anything placed in a periodic cell is repeated too. One defect, impurity, or adsorbed molecule in a small cell becomes a dense array of them that interact with their own copies. A <em>supercell</em> is a larger cell, for example 3 × 3 × 3 copies of the basic cell, that moves the copies further apart. Enlarge it until the quantity you care about stops changing.</p>

<h3 id="slabs-modeling-a-surface">Slabs: modeling a surface</h3>

<p>To model a surface, cut the crystal, keep a few atomic layers (a <em>slab</em>), and add a vacuum gap above them. The cell is still periodic in all three directions, so the slab sees copies of itself across the vacuum. The gap must be wide enough, often 10–15 Å or more, that they do not interact. The bottom layers are usually fixed at bulk positions to imitate the material underneath. When something is adsorbed on only one side, a <em>dipole correction</em> is often added to cancel an artificial electric field across the vacuum. An adsorption energy is then E(slab with molecule) − E(clean slab) − E(isolated molecule), each calculated with the same settings.</p>

<h3 id="a-molecule-in-a-box">A molecule in a box</h3>

<p>A periodic program can still treat an isolated molecule by placing it in a large box with enough vacuum, often starting with about 10 Å between it and its nearest copy and testing larger gaps. For example, a 51-atom ZDDP molecule (zinc dialkyldithiophosphate, a common antiwear additive) may need a box more than 20 Å on a side, depending on its shape. Because plane waves fill that whole box, the calculation is usually much more expensive than the same molecule in ORCA.</p>

<p>Vacuum alone does not fully isolate the molecule. Electrostatic interactions with the copies fall off slowly with distance, especially for charged or strongly polar molecules. The Martyna–Tuckerman correction removes these electrostatic interactions;<sup><a href="#ref-21" aria-label="Reference 21">[21]</a></sup> in Quantum ESPRESSO it is <code class="language-plaintext highlighter-rouge">assume_isolated = 'mt'</code>. It needs a box at least roughly twice as large as the molecule’s electron cloud in each direction, which is another reason boxes for molecules get large. Other interactions with copies, including periodic dispersion corrections, still need care.</p>

<h3 id="k-points">k-points</h3>

<p>This term confuses most newcomers. In a crystal, an electron’s wave does not have to look identical in every cell: its phase can change from one cell to the next, like the timing of a repeating wave. Each possible pattern of phase changes is labeled by a vector, <strong>k</strong>. Calculating the energy involves averaging contributions over the distinct k values, and a program approximates this with a grid of sample <em>k-points</em>, usually a Monkhorst–Pack grid such as 6 × 6 × 6.<sup><a href="#ref-22" aria-label="Reference 22">[22]</a></sup></p>

<p>An analogy: to estimate a country’s average temperature, you sample a grid of cities. Where temperature varies smoothly, a few cities are enough; where it changes abruptly, you need many. Three practical rules follow:</p>

<ul>
  <li><strong>Insulators and semiconductors</strong> vary smoothly and need relatively few k-points.</li>
  <li><strong>Metals need many.</strong> In a metal, electrons fill the available states up to an energy called the <em>Fermi level</em>, and the occupation of each state jumps abruptly from full to empty there. Capturing that sharp edge needs a dense grid; a small cell of bulk iron is often given a dozen or more k-points in each direction.</li>
  <li><strong>Bigger cells need fewer k-points.</strong> Doubling the cell in one direction roughly halves the k-points needed in that direction. For many large cells, and for a well-isolated molecule in a box, a single k-point is enough: the <strong>Γ (Gamma) point</strong>, k = 0, where the wave is identical in every cell. Large metallic cells may still need more points. Programs can run Γ-only calculations faster.</li>
</ul>

<p>A slab gets a grid along the surface and a single k-point across the vacuum, written for example as 4 × 4 × 1. As with the cutoff, the right density is found by testing: increase the grid until the energy stops changing, often to within about 1 meV per atom.</p>

<h3 id="smearing">Smearing</h3>

<p>In a metal, the abrupt full-to-empty jump at the Fermi level also causes numerical trouble. As the calculation iterates, a state can flip from just below the Fermi level to just above it and back, and the calculation struggles to converge. <em>Smearing</em> replaces the abrupt step with a smooth one: states near the Fermi level may be partly occupied, as if the electrons had a small temperature. This also makes the average over k-points converge faster.</p>

<p>The smearing width is a parameter: <code class="language-plaintext highlighter-rouge">degauss</code> in Quantum ESPRESSO, in rydberg (around 0.01–0.02 Ry is common for metals), and <code class="language-plaintext highlighter-rouge">SIGMA</code> in VASP, in eV. Too much smearing distorts the result. Several schemes exist; Marzari–Vanderbilt “cold” smearing was designed so that the energy depends only weakly on the width.<sup><a href="#ref-23" aria-label="Reference 23">[23]</a></sup> Molecules and insulators normally use no smearing, with fixed occupations.</p>

<h3 id="spin-polarization">Spin polarization</h3>

<p>Electrons have a property called spin. Along a chosen direction, it has two possible values, which we call up and down. In most stable organic molecules, every occupied orbital holds one up and one down electron, so the two spin populations are identical and can be treated together. Two cases break that pairing:</p>

<ul>
  <li><strong>Radicals</strong> have an unpaired electron. Examples are the phenoxyl radical formed when a phenolic antioxidant donates its hydrogen atom, and the peroxyl radicals (ROO•) it intercepts.</li>
  <li><strong>Magnetic materials</strong> have unequal up and down populations on individual atoms, even if these cancel overall. In bulk iron they do not cancel, giving about 2.2 Bohr magnetons per atom, a unit of magnetic moment.</li>
</ul>

<p>These need a treatment that allows different up and down populations, usually a <em>spin-polarized</em> or <em>unrestricted</em> calculation, at extra cost. In Quantum ESPRESSO this is <code class="language-plaintext highlighter-rouge">nspin = 2</code>, together with <code class="language-plaintext highlighter-rouge">starting_magnetization</code> to give the calculation a magnetic starting point; without one it can settle into a nonmagnetic solution. In Gaussian and ORCA you give the <em>spin multiplicity</em>, 2S + 1, where S is the total spin: 1 for an ordinary closed-shell molecule, 2 for a radical with one unpaired electron, 3 for ground-state O₂. Counting unpaired electrons plus one works when their spins align; it is not a general rule.</p>

<h2 id="what-you-ask-the-program-to-do">What you ask the program to do</h2>

<h3 id="scf-the-loop-inside-every-calculation">SCF: the loop inside every calculation</h3>

<p>The orbitals depend on the electrostatic potential the electrons feel, but that potential depends on where the electrons are, that is, on the orbitals. This chicken-and-egg problem is solved by iteration:</p>

<figure class="review-workflow"><p>Guess a density → Build the potential → Solve for orbitals → New density → Repeat until nothing changes</p><figcaption>The self-consistent field (SCF) loop.</figcaption></figure>

<p>When the density going in matches the density coming out closely enough, the solution is <em>self-consistent</em>. Quantum ESPRESSO’s <code class="language-plaintext highlighter-rouge">conv_thr</code> sets a threshold on the estimated energy error, in Ry, rather than directly on the density difference. This is the <strong>self-consistent field (SCF)</strong> procedure, and every calculation type below runs it at least once. Each new density is usually blended with earlier ones (<em>mixing</em>) to keep the loop stable. When an SCF calculation will not converge, the usual remedies are gentler mixing (a smaller <code class="language-plaintext highlighter-rouge">mixing_beta</code> in Quantum ESPRESSO), smearing for metals, and a better starting guess, such as an initial magnetization for magnetic systems.</p>

<h3 id="single-point">Single point</h3>

<p>One SCF calculation at a fixed geometry, returning the energy and, if requested, the forces and stress. Most energy comparisons are single points on geometries prepared by another calculation.</p>

<h3 id="relax-geometry-optimization">Relax (geometry optimization)</h3>

<p>Compute the forces, move the atoms a step downhill, and repeat until the forces are close to zero. The result is the bottom of a nearby valley in the energy landscape, which is not necessarily the lowest valley overall. A variable-cell relaxation (<code class="language-plaintext highlighter-rouge">vc-relax</code> in Quantum ESPRESSO) also changes the size and shape of the cell, using the stress. Molecular programs usually follow an optimization with a frequency calculation: a true minimum has no imaginary vibrational frequencies.</p>

<h3 id="neb-finding-a-barrier">NEB: finding a barrier</h3>

<p>The nudged elastic band (NEB) method searches for a minimum-energy path between a known reactant and a known product.<sup><a href="#ref-24" aria-label="Reference 24">[24]</a></sup> It places a chain of intermediate copies of the system, called <em>images</em>, between the two and connects neighboring images with springs. The chain is then relaxed toward a nearby minimum-energy path; finding the easiest path overall is not guaranteed. The climbing-image variant pushes the highest image onto the transition state, and the barrier is that image’s energy minus the reactant’s.</p>

<p>Barriers matter because reaction rates depend on them exponentially. At room temperature, increasing the free-energy barrier by about 1.4 kcal/mol (0.06 eV) slows a reaction roughly tenfold, if the other factors stay the same. Free energy includes temperature and entropy effects, so an electronic energy barrier is a starting point for predicting rates. Molecular programs can also search for a transition state directly from a good guess and confirm it with a frequency calculation: a transition state has exactly one imaginary frequency, corresponding to motion along the reaction path.</p>

<h3 id="aimd-molecular-dynamics-driven-by-dft">AIMD: molecular dynamics driven by DFT</h3>

<p>Ab initio molecular dynamics (AIMD) uses forces calculated from the electrons, usually with DFT, to move the atoms using Newton’s laws. In its usual Born–Oppenheimer form, each step needs an SCF calculation. Steps are often about 0.5–1 fs long (1 fs = 10⁻¹⁵ s), so a simulation of a few hundred atoms commonly reaches tens of picoseconds (1 ps = 1,000 fs). That is far shorter and smaller than classical or reactive force-field MD, but the chemistry comes directly from the electrons instead of a fitted model.</p>

<h3 id="stress-and-the-virial">Stress and the virial</h3>

<p>The stress is a 3 × 3 table of numbers describing how the energy changes when the cell is stretched or sheared. The diagonal entries describe pushing or pulling along x, y, and z; the off-diagonal entries describe shear. The closely related <em>virial</em> is essentially the stress multiplied by the cell volume, with a sign that depends on the program’s convention.<sup><a href="#ref-34" aria-label="Reference 34">[34]</a></sup> Stress is needed for variable-cell relaxations and for constant-pressure molecular dynamics, where a barostat adjusts the box to hold the pressure fixed. An isolated molecule has no cell to squeeze, so bulk stress is not normally meaningful for it.</p>

<p>Plane-wave programs compute the stress routinely (<code class="language-plaintext highlighter-rouge">tstress = .true.</code> in Quantum ESPRESSO). One caveat: at a fixed cutoff, the number of plane waves changes as the cell changes, which adds an artificial <em>Pulay stress</em>. Stress therefore usually needs a higher cutoff to converge than energies do.</p>

<h3 id="labels-dft-data-for-machine-learning-potentials">Labels: DFT data for machine-learning potentials</h3>

<p>A machine-learning interatomic potential (MLIP) learns to predict energies and forces from examples (see <a href="/perspectives/machine-learning-potentials-tribology/">Learning the forces behind friction</a>). Each example is a structure together with its DFT energy, the forces on all its atoms, and often, for periodic cells, the stress. That set of answers is the structure’s <em>label</em>, and a training set often contains thousands of labeled structures. Many models can obtain stress from how their predicted energy changes when the cell is deformed, even without stress labels.<sup><a href="#ref-34" aria-label="Reference 34">[34]</a></sup> Stress labels help train and check that prediction; pressure accuracy should be validated before constant-pressure MD.</p>

<p>The most important rule for labels is consistency. Every label in a training set should use the same functional, dispersion correction, pseudopotentials, cutoff, smearing, and spin treatment. Even with the same functional, different pseudopotentials can shift energies by element-dependent amounts, so labels from different sources should not be mixed without care. This matters for pretrained models: large public datasets such as the Materials Project and OMat24 were computed with VASP, largely at the PBE or PBE+U level,<sup><a href="#ref-25" aria-label="Reference 25">[25]</a> <a href="#ref-26" aria-label="Reference 26">[26]</a></sup> and the Materials Project also includes r²SCAN calculations. Labels from another program or setup will not necessarily match them.</p>

<h2 id="the-five-programs">The five programs</h2>

<p>With the vocabulary in place, the differences between programs follow from the three choices.</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Program</th>
      <th>Type</th>
      <th>Basis</th>
      <th>License</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Gaussian</td>
      <td>Molecular</td>
      <td>Gaussian-type orbitals</td>
      <td>Commercial</td>
    </tr>
    <tr>
      <td>ORCA</td>
      <td>Molecular</td>
      <td>Gaussian-type orbitals</td>
      <td>Free for academic use</td>
    </tr>
    <tr>
      <td>Quantum ESPRESSO</td>
      <td>Periodic</td>
      <td>Plane waves + pseudopotentials</td>
      <td>Open source (GPL)</td>
    </tr>
    <tr>
      <td>VASP</td>
      <td>Periodic</td>
      <td>Plane waves + PAW</td>
      <td>Commercial</td>
    </tr>
    <tr>
      <td>CP2K</td>
      <td>Molecular and periodic</td>
      <td>Gaussians + plane waves</td>
      <td>Open source (GPL)</td>
    </tr>
  </tbody>
</table>

<h3 id="gaussian">Gaussian</h3>

<p>Gaussian is a long-established, widely used molecular program.<sup><a href="#ref-27" aria-label="Reference 27">[27]</a></sup> It offers many functionals, wavefunction methods, implicit solvation, and spectra (IR, Raman, UV-Vis, NMR), with a relatively simple input format. It also supports periodic systems, but QE and VASP are the usual choices for metals. It needs a commercial license.</p>

<h3 id="orca">ORCA</h3>

<p>ORCA is a molecular program known for speed.<sup><a href="#ref-28" aria-label="Reference 28">[28]</a></sup> Approximations to the expensive integrals (RIJCOSX) make hybrid functionals fast, and it is a common choice for DLPNO-CCSD(T). It is strong in molecular spectroscopy, including X-ray absorption. It has no periodic boundary conditions, so it models parts of solids or surfaces as finite clusters rather than repeating cells. ORCA is free for academic use; check its license terms before any industry-linked work.</p>

<h3 id="quantum-espresso">Quantum ESPRESSO</h3>

<p>Quantum ESPRESSO (QE) is an open-source suite for periodic plane-wave calculations.<sup><a href="#ref-29" aria-label="Reference 29">[29]</a></sup> It is strong for metals, surfaces, and solids, with stress, magnetism, phonons, and, through XSpectra, X-ray absorption near-edge spectra (XANES) of solids and surfaces.<sup><a href="#ref-30" aria-label="Reference 30">[30]</a></sup> Its weaknesses follow from plane waves: isolated molecules are expensive because the vacuum costs as much as the atoms, and hybrid functionals are expensive.</p>

<h3 id="vasp">VASP</h3>

<p>VASP occupies the same niche as QE and is one of the most widely used programs in computational materials science.<sup><a href="#ref-31" aria-label="Reference 31">[31]</a></sup> It uses plane waves with PAW. Large public datasets, including the Materials Project and OMat24, were computed with VASP, so many pretrained MLIPs inherit its settings. Its weaknesses are the same as QE’s, and it requires a paid license for each research group.</p>

<h3 id="cp2k">CP2K</h3>

<p>CP2K commonly uses a mixed scheme: orbitals are built from Gaussians, while the electron density is handled on a plane-wave grid.<sup><a href="#ref-32" aria-label="Reference 32">[32]</a></sup> The Gaussians tie the orbital basis size to the atoms, and the plane-wave grid makes the electrostatics of large periodic cells efficient. CP2K is a common choice for large periodic systems of hundreds to about a thousand atoms, such as liquids and solid–liquid interfaces, and for AIMD. An auxiliary basis method (ADMM) also makes hybrid functionals much cheaper in large cells. It has fewer spectroscopy tools than the molecular programs and more parameters to tune: basis sets, pseudopotentials, and two grid cutoffs must be chosen consistently. Many CP2K calculations use only the Γ point, so its strength is large cells rather than small metallic ones.</p>

<h2 id="which-program-for-which-job">Which program for which job</h2>

<table class="wrap">
  <thead>
    <tr>
      <th>Task</th>
      <th>Usually</th>
      <th>Why</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>O–H bond dissociation energy of an antioxidant</td>
      <td>ORCA or Gaussian: hybrid with dispersion, checked with DLPNO-CCSD(T)</td>
      <td>Isolated molecules; hybrids are cheap; the radical has multiplicity 2</td>
    </tr>
    <tr>
      <td>Reaction barrier in a molecule</td>
      <td>ORCA or Gaussian: hybrid with dispersion</td>
      <td>Transition-state search and frequencies; GGA barriers are often too low</td>
    </tr>
    <tr>
      <td>Molecule adsorbed on an iron surface</td>
      <td>QE or VASP: PBE-D3, spin-polarized, k-points, smearing</td>
      <td>A metal surface needs a periodic slab and metallic settings</td>
    </tr>
    <tr>
      <td>Iron oxide surface</td>
      <td>QE or VASP with DFT+U</td>
      <td>Localized d electrons</td>
    </tr>
    <tr>
      <td>Liquid or lubricant–surface interface, AIMD</td>
      <td>CP2K</td>
      <td>Large periodic cells at reasonable cost</td>
    </tr>
    <tr>
      <td>Training labels for an MLIP</td>
      <td>QE, VASP, or CP2K, one fixed setup</td>
      <td>Consistent energies, forces, and stress</td>
    </tr>
    <tr>
      <td>X-ray absorption of a solid or surface</td>
      <td>QE (XSpectra)</td>
      <td>Periodic system</td>
    </tr>
    <tr>
      <td>X-ray absorption of a molecule</td>
      <td>ORCA</td>
      <td>Molecular spectroscopy</td>
    </tr>
  </tbody>
</table>

<h2 id="reading-a-method-line">Reading a method line</h2>

<p>Papers compress all of these choices into one line. Two examples:</p>

<p><strong>ωB97X-D3/def2-TZVP//B3LYP-D3(BJ)/def2-SVP.</strong> The double slash separates the energy from the geometry. The geometry (right side) was optimized with the B3LYP hybrid, D3 dispersion with Becke–Johnson damping, and the small def2-SVP basis. The energy (left side) was then computed at that geometry with the range-separated hybrid ωB97X, D3 dispersion, and the larger def2-TZVP basis.</p>

<p><strong>PBE-D3(BJ), PAW (PSLibrary), 60 Ry cutoff, 4 × 4 × 1 k-points, Marzari–Vanderbilt smearing of 0.02 Ry, spin-polarized.</strong> A periodic calculation, probably of a metal surface: the PBE GGA with dispersion, PAW pseudopotentials, a plane-wave cutoff of 60 Ry (about 816 eV), a k-point grid that samples the surface with one point across the vacuum, cold smearing for the metal, and separate spin channels for magnetism.</p>

<p>Many of these terms appear directly in a Quantum ESPRESSO input. Here is the skeleton of a single-point calculation on a molecule in a box, such as ZDDP, with the atom lists left out:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&amp;CONTROL
  calculation = 'scf'          ! single point; 'relax' optimizes the geometry
  tprnfor     = .true.         ! print the forces
/
&amp;SYSTEM
  ibrav = 1, A = 22.0          ! cubic box, 22 Å on a side
  nat = 51, ntyp = 6           ! 51 atoms of 6 elements: Zn, P, S, O, C, H
  ecutwfc = 60                 ! plane-wave cutoff, Ry
  ecutrho = 480                ! example density cutoff, Ry; test for the PAW files used
  assume_isolated = 'mt'       ! removes electrostatic interactions with copies
  vdw_corr = 'grimme-d3'       ! D3 dispersion correction
/
&amp;ELECTRONS
  conv_thr = 1.0d-8            ! SCF convergence threshold, Ry
/
! one PAW pseudopotential file per element
ATOMIC_SPECIES
  ...
ATOMIC_POSITIONS angstrom
  ...
! a single k-point: the Gamma point
K_POINTS gamma
</code></pre></div></div>

<p>These numbers illustrate the input format; the box size and cutoffs still need convergence checks for the actual molecule and pseudopotentials. The functional is read from the pseudopotential files unless explicitly overridden, and <code class="language-plaintext highlighter-rouge">grimme-d3</code> defaults to zero damping; D3(BJ) additionally needs <code class="language-plaintext highlighter-rouge">dftd3_version = 4</code>.</p>

<p>For an iron slab, the cell and atom lists would be changed to describe the slab, <code class="language-plaintext highlighter-rouge">assume_isolated</code> would be dropped, spin and smearing would be added to <code class="language-plaintext highlighter-rouge">&amp;SYSTEM</code>, and the k-points would become a grid:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>  nspin = 2                          ! spin-polarized
  starting_magnetization(1) = 0.5    ! magnetic starting guess for species 1 (Fe)
  occupations = 'smearing'
  smearing = 'mv', degauss = 0.02    ! Marzari-Vanderbilt smearing, Ry

K_POINTS automatic
  4 4 1 0 0 0
</code></pre></div></div>

<h2 id="a-one-line-glossary">A one-line glossary</h2>

<dl>
  <dt>DFT</dt>
  <dd>Gets the energy from the electron density; the unknown part is the exchange-correlation functional.</dd>
  <dt>Functional</dt>
  <dd>The specific approximation to the exchange-correlation energy.</dd>
  <dt>GGA (PBE)</dt>
  <dd>Uses the density and its gradient. Cheap; common for solids and metals; barriers often too low.</dd>
  <dt>meta-GGA (r²SCAN)</dt>
  <dd>Adds the kinetic energy density. Somewhat better than GGA at similar cost.</dd>
  <dt>Hybrid (B3LYP, PBE0, ωB97X)</dt>
  <dd>Mixes in exact Hartree–Fock exchange. Better barriers; cheap in molecular codes, expensive with plane waves.</dd>
  <dt>Dispersion correction (D3, D4)</dt>
  <dd>An added pairwise attraction for the van der Waals forces DFT misses.</dd>
  <dt>DFT+U</dt>
  <dd>A penalty that keeps transition-metal d electrons localized, for oxides such as Fe₂O₃.</dd>
  <dt>HF, MP2, CCSD(T)</dt>
  <dd>Wavefunction methods of increasing accuracy and cost; CCSD(T) is the gold standard.</dd>
  <dt>DLPNO-CCSD(T)</dt>
  <dd>A local approximation that makes CCSD(T) affordable for larger molecules, often 50–150 atoms or more.</dd>
  <dt>Basis set</dt>
  <dd>The building blocks used to write down orbitals.</dd>
  <dt>Gaussian-type orbitals</dt>
  <dd>Bumps centered on atoms; basis size grows with atoms; empty space needs no extra functions.</dd>
  <dt>Plane waves</dt>
  <dd>Waves filling the whole box; quality set by the cutoff energy; vacuum costs as much as atoms.</dd>
  <dt>Cutoff energy</dt>
  <dd>The highest-energy (shortest) plane wave included, such as <code class="language-plaintext highlighter-rouge">ecutwfc</code> or <code class="language-plaintext highlighter-rouge">ENCUT</code>.</dd>
  <dt>Pseudopotential (NC, US, PAW)</dt>
  <dd>Replaces the nucleus and core electrons with a smoother potential so plane waves stay affordable.</dd>
  <dt>PBC</dt>
  <dd>Periodic boundary conditions: the cell repeats forever in all directions.</dd>
  <dt>Supercell</dt>
  <dd>An enlarged cell that keeps defects or molecules away from their copies.</dd>
  <dt>Slab</dt>
  <dd>A few atomic layers plus vacuum, used to model a surface.</dd>
  <dt>Molecule in a box</dt>
  <dd>How periodic codes treat a molecule: a large cell with about 10 Å of vacuum.</dd>
  <dt>Martyna–Tuckerman</dt>
  <dd>A correction that removes the electrostatic interaction of a molecule with its copies.</dd>
  <dt>k-points</dt>
  <dd>Sample points used to average contributions from different electron wave patterns in a periodic cell.</dd>
  <dt>Γ point</dt>
  <dd>The k-point k = 0; often enough for large cells and well-isolated molecules, but check convergence.</dd>
  <dt>Fermi level</dt>
  <dd>At zero temperature, the energy separating occupied and empty states in a metal.</dd>
  <dt>Smearing</dt>
  <dd>Smooths occupations near the Fermi level so metals converge.</dd>
  <dt>Spin polarization</dt>
  <dd>Treats up and down electrons separately; needed for radicals and magnetic metals.</dd>
  <dt>Multiplicity</dt>
  <dd>2S + 1, where S is total spin: 1 for closed-shell molecules, 2 for a radical with one unpaired electron.</dd>
  <dt>SCF</dt>
  <dd>The iterative loop that makes the electrons consistent with their own potential.</dd>
  <dt>Single point</dt>
  <dd>Energy and forces at a fixed geometry.</dd>
  <dt>Relax</dt>
  <dd>Geometry optimization to a nearby energy minimum.</dd>
  <dt>NEB</dt>
  <dd>A chain of images that searches for a minimum-energy path and estimates its barrier.</dd>
  <dt>AIMD</dt>
  <dd>Molecular dynamics with forces from electronic-structure calculations, usually DFT.</dd>
  <dt>Stress and virial</dt>
  <dd>How the energy changes when the cell is deformed; needed for constant-pressure MD.</dd>
  <dt>Label</dt>
  <dd>The DFT energy, forces, and often stress for one structure, used to train an MLIP.</dd>
</dl>

<h2 id="references">References</h2>

<ol class="references">
<li id="ref-1">Hohenberg, P., &amp; Kohn, W. (1964). <a href="https://doi.org/10.1103/PhysRev.136.B864">Inhomogeneous Electron Gas.</a> <em>Physical Review</em>, 136, B864–B871.</li>
<li id="ref-2">Kohn, W., &amp; Sham, L. J. (1965). <a href="https://doi.org/10.1103/PhysRev.140.A1133">Self-Consistent Equations Including Exchange and Correlation Effects.</a> <em>Physical Review</em>, 140, A1133–A1138.</li>
<li id="ref-3">Perdew, J. P., &amp; Schmidt, K. (2001). <a href="https://doi.org/10.1063/1.1390175">Jacob's ladder of density functional approximations for the exchange-correlation energy.</a> <em>AIP Conference Proceedings</em>, 577, 1–20.</li>
<li id="ref-4">Perdew, J. P., Burke, K., &amp; Ernzerhof, M. (1996). <a href="https://doi.org/10.1103/PhysRevLett.77.3865">Generalized Gradient Approximation Made Simple.</a> <em>Physical Review Letters</em>, 77, 3865–3868.</li>
<li id="ref-5">Furness, J. W., Kaplan, A. D., Ning, J., Perdew, J. P., &amp; Sun, J. (2020). <a href="https://doi.org/10.1021/acs.jpclett.0c02405">Accurate and Numerically Efficient r<sup>2</sup>SCAN Meta-Generalized Gradient Approximation.</a> <em>The Journal of Physical Chemistry Letters</em>, 11, 8208–8215.</li>
<li id="ref-6">Becke, A. D. (1993). <a href="https://doi.org/10.1063/1.464913">Density-functional thermochemistry. III. The role of exact exchange.</a> <em>The Journal of Chemical Physics</em>, 98, 5648–5652.</li>
<li id="ref-7">Adamo, C., &amp; Barone, V. (1999). <a href="https://doi.org/10.1063/1.478522">Toward reliable density functional methods without adjustable parameters: The PBE0 model.</a> <em>The Journal of Chemical Physics</em>, 110, 6158–6170.</li>
<li id="ref-8">Chai, J.-D., &amp; Head-Gordon, M. (2008). <a href="https://doi.org/10.1063/1.2834918">Systematic optimization of long-range corrected hybrid density functionals.</a> <em>The Journal of Chemical Physics</em>, 128, 084106.</li>
<li id="ref-9">Grimme, S., Antony, J., Ehrlich, S., &amp; Krieg, H. (2010). <a href="https://doi.org/10.1063/1.3382344">A consistent and accurate ab initio parametrization of density functional dispersion correction (DFT-D) for the 94 elements H–Pu.</a> <em>The Journal of Chemical Physics</em>, 132, 154104.</li>
<li id="ref-10">Grimme, S., Ehrlich, S., &amp; Goerigk, L. (2011). <a href="https://doi.org/10.1002/jcc.21759">Effect of the damping function in dispersion corrected density functional theory.</a> <em>Journal of Computational Chemistry</em>, 32, 1456–1465.</li>
<li id="ref-11">Caldeweyher, E., et al. (2019). <a href="https://doi.org/10.1063/1.5090222">A generally applicable atomic-charge dependent London dispersion correction.</a> <em>The Journal of Chemical Physics</em>, 150, 154122.</li>
<li id="ref-12">Dudarev, S. L., Botton, G. A., Savrasov, S. Y., Humphreys, C. J., &amp; Sutton, A. P. (1998). <a href="https://doi.org/10.1103/PhysRevB.57.1505">Electron-energy-loss spectra and the structural stability of nickel oxide: An LSDA+U study.</a> <em>Physical Review B</em>, 57, 1505–1509.</li>
<li id="ref-13">Raghavachari, K., Trucks, G. W., Pople, J. A., &amp; Head-Gordon, M. (1989). <a href="https://doi.org/10.1016/S0009-2614(89)87395-6">A fifth-order perturbation comparison of electron correlation theories.</a> <em>Chemical Physics Letters</em>, 157, 479–483.</li>
<li id="ref-14">Riplinger, C., Sandhoefer, B., Hansen, A., &amp; Neese, F. (2013). <a href="https://doi.org/10.1063/1.4821834">Natural triple excitations in local coupled cluster calculations with pair natural orbitals.</a> <em>The Journal of Chemical Physics</em>, 139, 134101.</li>
<li id="ref-15">Weigend, F., &amp; Ahlrichs, R. (2005). <a href="https://doi.org/10.1039/b508541a">Balanced basis sets of split valence, triple zeta valence and quadruple zeta valence quality for H to Rn.</a> <em>Physical Chemistry Chemical Physics</em>, 7, 3297–3305.</li>
<li id="ref-16">Hamann, D. R., Schlüter, M., &amp; Chiang, C. (1979). <a href="https://doi.org/10.1103/PhysRevLett.43.1494">Norm-Conserving Pseudopotentials.</a> <em>Physical Review Letters</em>, 43, 1494–1497.</li>
<li id="ref-17">Vanderbilt, D. (1990). <a href="https://doi.org/10.1103/PhysRevB.41.7892">Soft self-consistent pseudopotentials in a generalized eigenvalue formalism.</a> <em>Physical Review B</em>, 41, 7892–7895.</li>
<li id="ref-18">Blöchl, P. E. (1994). <a href="https://doi.org/10.1103/PhysRevB.50.17953">Projector augmented-wave method.</a> <em>Physical Review B</em>, 50, 17953–17979.</li>
<li id="ref-19">Dal Corso, A. (2014). <a href="https://doi.org/10.1016/j.commatsci.2014.07.043">Pseudopotentials periodic table: From H to Pu.</a> <em>Computational Materials Science</em>, 95, 337–350.</li>
<li id="ref-20">Prandini, G., Marrazzo, A., Castelli, I. E., Mounet, N., &amp; Marzari, N. (2018). <a href="https://doi.org/10.1038/s41524-018-0127-2">Precision and efficiency in solid-state pseudopotential calculations.</a> <em>npj Computational Materials</em>, 4, 72.</li>
<li id="ref-21">Martyna, G. J., &amp; Tuckerman, M. E. (1999). <a href="https://doi.org/10.1063/1.477923">A reciprocal space based method for treating long range interactions in ab initio and force-field-based calculations in clusters.</a> <em>The Journal of Chemical Physics</em>, 110, 2810–2821.</li>
<li id="ref-22">Monkhorst, H. J., &amp; Pack, J. D. (1976). <a href="https://doi.org/10.1103/PhysRevB.13.5188">Special points for Brillouin-zone integrations.</a> <em>Physical Review B</em>, 13, 5188–5192.</li>
<li id="ref-23">Marzari, N., Vanderbilt, D., De Vita, A., &amp; Payne, M. C. (1999). <a href="https://doi.org/10.1103/PhysRevLett.82.3296">Thermal Contraction and Disordering of the Al(110) Surface.</a> <em>Physical Review Letters</em>, 82, 3296–3299.</li>
<li id="ref-24">Henkelman, G., Uberuaga, B. P., &amp; Jónsson, H. (2000). <a href="https://doi.org/10.1063/1.1329672">A climbing image nudged elastic band method for finding saddle points and minimum energy paths.</a> <em>The Journal of Chemical Physics</em>, 113, 9901–9904.</li>
<li id="ref-25">Jain, A., et al. (2013). <a href="https://doi.org/10.1063/1.4812323">Commentary: The Materials Project: A materials genome approach to accelerating materials innovation.</a> <em>APL Materials</em>, 1, 011002.</li>
<li id="ref-26">Barroso-Luque, L., et al. (2024). <a href="https://arxiv.org/abs/2410.12771">Open Materials 2024 (OMat24) Inorganic Materials Dataset and Models.</a> arXiv:2410.12771.</li>
<li id="ref-27">Frisch, M. J., et al. (2016). <a href="https://gaussian.com/citation/">Gaussian 16.</a> Gaussian, Inc., Wallingford, CT.</li>
<li id="ref-28">Neese, F., Wennmohs, F., Becker, U., &amp; Riplinger, C. (2020). <a href="https://doi.org/10.1063/5.0004608">The ORCA quantum chemistry program package.</a> <em>The Journal of Chemical Physics</em>, 152, 224108.</li>
<li id="ref-29">Giannozzi, P., et al. (2009). <a href="https://doi.org/10.1088/0953-8984/21/39/395502">QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials.</a> <em>Journal of Physics: Condensed Matter</em>, 21, 395502.</li>
<li id="ref-30">Gougoussis, C., Calandra, M., Seitsonen, A. P., &amp; Mauri, F. (2009). <a href="https://doi.org/10.1103/PhysRevB.80.075102">First-principles calculations of x-ray absorption in a scheme based on ultrasoft pseudopotentials: From α-quartz to high-T<sub>c</sub> compounds.</a> <em>Physical Review B</em>, 80, 075102.</li>
<li id="ref-31">Kresse, G., &amp; Furthmüller, J. (1996). <a href="https://doi.org/10.1103/PhysRevB.54.11169">Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set.</a> <em>Physical Review B</em>, 54, 11169–11186.</li>
<li id="ref-32">Kühne, T. D., et al. (2020). <a href="https://doi.org/10.1063/5.0007045">CP2K: An electronic structure and molecular dynamics software package – Quickstep: Efficient and accurate electronic structure calculations.</a> <em>The Journal of Chemical Physics</em>, 152, 194103.</li>
<li id="ref-33">Quantum ESPRESSO documentation. <a href="https://www.quantum-espresso.org/Doc/INPUT_PW.html">PWscf input reference: cutoffs, SCF thresholds, and dispersion settings.</a></li>
<li id="ref-34">NequIP documentation. <a href="https://nequip.readthedocs.io/en/latest/guide/reference/conventions.html">Stress and virial conventions</a> and <a href="https://nequip.readthedocs.io/en/latest/guide/configuration/model.html">energy-based models and derivatives.</a></li>
</ol>]]></content><author><name>Shihab Ahmed</name></author><category term="Explainers" /><summary type="html"><![CDATA[What DFT, functionals, basis sets, pseudopotentials, k-points, smearing, and the rest of a DFT input actually mean, and why Gaussian, ORCA, Quantum ESPRESSO, VASP, and CP2K differ.]]></summary></entry><entry><title type="html">Reading a million papers with a local LLM</title><link href="https://shihabahmed.com/perspectives/reading-a-million-papers-with-a-local-llm/" rel="alternate" type="text/html" title="Reading a million papers with a local LLM" /><published>2026-10-08T00:00:00-07:00</published><updated>2026-10-08T00:00:00-07:00</updated><id>https://shihabahmed.com/perspectives/reading-a-million-papers-with-a-local-llm</id><content type="html" xml:base="https://shihabahmed.com/perspectives/reading-a-million-papers-with-a-local-llm/"><![CDATA[<p>For my research on antioxidant additives I wanted a list of every antioxidant molecule that the lubricant literature reports. A broad search for lubricants, oils, oxidation, and antioxidants returns more than a million papers, far too many to read, and most of them are about something else: food chemistry, biology, fuels, polymers.</p>

<p>So I built a pipeline in which a large language model does the first reading. It runs entirely on open-weight models served by Ollama on our university GPU nodes, and the code is on GitHub as <a href="https://github.com/sahmed73/llm-literature-mining">llm-literature-mining</a>. This post describes how it works, what the numbers look like, and two practical issues that shaped the design: the model’s context window and the choice of model.</p>

<blockquote>
  <p><strong>The central idea:</strong> use a small local model as a first reader that only gives structured answers, and check its chemistry against a database rather than trusting it.</p>
</blockquote>

<details class="essay-toc" open="">
<summary>In this post</summary>
<ol>
<li><a href="#why-a-local-model">Why a local model</a></li>
<li><a href="#from-15-million-records-to-3944-papers">From 1.5 million records to 3,944 papers</a></li>
<li><a href="#extracting-compounds-without-inventing-them">Extracting compounds without inventing them</a></li>
<li><a href="#chunking-for-an-8k-token-window">Chunking for an 8K-token window</a></li>
<li><a href="#llama-3-8b-70b-or-qwen-3">Llama 3 8B, 70B, or Qwen 3?</a></li>
<li><a href="#what-i-would-do-differently">What I would do differently</a></li>
<li><a href="#references">References</a></li>
</ol>
</details>

<h2 id="why-a-local-model">Why a local model</h2>

<p>Scoring a million abstracts through a commercial API would cost money for every run, and I expected to rerun the pipeline many times while adjusting prompts. A local model costs nothing per call once it is downloaded, keeps the data on our own machines, and can run for days as a batch job. Llama 3 8B fits in about 6 GB of GPU memory, so one 48 GB GPU can serve several copies of it at once.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup> Ollama starts the model inside a SLURM job and exposes a simple HTTP interface, which the pipeline calls like any other web service.</p>

<h2 id="from-15-million-records-to-3944-papers">From 1.5 million records to 3,944 papers</h2>

<p>The first step queries seven literature databases (OpenAlex, Semantic Scholar, Crossref, PubMed, Europe PMC, CORE, and Lens) with 27 search phrasings.<sup><a href="#ref-2" aria-label="Reference 2">[2]</a></sup> That returned 1,535,419 records. After removing duplicates by DOI and title, 1,156,902 unique papers remained, and only 392,289 of them had an abstract.</p>

<p>The model then scored every paper from 0 to 10 for relevance to antioxidant additives for lubricants. The prompt gives a rubric with examples for each band (10 for papers directly about lubricant antioxidants, 4–5 for antioxidants in food or polymers, 0–1 for unrelated chemistry) and asks for a JSON answer containing only a score and a one-sentence reason. Papers without an abstract were scored from the title alone.</p>

<figure class="essay-figure">
<img src="/assets/blog/llm-relevance-scores.png" alt="Bar chart of relevance scores from 0 to 10 for 1,156,902 papers on a log scale. Scores 0 to 2 contain over a million papers; scores 6 to 10 contain 3,944." width="3500" height="2250" loading="lazy" />
<figcaption>Relevance scores for all 1,156,902 papers (log scale). Green bars (score ≥ 6, 3,944 papers) went on to compound extraction.</figcaption>
</figure>

<p>Over 99% of the papers scored 0–2, which is what this step is for: it reduced the reading list to 3,944 papers. The distribution also shows something about how the model uses a rubric. Scores 6 and 8 each hold about 1,700 papers, while 7 holds 44 and 5 holds 17. The model gravitates to particular values instead of spreading papers smoothly across the scale, so I treat the score as a coarse label (relevant or not) rather than a fine measurement.</p>

<h2 id="extracting-compounds-without-inventing-them">Extracting compounds without inventing them</h2>

<p>For the relevant papers the model read either the full text, when I had the PDF (3,338 documents), or the abstract (2,186 more). It was asked to list every specific antioxidant named in the text as JSON, with the compound name exactly as written, its role, and a short quoted phrase as evidence.</p>

<p>The prompt is strict about what not to do. It asks for a SMILES string or formula only when one is written in the text, never inferred from a name, and excludes food and biological antioxidants and generic classes such as “phenolic antioxidants” with no specific molecule. A small exclusion list removes common false positives such as vitamin C and vitamin E.</p>

<p>The model returned 22,230 compound mentions from 4,180 documents, covering 9,427 distinct names. Names are not structures, so the next step looks each one up in PubChem.<sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup> A final RDKit step classifies the structures by substructure: an aromatic OH for phenolic antioxidants and an aromatic N–H for aminic ones, keeping only molecules made of carbon, hydrogen, nitrogen, and oxygen.<sup><a href="#ref-4" aria-label="Reference 4">[4]</a></sup> That leaves 556 unique structures, of which 172 are phenolic and 34 are aminic antioxidants.</p>

<p>The final set is much smaller than the number of mentions, and that is intended. Every molecule in it traces back to a sentence in a paper and to a PubChem record, which matters more to me than coverage.</p>

<h2 id="chunking-for-an-8k-token-window">Chunking for an 8K-token window</h2>

<p>A model can only read as much text at once as its context window allows, and the prompt and the answer have to fit in the same window. Llama 3 has an 8,192-token window, roughly 30,000 characters.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup> In this collection the median full-text paper is about 29,000 characters long (around 7,400 tokens) and one in ten is longer than 56,000 characters. Only 37% of the papers would fit in a single call with room left for the prompt and the answer.</p>

<p>The extraction step therefore splits each paper into chunks of at most 10,000 characters (about 2,500 tokens), cut at paragraph or sentence boundaries, with 800 characters of overlap so that a compound named across a boundary appears whole in at least one chunk. Each chunk gets its own call, and the compounds from all chunks of a paper are merged by name. A median paper becomes four chunks: four calls instead of one, and the model never sees the whole paper.</p>

<p>Newer models make this optional. Qwen 2.5 and Qwen 3 accept 32K tokens or more, and Llama 3.1 and later accept 128K.<sup><a href="#ref-5" aria-label="Reference 5">[5]</a></sup> With a 32K window, 99% of these papers fit in one call, and the pipeline supports that by raising the chunk size and the requested context length. Longer inputs are not free, though. They take more GPU memory and longer per call, and models tend to use information in the middle of a long input less reliably than information near its start or end.<sup><a href="#ref-6" aria-label="Reference 6">[6]</a></sup> Whether whole-paper extraction finds more compounds than chunked extraction is something to measure on a sample, not to assume.</p>

<h2 id="llama-3-8b-70b-or-qwen-3">Llama 3 8B, 70B, or Qwen 3?</h2>

<p>The full runs used Llama 3 8B. To see how much the model matters, I ran the same two pipeline steps with three models on a small test: two abstracts to score (one of my own antioxidant papers and an invented food-science abstract) and one paragraph that names three lubricant antioxidants and vitamin E. Scores are listed as antioxidant paper / food-science paper.</p>

<table>
  <thead>
    <tr>
      <th>Model</th>
      <th>Scores</th>
      <th>Compounds extracted</th>
      <th>GPU memory</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Llama 3 8B</td>
      <td>9 / 2</td>
      <td>the 3 antioxidants</td>
      <td>6 GB</td>
    </tr>
    <tr>
      <td>Llama 3 70B</td>
      <td>10 / 4</td>
      <td>the 3 antioxidants</td>
      <td>41 GB</td>
    </tr>
    <tr>
      <td>Qwen 3 30B-A3B</td>
      <td>9 / 2</td>
      <td>the 3 antioxidants, plus BHT and PANA as separate entries</td>
      <td>21 GB</td>
    </tr>
  </tbody>
</table>

<p>All three separated the relevant paper from the irrelevant one and ignored vitamin E. This is a quick check, not a benchmark: three inputs cannot show which model is more accurate over thousands of papers. It does show that the 70B model, nine times larger, gave no visible advantage on this task, while the 8B model was several times faster.</p>

<p>Qwen 3 needed two changes before it worked at all. It is a reasoning model, and by default it writes out its reasoning before answering.<sup><a href="#ref-5" aria-label="Reference 5">[5]</a></sup> The scoring step allows only 150 tokens for the answer, so the reasoning used up the budget and no score came back. Turning thinking off was not enough on its own, because the model still wrote a short explanation before the JSON. What fixed it was Ollama’s structured-output mode, which constrains the answer to a JSON schema. Both are now options in the pipeline. A newer model is not automatically a drop-in replacement, and a five-minute test on a few known examples catches this kind of problem before a multi-day run.</p>

<h2 id="what-i-would-do-differently">What I would do differently</h2>

<p>The weakest part of the current pipeline is that I cannot yet report its accuracy. The next step is a hand-labeled sample of a few hundred papers, which would give the precision and recall of the relevance score and of the extraction, and would turn the model comparison above into a real one. I would also record the model and prompt version next to every output, so that results from different runs can be compared without guessing.</p>

<p>The code, a demo that runs both LLM steps with any Ollama model, and the documentation are on <a href="https://github.com/sahmed73/llm-literature-mining">GitHub</a>.</p>

<h2 id="references">References</h2>

<ol class="references">
<li id="ref-1">Grattafiori, A., et al. (2024). <a href="https://arxiv.org/abs/2407.21783">The Llama 3 Herd of Models.</a> arXiv:2407.21783.</li>
<li id="ref-2">Priem, J., Piwowar, H., &amp; Orr, R. (2022). <a href="https://arxiv.org/abs/2205.01833">OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and concepts.</a> arXiv:2205.01833.</li>
<li id="ref-3">Kim, S., et al. (2023). <a href="https://doi.org/10.1093/nar/gkac956">PubChem 2023 update.</a> <em>Nucleic Acids Research</em>, 51(D1), D1373–D1380.</li>
<li id="ref-4">RDKit: Open-source cheminformatics. <a href="https://www.rdkit.org">https://www.rdkit.org</a></li>
<li id="ref-5">Yang, A., et al. (2025). <a href="https://arxiv.org/abs/2505.09388">Qwen3 Technical Report.</a> arXiv:2505.09388.</li>
<li id="ref-6">Liu, N. F., et al. (2024). <a href="https://doi.org/10.1162/tacl_a_00638">Lost in the Middle: How Language Models Use Long Contexts.</a> <em>Transactions of the Association for Computational Linguistics</em>, 12, 157–173.</li>
</ol>]]></content><author><name>Shihab Ahmed</name></author><category term="Project notes" /><summary type="html"><![CDATA[How I used Llama 3 on university GPUs to screen 1.16 million papers for lubricant antioxidants, and what the context window and the choice of model changed along the way.]]></summary></entry><entry><title type="html">Learning the forces behind friction</title><link href="https://shihabahmed.com/perspectives/machine-learning-potentials-tribology/" rel="alternate" type="text/html" title="Learning the forces behind friction" /><published>2026-10-03T07:00:00-07:00</published><updated>2026-10-03T07:00:00-07:00</updated><id>https://shihabahmed.com/perspectives/machine-learning-potentials-tribology</id><content type="html" xml:base="https://shihabahmed.com/perspectives/machine-learning-potentials-tribology/"><![CDATA[<p>At a sliding contact, molecules can be compressed, stretched, and transformed. Understanding this chemistry matters when we want to explain how a lubricant works, how a protective film develops, or why a surface begins to wear.</p>

<p>Molecular dynamics follows atoms as they move. Its usefulness depends on the model supplying the forces. Machine-learning interatomic potentials (MLIPs) offer a way to learn those forces from quantum calculations and use them in larger or longer simulations than would usually be practical with the reference method.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup></p>

<blockquote>
  <p><strong>The central idea:</strong> an MLIP makes a learned approximation to atomic interactions. Its value in tribology depends on whether that approximation holds under the chemistry, pressure, and motion of the contact being studied.</p>
</blockquote>

<details class="essay-toc" open="">
<summary>In this review</summary>
<ol>
<li><a href="#what-does-an-interatomic-potential-do">What does an interatomic potential do?</a></li>
<li><a href="#why-sliding-contacts-are-a-hard-test">Why sliding contacts are a hard test</a></li>
<li><a href="#a-published-example-carbon-based-lubricants">A published example: carbon-based lubricants</a></li>
<li><a href="#learning-where-the-model-needs-help">Learning where the model needs help</a></li>
<li><a href="#what-i-would-validate-before-trusting-a-result">What I would validate before trusting a result</a></li>
<li><a href="#the-connection-to-antioxidant-research">The connection to antioxidant research</a></li>
<li><a href="#references">References</a></li>
</ol>
</details>

<h2 id="what-does-an-interatomic-potential-do">What does an interatomic potential do?</h2>

<p>An interatomic potential relates atomic positions and chemical identities to energy and forces. In an energy-based model, a force follows from how the predicted energy changes when an atom moves. The molecular dynamics calculation then uses those forces to advance the atoms through time.</p>

<p>Behler and Parrinello demonstrated a neural-network representation of a potential-energy surface using reference calculations from density functional theory (DFT). Their approach helped establish how learned models could describe systems containing many atoms without carrying out a fresh electronic-structure calculation at every simulation step.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup></p>

<p>Modern models also encode geometric structure. NequIP, for example, uses equivariant neural networks: rotating a configuration rotates the relevant vector quantities consistently. This helps the model use reference data efficiently. The published demonstrations establish a modeling capability; they do not make every trained NequIP model suitable for every tribological system.<sup><a href="#ref-2" aria-label="Reference 2">[2]</a></sup></p>

<p>An MLIP supplies interactions. Friction must still be measured from a simulation with defined surfaces, load, sliding motion, and thermal conditions.</p>

<h2 id="why-sliding-contacts-are-a-hard-test">Why sliding contacts are a hard test</h2>

<p>A training set of relaxed structures can leave out the configurations that matter during sliding. Close contacts, distorted bonds, exposed surfaces, and new reaction products may appear as the simulation evolves. A potential must have suitable reference information for those situations if it is to describe them reliably.<sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup></p>

<p>This is an issue of <strong>coverage</strong>: has the model learned the region of configuration space the simulation is visiting? A low average error on familiar structures cannot answer that question for an unfamiliar reaction. Active-learning research addresses precisely this problem of detecting configurations that need new reference calculations.<sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup></p>

<p>For tribology, I would therefore define the intended operating conditions before choosing training data. The relevant surfaces, lubricant composition, temperature range, and loading conditions determine which atomic environments need attention.</p>

<h2 id="a-published-example-carbon-based-lubricants">A published example: carbon-based lubricants</h2>

<p>Pacini and colleagues developed an active-learning workflow for neural-network potentials aimed at carbon-based lubricant simulations. Their training systems included diamond surfaces and glycerol-related environments, and their sliding simulations examined confined glycerol. The study reported different behavior at high and low loads and better agreement with the considered nanoscale friction measurements than the tested ReaxFF description.<sup><a href="#ref-4" aria-label="Reference 4">[4]</a></sup></p>

<p>This is a useful demonstration of why the interaction model matters. Its scope also matters: success for those compositions and conditions is evidence for that application. It does not establish that an MLIP will always outperform a reactive force field, or that the same trained potential can be moved directly to an unrelated lubricant–surface combination.</p>

<h2 id="learning-where-the-model-needs-help">Learning where the model needs help</h2>

<p>Active learning makes reference-data collection an iterative process. Run exploratory simulations, identify unfamiliar configurations, compute their reference energies and forces, and improve the potential. Podryabinkin and Shapeev demonstrated a configuration-selection strategy for linearly parametrized potentials.<sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup></p>

<figure class="review-workflow"><p>Reference data → Train → Explore → Select → Calculate → Retrain</p><figcaption>An active-learning loop concentrates new reference calculations on configurations that need attention.</figcaption></figure>

<p>The practical question is whether the selection criterion notices the failures that matter. I would check the chosen uncertainty or novelty indicator against actual reference errors before relying on it to screen a long trajectory. I would also retain an independent validation set throughout the loop.</p>

<h2 id="what-i-would-validate-before-trusting-a-result">What I would validate before trusting a result</h2>

<p>For a tribology project, my validation plan would go beyond a single energy or force error:</p>

<ul>
  <li><strong>Relevant chemistry.</strong> Check reactants, products, and representative configurations along important reaction pathways against a consistent reference method.</li>
  <li><strong>Relevant interfaces.</strong> Test the lubricant near the intended surface, including compressed and distorted configurations. An isolated molecule is a different environment.</li>
  <li><strong>Independent conditions.</strong> Hold out complete trajectories or operating conditions during evaluation. Nearby frames from the same trajectory can make a test unusually easy.</li>
  <li><strong>Stable dynamics.</strong> Examine energy behavior in an appropriate unthermostatted check, sensitivity to the timestep, and whether atoms explore implausible configurations.</li>
  <li><strong>The observable itself.</strong> Check friction, structure, and reaction products under clearly reported loading, sliding, and thermostat conditions. Compare with experiments when comparable measurements exist.</li>
</ul>

<p>These are proposed checks for a study, rather than a universal certificate of accuracy. The reference calculations also have approximations; training against them does not remove their limitations.</p>

<h2 id="the-connection-to-antioxidant-research">The connection to antioxidant research</h2>

<p>My research uses reactive molecular dynamics to connect molecular structure with oxidation chemistry. Our work on modified lignin structures showed how tracking species and bonds can identify reaction products and likely thermo-oxidation pathways.<sup><a href="#ref-5" aria-label="Reference 5">[5]</a></sup></p>

<p>A validated MLIP could support a related goal: examine selected additive reactions with an interaction model trained for that chemistry. For an oxidation problem, I would pay particular attention to oxygen-containing species, radicals, and whether the electronic states assumed by the reference method are appropriate. That application would need its own training and validation; it is a direction to investigate, not a result claimed here.</p>

<p>There is also a natural connection to <a href="/perspectives/generative-ai-molecules-tribology/">generative molecular design</a>. A generator proposes candidates. A suitable potential helps investigate their behavior. Reaction analysis turns the trajectories into chemical explanations, and experiments determine whether those explanations translate into useful lubricant performance.</p>

<h2 id="references">References</h2>

<ol class="references">
<li id="ref-1">Behler, J., &amp; Parrinello, M. (2007). <a href="https://doi.org/10.1103/PhysRevLett.98.146401">Generalized Neural-Network Representation of High-Dimensional Potential-Energy Surfaces.</a> <em>Physical Review Letters</em>, 98, 146401.</li>
<li id="ref-2">Batzner, S., et al. (2022). <a href="https://doi.org/10.1038/s41467-022-29939-5">E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials.</a> <em>Nature Communications</em>, 13, 2453.</li>
<li id="ref-3">Podryabinkin, E. V., &amp; Shapeev, A. V. (2017). <a href="https://doi.org/10.1016/j.commatsci.2017.08.031">Active learning of linearly parametrized interatomic potentials.</a> <em>Computational Materials Science</em>, 140, 171–180.</li>
<li id="ref-4">Pacini, A., Ferrario, M., Loehle, S., &amp; Righi, M. C. (2024). <a href="https://doi.org/10.1140/epjp/s13360-024-05348-z">Advancing tribological simulations of carbon-based lubricants with active learning and machine learning molecular dynamics.</a> <em>The European Physical Journal Plus</em>, 139, 549.</li>
<li id="ref-5">Ahmed, S., Eder, S. J., Dörr, N., &amp; Martini, A. (2024). <a href="https://doi.org/10.1021/acs.jpca.4c00964">Tracking Thermo-Oxidation Reaction Products and Pathways of Modified Lignin Structures from Reactive Molecular Dynamics Simulations.</a> <em>The Journal of Physical Chemistry A</em>, 128(27), 5398–5407.</li>
</ol>]]></content><author><name>Shihab Ahmed</name></author><category term="Short reviews" /><summary type="html"><![CDATA[How machine-learning interatomic potentials bring detailed chemistry into tribology simulations—and what makes their predictions trustworthy.]]></summary></entry><entry><title type="html">Can generative AI help design better lubricant molecules?</title><link href="https://shihabahmed.com/perspectives/generative-ai-molecules-tribology/" rel="alternate" type="text/html" title="Can generative AI help design better lubricant molecules?" /><published>2026-09-19T08:00:00-07:00</published><updated>2026-09-19T08:00:00-07:00</updated><id>https://shihabahmed.com/perspectives/generative-ai-molecules-tribology</id><content type="html" xml:base="https://shihabahmed.com/perspectives/generative-ai-molecules-tribology/"><![CDATA[<p>A lubricant has a demanding job: keep surfaces moving while its molecules face heat, oxygen, and mechanical stress. Choosing an additive therefore means asking several questions at once. Can it slow oxidation? Will it mix with the base oil? What happens to it during use?</p>

<p>Generative artificial intelligence offers a way to propose molecular candidates for that search. The useful outcome is a shortlist worth investigating, with enough evidence to explain why each molecule belongs on it.</p>

<blockquote>
  <p><strong>The central idea:</strong> use AI to suggest structures, then use chemistry, simulation, and experiments to decide whether those structures are useful.</p>
</blockquote>

<details class="essay-toc" open="">
<summary>In this review</summary>
<ol>
<li><a href="#what-does-a-molecular-generator-learn">What does a molecular generator learn?</a></li>
<li><a href="#three-approaches-in-plain-language">Three approaches in plain language</a></li>
<li><a href="#where-tribology-enters-the-picture">Where tribology enters the picture</a></li>
<li><a href="#a-practical-antioxidant-design-loop">A practical antioxidant design loop</a></li>
<li><a href="#what-would-count-as-progress">What would count as progress?</a></li>
<li><a href="#references">References</a></li>
</ol>
</details>

<h2 id="what-does-a-molecular-generator-learn">What does a molecular generator learn?</h2>

<p>A molecule can be represented as a text string, a graph of atoms and bonds, or a set of positions in three-dimensional space. A generative model learns patterns in these representations and uses them to propose new structures. A separate property model or scoring function can guide that search toward a desired behavior. These are distinct tasks: proposing a molecule does not establish its performance.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a> <a href="#ref-4" aria-label="Reference 4">[4]</a></sup></p>

<p>An early demonstration by Gómez-Bombarelli and colleagues encoded molecules into a continuous numerical space. Moving through that space made it possible to explore structures and optimize predicted properties. The demonstration concerned molecular design broadly; it did not establish a lubricant formulation method.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup></p>

<h2 id="three-approaches-in-plain-language">Three approaches in plain language</h2>

<p><strong>Variational autoencoders (VAEs)</strong> compress a molecular representation into a smaller set of numbers and decode those numbers back into a structure. They provide a navigable space for exploring related candidates, although decoding and chemical validity need attention.<sup><a href="#ref-1" aria-label="Reference 1">[1]</a></sup></p>

<p><strong>Generative adversarial networks (GANs)</strong> train a generator alongside a discriminator that learns to distinguish generated examples from training examples. MolGAN applied this idea to small molecular graphs and combined it with a property-directed objective. One reported limitation was mode collapse: repeatedly producing a narrow selection of structures.<sup><a href="#ref-2" aria-label="Reference 2">[2]</a></sup></p>

<p><strong>Diffusion models</strong> learn to recover molecular structure from noise. Hoogeboom and colleagues demonstrated a model that jointly generates atom types and three-dimensional coordinates while respecting geometric symmetries. In practical terms, changing the orientation of a molecule should not arbitrarily change how the model treats its chemistry.<sup><a href="#ref-3" aria-label="Reference 3">[3]</a></sup></p>

<p>These approaches offer different ways to search. Their value for a particular lubricant problem depends on the available data, the molecular representation, and the quality of the objective used to rank candidates.</p>

<h2 id="where-tribology-enters-the-picture">Where tribology enters the picture</h2>

<p>Tribology studies friction, wear, and lubrication. My connection to it is antioxidant chemistry: understanding how molecular structure affects the reactions associated with lubricant degradation. Our reactive molecular dynamics work examines substituent-dependent phenoxyl radical stability, while our earlier work tracks thermo-oxidation products and pathways in modified lignin structures.<sup><a href="#ref-5" aria-label="Reference 5">[5]</a> <a href="#ref-6" aria-label="Reference 6">[6]</a></sup></p>

<p>This suggests a specific design question: <strong>could a generator propose useful variations of an antioxidant structure, guided by reaction-level evidence?</strong> That is a research direction, rather than a result established by the generative-model papers cited here.</p>

<p>A candidate’s radical chemistry would be one part of the decision. I would also ask whether it is compatible with the intended base oil, whether it remains useful at the operating temperature, and whether it can be made and tested. An oxidation-related score alone would not justify a claim about lower friction or wear. Those outcomes require their own measurements.</p>

<h2 id="a-practical-antioxidant-design-loop">A practical antioxidant design loop</h2>

<p>For this problem, I would organize the work around the following loop:</p>

<ol>
  <li><strong>Define the use case.</strong> Specify the lubricant environment, the intended additive function, and the performance measures. Keep antioxidant activity distinct from friction reduction.</li>
  <li><strong>Curate comparable data.</strong> Record structures alongside test conditions and units. Separate measured properties from simulation outputs and model predictions so the generator’s scoring model has a clear target.</li>
  <li><strong>Generate candidates with constraints.</strong> Start with a chemically meaningful family, such as variations around an antioxidant scaffold. Remove duplicates and invalid structures before using expensive calculations.</li>
  <li><strong>Check the chemistry.</strong> Examine shortlisted molecules with appropriate quantum calculations and validated reactive simulations. Include likely reaction products when deciding what a promising structure actually means.</li>
  <li><strong>Test the formulation and learn.</strong> Evaluate selected compounds in the relevant lubricant and operating conditions. Feed those results back into the next round of candidate selection.</li>
</ol>

<figure class="review-workflow"><p>Define → Generate → Screen → Simulate → Test → Refine</p><figcaption>A proposed workflow for lubricant-additive research; each stage supplies evidence for the next.</figcaption></figure>

<p>The reaction-tracking approach in our lignin study is relevant to the fourth step: it links evolving species and bond changes to likely pathways. Applying that kind of analysis to new additive candidates could help explain <em>why</em> one candidate deserves further study.<sup><a href="#ref-6" aria-label="Reference 6">[6]</a></sup></p>

<h2 id="what-would-count-as-progress">What would count as progress?</h2>

<p>Molecular-generation benchmarks such as GuacaMol assess novelty, distribution learning, and goal-directed optimization. They also make comparison with simpler methods possible. These are useful checks on a generator, but they do not establish performance in a lubricant.<sup><a href="#ref-4" aria-label="Reference 4">[4]</a></sup></p>

<p>For a tribology study, I would compare the proposed method with screening an existing compound library or systematically modifying a known scaffold. I would report the number of valid and distinct candidates, the uncertainty in predicted properties, and how many candidates survive chemical and experimental evaluation. Keeping related molecular families out of training during evaluation would provide a more demanding test of generalization.</p>

<p>The most interesting success would be a molecule that performs usefully under specified conditions, together with an explanation of its chemistry. Generative AI can expand the set of ideas we examine; mechanistic understanding makes those ideas worth pursuing.</p>

<h2 id="references">References</h2>

<ol class="references">
<li id="ref-1">Gómez-Bombarelli, R., et al. (2018). <a href="https://doi.org/10.1021/acscentsci.7b00572">Automatic Chemical Design Using a Data-Driven Continuous Representation of Molecules.</a> <em>ACS Central Science</em>, 4(2), 268–276.</li>
<li id="ref-2">De Cao, N., &amp; Kipf, T. (2018). <a href="https://arxiv.org/abs/1805.11973">MolGAN: An implicit generative model for small molecular graphs.</a> ICML Workshop on Theoretical Foundations and Applications of Deep Generative Models; arXiv:1805.11973.</li>
<li id="ref-3">Hoogeboom, E., Satorras, V. G., Vignac, C., &amp; Welling, M. (2022). <a href="https://proceedings.mlr.press/v162/hoogeboom22a.html">Equivariant Diffusion for Molecule Generation in 3D.</a> <em>Proceedings of the 39th International Conference on Machine Learning</em>, PMLR 162, 8867–8887.</li>
<li id="ref-4">Brown, N., Fiscato, M., Segler, M. H. S., &amp; Vaucher, A. C. (2019). <a href="https://doi.org/10.1021/acs.jcim.8b00839">GuacaMol: Benchmarking Models for de Novo Molecular Design.</a> <em>Journal of Chemical Information and Modeling</em>, 59(3), 1096–1108.</li>
<li id="ref-5">Ahmed, S., Eder, S. J., Iqbal, M. M., Dörr, N., &amp; Martini, A. (2026). <a href="https://doi.org/10.1021/acsomega.6c00592">Reactive MD Screening of Antioxidants for Substituent-Dependent Phenoxyl Radical Stability.</a> <em>ACS Omega</em>, 11(10), 16886–16894.</li>
<li id="ref-6">Ahmed, S., Eder, S. J., Dörr, N., &amp; Martini, A. (2024). <a href="https://doi.org/10.1021/acs.jpca.4c00964">Tracking Thermo-Oxidation Reaction Products and Pathways of Modified Lignin Structures from Reactive Molecular Dynamics Simulations.</a> <em>The Journal of Physical Chemistry A</em>, 128(27), 5398–5407.</li>
</ol>]]></content><author><name>Shihab Ahmed</name></author><category term="Short reviews" /><summary type="html"><![CDATA[From molecular generators to antioxidant discovery: what the methods offer, where tribology fits, and what still needs validation.]]></summary></entry><entry><title type="html">Literature search with ChatGPT Work and Claude Cowork</title><link href="https://shihabahmed.com/perspectives/literature-search-with-chatgpt-work-claude-cowork/" rel="alternate" type="text/html" title="Literature search with ChatGPT Work and Claude Cowork" /><published>2026-09-11T08:00:00-07:00</published><updated>2026-09-11T08:00:00-07:00</updated><id>https://shihabahmed.com/perspectives/literature-search-with-chatgpt-work-claude-cowork</id><content type="html" xml:base="https://shihabahmed.com/perspectives/literature-search-with-chatgpt-work-claude-cowork/"><![CDATA[<p>This is a practical guide to using <strong>ChatGPT Work</strong> or <strong>Claude Cowork</strong> to find and review literature, followed by a worked example: a first-pass review of what controls the friction of molybdenum disulfide (MoS₂).</p>

<blockquote>
  <p><strong>The central idea:</strong> the real difference isn’t power, it’s memory. A chat window forgets; a folder accumulates. In Work or Cowork, your review becomes files that persist, so each run builds on the last.</p>
</blockquote>

<details class="essay-toc" open="">
<summary>In this post</summary>
<ol>
<li><a href="#what-you-need">What you need</a></li>
<li><a href="#what-work-and-cowork-are">What Work and Cowork are</a></li>
<li><a href="#download-the-desktop-app">Download the desktop app</a></li>
<li><a href="#the-workflow">The workflow</a></li>
<li><a href="#a-worked-example">A worked example</a></li>
</ol>
</details>

<h2 id="what-you-need">What you need</h2>

<ul>
  <li>A <strong>ChatGPT</strong> Plus or <strong>Claude</strong> Pro subscription.</li>
  <li>The desktop app, not just the browser tab. Work and Cowork need access to a real folder on your machine.</li>
  <li>A reference manager for downloading papers: <strong>Paperpile</strong> (which I recommend), Zotero, or whatever you already use.</li>
  <li>Your institution’s network or VPN, for full-text access to papers. For me, that is the UC Merced network.</li>
</ul>

<h2 id="what-work-and-cowork-are">What Work and Cowork are</h2>

<p>There are three ways to use ChatGPT or Claude, in increasing order of the access you give them:</p>

<table class="wrap">
  <thead>
    <tr>
      <th>Mode</th>
      <th>What it does</th>
      <th>Use for</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Chat</td>
      <td>A browser tab. One question, one answer. You copy results out by hand.</td>
      <td>Quick lookups, explaining a method</td>
    </tr>
    <tr>
      <td><strong>Work / Cowork</strong></td>
      <td>Runs inside a project folder. Reads and writes files. Takes many steps on its own.</td>
      <td><strong>Reading and organizing papers</strong></td>
    </tr>
    <tr>
      <td>CLI (Codex / Claude Code)</td>
      <td>Runs in the terminal. Runs code, plots, and jobs, with full machine and cluster access.</td>
      <td>Analysis pipelines, HPC</td>
    </tr>
  </tbody>
</table>

<p>The command-line tools are the most capable of the three. Work and Cowork are the right starting point: no setup, no terminal, and they already do the thing that matters for literature work.</p>

<p><strong>The real difference isn’t power; it’s memory.</strong> A chat window forgets. A folder accumulates. In Work or Cowork your review becomes actual files that persist between sessions: you correct them, add to them, and come back next week to a review that is already half built. That is the reason to use this mode instead of a chat tab.</p>

<h2 id="download-the-desktop-app">Download the desktop app</h2>

<p>For Work or Cowork, download the desktop app. When you give it permission, the desktop app can work with local files and folders on your computer, which is especially useful for keeping papers, notes, and project files together during a literature review.</p>

<ul>
  <li><strong>ChatGPT Desktop:</strong> <a href="https://chatgpt.com/download/">chatgpt.com/download</a></li>
  <li><strong>Claude Desktop:</strong> <a href="https://claude.com/download">claude.com/download</a></li>
</ul>

<figure class="essay-figure pair">
<div class="pair-row">
<img src="/assets/blog/lit-chatgpt-desktop.png" alt="ChatGPT desktop app with Chat and Work tabs at the top of the window." width="1361" height="957" loading="lazy" />
<img src="/assets/blog/lit-claude-desktop.png" alt="Claude desktop app with Chat and Cowork options in the message box." width="1207" height="957" loading="lazy" />
</div>
<figcaption>The ChatGPT (left) and Claude (right) desktop apps. Work and Cowork are selected next to Chat.</figcaption>
</figure>

<h2 id="the-workflow">The workflow</h2>

<figure class="essay-figure">
<img src="/assets/blog/lit-workflow.jpg" alt="Eight illustrated steps: create a folder, add project files, open ChatGPT or Claude with the folder, choose a model, write a prompt, let the AI search and read, verify the results, and iterate." width="1774" height="887" loading="lazy" />
<figcaption>The eight steps of the workflow.</figcaption>
</figure>

<ol>
  <li><strong>Create a project folder.</strong> Use one dedicated folder for each new literature search. It can be empty at first.</li>
  <li><strong>Add any useful project context.</strong> If you already have reference papers, notes, reports, slides, or other project information, put them in the folder. Starting from scratch is completely fine: provide the necessary context in your prompt, and the folder will build up over time.</li>
  <li><strong>Open ChatGPT Work or Claude Cowork and add the project folder.</strong> Give it access to the folder so it can read the existing files and save new outputs there as you work.</li>
  <li><strong>Choose the right model.</strong> For ChatGPT, use <strong>GPT 6 Sol (Extra High or above)</strong> or <strong>Astra (Medium or above)</strong>. For Claude, use <strong>Opus 5.5 (Max)</strong>. These models generally reason better, hallucinate less, and can work with large amounts of context. They can also use up your plan limits much faster.</li>
  <li><strong>Write a detailed prompt.</strong> Clearly describe your research question, background, scope, keywords, and inclusion and exclusion criteria. Also say what you want it to produce, such as a table of relevant papers, key findings, research gaps, citations, or a <code class="language-plaintext highlighter-rouge">.bib</code> file. The clearer the prompt, the better the search. Asking the AI to download papers may not work reliably, because many publisher websites block AI access.</li>
  <li><strong>Let it run.</strong> It searches, reads, and writes the files you asked for without you approving each step.</li>
  <li><strong>Verify.</strong> Open two or three of the cited papers and check that the claims are really there.</li>
  <li><strong>Iterate and narrow the scope.</strong> The first run may return many potentially relevant papers. Review the results, refine your question, keywords, or scope, and run it again. By the second run, Work or Cowork has more project context from the papers, notes, and outputs already collected, which helps it produce a more focused result. Download the paper PDFs into the project folder for better context on the second run.</li>
</ol>

<blockquote>
  <p><strong>Usage limits:</strong> ChatGPT Work and Codex (the ChatGPT CLI) count toward your 5-hour and weekly usage limits, while regular chat does not. Claude Chat, Cowork, and Claude Code all share the same usage limit. Model names and limits are as of September 2026.</p>
</blockquote>

<h2 id="a-worked-example">A worked example</h2>

<h3 id="the-question">The question</h3>

<blockquote>
  <p>What controls MoS₂’s friction performance?</p>
</blockquote>

<h3 id="the-folder-and-the-model">The folder and the model</h3>

<p>One folder, <code class="language-plaintext highlighter-rouge">MoS2_lit</code>, empty or with existing files, opened in ChatGPT Work with access granted. First, choose <strong>Work</strong>:</p>

<figure class="essay-figure">
<img src="/assets/blog/lit-chatgpt-work.png" alt="ChatGPT Work tab asking what we should work on, with a Choose project button under the message box and the 6 Astra model selected." width="817" height="712" loading="lazy" />
</figure>

<p>Then choose or create a project with the folder:</p>

<figure class="essay-figure">
<img src="/assets/blog/lit-create-project.png" alt="Create project dialog with the project name MoS2_lit and the MoS2_lit folder added as a source folder." width="852" height="723" loading="lazy" />
</figure>

<p><strong>Select the model.</strong> As of September 2026, Astra is excellent at finding papers, but it can burn through your entire usage limit in about 20 minutes. Be careful with it. The run can stop partway when you hit the limit, leaving you to wait up to 5 hours before you can say “please continue.” For a safer run, use Sol.</p>

<h3 id="the-prompt">The prompt</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>I am doing a literature review for my research on MoS2 as a solid
lubricant. I want to know what actually controls its friction performance:
which factors govern how well it reduces friction, how strong the evidence
is for each, and where the literature disagrees.

In scope: papers from the last 20 years, both computational and
experimental, reporting friction or wear data for MoS2 in any form
(coating, powder, oil additive), and mechanism studies (AFM, MD,
spectroscopy).

Out of scope: anything outside tribology, including MoS2 for catalysis,
electronics, batteries, photodetectors.

Group the papers by which factor they show controls friction (e.g. number
of layers, environment/humidity, contact alignment, load, particle size).

For each paper give one table row:
Citation (with DOI) | Form of MoS2 | Method Type (Simulation/Experiment/Both) | Method | Factor studied | Key finding | Full text or abstract only

Flag any place where two papers disagree.

Verify every DOI/citation and never invent missing information.

Put everything in one file, review.md, starting with a short summary:
which factors have strong evidence, which are thin, and what is still
disputed. Also create a bibtex (ref.bib) file.

Please also report basic statistics, including the total number of
relevant papers found, how many were reviewed using full-text access, and
how many were assessed from the abstract only. Always read the full paper
when it is accessible; only fall back to the abstract when full text is
unavailable. Save your findings incrementally in the project folder as you
work, rather than waiting until the end, so that if the run is interrupted
by a usage limit or other cutoff, the completed work is preserved and can
be continued later without starting over. At the end, consolidate and
update the final review.md and ref.bib files so they follow the requested
structure and contain the complete, cleaned, verified results.
</code></pre></div></div>

<h3 id="what-comes-back">What comes back</h3>

<p>The model worked continuously for about <strong>25 minutes</strong>; higher-capability models use more compute and take longer. It found <strong>60 papers</strong> in total, read the full text of <strong>34</strong>, and used only the abstracts of the remaining <strong>26</strong>.</p>

<p>It produced two files, <code class="language-plaintext highlighter-rouge">review.md</code> and <code class="language-plaintext highlighter-rouge">ref.bib</code>. Here is a glimpse of the table in <code class="language-plaintext highlighter-rouge">review.md</code>. D1 and D2 refer to entries in the review’s list of disagreements.</p>

<div class="table-scroll">

  <table class="wrap">
    <thead>
      <tr>
        <th>Citation (with DOI)</th>
        <th>Form of MoS₂</th>
        <th>Method type</th>
        <th>Method</th>
        <th>Factor studied</th>
        <th>Key finding</th>
        <th>Full text or abstract only</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><strong>P01 — Khare &amp; Burris (2013).</strong> The Effects of Environmental Water and Oxygen on the Temperature-Dependent Friction of Sputtered Molybdenum Disulfide. <em>Tribology Letters</em> 52, 485–493. DOI: <a href="https://doi.org/10.1007/s11249-013-0233-8">10.1007/s11249-013-0233-8</a></td>
        <td>Sputtered MoS₂ coating</td>
        <td>Experiment</td>
        <td>Sliding-friction tests with independently varied water, oxygen, and temperature</td>
        <td>Humidity × oxygen × temperature; preparation and sliding history</td>
        <td>Friction had a temperature minimum at approximately 100–250 °C depending on preparation/history. Below the transition, water dominated; at higher temperature oxygen-related degradation mattered. Direct environmental controls support separate mechanisms, rather than a universal temperature threshold. D1.</td>
        <td><strong>Full text</strong> (<a href="https://research.me.udel.edu/~dlburris/papers/JA34.pdf">source</a>)</td>
      </tr>
      <tr>
        <td><strong>P02 — Khare &amp; Burris (2014).</strong> Surface and Subsurface Contributions of Oxidation and Moisture to Room Temperature Friction of Molybdenum Disulfide. <em>Tribology Letters</em> 53, 329–336. DOI: <a href="https://doi.org/10.1007/s11249-013-0273-0">10.1007/s11249-013-0273-0</a></td>
        <td>MoS₂ coating</td>
        <td>Experiment</td>
        <td>Parametric water/oxygen exposure and friction measurements; surface/subsurface environmental-response analysis</td>
        <td>Surface oxidation versus physically bound water; water diffusion</td>
        <td>Separates environmental exposure, oxidation, and water-storage effects to explain friction transients and hysteresis. Supports considering surface and subsurface water rather than attributing every humidity response to oxidation. Detailed partitioning cannot be independently assessed from the abstract. D1.</td>
        <td><strong>Full text</strong> (<a href="https://link.springer.com/article/10.1007/s11249-013-0273-0">source</a>)</td>
      </tr>
      <tr>
        <td><strong>P03 — Levita &amp; Righi (2017).</strong> Effects of Water Intercalation and Tribochemistry on MoS₂ Lubricity: An Ab Initio Molecular Dynamics Investigation. <em>ChemPhysChem</em> 18, 1475–1480. DOI: <a href="https://doi.org/10.1002/cphc.201601143">10.1002/cphc.201601143</a></td>
        <td>Ideal and defective MoS₂ layers with water</td>
        <td>Simulation</td>
        <td>Ab initio molecular dynamics with intercalated water, load, and exposed edges</td>
        <td>Water intercalation; defects; edge termination</td>
        <td>Water impeded layer motion without requiring oxidation. With load and open edges, water left the interlayer gap and adsorbed at edges, intact or dissociated. Mechanism evidence is atomistic and depends on the modeled confinement and boundary conditions. D1, D2.</td>
        <td><strong>Full text</strong> (<a href="https://iris.unimore.it/bitstream/11380/1152962/2/cphc.201601143.pdf">source</a>)</td>
      </tr>
    </tbody>
  </table>

</div>

<h3 id="download-all-the-papers">Download all the papers</h3>

<p>Downloading all the papers into the project folder gives the model immediate context when you iterate or ask more questions. Paperpile can download them in bulk:</p>

<ul>
  <li>In Paperpile, click <strong>Add</strong> at the top left and upload the <code class="language-plaintext highlighter-rouge">ref.bib</code> file.</li>
  <li>Once the articles are added, select them all and click the three dots at the top right. Click <strong>Auto update</strong> first to fix broken BibTeX entries, then <strong>Find PDFs online</strong>. The shortcut is to select all, press <code class="language-plaintext highlighter-rouge">U</code>, then <code class="language-plaintext highlighter-rouge">D</code>.</li>
  <li>Some papers need manual intervention because they are blocked by a captcha. Click on each and follow the process, which takes a few clicks. You must be on your institution’s network or VPN.</li>
  <li>When everything has downloaded, click the three dots again, choose <strong>Download files as ZIP</strong>, and put the files into the project folder.</li>
</ul>

<figure class="essay-figure pair">
<div class="pair-row">
<img src="/assets/blog/lit-paperpile-add.png" alt="Paperpile Add menu with options to upload files, create new, search online, paste, import from other programs, and create a shared library." width="596" height="541" loading="lazy" />
<img src="/assets/blog/lit-paperpile-more.png" alt="Paperpile More menu with Auto update, Find PDFs online, Make a copy, Export, and Download files as ZIP." width="688" height="379" loading="lazy" />
</div>
<figcaption>Paperpile's Add menu (left) for uploading <code>ref.bib</code>, and the More menu (right) for updating entries, finding PDFs, and downloading them as a ZIP file.</figcaption>
</figure>

<h3 id="the-second-run">The second run</h3>

<p>Follow up with whatever you want, for example:</p>

<ul>
  <li><em>“What’s missing from this list that you’d expect to find?”</em></li>
  <li><em>“Re-group these by method instead of by factor.”</em></li>
  <li><em>“Please find more similar papers.”</em></li>
</ul>

<p>Then tighten whichever scope line let irrelevant papers in, and run it again.</p>]]></content><author><name>Shihab Ahmed</name></author><category term="Guides" /><summary type="html"><![CDATA[How to use ChatGPT Work or Claude Cowork to find and review papers, with a worked example on what controls the friction of MoS₂.]]></summary></entry></feed>