BART Pre-training › Comparison with Other Pre-training Approaches

Michael BrenndoerferOctober 19, 20255 min read
Language AI HandbookAll chapters
Part 25 of 67Encoder-Decoder Models
Chapter 181BART Pre-training › Comparison with Other Pre-training Approaches
Reading section 9 of 16 · Comparison with Other Pre-training Approaches · 5 minSection 9 of 16 · 5 min

Book contents

Section 9 of 16 · 5 min read

BART Pre-training › Comparison with Other Pre-training ApproachesOne section · Sections in this chapter9 / 16 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Understanding BART's pre-training requires comparing it to related approaches we've covered in earlier chapters.

BART vs. BERT

BERT's masked language modeling (covered in Part XXIV) masks 15% of tokens and predicts only those positions. Key differences:

BERT vs BART pre-training comparison.
AspectBERTBART
ArchitectureEncoder-onlyEncoder-decoder
OutputMasked positions onlyFull sequence
Mask-to-token ratio1:1Variable (many:many)
Position signalsMask tokens mark positionsNo explicit position markers
Generation capabilityLimitedNative

BERT performs well at tasks requiring bidirectional understanding, such as classification and extraction, but struggles with generation because it was never trained to produce full sequences. BART maintains BERT's bidirectional encoder benefits while adding generation capability.

BART vs. T5

T5's span corruption (covered in Part XXV, Chapter 2) shares BART's span-based approach but differs in key ways:

T5 vs BART pre-training comparison.
AspectT5BART
Corruption outputReplace spans with sentinelsReplace spans with single mask
Decoder outputOnly corrupted spansFull original sequence
Span identificationSentinels mark boundariesNo explicit boundaries
Training signalOnly corrupted tokensAll tokens

T5's sentinel-based approach is more efficient, but BART's full-sequence reconstruction provides better signal for tasks requiring exact output control, such as grammatical error correction or style transfer.

BART vs. GPT

GPT's causal language modeling (Part XXVIII) trains the model to predict the next token given all previous tokens. Comparing to BART:

GPT vs BART pre-training comparison.
AspectGPTBART
Input corruptionNone (left context only)Various noising schemes
AttentionCausal (unidirectional)Encoder bidirectional, decoder causal
Learning signalNext token predictionFull reconstruction
Zero-shot capabilityStrongModerate

GPT's unidirectional approach prevents it from using future context during encoding. BART's encoder sees the full corrupted input bidirectionally, which helps for tasks where understanding the complete input matters.

Out[23]:
Visualization
BERT input-output diagram showing masked tokens and sparse predictions.
BERT: Masked LM predicts only at masked positions (sparse output).
GPT input-output diagram showing shifted causal prediction.
GPT: Causal LM predicts next token at each position (dense but unidirectional).
T5 input-output diagram showing sentinel tokens and span generation.
T5: Span corruption generates only corrupted spans with sentinels (efficient).
BART input-output diagram showing full sequence reconstruction.
BART: Denoising reconstructs the full sequence (dense bidirectional signal).