UniLMv2: 통합 언어 모델 전훈련을 위한 가상의 마스킹 언어 모델
UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training
UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training
@misc{bao2020unilmv,
title = {UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training},
author = {Hangbo Bao and Li Dong and Furu Wei and Wenhui Wang and Nan Yang and Xiaodong Liu and Yu Wang and Songhao Piao and Jianfeng Gao and Ming Zhou and Hsiao-Wuen Hon},
year = {2020},
eprint = {2002.12804},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2002.12804}
}
Bao, H., Dong, L., Wei, F., Wang, W., Yang, N., Liu, X., Wang, Y., Piao, S., Gao, J., Zhou, M., & Hon, H.-W. (2020). UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2002.12804
BAO H, DONG L, WEI F, et al. UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training[EB/OL]. (2020-02-28)[2026-11-29]. https://arxiv.org/abs/2002.12804.
초록
우리는 새로운 훈련 절차인 가짜 마스킹 언어 모델 (PMLM) 을 사용하여 자동 인코딩 및 부분적 자기 회귀 언어 모델링 작업을 모두 수행할 수 있는 통합 언어 모델을 사전 학습하는 것을 제안한다. 마스킹 토큰이 포함된 입력 텍스트에 대해, 우리는 자동 인코딩을 통해 손상된 토큰과 문맥 간의 상호 관계를 학습하기 위해 관용적 마스킹을, 부분적 자기 회귀 모델링을 통해 마스킹 스페인 간의 내부 관계를 학습하기 위해 가짜 마스킹을 활용한다. 잘 설계된 위치 임베딩과 자기 주의 마스킹을 통해 문맥 인코딩을 재사용함으로써 중복 계산을 피할 수 있다. 또한, 자동 인코딩에 사용되는 관용적 마스킹은 전역 마스킹 정보를 제공하므로, 부분적 자기 회귀 언어 모델링에서 모든 위치 임베딩에 접근할 수 있다. 추가적으로, 두 작업은 통합 언어 모델을 각각 양방향 인코더와 시퀀스-시퀀스 디코더로 사전 학습한다. 우리의 실험 결과는 PMLM 을 사용하여 사전 학습된 통합 언어 모델이 여러 널리 사용되는 벤치마크에서 자연어 이해 및 생성 작업의 광범위한 영역에서 새로운 최상위 성능 (state-of-the-art) 을 달성함을 보여준다.
We propose to pre-train a unified language model for both autoencoding and partially autoregressive language modeling tasks using a novel training procedure, referred to as a pseudo-masked language model (PMLM). Given an input text with masked tokens, we rely on conventional masks to learn inter-relations between corrupted tokens and context via autoencoding, and pseudo masks to learn intra-relations between masked spans via partially autoregressive modeling. With well-designed position embeddings and self-attention masks, the context encodings are reused to avoid redundant computation. Moreover, conventional masks used for autoencoding provide global masking information, so that all the position embeddings are accessible in partially autoregressive language modeling. In addition, the two tasks pre-train a unified language model as a bidirectional encoder and a sequence-to-sequence decoder, respectively. Our experiments show that the unified language models pre-trained using PMLM achieve new state-of-the-art results on a wide range of natural language understanding and generation tasks across several widely used benchmarks.