Related Experiment Video
Updated: Jul 10, 2026

NMR-Based Fragment Screening in a Minimum Sample but Maximum Automation Mode
Published on: June 4, 2021
Variable-temperature token sampling in decoder-GPT molecule-generation can produce more robust and potent virtual
1Department of Chemistry, University of Reading, Reading, RG1, UK. m.cafiero@reading.ac.uk.
Abstract:
Token generation in generative pretrained transformers (GPTs) that produce text, code, or molecules often uses conventional approaches such as greedy decoding, temperature-based sampling, or top-k or top-p techniques. This work shows that for a model trained to generate inhibitors of the enzyme HMG-coenzyme-A reductase, a variable temperature approach using a temperature ramp during the inference process produces larger sets of molecules (screening libraries) than those produced by either greedy decoding or single-temperature-based sampling. These libraries also have lower predicted IC50 values, lower docking scores, and lower synthetic accessibility scores than libraries produced by the other sampling techniques, especially when used with very short prompt-lengths. This work explores several variable-temperature schemes when generating molecules with a GPT and recommends a sigmoidal temperature ramp early in the generation process.

