Xianshun Chen’s Reviews > Getting Started with Google BERT: Build and train state-of-the-art natural language processing models using BERT > Status Update
Xianshun Chen
is on page 92 of 352
done with chapter 2, learned about the segmant and positional encoding layer for BERT, the two tasks for pretraining BERT at the same time, MLM (auto-encoding language model, bidirectional, 50%:50% and 15% token sampling rate per sentence and 80%:10%:10% how to mask token, as well as Whole Word Model), BERT model variants of different sizes, sub-word tokenization (WordPiece, BPE, BBPE)
— Oct 18, 2021 04:50PM
Like flag
Xianshun’s Previous Updates
Xianshun Chen
is on page 314 of 352
Completed chapter 9. Learnt about VideoBERT (how it was trained using cloze task and linguistic-visual-alignment) and BERT (transformer with encoder and decoder, where training is done by encoder takes corrupted text and decoder output the reconstructed text with reconstruction loss against original text), learn about ktrain and bert-as-a-service
— Oct 23, 2021 12:32PM
Xianshun Chen
is on page 284 of 352
Completed chapter 8, learnt about Sentence-BERT (pretrained BERT fine-tuned for computing sentence representation using NLI datasets) as well as XLM-SBERT (teacher model monolinugal pretrained SBERT; student model XLM-R; loss using MSE between source/target sentences of the student model and the source sentence of the teacher model using KD), as well as why max and mean pools, ClinicalBERT, BioBERT
— Oct 23, 2021 10:47AM
Xianshun Chen
is on page 253 of 352
Understand M-BERT (pretrained with WikiData on 104 langs via MLM; zero-shot via topological and language similarity instead of token overlap; work with code-switched text but not transliterated text), XLM (pretrained with MLM + TLM; TLM pretraining with parallel data set with pair language embedding and positional embedding), XLM-R (pretrained with CC and MLM with sentence-piece) as well as monolingual BERT
— Oct 21, 2021 11:43PM
Xianshun Chen
is on page 218 of 352
Done with chap 6, learnt about BERTSUM and how to change token and interval segment encoding for BERTSUM to generate sentence representation using [CLS] at the beginning of each sentence. Also learnt the classifier, transformer, and LSTM based summarization layer as well as the encoder-decoder transformer using pre-trained BERTSUM as encoder and ROUGE-N and ROUGH-L scores for automated evaluation of summarization
— Oct 21, 2021 02:00AM
Xianshun Chen
is on page 189 of 352
Done with chap 5, learnt about DistillBERT (distillation loss + student loss + cosine embedding loss; dynamic masking with larger batch size and MLM task on BERT-base pre-trained teacher) TinyBERT (knowledge transfer from embedding, transformer and prediction layers; use MSE with weight transformation for attention matrix layer and embedding as well as CE for prediction layer) and any (MSE with logit + student loss)
— Oct 19, 2021 11:08PM
Xianshun Chen
is on page 156 of 352
Learnt various BERT models:
* ALBERT (1. cross-layer parameter sharing; 2. factorized embedding parameterization; 3. replace NSP with SOP for pretraining)
* ROBERTa (1. remove NSP; 2. replace static with dynamic masking for MLM; 3. train with large batch size of 8000; 4. BBPE with vocab size of 500K)
* ELECTRA (1. generator train on MLM and used to generate tokens for masked tokens; 2. BERT discriminator )
* SpanBERT
— Oct 19, 2021 04:07PM
* ALBERT (1. cross-layer parameter sharing; 2. factorized embedding parameterization; 3. replace NSP with SOP for pretraining)
* ROBERTa (1. remove NSP; 2. replace static with dynamic masking for MLM; 3. train with large batch size of 8000; 4. BBPE with vocab size of 500K)
* ELECTRA (1. generator train on MLM and used to generate tokens for masked tokens; 2. BERT discriminator )
* SpanBERT
Xianshun Chen
is on page 123 of 352
learn fine tuning of BERT in various tasks (classification and NLI using BertForSequenceClassification, question and answering using BertForQuestionAnswering with dotproduct and softmax layer, NER with feedforward and softmax layers, BertModel for extracting [CLS] embedding, final layer token embeddings, token hidden states for all layers, TrainingArguments, Trainer, nlp.load_dataset for fine-tuning pre-trained BERT)
— Oct 18, 2021 11:58PM
Xianshun Chen
is on page 56 of 352
done with chapter one, on the plus side about the masked multi-head attention, on the minus side, not clear about whether the linear layer on top of the decoder block before the final softmax, is a flattened dense layer or not (my guess is yes)
— Oct 17, 2021 01:56AM

