Back

Dysfunctional analysis of the pre-training model on nucleotide sequences and the evaluation of different k-mer embeddings

Zhang, Y.-z.; Bai, Z.; Imoto, S.

2022-12-08 bioinformatics
10.1101/2022.12.05.518770 bioRxiv
Show abstract

Pre-training has attracted much attention in recent years. Although significant performance improvements have been achieved in many downstream tasks using pre-training, the mechanism of how a pre-training method works for downstream tasks is not fully illustrated. In this work, focusing on nucleotide sequences, we decompose a pre-training model of Bidirectional Encoder Representations from Transformers (BERT) into embedding and encoding modules to illustrate what a pre-trained model learns from pre-training data. Through dysfunctional analysis on both data and model level, we demonstrate that the context-consistent k-mer representation is the primary product that a typical BERT model learns in the embedding layer. Surprisingly, single usage of the k-mer embedding pre-trained on the random data can achieve comparable performance to that of the k-mer embedding pre-trained on actual biological sequences. We further compare the learned k-mer embeddings with other commonly used k-mer representations in downstream tasks of sequence-based functional predictions and propose a novel solution to accelerate the pre-training process. Contactyaozhong@ims.u-tokyo.ac.jp or imoto@hgc.jp Supplementary informationThe source code and relevant data are available at https://github.com/yaozhong/bert_investigation.

Matching journals

The top 4 journals account for 50% of the predicted probability mass.

50% of probability mass above

"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.