All models

Multi-Modal Foundation · ibm-research

materials.selfies-ted

A transformer encoder-decoder model for generating molecular representations from SELFIES strings.

What materials.selfies-ted is

materials.selfies-ted is a molecular embedding model developed by IBM Research for tasks in chemistry and materials science. It is designed to extract numerical representations from molecular structures encoded in the SELFIES (Self-Referencing Embedded Strings) format.

The model provides a transformer-based encoder-decoder framework for molecular feature extraction and representation learning, enabling researchers to convert string-based chemical inputs into dense vector representations for downstream analysis.

How it works

The model employs a BART-based transformer encoder-decoder architecture. Molecules are initially converted into SELFIES strings and formatted with spaces separating each token before tokenisation with a maximum sequence length of 128 tokens.

To generate molecular embeddings, the input tokens and attention masks are passed through the transformer encoder. The resulting last hidden states are pooled across the token dimension using an attention-weighted average to produce a single fixed-size embedding for the compound.

Key facts

Architecture
BART transformer encoder-decoder
Input format
SELFIES strings
Output format
Vector embeddings (feature representations)
Supported fields
Chemistry, materials science
Software framework
PyTorch, Hugging Face Transformers
Maximum sequence length
128 tokens
Release date
2024-10-25

What you can use it for

Molecular feature extraction
Extracting vector embeddings from chemical compounds for downstream machine learning tasks in chemical and materials discovery.
Molecular representation learning
Converting space-delimited SELFIES strings into dense continuous representations that capture structural features.
Sequence-to-sequence chemical modelling
Applying an encoder-decoder architecture to chemical text-to-text generation and molecular processing tasks.

Run it here

We list this model but cannot run it yet: its first test run here did not return a result, so it is tried again in a week.

Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.

Strengths and limits

Good at

  • Uses SELFIES notation rather than SMILES directly, ensuring valid string representations of chemical structures.
  • Implements a standard transformer encoder-decoder structure compatible with standard PyTorch workflows.
  • Supports straightforward embedding extraction through attention-masked mean pooling of the encoder states.

Watch out for

  • Requires chemical structures to be converted and formatted into spaced SELFIES strings before tokenisation.
  • Configured for inputs up to 128 tokens, which truncates larger or highly complex molecular sequences.

Inputs and outputs

You provide

  • Sequence or text

    A protein or nucleotide sequence, or free text — whichever this model was trained on.

You get back

  • Mean-pooled representation, one vector per input.

Licence

Check the licence before commercial use · apache-2.0

The apache-2.0 licence carries terms worth reading before you depend on it.

Questions

Can I use materials.selfies-ted commercially?

Check the licence before commercial use. The apache-2.0 licence carries terms worth reading before you depend on it.

What input format does materials.selfies-ted accept?

The model expects SELFIES strings where adjacent bracketed tokens are separated by spaces, which can be converted from standard SMILES strings.

How are molecular-level embeddings obtained from the model?

Embeddings are calculated by running the encoder on tokenised inputs and applying attention-mask mean pooling across the output hidden states.

What core architecture does the model rely on?

It is built on a BART transformer encoder-decoder architecture designed for feature extraction and sequence-to-sequence chemistry tasks.

How to cite it

SELF-BART : A Transformer-based Molecular Representation Model using SELFIES, arXiv:2410.12348

Written from materials.selfies-ted's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.