Representation is chosen to match the task. Generation needs an encoding that can be decoded back into a real structure; comparison and ranking need a fixed-length encoding that makes molecules directly comparable.
What each encoding supports
Graph
- Keeps connectivity and labels
- Editable atom by atom
- Supports generation
- Awkward as a fixed-size model input
SMILES
- Keeps connectivity as a sequence
- Reads like text, so sequence models apply
- Supports generation, but validity must be checked
- One molecule has many strings
Fingerprint
- Keeps only feature presence
- Fixed length, directly comparable
- Supports search and ranking
- Cannot be decoded back to a structure
A representation that cannot be inverted cannot be used for generation, no matter how good the model is. This is the single most useful test to apply when reading about a new method.