WorksComputer Science
Agent-Guided Discovery of Exchange-Correlation Functionals with Physics-based Validation
Abstract
Accurate, compact exchange–correlation functionals are central to predictive density functional theory. Symbolic search and language-model agents can propose new functional forms, but it remains unclear whether their gains survive self-consistency and external evaluation, whether the new terms carry physical content, whether agents outperform evolutionary search, and how language-model backbones compare. We connect frontier LLM agents to a GPU evaluator through the Model Context Protocol, with training-only fitting, persistent memory, and self-consistent and external evaluation. Opus-5.5 agents passed the screening gate with about 40-fold fewer tokens than Codex (GPT-6-Astra) agents and found a candidate with lower validation and held-out errors; only this candidate advanced to self-consistent evaluation. The resulting 13-parameter functional, O159, multiplies same-spin correlation by a smooth density window. Refitted controls favor a window that scales the entire same-spin factor, reducing it by 15–30% at its peak, and that acts on reaction energies mainly in near-iso-orbital regions; against a refitted no-window control, it lowers heavy-atom total-energy errors on GSCDB137 by 29%. With about 400 fits each, SyFES evolution did not improve on its GAS22 seed, whereas the agents found forms 0.10–0.13 \kcal\ lower in validation error by adding an explicit density scale. Self-consistent O159 lowers the held-out MGCDB84 test error of B97M-V by 11.7%, and its mean normalized error ratio on 36 GSCDB137 datasets (1.139) is comparable to B97M-V (1.144) and below GAS22 (1.190). Frontier-LLM agents thus produced O159, a compact functional whose improvement over B97M-V survives self-consistent, physics-based validation.
Introduction
Accurate exchange–correlation functionals are essential to the predictive power of Kohn–Sham density functional theory, which makes molecular electronic-structure calculations practical by representing the unknown many-electron contribution through a functional of the density.[1, 2] Improvements to this approximation can increase the reliability of predictions across molecular chemistry while preserving the computational accessibility that makes density functional theory useful. Compact analytic forms are especially attractive: they are efficient to evaluate, expose their mathematical structure to physical analysis, and can be incorporated directly into self-consistent electronic-structure calculations.[3] Discovering such forms with improved accuracy across chemical environments is therefore an important objective for automated scientific discovery.
Functional development increasingly combines physical insight and reference data with automated exploration.[1, 4] Recent data-driven approaches have learned exchange–correlation models from molecular energies and densities,[5, 6] while differentiable Kohn–Sham training incorporates self-consistency into the learning loop.[7, 8] Modern range-separated hybrids such as B97M-V integrate semilocal descriptors, exact exchange, and nonlocal correlation in compact expressions selected and fitted against diverse reference data.[2, 9] Symbolic Functional Evolutionary Search (SyFES) broadened this strategy by evolving computational instructions to explore the functional form itself. Starting from B97M-V, it produced GAS22, whose improvements identified on fixed reference densities persisted in subsequent self-consistent-field (SCF) calculations.[3] More recently, SAFS26 used language-model agents to plan modifications, implement functional expressions, and interpret evaluation feedback through a structured evolutionary archive.10 In a nonempirical setting, an LLM agent paired with an LLM critic and deterministic exact-constraint verification revised r2SCAN toward larger band gaps without fitting any bonded system, locating stronger candidates than a uniform random-search control.[11] The wider strategy of generating executable proposals and ranking them with numerical feedback has also enabled language-model-guided program search in mathematics.[12] These advances establish a foundation for agents that use numerical feedback and accumulated search experience to guide the discovery of explicit mathematical forms.
For empirically fitted functionals, it has not yet been established whether agent-discovered expressions retain their search-stage gains once they are physically screened, made self-consistent, and evaluated beyond the selection benchmark. Fixed-density evaluation enables rapid exploration, whereas self-consistent calculations test the orbitals and density generated by the candidate’s own potential.[13] Physical and numerical screening guides the search toward suitable expressions, while held-out and external evaluations test their predictive value.[1, 14, 15] GSCDB137 offers a broader assessment through transition-metal chemistry, electric-field responses, vibrational properties, heavy elements, and revised reference values.[16] Its datasets without MGCDB84 antecedents (hereafter, new datasets) provide a particularly useful opportunity to examine performance beyond the benchmark used for discovery. Bringing these stages together with persistent search memory allows frontier LLM agents to be assessed by the functional forms they produce and the subsequent calculations those forms support.
Two further gaps limit what such searches currently offer chemistry. First, joint refitting distributes credit across every coefficient, so the physical role of a newly introduced term cannot be read from its expression. It must be established with refitted controls, localized in descriptor space, and checked against data not used for selection; otherwise a discovered functional remains an accurate fit without a transferable design principle. Second, the r2SCAN revision compared its agent with uniform random sampling of a fixed term catalog, [11], but, to our knowledge, language-model-guided searches have not been compared with established non-LLM symbolic evolution at a matched number of trained forms on identical data, and different language-model backbones have not been compared on a common evaluator.
Here we address these gaps by connecting scientifically capable frontier LLM agents to a shared GPU evaluator through the Model Context Protocol (Figure 1).[17] LLM agents have automated scientific tasks such as heterogeneous catalyst screening, polymer and peptide design, literature mining, molecular dynamics of polymers and proteins and many more.[18, 19, 20, 21, 22, 23, 24, 25, 26] Agents propose symbolic expressions and build on recorded plans, parent lineages, and numerical feedback; the evaluator fits coefficients only on training data, scores validation performance, and applies four physical and numerical screening tests. This separation combines flexible exploration with a consistent evaluation procedure, while persistent records preserve the reasoning and computational provenance of the search. The principal result is O159, a 13-parameter functional that introduces a smooth density-window multiplier into same-spin correlation at intermediate density. O159 satisfies all four screening criteria: spin symmetry, the uniform-gas exchange limit, coordinate scaling of the exchange factor, and integration-grid sensitivity. We then use refitted controls that the agents recorded during the search, a descriptor-resolved attribution of the window energy, and held-out MGCDB84 data to determine what this term encodes. An external comparison with the same control on GSCDB137 then tests how far the window’s effect transfers. Finally, we compare two language-model backbones, Opus-5.5 and Codex (GPT-6-Astra), on the same evaluator and data, and compare both agent searches with SyFES regularized evolution given a comparable number of fits (about 400).

Figure 1. Workflow for agent-guided exchange–correlation functional discovery and evaluation. (a) A coordinator and thematic agent islands generate executable proposals, drawing on shared plans, lineages, results, and summaries. (b) The MCP server connects agents to the GPU evaluator, which fits coefficients on training data, measures validation WRMSD, and applies four screening checks: spin interchange, the uniform-gas exchange limit, exchange-factor scaling, and grid sensitivity. (c) Selected candidates and fitted parameters are frozen before held-out MGCDB84 testing, selected self-consistent-field validation, and external evaluation on the 36-dataset computational subset of GSCDB137. These downstream assessments are separate from discovery; their results were not used to fit, rank, or select candidates.
Refitted controls distill the window into an empirical design rule: it should reduce the magnitude of the entire same-spin factor at intermediate spin density, with no opposite-spin counterpart, gate, or shift to lower density. On external data, its largest benefit over the refitted control is a 29% lower error for heavy-atom total energies. Under the same evaluator and data, the Opus-5.5 agents reached the SCF gate with about 40-fold fewer tokens than the Codex agents and found a candidate with lower validation and held-out test errors; only this candidate, O159, was advanced to self-consistent evaluation. At a matched number of fits, the SyFES baseline did not improve on its GAS22 seed, whereas the agents found screened forms with lower validation error, all of which add an explicit density scale absent from the SyFES representation. O159 SCF calculations converge for all 5,930 MGCDB84 systems, reduce validation and test WRMSDs relative to B97M-V by 5.7% and 11.7%, and give a mean NER on 36 GSCDB137 datasets comparable to that of the local B97M-V reference. The study thus links agent-guided symbolic discovery to a compact, self-consistently validated functional with an interpretable new term, and compares the performance of different LLM backbones.
Methods
Agentic search and numerical evaluator
The framework exposes functional evaluation, lineage retrieval, memory, and recorded summaries through the Model Context Protocol. [17] The search archive stores candidate source, fitted parameters, parent identifiers, plans submitted before evaluation, summaries submitted afterward, constraint results, and usage counters. The multi-agent organization assigns thematic exploration to islands and coordination to a lead agent and shared records carry information across separate contexts. The completed Codex run additionally used independent audits every 50 successful evaluations and a queue limited to three concurrent GPU jobs.
Its final island allocations were 100 exchange, 120 same-spin, 100 opposite-spin, and 80 parsimony evaluations, after a documented budget transfer. Supporting Information Section S7 gives the representative prompt, ranking rule, and reconstructed iteration exchanges.
Figure 2 details the division of work and the information exchanged during discovery. Exchange, same-spin, and opposite-spin islands propose changes to their respective semilocal factors, while the parsimony island simplifies expressions or ties coefficients. The coordinator assigns themes, reviews numerical feedback, and redirects follow-up work. Islands communicate through persistent plans, parent lineages, results, and summaries; MCP connects the agents to these shared records and to the numerical evaluator.
Figure 2. Agent responsibilities and communication during symbolic functional discovery. (a) The lead coordinator organizes thematic exchange, same-spin, opposite-spin, and parsimony roles. Shared records preserve plans, source code, fitted parameters, lineages, results, and summaries across agent contexts. (b) A schematic proposal–feedback cycle: an island retrieves context, records a plan and executable proposal, and calls the evaluator through MCP. The evaluator fits coefficients on training data, returns validation scores and four screening outcomes, and the island records a summary for subsequent review and proposals. The schematic shows agent roles and information flow through the proposal–evaluation cycle; held-out and external assessments remain outside this discovery loop.
The retained Opus-5.5 archive contains 397 non-seed submissions, and the completed
Codex (GPT-6-Astra) archive contains 400 successful evaluations plus one failed attempt.
These counts include repeated fits and initialization controls, not only distinct symbolic forms. A superseded 200-attempt Codex experiment is documented separately in Supporting Information § 16. Opus and Codex denote run archives for the respective model families.
Each proposal is implemented as one functional class. All retained empirical coefficients and introduced empirical shape parameters are fitted on the training objective using automatic differentiation and L-BFGS. [27, 28] Restarts are selected by training loss. The prompt limits a request to three restarts and 500 optimizer iterations; the service imposes a 560 s tool timeout and a usual 410 s fitting budget. Training uses compiled float32 kernels, while final reductions and reported metrics use float64. Three NVIDIA RTX 6000 Ada GPUs provide the worker pool. The recorded environment includes PySCF 2.14.0 and GPU4PySCF 1.8.1. [29, 30, 31] Parameter files, numerical guards, software snapshots, and complete computational settings are supplied in Supporting Information § 11 and § 12 and the reproducibility archive.
Functional framework, data, and screening
Candidates modify semilocal exchange and same-spin/opposite-spin correlation within the fixed energy framework
The range-separation parameter is , and VV10 parameters are and . [9, 32] Semilocal factors depend on spin densities, density gradients, and positive kinetic-energy densities. Correlation uses the Stoll partition of modified PW92 local correlation. [33, 34] A nonhybrid B97M-V seed is retained as a separately labeled reference refit. [35]
MGCDB84 reaction and geometry files were obtained through ACCDB with the released SyFES partition and weighting algorithm. [2, 3, 36, 37] After omission of XB51_15, the implemented split contains 870 training, 2,963 validation, and 1,152 test reactions requiring 5,930 unique molecular calculations. Parameters are fitted on training data; validation guides expression selection. The weighted root-mean-square deviation (WRMSD) is
with energies in kcal mol, reaction-specific weights , and reaction count . Validation weights include the prescribed factor two. Subsets are assigned as groups, so the partitions have different category compositions. They are not random draws from a common reaction distribution.
Screening uses fixed B97M-V/def2-QZVPPD reference densities.[9, 38, 39] The def2 basis definitions are also catalogued in the Basis Set Exchange.[40] Reference orbitals were converged with density fitting[31] and then evaluated with exact Coulomb/exchange integrals. Candidate non-SCF energies replace the semilocal contribution at the fixed density while retaining the common exact-exchange and VV10 terms. The reference-density campaign converged all 5,930 systems and consumed 84.6 GPU-h. Cached search metrics and later full-grid non-SCF reevaluations are explicitly distinguished: float32 feature storage introduces small differences even when the final arithmetic uses float64.
The evaluator checks spin interchange on triplet oxygen, the uniform-gas exchange factor at four densities, exchange-factor invariance under coordinate scaling on water, and AE18 atomic integration sensitivity between two grids. The respective tolerances are , absolute , , and 0.015 kcal mol; nonfinite values are rejected. The scaling check is applied to the exchange enhancement factor without range attenuation. The search score is proportional to inverse validation WRMSD with a factor 0.9 per violation. The standard SCF gate requires zero violations and validation below 97% of the cached published-parameter baseline. The checks target exact conditions and numerical requirements relevant to self-consistent use[1, 14, 41] and complement empirical accuracy on molecular benchmarks.[42]
Frozen evaluation and external scope
Test evaluation uses the stored fitted coefficients without refitting. For SCF, automatic differentiation of the energy density supplies density, gradient, and kinetic-energy-density potential components to GPU4PySCF.[27, 30, 31] The candidate orbital calculation is initialized from the reference solution and followed by exact-integral energy evaluation. Only O159 and published-parameter GAS22 received complete candidate MGCDB84 SCF campaigns.
Candidate energies and potentials come from the PyTorch implementation, whereas the B97M-V reference uses libxc.
To limit computational cost, external evaluation used the 36 GSCDB137 datasets whose largest molecule has at most 500 basis functions: 2,734 entries and 3,487 molecular/field calculations. Sixteen datasets have MGCDB84 antecedents and 20 do not; results are reported for both scopes. The benchmark’s input-specific basis sets, grids, effective core potentials, fields, and state-search requirements were retained, with documented CPU fallbacks for affected high-angular-momentum calculations. No GSCDB137 data were used to fit or select candidates.
GSCDB137 performance is the unweighted mean of dataset normalized error ratios (NERs).[16] Each dataset’s specified error measure is divided by its fixed published normalization; NER is dimensionless and differs from the reaction-weighted MGCDB84 objective. The 36-set evaluation includes AE11 after CPU completion of the Rn calculation, and a 35-set analysis without AE11 quantifies sensitivity to that dataset. Paired signed-rank tests and bootstrap intervals use datasets as sampling units. [43, 44] Numerical convergence qualifications are provided in Supporting Information Section S4.
Window controls, energy attribution, and non-LLM baseline
All window controls are joint training fits that the agents submitted during the search: variants of the O145/O159 architecture in which the window was removed, moved, reshaped, transferred to another channel, or applied to another base functional. The principal control is O178, the O145 form without the window (11 parameters). The analysis adds fixed-density post-processing of archived parameters, a non-SCF evaluation of O178 on GSCDB137 (about 0.5 GPU-h), and repeated O159 refits (Supporting Information § 12 and § 13).
The window energy is attributed to regions of and by an exact decomposition of the change in squared WRMSD, defined in
Supporting Information § 13.
To test the window against the refitted control on external data, O178 was evaluated non-self-consistently on the 36 GSCDB137 datasets at the stored B97M-V densities used for O159. Because the two functionals share exact exchange and VV10, the O178 energy follows from the archived O159 non-SCF energy plus the difference of their semilocal energies, integrated on the production grids; this agrees with direct O178 evaluation and reproduces the archived O159 results (Supporting Information § 13). Before the O178 energies were computed, we recorded a predicted direction (improve, worsen, or neutral) for each dataset on which MGCDB84 training, validation, or test trends bear, with neutral defined as a relative change of the dataset error measure below 1%. The 13 new datasets for which the pattern offered no basis (transition-metal, field-response, and vibrational sets, and six thermochemical, noncovalent, or barrier-height sets) received no prediction and were not scored. The predictions were recorded after the O159 and B97M-V results on GSCDB137 were known.
As a non-LLM baseline, we ran SyFES regularized evolution on the same split, weights, reference densities, and non-SCF energy expression. The implementation follows the published instruction set, mutation rules, functional-equivalence fingerprints, and evolution settings: population 100, tournament size 25, mutation probability 0.9, and covariance matrix adaptation evolution strategy (CMA-ES) fitting on training data with five restarts, where each new form’s fitness is the validation WRMSD of its best-training restart. The evolution was seeded with GAS22 at its published parameters and stopped after 400 trained forms, approximately the number of fits in each retained agent archive. The best forms were re-evaluated in float64 and screened with the same four tests. Implementation details and deviations are given in Supporting Information § 15.
Results and Discussion
Compact symbolic changes and validation progress
Both retained searches produced constraint-clean candidates below the SCF gate (Figure 3).

Figure 3. Search-stage validation and the O159 density window. (a) Constraint-clean candidate scores and running minima from the retained Opus and Codex archives, indexed by database record ID. The displayed range emphasizes the competitive region; the archive retains all values and audit exclusions. (b) Analytic O159 multiplier at fixed kinetic descriptor, calculated from the evaluated coefficients. The radius refers to one spin density.
O159 reached cached validation WRMSD 3.332 kcal mol with 13 parameters. The later O396 candidate reached 3.138 with ten parameters, and C356 reached 3.363 with 14 parameters.
O159’s characteristic modification is a multiplier on a GAS22-type same-spin polynomial,
where is expressed in bohr, , and . The fitted values are and to eight decimals. The exchange and opposite-spin polynomial forms derive from B97M-V, with all retained coefficients jointly refitted and the opposite-spin constant fixed at one. Here is the GAS22-type same-spin power series in and the bounded reduced gradient , and vanishes for the uniform gas. We write , so that O159 uses and its parent O145 uses , and for the von Weizsäcker kinetic-energy density, and , with the uniform-gas value. Supporting Information § 12 gives the complete equations and evaluated parameters.
The window approaches unity at high and low density and changes the same-spin factor only at intermediate density; its role is established by refitted controls rather than by the expression alone. Changing the cubic denominator of the parent O145 to the quartic denominator of O159 alters validation by only 0.0006 kcal mol. The controls show that this exponent is immaterial, whereas the channel and scope of the window are not. Supporting Information § 13 uses these controls to derive an empirical design rule, in which the window reduces the entire same-spin factor by 15–30% at intermediate spin density with no opposite-spin counterpart, gate, or shift to lower density, and localizes its effect on reaction energies in low-gradient, near-iso-orbital regions.
Later candidates explore different correlations between descriptors. O396 adds same-spin and opposite-spin shell-localized terms to a compressed window form. Its development included a residual scan over training and validation data, so its validation error is not independent of its design. C356 combines a same-spin orbital window with a density-weighted opposite-spin kinetic descriptor, a screened kinetic term, and a coefficient tie that reduces parameter count.
Comparison of language-model backbones
The two backbones searched the same functional frame with the same evaluator, data split, screening tests, and SCF gate, so their archives are compared under identical evaluation conditions. The Opus-5.5 agents first crossed the SCF gate with a constraint-clean candidate after about 10.2 million assigned tokens (O55), whereas the Codex (GPT-6-Astra) agents first crossed it after 399.9 million (C339). The Opus campaign also reached its principal candidate at about one ninth of the token cost: O159, reached after 49.9 million tokens, has a validation WRMSD of 3.332 with 13 parameters, whereas the best Codex candidate, C356, reached 3.363 with 14 parameters after 440.6 million tokens. O159 is also more accurate on held-out data, where the non-SCF test WRMSDs are 3.818 for O159 and 3.897 for C356. Because C356 did not improve on O159 in non-SCF validation or test error, O159 remained the only agent-discovered candidate advanced to full SCF evaluation on MGCDB84 and GSCDB137. Supporting Information § 16 gives the complete token accounting of both runs (251 and 521 million assigned tokens, more than 97% of them cache reads). Supporting Information § 17 illustrates with representative exchanges how the persistent plans, summaries, and audits of both runs document search decisions.
Agent-guided and evolutionary symbolic search at a matched number of fits
The SyFES baseline trained 400 distinct forms in 20.5 h of wall time on three GPUs, using 61.1 GPU-h of CMA-ES fitting (mean 550 GPU-s and CMA-ES evaluations per form). Of these forms, 368 gave finite losses. A further 1,079 children were functionally equivalent to earlier forms and inherited their cached fitness without training. None of the trained forms improved on the validation WRMSD of the published GAS22 seed, 3.462 (Table 1). The best new form, the 95th trained (population identifier 174), adds a term with unit coefficient to the same-spin factor of GAS22 and refits all 14 parameters. It passes all four screening tests and removes GAS22’s uniform-gas exchange violation, but its training and validation errors (3.444 and 3.506 ) are higher than those of the seed and of the L-BFGS training refits of the unmodified GAS22 form (Codex: 3.266 and 3.489 ); the added term brings no validation gain. The next nine forms fit training data as well as or better than GAS22 (3.188–3.269 ) yet validate worse (3.554–3.595 ), and all fail the uniform-gas exchange test.
| Search | Fits | Seed (val.) | Best new form | Training | Validation | GPU-h | Tokens (M) |
| SyFES evolution | 400 | GAS22 (3.462) | SyFES-174 | 3.444 | 3.506 | 61.1 | 0 |
| Opus agents | 397 | refitsa | O159 | 3.252 | 3.332 | 11.1 | 251 |
| O396b | 3.140 | 3.138 | |||||
| Codex agents | 400c | refitsa | C356 | 3.207 | 3.363 | 8.6 | 521 |
Table 1. Agent-guided and non-LLM symbolic search at a matched number of trained forms on the MGCDB84 SyFES split (non-SCF WRMSD, ).
All best new forms pass the four screening tests; the published GAS22 seed fails the uniform-gas exchange test. SyFES records are distinct trained forms; agent records include repeated fits and initialization controls. SyFES values are float64 re-evaluations of stored parameters; agent values are cached search metrics. GPU-h is CMA-ES training time for SyFES and summed evaluator time for the agents; during the SyFES run the GPUs were shared with another service. O159-form refits from other initializations reach 3.380 (O195). aTraining refits of ωB97M-V (validation 3.870 Opus, 3.789 Codex), GAS22 (3.490 and 3.489; one violation), and nonhybrid B97M-V. bBest record of the second Opus campaign (IDs 201–400); its development used a training-plus-validation residual scan. cPlus one failed attempt.
With a similar number of training fits, the agent searches found screened forms 0.13 (O159) and 0.10 (C356) below the published GAS22 validation error, and 0.16 and 0.13 below their own GAS22 training refits, whereas evolution from GAS22 found none. O396 is 0.32 lower. The O159 and C356 margins are comparable to the spread of repeated fits of one form (up to 0.09 ; Supporting Information Section S3), and the agent archives took their minimum on validation over repeated fits and controls, whereas SyFES never refits an equivalent form. The archive shows where the margin comes from. O178, the O145 frame without its window, uses only the scale-invariant variables available to SyFES and validates at 3.481 , no better than GAS22 (3.462 published, 3.490 refitted). Every best agent form uses an explicit density scale ( in O159 and O396, in C356), and the best Codex record without one (C398, 3.424 ) relies on spin-polarization weighting, also outside the SyFES features, and improves on GAS22 by only 0.04 . Within the representation shared with SyFES, neither search improved on GAS22 at this budget. The agents’ advantage therefore came from importing an ingredient outside that representation, one suggested by their prompt and present in the SAFS26-b functional on their reference sheet, and testing it with their own controls. Fitting time and language-model cost point in opposite directions: the agent archives used 11.1 and 8.6 GPU-h of warm-started L-BFGS fitting and evaluation but 251 and 521 million assigned tokens (§ 3.2), whereas SyFES used 61.1 GPU-h of gradient-free CMA-ES from random starts and no language model.
These differences are summarized in Table 2. CMA-ES applied to the GAS22 form approaches a lower training loss than the published parameters (about 3.205 versus 3.270 kcal mol, still decreasing) in a different region of parameter space, and the near-miss forms, which fit training better and validate worse, are consistent with this fitting asymmetry.
| Factor | Favors |
| Explicit density variable (or ) available; SyFES instructions act only on the scale-invariant and , from which and follow | agents |
| Prompt listed -dependent correlation and -based self-correlation corrections among example directions; reference sheet listed prior forms, including the multiplicative same- and opposite-spin corrections of SAFS26-b; second Opus campaign given window-related island themes | agents |
| Prompts quoted published validation and test errors of reference functionals and set beating GAS22 and SAFS26-a as a goal; no candidate test value was available during the first Opus campaign | agents |
| Category-resolved validation errors instead of a scalar fitness; warm starts from parent coefficients; screening penalty in the score | agents |
| Minimum taken on validation over repeated fits of the same form | agents |
| Seed is the validation minimum of the original 29,628-form search and keeps its published parameters, whereas children receive only a training-set CMA-ES fit | SyFES seed |
| Gradient-free CMA-ES from random starts; one evolution with three workers; PBEC instruction applied to and only | neither (not tested) |
Table 2. Differences between the two search workflows that bear on the comparison in Table 1.
During the second Opus campaign, the SCF test errors of O159 and GAS22, computed after the first campaign for reporting, were present in the shared notes; the agents were instructed not to use them for parent choice, search direction, or ranking. The Codex run was instructed to work without access to any earlier search results. The comparison therefore tests two complete workflows, including their search spaces and guidance.
The validation advantage did not transfer to held-out data. No new SyFES form was evaluated on the test split, so the relevant held-out comparison is with GAS22 itself, the product of an original search that explored about 20 times as many forms (29,628 versus about 1,480 proposed children here). GAS22 (test 3.599 kcal mol, non-SCF) is more accurate than O159 (3.818), O396 (3.841), and C356 (3.897), and all three also trail a training refit of GAS22 (3.628). What distinguishes the agent records is the experiments they contain: hypothesis-directed controls, such as moving the window to another channel or gating it by , that the randomly sampled SyFES mutations do not target and its scalar fitness does not record. These controls supply the window analysis of Supporting Information § 13.
Self-consistency preserves the O159 improvement
Table 3 brings together the primary MGCDB84 split and the completed GSCDB137 validation subset. On MGCDB84, O159 SCF lowers validation WRMSD from the reference’s 3.533 to 3.330 kcal mol and test WRMSD from 4.309 to 3.805, reductions of 5.7% and 11.7%. Its non-SCF and SCF errors differ by at most 0.013 kcal mol, so O159 retains its validation and test improvements over B97M-V after self-consistency. GAS22 nevertheless gives a lower test WRMSD of 3.589. Most of the test gain is already reached by the refitted no-window control O178 (non-SCF test 3.865 kcal mol), which adopts the GAS22-type same-spin polynomial.
| Functional | Mode | MGCDB84 val. | MGCDB84 test | GSCDB NER |
| B97M-V | SCF | 3.533 | 4.309 | 1.144 |
| GAS22 | non-SCF | 3.462 | 3.599 | 1.212 |
| GAS22 | SCF | 3.470 | 3.589 | 1.190 |
| O159 | non-SCF | 3.332 | 3.818 | 1.141 |
| O159 | SCF | 3.330 | 3.805 | 1.139 |
| O396 | non-SCF | 3.138 | 3.841 | 1.147 |
| C356 | non-SCF | 3.363 | 3.897 | — |
| O178 (no window) | non-SCF | 3.481 | 3.865 | 1.189 |
| GAS22 refit (Codex) | non-SCF | 3.489 | 3.628 | — |
Table 3. Performance on the MGCDB84 SyFES split and the 36-set GSCDB137 external-validation subset. Cached search/final-test evaluation; the other MGCDB non-SCF entries are direct full-grid reevaluations. WRMSD in kcal mol; 2,963 validation and 1,152 test reactions. Dimensionless mean over 36 equally weighted sets (2,734 observations), with published GAS22 parameters except the explicitly labeled Codex refit. Dashes denote unavailable evaluations. GAS22 SCF retains 20 unconverged MGCDB records and two unconverged GSCDB Pd records; energy-convergence qualifications are detailed in Supporting Information Section S4.
All O159 MGCDB84 calculations converged under the reported protocol. GAS22 retained 20 unconverged molecular records; excluding the affected reactions changes the split WRMSDs by at most 0.011 kcal mol. Category-resolved results show where the gain arises: O159 improves barrier-height test performance relative to B97M-V, whereas its easy-isomerization error is slightly higher. Easy isomerizations constitute 590 of the 1,152 test reactions, whereas difficult isomerizations contain only eight. Aggregate changes therefore reflect both category performance and the inherited weighting scheme.
The later search-validation gains do not produce the best held-out functional. [15] O396,
O388, and O376 have test WRMSDs of 3.841, 3.906, and 3.961, respectively, compared with O159’s non-SCF 3.818. C356 improves validation by 3.6% relative to its training-refitted GAS22 reference but worsens test by 7.4%, mainly through noncovalent-cluster and noncovalent-dimer regressions.
External performance on GSCDB137
On all 36 evaluated GSCDB137 datasets, O159 SCF has mean NER 1.139, compared with 1.144 for the local B97M-V reference. The paired mean difference is approximately (bootstrap interval spanning zero, signed-rank ), and on the 20 new datasets the mean NER is 1.269 versus 1.290. O159 and the reference therefore perform comparably on this scope, with no significant difference in either direction. [16, 45]
The local reference closely reproduces the published Q-Chem values: the median absolute difference between local and published B97M-V energies is approximately kcal mol, while four molecules differ by more than 1 kcal mol because of recorded electronic-state differences. The published and local reference mean NERs over 36 sets are 1.135 and 1.144, respectively. Comparisons against O159 therefore use the local reference. consistently. On the 20 new sets, O159’s mean NER lies below 15 of the 16 published comparator values, with only the double hybrid B97M(2) lower; on the 19 new datasets other than AE11, its mean SCF NER (1.202) is slightly above that of the local B97M-V reference (1.191).
GAS22 changes relative position between benchmarks. It has the lowest MGCDB84 test error among the evaluated SCF candidates but a higher mean NER than O159 on the external subset. AE11 halves this difference (Figure 4): the GAS22-minus-O159 mean NER difference is approximately 0.106 without AE11 and 0.052 with it (36 sets: signed-rank , bootstrap interval approximately [−0.085, 0.165]).

Figure 4. External-validation sensitivity to AE11. Left: mean NER for the 35-set scope without AE11 and the completed 36-set scope, with a truncated axis to resolve differences. Right: AE11 alone, an absolute heavy-atom energy dataset. O159 and GAS22 use SCF; O396 is non-SCF. Published reference rows are distinguished from the local B97M-V calculation. AE11 reduces the GAS22–O159 difference substantially, illustrating why the evaluated set membership must accompany aggregate ranks. Scope means are tabulated in Supporting Information Section S4.
Transfer varies with property class. O159 has a lower mean NER than the local reference on the nine noncovalent sets, but higher errors on the evaluated transition-metal, field-response, and vibrational categories. § 3.6 separates the contributions of the window and of the refitted coefficients to these differences. O396’s lower MGCDB84 validation error does not yield a lower external mean NER than O159 (1.147 versus 1.141, both non-SCF).
External test against the refitted control
On the 20 new datasets, the prespecified primary scope, 14 improve with the window, but larger losses on a few offset these gains: relative to the refitted no-window control O178, the mean NER changes by (95% CI [−0.171, 0.054], ; Table 4), and by +0.011 without AE11. Over all 36 datasets, the window lowers the mean NER from 1.189 to 1.141 (signed-rank ), to the level of the local B97M-V reference (1.144). The most consistent gain is on the 16 datasets with MGCDB84 antecedents (, ), which re-test MGCDB84 chemistry with revised references. As for the MGCDB84 controls (Supporting Information § 13), each difference measures the window together with the coefficient readjustment it induces.
| Datasets | O178 | O159 | B97M-V | 95% CI | |||
| New (primary) | 20 | 1.312 | 1.270 | 1.290 | −0.041 | [−0.171, 0.054] | 0.55 |
| New, without AE11 | 19 | 1.193 | 1.204 | 1.191 | +0.011 | [−0.046, 0.072] | 0.80 |
| With MGCDB84 antecedents | 16 | 1.036 | 0.979 | 0.961 | −0.057 | [−0.109, −0.010] | 0.018 |
| All | 36 | 1.189 | 1.141 | 1.144 | −0.048 | [−0.121, 0.011] | 0.041 |
| All, without AE11 | 35 | 1.122 | 1.101 | 1.086 | −0.020 | [−0.060, 0.021] | 0.067 |
Table 4. External test of the window against the refitted no-window control O178 on the GSCDB137 subset (non-SCF at B97M-V densities; mean NER, dimensionless). is O159 minus O178; negative values favor the window. O178 and O159 are non-SCF; B97M-V is the local SCF reference, and O159 SCF means differ from the non-SCF values by at most 0.003. New datasets have no MGCDB84 antecedent. is computed from unrounded means. Bootstrap intervals resample datasets; is from the paired signed-rank test. With the window, 26 of 36 datasets improve and 10 do not (14 of 20 new; 12 of 16 with antecedents). The rows are overlapping scopes and are not corrected for multiple comparisons. Per-dataset values and the recorded predictions are in Supporting Information § 13.
The largest external gain is for heavy-atom total energies (AE11, Ca to Rn), whose mean absolute error falls by 29%, from 415.8 to 295.8 kcal mol, the largest NER change of any dataset. Without the window, the refitted frame is less accurate than B97M-V on AE11 (NER 3.555 versus 3.154) and on the 36-set mean; the window brings AE11 below the reference (NER 2.529) and the 36-set mean to its level. This direction was predicted from the training trend for the AE18 atomic total energies (H–Ar; RMSD 7.60 to 5.56 kcal mol).
For P to Ar, the AE18 improvement comes from the co-adapted coefficients rather than from the window energy itself, and the atomic window energies lie largely outside the low-gradient, near-iso-orbital region () that dominates the reaction-energy attribution (Supporting Information § 13). The heavy-atom gain therefore reflects a different aspect of the window from its effect on reaction energies.
The comparison also indicates where O159’s external differences from B97M-V originate. The three transition-metal sets on which O159 trails B97M-V (3d4dIPSS, DAPD, and TMD10) are 1.8–6.0% more accurate with the window than without it, so those losses arise from the refitted base form (the GAS22-type same-spin polynomial and the refitted coefficients) rather than from the window. For V30 and Pol130, O178 (non-SCF) is at least as accurate as SCF B97M-V, so these losses accompany the window.
Per-dataset results resolve the external effect of the window. Among the new datasets, P34EA electron affinities worsened by 19%, as predicted from the EA13 and G21EA losses on MGCDB84, whereas G21EA itself improved by 20% on GSCDB137. The halogen, chalcogen, and pnictogen bonds of HCP32, predicted to improve, worsened by 16%, and the radical complexes of O24, predicted to worsen, improved by 8%. Among datasets without a prediction, MB08-165 and the oriented-field set OEEF improve by 14–16%, whereas vibrational frequencies (V30, +30%) and double ionization energies (DIPCS9, +22%) worsen. The recorded predictions were correct for 11 of 16 antecedent and 3 of 7 new datasets, or for 13 of 16 antecedent datasets when the stated rule is applied to WCPT6 and CT20, whose recorded predictions departed from it (Supporting Information § 13); predicting improvement everywhere would have scored 12 of 16 and 5 of 7.
Limitations and future directions
Training uses MGCDB84, and external evaluation covers 36 GSCDB137 datasets that exclude larger systems; extending to the full database would strengthen assessment across chemical regimes. [16] Difficult thermochemistry remains a target: O159 improves on GAS22 in the difficult-thermochemistry (TCD) test subset but trails B97M-V. Broader descriptors, flexible hybrid parameters, and additional exact conditions offer directions for improvement, including tests of fractional-spin behavior. [1, 3, 14, 46]
On the new GSCDB137 datasets, only the heavy-atom improvement transferred clearly, and the primary aggregate change was not significant. The descriptor analysis does not explain why the window helps heavy-atom total energies but harms vibrational frequencies and halogen, chalcogen, and pnictogen bonding. Testing the rule in other base functionals, including ones with a Stoll-consistent same-spin factor, would show whether the reduction in magnitude of the same-spin factor at intermediate density is general or specific to this hybrid frame; the single nonhybrid B97M-V control changes within fit noise.
Future work should test periodic SCF evaluation during search [8, 13, 47] and category-resolved objectives with independent validation partitions, to balance performance across properties and assess generalization. [15, 48] O159 passes all four screening checks and converges across MGCDB84; broader grid and derivative tests would support further applications. [14, 41]
Supporting Information Sections S4 and § 12 document external convergence qualifications and an incorrect low-density series in the archived exchange-attenuation implementation, whose correction changes no reported value.
Conclusions
Frontier LLM agents connected to a shared evaluator produced compact exchange–correlation functionals together with an inspectable record of how they were selected. The choice of backbone mattered: the Opus-5.5 agents reached the SCF gate with about 40-fold fewer tokens than the Codex agents and found the candidate with lower validation and held-out errors, O159, which retains its 11.7% test improvement over B97M-V under self-consistency and performs comparably to B97M-V on external GSCDB137 data.
Beyond a single functional, the search archive supplied the refitted controls that turn the discovered term into a design rule: in this hybrid frame, a same-spin density window should scale the entire same-spin factor at intermediate density, without acting on opposite-spin correlation or through a kinetic-energy gate. The agents’ advantage over SyFES evolution at a matched number of fits came from an explicit density scale that scale-invariant B97-type series lack, which points to density-dependent corrections of these series as a productive direction for functional design. More broadly, coupling language-model agents to physics-based screening, self-consistent evaluation, and external benchmarks makes automated search a source of testable design hypotheses as well as candidate functionals, with every proposal, control, and failure recorded for others to audit and extend.
Technology Use Disclosure
ChatGPT and Claude were utilized for grammatical refinement and typographical corrections. The authors have carefully reviewed and verified all sections of the manuscript for accuracy and integrity.
Data availability
The source code is publicly available on GitHub at https://github.com/BaratiLab/DFT_functional_agentic_searcher. Supporting Information Section S8 describes the contents of the reproducibility archive and its verification.
Author Contributions
A.C. performed software development and testing and did benchmarking. A.C. carried out the result analysis. Writing of the manuscript was done by A.C. ; A.B.F. conceived and approved the manuscript.
Conflicts of interest
The authors declare no conflicts of interest.
Acknowledgement
The authors would like to acknowledge the Mechanical and AI Lab at Carnegie Mellon University for computational resources.
Supporting Information Available
The Supporting Information is available free of charge: computational methods (S1), functional equations and parameters (S2), density-window analysis (S3), performance comparisons (S4), the SyFES baseline (S5), token accounting (S6), agent workflow and representative exchanges (S7), and data and reproducibility (S8).
Computational methods
Datasets and objectives
The searches used MGCDB84 reaction definitions and geometries from ACCDB, with the released SyFES partition and weighting procedure. [2, 3, 36] Omitting XB51_15 leaves 4,985 reactions and 5,930 unique molecular calculations. The training, validation, and test partitions contain 870, 2,963, and 1,152 reactions, respectively. Parameters were fitted only on training data; validation guided functional-form selection. Subsets were assigned as groups, so the partitions differ in chemical composition. In particular, the test partition contains 590 easy-isomerization reactions but only eight difficult-isomerization reactions.
For partition , weighted root-mean-square deviation (WRMSD) is
where is the signed stoichiometric coefficient and energies are in kcal mol ( kcal mol). The denominator is the reaction count, not the sum of weights. Category weights are 0.1 for difficult thermochemistry; 1 for easy thermochemistry and AE18; 10 for difficult noncovalent dimers, difficult isomerizations, and barrier heights; 100 for easy noncovalent dimers/clusters and easy isomerizations; and 10,000 for RG10. Subset normalization follows SyFES, pooling TCE with AE18 and NCED with NCEC. Positive-reference RG10 entries receive an additional factor , and validation weights are doubled. Exact reaction-level weights and membership are archived.
The combined diagnostic pools validation and test, excluding RG10 and retaining their existing weights (3,546 reactions). It includes selection data and is not an independent test metric. A post-search reporting variant, agentic2026, moves all eight C20C24 test reactions to validation, giving counts 870/2,971/1,144. This approximates the SAFS26 partition but does not reproduce its unspecified two-molecule transfer exactly. 10
The discovery runs used the original SyFES partition.
Reference densities, fitting, and screening
Reference orbitals used B97M-V/def2-QZVPPD, restricted or unrestricted Kohn–Sham calculations as appropriate, GPU4PySCF, and def2-universal-jkfit density fitting. [9, 29, 30, 39] The semilocal grid was PySCF level 3; VV10 used SG-1 pruning for systems with nuclear charges at most 18 and the default nonlocal grid otherwise. Reference SCF tolerance was . All 5,930 systems converged, requiring 84.6 GPU-h on three NVIDIA RTX 6000 Ada GPUs. Final reference energies used exact Coulomb/exchange integrals at the density-fitted orbital solution.
For candidates in the same hybrid frame, fixed-density screening replaces the semilocal energy:
The exact-exchange difference is additionally removed for the nonhybrid B97M-V seed. Cached features omit points with total density below a.u. and are stored in float32. The reference semilocal baseline is computed before that conversion; promoting cached features to float64 does not recover their original precision. Accordingly, cached search and full-grid reevaluation values are kept distinct: the B97M-V validation baseline is 3.533590004 in search metadata and 3.533226799 from the full-grid energies.
Every retained empirical coefficient and introduced empirical shape parameter was jointly fitted on training using PyTorch L-BFGS with strong-Wolfe line search, history 30, gradient tolerance , and objective-change tolerance . Restarts were selected by training loss. The search prompt limited requests to three restarts and 500 optimizer iterations; the server imposed a 560 s tool timeout and usual 410 s fitting budget. Training used compiled float32 kernels with an eager fallback; final metrics used float64. Budget exhaustion retained the best training iterate and did not certify optimization convergence. The recorded environment includes Python 3.12.14, PySCF 2.14.0, GPU4PySCF 1.8.1, PyTorch 2.14.1, CuPy 14.2.0, and MCP 1.30.0.
Four screening checks were applied:
Spin interchange: maximum on triplet points with a.u.
Uniform-gas exchange: absolute at unpolarized , after removing LDA exchange and range attenuation; the nonhybrid target is one.
Exchange-factor scaling: energy-weighted integrated change below on water under coordinate scales 0.5, 2, and 5, with range attenuation divided out.
Grid sensitivity: maximum semilocal-energy difference below 0.015 kcal mol across AE18 atoms on fixed densities integrated with (99,590) and (250,974) radial/angular grids.
Nonfinite outputs were rejected. The score was , with stored kcal mol and violation count . Routine SCF eligibility required zero violations and validation below 97% of the cached published B97M-V baseline. Passing these finite tests is not equivalent to satisfying all exact functional constraints or demonstrating SCF stability.
SCF and external evaluation
Frozen-parameter SCF calculations use PyTorch automatic differentiation to supply derivatives with respect to density, density gradients, and kinetic-energy density to GPU4PySCF. MGCDB84 candidate SCFs start from the reference orbitals, use a energy tolerance, and receive the exact-integral final-energy correction. Only O159 and published-parameter GAS22 have complete candidate MGCDB84 SCF campaigns. The implementation supplies first derivatives, not analytic Hessians or response kernels.
External evaluation followed the molecule-specific GSCDB137 Q-Chem inputs, including basis sets, grids, effective core potentials, electric fields, and electronic-state checks. [16] The cost cutoff selected 36 datasets whose largest molecule has at most 500 basis functions: 2,734 entries and 3,487 molecular/field calculations. Sixteen datasets have MGCDB84 antecedents; 20 do not. GSCDB137 was used for reporting only, with no fitting or functional selection. A complete SCF evaluation over the entire GSCDB137 dataset was not performed because of computational resource constraints.
Density fitting was restricted to def2 bases; other bases used exact Coulomb/exchange throughout. Documented high-angular-momentum issues required CPU core Hamiltonians and separate full-/long-range exchange builds. AE11 Rn was completed on the CPU and is included in the 36-set results. GSCDB mean normalized error ratio (NER) is
where is the benchmark-defined error measure and its fixed published normalization. Most sets use mean absolute error; the property datasets use their specified relative, weighted, or frequency metrics. NER is dimensionless and weights datasets equally, unlike reaction-weighted MGCDB84 WRMSD. Statistical comparisons use paired datasets, signed-rank tests, and 10,000-replicate bootstrap intervals (20,000 for the window control of § 13.10); reported intervals and their reproducible reanalysis are retained in the archive.
Principal functional expressions
Shared definitions and reference forms
Atomic units are used, with energy densities per unit volume. For spin , define
Here and are orbitals and occupations, , and . The default opposite-spin variables are , , and ; thus is not generally the mean of the two . Inactive channels are masked. Radii inside empirical factors denote their numerical values in bohr.
All principal candidates use the fixed range-separated hybrid frame
with and VV10 parameters , . [9, 32] Short-/long-range exact exchange use the erfc/erf kernels, respectively. Local exchange is ; . Correlation uses the Stoll partition of PW92 with the implementation’s PW_MOD constants: [33, 34]
These established local and nonlocal ingredients are implemented in the archived source; only the enhancement factors are evolved. The semilocal exchange constant 0.85 already appears in and must not be applied again outside it.
For reference, the B97M-V factors have the polynomial bases [9]
where and . The training refit varies 13 coefficients. GAS22 instead uses [3]
with , , , and . Its 12 published coefficients are distinct from the training-refitted seeds. Published GAS22 has at the uniform gas and fails the specified 0.85 check. Reference coefficients and all evaluated refits accompany the executable source.
O159: same-spin density window
Let and
The complete O159 factors are
where . All 13 retained coefficients were jointly refitted; retaining a reference polynomial form does not mean freezing its published coefficients. Table S1 gives the evaluated values; full precision is stored in functional_parameters.json.
| Parameter | Value | Parameter | Value |
| 0.24549733 | 1.14502582 | ||
| 1.00304439 | 3.75266635 | ||
| -4.69984961 | -3.35815548 | ||
| -4.88244588 | -10.59006317 | ||
| -1.96642642 | 10.37863864 | ||
| 7.80561285 | -0.25463509 | ||
| -0.26628913 |
Table S1. O159 fitted coefficients, rounded to eight decimal places.
The window approaches unity at both density extremes and changes the same-spin factor at intermediate density, as illustrated in the main manuscript’s density-window panel. Its parent O145 uses with independently fitted parameters. Figure S1 provides the complementary refitted ablation analysis: changing to improved validation by only 0.000562 , whereas removing the window worsened validation by about 0.148 . The exponent is therefore not determined by the data, whereas the window’s channel and its scope (the whole same-spin factor) are; profiles that remain large near bohr are indicatively disfavored (§ 13).

Figure S1. Refitted ablations of the O145 density-window architecture. Each point uses a separate joint training fit; the dashed line denotes O145 validation error. Removing the window raises validation WRMSD by approximately 0.148 kcal mol, while changing the cubic cutoff to the quartic O159 form gives nearly the same validation error. These comparisons do not isolate a term’s contribution at fixed coefficients. The analytic window shape is shown in the main manuscript rather than repeated here.
O396 and C356: later validation-selected candidates
For O396 define
With , , and , its ten-parameter form is
The stored shell coefficients are and ; the factor 100 is explicit. O388 omits the last opposite-spin shell term and has nine independently fitted parameters. The shell-region hypothesis was informed by a training-plus-validation residual scan, so its validation gain is not independent evidence for the proposed mechanism.
For C356, define the distinct density-weighted kinetic descriptor and smoothed root response
where . Its 14 fitted parameters enter
Only the pure pair is tied; the root couplings remain independent. The orbital-window term vanishes at , but does not force the entire same-spin correlation to vanish for one electron. The density screen uses total-density , unlike the O159 spin-channel radius. Neither O396 nor C356 has an SCF result; C356 was not evaluated on GSCDB137. Their evaluated coefficient sets and precursor/shortlist variants are supplied in the archive rather than repeated as long parameter tables here.
Numerical guards and the attenuation branch
The standard implementation activates a spin channel at a.u., floors squared gradients at , and imposes . Inactive channels are masked from energies and default opposite-spin averages. GSCDB convergence repairs lowered the density threshold to a.u. for the repaired records; the archive preserves that exception.
The analytic short-range exchange attenuation is
with and . To avoid cancellation, the archived PyTorch implementation switched at to the series . That series is the large- expansion for the alternative convention ; in the present variable, it equals rather than . The correct expansion is , which matches the closed form to (relative ) at . The archived branch was therefore four times too small and discontinuous at (0.0011094 versus 0.0044179). At , it affects only spin densities a.u. The upstream SyFES code evaluates the closed form throughout, so the published GAS22 parameters are unaffected. All archived O159, O396, C356, and GAS22 energies, fits, and SCF calculations used the branch, whereas the B97M-V reference energies were computed with libxc and are unaffected. The same branch also entered the torch B97M-V energy that the non-SCF expression subtracts.
We quantified the effect with a corrected-kernel reevaluation that used the archived parameters, reference densities, and integration grids, without refitting or new SCF calculations (Table S2). Non-SCF energies were recomputed as , where is the corrected-minus-archived semilocal energy of the candidate or of torch B97M-V at the same density. Cancellation between the two terms makes the non-SCF shifts very small. For SCF energies, the candidate shift was added at the B97M-V density. Two approximations are involved. Because the SCF energy is variational, the density response to the correction contributes only at second order. Evaluating the shift at the B97M-V density rather than at the candidate’s own density introduces an error proportional to the product of two small quantities, the shift itself and the density difference. Both are negligible at the reported precision. On MGCDB84, about 10% of the stored spin-channel grid points lie in the affected range. These are tail points: the largest per-molecule candidate shift is kcal mol (C ring, C20C24), and the largest non-SCF reaction-energy change is kcal mol (GAS22). On the 3,487 GSCDB137 calculations, the largest per-molecule shift is kcal mol. The most sensitive dataset is V30, whose frequencies are second finite differences of energies; its metric changes by at most 0.12% (GAS22 SCF, 32.021 to 32.059). Every WRMSD, mean NER, ranking, paired difference, and signed-rank value reported in this work is unchanged at its reported precision. The O159–B97M-V mean NER difference over 36 sets changes from to ( in both cases), and the GAS22–O159 difference changes from 0.05158 to 0.05160 ().
| Functional | Mode | train | val. | test | ||
| O159 | non-SCF | |||||
| O159 | SCF | |||||
| GAS22 | non-SCF | |||||
| GAS22 | SCF | |||||
| O396 | non-SCF | |||||
| C356 | non-SCF | — | — | |||
| B97M-V (libxc) | SCF | 0 | 0 | 0 | 0 | 0 |
Table S2. Effect of correcting the large- attenuation branch, using archived parameters and densities. MGCDB84 WRMSD changes are in kcal mol; GSCDB137 values are mean NER changes over 36 sets and over the 20 sets without MGCDB84 antecedents. SCF entries apply the first-order shift described in the text.
The fitted parameters are equally insensitive to the correction. Starting from the archived O159 coefficients, training-set reoptimization with the archived and with the corrected kernel converged to coefficient sets that differ by at most . The corresponding validation WRMSDs are 3.332431 and 3.332403 kcal mol, and the test WRMSDs are 3.817962 and 3.817956 kcal mol. Repeated fits from the original initialization are not bitwise reproducible, because they use compiled float32 kernels. Under both kernels, they reached the same two basins (validation 3.3326–3.3382 kcal mol), with a within-kernel coefficient spread of 0.11. This optimizer variability exceeds the kernel effect by more than four orders of magnitude. The O159 coefficients of Table S1 can therefore be used with the correct attenuation without changing any reported result. All four screening checks pass under both kernels. Automatic differentiation of the archived piecewise energy omits the surface term from the jump at , so the archived potential was not strictly stationary there. That term acts only at a.u., where and the exchange contribution is attenuated below 0.5%; its effect on SCF energies enters through the same tail densities whose shifts are bounded above. The potential discontinuity at lies at much higher density than the far minority-spin tail ( a.u.) that was responsible for the GSCDB convergence repairs. O159 and the other candidates are defined with the closed-form . Because the closed form cancels catastrophically for large , it should be evaluated with the corrected series for ; the corrected series is available in the released code, and the archived branch is retained only to reproduce the reported numbers. For the GSCDB137 records repaired with the a.u. density threshold, the affected range extends below a.u.; these records are included in the reevaluation.
Density-window analysis
This section derives an empirical design rule for the O159 density window from the refitted controls recorded during the search, localizes its effect on reaction energies, and tests it on external data. MGCDB84 quantities are computed from archived parameters on the cached B97M-V/def2-QZVPPD reference densities (float32 features, float64 arithmetic); GSCDB137 quantities use the stored B97M-V orbitals on the benchmark’s production grids. No functional was refitted and no SCF calculation was performed for this analysis; the -basin result of § 13.2 uses the O159 refits of the attenuation check (§ 12.4). Because the attenuation correction of § 12.4 changes no reported value, the archived kernel was used.
Refitted controls
Table S3 lists the archived controls. Each is a separate joint training fit proposed and recorded by the agents during the search, usually initialized from its parent. Records O92 and O125 head earlier window lineages on the GAS22 and B97M-V base forms, respectively; O145 combines published-form B97M-V exchange and opposite-spin factors (with the opposite-spin constant fixed at one) with the GAS22 same-spin polynomial.
| Record (parent) | Change relative to parent | Params | Train | Val. | |
| O145 (O143) | reference architecture, window | 13 | 3.226 | 3.333 | — |
| O159 (O145) | 13 | 3.252 | 3.332 | −0.001 | |
| O178 (O145) | window removed | 11 | 3.386 | 3.481 | +0.148 |
| O185 (O178) | analogous window on opposite-spin channel only | 13 | 3.172 | 3.682 | +0.201 |
| O186 (O178) | one shared window on both channels | 13 | 3.181 | 3.569 | +0.088 |
| O114 (O92) | total-density instead of | 16 | 3.199 | 3.453 | +0.074 |
| O136 (O125) | window on the uniform-gas same-spin term only | 14 | 3.323 | 3.667 | +0.330 |
| O184 (O145) | broad profile | 13 | 3.226 | 3.420 | +0.087 |
| O173 (O145) | exponential cutoff | 13 | 3.210 | 3.391 | +0.058 |
| O150 (O145) | profile | 13 | 3.222 | 3.367 | +0.034 |
| O137 (O125) | , peak moved from 0.79 to 0.60 bohr | 14 | 3.246 | 3.352 | +0.015 |
| O138 (O125) | , peak moved from 0.79 to 1.03 bohr | 14 | 3.150 | 3.420 | +0.083 |
| O96 (O92) | trainable peak scale | 17 | 3.178 | 3.379 | −0.000 |
| O152 (O145) | constant amplitude, | 12 | 3.238 | 3.344 | +0.011 |
| O166 (O152) | gate | 12 | 3.315 | 3.500 | +0.156 |
| O189 (O152) | gradient-corrected radius | 12 | 3.241 | 3.470 | +0.126 |
| O163 (O152) | kinetic radius | 12 | 3.282 | 3.362 | +0.018 |
| O164 (O145) | kinetic radius | 13 | 3.265 | 3.343 | +0.010 |
| O169 (O125) | exact uniform-gas same-spin limit imposed | 13 | 3.397 | 3.626 | +0.290 |
| O170 (O145) | exact uniform-gas same-spin limit imposed | 13 | 3.928 | 3.908 | +0.575 |
| O188 (O145) | O145 form from published parent coefficients | 13 | 3.220 | 3.386 | +0.053 |
| O187 (O178) | O145 form from the O178 optimum, small window | 13 | 3.237 | 3.425 | +0.0921 |
| O191 (O152) | O152 form from published parent coefficients | 12 | 3.227 | 3.392 | +0.047 |
| O1 | B97M-V form, training refit (seed) | 13 | 3.184 | 3.870 | — |
| O27 (O1) | window , B97M-V base | 15 | 3.049 | 3.648 | −0.2232 |
| O60 (O27) | window with amplitude, B97M-V base | 16 | 3.040 | 3.603 | −0.2672 |
| O98 (O60) | profile , B97M-V base | 16 | 3.074 | 3.543 | −0.3272 |
| O160 | B97M-V, uniform-gas constants fixed (control) | 12 | 6.178 | 6.189 | — |
| O161 (O3) | B97M-V with the same-spin window | 14 | 6.167 | 6.154 | −0.0363 |
Table S3. Table S3: Refitted controls of the same-spin window (non-SCF, cached search metrics, kcal mol). is the change in validation WRMSD relative to the parent.
Because all coefficients are refitted together, the window’s contribution cannot be read from its fixed-coefficient energy. Removing the window from O159 while retaining the other coefficients raises validation WRMSD from 3.332 to 5.595 kcal mol and test WRMSD from 3.818 to 7.188 kcal mol, whereas a refit without the window (O178) recovers to 3.481 and 3.865 kcal mol. Refitted controls are therefore the relevant comparison (Table S3 and Table S4). The fits depend on their starting point: the O145 form reaches validation WRMSDs of 3.333, 3.386, and 3.425 kcal mol from three initializations (O145, O188, O187), the last starting from the no-window optimum, and the O152 form spans 3.344–3.392 kcal mol.
| Change | Record (parent) | Inference | |
| Robust () | |||
| Window removed | O178 (O145) | +0.1481 | 0.148 of O145’s 0.200 gain over B97M-V |
| Analogous window on opposite-spin channel only | O185 (O178) | +0.2012 | specific to same-spin correlation |
| Window on the uniform-gas same-spin term only (B97M-V base) | O136 (O125) | +0.330 | must scale the whole same-spin factor |
| Gate (off in one-orbital regions) | O166 (O152) | +0.156 | needed where is large |
| Gradient-corrected radius | O189 (O152) | +0.126 | shifting the window to lower density at large gradient is harmful |
| Indicative (–) | |||
| One shared window on both channels | O186 (O178) | +0.0882 | not a generic correlation damping |
| Broad | O184 (O145) | +0.087 | weight near costly3 |
| O173 (O145) | +0.058 | as above | |
| , peak 0.79 1.03 | O138 (O125) | +0.083 | as above |
| Total-density instead of | O114 (O92) | +0.074 | shift to lower spin density4 |
| Within noise () | |||
| O159 (O145) | −0.001 | exponent indistinguishable | |
| , peak 1.0 | O150 (O145) | +0.034 | peak within 0.6–1.0 indistinguishable |
| , peak 0.79 0.60 | O137 (O125) | +0.015 | as above |
| Constant amplitude () | O152 (O145) | +0.011 | -dependence unresolved |
| Kinetic radius | O164 (O145) | +0.010 | indistinguishable from |
| Base same-spin factor | |||
| Stoll uniform-gas value restored | O169 (O125); O170 (O145) | +0.290; +0.575 | base factor far below the Stoll value |
Table S4. Classification of the refitted controls of the same-spin density window. is the change in validation WRMSD () relative to the parent record; each row is a separate joint training fit recorded during the search. Peak positions refer to in bohr.
We therefore regard changes larger than this 0.09 kcal mol spread as robust, changes of 0.05–0.09 kcal mol as indicative, and smaller changes as within noise. Because the controls were warm-started from their parents, we apply this single-fit spread rather than the larger spread expected between independently initialized fits (0.13 kcal mol), which would reclassify only O189 as indicative.
On this scale, O114, O138, O173, O184, and O186 are indicative, and O137, O150, O152, O161, O163, and O164 are indistinguishable from zero. Because peaks at , the scale and the peak position differ; the peaks of the O125, O137, and O138 windows lie at 0.79, 0.60, and 1.03 bohr, and that of O159 at 0.76 bohr. The GAS22-type
same-spin polynomial of O145 and O159 satisfies , so these functionals have no same-spin correlation for the uniform gas, and the window cannot change that limit. O169 and O170 restore the Stoll value there and test the base polynomial rather than the window. The magnitude of the fitted window follows from Eq. (21): peaks at 0.57 for bohr, so at the peak the multiplier is for and for .
Design rule
Table S4 classifies the controls by the robustness scale above.
The robust controls fix the channel and scope of the window. Relative to the same-spin window of O145, moving the window to the opposite-spin channel (O185, which also uses total-density ) or sharing it between channels (O186) costs 0.35 and 0.24 kcal mol; both lower the training error more than O145 does, so they overfit. A window on the uniform-gas same-spin term alone, a gate that switches the window off where is large, and a gradient-corrected length scale all cost more than 0.12 kcal mol. Together, these controls define an empirical design rule for this range-separated hybrid: reduce the magnitude of the entire same-spin enhancement factor at intermediate spin density, without a gate, a radius that moves it to lower density, or an opposite-spin counterpart. The controls come from three lineages (O92, O125, and O145), and the whole-factor inference (O136) was obtained on the B97M-V base. The rule applies to base factors of the GAS22 type, which vanish for the uniform gas and lie far below the Stoll value. O189 is consistent with the low-density result below: its radius moves the window peak to , toward 1.6 bohr in high-gradient regions.
The fitted amplitude is consistent across forms: a constant-amplitude window converged to and from the two tested starts of the form (O152, O191) and to with (O197, validation 3.361 kcal mol), reductions of 18–21% at the window’s peak, and the -dependent amplitude of O159 gives 15–30%; repeated refits of O159 (§ 12.4)
reach two basins with or at validation errors within 0.006 kcal , so the dependence is unresolved.
The indicative controls add that the window should not remain near its peak value at bohr ( a.u.): profiles retaining about 63% or more of their peak there cost 0.06–0.09 kcal , whereas narrow profiles, retaining at most 47%, peaking anywhere between 0.6 and 1.0 bohr cannot be distinguished (a threshold identified post hoc from these five profiles). The O159 window has a half-maximum range of –1.4 bohr (–0.09 a.u.). Restoring the Stoll uniform-gas value of the base factor costs 0.29–0.58 kcal . The sign of the window energy is analyzed below.
Analogous windows also improve the B97M-V base. Windows of the form or lower the validation error of the overfitted B97M-V training refit (training 3.184, validation 3.870 kcal ) to 3.543–3.648 kcal (O27, O60, O98), close to published B97M-V (3.533 kcal ). In the nonhybrid B97M-V form, the change (6.189 to 6.154 kcal ; O160, O161) is within noise.
Sign of the window energy
The GAS22-type same-spin polynomial changes sign with . For , is positive in the fitted O159 functional, and a multiplier below one lowers the energy; for it is predominantly negative, and the multiplier raises the energy. Near the sign depends on . Summed over all validation molecules, the window energy is kcal from and kcal from . The window therefore reduces the magnitude of the same-spin factor; it does not uniformly remove correlation energy.
Error decomposition against the refitted control
Table S5 decomposes the O178-to-O159 change in squared WRMSD by category. The contributions are exact and sum to the total; negative values reduce . Subset values are root-mean-square deviations of the subset; category and subset shares are computed with the same exact decomposition as the descriptor bins below.
| Split, | Category contributions to | Subsets, O178 O159 |
| Validation, 3.481 3.332 () | BH , RG10 , TCE , ID , NCEC , TCD , IE , NCD , NCED | improved: Shields38 0.490.35, HTBH38 1.711.49, HAT707nonMR 2.672.59, WATER27 0.490.42, ISOMERIZATION20 2.322.18, CR20 0.810.57; worsened: SW49Bind6 0.550.70, SW49Bind345 0.250.32, EA13 1.781.92, BzDC215, S66x8 |
| Training, 3.386 3.252 () | AE18 , ID , BH , NCED , NCD , TCE 0.000, NCEC , IE | improved: AE18 7.605.56, Styrene45 2.031.89, BHPERI26 1.241.02, DBH24 1.581.46; worsened: CRBH20 1.021.37, G21EA 2.482.66 |
| Test, 3.865 3.818 () | NCEC , IE , BH , TCE , TCD , NCED , ID | improved: H2O20Bind4 1.260.69, WCPT27 1.861.70, PX13 1.921.82, YMPJ519, H2O20Bind10; worsened: C20C24 5.395.72 (8 reactions), Ionic43 0.610.67, BSR36 |
Table S5. O178 (refitted, no window) to O159: category contributions to (kcal mol; negative values are improvements) and selected subset RMSDs (kcal mol).
Relative to the refitted control, O159 lowers the squared validation WRMSD mainly through barrier heights (35% of the reduction), easy thermochemistry (19%), difficult isomerizations (14%), and noncovalent clusters (12%); a further 22% is attributed to the heavily weighted RG10 (Table S5, note a). The largest subset gains are for Shields38, HTBH38 (1.71 to 1.49 kcal mol), HAT707nonMR, WATER27, ISOMERIZATION20, and CR20, whereas the sulfate–water anion clusters of SW49 and the electron affinities of EA13 worsen. On training data, 62% of the reduction comes from the AE18 atomic energies (RMSD 7.60 to 5.56 kcal mol; § 13.5).
On the held-out MGCDB84 test split, O159 lowers the non-SCF WRMSD relative to O178 from 3.865 to 3.818 kcal mol, about one third of the validation difference; the direction of individual categories is more informative than this net change. Noncovalent clusters ( in the squared WRMSD), easy isomerizations (), and barrier heights () improve; as on validation, water clusters and hydrogen- and proton-transfer barriers improve (H2O20Bind4, 1.26 to 0.69 kcal mol; WCPT27, 1.86 to 1.70 kcal mol; PX13), and ion-containing binding worsens (Ionic43, 0.61 to 0.67 kcal mol). Difficult isomerizations reverse, improving on validation but worsening on test (+0.423, dominated by the eight C20C24 reactions), and easy noncovalent dimers worsen on both splits (+0.260 on test). Most category directions found on validation thus recur on held-out data.
Atomic energies
Table S6 gives AE18 total-energy errors for the refitted control and O159, together with the window energy of each atom. AE18 is part of the training set. The control’s total energies show a period-dependent error: they are too low from C to Si and too high from P to Ar. O159 reduces both errors, except for Si, which is unchanged, whereas the errors for H to B grow. Because O178 and O159 are separate refits, the change is not the
| Atom | O178 | O159 | Atom | O178 | O159 | ||
| H | 2.25 | 2.98 | −0.83 | Ne | −9.90 | −7.11 | 3.54 |
| He | 0.94 | 1.65 | −2.62 | Na | −7.44 | −6.25 | 3.69 |
| Li | 0.62 | 2.51 | −2.07 | Mg | −10.66 | −9.79 | 4.54 |
| Be | −0.30 | 4.22 | −0.32 | Al | −6.85 | −6.26 | 5.62 |
| B | −1.74 | 4.81 | 0.66 | Si | −1.74 | −1.74 | 6.81 |
| C | −5.38 | 1.54 | 1.72 | P | 5.48 | 4.48 | 8.22 |
| N | −7.02 | −0.56 | 3.20 | S | 6.13 | 4.67 | 8.89 |
| O | −12.17 | −6.81 | 1.63 | Cl | 8.14 | 5.25 | 9.73 |
| F | −13.54 | −9.26 | 2.19 | Ar | 13.00 | 8.15 | 10.79 |
Table S6. AE18 total-energy errors (calculated minus reference, kcal mol) for the refitted no-window control O178 and for O159, and the O159 window energy (kcal mol).
Test values use full-grid non-SCF energies. The test split was not used for selection, but the descriptor analysis was performed after the test results were known. The net test change (0.047 kcal mol in ) is within the initialization spread of the fits.
window energy alone. For C to Si, is positive and has the sign that reduces the control’s error; for P to Ar, raises energies that are already too high, so the improvement there comes from the co-adapted coefficients. increases with atomic number overall but not monotonically (for example, O is lower than N). The improvement is therefore not specific to high-spin atoms: P changes only from 5.48 to 4.48 kcal mol. Because the window energy grows from kcal mol (He) to kcal mol (Ar), part of the AE18 training gain reflects a -dependent correction of atomic total energies, which reappears for heavier atoms in § 13.10. For second-period atoms, most of the positive window energy lies at – bohr (N, kcal mol; O, kcal mol), partly offset by the core region bohr. For Na to S, the positive contribution moves to – bohr. Because the window raises the energy only where the same-spin term is negative, which for the GAS22-type polynomial is mainly at , the atomic window energies arise largely outside the region that dominates the reaction-energy attribution below.
Descriptor-resolved attribution
For each molecule, the window energy was binned on 30 logarithmic intervals between 0.05 and 20 bohr, with underflow and overflow bins, and 20 intervals of , summing over grid points and spin channels. The bins reproduce each molecular window energy to within about . Three models were compared: O159 (“on”), O159 with and all other coefficients unchanged (“off”), and the refitted control O178. The split WRMSDs are listed in Table S7. With reaction weights , signed off-model errors , and bin contributions to the reaction window energy ,
| Split | Both | Electrons in both | |||||
| Training | 3.252 | 5.111 | 3.386 | — | — | — | — |
| Validation | 3.332 | 5.595 | 3.481 | 87% | 82% | 82% | 4.9% |
| Test | 3.818 | 7.188 | 3.865 | 88% | 91% | 91% | 5.4% |
Table S7. Window removal and localization of its effect. WRMSDs in kcal mol; shares are fractions of .
is an exact attribution of the change to descriptor bins. Neighboring bins carry large contributions of opposite sign, so only regional totals are interpreted. Because confines the multiplier to roughly bohr by construction, the shares are expected; the informative result is the localization. By category, 98% of the HTBH38 contribution arises at bohr, and the Shields38 and WATER27 contributions lie mostly at bohr with . The bins have width 0.1, so corresponds to ; the region bohr with accounts for 75% (validation) and 88% (test) of the change, from 3.1% and 3.2% of the electrons. The harmful SW49Bind contributions lie mostly (about 70%) in the same region ( bohr, ) as the gains; the tail bohr contributes slightly in the opposite direction.
Attribution at fixed coefficients shows where the window matters for reaction energies, as distinct from where it acts: the large window energies at hardly affect the reaction errors. This decomposition partitions the fixed-coefficient effect, which is about 20 (validation) and 100 (test) times the refitted gain over O178 in ; it therefore maps where the other O159 coefficients depend on the window. Since , with and the reduced gradient, the region requires : low-gradient, single-orbital or bonding regions, such as those near protons and at bond midpoints, rather than single-orbital density tails, which lie at .
Same-spin self-correlation of the hydrogen atom
The exact hydrogen-atom density was used to evaluate the semilocal correlation energy (VV10 excluded), which should vanish for a one-electron system (Table S8). The window lowers O159’s error relative to the same coefficients without the window, but the refitted control without the window has a smaller error than O159. The window gain is therefore not a correction of one-electron self-correlation. Along the hydrogen-atom density, the distance , 0.25, 0.5, and 1.0 bohr maps to , , , and , so the region within 0.5 bohr of the proton lies inside the band identified above. Within O159, the window acts as a partial, density-localized reduction of spurious anti-correlating same-spin energy in one-orbital-like regions, and it is needed where is large (O166). The controls also argue against a channel-independent damping of correlation (O185, O186).
| Functional | |
| B97M-V (published) | +4.11 |
| GAS22 (published) | +4.36 |
| O178 (refitted, no window) | +2.50 |
| O145 | +4.14 |
| O159 | +3.52 |
| O159, window removed at fixed coefficients | +4.55 |
Table S8. Semilocal correlation energy of the exact hydrogen-atom density (kcal mol; exact value 0).
Interpretation
A simple interpretation accounts for these results. The same-spin term inherits its density dependence from the same-spin PW92 energy, while its B97-type enhancement factor depends only on and , which are invariant under uniform coordinate scaling. At fixed and , the factor therefore cannot be reduced in one density range without being changed in others, and the fit leaves it too large in magnitude, and of anti-correlating sign, in low- regions of intermediate spin density. A multiplicative window in that tends to unity at both density limits adds an independent density scale without altering either limit; accordingly, a kinetic radius performs as well (O164). The closest analogue in nonempirical functionals is the correlation channel of SCAN-type functionals, which carries its own dependence; the window retrofits a density-dependent, low- correction onto a scale-invariant B97 same-spin series. Multiplicative corrections of B97-type factors are not themselves new: SAFS26-b applies broad corrections of the form to both correlation channels. What the present controls add is their characterization in this frame: the window should act on same-spin correlation only, scale the whole factor, carry no gate, and be small at bohr; the broad two-channel SAFS26-b form satisfies neither the first nor the last condition. The characterization makes a falsifiable prediction: any length variable that keeps the window peaked at – bohr and small near 2 bohr should perform equivalently, and an opposite-spin or broad window should again overfit.
External comparison with B97M-V
Table S9 lists all 20 GSCDB137 datasets without MGCDB84 antecedents, with O159 SCF and local B97M-V SCF results. O159 lowers the NER for 10 sets and raises it for 10. AE11, O24, and O24x4 improve and P34EA worsens; the transition-metal, field-response, and vibrational sets also worsen. § 13.10 separates the window from the refit of the other coefficients by comparison with O178.
| Dataset | Type | B97M-V | O159 | NER B97M-V | NER O159 |
| 3d4dIPSS | TM | 5.073 | 5.613 | 0.977 | 1.081 |
| AE11 | TC | 368.86 | 295.66 | 3.154 | 2.528 |
| ALKBDE10 | TC | 3.581 | 3.561 | 1.100 | 1.094 |
| DAPD | TM | 6.264 | 6.625 | 2.256 | 2.386 |
| Dip146 | EF | 0.0365 | 0.0391 | 1.051 | 1.125 |
| DIPCS9 | TC | 5.106 | 4.189 | 1.510 | 1.238 |
| HCP32 | NC | 0.503 | 0.515 | 0.879 | 0.901 |
| He3 | NC | 0.183 | 0.172 | 1.038 | 0.973 |
| HEAVY28 | NC | 0.178 | 0.155 | 0.943 | 0.821 |
| IP23 | TC | 2.519 | 2.461 | 0.991 | 0.969 |
| MB08-165 | TC | 3.791 | 3.986 | 0.829 | 0.872 |
| O24 | NC | 1.028 | 0.903 | 0.914 | 0.803 |
| O24x4 | NC | 0.603 | 0.580 | 0.860 | 0.828 |
| OEEF | EF | 0.0993 | 0.103 | 1.134 | 1.175 |
| ORBH35 | BH | 2.584 | 2.544 | 1.140 | 1.122 |
| P34EA | TC | 2.791 | 2.997 | 1.777 | 1.909 |
| Pol130 | EF | 0.0478 | 0.0490 | 2.010 | 2.062 |
| SIE4x4 | TC | 10.61 | 10.37 | 1.156 | 1.130 |
| TMD10 | TM | 6.458 | 7.003 | 1.144 | 1.241 |
| V30 | FQ | 27.83 | 33.55 | 0.926 | 1.116 |
Table S9. GSCDB137 datasets without MGCDB84 antecedents: benchmark error measure and NER for local B97M-V SCF and O159 SCF. Types: TM, transition metal; TC, thermochemistry; NC, noncovalent; BH, barrier height; EF, electric field; FQ, frequency. The error measure is the benchmark-specified metric of each dataset (mean absolute error in kcal mol for AE11); NER divides it by the fixed published normalization.
External test against the refitted control
The refitted no-window control O178 was evaluated non-self-consistently on the 36 GSCDB137 datasets at the same stored B97M-V densities as O159. O159 and O178 share the exact-exchange and VV10 contributions, so
where the semilocal difference is obtained by integrating the difference of the two semilocal energy densities on the production grid of each calculation. O159 energies are taken at full precision from the archived molecular records. The shortcut agrees with a direct O178 non-SCF evaluation to within for five molecules covering closed-shell, open-shell, field-dependent, transition-metal, and one-electron cases, and the recomputed O159 NERs reproduce the archived values exactly. As for O159, the archived attenuation kernel was used (§ 12.4), and the Rn atom of AE11 was treated as in the original calculation. The difference calculation required about 0.5 GPU-h.
Before the O178 energies were computed, a direction was recorded, with a timestamp preserved in the archive, for each dataset with a corresponding MGCDB84 training, validation, or test trend. For the new datasets, these were improvement for AE11 (extrapolating the AE18 trend), IP23 (IP13 improved), and HCP32 (XB51 and XB18 improved); worsening for P34EA (EA13 and G21EA worsened) and for O24 and O24x4 (noncovalent dimers worsened slightly); and no change for He3, whose energies are very small. Confidence was recorded as low except for P34EA and He3 (medium). For datasets with MGCDB84 antecedents, the prediction was intended to follow the sign of the corresponding MGCDB84 subset change against O178, or neutral where that change was negligible. Two recorded predictions departed from this rule: WCPT6 was predicted to improve from the WCPT27 test gain, although the MGCDB84 test subset WCPT6 itself worsened (RMSD 0.414 to 0.584 kcal mol), and CT20 was recorded as neutral despite a validation gain of 2.6% (0.106 to 0.103 kcal . The predictions are scored as recorded. Transition-metal, field-response, and vibrational datasets, and ALKBDE10, DIPCS9, MB08-165, SIE4x4, HEAVY28, and ORBH35, received no prediction. A dataset is neutral if its error measure changes by less than 1% relative to O178; a directional prediction is correct if the sign matches and the dataset is not neutral, and a neutral prediction is correct if the dataset is neutral. The primary aggregate, specified with the predictions, is the mean NER over the 20 new datasets; the other scopes are secondary. The aggregate statistics use datasets as sampling units (paired signed-rank test; bootstrap with 20,000 resamples). The expected aggregate effect, recorded with the predictions, was small or null on the new datasets, because the MGCDB84 test gain against O178 is only 0.047 kcal . The predictions were recorded after the O159 and B97M-V GSCDB137 results were known.
Table S10 lists every dataset. On the new datasets, 3 of 7 scored predictions were correct, and on the datasets with antecedents 11 of 16. Predicting improvement for every dataset would have scored 12 of 16 and 5 of 7. The window improves 26 of 36 datasets, but the aggregate gain on the new datasets is carried by AE11. Among datasets without a prediction, the largest changes are losses for V30 (+29.6%) and DIPCS9 (+22.1%) and gains for MB08-165 (−15.9%) and OEEF (−14.1%). Comparing the O178, O159, and B97M-V NER columns separates two sources of O159’s differences from B97M-V. For the transition-metal datasets that O159 describes less accurately than B97M-V (3d4dIPSS, DAPD, TMD10), O178 is less accurate still, so these losses arise from the refitted base form rather than from the window. For V30 and Pol130, O178 is at least as accurate as B97M-V, so these losses accompany the window. Within the antecedent group, G21EA improves by 20% although the MGCDB84 G21EA subset worsened against O178 (2.48 to 2.66 kcal ). WCPT6 worsens by 24.5%, as its MGCDB84 test subset did, contrary to the recorded prediction; applying the stated rule to WCPT6 and CT20 would have given 13 of 16 correct. The antecedent datasets overlap the MGCDB84 selection data, and AE18 is part of the training set, so agreement on them tests reproducibility under revised references.
| Dataset | Type | O178 | O159 | NER O178 | NER O159 | NER B97M-V | Prediction | |
| Datasets without MGCDB84 antecedents | ||||||||
| 3d4dIPSS | TM | 5.717 | 5.616 | −1.8 | 1.101 | 1.081 | 0.977 | — |
| AE11 | TC | 415.8 | 295.8 | −28.9 | 3.555 | 2.529 | 3.154 | better (l) ✓ |
| ALKBDE10 | TC | 3.703 | 3.568 | −3.6 | 1.138 | 1.096 | 1.100 | — |
| DAPD | TM | 7.054 | 6.632 | −6.0 | 2.540 | 2.388 | 2.256 | — |
| Dip146 | EF | 0.0375 | 0.0392 | +4.6 | 1.079 | 1.128 | 1.051 | — |
| DIPCS9 | TC | 3.426 | 4.183 | +22.1 | 1.013 | 1.237 | 1.510 | — |
| HCP32 | NC | 0.443 | 0.514 | +16.1 | 0.775 | 0.899 | 0.879 | better (l) × |
| He3 | NC | 0.178 | 0.171 | −3.9 | 1.013 | 0.973 | 1.038 | neutral (m) × |
| HEAVY28 | NC | 0.164 | 0.155 | −5.0 | 0.865 | 0.822 | 0.943 | — |
| IP23 | TC | 2.487 | 2.460 | −1.1 | 0.979 | 0.968 | 0.991 | better (l) ✓ |
| MB08-165 | TC | 4.769 | 4.008 | −15.9 | 1.043 | 0.876 | 0.829 | — |
| O24 | NC | 0.983 | 0.908 | −7.6 | 0.874 | 0.808 | 0.914 | worse (l) × |
| O24x4 | NC | 0.590 | 0.583 | −1.2 | 0.841 | 0.831 | 0.860 | worse (l) × |
| OEEF | EF | 0.120 | 0.103 | −14.1 | 1.367 | 1.174 | 1.134 | — |
| ORBH35 | BH | 2.616 | 2.543 | −2.8 | 1.155 | 1.122 | 1.140 | — |
| P34EA | TC | 2.524 | 3.007 | +19.1 | 1.607 | 1.915 | 1.777 | worse (m) ✓ |
| Pol130 | EF | 0.0476 | 0.0491 | +3.2 | 2.003 | 2.068 | 2.010 | — |
| SIE4x4 | TC | 10.509 | 10.368 | −1.3 | 1.145 | 1.130 | 1.156 | — |
| TMD10 | TM | 7.210 | 7.016 | −2.7 | 1.278 | 1.243 | 1.144 | — |
| V30 | FQ | 25.902 | 33.573 | +29.6 | 0.862 | 1.117 | 0.926 | — |
| Datasets with MGCDB84 antecedents | ||||||||
| AE18 | TC | 6.327 | 4.925 | −22.2 | 1.278 | 0.995 | 1.072 | better ✓ |
| BDE99MR | TC | 4.135 | 4.222 | +2.1 | 1.248 | 1.274 | 1.228 | neutral × |
| BDE99nonMR | TC | 1.606 | 1.556 | −3.1 | 0.832 | 0.806 | 0.790 | better ✓ |
| BH76RC | TC | 0.974 | 0.902 | −7.4 | 0.968 | 0.897 | 0.846 | better ✓ |
| CT20 | NC | 0.0713 | 0.0687 | −3.7 | 0.797 | 0.768 | 0.818 | neutral × |
| DBH22 | BH | 1.227 | 1.151 | −6.2 | 1.017 | 0.954 | 0.973 | better ✓ |
| G21EA | TC | 1.681 | 1.343 | −20.1 | 1.228 | 0.982 | 1.001 | worse × |
| HAT707MR | TC | 3.629 | 3.578 | −1.4 | 1.130 | 1.114 | 1.090 | better ✓ |
| HAT707nonMR | TC | 1.935 | 1.818 | −6.1 | 0.819 | 0.769 | 0.805 | better ✓ |
| ISOMERIZATION20 | IS | 1.824 | 1.734 | −4.9 | 1.394 | 1.326 | 1.166 | better ✓ |
| NC11 | NC | 0.0420 | 0.0413 | −1.8 | 0.773 | 0.759 | 0.829 | neutral × |
| RG10N | NC | 0.0840 | 0.0847 | +0.8 | 0.790 | 0.797 | 0.872 | neutral ✓ |
| SN13 | TC | 0.714 | 0.592 | −17.2 | 1.132 | 0.937 | 0.799 | better ✓ |
| TA13 | NC | 1.611 | 1.613 | +0.1 | 1.187 | 1.189 | 1.228 | neutral ✓ |
| TAE_W4-17MR | TC | 4.423 | 4.350 | −1.7 | 1.438 | 1.414 | 1.345 | better ✓ |
| WCPT6 | TC | 0.364 | 0.453 | +24.5 | 0.548 | 0.682 | 0.517 | better × |
Table S10. Table S10: GSCDB137 per-dataset comparison of O159 with the refitted no-window control O178 (both non-SCF at the stored B97M-V densities). Error measures are the benchmark-specified metrics; is the relative change of the error measure from O178 to O159 (%). The B97M-V NER is the local SCF reference. Types as in Table S9; IS, isomerization. Predictions were recorded before O178 was evaluated; (l) and (m) denote low and medium confidence, which was recorded only for the new datasets. ✓, correct; ×, incorrect; —, no prediction. Rounded relative changes near ±1% are classified from unrounded values.
Performance comparisons
MGCDB84: primary split and selected candidates
Table S11 compares the completed full-grid calculations on the discovery partition. O159’s improvement over B97M-V persists under SCF, while GAS22 retains the lower test error. All 5,930 O159 calculations converged under the recorded protocol. GAS22 retains 20 unconverged molecular records; excluding the 31 affected reactions changes split WRMSDs by at most 0.011 kcal mol. Both complete and exclusion-based results are archived.
| Functional | Mode | Train | Validation | Test | VT |
| B97M-V | SCF | 3.319 | 3.533 | 4.309 | 3.867 |
| GAS22 | non-SCF | 3.270 | 3.462 | 3.599 | 3.657 |
| GAS22 | SCF | 3.264 | 3.470 | 3.589 | 3.664 |
| O159 | non-SCF | 3.252 | 3.332 | 3.818 | 3.613 |
| O159 | SCF | 3.253 | 3.330 | 3.805 | 3.607 |
Table S11. MGCDB84 SyFES: direct full-grid non-SCF and SCF WRMSDs (kcal mol).
Published parameters for both reference functionals; frozen fitted parameters for O159. Counts (train/validation/test/VT): 870/2963/1152/3546. VT excludes RG10. GAS22 SCF retains 20 unconverged molecular records; the sensitivity analysis is reported separately.
The later fixed-density candidates have lower validation errors but higher test errors than O159 (Table S12). C356 improves validation by 3.6% relative to its training-refitted GAS22 seed but worsens test by 7.4%. Published and refitted GAS22 are different parameter sets. The other four Codex shortlisted candidates were not tested; no missing SCF or test score is inferred from their eligibility.
| Candidate | Parameters | Training | Validation | Test |
| O159 | 13 | 3.252 | 3.332 | 3.818 |
| O396 | 10 | 3.140 | 3.138 | 3.841 |
| O388 | 9 | 3.191 | 3.236 | 3.906 |
| O376 | 12 | 3.230 | 3.294 | 3.961 |
| C356 | 14 | 3.207 | 3.363 | 3.897 |
| GAS22 refit (Codex) | 12 | 3.266 | 3.489 | 3.628 |
Table S12. Selected cached non-SCF results on the SyFES split (kcal mol).
Comparison with the SAFS26 reporting partition
Table S13 brings together all seven functionals reported in SAFS26 and the locally tested comparators for which the required split metrics are available. Its explicit column combines validation and test excluding RG10, retaining their existing weights. Panel A contains the original paper’s non-SCF results. Panels B/C use the local C20C24-reassigned
| Functional | Training | Validation | Test | WRMSD |
| A. SAFS26 paper: reported non-SCF results | ||||
| B97M-V | 3.32 | 4.02 | 3.64 | 4.07 |
| GAS22 | 3.27 | 3.74 | 3.19 | 3.77 |
| SAFS26-x | 2.91 | 3.95 | 3.49 | 3.81 |
| SAFS26-a | 2.76 | 3.65 | 3.41 | 3.70 |
| SAFS26-b | 2.75 | 3.78 | 3.44 | 3.83 |
| AFS26-a | 2.81 | 3.74 | 3.78 | 3.90 |
| AFS26-b | 2.65 | 3.65 | 3.96 | 3.90 |
| B. This work: non-SCF and SCF reference | ||||
| B97M-V (SCF reference) | 3.319 | 4.086 | 3.632 | 4.090 |
| GAS22 | 3.270 | 3.778 | 3.168 | 3.788 |
| O159 | 3.252 | 3.736 | 3.307 | 3.776 |
| O396a | 3.140 | 3.640 | 3.225 | 3.664 |
| O388a | 3.191 | 3.796 | 3.196 | 3.786 |
| O376a | 3.230 | 3.855 | 3.249 | 3.844 |
| C356a | 3.207 | 3.756 | 3.410 | 3.849 |
| GAS22 refit (Codex)a | 3.266 | 3.804 | 3.198 | 3.818 |
| B97M-V refit (Codex)a | 3.191 | 4.363 | 4.052 | 4.368 |
| C. This work: candidate SCF results | ||||
| GAS22 | 3.264 | 3.782 | 3.161 | 3.793 |
| O159 | 3.253 | 3.726 | 3.304 | 3.767 |
Table S13. MGCDB84 comparison with SAFS26: reported and approximately matched splits (kcal mol).
All test values use frozen parameters. Cached scores are distinguished from the full-grid evaluations in Table S11. Exact values, category errors, and the complete shortlisted-record table are archived.
reporting variant, which approximates that paper’s partition; the exact transferred molecule identities and fitted SAFS26 coefficients are unavailable.5 The 3,547 versus 3,546 combined-observation counts make the difference in scope explicit.
Published-reference and O159 values come from the completed full-grid reevaluation included in the reproducibility archive. Later candidates and the Codex reference refits are reaggregated from archived validation, test, and category squared errors: all eight C20C24 test reactions enter validation with twice their former weight. No candidate is refitted, reselected, or newly evaluated. The archived reaction-weight files verify this transfer rule, and it reproduces all five saved full-grid reaggregations to numerical precision. Seed-only B97M-V and untested shortlist records cannot be transferred without their missing C20C24 test errors and therefore have no comparable row.
On the local reporting variant, combined SCF WRMSDs are 4.090 for B97M-V, 3.793 for GAS22, and 3.767 for O159. GAS22 still has the lower test error (3.161 versus 3.304 kcal mol). Cross-paper differences in the table combine different partitions, parameter sets, and SCF/non-SCF modes.
WRMSD combines validation and test, excluding RG10, with their existing weights. Panel A transcribes Tables 1 and 3 of Ref. 10 (3,547 combined observations). Panels B/C use the local agentic2026 reporting variant (870/2,971/1,144 reactions; 3,546 combined): all eight C20C24 reactions move to validation and receive twice their test weight. The paper reports moving two molecules without identifying them; these splits are therefore approximate matches, not identical. aArithmetic reaggregation of archived cached scores; other local rows use saved full-grid energies. All parameters are frozen. GAS22 uses published coefficients except in the Codex refit. O396, O388, O376, C356, and the Codex refits have no SCF results in this table. Seed-only B97M-V and untested shortlist records cannot be reassigned without their C20C24 test errors. SAFS26-x violates the four checks; SAFS26-a fails the grid check. GAS22 SCF retains the previously disclosed unconverged records.
GSCDB137: evaluated scope and sensitivity
Table S14 reports the complete 36-set scope, the 20 sets without MGCDB84 antecedents, and the sensitivity analysis excluding AE11. O159 SCF has mean NER 1.139 versus 1.144 for the local B97M-V reference. Their paired mean difference is approximately (; reported bootstrap interval ). The two functionals thus give comparable errors on this scope.
| Functional/mode | All 36 | New 20 | Without AE11 (35) |
| B97M-V published | 1.135 | 1.285 | 1.077 |
| B97M-V local SCF | 1.144 | 1.290 | 1.086 |
| O159 non-SCF | 1.141 | 1.270 | 1.101 |
| O159 SCF | 1.139 | 1.269 | 1.099 |
| O396 non-SCF | 1.147 | 1.316 | 1.110 |
| GAS22 non-SCF | 1.212 | 1.344 | 1.227 |
| GAS22 SCF | 1.190 | 1.319 | 1.205 |
Table S14. Mean GSCDB137 NER on the evaluated subsets (dimensionless).
Published GAS22 parameters are used. New denotes sets without an MGCDB84-derived role. Means weight sets equally; no new-functional evaluation covers all 137 datasets. O396 is non-SCF only and C356 has no external evaluation.
Including AE11 reduces the GAS22-minus-O159 SCF mean difference from about 0.106 to 0.052. For all 36 sets, the signed-rank accompanies a bootstrap mean-difference interval of , which includes zero. The local and published B97M-V rows are distinct because of recorded electronic-state differences; their median absolute molecular-energy difference is approximately kcal mol, but four molecules differ by more than 1 kcal mol.
GSCDB repairs resolved the unconverged classification for O159, although 12 of its 15 repaired records were accepted as energy-stable at a residual gradient floor rather than meeting the strict gradient threshold. GAS22 has 52 such repaired records and two remaining unresolved Pd records. Noise-limited acceptance used a best gradient below and small energy spread among the five smallest-gradient iterates; the largest observed accepted spread was . Record-specific tolerances and the density-mask change are preserved with the repair diagnostics. Energy changes were at most kcal mol and mean-NER changes at most . These qualifications do not change the reported subset ordering but preclude a claim of uniformly strict convergence.
Non-LLM baseline: SyFES regularized evolution
Implementation and protocol
The baseline reimplements the SyFES symbolic machinery for the GPU evaluator used in this work. It includes the published instruction pool (five arithmetic instructions with probability 0.06 each, six power instructions with 0.05 each, the -transform with 0.1, and the PBEX, RPBEX, B88X, and PBEC instructions with 0.075 each); the four mutation rules (insertion, removal, replacement, and argument change), each with probability 0.25; a component-selection probability of for exchange, same-spin, and opposite-spin factors; at most two bound parameters per enhancement factor; and functional-equivalence fingerprints. GAS22 encoded as instructions reproduces the published closed forms to . Evolution settings follow the original study: population 100, tournament size 25, mutation probability 0.9 (otherwise the tournament winner is re-added), and aging removal. Each new form was fitted on training data by CMA-ES with five restarts from , initial step size 1, bounds , function tolerance , and at most evaluations per restart. A restart stopped early if all losses were at least or if the best loss exceeded 50 after 5,000 evaluations. Fitness was the validation WRMSD of the restart with the lowest training loss. A child whose fingerprint matched an earlier form re-entered the population with the cached fitness and was not trained. Nonfinite children were discarded. The search stopped after 400 trained forms. The seed was GAS22 with published parameters (float64 training and validation WRMSDs 3.2702 and 3.4623 kcal mol).
The implementation differs from the original in six respects that leave the mutation operators and fitness definition unchanged. Only parameters that enter a form are optimized, whereas the original also passed unused shared parameter slots to CMA-ES. Within CMA-ES, nonfinite loss evaluations are assigned , which reproduces the behavior of the CMA-ES library version used originally. A child already being trained on another worker is skipped. The search runs asynchronously on three GPU workers rather than 50. Fingerprints use the PW_MOD local-correlation constants of this work. Loss accumulation is adaptive: float32 accumulation (noise about kcal mol) is used while the last generation of a restart spans more than 0.01 kcal mol, followed by float64 accumulation (noise about kcal mol); final training values are recomputed in float64, and the seed’s training WRMSD is reproduced as 3.270186 kcal mol against the float64 reference 3.270184 kcal mol. Per-point quantities that do not depend on parameters are precomputed once; each form is compiled into one fused kernel per spin-row type and evaluated for all CMA-ES samples of all five restarts together. After the search, the seed and the ten best forms were re-evaluated in float64 with the evaluator of the main study and screened with the four tests.
Results and cost
The run used 20 h 30 min of wall time on three NVIDIA RTX 6000 Ada GPUs, which were shared with another GPU service throughout, 61.1 GPU-h of fitting (mean 550 GPU-s, median 545 GPU-s, maximum 1,615 GPU-s per form), and CMA-ES evaluations (mean per form). Of the 400 trained forms, 368 were finite and 51 ended within 60 GPU-s because early stopping removed nonviable mutants. The mutated component was the opposite-spin factor in 156 cases, the same-spin factor in 130, and the exchange factor in 114; the mutation types were 148 insertions, 133 argument changes, 94 replacements, and 25 removals. In addition, 1,079 children were fingerprint-equivalent to earlier forms, 167 tournament winners were re-added without mutation, and four children were skipped as duplicates in training. Among the finite forms, 30 had validation WRMSDs below 3.6 kcal mol, 81 below 4.0 kcal mol, and 42 above 10 kcal mol.
No trained form improved on the seed’s validation error (Table S15). The best-validation Form numbers are population identifiers, which include untrained fingerprint-equivalent children. The parameter count of GAS22 includes its two -transform parameters, which the SyFES representation treats as fitted.
| Form | Params | Train | Validation | Violations | Failed test |
| GAS22 (seed, published) | 14 | 3.2702 | 3.4623 | 1 | uniform-gas exchange |
| SyFES-174 | 14 | 3.4441 | 3.5057 | 0 | — |
| SyFES-55 | 14 | 3.2690 | 3.5542 | 1 | uniform-gas exchange |
| SyFES-699 | 14 | 3.2072 | 3.5554 | 1 | uniform-gas exchange |
| SyFES-1244 | 14 | 3.1896 | 3.5655 | 1 | uniform-gas exchange |
| SyFES-30 | 14 | 3.1934 | 3.5683 | 1 | uniform-gas exchange |
| SyFES-11 | 14 | 3.1891 | 3.5739 | 1 | uniform-gas exchange |
| SyFES-57 | 14 | 3.1888 | 3.5895 | 1 | uniform-gas exchange |
| SyFES-1266 | 14 | 3.1883 | 3.5944 | 1 | uniform-gas exchange |
| SyFES-784 | 15 | 3.1883 | 3.5945 | 1 | uniform-gas exchange |
| SyFES-542 | 14 | 3.1883 | 3.5949 | 1 | uniform-gas exchange |
Table S15. SyFES baseline: float64 re-evaluation of the seed and the ten best forms (stored parameters, kcal mol).
trajectory among trained forms reached 3.504 kcal mol (search value) at the 95th trained form (population identifier 174) and did not improve afterwards. Its training and validation errors are also higher than those of the L-BFGS training refits of the unmodified GAS22 form (Codex: 3.266 and 3.489 kcal mol; Opus validation 3.490 kcal mol; -transform parameters fixed), the seed used in the agent searches; the added term brings no validation gain. SyFES-174 descends from GAS22 through two fingerprint-equivalent intermediates and is effectively one same-spin mutation: an added term with unit coefficient, where , followed by a joint refit of all 14 parameters. It passes the uniform-gas exchange test (deviation 0.0032) that GAS22 fails (0.0121). The other nine forms fit training better than GAS22 and validate worse; most add a cubic or sixth-power term or an additional constant to the exchange factor, and all fail the uniform-gas exchange test. The same training–validation tradeoff appears in unconstrained branches of the agent searches.
Comparability
The baseline matches the original study in the evolution algorithm, instruction set, mutation rules, equivalence checking, CMA-ES protocol, fitness definition, data partition, weights, and non-SCF energies on fixed B97M-V densities. Its instructions act only on the scale-invariant features and , as in the original study, so it cannot express an explicit density scale such as the O159 window (the PBEC instruction is applied to and and introduces no true density scale); the agent searches could additionally use (equivalently ). Quantities such as and are functions of and and were in principle reachable by SyFES, although not by single mutations. The published GAS22 is reproduced at validation 3.462 kcal mol non-SCF, and on test at 3.599 kcal mol (non-SCF; 3.585 published) and 3.589 kcal mol (SCF). The baseline differs from the original study in three respects. First, the original search started from the B97M-V form with all parameters refitted on training data (train/validation/test 2.97/3.82/4.47 kcal mol) and evolved to GAS22; the baseline starts from GAS22 itself, the validation-selected minimum of that entire search. It therefore asks whether SyFES can improve on its own published result, not whether it can rediscover GAS22. Second, the original study ran 12 evolutions with 50 workers each and explored 29,628 forms; the baseline is one evolution with about 1,480 proposed children (400 trained and 1,079 equivalent), about 5% of that exploration. Third, the seed retains its published parameters, whereas each child receives only a training-set CMA-ES fit. CMA-ES applied to the GAS22 form from random starts reaches a training WRMSD of about 3.205 kcal mol after evaluations per restart and is still decreasing, below the published 3.270 kcal mol. The published parameters therefore lie in a different minimum that validates well, and near-miss children may largely be GAS22 refits with an almost inert additional term. The validation error of a CMA-ES refit of the unmodified GAS22 form was not measured; the L-BFGS refit with fixed -transform parameters validates at 3.490 kcal mol. The baseline is thus a comparison with the agent searches at a matched number of trained forms on the same split, metric, and non-SCF frame, but with a narrower search space; it is not a replication of the original B97M-V-to-GAS22 evolution.
Non-SCF token consumption
Definition and aggregate accounting
At each candidate submission, the evaluation service records the change in cumulative token usage of the run. The total is the sum of uncached input, output, cache-read input, and cache-creation input. Output already includes reasoning-output tokens where reported; these are not added twice. Cumulative run totals sum non-seed charges, including failed attempts. Concurrent proposals, earlier-result summaries, and audit work can be charged to the next submission, so a zero delta does not imply zero model work and a large delta is not necessarily the cost of that record alone.
Table S16 summarizes the runs. Opus contains 397 successful non-seed submissions (396 constraint-clean); the retained Codex run contains 400 successes and one failed attempt. These counts include initialization controls and repeated fits, not only distinct forms. Opus and Codex denote the run archives of the Opus-5.5 and Codex (GPT-6-Astra) agents, respectively.
| Scope | Records | Input | Output | Cache read | Cache write | Total |
| Opus | 397 | 0.002 | 1.500 | 244.909 | 5.010 | 251.421 |
| Opus, omit ID 201 | 396 | 0.002 | 1.285 | 200.864 | 3.743 | 205.893 |
| Codex | 401 | 7.852 | 1.028 | 512.494 | 0 | 521.374 |
| Superseded Codex | 200 | 0.829 | 0.128 | 31.136 | 0 | 32.094 |
Table S16. Assigned non-SCF tokens, in millions except record counts.
Input is uncached. Values are rounded independently; exact component counts and per-record ledgers are supplied as CSV. The superseded experiment is separate from the 798-attempt retained-run comparison.
Opus records 4–200 carry 64,309,206 tokens and records 201–400 carry 187,111,323. ID 201 includes a 45,527,678-token charge booked after the interval between campaigns. It is excluded from the distributions in Figure S3 and included in the cumulative progress of Figure S4. The Codex total includes 404,586 tokens for failed ID 213. Its final validation-report snapshot contains a further 9,665,130 tokens after the last submission, outside the assigned total of 521,373,961.

Figure S3. Token distributions and composition. Distribution panels (a,b) omit Opus ID 201 and omit zero charges on logarithmic axes; bars indicate nonzero medians. Composition panel (c) includes all charges, including ID 201. The arithmetic means in the text include zero-charge records within each stated scope.

Figure S4. Cumulative assigned tokens versus best constraint-clean validation WRMSD. All charges enter the horizontal axis, including Opus ID 201 and Codex failure 213. Values above 3.9 kcal mol are outside the displayed range but remain in the archive. Passing evaluator checks is distinct from passing later source/parsimony audits. No held-out test or external metric updates the curves.
Cache reads comprise 97.410% of the full Opus total and 98.297% of Codex usage. Mean charges are 633,301 tokens per Opus record (519,931 excluding ID 201) and 1,300,184 per Codex attempt. There are 94 and 17 zero-charge records, respectively. Excluding Opus ID 201, mean output is 3,244.0 tokens per record versus 2,562.6 for Codex. Thus, the larger Codex total predominantly reflects context/input accounting, not a proportionate increase in generated text.
Iteration profiles and validation progress
Figure S2–Figure S4 summarize token use by iteration. Exact per-iteration components and cumulative values are provided in two run-specific CSV files in the reproducibility archive.

Figure S2. Token charges by database record ID for the retained runs: 397 Opus and 401 Codex attempts. Rows show total, output, and cumulative charges. The first two use symmetric-log axes that retain zeros; cumulative axes are linear. The Opus ID 201 inter-campaign charge and Codex failure 213 are included. Input and cache components are available for every record in the companion CSV files.
The first constraint-clean SCF-gate crossings occur at O55 after 10,169,271 assigned tokens and C339 after 399,861,159. O159 is reached at 49,926,626 tokens, O396 at 249,942,965, and C356 at 440,604,859. O145 to O159 adds only a 0.000562 kcal mol validation improvement over an interval carrying 6,409,234 tokens across multiple proposals. Codex refinement from C339 through C350 to C356 lowers validation from 3.406690 to 3.373555 to 3.362805 while worsening noncovalent-dimer errors. Its eventual test outcome reverses the validation advantage over the refitted GAS22 reference.
The retained searches stopped at their assigned iteration/evaluation budgets, not at a demonstrated global optimum. Opus ends at ID 400; Codex stops after 400 successes plus one failed attempt. No later Codex record improves C356’s raw validation score. The summed evaluator durations are approximately 11.09 and 8.56 h, distinct from elapsed calendar time and token usage. The Codex run was interrupted and resumed within the same experiment, so its elapsed time exceeds its computation time.
The superseded 200-attempt Codex experiment had 198 successes and two infrastructure failures, with best validation 3.495181443 at ID 107, above the SCF gate. Its verified assigned total is 32,093,724 tokens, but only 44 per-record totals and 39 full component splits were recoverable. Missing entries are explicitly blank in its separate CSV; no interpolation is used.
Agent workflow and representative exchanges
The multi-agent framework combines a coordinator, thematic islands, shared lineage/memory, and numerical evaluator workers through MCP. [17] Each iteration records a proposal before evaluation and an outcome summary afterward, following the Plan–Execute–Summarize organization used in SAFS26. 10 The completed Codex run used four islands, audits every 50 successes, and at most three concurrent GPU evaluations. Final successful allocations were 100/120/100/80 after a documented budget transfer. The Opus archive contains thematic lineages A–H across two continued campaigns.
The Codex shortlist used validation eligibility followed by a tolerance band favoring fewer parameters, a smaller validation–training gap, and fewer category regressions. Source and parameter hashes were frozen before test access. Only C356 and its two authorized refitted references were subsequently tested. Audit exclusions remained distinct from numerical constraint failures: the final Codex review excluded 29 records, and 17 Opus continuation records were excluded for frozen published exchange coefficients.
Persistent plans and summaries make these distinctions auditable. The O145-to-O159 record separates the proposed density-window change from its very small validation gain, while the C339-to-C356 sequence records both aggregate improvement and worsening noncovalent categories. Source audits exposed unused parameters, intended changes absent from code, and frozen-coefficient variants. The records therefore document the search decisions themselves. Because the agents proposed and logged refitted ablations as part of the search, the same records also supplied every control in Table S3; the window analysis of § 13 required no additional fitting of the controls.
Generic initial prompt
The box below is a representative condensation of the task instructions; the list of example directions is quoted from the original prompt. The continuation prompt for the second Opus campaign assigned island themes that built on the first campaign, including refinement of the same-spin window. Original prompts are preserved in the archive.
Task instructions — representative reconstruction
Coordinate a multi-agent search for compact exchange-correlation functional forms. Keep omega = 0.3 bohr^-1, short-/long-range HF fractions = 0.15/1.0, and VV10 b = 6, C = 0.01 fixed.
Modify the semilocal exchange and same-/opposite-spin correlation factors using spin density, gradients, and positive kinetic-energy density. Explore structurally different ideas, for example new bounded descriptors, rational/Pade forms with positive denominators, r_s- or zeta-dependent correlation, iso-orbital (alpha) regimes, different gradient/kinetic transforms, and correlation forms that obey known limits (e.g. one-electron self-correlation freedom via tau_W/tau, high-density scaling). Submit one Functional subclass with all fitted coefficients and empirical shape parameters in init_params(). Do not freeze fitted parent coefficients as hidden constants.
Fit on 870 training reactions; use 2963 validation reactions to compare forms. The 1152 test reactions remain unavailable during search. Request at most 3 restarts and 500 optimizer iterations; select restarts by training loss only.
Before evaluation, record the algebraic change, initialization, parameter count, rationale, and constraint risks. Inspect aggregate/category errors, spin symmetry, uniform-gas exchange, scaling, grid sensitivity, and numerical finiteness. Afterward, record the actual outcome, including failures and tradeoffs.
Use shared lineage and memory, thematic islands, periodic migration, and independent source/parameter audits. At the assigned budget, freeze the shortlist. Test, SCF, and external evaluation are separate reporting stages, not feedback for revising this search.
Density-window refinement: O145 to O159
These exchanges are abridged reconstructions from submitted plans, source changes, and saved outputs, not verbatim transcripts.
Proposal — reconstructed from the O159 record
Replace the parent’s same-spin window by , aiming to reduce the correction in diffuse regions while retaining an intermediate-density effect. Keep 13 parameters, initialize from O145, and jointly refit all retained coefficients.
Evaluator feedback — rounded saved values, kcal/mol
| O145 | O159 | |
| Training | 3.225679 | 3.251690 |
| Validation | 3.332936 | 3.332374 |
| Violations | 0 | 0 |
Table 1 (PDF p. 66).
O159 charge: 733348 total tokens; 3550 output tokens.
Outcome summary — evidence-based reconstruction
The cutoffs have nearly equal measured validation errors. O159 has the smaller training-validation gap, with mixed category changes. The result does not establish a unique physical preference for exponent four. Later SCF/external results were not available in this evaluator response.
Screen refinement and coefficient tying: C339 to C356
Successive proposals — reconstructed from source and plans
C350: replace by , where , in the opposite-spin kinetic correction. Keep 15 parameters and refit.
C356: tie the pure kinetic pair as . Retain independent root couplings, the same-spin orbital window, and the density screen. Reduce to 14 jointly fitted parameters.
Evaluator feedback — rounded saved values, kcal/mol
| C339 | C350 | C356 | |
| Training | 3.226480 | 3.189786 | 3.207428 |
| Validation | 3.406690 | 3.373555 | 3.362805 |
| Violations | 0 | 0 | 0 |
Table 1 (PDF p. 67).
C356 NCED/NCD regression vs GAS22 refit: 10.85% / 5.61%.
Outcome summary — evidence-based reconstruction
Aggregate validation improves with one fewer coefficient, but category regressions remain. Joint refitting does not isolate the coefficient tie as the unique cause. After the search was frozen, C356’s test error was 3.897343 versus 3.627617 for its GAS22 refit; this later outcome was not search-time feedback.
Data and reproducibility
The source code is available at https://github.com/BaratiLab/DFT_functional_agentic_searcher. The accompanying archive supplies full-precision parameters and functional source, exact token ledgers, all split/category/set metrics, 5,930 MGCDB84 and 3,487 GSCDB137 absolute-energy records with convergence flags, benchmark geometry/input files, and figure-generation code. Its README maps all manuscript and SI figures to their data and scripts.
Exhaustive numerical tables and precursor formulas are provided in the archive.
Arithmetic verification reproduced 40 full-grid MGCDB84 aggregates and 1,080 GSCDB137 metric cells from the archived energies, with maximum discrepancies of kcal mol and zero in the recorded Python 3.12 environment. All 9,417 geometry/input hashes were checked. Independent transcriptions of O159, O338, O396, and C356 matched their source on 2,048 synthetic spin-polarized points each. These checks establish data consistency and equation transcription. The attenuation-branch correction is quantified separately in § 12.4; its reevaluation scripts and per-molecule shifts for all 5,930 MGCDB84 and 3,487 GSCDB137 calculations are included in the archive, as are the window-analysis scripts, descriptor bins, recorded predictions, and per-molecule O178 semilocal differences for the GSCDB137 control. Large reference-density and feature caches are not included; the scripts that regenerate them are.
References
For Table of Contents Only

Figure 5 (PDF p. 75).
References
- [1]Kaplan, A. D.; Levy, M.; Perdew, J. P. The predictive power of exact constraints and appropriate norms in density functional theory. Annual Review of Physical Chemistry 2023, 74, 193–218.DOI
- [2]Mardirosian, N.; Head-Gordon, M. Thirty years of density functional theory in computational chemistry: an overview and extensive assessment of 200 density functionals. Molecular physics 2017, 115, 2315–2372.
- [3]Ma, H.; Narayanaswamy, A.; Riley, P.; Li, L. Evolving symbolic density functionals. Science Advances 2022, 8, eabq0279.DOI
- [4]Pederson, R.; Kalita, B.; Burke, K. Machine learning and density functional theory. Nature Reviews Physics 2022, 4, 357–358.DOI
- [5]Nagai, R.; Akashi, R.; Sugino, O. Completing density functional theory by machine learning hidden messages from molecules. npj Computational Materials 2020, 6, 43.arxiv.org/abs/1903.00238
- [6]Dick, S.; Fernandez-Serra, M. Machine learning accurate exchange and correlation functionals of the electronic density. Nature communications 2020, 11, 3509.DOI
- [7]Kasim, M. F.; Vinko, S. M. Learning the Exchange-Correlation Functional from Nature with Fully Differentiable Density Functional Theory. Phys. Rev. Lett. 2021, 127, 126403, DOI: 10.1103/PhysRevLett.127.126403.DOI
- [8]Li, L.; Hoyer, S.; Pederson, R.; Sun, R.; Cubuk, E. D.; Riley, P.; Burke, K. Kohn-Sham equations as regularizer: Building prior knowledge into machine-learned physics. Physical review letters 2021, 126, 036401.DOI
- [9]Mardirosian, N.; Head-Gordon, M. ωB97M-V: A combinatorially optimized, range-separated hybrid, meta-GGA density functional with VV10 nonlocal correlation. The Journal of chemical physics 2016, 144. Duston, T.; Liang, J.; Wang, Y.; Gao, W.; Wen, X.; Sheng, N.; Ren, W.; Sun, Y.; Chen, Y. Agentic Discovery of Exchange-Correlation Density Functionals. arXiv preprint arXiv:2605.05460 2026,
- [11]Adhikari, S.; Parker, K. A.; Osaro, E.; Roy, S.; Rocca, D. Agentic AI for Density-Functional Development: Revisiting r2SCAN. arXiv preprint arXiv:2609.19419 2026,arxiv.org/abs/2609.19419
- [12]Romera-Paredes, B.; Barekatain, M.; Novikov, A.; Balog, M.; Kumar, M. P.; Dupont, E.; Ruiz, F. J.; Ellenberg, J. S.; Wang, P.; Fawzi, O.; others Mathematical discoveries from program search with large language models. Nature 2024, 625, 468–475.
- [13]Sim, E.; Song, S.; Vuckovic, S.; Burke, K. Improving results by improving densities: Density-corrected density functional theory. Journal of the American Chemical Society 2022, 144, 6625–6639.arxiv.org/abs/2203.06863
- [14]Furness, J. W.; Kaplan, A. D.; Ning, J.; Perdew, J. P.; Sun, J. Accurate and numerically efficient r2SCAN meta-generalized gradient approximation. The journal of physical chemistry letters 2020, 11, 8208–8215.DOI
- [15]Kapoor, S.; Narayanan, A. Leakage and the reproducibility crisis in machine-learning-based science. Patterns 2023, 4.DOI
- [16]Liang, J.; Head-Gordon, M. Gold-Standard Chemical Database 137 (GSCDB137): a diverse set of accurate energy differences for assessing and developing density functionals. Journal of Chemical Theory and Computation 2025, 21, 12601.arxiv.org/abs/2508.13468
- [17]Hou, X.; Zhao, Y.; Wang, S.; Wang, H. Model context protocol (mcp): Landscape, security threats, and future research directions. ACM Transactions on Software Engineering and Methodology 2026, 35, 1–37.
- [18]Chandrasekhar, A.; Ock, J.; Farimani, A. B. Catalyst-Agent: Autonomous heterogeneous catalyst screening with an LLM Agent. arXiv preprint arXiv:2603.01311 2026,arxiv.org/abs/2603.01311
- [19]Nigam, V.; Chandrasekhar, A.; Farimani, A. B. Polymer-Agent: Large Language Model Agent for Polymer Design. Journal of Chemical Information and Modeling 2026, 66, 5145.
- [20]Chen, H.; Chandrasekhar, A.; Farimani, A. B. Pepti-Agent: An AI Agent for Peptide Design and Optimization. arXiv preprint arXiv:2606.15422 2026,arxiv.org/abs/2606.15422
- [21]Chandrasekhar, A.; Farimani, O. B.; Meda, R. S.; Farimani, A. B. Material Database Agent: A Multimodal Agentic Framework for Scientific Literature Mining. arXiv preprint arXiv:2605.04278 2026,arxiv.org/abs/2605.04278
- [22]Zhao, A.; Chandrasekhar, A.; Farimani, A. B. Polyjarvis: Llm agent for autonomous polymer md simulations. arXiv preprint arXiv:2604.02537 2026,
- [23]Pak, P.; Chandrasekhar, A.; Farimani, A. B. Agentic additive manufacturing alloy evaluation. Additive Manufacturing Letters 2026, 100355.arxiv.org/abs/2510.02567
- [24]Barati Farimani, O.; Chandrasekhar, A.; Farimani, A. B. Automating MD simulations for proteins using large language models: NAMD-agent. Digital Discovery 2026, DOI: 10.1039/d6dd00535g.DOI
- [25]Ock, J.; Meda, R. S.; Badrinarayanan, S.; Aluru, N. S.; Chandrasekhar, A.; Barati Farimani, A. Large language model agent for modular task execution in drug discovery. Journal of Chemical Information and Modeling 2026, 66, 2055–2068.DOI
- [26]Zeng, T.; Badrinarayanan, S.; Ock, J.; Lai, C.-K.; Barati Farimani, A. LLM-guided chemical process optimization with a multi-agent approach. Machine Learning: Science and Technology 2025, 6, 045067.arxiv.org/abs/2506.20921
- [27]Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; others Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems 2019, 32.arxiv.org/abs/1912.01703
- [28]Kochenderfer, M. J.; Wheeler, T. A. Algorithms for optimization; Mit Press, 2019.
- [29]Sun, Q.; Zhang, X.; Banerjee, S.; Bao, P.; Barbry, M.; Blunt, N. S.; Bogdanov, N. A.; Booth, G. H.; Chen, J.; Cui, Z.-H.; others Recent developments in the PySCF program package. The Journal of chemical physics 2020, 153.DOI
- [30]Li, R.; Sun, Q.; Zhang, X.; Chan, G. K.-L. Introducing GPU acceleration into the python-based simulations of chemistry framework. The Journal of Physical chemistry. A 2025, 129, 1459.DOI
- [31]Wu, X.; Sun, Q.; Pu, Z.; Zheng, T.; Ma, W.; Yan, W.; Xia, Y.; Wu, Z.; Huo, M.; Li, X.; others Enhancing GPU-acceleration in the Python-based simulations of chemistry frameworks. Wiley Interdisciplinary Reviews: Computational Molecular Science 2025, 15, e70008.DOI
- [32]Vydrov, O. A.; Van Voorhis, T. Nonlocal van der Waals density functional: The simpler the better. The Journal of chemical physics 2010, 133.DOI
- [33]Perdew, J. P.; Wang, Y. Accurate and simple analytic representation of the electron-gas correlation energy. Physical review B 1992, 45, 13244.pubmed.ncbi.nlm.nih.gov/10001404
- [34]Stoll, H.; Pavlidou, C. M.; Preuß, H. On the calculation of correlation energies in the spin-density functional formalism. Theoretica chimica acta 1978, 49, 143–149.
- [35]Mardirosian, N.; Head-Gordon, M. Mapping the genome of meta-generalized gradient approximation density functionals: The search for B97M-V. The Journal of chemical physics 2015, 142.
- [36]Morgante, P.; Peverati, R. ACCDB: A collection of chemistry databases for broad computational purposes. Journal of Computational Chemistry 2019, 40, 839–848.DOI
- [37]Ma, H.; Narayanaswamy, A.; Riley, P.; Li, L. Code for “Evolving symbolic density functionals”. Zenodo, 2022; https://zenodo.org/records/6767222, Version v1; software.DOI
- [38]Weigend, F.; Ahlrichs, R. Balanced basis sets of split valence, triple zeta valence and quadruple zeta valence quality for H to Rn: Design and assessment of accuracy. Physical chemistry chemical physics 2005, 7, 3297–3305.pubmed.ncbi.nlm.nih.gov/16240044
- [39]Rappoport, D.; Furche, F. Property-optimized Gaussian basis sets for molecular response calculations. The Journal of chemical physics 2010, 133.DOI
- [40]Pritchard, B. P.; Altarawy, D.; Didier, B.; Gibson, T. D.; Windus, T. L. New basis set exchange: An open, up-to-date resource for the molecular sciences community. Journal of chemical information and modeling 2019, 59, 4814–4820.DOI
- [41]Bartók, A. P.; Yates, J. R. Regularized SCAN functional. The Journal of chemical physics 2019, 150.DOI
- [42]Pederson, R.; Burke, K. The difference between molecules and materials: Reassessing the role of exact conditions in density functional theory. The Journal of Chemical Physics 2023, 159.arxiv.org/abs/2303.01766
- [43]Gibbons, J. D.; Chakraborti, S. International encyclopedia of statistical science; Springer, 2025; pp 1737–1740.
- [44]Holmes, S.; Huber, W.; Martin, T. Modern statistics for modern biology. (No Title) 2019,
- [45]Lakens, D.; Delacre, M. Equivalence testing and the second generation p-value. Meta-Psychology 2020, 4.
- [46]Kirkpatrick, J.; McMorrow, B.; Turban, D. H.; Gaunt, A. L.; Spencer, J. S.; Matthews, A. G.; Obika, A.; Thiry, L.; Fortunato, M.; Pfau, D.; others Pushing the frontiers of density functionals by solving the fractional electron problem. Science 2021, 374, 1385–1389.DOI
- [47]Kalita, B.; Pederson, R.; Chen, J.; Li, L.; Burke, K. How well does Kohn–Sham regularizer work for weakly correlated systems? The Journal of Physical Chemistry Letters 2022, 13, 2540–2547.DOI
- [48]Bates, S.; Hastie, T.; Tibshirani, R. Cross-validation: what does it estimate and how well does it do it? Journal of the American Statistical Association 2024, 119, 1434–1445.
