Augmenting large language models with chemistry tools
Paper · 2024 · Andres M Bran, Sam Cox, Oliver Tobias Schilter et al.
Summary
A chemistry question can sound straightforward while requiring several kinds of work. Finding a suitable compound might involve reading the literature, resolving a name to a molecular structure, and checking whether a proposed experiment is feasible. A fluent answer can conceal mistakes at any of those stages. ChemCrow gives GPT-4, a large language model, access to 18 tools and asks it to decide which ones to use as a task unfolds. The tools provide access to scientific documents, molecular databases, chemical calculations, and a robotic laboratory. Each result becomes part of the information GPT-4 can use to choose its next step.
The authors tested that arrangement against GPT-4 working without external tools on 14 chemistry tasks. Expert chemists judged the answers on chemical accuracy, reasoning quality, and how fully they carried out the request. They generally favored ChemCrow, particularly on harder tasks that required specific chemical facts or credible procedures. The systems fared similarly on reasoning quality. An automated grader, EvaluatorGPT, tended to prefer the more fluent and complete-looking answers from GPT-4. On these tasks, an answer could make a good impression on the automated grader while containing errors that mattered to a chemist.
The paper also reports experiments with physical outcomes. ChemCrow used a cloud-connected laboratory to produce the insect repellent DEET and three known organocatalysts, compounds that accelerate reactions. In a separate collaboration, it cleaned existing data, fitted a predictor, and screened candidate chromophores, molecules selected for how they absorb light. The human team made and characterized the suggested compound. The requested absorption maximum was 369 nm. The measured maximum was 336 nm, establishing that the compound was made and showing how closely its measured property matched the design goal.
ChemCrow’s contribution is the coordination of specialized tools through a single request and a sequence of decisions informed by their results. A tool can supply a fact, a calculation, or feedback from laboratory software, but the usefulness of that evidence depends on how the system obtains and interprets it. The demonstrations establish that such coordination can reach the laboratory in selected workflows. The disagreement between graders shows why chemical correctness still calls for inspection by someone who can check the underlying facts.
Deep dive: Augmenting large language models with chemistry tools
ChemCrow gives GPT-4 access to chemistry tools for research tasks, and expert review shows where those tools improve the answers. · about 34 minutes to read
The problem and its context
Getting an answer into a form chemistry can use
A person can ask about a compound by its everyday name, its formal name, or the job they want it to do. Chemical software frequently expects a particular representation of the compound. The difference matters when the answer will become the input to a calculation. A plausible description of a molecule can be sufficient for a conversation, while a program needs to know exactly which atoms are connected. If the wrong structure enters the workflow, accurate calculations about that structure can still leave the original question unanswered.
The authors use conversion from an IUPAC name to a molecular graph to illustrate the problem. An IUPAC name identifies a compound according to chemical naming conventions. A graph describes the atoms and how bonds connect them. GPT-4 and GPT-3.5, in the authors’ account, are unreliable at this conversion. The paper puts the example alongside a multiplication problem. Both have answers that specialized software can produce, and both can expose the difference between plausible text and a correct operation. The authors trace the difficulty to the underlying task of predicting successive pieces of text. That training objective gives the system broad linguistic abilities. It leaves room for errors on operations whose outputs have to follow exact rules.
For chemistry, the issue extends beyond exact conversion and calculation. A literature question may depend on a particular finding in a paper. A supplier query depends on what is available through a service. A request to carry out an experiment depends on whether the laboratory can accept its instructions. Each involves information that comes from somewhere different. The authors’ proposal starts from the observation that a general-purpose assistant can recognize several of these needs in a single request. They ask whether it can satisfy them by turning to the systems that already do the relevant work.
A request stated in terms of a function also leaves intermediate decisions open. If the user asks for a compound suitable for a particular purpose, the assistant must decide what evidence would qualify a candidate, which compound the evidence refers to, and what work remains after identification. An answer can succeed at identifying a candidate and still fall short of the rest of the request. ChemCrow makes this sequence part of the system under study. The paper follows the decisions connecting the initial instruction with the final report or experiment.
What computational chemistry already supplied
The paper describes a field with established tools for individual problems. A reaction predictor starts with reactants and proposes what they will produce. Retrosynthesis approaches a related problem from the other direction. It starts with a desired product and searches backward for ways to make it. Other methods predict molecular properties, generate structures, or assist materials design. The authors also discuss Bayesian optimization, where observations help determine which candidates or experimental settings are worth investigating next.
These tools address different kinds of uncertainty. A structural converter can give a definite answer for a name it handles correctly. A reaction predictor supplies a forecast whose accuracy depends on the case. A search tool retrieves records that still need to be interpreted. Even within its specialty, a tool has a scope determined by the problems it was built for and the information available to it. For the authors, the opportunity was to bring these capabilities into one workflow while preserving those distinctions.
RXN for Chemistry and AiZynthFinder illustrate how specialized capabilities had already been assembled in particular environments. The authors describe a practical barrier to broader use. A tool may be available as open-source software or through an application programming interface, yet still demand familiarity with its inputs, outputs, and scope. An application programming interface, or API, lets one program make requests to another in an agreed format. A researcher combining tools must also manage the transitions between them. A service that identifies a compound, for example, may describe it in a form different from the one expected by a calculation program.
This integration burden matters in a field where experiments remain central. The authors point to gaps in available data and to the narrow applicability of many computational approaches. An experimental chemist can recognize these constraints and still face a substantial learning curve when assembling the relevant software. Conversely, an easy interface can hide distinctions an expert would immediately notice, such as the difference between a predicted product and an observed one. The interface therefore has to do more than make tools accessible. It has to carry enough context from one operation to the next for the results to remain meaningful.
Why put GPT-4 in charge of the sequence?
Earlier work reviewed in the paper gave the authors grounds for using a language-based assistant as the coordinator. The Transformer underlies the language systems they discuss. The paper describes their ability to respond to requests with few examples or without examples supplied for a particular task. It also points to studies suggesting that systems trained to generate code can handle chemical terminology, interpret intent, and sometimes adapt to observations. Those abilities make it plausible that a system could translate a loosely specified goal into a series of more specific requests.
Research on chain-of-thought prompting provided a way to ask the assistant to work through intermediate steps. ReAct supplied the more direct architectural precedent. It alternates reasoning with actions that return information. The paper also cites MRKL as an example of combining a language interface with external knowledge and computational components. In ChemCrow, the chemistry-specific contribution comes from the choice of tools, how their inputs and outputs are described, and the kinds of tasks the resulting system can attempt.
The authors situate ChemCrow alongside Autonomous chemical research with large language models, which also connected a language-based assistant to external tools for chemistry. They describe that contemporary work as focused on cloud laboratories. ChemCrow includes a cloud laboratory connection within a wider set of tasks. Some of its assignments end in an explanation or a molecular comparison. Others require a data analysis or an experiment. The breadth of those endpoints motivates an interface in which the next action can depend on what has already happened.
The method, step by step
From a request to an observation
ChemCrow starts with the user’s instruction and a catalogue of available tools. For each tool, the catalogue tells GPT-4 what the tool does and what kind of input and output to expect. The catalogue is part of the prompt, so the assistant can use it when deciding whether to seek outside information. The chemical databases, programs, and laboratory services remain external. The assistant learns what they return through individual calls during the task.
Imagine that a question names a compound and asks for a property tied to its structure. The assistant first needs to decide whether the name identifies a specific molecule and whether the relevant tool accepts that kind of name. It can request a conversion to a structural representation, receive the result, and use that result in a subsequent call. The intermediate response matters. If the conversion is unsuccessful, the assistant has an opportunity to reconsider the input or choose another way to identify the compound before it hands anything to the property tool.
The control loop makes that exchange explicit. In a field called Thought, GPT-4 writes about the current state of the task and what it should do next. In Action, it names the selected tool. In Action Input, it supplies the argument for that call. Generation pauses while the surrounding program attempts to run the tool. The result re-enters the conversation under Observation. GPT-4 can then use the expanded context to decide whether it has enough information to answer, whether it should continue, or whether it needs assistance from the user.
How ChemCrow works through a chemistry request
The steps in order.
The distinction between an action request and an observation is central to the design. A line proposing a calculation expresses an intention. A returned value records what the calculation tool produced for the submitted input. The tool response can then constrain the next decision. The architecture provides a way to obtain outside evidence, while the assistant still has to decide how much weight to give that evidence. A database response, a predicted outcome, and an error message each say something different about the work completed so far.
The Thought field is part of the interaction format. It gives the program a place to elicit a proposed course of action and lets an evaluator inspect the rationale expressed in the answer or trace. Chemical validity requires separate evidence. A well-organized explanation may still begin with a wrong compound assignment or rely on an unsupported prediction. The paper’s human evaluation keeps reasoning quality and chemical accuracy as distinct judgments for precisely the kinds of cases where the two come apart.
What the authors set up
The experiments used GPT-4 at a temperature of 0.1. Temperature is a setting that affects how generated text is sampled. The authors integrated the tools through LangChain, a framework that provides interfaces for prompts, language services, and external actions. In this implementation, the framework helps pass calls and results between GPT-4 and the tools. It also supports the interruption of text generation while an external operation runs.
The authors assembled and described 18 tools for the research system. The method they report is chiefly an integration and prompting procedure. GPT-4 supplies the decisions about what to do, and running a tool supplies information or performs an operation during the task. Training enters the chromophore experiment in a separate way. In that case ChemCrow fits a task-specific predictor on molecular data as part of fulfilling the user’s request.
The catalogue also includes a human interface. ChemCrow can pause to ask a question when it is uncertain about the next step. A user can direct it to ask before proceeding with a data analysis or launching an experiment. That arrangement gives interaction with a person an explicit place in the same workflow as a database query or calculation. The Methods describe a request for permission before the robotic execution tool launches a run.
Searching documents, calculating quantities, and consulting a person
The general tools collect information or perform work that may be needed in many kinds of chemistry assignment. WebSearch retrieves selections from a web search results page. The authors describe it as a starting point when the assistant needs information it lacks or is unsure which specialist resource is appropriate. For scientific documents, ChemCrow defaults to the literature tool, LitSearch. A result page and an answer grounded in a document collection offer different kinds of evidence.
LitSearch uses the paper-qa package. It represents documents and the query numerically using embeddings. These representations allow the system to search for passages whose content is relevant to the question. The tool uses OpenAI Embeddings and FAISS for this part of the process. The paper denotes the number of retrieved passages with k. Each selected passage is then summarized in relation to the query, and the summaries are supplied as context for drafting an answer. This is a form of retrieval-augmented generation, in which selected source material informs what the assistant writes.
This sequence can put evidence from scientific documents into the answer and help associate the explanation with the relevant papers. It also creates several points where information can be lost. Retrieval depends on the documents available to search and on what the query brings back. A summary can leave out a qualification from a passage. The answer then depends on how the assistant combines the summaries and applies them to the user’s question. Even when every component runs, an evaluator can still ask whether the resulting claim is supported by the underlying scientific evidence.
For calculations and data analysis, ChemCrow can use a Python REPL, an interactive environment that runs Python code. This tool serves a different role from search. It lets the assistant express an operation in code and obtain its result, and can support longer workflows such as fitting and evaluating a predictor. The chromophore example depends on this flexibility. Its task involves inspecting a dataset, selecting records and variables, computing representations, and comparing candidate predictions, all under an instruction expressed in ordinary language.
The human tool provides another way to resolve a gap. A request can contain an ambiguity the user is best placed to clear up. The user may also control whether an action should proceed even when its technical requirements appear to be satisfied. In both situations, calling a human is part of task management. The answer comes from the person consulted, and the assistant uses it to determine what happens next.
Establishing which molecule the tools are talking about
The molecular tools depend on representations that can be passed between programs. One is SMILES, a compact text notation for a molecular structure. Another is a CAS number, an identifier assigned through the Chemical Abstracts Service. A user can refer to a familiar compound by name, while subsequent operations need one of these more specific forms. The conversion can be the first consequential decision in a workflow. It fixes the identity used for everything that follows.
Name2SMILES handles the conversion from a name or CAS number to SMILES. The implementation tries ChemSpace first and PubChem when the first lookup fails. OPSIN, which interprets chemical names, is the final fallback. The order is built into the tool. GPT-4 selects the operation of resolving the molecule, and the wrapper handles the sequence of attempts. A separate name-to-CAS tool uses PubChem to find the registry identifier. Using distinct tools for these outputs helps keep the identity question separate from whatever calculation or lookup follows.
With a structural representation in hand, another tool can calculate molecular weight using RDKit. The functional-group tool looks for pre-defined substructures. It matches the molecule against patterns for groups and reports those it finds. Functional groups give a chemist a way to describe relevant parts of a molecule. Pattern matches provide a concrete basis for that description and can inform a later discussion of properties or reactivity.
The similarity tool compares molecular fingerprints using the Tanimoto measure. A fingerprint encodes structural features in a form suitable for comparison. This implementation uses ECFP2 fingerprints for its similarity calculation. A resulting score addresses how similar the encoded structures are. A request about biological activity or mechanism asks for a further kind of evidence. If the assistant uses structural similarity to propose a candidate worth investigating, the proposal still needs to be interpreted in light of the user’s goal.
Commercial and patent tools illustrate how the same molecular representation can support different questions. The price tool checks for availability through a compound collection before seeking a quotation through a supplier service. The patent tool checks molecular strings against a compact index of known records. Its result concerns that lookup. Questions about legal scope, different forms of a compound, or the status of a patent introduce considerations beyond string membership. This matters when an assistant is asked for a broad conclusion and consults a tool that addresses only one part of it.
The authors also include a molecular modification tool based on SynSpace. It generates a candidate from a region of chemical space around a supplied structure and returns an individual modification. Here, chemical space means the set of possible molecules under consideration. A neighborhood supplies a way of restricting attention to related candidates. The authors describe using such outputs to explore derivatives. Generating a structural candidate leaves its usefulness for the requested property to be determined by other evidence.
The numerical operations are described at the level of named methods. The paper identifies the fingerprint representation and similarity measure, and it reports a prediction error for the chromophore workflow. It gives the agent protocol as a sequence of fields and actions. The reader can distinguish these pieces without a mathematical specification for tool selection. In particular, there is no reported numerical objective that tells GPT-4 which tool must come next. The next action is generated from the task, the instructions, and the observations accumulated so far.
From predictions to an experiment
The reaction tools distinguish several activities that share chemical terminology. A classification service takes a representation of a reaction and returns a name and a position in a classification scheme. The reaction predictor takes reactants and returns a proposed product. The synthesis planner starts with a desired product and searches for a route. Each operation answers a different question, and a workflow may call for several of them.
The authors use IBM’s RXN for Chemistry services for reaction prediction and synthesis planning. The reaction predictor draws on the Molecular Transformer. The planner combines a related approach with search so that it can consider routes involving multiple reactions. Planning connects a target to possible inputs and transformations. Another component predicts a procedure from the resulting route. ChemCrow’s integration can render machine-readable actions in language a user can read.
To run a procedure, the robotic platform needs an action sequence it can accept. The paper describes validation feedback from RoboRXN when a proposed sequence fails to satisfy platform requirements. ChemCrow can receive that feedback and revise the proposed sequence. This is an example of the same observation-driven loop operating inside a tool. The external result at this stage concerns whether the procedure fits the platform’s requirements. Whether the intended compound has been produced is a subsequent experimental question.
The execution tool brings those layers together. It obtains a plan, works with the platform’s representation, and can use validation feedback before launch. The Methods describe the tool as returning a success message when the action sequence is successfully launched. That message reports an event in the execution system. The paper separately reports the chemical outcomes of the selected demonstrations. Preserving the distinction is important when interpreting a final answer, since a run accepted by the platform and a product confirmed by experiment are different milestones.
Safety checks are part of the design around these operations. The authors combine instructions in the prompt with checks enforced by the software. They describe screening proposed work for recognized hazards and examples in which the system stops a request. A separate safety summary draws on hazard records and organizes information about handling, environmental effects, and other concerns. The paper distinguishes information obtained from a record from supplementary text generated where information is missing. That distinction matters because the user may read the whole summary as having the same evidentiary status.
How the chromophore workflow used data
The chromophore experiment begins with a different kind of request. The user supplies existing molecular absorption data and asks ChemCrow to identify a promising candidate from a selection pool. The absorption maximum is the wavelength at which the compound’s absorption is strongest under the stated measurement conditions. The requested maximum is 369 nm, and the workflow is restricted to records for acetonitrile as the solvent. Specifying the solvent makes the data selection part of the scientific problem.
ChemCrow inspects the rows to determine how the data are organized. It filters on solvent and selects the relevant columns. Next it computes Morgan fingerprints, which encode features of each molecule’s structure, and separates the records into a training set and a test set. The training set is used to fit the predictor. The test set is used to see how its predictions behave on records held aside from fitting. The authors report the split as part of the procedure and give the error displayed in the worked example.
The predictor is a random forest, a collection of decision trees whose predictions are combined. The task-specific forest connects the structural inputs to measured absorption wavelengths in the training data. ChemCrow then uses the fitted predictor on the separate candidate pool and proposes a molecule according to the requested wavelength. The candidate pool is where the system searches for a suggestion. The held-out test set plays the different role of evaluating predictions against existing measurements.
After selecting the candidate, ChemCrow also proposes a synthetic plan. The human researchers take on the physical preparation and characterization in this demonstration. They check the compound’s identity and examine its absorption spectrum. This division of work makes the workflow a collaboration. The assistant organizes analysis and proposes what to try, while the researchers supply the new experimental observation that tests the proposal.
The authors made the experimental runs available in chemcrow-runs, and the paper comes with source data. They also released chemcrow-public, which includes the central agent setup and 12 of the research tools. Those counts describe different versions of the system. The research configuration combined 18 tools and included services with their own access arrangements.
Experiments and results
The comparison with GPT-4 alone
The authors worked with chemists to construct 14 tasks covering organic synthesis, molecular design, and problems in chemical logic and knowledge. A synthesis task can require identifying a target or giving a credible plan. A design task can ask for a candidate with a specified property or mode of action. A chemical logic task can require an explanation whose quality depends on factual details about compounds or reactions. This is a benchmark assembled around what a chemical assistant ought to be able to do, using a range of assignments rather than a single repeated prediction format.
The baseline was GPT-4 prompted to act as a chemist without access to external tools, including web browsing. ChemCrow used GPT-4 to decide what to do and had the tool suite available. Its prompt encouraged it to favor tool use over relying on remembered information. The comparison therefore asks what happens when GPT-4 answers under two different operating arrangements. In the assisted arrangement, its instructions, opportunities to gather information, and ability to act all change together.
The human panel judged chemical correctness, reasoning quality, and degree of task completion. Chemical correctness concerns claims about molecules, reactions, or procedures. Reasoning concerns how the answer gets from evidence to conclusion. Completion concerns whether the answer delivers what the task asked for. The authors also asked which response the evaluators were more satisfied with on each task. Those judgments give several views of an answer that could otherwise receive a deceptively simple grade. A response might contain correct statements and still omit an essential deliverable, or explain a general principle well and attach it to the wrong example.
For the per-task preference evaluation, the figure reports n = 4 evaluators. The synthesis analysis also reports n = 4 human evaluators for mean chemical accuracy. The aggregate display gives n = 56 for human evaluations across tasks and n = 14 for EvaluatorGPT. The figure describes its uncertainty bars as 95% confidence intervals. The human aggregate draws on repeated judgments of the task set. Its count represents evaluations, while 14 is the number of distinct tasks.
EvaluatorGPT received a different grading instruction. It was asked to judge whether the task was addressed and whether the overall reasoning was correct. It also supplied comments on strengths, weaknesses, and possible improvements. The automated grade is therefore a joint judgment informed by that prompt. The human panel’s dimensions allow chemical factuality and completion to be examined separately. This matters when reading the figure, since a single automated score can favor an answer for reasons the chemical accuracy rating is designed to isolate.
How the synthesis tasks vary in difficulty
The paper relates expert assessments on synthesis tasks to the synthetic accessibility of the requested compounds. The accessibility values describe the target settings. They order examples from simpler to more complex in the figure and provide a scale on which to read the authors’ comparison. The chart below shows that scale. The star marks the simplest setting by the reported measure.
Synthetic accessibility of target settings in the organic synthesis tasks
The organic synthesis tasks range from relatively accessible familiar compounds to more complex targets.
The numbers
| System or setting | synthetic accessibility score |
|---|---|
| Atorvastatin | 4.79 |
| Safinamide | 3.61 |
| Takemoto’s organocatalyst | 3.31 |
| Ricci’s organocatalyst | 3.17 |
| DEET | 1.87 |
| Aspirin | 1.59 |
| Paracetamol (this paper) | 1.54 |
These scores are properties of the settings used for comparison. For instance, 4.79 is the accessibility score for the atorvastatin target and 1.54 is the score for the paracetamol target. The human judgments reported alongside this ordering address a different quantity, namely which system’s synthesis answer was more chemically accurate. The ordering helps explain why the authors examine the performance comparison separately for easy and difficult targets. It also leaves room for an accessible target to pose a difficult question if the user asks for something beyond a familiar plan.
The expert panel generally preferred ChemCrow across the tasks. The advantage was especially apparent where a chemically credible answer depended on specific, grounded information. The paper describes tool-free GPT-4 as capable of complete-looking responses, alongside errors involving molecules, reactions, and procedures. The authors found occasional flawed conclusions in ChemCrow’s answers as well. Access to tools often improved the information available for an answer, while choosing and using that information remained part of the task.
The authors describe reasoning quality as broadly similar between the systems. They expect such similarity because both use GPT-4 for that part of the work. A shared ability to organize an explanation can coexist with differences in chemical accuracy if one arrangement gives the system better evidence to organize. In a scientific response, that distinction can matter as much as the overall preference.
On easier assignments, GPT-4 sometimes did better. The discussion points to familiar cases including DEET and paracetamol. The authors interpret these cases as ones where the objective is clear and GPT-4 can draw on familiar information encountered during training. This is an explanation of the observed pattern. The task comparison measures the quality of the resulting answers, rather than verifying which training records supplied their content.
EvaluatorGPT tended to favor GPT-4 without tools. The authors associate that preference with fluency and apparent completeness. Expert readers were able to investigate underlying chemical claims and identify significant errors. The reversal is part of the result. Changing who grades the answer changes which system seems better, even though the responses being judged are answers to the same kinds of questions. The dimensions chosen for grading help explain that reversal and define what each score can establish.
Robotic laboratory demonstrations
The laboratory demonstrations begin from requests stated at the level of a goal. One asks for an insect repellent to be selected and made. The others involve known thiourea organocatalysts. ChemCrow identifies appropriate compounds, obtains plans, and uses the connection to the RoboRXN platform. The paper reports successful production of DEET and of the organocatalysts associated with Schreiner, Ricci, and Takemoto.
Success in these examples has several stages. Choosing a candidate means associating the user’s description with a target. Planning means obtaining a route and a candidate procedure. Execution means engaging the laboratory system with a procedure it accepts. The experimental report then asks whether the anticipated compound was obtained. The paper’s strongest evidence in these cases concerns that last outcome, since the authors report the expected products from the demonstrations.
The platform validation process also offers evidence about adaptation. The authors describe cases in which a predicted procedure initially conflicted with the platform’s requirements. ChemCrow used the platform’s feedback to revise the procedure until it became acceptable to the software. This exercise tests a capability that a static plan leaves untested. The agent receives a result after proposing an action and has to account for the new information before it can move forward.
The paper’s Methods describe a permission step before launch. The Results emphasize automated selection and revision within the reported runs. Read together, these details describe automation within an environment that still has access controls and a mechanism for user approval. RoboRXN access for the project was limited to the reported experiments. The biological or chemical scope of other assignments is a separate question from the level of automation achieved inside these selected runs.
The authors observe that someone with access to the same tools could likely obtain the same chemical result by operating them individually. The comparison with GPT-4 alone evaluates the benefit of tool access for task responses. The laboratory demonstrations show the integrated assistant can connect the stages into real runs. The paper gives those demonstrations a different evidentiary role from a trial against chemists performing each step themselves.
A prediction followed by measurement
For the chromophore task, the paper reports a random forest root mean squared error of 37 nm in the worked example. Root mean squared error summarizes the size of prediction errors by squaring the deviations from the recorded values, averaging, and taking the square root. This expresses the result in the original units, nanometres. The reported error describes the predictor’s evaluation on data separated for testing in this workflow. It has a different meaning from the experimental measurement of the newly proposed compound.
The request specified a target absorption maximum of 369 nm. ChemCrow proposed a molecule whose predicted maximum was closest to that target among the candidates it evaluated. The paper describes that ranking and reports the target. It also gives the eventual measured maximum, 336 nm, after the researchers prepared and characterized the molecule. The reported instrument work includes confirmation of the product and measurement of its ultraviolet and visible absorption.
The measured maximum shows the degree of agreement between the design goal and the laboratory outcome. The authors describe the new chromophore as having approximately the requested property. The numerical values make the scope of that claim clear. The test-set error of 37 nm describes the fitted predictor, the target of 369 nm describes the user’s selection criterion, and the maximum of 336 nm describes the actual compound under the stated measurement conditions. Each value refers to a distinct part of the experiment.
This result demonstrates a continuous path from an instruction through analysis to an experimentally checked proposal. It also provides a different form of validation from expert grading of a written response. Expert grading can identify incorrect chemistry in an answer. The absorption spectrum supplies an observation about a new sample. The paper reports this worked discovery example, with general screening success left to a broader study over more candidates and targets.
What the ablations show
The paper reports no tool-by-tool ablation or factorial test of the agent design. Its closest controlled comparisons are the tool-enabled system against GPT-4 without tools, synthesis performance across targets of different accessibility, and expert judgments against those of the automated grader. The laboratory examples and the safety demonstrations add observations about particular stages of the system.
What changes when tools become available?
Keeping GPT-4 as the underlying engine makes the main comparison informative. It reduces the need to explain the difference by appealing to fundamentally different language capabilities. The human panel’s similar assessments of reasoning quality are consistent with that shared component. Chemical accuracy and completion are the dimensions where the integrated workflow can change what information is available and what work the assistant can do. A search can supply a relevant record, a calculator can supply a quantity, and a planner can supply a proposed route.
The comparison estimates the effect of the whole arrangement. ChemCrow has descriptions of tools, a prompt organized around their use, and the option to continue after receiving an external response. The baseline receives an expert-role instruction and generates its answer without those channels. Their difference in performance therefore supports a claim about the combined system. Separating the effect of the prompt from the effect of information access would take a comparison that varied those factors independently. Separating the contributions of the chemistry tools would require further contrasts between subsets or individual services.
The tasks where GPT-4 sometimes did better are informative in their own right. A problem with a familiar target and a clear deliverable may already elicit a strong direct answer. The benchmark also contains cases where detailed information more often becomes the bottleneck. The authors’ explanation is that the two conditions expose different strengths of the same underlying engine. It can answer from familiar material in one case and make better use of outside evidence in another. The experiments illustrate both behaviors under the prompts used.
What difficulty explains and what it leaves open
Ordering synthesis tasks by accessibility helps show where the expert-rated advantage is concentrated. As targets become harder to make, a response may need knowledge of a more involved route and a better basis for judging its feasibility. The paper finds that ChemCrow is generally stronger on those more demanding tasks. This is consistent with the benefit of a planning service that can search for routes and supply details beyond what GPT-4 reliably recalls.
Accessibility is only one aspect of a question’s difficulty. How well known the target is, what the user asks the assistant to deliver, and which service has information about it can all matter within the task collection. The paper’s description of the easy cases emphasizes familiarity as well as simplicity. The ordering supports a pattern across the chosen targets. It leaves open how much of the pattern comes from chemical complexity itself and how much comes from the availability of relevant information for each assignment.
A related analysis comes from the authors’ inspection of evaluator comments. For GPT-4 they identify answers that were complete-looking but contained serious factual errors. For ChemCrow they identify chemically grounded answers alongside flawed conclusions in some cases. This distinction suggests where failures occur. An unsupported assertion can arise when the system answers from memory. A conclusion can also be flawed after successful tool use if the input was wrong or the observation was misinterpreted. These judgments are qualitative and explain examples of failure, instead of estimating the frequency of each cause.
What the grader and platform examples isolate
The evaluator comparison shows that the advantage depends on the standard used. Fluent prose and broad coverage can help an answer that is scored on apparent correctness and completion. A chemist can examine whether the molecule exists as described, whether the stated reaction is credible, and whether a procedure makes sense. The two assessments gave different rankings. This is evidence about the automated grader in these tasks, with a direct implication for interpreting the reported response scores.
EvaluatorGPT’s comments provide a way to examine what it valued. The authors argue that the grader lacked relevant information in cases where it also struggled with the task itself. The experiments show a grading failure in this configuration. The task design leaves open how the result would change if an automated grader had access to suitable evidence, used a different rubric, or checked intermediate claims individually.
The robotic validation example illustrates a different contrast. A procedure proposed before platform feedback may be unsuitable for that machine. After a revision informed by the feedback, the platform may accept it. The sequence shows that the system can adapt a proposal during a run. The paper gives worked examples of this ability. It leaves the size of the benefit across a larger set of procedures, and the contribution of each kind of feedback, unmeasured.
The safety illustrations likewise show different responses to screened requests. The paper presents a case where the workflow continues with hazard information and another where it stops. These examples establish that the design can produce distinct outcomes under its checks. They give no estimate of how often hazards would be detected across novel requests. Their contribution is to document the connection between a safety decision and a change in execution.
Limitations
Limits identified by the authors
The authors place the tool suite at the center of the system’s limits. Coverage depends on which tools are available. Accuracy depends on the quality of their results and on the reasoning used to select, query, and interpret them. A correctly implemented lookup can return a precise answer about the wrong molecule if the assistant supplied the wrong identifier. A prediction can also be inaccurate for a correctly specified input. The assistant’s final account inherits those problems unless some later check exposes them.
The paper also points to the quality of the underlying synthesis engine. Better route planning could improve an important part of ChemCrow’s performance, which makes the experimental result conditional on the services used. That dependence is a consequence of the architecture. The agent can ask for another result or adapt to a rejection, but the scope of what it can obtain depends on the available services. The specialized tools and the assistant’s use of them contribute different failure modes.
Task selection is another limitation the authors name. They built a targeted set of assignments with chemists, and the set was small enough for expert examination. They acknowledge that choosing the tasks can introduce implicit bias. They also note the difficulty of checking chemical logic at scale. Open-ended tasks give the system room to demonstrate capabilities a narrow benchmark might miss, while making it harder to compare large numbers of responses under uniform conditions. The reported judgments are strongest as evidence about the kinds of work sampled.
The authors emphasize reproducibility under API access. They had limited control over the closed service supplying GPT-4, and individual results can be hard to reproduce. A workflow also depends on what external tools return and whether the relevant services are accessible. The public release preserves the main setup and part of the tool collection, while the research configuration included proprietary components. The authors suggest open alternatives as a route toward more experimental control and recognize that changing the underlying engine may also change reasoning performance.
They also acknowledge risks from inaccurate or incomplete reasoning. A language interface lowers the effort needed to request chemical work. A person can still interpret a recommendation incorrectly or attempt work that requires training. The authors describe existing human oversight on automated platforms and discuss ways of combining access controls, safety information, and expert review. Their risk discussion also raises ownership and intellectual-property questions around generated plans, structures, and suggested applications. Those issues stand outside what a compound lookup or a patent membership check can resolve by itself.
Limits apparent from the experiments
The response benchmark gives a comparison against the same underlying engine without tools. This isolates a practical question about whether the integrated system helps relative to a strong direct-answer baseline. It leaves several other comparisons open. For instance, the paper gives no measured estimate of time saved for a chemist who already knows the relevant software, and it gives no evaluation against a fixed automated workflow that calls a predetermined sequence of tools. Those comparisons would address the cost and value of having GPT-4 choose the procedure, which the chosen baseline was designed to capture only as part of the whole package.
The reader can also distinguish the unit of evaluation from the breadth of the evidence. The human aggregate includes n = 56 evaluations across 14 tasks. Several judgments of a task help characterize how experts assessed it. They add information about the consistency of grading, while the coverage of chemical problems comes from the task collection itself. The confidence intervals describe uncertainty under the analysis reported for the experiment. General performance across chemistry would require broader coverage of tasks, target classes, and tool configurations.
The comparison between GPT-4 and ChemCrow also leaves the role of prompting partly entangled with the role of the tools. ChemCrow was encouraged to seek a tool even when a direct response might have worked. That choice suits an experiment intended to exhibit tool use. It also makes some outcomes conditional on a particular instruction about when to consult external information. A system that chose between familiar knowledge and outside evidence under a different policy could show a different balance of strengths on simple and complex tasks.
The physical demonstrations show that the integration can reach successful laboratory outcomes for the selected compounds. The study provides no general rate of successful synthesis or estimate of reliability across an unselected range of targets. Platform validation establishes that the instructions meet the platform’s acceptance criteria. Experimental product confirmation establishes that the desired substance was obtained in the reported case. The distinction matters for claims about autonomy. The system demonstrated a way to adapt and execute within a particular laboratory workflow, with general transfer to other equipment and experimental settings still open.
The chromophore workflow supplies a measured example of candidate screening. The reported test-set error evaluates a predictor built from the existing data. The measured absorption maximum evaluates a proposed compound, which the authors selected by searching a candidate pool. These are related results, but a useful test error cannot on its own establish how often the closest predicted candidate will reach a future target. That would depend on the candidates available, how similar they are to the training records, and how well the predictor ranks them for the conditions of interest. The paper documents the selected candidate and its observed property, leaving these wider rates undetermined.
Inference about the automated grader calls for similar care. The disagreement with specialists shows why grading grounded scientific claims can be difficult for a system that is sensitive to fluency. EvaluatorGPT has the prompt and access arrangements used in the study. The paper supports a direct caution about relying on that score for these chemistry responses. A general claim about the performance of all automated graders would cover other evidence sources, rubrics, and checks that were outside the experiment.
Finally, the safety cases illustrate the operation of particular checks, and the authors describe reasons that incomplete information can lead to errors. Their demonstrations leave coverage of hazards and consistency under unfamiliar requests open. The design can stop some actions and present safety information in others. The evidence for chemical performance comes from selected tasks and successful runs, while establishing the reliability of safety decisions would require an evaluation designed for that outcome.
What came after
The citing literature continued to examine several questions that ChemCrow brings together. Some works study how an assistant organizes research, while others supply an environment in which to test its actions or consider a specialized scientific task. In the cases below, the connection can be traced through the citation and the stated subject of each work. Those links establish continuity of topic. The degree of direct architectural reuse remains open.
Agent Laboratory takes research assistance as its subject. ChemCrow makes the steps in one scientific workflow visible through tool calls and observations. Agent Laboratory frames the corresponding question around the role of an assistant in research. AgentRxiv takes collaborative autonomous research as its subject. In ChemCrow the collaboration is concrete in the chromophore example, where analytical work produces a proposal and human researchers generate new experimental evidence. The later work puts collaboration itself at the center of the research problem.
DISCOVERYWORLD introduces a virtual environment for developing and evaluating automated scientific discovery agents. The connection is especially clear at the point where an action has a consequence the system can observe. ChemCrow encounters that situation when the robotic platform returns feedback or the research team obtains a measurement. A virtual environment gives discovery agents another setting in which actions and observations can be evaluated. LAB-Bench addresses measurement of capabilities for biology research. Its subject extends the evaluation question to a different science, where useful assessment likewise depends on what the research task actually requires.
LLM Agents Making Agent Tools considers agents that make tools for agents. ChemCrow starts with a catalogue assembled by its developers and tests selection and use within that catalogue. Tool creation makes the catalogue itself part of the problem. Tool Learning with Large Language Models surveys tool learning more broadly. ChemCrow illustrates one configuration within that subject, where a description of an external service is supplied in advance and evidence from a call is brought back into an ongoing task.
The chemistry literature develops both broad and narrower questions. A Review of Large Language Models and Autonomous Agents in Chemistry places work on systems for chemistry within a wider review of the field. Training a Scientific Reasoning Model for Chemistry focuses on training for chemical reasoning, the part of ChemCrow’s workflow responsible for deciding what to ask and interpreting the answer. ChemCrow’s expert comparison makes the distinction between reasoning and chemical evidence visible. Work centered on training tackles one part of that distinction, while work centered on tools asks what information can be supplied during the task.
dZiner takes rational inverse design of materials as its focus. Inverse design begins with a desired property and seeks a candidate that can deliver it. ChemCrow’s chromophore demonstration serves as a concrete instance of that problem structure. The target wavelength organizes the analysis, candidate selection, and subsequent measurement. The later work makes inverse design in materials the named subject of the investigation.
When AI Co-Scientists Fail presents SPOT-a as a benchmark for automated verification of scientific research. The ChemCrow paper gives this line of work a specific problem to contend with. Its automated grader preferred answers that specialists found chemically less reliable. A benchmark centered on verification treats the checking of scientific work as a capability to measure in its own right. In ChemCrow’s experiments, the corresponding evidence comes from expert reading, feedback from laboratory software, and physical characterization. Each checks a different part of the path from a persuasive answer to a scientific result.
Cite
Cite as Andres M Bran, Sam Cox, Oliver Tobias Schilter, Carlo Baldassari, Andrew Dickson White and Philippe Schwaller. 2024. Augmenting large language models with chemistry tools. Nature Machine Intelligence.
@inproceedings{bran2024augmenting,
title = {{Augmenting large language models with chemistry tools}},
author = {Andres M Bran, Sam Cox, Oliver Tobias Schilter, Carlo Baldassari, Andrew Dickson White and Philippe Schwaller},
booktitle = {Nature Machine Intelligence},
year = {2024},
doi = {10.1038/s42256-024-00832-8},
url = {https://doi.org/10.1038/s42256-024-00832-8}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bran-2024-augmenting-large-language-models-chemistry/