564 Quantum chemistry: the score follows the per-element numbers

Quantum-chemical thermochemistry is usually presented as a first-principles prediction: electrons, orbitals and the Schrödinger equation are said to yield the enthalpy of formation of a molecule never seen before. We tested this in two directions. First, we computed \(\Delta H_f(298\,\mathrm {K})\) with 32 method/basis combinations and then removed the numbers each calculation receives per element before it starts. Second, we built models with no quantum mechanics at all and supplied them with the same kind of per-element numbers. Both sides were scored on the same molecules under the same protocol.

Data. The test set consists of 166 gas-phase molecules containing H, C, N, O and F with experimental reference values (a core set of 175, minus five entries whose SMILES did not match the formula of the species whose enthalpy was tabulated, one geometry failure and three structures with imaginary frequencies). The five mismatches (C#C, NO, C=C=N, CC=O, F) were identified by formula comparison alone, without reference to any computed value. The training pool for the no-quantum models contains 1039 species: 419 with experimental values, 595 handbook values, and 25 atoms, diatomics and radicals. Test molecules were always removed from training by InChIKey rather than by SMILES string; this caught one leak (carbon monoxide stored once as [C-]#[O+] and once as [C]=O). Experimental values agree with NIST CCCBDB [1197] for the 10 molecules present in both (median difference 0.43, maximum 2.4 kJ mol\(^{-1}\)).

Quantum calculations with their usual numbers. Geometries and harmonic frequencies were computed once; single-point energies were computed with eight methods and four basis sets in PySCF [1198]. \(\Delta H_f\) was assembled from atomization energies, atomic enthalpies of formation (ATcT [1199]), element enthalpy corrections and a zero-point scale factor (Table 1001).

Method Molecular-fit coefficients 6-31G* cc-pVDZ 6-311+G(d,p) cc-pVTZ Mean
HF none 1347.4 1393.6 1361.7 1332.0 1358.7
MP2 none 318.2 269.6 191.6 50.6 207.5
PBE none 149.7 84.6 97.3 129.8 115.4
BLYP none (atomic only) 56.5 113.5 84.4 68.9 80.8
B3LYP5 3 (G2 set) 34.7 99.5 74.8 43.6 63.2
B3LYP 3 (G2 set) 25.2 88.4 62.2 33.5 52.3
M06-2X \(\sim \)30 20.3 62.8 41.1 13.7 34.5
PBE0 none 33.3 41.5 22.0 20.0 29.2
Table 1001: MAE (kJ mol\(^{-1}\)) of \(\Delta H_f(298\,\mathrm {K})\) against experiment, 166 test molecules. “Molecular-fit coefficients” counts functional parameters fitted to molecular thermochemical data before the calculation: three for B3LYP [532], about 30 for M06-2X [533] (counted from its Table 2 after removing constraints; the authors do not state a total).

Every method without coefficients fitted to molecular data (HF, MP2, PBE, BLYP) has an MAE above 50 kJ mol\(^{-1}\) in every basis; the lowest is MP2/cc-pVTZ at 50.6. Over the 28 non-HF combinations the mean MAE is 83.3 and the median 62.5. Values below 50 occur where functional coefficients were fitted to molecular thermochemistry (B3LYP, M06-2X), or for PBE0, whose exchange fraction of \(1/4\) is set by a perturbation-theory argument [1200, 1201] but whose MAE ranges from 20.0 to 41.5 with the basis set. When training folds were allowed to select the best of the 32 combinations, M06-2X/cc-pVTZ was selected in every fold.

Given Example Effect
Basis-set exponents and coefficients per element, fitted to atoms see Table 1003
Functional definition under one name B3LYP with VWN-RPA vs VWN5 mean shift 12, max 23; MAE 25.2 \(\to \) 34.7 (6-31G*)
Choice among 28 non-HF combinations same molecule median spread 493
Thermochemistry constants atomic \(\Delta H_f\), element corrections, ZPE scale MAE moves 4–7; M06-2X 10.6–17.4
Total numbers taken before the calculation constants, basis, functional, thermochemistry \(\sim \)155 (B3LYP/6-31G*), \(\sim \)211 (PBE0/cc-pVTZ)
Table 1002: Givens of the quantum calculation (kJ mol\(^{-1}\)). The VWN ambiguity in B3LYP is documented in [1202, 1203].

Quantum calculations without per-element basis sets. The largest block of numbers in Table 1002 is the basis set, whose exponents and contraction coefficients are fitted separately for each element to atomic energies. We replaced it in two ways while keeping the geometries, frequencies, functionals and thermochemistry unchanged. ETS is an even-tempered set with the same exponents for every element (five \(s\), two \(p\), one \(d\); 16 functions per atom, comparable in size to cc-pVDZ). CDZ assigns the cc-pVDZ basis of carbon to every element.

Method Basis All Seen groups Unseen group Unseen, not in MGAE109
PBE0 cc-pVTZ (per element) 20.05 19.01 23.79 24.79
cc-pVDZ (per element) 41.49 45.86 25.84 25.14
ETS (same for all) 95.00 85.66 128.50 137.89
CDZ (carbon for all) 557.38 538.28 625.83 540.03
M06-2X cc-pVTZ (per element) 13.70 12.99 16.22 16.68
cc-pVDZ (per element) 62.81 70.29 36.01 37.15
ETS (same for all) 81.01 71.99 113.38 124.90
B3LYP cc-pVTZ (per element) 33.54 37.74 18.48 19.73
cc-pVDZ (per element) 88.35 103.40 34.41 35.19
ETS (same for all) 153.81 154.09 152.81 165.18
CDZ (carbon for all) 558.52 542.00 617.78 530.37
Table 1003: MAE (kJ mol\(^{-1}\)) with and without per-element basis sets; cross-validation cases as in Table 1004. M06-2X/CDZ converged for 21 of 166 molecules and is omitted. Removing the zero-point scale factor in addition changes every ETS and CDZ entry by at most 4.5 kJ mol\(^{-1}\).

At equal basis size (cc-pVDZ \(\to \) ETS) the MAE of PBE0 rises from 41.5 to 95.0, of M06-2X from 62.8 to 81.0 and of B3LYP from 88.4 to 153.8; on unseen-group molecules PBE0 rises from 25.8 to 128.5. The functional, the geometry and the thermochemistry are unchanged, so the difference is carried by the per-element exponents alone. The favourable PBE0 score, obtained without any molecular-fit coefficient, is therefore a property of the per-element basis rather than of the functional.

No-quantum models. The baseline model (M1) is a ridge regression on group, ring, bond and atom counts in the spirit of Benson group additivity [543], plus atom-level descriptors (hybridization, valence, \(\pi \) bonds, Pauling electronegativity differences, Gasteiger charges [1204]). The atom-unit model (H5) contains no fragment vocabulary: every feature is an element, an element pair, a distance or an angle on a UFF geometry [1205]. Pair energies are smooth curves in reduced distance \(r/(R_a+R_b)\) at three levels (shared, per element, per element pair), with angular terms, coordination-dependent bond curves in the manner of bond-order potentials [1206, 1207], and bond curves coupled to charge-equilibration charges [1208]. In the given version its per-element numbers are taken from tables (covalent radii, QEq \(\chi \) and \(J\)). In the tuned versions they are fitted on the training molecules only, by analogy with the per-element fitting of a basis set: 15 numbers (radius, \(\chi \), \(J\) per element) by derivative-free optimization, or 205 numbers (the same 15 plus a centre shift and a width for each element and distance bin) by gradient optimization with JAX [1489]. Smoothness and penalty strengths were chosen by inner cross-validation on the training molecules.

Model Per-element numbers All Seen groups Unseen group Unseen, not in MGAE109
M1 baseline – 22.47 12.57 57.94 61.27
H5 tabulated 27.36 17.58 62.43 66.48
H5 15 fitted 25.11 16.50 55.99 61.13
H5 205 fitted 25.93 14.93 65.36 71.96
M1 + H5 tabulated 20.75 12.25 51.26 56.51
M1 + H5 15 fitted 20.79 12.36 51.03 55.56
M1 + H5 205 fitted 19.59 12.12 46.40 50.25
PBE0/ETS none 95.00 85.66 128.50 137.89
M06-2X/ETS none 81.01 71.99 113.38 124.90
PBE0/cc-pVTZ per element 20.05 19.01 23.79 24.79
M06-2X/cc-pVTZ per element 13.70 12.99 16.22 16.68
Table 1004: Five-fold cross-validation, five repeats (MAE, kJ mol\(^{-1}\)). “Unseen group”: test molecules containing at least one group absent from the training folds (40 distinct molecules, 21.8% of test cases). “Not in MGAE109”: the same after removing the six that belong to the atomization-energy database used to fit M06-2X (34 molecules). Bold marks the best no-quantum value in each column.

With 205 fitted per-element numbers, comparable to the \(\sim \)211 numbers of PBE0/cc-pVTZ, the no-quantum model reaches 19.59 kJ mol\(^{-1}\) over all molecules, below PBE0/cc-pVTZ (20.05), and 12.12 on seen groups, below M06-2X/cc-pVTZ (12.99). Without per-element numbers on either side, the no-quantum model (20.75) is four to seven times more accurate than the quantum methods with a basis common to all elements (81.0–153.8), and on unseen-group molecules 51.3 against 113.4–152.8. On unseen-group molecules the quantum methods with per-element basis sets remain lower (16.2–23.8 against 46.4). Fitting 205 numbers to the atom-unit model alone improves the inner cross-validation in every split (19.27 \(\to \) 16.17) but not the outer unseen-group score (62.4 \(\to \) 65.4); the gain appears only in combination with M1.

Fit-set overlap. Fitted functionals may have been parametrized on test molecules, whereas the no-quantum models never see them. Matching the test set by InChIKey skeleton against MGAE109, the atomization-energy database used to fit M06-2X [533, 1495], and the G2-1 set [1496] used in fitting B3LYP [532], finds 19 and 9 of the 166 test molecules, and 6 and 3 of the 40 unseen-group molecules. Removing them changes the M06-2X unseen-group error from 16.22 to 16.68 and the PBE0 error from 23.79 to 24.79. The lower error of the per-element-basis calculations in this region is therefore not a consequence of the test molecules appearing in those fit sets. Only the atomization-energy fit sets were checked.

Size extrapolation and geometry. Trained on molecules with at most five heavy atoms and tested on 73 with six or more, the baseline M1 reaches 14.92 kJ mol\(^{-1}\) against 16.00 for M06-2X/cc-pVTZ and 25.52 for PBE0/cc-pVTZ; H5 with 15 fitted per-element numbers reaches 20.64. The UFF bond lengths of the worst unseen-group molecules agree with the quantum-optimized ones to within 0.01–0.03 Å (CO, H\(_2\)O, HCN), so their residual error does not come from the geometry; the quantum geometry enters no model.

Result. The score follows the per-element numbers on both sides. Quantum calculations keep their accuracy only with basis sets fitted element by element: with a basis common to all elements, PBE0, M06-2X and B3LYP fall to 81–154 kJ mol\(^{-1}\) while the functional and everything else are unchanged. A model with no wavefunction, given a comparable number of per-element numbers fitted on training molecules, reaches 19.59 and passes PBE0. Without those numbers on either side, the no-quantum model is the more accurate one in every column. The accuracy usually attributed to the wavefunction is the accuracy of the numbers supplied per element, together with the fit and the selection.

pict

Figure 697: (a) MAE of \(\Delta H_f(298\,\mathrm {K})\) for eight methods and four per-element basis sets; coefficients fitted to molecular data in parentheses. (b, c) The same functionals with per-element basis sets (cc-pVTZ, cc-pVDZ) and with a basis common to all elements (ETS, CDZ), on all molecules and on unseen-group molecules; the dashed line marks the no-quantum model with 205 fitted per-element numbers. M06-2X/CDZ converged for too few molecules and is omitted. (d) No-quantum models with tabulated, 15 and 205 fitted per-element numbers; dotted and dash-dotted lines mark PBE0/cc-pVTZ and PBE0/ETS. (e) Quantum methods with and without per-element basis sets against the no-quantum model with and without per-element numbers. (f) Per-molecule error of the baseline and of the no-quantum model with 205 per-element numbers on unseen-group molecules; triangles are MGAE109 members.

564.1 Rebuilding the per-pair numbers from unlabeled spectral lines

The computed mode still receives the equilibrium bond lengths \(r_e\) and harmonic frequencies \(\omega _e\) of the diatomics. Neither is a measurement: a spectrometer records line positions and intensities, and \(r_e\) and \(\omega _e\) are extracted from them by fitting the quantum level expressions \(E=BJ(J+1)\) and \(G(v)=\omega _e(v+\tfrac 12)-\cdots \) to assigned transitions. A model built on them therefore starts from numbers already shaped by quantum mechanics. We discarded these quantities and rebuilt every layer from the line lists themselves, without level expressions, quantum-number assignments, potential-energy curves or molecular geometries.

Data. All inputs of the reconstruction are listed in Table 1005.

Input

Content

Source

Line lists

H\(_2\) 4 591 lines (15.6–27 184.1 cm\(^{-1}\)), CO 1 344 (3.7–14 477.4), O\(_2\) 16 474 (\(<\)0.01–57 027.6), NO 251 898 (\(<\)0.01–23 726.4), OH 55 696 (0.003–43 408.8), HF 8 090 (24.1–32 351.6), N\(_2\) 1 107 (11.8–9 354.2); main isotopologue, line position and intensity only, quantum-number labels discarded

HITRAN [1497], retrieved with HAPI [1498]

Diatomic \(\Delta H_f(298\,\mathrm {K})\)

the 15 diatomics (\(r_e\) and \(\omega _e\) of that table are not used)

NIST WebBook [539], from JANAF [1494]

Hydride ladder

CH\(_2\) 386.39, CH\(_3\) 145.69, NH\(_2\) 190.37; CH\(_4\) \(-74.53\), NH\(_3\) \(-45.56\), H\(_2\)O \(-241.82\) kJ mol\(^{-1}\)

NIST WebBook (radicals); NIST CCCBDB [1197] (hydrides)

Single-bond set

C\(_2\)H\(_6\) \(-83.78\), CH\(_3\)NH\(_2\) \(-20.91\), CH\(_3\)OH \(-200.70\), CH\(_3\)F \(-236.58\), N\(_2\)H\(_4\) 95.51, NH\(_2\)OH \(-50.00\), H\(_2\)O\(_2\) \(-135.77\), HOF \(-87.26\) kJ mol\(^{-1}\)

NIST CCCBDB experimental values, otherwise the core reference set

Atomic \(\Delta H_f(298\,\mathrm {K})\)

H 217.998, C 716.68, N 472.68, O 249.18, F 79.38 kJ mol\(^{-1}\)

CODATA key values [1499]

Atomic masses

H 1.00794, C 12.0107, N 14.0067, O 15.9994, F 18.9984 u

standard atomic weights

Electronegativity

H 2.20, C 2.55, N 3.04, O 3.44, F 3.98

Pauling [1491]

Bond orders

Lewis structure of the SMILES string

–

Test set

166 molecules and their experimental \(\Delta H_f\); unseen-group and MGAE109 flags

Section 564

Table 1005: Data used in the reconstruction from unlabeled lines.

Layers. Table 1006 lists what each layer uses and what it no longer uses.

Layer

Used

Not used

0. Raw data

line positions and intensities, enthalpies of formation, atomic masses (Table 1005)

quantum-number labels, \(r_e\), \(\omega _e\), diffraction structures

1. Lines \(\to \) number

lines grouped into bands by wavenumber gaps; the intensity-weighted centre \(\nu \) of the strongest band

level expressions

2. Number \(\to \) stiffness

classical oscillator, \(k=\mu (2\pi c\nu )^2\)

quantized vibrational levels

3. Pairs without lines

\(\ln k_{AB}=u_A+u_B\), element values \(u\) solved from the seven measured pairs; applied to CH, NH, C\(_2\), CN, CF, NF, OF, F\(_2\)

–

4. Stiffness \(\to \) bond strength

empirical law \(D_{AB}=A\,(k_{AB}/500)^{\alpha }+\kappa (\chi _A-\chi _B)^2\)

Morse or Mie curves

5. Molecule

\(\Delta H_{\mathrm {at}}=\sum _{\mathrm {bonds}} D_{AB}\,(n/n_{AB})^{(p_A+p_B)/2} -\sum _i \rho _{e(i)}N^{\mathrm {rad}}_i\), inserted

UFF geometry, distances, QEq

6. Fit

13 coefficients (\(A\), \(\alpha \), \(\kappa \), \(p\) and \(\rho \) per element), or 28 with a multiplicative correction per pair, fitted to reference enthalpies of formation only

test molecules

Table 1006: Layers of the reconstruction from unlabeled lines.

Choices in layer 1. Grouping lines into bands requires a gap threshold, a weighting of intensities and a lower wavenumber cut. All \(3\times 2\times 2=12\) combinations (gap 20, 50 or 150 cm\(^{-1}\); linear or square-root intensity weighting; no cut or 300 cm\(^{-1}\)) were run as separate universes. The universe used for each model was chosen by the residual on the reference species alone; the test answers were not consulted. The band centres obtained are summarized in Table 1007.

H\(_2\) CO O\(_2\) NO OH HF N\(_2\)
Band centre (cm\(^{-1}\)) 4739–5673 2144–2146 55490–55959 1893–2124 24790–32172 174–4781 2343–2351
Table 1007: Range of the strongest-band centre over the 12 universes.

The rule “strongest band” selects bands of different kinds for different molecules: for CO, NO and N\(_2\) it lands in the region of the fundamental, for O\(_2\) and OH in the ultraviolet, and for HF it moves between 174 and 4781 cm\(^{-1}\) with the grouping.

Results.

Model Numbers \(n\) Ref. MAE All Seen Unseen Unseen, not MGAE109 All, 12 universes
B4, C1, law only 13 162 114.2 272.80 278.31 253.53 260.58 272.8–291.9
B4, C1, + pair correction 28 162 2.6 303.89 287.65 360.74 356.02 265.3–546.3
B4, C2, law only 13 155 105.2 212.31 209.68 221.66 220.84 208.9–333.8
B4, C2, + pair correction 28 155 17.2 136.58 145.06 106.41 104.16 136.4–137.0
B3c C2 (uses \(r_e\), \(\omega _e\), UFF) 67 155 – 96.15 88.35 123.91 118.27 –
PBE0/ETS (common basis) – 166 – 95.00 85.66 128.50 137.89 –
M06-2X/ETS (common basis) – 166 – 81.01 71.99 113.38 124.90 –
PBE0/cc-pVTZ – 166 – 20.05 19.01 23.79 24.79 –
M06-2X/cc-pVTZ – 166 – 13.70 12.99 16.22 16.68 –
Table 1008: MAE (kJ mol\(^{-1}\)) of the reconstruction from unlabeled lines. “Ref. MAE” is the in-sample error on the reference species; the B4 columns are per molecule after removing reference species; the quantum rows follow Table 1003.

With the per-pair correction and the C2 reference set, the reconstruction reaches 136.58 kJ mol\(^{-1}\) over all test molecules and 106.41 on unseen-group molecules. The latter is below both quantum calculations with a common basis (PBE0/ETS 128.50, M06-2X/ETS 113.38) and below B3c, which still used \(r_e\), \(\omega _e\) and UFF geometries (123.91). Over all molecules it is above them (95.00, 81.01, 96.15). This version is also insensitive to the band-grouping choices (136.4–137.0 over the 12 universes), whereas the law-only version varies from 208.9 to 333.8. With the smaller C1 reference set, the per-pair correction fits the references to 2.6 kJ mol\(^{-1}\) but generalizes poorly (303.89), which shows that the 15 diatomics and the hydride ladder alone do not constrain 28 numbers.

Prospects. The present reconstruction is a deliberately simple calculation: a single band centre per molecule, one power law from stiffness to bond strength, and an additive rule for the eight pairs without line lists. Each of these is a calibration point. The band-selection rule picks bands of different physical kinds for different molecules (Table 1007); a rule that selects comparable bands, more than one descriptor per line list (band spacing, band width, band progression), and line lists for the eight missing pairs would each tighten layers 1–3. Given that the simplest version already falls below the common-basis quantum calculations on unseen-group molecules, we expect a calibrated version of the same construction to reach lower errors, possibly below those of the quantum calculations; this remains to be shown.

Limitations. The present result is a simple calculation, and two layers below its starting point were not replaced. First, part of the HITRAN line positions and intensities are not direct measurements but values calculated from effective Hamiltonians fitted to measured transitions; discarding the quantum-number labels does not remove that construction from the numbers themselves. Second, part of the JANAF enthalpies of formation of the diatomic radicals (CH, NH, OH, CN, CF, NF, OF) are derived through spectroscopic dissociation energies rather than calorimetry. Both enter the reconstruction as received values. Replacing them requires rebuilding from the original spectra and the original thermochemical measurements, a more elaborate construction from a deeper layer that has not been carried out here. In addition, the eight element pairs without HITRAN line lists receive their stiffness from the element-additive rule rather than from their own spectra, and the Lewis-structure bond orders and Pauling electronegativities are taken as given.

pict

Figure 698: Reconstruction from unlabeled spectral lines. (a) Layer 0: HITRAN line positions and intensities of seven diatomics with quantum-number labels discarded; red marks the intensity-weighted centre of the strongest band in the universe chosen for the final model. (b) Layer 1: strongest-band centre in each of the 12 grouping universes. (c) Layers 2–3: classical stiffness of the 15 element pairs, from their own lines (blue) or from the element-additive rule (gray). (d) Layers 4–6: test MAE in every universe for the two reference sets and the two parameter counts; lines mark PBE0/ETS, M06-2X/ETS and the computed model B3c. (e) All, seen-group and unseen-group MAE of the reconstruction against B3c and the quantum calculations with and without per-element basis sets. (f) Predicted against experimental \(\Delta H_f\) for the final model; triangles are unseen-group molecules.

564.2 Quantum chemistry does not start without a structure either

The molecular section of a Q-Chem input tells the program the net charge, the spin multiplicity and the geometry of the molecule. The first line carries two integers, the net charge and the spin multiplicity; each line after it corresponds to one atom, in the format atom, \(x\), \(y\), \(z\) [1500].

That is the whole of what the calculation receives before it begins.

Table 1009: Information supplied at the start of the calculation.
Quantum calculation receives score24 receives
which atom each point is (nuclear charge \(Z\), entering the equations as a number) a type index per point (a label only)
coordinates of each point coordinates of each point
net charge, spin multiplicity —

Geometry optimisation does not remove this. The optimiser starts from the initial geometry the user supplied, so which isomer is obtained — ethanol or dimethyl ether — is fixed by those starting coordinates [1500]. This is what the molverse run showed directly: thirty-two starting geometries went to thirty-two different answers.

The comparison is therefore between the quantum equations and our rule given the same structure, which is what score24 measures. By information supplied, the quantum calculation receives strictly more than we do: it is given \(Z\), the net charge and the multiplicity, and we are given neither.

564.3 Enthalpy of formation without quantum mechanics

The functionals of the preceding subsections are fitted objects: their parameters were adjusted to compilations of experimental energies, and those compilations describe molecules that were themselves built from the measured quantities the functionals are then said to predict. The practical question that remains is whether a model with no quantum mechanics at all, given the same kind and amount of experimental data, reaches them on the enthalpy of formation. It passes them.

Test set. The 166 molecules of the earlier comparison (elements C, N, O, F; median 5 heavy atoms), with their experimental gas-phase \(\Delta _f H^\circ (298\,\mathrm {K})\) and the error of M06-2X and PBE0 on each. Every model below is scored on exactly these molecules.

Training data. Gas-phase experimental enthalpies were collected from the NIST WebBook by formula search (\(\mathrm {C}_{1-20}\) with N, O, F, Cl, Br, S, and carbon-free small molecules; 2,541 compound pages, 2,230 with a gas-phase \(\Delta _f H^\circ \) and a structure). After removing the 166 test molecules, isotopologues, radicals and net-charged species, 2,047 remained. A robust (Huber) regression was cross-validated ten-fold inside this set and the 141 entries whose own cross-validation residual exceeded 60 kJ/mol were set aside as suspect; among them a perfluoroethyl-cyclohexane listed at \(-3302\) kJ/mol where its neighbours sit near \(-1200\), several halo-acetylenes, tetracyanoethane and strained small rings. The training set is 1,906 molecules.

Model. Groups are counted on the molecular graph alone and summed linearly. Four nested layers are counted at once: for each atom its element, aromatic flag and hydrogen count together with the elements and bond orders of its neighbours (fine); the same without bond orders (medium); element and hydrogen count only (coarse); and bare element counts; plus bond-type counts and ring sizes. A molecule whose fine groups all occur in the training set is predicted from them; one with an unseen fine group is carried by the coarser layers. No coordinates, electrons or energies enter; every coefficient is fitted here. Inside the training set the ten-fold cross-validation error is 7.8 kJ/mol (median).

Two protocols. In the first, the 166 test molecules never enter training. In the second, each test molecule is predicted with the other 165 added to the training set (leave-one-out). The second is the privilege the functionals had: their fitting sets contain the small reference molecules of this test set (\(\mathrm {H_2O}\), \(\mathrm {CH_4}\), \(\mathrm {CF_4}\), ozone, \(\mathrm {N_2O}\), nitrates), so scoring them on those molecules scores them on their own training data.

Table 1010: Enthalpy of formation on the 166 molecules, \(|\)error\(|\) in kJ/mol. “Fine seen” are the molecules whose every fine group occurs in the training set; the remainder are predicted from the coarser layers.

Protocol

Set

 Groups
(no QM )

M06-2X PBE0

                                                          MAE
                                                  groups / M06-2X

Test molecules never in training

all 166 7.3 11.6 16.1 39.2 / 13.7

fine seen (122) 4.9 11.4 14.9 11.8 / 13.4

coarser layers (44) 95.0 11.7 18.5 115.1 / 14.4

Leave-one-out, other 165 in training

all 166 6.0 11.6 16.1 31.4 / 13.7

fine seen (137) 4.7 11.5 15.8 11.7 / 13.3

coarser layers (29) 83.6 12.5 17.8 124.8 / 15.6

Result. Under both protocols the group sum has a lower median error than either functional on all 166 molecules, and on the molecules whose groups it has seen it has less than half the median error of M06-2X (4.7–4.9 against 11.4–11.5) with a lower mean error as well. Molecule by molecule, under the leave-one-out protocol it beats M06-2X on 58% of the 166. Its mean error over all 166 is raised by a few dozen molecules of the coarser layers, nearly all single-group species with no analogue in any training set (\(\mathrm {F_2O_2}\), \(\mathrm {F_2O}\), ozone, \(\mathrm {N_2F_4}\), \(\mathrm {N_2O_5}\), \(\mathrm {FONO_2}\)). An additive scheme has nothing to add there; the functionals carry these molecules as fitted reference energies, which is why they look accurate on them.

Table 1011: Ladder of models without quantum mechanics, median \(|\)error\(|\) on the 166 molecules (kJ/mol). Models above the rule use only the 166 molecules in ten-fold cross-validation; below it the model is trained on external experimental enthalpies.

Model

parameters median

Random features

— 171

Atom counts only

10 103.4

Character counts of the formula string

43 62.4

Mean of the five nearest molecules

0 56.5

Hashed graph neighbourhoods, radius 3 / 2 / 1

819 / 644 / 314 55.3 / 43.7 / 30.4

SMILES 1–3-gram counts, lasso

\(\sim \)54 20.8

Graph groups, trained on 50 / 100 / 200 / 400 external molecules

40.5 / 24.8 / 15.2 / 10.9

Graph groups, trained on 800 / 1,200 / 1,906 external molecules

630 8.7 / 8.1 / 7.3

M06-2X

11.6

PBE0

16.1

pict

Figure 699: Enthalpy of formation without quantum mechanics. (a) Median error of the models of Table 1011 on all 166 molecules; the two red bars are the group model under the two protocols of Table 1010. (b) Error of the group model against the number of training molecules; it passes M06-2X at about 400 and keeps improving to the end of the available data. (c) Molecule by molecule against M06-2X with the test molecules never in training; (d) the same under leave-one-out with the other 165 test molecules in training. Blue points are molecules whose fine groups all occur in the training set; grey points are carried by the coarser layers, nearly all single-group species with no analogue in any training set. Points below the diagonal are molecules on which the group model beats M06-2X.

What the ladder shows. The functional’s lead over the first models of Table 1011 was never quantum mechanics. Those models had too little information (formula strings, atom counts) or too little data (166 molecules against hundreds of groups: finer hashed neighbourhoods got worse, not better). The step that mattered was to give the non-quantum model what the functional had been given, a training set of experimental enthalpies of the same kind with its gross errors removed. The learning curve crosses M06-2X at about 400 training molecules, the scale of the data sets on which the Minnesota functionals were themselves parametrised, and keeps improving to the end of the available data. The enthalpy of formation is recovered from the molecular graph and other measured enthalpies; the quantum layer adds nothing the data had not already supplied, and where it appears to, on the single-group reference species, it is reading back its own fitting set.

564.4 What the quantum enthalpy is given

A quantum enthalpy of formation is presented as the output of an equation. Before the equation is solved, however, the calculation receives five things, each of them measured or fitted: a basis set whose exponents and coefficients were fitted element by element to atomic energies; a functional whose coefficients were fitted to molecular thermochemistry; the spin multiplicity of the ground state, known from spectroscopy; a geometry, optimised by the calculation itself with the first two in hand; and a zero-point and thermal correction from computed vibrations, scaled by a factor fitted to experiment. We measured how much of the final accuracy each of them carries, on the 166 molecules of the preceding subsections, in two directions: removing one given at a time from the full set, and adding one at a time from nothing.

Setup. For every molecule a force-field geometry (UFF) was built from the graph, then optimised at B3LYP/def2-SVP, where harmonic frequencies were also computed (zero-point energy scaled by 0.98; enthalpy at 298 K from the rigid-rotor–harmonic-oscillator sum). Single-point energies were taken at five levels on each geometry: M06-2X/cc-pVTZ (the full set), M06-2X/STO-3G (basis removed), LDA/cc-pVTZ (fitted functional removed), HF/cc-pVTZ (correlation removed), HF/STO-3G (nothing). Atomic energies were computed at each level with the measured atomic multiplicities; atomic enthalpies of formation from ATcT. Three molecules failed the geometry optimisation and three force-field geometries collapsed, leaving 160. Nine optimised geometries kept one imaginary frequency and were not excluded. All 166 are closed-shell singlets, so the spin given cannot be removed here; its weight was measured earlier on 41 small molecules including radicals, where setting every spin to the lowest multiplicity raised the error from 43 to 169 kJ/mol.

Table 1012: Removing one given at a time. \(|\)error\(|\) of \(\Delta _f H^\circ (298\,\mathrm {K})\) against experiment, kJ/mol, 160 molecules.
What the calculation is given median MAE max
All five givens (M06-2X/cc-pVTZ, quantum geometry, scaled ZPE) 9.6 12.2 74
Basis removed (STO-3G, same for the rest) 561.8 660.5 1864
Fitted functional removed (LDA) 764.8 736.1 1307
Correlation removed (Hartree–Fock) 1339.3 1326.1 2401
Geometry removed (force field) 26.5 41.0 373
Zero-point and thermal correction removed 231.3 251.8 575
Measured spin removed 9.6 12.2 74

Table 1013: Adding one given at a time, starting from nothing. Same molecules and units.
Step Given added median MAE
0 nothing: HF/STO-3G, force-field geometry, no correction 479.8 570.5
1 per-element basis (HF/cc-pVTZ) 1131.6 1107.5
2 correlation (LDA/cc-pVTZ) 926.2 964.8
3 fitted functional coefficients (M06-2X/cc-pVTZ) 210.1 232.5
4 quantum geometry 231.3 251.8
5 zero-point and thermal correction 9.6 12.2

What the two tables show. Every given is load-bearing. Removing any one of the basis, the functional coefficients, the correlation or the zero-point correction returns the error from 10 to 230–1340 kJ/mol; removing the geometry triples it. The givens do not add: a better basis on Hartree–Fock makes the result worse (480 to 1132), because the minimal basis had been cancelling the missing correlation, and the quantum geometry without the vibrational correction changes little (210 to 231). The final step is the largest in relative terms: the zero-point and thermal correction, built from computed vibrations and a fitted scale factor, takes the error from 231 to 9.6. The score of 9.6–12 is therefore not the output of an equation but the product of five numbers taken from measurement before the equation was solved, and it survives the loss of none of them.

Against the model with no quantum mechanics. The group model of Section 564.3 is given none of the five: no basis, no functional, no spin, no geometry and no vibrations, only the molecular graph and other measured enthalpies. On the same molecules it reaches a median of 7.3 kJ/mol against 9.6 here. The accuracy attributed to the wavefunction is the accuracy of what was handed to it; handed directly to a sum over graph groups, the same measurements do at least as well.

pict

Figure 700: What the quantum enthalpy is given (160 molecules, median \(|\)error\(|\), log scale). (a) The full set of givens and the same calculation with one given removed; the dashed line is the graph-group model of Section 564.3, which is given none of them. (b) Starting from nothing and adding one given at a time; the givens do not add, and the last step, the zero-point and thermal correction, carries the result from 231 to 9.6. (c) Molecule by molecule, the error with all givens against the error with the geometry or the zero-point correction removed.