AntLM: Bridging Causal and Masked Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yu, Xinru, Guo, Bin, Luo, Shiwei, Wang, Jie, Ji, Tao, Wu, Yuanbin
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913597286776832
author Yu, Xinru
Guo, Bin
Luo, Shiwei
Wang, Jie
Ji, Tao
Wu, Yuanbin
author_facet Yu, Xinru
Guo, Bin
Luo, Shiwei
Wang, Jie
Ji, Tao
Wu, Yuanbin
contents Causal Language Modeling (CLM) and Masked Language Modeling (MLM) are two mainstream learning paradigms based on Transformer networks, specifically the Decoder-only and Encoder-only architectures. The strengths of each paradigm in downstream tasks have shown a mix of advantages and disadvantages. In the past BabyLM Challenge 2023, although the MLM paradigm achieved the best average performance, the CLM paradigm demonstrated significantly faster convergence rates. For the BabyLM Challenge 2024, we propose a novel language modeling paradigm named $\textbf{AntLM}$, which integrates both CLM and MLM to leverage the advantages of these two classic paradigms. We chose the strict-small track and conducted experiments on two foundation models: BabyLlama, representing CLM, and LTG-BERT, representing MLM. During the training process for specific foundation models, we alternate between applying CLM or MLM training objectives and causal or bidirectional attention masks. Experimental results show that combining the two pretraining objectives leverages their strengths, enhancing overall training performance. Under the same epochs, $AntLM_{BabyLlama}$ improves Macro-average by 1%, and $AntLM_{LTG-BERT}$ achieves a 2.2% increase over the baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2412_03275
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AntLM: Bridging Causal and Masked Language Models
Yu, Xinru
Guo, Bin
Luo, Shiwei
Wang, Jie
Ji, Tao
Wu, Yuanbin
Computation and Language
Causal Language Modeling (CLM) and Masked Language Modeling (MLM) are two mainstream learning paradigms based on Transformer networks, specifically the Decoder-only and Encoder-only architectures. The strengths of each paradigm in downstream tasks have shown a mix of advantages and disadvantages. In the past BabyLM Challenge 2023, although the MLM paradigm achieved the best average performance, the CLM paradigm demonstrated significantly faster convergence rates. For the BabyLM Challenge 2024, we propose a novel language modeling paradigm named $\textbf{AntLM}$, which integrates both CLM and MLM to leverage the advantages of these two classic paradigms. We chose the strict-small track and conducted experiments on two foundation models: BabyLlama, representing CLM, and LTG-BERT, representing MLM. During the training process for specific foundation models, we alternate between applying CLM or MLM training objectives and causal or bidirectional attention masks. Experimental results show that combining the two pretraining objectives leverages their strengths, enhancing overall training performance. Under the same epochs, $AntLM_{BabyLlama}$ improves Macro-average by 1%, and $AntLM_{LTG-BERT}$ achieves a 2.2% increase over the baselines.
title AntLM: Bridging Causal and Masked Language Models
topic Computation and Language
url https://arxiv.org/abs/2412.03275