In this article
SMILES-to-caption and caption-to-SMILES are separate task directions with different output validation requirements.
A shared architecture does not make task directions interchangeable
A chemistry interface may offer both describing a molecule and proposing a molecular representation from text. MolT5 uses related sequence-to-sequence machinery for these directions, but the task-specific artifacts and interpretation of their outputs differ.
The MolT5 repository distinguishes general pretrained models from fine-tuned directional checkpoints. Route a request according to that task identity rather than selecting weights only by model size.
Molecule captioning consumes a molecular representation
The official SMILES-to-caption checkpoint represents the captioning direction. Preserve the input molecule representation and the generated text together so the description remains attributable to its source.
A fluent caption is still generated content. Statements about roles or properties should not be treated as independent experimental observations merely because they are grammatically specific. Evaluate whether the description corresponds to the supplied structure under the intended task dataset.
Text-to-molecule output needs structural validation
The caption-to-SMILES checkpoint has the reverse task. Its decoded output should be labeled as a candidate molecular representation, with a separately recorded parsing and identity check.
A description may allow multiple compatible molecules. Consequently, an output different from a reference string is not automatically a different molecular graph, while a parsable graph is not automatically faithful to every constraint in the description. Define both identity and description-consistency criteria.
Round trips are useful but not ground truth
A pipeline can caption a molecule and translate that caption back. This tests a composed pair of models, not an exact inverse mathematical function. Information omitted by the captioning stage cannot be assumed recoverable from the resulting text.
The normalization integrity guide provides context for preserving original and transformed artifacts. Keep the initial structure rather than replacing it with a round-trip reconstruction that happens to look plausible.
Retain task-specific provenance
Store request direction, exact checkpoint, tokenizer, decoding configuration, raw output, and any molecular normalization separately. The artifact validation guide explains how linked resources make the result reproducible.
Compare caption quality and molecular-output validity as different evaluation targets. Neither translation direction directly establishes synthesis feasibility, verified biological activity, or experimental truth of generated prose. Those outcomes require evidence beyond successful sequence generation.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.