Logo Rui's Blog
  • Home
  • About
  • Skills
  • Experiences
  • Education
  • More
    Featured Posts Recent Posts
  • Posts
  • Notes
  • English
    English 简体中文
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Markdown Sample
  • Shortcodes Sample
  • Internship
    • MiniMind
  • LLM
    • LLM architecture
      • Encoder-only
  • Paper Reading
    • dLLM
    • YAN
  • Pytorch
  • Pytorch
  • Transformer
    • Tokenizer
    • Word Embedding
    • Model
      • LSTM
      • RNN
  • algorithm
    • Array
      • Binary Search
    • Backtracking
    • Binary Tree
    • Dyanmic Programming
      • Multi-dimensional Dynamic Programming
    • Graph Theory
    • Linked List
    • Two-pointers
      • Leetcode 27. Remove Element
      • Leetcode 541. Reverse String II
      • Leetcode 344. Reverse String
      • Sliding Window
Hero Image
Encoder-only

What is Pre-training? Initializing neural network model parameters through self-supervised learning (unlabeled data). The goal is to learn a universal language understanding capability. BERT BERT Pre-training Tasks Masked Language Modeling (MLM) A certain percentage (15%) of tokens in the input sequence are replaced, and the model is tasked with predicting what those original words were. The 8-1-1 Rule 80% of the selected tokens are replaced with [MASK]: Acts like a cloze test, enabling the model to learn bidirectional semantic context. 10% are replaced with a random token from the vocabulary: Since the model doesn’t know which tokens are random, this improves error-correction capabilities and forces the model to rely on the global context to generate the correct vector representation. 10% remain as the original token: This anchors the model’s representations toward the actual “true” embeddings. Optimization Objective $$\mathcal{L}{MLM} = - \sum{i \in m} \log P(x_i | \tilde{X}; \theta)$$ Where $\tilde{X}$ is the corrupted input sequence, $m$ is the set of chosen masked positions, and $\theta$ represents the model parameters.

    Monday, March 2, 2026 | 3 minutes Read
    Navigation
    • About
    • Skills
    • Experiences
    • Education
    • Featured Posts
    • Recent Posts
    Contact me:
    • ruig0401@gmail.com
    • low-hands
    • Rui
    • +1 5875886800

    Liability Notice: This theme is under MIT license. So, you can use it for non-commercial, commercial, or private uses. You can modify or distribute the theme without requiring any permission from the theme author. However, the theme author does not provide any warranty or takes any liability for any issue with the theme.


    Toha Theme Logo Toha
    © 2026 Copyright.
    Powered by Hugo Logo