Fragment-SELFIES

Definition

Fragment-SELFIES is a fragment-level molecular string representation in the SELFIES family. Instead of emitting only atom-level tokens, a model emits chemically meaningful fragments and attachment structure, which can shorten sequences and make generation closer to medicinal-chemistry building blocks.

Why It Matters

In molecular generation, standard SMILES can produce invalid strings, and atom-level SELFIES guarantees validity but generates long sequences for large molecules. Fragment-SELFIES offers a middle ground: shorter sequences with chemically interpretable tokens and maintained validity guarantees.

It is useful to treat Fragment-SELFIES as a representation choice, not as a complete model. A paper using it still needs a clear task, objective, data split, novelty rule, and chemical-state policy.

Modeling Contract

Let a molecule be decomposed into fragments:

where are fragment tokens and records attachment structure. A valid decoder must map the token sequence back to a chemically valid molecular graph:

The hard part is not only syntactic validity, but whether the fragment vocabulary covers the target chemistry without hiding stereochemistry, charge, tautomer, or rare functional groups.

Representation Boundary

Fragment tokenization changes what the model can easily learn:

BoundaryMeaningRisk
Fragment vocabularyallowed building blocksrare chemistry may be unreachable
Attachment grammarhow fragments connectambiguous attachment can create invalid or unintended graphs
Chemical statestereo, charge, aromaticity, tautomer, protonationvalidity can hide state loss
Sequence policycanonical, randomized, or augmented encodingevaluation may reward tokenization artifacts
Reconstruction rulehow tokens become a molecular graphdecoder validity is not the same as usefulness

For a generative model, the effective hypothesis space is:

If the target chemistry is outside , model quality is capped by representation coverage before architecture matters.

Evaluation Contract

Report generation metrics against the molecular object, not only the token string:

Metric FamilyCheck
Validitydecoded molecule is graph-valid and chemically sane under the chosen state policy
Uniquenessduplicate handling is done after standardization
Noveltygenerated molecules are compared against training molecules and near-duplicate fragment recombinations
Diversityscaffold, fingerprint, or fragment diversity is reported with the chosen representation
Utilityproperty, docking, or synthesis proxy is evaluated under an explicit benchmark protocol

Checks

  • Is the fragment vocabulary fixed, learned, or dataset-specific?
  • Does tokenization preserve stereochemistry, charge, isotopes, and aromaticity?
  • Are attachment points unambiguous?
  • Does validity guarantee imply chemically useful molecules or only graph-valid molecules?
  • Is novelty measured against fragment recombination as well as full-molecule identity?
  • Are standardization, scaffold split, and duplicate policy applied after decoding?
  • Is the generated distribution evaluated against the same chemical-state policy used for training?

Open Questions

  • How does generation quality compare to atom-level SELFIES for property-conditioned tasks?
  • Is there a standard fragment vocabulary, or is it task-dependent?
  • Does fragment-level tokenization lose fine-grained control over individual atom placement?