Skip to main content
QUICK REVIEW

[Paper Review] Toward Understanding BERT-Like Pre-Training for DNA Foundation Models

Chaoqi Liang, Lifeng Qiao|arXiv (Cornell University)|Oct 11, 2023
Genomics and Phylogenetic StudiesBiochemistry, Genetics and Molecular Biology3 citations
TL;DR

This paper proposes RandomMask, a novel pretraining strategy for BERT-like models on DNA sequences that gradually increases masking difficulty by expanding mask boundaries, overcoming the limitations of overlapping K-mer tokenization which causes fast convergence and suboptimal pretraining. RandomMask achieves state-of-the-art performance across 28 datasets in 7 downstream tasks, including a 65.83% Matthews correlation coefficient in epigenetic mark prediction—14.02% higher than the baseline and 4.82% above SOTA.

ABSTRACT

With the success of large-scale pre-training in language tasks, there is an increasing trend of applying it to the domain of life sciences. In particular, pre-training methods based on DNA sequences have received increasing attention because of their potential to capture general information about genes. However, existing pre-training methods for DNA sequences largely rely on direct adoptions of BERT pre-training from NLP, lacking a comprehensive understanding and a specifically tailored approach. To address this research gap, we provide the first empirical study with three insightful observations. Based on the empirical study, we notice that overlapping tokenizer can benefit the fine-tuning of downstream tasks but leads to inadequate pre-training with fast convergence. To unleash the pre-training potential, we introduce a novel approach called RandomMask, which gradually increases the task difficulty of BERT-like pre-training by continuously expanding its mask boundary, forcing the model to learn more knowledge. RandomMask is simple but effective, achieving state-of-the-art performance across 6 downstream tasks. RandomMask achieves a staggering 68.16\% in Matthew's correlation coefficient for Epigenetic Mark Prediction, a groundbreaking increase of 19.85\% over the baseline and a remarkable 3.69\% improvement over the previous state-of-the-art result.

Motivation & Objective

  • To investigate the limitations of existing BERT-like pretraining methods in DNA sequence modeling, particularly the reliance on direct NLP adaptations without considering DNA-specific characteristics.
  • To understand how overlapping vs. non-overlapping K-mer tokenization affects pretraining dynamics and downstream fine-tuning performance in DNA foundation models.
  • To address the issue of fast convergence and inadequate optimization in overlapping tokenization by designing a more effective pretraining strategy.
  • To develop a simple yet effective method that enhances model capacity to learn both local nucleotide-level and regional sequence-level patterns in DNA sequences.
  • To achieve state-of-the-art performance across diverse downstream DNA tasks, including epigenetic mark prediction, transcription factor binding, and promoter detection.

Proposed method

  • Introduce RandomMask, a dynamic masking strategy that gradually increases the size of the masked span during pretraining, starting from a single token and expanding to longer spans.
  • Apply overlapping K-mer tokenization (sliding window of size K with stride 1) to generate token sequences, enabling richer local context representation.
  • Use a masked language modeling objective where the model predicts the original nucleotides within progressively larger masked spans, increasing task difficulty over time.
  • Train the model using a curriculum learning approach, where the mask boundary expands in a randomized, step-by-step manner to prevent overfitting to short-range dependencies.
  • Fine-tune the resulting model on 28 datasets across 7 downstream tasks using standard hyperparameters and evaluation metrics.
  • Compare the performance of RandomMask against baselines such as DNABERT, Nucleotide Transformer, and HyenaDNA under identical training and fine-tuning conditions.

Experimental results

Research questions

  • RQ1How does overlapping K-mer tokenization impact pretraining dynamics and downstream fine-tuning performance in DNA foundation models?
  • RQ2Why does overlapping tokenization lead to fast convergence but suboptimal model optimization in BERT-like pretraining for DNA sequences?
  • RQ3Can a dynamic masking strategy that increases task difficulty over time improve the representational capacity of DNA foundation models?
  • RQ4To what extent does RandomMask outperform existing pretraining methods across diverse downstream DNA tasks, including epigenetic mark prediction and transcription factor binding?
  • RQ5How does RandomMask enhance the model's ability to capture both local nucleotide-level changes and broader regional sequence patterns in DNA sequences?

Key findings

  • RandomMask achieves a Matthews Correlation Coefficient (MCC) of 65.83% in epigenetic mark prediction, representing a 14.02% improvement over the baseline DNABERT and a 4.82% gain over the previous SOTA.
  • In enhancer activity prediction, RandomMask achieves a Pearson Correlation Coefficient (PCC) of 69.56%, surpassing the baseline (68.43%) and SOTA methods.
  • For splice site prediction, RandomMask attains an MCC of 87.20%, a 1.76% improvement over the baseline DNABERT (85.44%).
  • On transcription factor prediction, RandomMask improves performance by 5.97% on mouse datasets and 5.63% on human datasets compared to the baseline.
  • RandomMask achieves state-of-the-art performance on 26 out of 28 datasets across 7 downstream tasks, demonstrating consistent and broad gains.
  • The method effectively mitigates the overfitting to short-range dependencies caused by overlapping tokenization, enabling deeper and more robust representation learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.