Pre-trained model on 5’ untranslated region (5’UTR) using masked language modeling (MLM), Secondary Structure (SS), and Minimum Free Energy (MFE) objectives.
Statement
A 5’ UTR Language Model for Decoding Untranslated Regions of mRNA and Function Predictions
is published in
Nature Machine Intelligence
, which is a Closed Access / Author-Fee journal.
Machine learning has been at the forefront of the movement for free and open access to research.
We see no role for closed access or author-fee publication in the future of machine learning research and believe the adoption of these journals as an outlet of record for the machine learning community would be a retrograde step.
The MultiMolecule team is committed to the principles of open access and open science.
We do NOT endorse the publication of manuscripts in Closed Access / Author-Fee journals and encourage the community to support Open Access journals.
The MultiMolecule team is unable to confirm that the provided model and checkpoints are producing the same intermediate representations as the original implementation.
This is because
The proposed method is published in a Closed Access / Author-Fee journal.
The team releasing UTR-LM did not write this model card for this model so this model card has been written by the MultiMolecule team.
Model Details
UTR-LM is a
bert
-style model pre-trained on a large corpus of 5’ untranslated regions (5’UTRs) in a self-supervised fashion. This means that the model was trained on the raw nucleotides of RNA sequences only, with an automatic process to generate inputs and labels from those texts. Please refer to the
Training Details
section for more information on the training process.
Variations
multimolecule/utrlm.te_el
: The UTR-LM model for Translation Efficiency of transcripts and mRNA Expression Level.
The model file depends on the
multimolecule
library. You can install it using pip:
pip install multimolecule
Direct Use
You can use this model directly with a pipeline for masked language modeling:
>>> import multimolecule # you must import multimolecule to register models>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='multimolecule/utrlm.te_el')
>>> unmasker("uagc<mask>uaucagacugauguuga")
[{'score': 0.07525687664747238,
'token': 11,
'token_str': 'I',
'sequence': 'U A G C I U A U C A G A C U G A U G U U G A'},
{'score': 0.07319962233304977,
'token': 6,
'token_str': 'A',
'sequence': 'U A G C A U A U C A G A C U G A U G U U G A'},
{'score': 0.07106836140155792,
'token': 24,
'token_str': '*',
'sequence': 'U A G C * U A U C A G A C U G A U G U U G A'},
{'score': 0.06967106461524963,
'token': 10,
'token_str': 'N',
'sequence': 'U A G C N U A U C A G A C U G A U G U U G A'},
{'score': 0.06574146449565887,
'token': 19,
'token_str': 'W',
'sequence': 'U A G C W U A U C A G A C U G A U G U U G A'}]
Downstream Use
Extract Features
Here is how to use this model to get the features of a given sequence in PyTorch:
from multimolecule import RnaTokenizer, UtrLmModel
tokenizer = RnaTokenizer.from_pretrained('multimolecule/utrlm.te_el')
model = UtrLmModel.from_pretrained('multimolecule/utrlm.te_el')
text = "UAGCUUAUCAGACUGAUGUUGA"input = tokenizer(text, return_tensors='pt')
output = model(**input)
Sequence Classification / Regression
Note
: This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for sequence classification or regression.
Here is how to use this model as backbone to fine-tune for a sequence-level task in PyTorch:
import torch
from multimolecule import RnaTokenizer, UtrLmForSequencePrediction
tokenizer = RnaTokenizer.from_pretrained('multimolecule/utrlm.te_el')
model = UtrLmForSequencePrediction.from_pretrained('multimolecule/utrlm.te_el')
text = "UAGCUUAUCAGACUGAUGUUGA"input = tokenizer(text, return_tensors='pt')
label = torch.tensor([1])
output = model(**input, labels=label)
Nucleotide Classification / Regression
Note
: This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for nucleotide classification or regression.
Here is how to use this model as backbone to fine-tune for a nucleotide-level task in PyTorch:
import torch
from multimolecule import RnaTokenizer, UtrLmForNucleotidePrediction
tokenizer = RnaTokenizer.from_pretrained('multimolecule/utrlm.te_el')
model = UtrLmForNucleotidePrediction.from_pretrained('multimolecule/utrlm.te_el')
text = "UAGCUUAUCAGACUGAUGUUGA"input = tokenizer(text, return_tensors='pt')
label = torch.randint(2, (len(text), ))
output = model(**input, labels=label)
Contact Classification / Regression
Note
: This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for contact classification or regression.
Here is how to use this model as backbone to fine-tune for a contact-level task in PyTorch:
import torch
from multimolecule import RnaTokenizer, UtrLmForContactPrediction
tokenizer = RnaTokenizer.from_pretrained('multimolecule/utrlm')
model = UtrLmForContactPrediction.from_pretrained('multimolecule/utrlm')
text = "UAGCUUAUCAGACUGAUGUUGA"input = tokenizer(text, return_tensors='pt')
label = torch.randint(2, (len(text), len(text)))
output = model(**input, labels=label)
Training Details
UTR-LM used a mixed training strategy with one self-supervised task and two supervised tasks, where the labels of both supervised tasks are calculated using
ViennaRNA
.
Masked Language Modeling (MLM)
: taking a sequence, the model randomly masks 15% of the tokens in the input then runs the entire masked sentence through the model and has to predict the masked tokens. This is comparable to the Cloze task in language modeling.
Secondary Structure (SS)
: predicting the secondary structure of the
<mask>
token in the MLM task.
Minimum Free Energy (MFE)
: predicting the minimum free energy of the 5’ UTR sequence.
Training Data
The UTR-LM model was pre-trained on 5’ UTR sequences from three sources:
Ensembl Genome Browser
: Ensembl is a genome browser for vertebrate genomes that supports research in comparative genomics, evolution, sequence variation and transcriptional regulation. UTR-LM used 5’ UTR sequences from 5 species: human, rat, mouse, chicken, and zebrafish, since these species have high-quality and manual gene annotations.
UTR-LM preprocessed the 5’ UTR sequences in a 4-step pipeline:
removed all coding sequence (CDS) and non-5' UTR fragments from the raw sequences.
identified and removed duplicate sequences
truncated the sequences to fit within a range of 30 to 1022 bp
filtered out incorrect and low-quality sequences
Note [
RnaTokenizer
][multimolecule.RnaTokenizer] will convert "T"s to "U"s for you, you may disable this behaviour by passing
replace_T_with_U=False
.
Training Procedure
Preprocessing
UTR-LM used masked language modeling (MLM) as one of the pre-training objectives. The masking procedure is similar to the one used in BERT:
15% of the tokens are masked.
In 80% of the cases, the masked tokens are replaced by
<mask>
.
In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
In the 10% remaining cases, the masked tokens are left as is.
PreTraining
The model was trained on two clusters:
4 NVIDIA V100 GPUs with 16GiB memories.
4 NVIDIA P100 GPUs with 32GiB memories.
Citation
BibTeX
:
@article {chu2023a,
author = {Chu, Yanyi and Yu, Dan and Li, Yupeng and Huang, Kaixuan and Shen, Yue and Cong, Le and Zhang, Jason and Wang, Mengdi},
title = {A 5{\textquoteright} UTR Language Model for Decoding Untranslated Regions of mRNA and Function Predictions},
elocation-id = {2023.10.11.561938},
year = {2023},
doi = {10.1101/2023.10.11.561938},
publisher = {Cold Spring Harbor Laboratory},
abstract = {The 5{\textquoteright} UTR, a regulatory region at the beginning of an mRNA molecule, plays a crucial role in regulating the translation process and impacts the protein expression level. Language models have showcased their effectiveness in decoding the functions of protein and genome sequences. Here, we introduced a language model for 5{\textquoteright} UTR, which we refer to as the UTR-LM. The UTR-LM is pre-trained on endogenous 5{\textquoteright} UTRs from multiple species and is further augmented with supervised information including secondary structure and minimum free energy. We fine-tuned the UTR-LM in a variety of downstream tasks. The model outperformed the best-known benchmark by up to 42\% for predicting the Mean Ribosome Loading, and by up to 60\% for predicting the Translation Efficiency and the mRNA Expression Level. The model also applies to identifying unannotated Internal Ribosome Entry Sites within the untranslated region and improves the AUPR from 0.37 to 0.52 compared to the best baseline. Further, we designed a library of 211 novel 5{\textquoteright} UTRs with high predicted values of translation efficiency and evaluated them via a wet-lab assay. Experiment results confirmed that our top designs achieved a 32.5\% increase in protein production level relative to well-established 5{\textquoteright} UTR optimized for therapeutics.Competing Interest StatementThe authors have declared no competing interest.},
URL = {https://www.biorxiv.org/content/early/2023/10/14/2023.10.11.561938},
eprint = {https://www.biorxiv.org/content/early/2023/10/14/2023.10.11.561938.full.pdf},
journal = {bioRxiv}
}
Contact
Please use GitHub issues of
MultiMolecule
for any questions or comments on the model card.
Please contact the authors of the
UTR-LM paper
for questions or comments on the paper/model.
utrlm.te_el huggingface.co is an AI model on huggingface.co that provides utrlm.te_el's model effect (), which can be used instantly with this multimolecule utrlm.te_el model. huggingface.co supports a free trial of the utrlm.te_el model, and also provides paid use of the utrlm.te_el. Support call utrlm.te_el model through api, including Node.js, Python, http.
utrlm.te_el huggingface.co is an online trial and call api platform, which integrates utrlm.te_el's modeling effects, including api services, and provides a free online trial of utrlm.te_el, you can try utrlm.te_el online for free by clicking the link below.
multimolecule utrlm.te_el online free url in huggingface.co:
utrlm.te_el is an open source model from GitHub that offers a free installation service, and any user can find utrlm.te_el on GitHub to install. At the same time, huggingface.co provides the effect of utrlm.te_el install, users can directly use utrlm.te_el installed effect in huggingface.co for debugging and trial. It also supports api for free installation.