On the Role of Bidirectionality in Language Model Pre-Training
Not on the map. Why?
Abstract (arXiv)
Prior work on language model pre-training has explored different architectures and learning objectives, but differences in data, hyperparameters and evaluation make a principled comparison difficult. In this work, we focus on bidirectionality as a key factor that differentiates existing approaches, and present a comprehensive study of its role in next token prediction, text infilling, zero-shot priming and fine-tuning. We propose a new framework that generalizes prior approaches, including fully unidirectional models like GPT, fully bidirectional models like BERT, and hybrid models like CM3 and prefix LM. Our framework distinguishes between two notions of bidirectionality (bidirectional context and bidirectional attention) and allows us to control each of them separately. We find that the optimal configuration is largely application-dependent (e.g., bidirectional attention is beneficial for fine-tuning and infilling, but harmful for next token prediction and zero-shot priming). We train models with up to 6.7B parameters, and find differences to remain consistent at scale. While prior work on scaling has focused on left-to-right autoregressive models, our results suggest that this approach comes with some trade-offs, and it might be worthwhile to develop very large bidirectional models.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 33 of its 50 references that are in the map. First posted on arXiv 24 May 2022.
Builds on
33 of 50 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
21 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2018Deep contextualized word representationscited by 2,290
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2018Neural Network Acceptability Judgmentscited by 958
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
- 2019CCNet: Extracting High Quality Monolingual Datasets from Web Crawl Datacited by 548
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 417
- 2021ERNIE 3.0: Large-scale Knowledge Enhanced Pre-training for Language Understanding and Generationcited by 260
- 2018A Simple Method for Commonsense Reasoningcited by 223
- 2018ReCoRD: Bridging the Gap between Human and Machine Commonsense Reading Comprehensioncited by 200
- 2015Semi-supervised Sequence Learningcited by 198
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2022What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?cited by 150
- 2022CM3: A Causal Masked Multimodal Model of the Internetcited by 142
- 2021Yuan 1.0: Large-Scale Pre-trained Language Model in Zero-Shot and Few-Shot Learningcited by 35
Built on by
Citing papers per year: 2022: 6; 2023: 4; 2024: 2; 2025: 2; 2026: 1.
15 papers.
Sort:
By area:
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2023A Cookbook of Self-Supervised Learningcited by 250
- 2024The pitfalls of next-token predictioncited by 160
- 2022Language Models are General-Purpose Interfacescited by 97
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2022Training Trajectories of Language Models Across Scalescited by 81
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2022Nonparametric Masked Language Modelingcited by 40
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoderscited by 38
- 2023On "Scientific Debt" in NLP: A Case for More Rigour in Language Model Pre-Training Researchcited by 7
- 2023Training Transitive and Commutative Multimodal Transformers with LoReTTacited by 4
- 2022Towards Better Few-Shot and Finetuning Performance with Forgetful Causal Language Modelscited by 3
3 more
- 2024When Only Time Will Tell: Interpreting How Transformers Process Local Ambiguities Through the Lens of Restart-Incrementalitycited by 1
- 2025LLM-Assisted Question-Answering on Technical Documents Using Structured Data-Aware Retrieval Augmented Generationcited by 0
- 2026Induction in Both Directions: A Mechanistic Analysis of In-Context Learning in Masked Diffusion Language Modelscited by 0
- 2026Induction in Both Directions: A Mechanistic Analysis of In-Context Learning in Masked Diffusion Language Models17 Jul 2026
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoders15 Jul 2025
- 2025LLM-Assisted Question-Answering on Technical Documents Using Structured Data-Aware Retrieval Augmented Generation29 Jun 2025
- 2024The pitfalls of next-token prediction11 Mar 2024
- 2024When Only Time Will Tell: Interpreting How Transformers Process Local Ambiguities Through the Lens of Restart-Incrementality20 Feb 2024
- 2023On "Scientific Debt" in NLP: A Case for More Rigour in Language Model Pre-Training Research5 Jun 2023
- 2023Training Transitive and Commutative Multimodal Transformers with LoReTTa23 May 2023
- 2023A Cookbook of Self-Supervised Learning24 Apr 2023
- 2023Language Model Behavior: A Comprehensive Survey20 Mar 2023
- 2022Cramming: Training a Language Model on a Single GPU in One Day28 Dec 2022
- 2022Training Trajectories of Language Models Across Scales19 Dec 2022
- 2022Nonparametric Masked Language Modeling2 Dec 2022
3 more
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2023A Cookbook of Self-Supervised Learningcited by 250
- 2024The pitfalls of next-token predictioncited by 160
- 2022Language Models are General-Purpose Interfacescited by 97
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2022Training Trajectories of Language Models Across Scalescited by 81
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2022Nonparametric Masked Language Modelingcited by 40
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoderscited by 38
- 2023On "Scientific Debt" in NLP: A Case for More Rigour in Language Model Pre-Training Researchcited by 7
- 2023Training Transitive and Commutative Multimodal Transformers with LoReTTacited by 4
- 2022Towards Better Few-Shot and Finetuning Performance with Forgetful Causal Language Modelscited by 3
12 most cited of 13 All 13 (JSON)
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoders15 Jul 2025
- 2024The pitfalls of next-token prediction11 Mar 2024
- 2024When Only Time Will Tell: Interpreting How Transformers Process Local Ambiguities Through the Lens of Restart-Incrementality20 Feb 2024
- 2023On "Scientific Debt" in NLP: A Case for More Rigour in Language Model Pre-Training Research5 Jun 2023
- 2023Training Transitive and Commutative Multimodal Transformers with LoReTTa23 May 2023
- 2023A Cookbook of Self-Supervised Learning24 Apr 2023
- 2023Language Model Behavior: A Comprehensive Survey20 Mar 2023
- 2022Cramming: Training a Language Model on a Single GPU in One Day28 Dec 2022
- 2022Training Trajectories of Language Models Across Scales19 Dec 2022
- 2022Nonparametric Masked Language Modeling2 Dec 2022
- 2022Towards Better Few-Shot and Finetuning Performance with Forgetful Causal Language Models24 Oct 2022
- 2022Efficient Training of Language Models to Fill in the Middle28 Jul 2022
12 newest of 13 All 13 (JSON)