Assessment of chemistry knowledge in large language models that generate code.
Ontology highlight
ABSTRACT: In this work, we investigate the question: do code-generating large language models know chemistry? Our results indicate, mostly yes. To evaluate this, we introduce an expandable framework for evaluating chemistry knowledge in these models, through prompting models to solve chemistry problems posed as coding tasks. To do so, we produce a benchmark set of problems, and evaluate these models based on correctness of code by automated testing and evaluation by experts. We find that recent LLMs are able to write correct code across a variety of topics in chemistry and their accuracy can be increased by 30 percentage points via prompt engineering strategies, like putting copyright notices at the top of files. Our dataset and evaluation tools are open source which can be contributed to or
SUBMITTER: White AD
PROVIDER: S-EPMC10087057 | biostudies-literature | 2023 Apr
REPOSITORIES: biostudies-literature
ACCESS DATA