PhD Seminar • Natural Language Processing • Segatron: Segment-aware Transformer for Language Modeling

Monday, December 12, 2022 10:00 am - 11:00 am EST (GMT -05:00)

Please note: This PhD seminar will take place online.

He (Richard) Bai, PhD candidate
David R. Cheriton School of Computer Science

Supervisor: Professor Ming Li

TL;DR: This seminar would cover our AAAI work about LM and BERT pretraining, and our recent unpublished work about GPT-3 13B model pretraining. We show our Segatron consistently outperform BERT and GPT-3 under the same training configuration over various model size and evaluation tasks. We will also talk about our findings on the validation of LLM.

Abstract: Transformers are powerful for sequence modeling. Nearly all state-of-the-art language models and pre-trained language models are based on the Transformer architecture. However, it distinguishes sequential tokens only with the token position index. We hypothesize that better contextual representations can be generated from the Transformer with richer positional information. To verify this, we propose a segment-aware Transformer (Segatron), by replacing the original token position encoding with a combined position encoding of paragraph, sentence, and token.

We first introduce the segment-aware mechanism to Transformer-XL, which is a popular Transformer-based language model with memory extension and relative position encoding. We find that our method can further improve the Transformer-XL base model and large model, achieving 17.1 perplexity on the WikiText-103 dataset. We further investigate the pre-training masked language modeling task with Segatron. Experimental results show that BERT pre-trained with Segatron (SegaBERT) can outperform BERT with vanilla Transformer on various NLP tasks, and outperforms RoBERTa on zero-shot sentence representation learning.

Paper link