We introduce a new language representation model called BERT, which stands for Bidirectional Encoder Representations from Transformers. Unlike recent language representation models, BERT is designed to pre-train deep bidirectional representations from unlabeled text by jointly conditioning on both left and right context in all layers. As a result, the pre-trained BERT model can be fine-tuned with just one additional output layer to create state-of-the-art models for a wide range of tasks, such as question answering and language inference, without substantial task-specific architecture modifications. BERT is conceptually simple and empirically powerful. It obtains new state-of-the-art results on eleven natural language processing tasks, including pushing the GLUE score to 80.5% (7.7% point absolute improvement), MultiNLI accuracy to 86.7% (4.6% absolute improvement), SQuAD v1.1 question answering Test F1 to 93.2 (1.5 point absolute improvement) and SQuAD v2.0 Test F1 to 83.1 (5.1 point absolute improvement).
核心贡献 · Key contributions
提出 BERT,一种通过掩码语言建模和下一句预测预训练的深度双向 Transformer。 Introduces BERT, a deep bidirectional Transformer pre-trained via masked language modeling and next sentence prediction.
证明双向预训练在句子级和词元级任务上显著优于单向方法。 Demonstrates that bidirectional pre-training significantly outperforms unidirectional approaches on sentence-level and token-level tasks.
在 GLUE、SQuAD 和 SWAG 等 11 项 NLP 任务上取得大幅领先的最优结果。 Achieves state-of-the-art results on 11 NLP tasks, including GLUE, SQuAD, and SWAG, with substantial margins.
表明预训练表示减少了对任务特定架构的需求,支持简单微调。 Shows that pre-trained representations reduce the need for task-specific architectures, enabling simple fine-tuning.
提供证据表明,预训练后扩大模型规模即使在小型数据集上也能提升性能。 Provides evidence that scaling model size improves performance even on small datasets when pre-trained.
验证了 BERT 在下游任务中微调和基于特征的方法均有效。 Validates both fine-tuning and feature-based approaches for downstream tasks using BERT.
局限 · Limitations
预训练需要大量算力和大规模文本语料。 Pre-training requires large computational resources and extensive text corpora.
掩码语言建模因[MASK]词元导致预训练与微调之间存在不一致。 Masked language modeling creates a mismatch between pre-training and fine-tuning due to [MASK] tokens.
下一句预测任务可能无法很好地泛化到所有下游任务。 The next sentence prediction task may not generalize well to all downstream tasks.
微调在小型数据集上可能不稳定,需要多次随机重启。 Fine-tuning can be unstable on small datasets, requiring multiple random restarts.
模型性能仅针对英语任务和数据集进行了评估。 The model's performance is evaluated only on English-language tasks and datasets.