Temperature sampling controls randomness when a sequence decoder generates molecular SMILES tokens. The decoder scales its logits before sampling: lower temperatures favor conservative outputs, while higher temperatures increase diversity. section 10.4.3
Use temperature scaling to adjust the balance between:
- Conservatism: lower values make generated molecules less diverse. section 10.4.3
- Diversity: higher values broaden the decoder's sampled outputs. section 10.4.3
- Generation quality: temperature interacts with decoding strategy and can affect downstream molecule quality. section 10.4.3
Sampling molecules from a latent vector
A VAE decoder can generate SMILES from a latent vector z by starting with a start-of-sequence token, predicting tokens step by step, and applying a chosen temperature until an end token or maximum length is reached. The implementation exposes temperature with a default of 1.0. section 10.4.3

