BART Pre-training › The Denoising Framework
Language AI HandbookAll chapters BART Pre-training › The Denoising FrameworkOne section · Sections in this chapter2 / 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
BART's pre-training objective is simple: given a corrupted document , reconstruct the original document . This turns the abstract problem of "learning language" into a concrete task: undo the corruption and recover the original text. The approach works because the objective creates rich learning signals based on how we corrupt the input.
The model minimizes negative log-likelihood loss:
where:
- : the loss function to minimize (negative log-likelihood)
- : the original uncorrupted document
- : the number of tokens in the original document
- : the -th token of the original document
- : all tokens before position (the decoder's previous outputs)
- : the corrupted version of the document (encoder input)
- : the probability the model assigns to the correct token
Consider what happens at each decoding step. The model uses two information sources: the corrupted input processed by the encoder, and the previously generated tokens . With these, the model predicts the probability distribution over all possible next tokens. We measure how much probability mass it assigns to the correct token . The logarithm converts multiplicative probabilities into additive quantities. The negative sign changes our goal from maximizing likelihood to minimizing loss, which is standard in optimization.
This is cross-entropy loss over the original tokens, conditioned on both the previously generated tokens and the corrupted input. The encoder processes , and the decoder generates token by token. The summation over all tokens means we get a training signal at every position in the sequence, not just corrupted ones. This dense supervision distinguishes BART from BERT, which only computes loss at masked positions.
A model that learns to reconstruct clean data from corrupted versions. The corruption process is called "noising," and the reconstruction process is "denoising." The model learns reliable representations by being forced to fill in missing or corrupted information.
The key design choice is selecting the noising function that turns into . This function determines what the model learns during pre-training. Different noising functions create different learning signals. Some emphasize local word relationships, others stress document structure, and some require the model to infer the length of missing content. If corruption is too easy to reverse, the model learns little because it can trivially recover the original without developing strong linguistic understanding. If corruption is too difficult or destroys too much structure, the model cannot learn meaningful patterns because there's insufficient signal remaining to guide reconstruction. BART's innovation was systematically exploring this design space to identify corruptions that hit the sweet spot: challenging enough to force learning but structured enough to permit it.
Unlike BERT, which only predicts masked tokens, BART's decoder must generate the entire original sequence. This architectural choice affects training. The model receives a training signal for every token position, not just corrupted ones. Even "easy" positions where the input was not corrupted contribute to learning. The decoder must copy these tokens and position them correctly within the output sequence. Unlike T5, which uses a specific span corruption scheme with sentinel tokens, BART explores a broader range of corruption strategies and reconstructs exact original text rather than just the corrupted spans. This full-sequence reconstruction teaches the model to blend generated content with copied content, a skill relevant to tasks like summarization where the output combines novel phrases with material drawn from the source.