Search

Search papers and lessons

Many-Body Expansion

Level 4 · 12 min read

The many-body expansion writes the energy of a group of atoms as a sum of one-body, two-body, three-body and higher terms, each holding only what the smaller groups do not already explain.

On this page

  • Colour = topic mix
  • Linear algebra
  • Classical mechanics
  • Calculus
  • Quantum physics
  • Discrete math
  • Probability
  • ReadReady to readNot yet

TL;DR

A group of atoms has one energy, and that energy is hard to compute all at once because every atom can interact with every other. The many-body expansion splits the energy into pieces: a term for each single atom, a term for each pair that is left over after the single atoms are removed, a term for each triple left over after the pairs, and so on. Adding the pieces back gives the exact energy, and cutting the list short gives a fast approximation.

Builds on: Potential Energy Surface, Many-Body Problem · Leads to: neural network potentials, MACE and other models that count interactions by body order

Where it's used

Liquid water and ice. A molecular dynamics simulation of liquid water needs the energy of thousands of molecules at every step. Pair interactions carry most of the energy, so a model that keeps the one-body and two-body terms captures the main hydrogen bonding and most of the structure. The three-body term is generally small compared with the two-body term but not zero, and it affects the details of how water packs and bonds. Simulations that aim for close agreement with quantum chemistry keep it.

Large molecules with accurate methods. Routine methods such as density functional theory are cheap but approximate, while coupled cluster methods, which start from a Hartree-Fock reference, are accurate and expensive. The cost of a high-accuracy coupled cluster calculation grows steeply with the number of electrons. Fragmentation methods split a large molecule into pieces, compute the pieces and their pairs, and assemble the energy with the expansion. That turns one expensive calculation into many cheap ones.

Machine-learning potentials. A Neural Network Potential learns the energy of atoms from reference calculations. Many early models built each atom's energy from its neighbours within a cutoff, so the body orders they capture depend on how that description is built. Newer models, such as MACE and NequIP, build on message passing and build messages that involve three, four or more atoms at once, so that the model can learn the higher terms directly instead of relying on a fixed list.

How it works

Take three atoms, A, B and C. We need the energy of the whole group, which we will call E(ABC)E(\mathrm{ABC}). We are allowed to compute the energy of smaller groups: each atom alone, each pair, and the triple. The numbers below are invented for teaching and do not describe a real molecule.

The expansion works in order. First the single atoms, then the pairs with the single atoms removed, then the triple with everything smaller removed.

  1. Compute the single atoms. Each atom alone has energy 00, so the one-body terms are E(A)=E(B)=E(C)=0E(\mathrm{A}) = E(\mathrm{B}) = E(\mathrm{C}) = 0. Check: an atom alone has no partner, so nothing is left over.
  2. Compute the pairs. Suppose E(AB)=−2E(\mathrm{AB}) = -2, E(AC)=−2E(\mathrm{AC}) = -2 and E(BC)=−2E(\mathrm{BC}) = -2. The two-body term for the pair AB is what the pair has beyond its two atoms: −2−0−0=−2-2 - 0 - 0 = -2. Check: the pair term is the interaction, not the pair's whole energy.
  3. Add the pair terms. −2+(−2)+(−2)=−6-2 + (-2) + (-2) = -6. Check: there are three pairs, so there are three terms.
  4. Compute the triple. The whole group has E(ABC)=−5.5E(\mathrm{ABC}) = -5.5. The three-body term is what is still unexplained after the one-body and two-body terms are removed: −5.5−0−(−6)=+0.5-5.5 - 0 - (-6) = +0.5. Check: the whole group is less negative than the sum of its smaller parts, −5.5>−6-5.5 \gt -6, so the leftover is positive, a repulsion.
  5. Add the pieces back. 0+(−6)+0.5=−5.50 + (-6) + 0.5 = -5.5. Check: this equals E(ABC)E(\mathrm{ABC}), so the expansion is exact when all terms are kept.

A picture of the pieces helps:

flowchart TD
  T["Total energy of the group"] --> O["One-body terms, one per atom"]
  T --> W["Two-body terms, one per pair"]
  T --> R["Three-body terms, one per triple"]
  T --> H["Higher terms, four atoms and more"]

For a group of NN atoms there are NN one-body terms, (N2)\binom{N}{2} pairs and (N3)\binom{N}{3} triples. Those counts are what make the expansion useful in practice: the first two levels are cheap to store, and truncating after them keeps the number of calculations small.

The math

Write E(S)E(S) for the energy of a group of atoms SS, taken at fixed nuclear positions as in the Born-Oppenheimer approximation, and let ii, jj, kk name individual atoms. The expansion defines each term from the smaller groups.

Definition: Many-body expansion

The one-body term is E(1)(i)=E(i)E^{(1)}(i) = E(i). The two-body term for a pair is

E(2)(i,j)=E(ij)−E(1)(i)−E(1)(j),E^{(2)}(i,j) = E(ij) - E^{(1)}(i) - E^{(1)}(j),

and the three-body term for a triple is

E(3)(i,j,k)=E(ijk)−E(2)(i,j)−E(2)(i,k)−E(2)(j,k)−E(1)(i)−E(1)(j)−E(1)(k).E^{(3)}(i,j,k) = E(ijk) - E^{(2)}(i,j) - E^{(2)}(i,k) - E^{(2)}(j,k) - E^{(1)}(i) - E^{(1)}(j) - E^{(1)}(k).

Terms of higher order are defined the same way, each as what the smaller terms leave over. The energy of the whole group is then the sum of all of them:

E(1…N)=∑iE(1)(i)+∑i<jE(2)(i,j)+∑i<j<kE(3)(i,j,k)+⋯E(1 \ldots N) = \sum_{i} E^{(1)}(i) + \sum_{i \lt j} E^{(2)}(i,j) + \sum_{i \lt j \lt k} E^{(3)}(i,j,k) + \cdots

The symbol ∑i<j\sum_{i \lt j} means the sum over all pairs with ii before jj in the list, so each pair is counted once.

Here E(ij)E(ij) is the energy of the pair with the same atoms in the same arrangement, and the other symbols are defined the same way. Truncation means keeping the sum only up to some order mm. The result is then an approximation whose error is the sum of all the dropped terms.

Step 1 in symbols

The one-body terms are E(1)(A)=E(1)(B)=E(1)(C)=0E^{(1)}(\mathrm{A}) = E^{(1)}(\mathrm{B}) = E^{(1)}(\mathrm{C}) = 0. These are the energies of isolated atoms, which are zero in this example.

Step 2 in symbols

For the pair AB, the definition gives E(2)(A,B)=E(AB)−E(1)(A)−E(1)(B)=−2−0−0=−2E^{(2)}(\mathrm{A},\mathrm{B}) = E(\mathrm{AB}) - E^{(1)}(\mathrm{A}) - E^{(1)}(\mathrm{B}) = -2 - 0 - 0 = -2. The same calculation gives −2-2 for AC and BC.

Step 3 in symbols

The sum of the three pair terms is ∑i<jE(2)(i,j)=−2−2−2=−6\sum_{i \lt j} E^{(2)}(i,j) = -2 - 2 - 2 = -6.

Step 4 in symbols

The three-body term is E(3)(A,B,C)=E(ABC)−(−6)−0=−5.5+6=0.5E^{(3)}(\mathrm{A},\mathrm{B},\mathrm{C}) = E(\mathrm{ABC}) - (-6) - 0 = -5.5 + 6 = 0.5, using the definition with the pair terms and the one-body terms, which are zero.

Step 5 in symbols

The full sum is 0+(−6)+0.5=−5.5=E(ABC)0 + (-6) + 0.5 = -5.5 = E(\mathrm{ABC}). Since there are only three atoms, there are no four-body terms, so the expansion is exact.

Worked examples

Example
1. Two atoms: the expansion is just the pair term (hand-computable)

Suppose two atoms, X and Y, have single-atom energies E(X)=0E(\mathrm{X}) = 0 and E(Y)=0E(\mathrm{Y}) = 0, and the pair has E(XY)=−3E(\mathrm{XY}) = -3.

  1. The one-body terms are zero, so they contribute nothing.
  2. The two-body term is E(2)(X,Y)=−3−0−0=−3E^{(2)}(\mathrm{X},\mathrm{Y}) = -3 - 0 - 0 = -3.
  3. There is one pair and no triple, so the total is −3-3.
  4. The total equals the energy of the pair, E(XY)=−3E(\mathrm{XY}) = -3, as it must.

Interpretation: with two atoms the expansion has nothing to correct, because the pair term is the whole energy. It only becomes useful with three or more atoms, when pairs no longer explain everything.

Example
2. Three atoms with unequal pairs (the standard case)

Suppose the single atoms have energy 00, the three pairs have E(AB)=−2E(\mathrm{AB}) = -2, E(BC)=−1.5E(\mathrm{BC}) = -1.5 and E(AC)=−1E(\mathrm{AC}) = -1, and the whole group has E(ABC)=−4.2E(\mathrm{ABC}) = -4.2.

  1. Pair terms: AB gives −2-2, BC gives −1.5-1.5, AC gives −1-1. Their sum is −2−1.5−1=−4.5-2 - 1.5 - 1 = -4.5.
  2. Three-body term: E(3)=−4.2−(−4.5)−0=+0.3E^{(3)} = -4.2 - (-4.5) - 0 = +0.3.
  3. Total with all terms: 0+(−4.5)+0.3=−4.20 + (-4.5) + 0.3 = -4.2, which matches E(ABC)E(\mathrm{ABC}).
  4. Truncated at two bodies, the total would be −4.5-4.5, which is too low by 0.30.3.

Interpretation: the pair terms explain most of the energy, and the three-body term corrects the result by a small amount. The correction is positive here, so the three atoms repel each other more than the pairs alone suggest.

Example
3. Four identical atoms in a cluster (realistic, from the water example)

Imagine a cluster of four identical molecules, each treated as one unit. Use invented numbers: the single-unit term is zero, each pair term is −1-1, each triple term is +0.2+0.2, and the four-body term, which is what remains after all lower terms are removed, is −0.1-0.1. The numbers are invented, and the question is only how the terms add up.

  1. Count the pair terms: (42)=6\binom{4}{2} = 6 pairs, each −1-1, so their sum is −6-6.
  2. Count the triple terms: (43)=4\binom{4}{3} = 4 triples, each +0.2+0.2, so their sum is +0.8+0.8.
  3. Add the four-body term: −0.1-0.1.
  4. Total with every term: 0−6+0.8−0.1=−5.30 - 6 + 0.8 - 0.1 = -5.3.
  5. Truncated after two bodies, the total is −6-6. The error is −6−(−5.3)=−0.7-6 - (-5.3) = -0.7, which is about 1313 percent of the total.
  6. Truncated after three bodies, the total is −6+0.8=−5.2-6 + 0.8 = -5.2, and the error is −5.2−(−5.3)=+0.1-5.2 - (-5.3) = +0.1.

Try it: what is the error when the expansion is cut after the three-body terms, expressed as the difference from the full total of −5.3-5.3? Answer: the cut gives −5.2-5.2, so the error is −5.2−(−5.3)=+0.1-5.2 - (-5.3) = +0.1. The four-body term is small here, but it is not zero, and in a dense system many such groups add up. This is why models of body order must decide how far to go.

Common mistakes and tradeoffs

It is tempting to think that the two-body term is the energy of the pair. In fact it is the pair's energy with the energies of its single atoms removed, so it measures only the interaction between the two. The one-body terms carry the energies of the atoms themselves.

It is tempting to think that a small three-body term can be ignored. In fact each triple may be small, but the number of triples grows as NN cubed, so in a dense liquid their total can matter. Whether to keep them is a question about the system, not a rule.

It is tempting to think that a truncated expansion is simply wrong. In fact a truncated expansion is an approximation with a known structure: its error is the sum of the dropped terms. That lets a model choose a level of accuracy and state what it cost.

When to use it: when the energy of a large group is too expensive to compute all at once, and the interactions between small groups are the main effect. When not to use it: when many atoms interact strongly at once, such as in a metal, where no short list of groups explains the energy. Alternatives are a fitted pair potential such as the Lennard-Jones potential, which keeps only two bodies, and a fully learned model that does not split the energy into named terms at all.

History

Quantum chemistry produced the first potential energy surfaces in the 1930s. In 1931 Eyring and Polanyi computed a surface for a simple reaction, which made the idea of a landscape concrete. For larger systems the surface has too many coordinates to compute point by point, so chemists looked for ways to build it from smaller pieces.

Physicists had already noticed the issue in simpler forms. In 1924 John Lennard-Jones proposed a potential for pairs of atoms, which is a two-body model. In 1943 Axilrod and Teller derived a three-body term for the dispersion attraction between atoms, showing that three atoms interact in a way that no sum of pair terms reproduces. That result is one reason the three-body correction is taken seriously.

Machine learning brought the idea back in the 2000s and 2010s. Models that learn energies from quantum data needed a way to build the energy from atoms, and the choice of which body orders to include became a design decision. Newer equivariant models, such as the message-passing networks described in MACE, include higher body orders by design.

Recap

  • The energy of a group of atoms is split into one-body, two-body, three-body and higher terms, each the part that smaller groups do not explain.
  • Keeping every term gives the exact energy. Cutting the list short gives an approximation whose error is the sum of the dropped terms.
  • Pair terms carry most of the energy in many systems. Three-body and higher terms are smaller, but their number grows quickly with the size of the group.
  • Machine-learning potentials choose how many body orders to include, which sets their cost and their accuracy.

Read next: Neural Network Potential for how a learned model supplies these terms, and NequIP for an equivariant model that builds higher body orders from its message-passing layers.

Check yourself

QuestionFor three atoms, the pair terms sum to −6-6 and the full energy is −5.5-5.5 with the one-body terms equal to zero. What is the three-body term, and what does its sign mean?Show answer

The three-body term is −5.5−(−6)=+0.5-5.5 - (-6) = +0.5. Its sign is positive, so the three atoms interact less favourably than the pairs alone predict; it acts as a repulsive correction.

QuestionA pair of atoms has a total energy of −3-3, and each atom alone has energy 11. What is the two-body term for the pair?Show answer

The two-body term is −3−1−1=−5-3 - 1 - 1 = -5. The one-body energies have to be removed from the pair energy before the interaction is left over.

QuestionWhy does a small three-body term still matter for a dense liquid even if it is tiny for any one triple?Show answer

The number of triples grows as NN cubed, so many small terms add up to a large total. A correction that is negligible for one triple can change the bulk energy when every triple in the liquid is counted.

QuestionScenario: a researcher wants a fast model of a molecular liquid and decides to keep only one-body and two-body terms. What is the main risk, and how would they check it?Show answer

The risk is that three-body and higher effects that are not zero get dropped, so the model can be systematically off in structure or energy. The researcher should compare the truncated model against full calculations on small groups, where the error is the sum of the dropped terms, before trusting it for the liquid.

Sources