Distinguishing word identity and sequence context in DNA language models.

AI and Biology DNA language models Deep Learning Foundation Models Genomics Knowledge Representation

Journal

BMC bioinformatics
ISSN: 1471-2105
Titre abrégé: BMC Bioinformatics
Pays: England
ID NLM: 100965194

Informations de publication

Date de publication:
13 Sep 2024
Historique:
received: 16 09 2023
accepted: 12 07 2024
medline: 14 9 2024
pubmed: 14 9 2024
entrez: 13 9 2024
Statut: epublish

Résumé

Transformer-based large language models (LLMs) are very suited for biological sequence data, because of analogies to natural language. Complex relationships can be learned, because a concept of "words" can be generated through tokenization. Training the models with masked token prediction, they learn both token sequence identity and larger sequence context. We developed methodology to interrogate model learning, which is both relevant for the interpretability of the model and to evaluate its potential for specific tasks. We used DNABERT, a DNA language model trained on the human genome with overlapping k-mers as tokens. To gain insight into the model's learning, we interrogated how the model performs predictions, extracted token embeddings, and defined a fine-tuning benchmarking task to predict the next tokens of different sizes without overlaps. This task evaluates foundation models without interrogating specific genome biology, it does not depend on tokenization strategies, vocabulary size, the dictionary, or the number of training parameters. Lastly, there is no leakage of information from token identity into the prediction task, which makes it particularly useful to evaluate the learning of sequence context. We discovered that the model with overlapping k-mers struggles to learn larger sequence context. Instead, the learned embeddings largely represent token sequence. Still, good performance is achieved for genome-biology-inspired fine-tuning tasks. Models with overlapping tokens may be used for tasks where a larger sequence context is of less relevance, but the token sequence directly represents the desired learning features. This emphasizes the need to interrogate knowledge representation in biological LLMs.

Identifiants

pubmed: 39272021
doi: 10.1186/s12859-024-05869-5
pii: 10.1186/s12859-024-05869-5
doi:

Substances chimiques

DNA 9007-49-2

Types de publication

Journal Article

Langues

eng

Sous-ensembles de citation

IM

Pagination

301

Informations de copyright

© 2024. The Author(s).

Références

Vaswani, A. et al. Attention is all you need. Advances in neural information processing systems 30, (2017). https://proceedings.neurips.cc/paper/7181-attention-is-all
Eraslan G, Avsec Z, Gagneur J, Theis FJ. Deep learning: new computational modelling techniques for genomtics. Nat Rev Genet. 2019;20:389–403.
doi: 10.1038/s41576-019-0122-6 pubmed: 30971806
Avsec Z, et al. Effective gene expression prediction from sequence by integrating long-range interactions. Nat Methods. 2021;18:1196–203.
doi: 10.1038/s41592-021-01252-x pubmed: 34608324 pmcid: 8490152
Brown T, et al. Language models are few-shot learners. Adv Neural Inf Process Syst. 2020;33:1877–901.
Dalla-Torre H, et al. The nucleotide transformer: building and evaluating robust foundation models for human genomics. bioRxiv. 2023. https://doi.org/10.1101/2023.01.11.523679.abstract .
doi: 10.1101/2023.01.11.523679.abstract
Ji Y, Zhou Z, Liu H, Davuluri RV. DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome. Bioinformatics. 2021;37:2112–20.
doi: 10.1093/bioinformatics/btab083
Devlin, J., Chang, M.-W., Lee, K. & Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018). https://doi.org/10.48550/arXiv.1810.04805
Rohs R, et al. The role of DNA shape in protein-DNA recognition. Nature. 2009;461:1248–53.
doi: 10.1038/nature08473 pubmed: 19865164 pmcid: 2793086
Ethayarajh, K. How contextual are contextualized word representations? Comparing the geometry of BERT, ELMo, and GPT-2 embeddings. arXiv preprint arXiv:1909.00512 (2019)
Mikolov, T., Chen, K., Corrado, G. & Dean, J. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781 (2013)
McInnes, L., Healy, J. & Melville, J. Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426 (2018). https://arxiv.org/pdf/1802.03426.pdf?source=post_page
Sanabria M, Hirsch J, Joubert PM, Poetsch AR. DNA language model GROVER learns sequence context in the human genome. Nature Machine Intelligence. 2024. https://doi.org/10.1038/s42256-024-00872-0 .
doi: 10.1038/s42256-024-00872-0
Melissa S, Jonas H, Poetsch AR. Distinguishing word identity and sequence context in DNA language models - the code to the paper. 2023. Zenodo. https://doi.org/10.5281/zenodo.8407874 .
Melissa S, Jonas H, Poetsch AR. Next-kmer-prediction fine-tuning to compare DNA language models, a tutorial. 2023. Zenodo. https://doi.org/10.5281/zenodo.8407817 .

Auteurs

Melissa Sanabria (M)

Biomedical Genomics, Biotechnology Center, Center for Molecular and Cellular Bioengineering, Technische Universitat Dresden, Dresden, Germany.

Jonas Hirsch (J)

Biomedical Genomics, Biotechnology Center, Center for Molecular and Cellular Bioengineering, Technische Universitat Dresden, Dresden, Germany.

Anna R Poetsch (AR)

Biomedical Genomics, Biotechnology Center, Center for Molecular and Cellular Bioengineering, Technische Universitat Dresden, Dresden, Germany. arpoetsch@gmail.com.
National Center for Tumor Diseases, Partner site Dresden, German Cancer Research Center, Dresden, Germany. arpoetsch@gmail.com.

Articles similaires

Genome, Chloroplast Phylogeny Genetic Markers Base Composition High-Throughput Nucleotide Sequencing

[Redispensing of expensive oral anticancer medicines: a practical application].

Lisanne N van Merendonk, Kübra Akgöl, Bastiaan Nuijen
1.00
Humans Antineoplastic Agents Administration, Oral Drug Costs Counterfeit Drugs

Smoking Cessation and Incident Cardiovascular Disease.

Jun Hwan Cho, Seung Yong Shin, Hoseob Kim et al.
1.00
Humans Male Smoking Cessation Cardiovascular Diseases Female
Humans United States Aged Cross-Sectional Studies Medicare Part C

Classifications MeSH