Manuscript Offprint

arXiv:2610.26601

BERT Is Already a Denoiser: Cheaply Unlocking Iterative Generation in Masked Language Models

Julio C. Amador Diaz Lopez

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Masked language models (MLMs) such as BERT are conventionally treated as representation models rather than generators, despite being pretrained to reconstruct corrupted text. We ask whether this pretrained denoising capability can be converted directly into iterative conditional generation without explicitly training a diffusion model. We construct a simple decoder that repeatedly applies a pretrained MLM to masked target positions and progressively commits its highest-confidence predictions according to an external cosine schedule. The model receives no diffusion timestep, learned noise schedule, or reverse-diffusion objective.

Frozen BERT already exhibits substantial denoising capability, reconstructing 61.0%, 37.5%, and 24.4% of masked tokens at 15%, 45%, and 60% corruption, respectively, although generation deteriorates sharply as visible context disappears. This capability alone does not yield task-directed generation: frozen BERT reaches only 11.0% on ARC-Easy and 4.2% on MMLU. Ordinary MLM adaptation, however, rapidly converts the same architecture into a usable generator. Full adaptation reaches 28.2% and 24.6%, respectively, while parameter-efficient adaptation substantially reduces unmatched outputs. On open-ended conditional generation, full MLM adaptation reaches BLEU/ROUGE-L of 0.163/0.583 on QQP and 0.107/0.327 on Quasar-T, placing it in the same broad performance range as published BERT models trained through diffusion without explicit diffusion training. Finally, applying the same generative interface to stronger masked representations substantially improves performance: RoBERTa-large reaches 44.2% on ARC-Easy and 33.8% on MMLU.

These results separate three components of masked iterative generation: pretraining supplies the representation and denoising operator, task adaptation determines what the model generates, and an iterative commitment rule supplies the decoding process. Explicit diffusion training is therefore not necessary to obtain effective iterative conditional generation from pretrained MLMs in the settings studied here.

1 Introduction

Masked language models (MLMs) such as BERT [4] are typically treated as representation models rather than generators. Their pretraining objective reconstructs tokens removed from otherwise observed text, producing bidirectional representations that have proved effective across classification, retrieval, and structured prediction tasks[6]. In contrast, modern text generation is dominated by autoregressive models and, more recently, by diffusion-based approaches that formulate generation as iterative denoising.

The distinction is less clear than this division of labour suggests. A MLM is already trained to map corrupted language back toward clean language. It is then reasonable to assume that its pretrained denoising operator might already contain enough of the machinery that generation requires. If the model is repeatedly applied while its most confident predictions are progressively inserted into the context, masked-token prediction itself defines an iterative generation procedure.

This connection has motivated several approaches to generative masked language modelling. BERT has been interpreted as a Markov random field from which text can be sampled iteratively [17], while conditional masked language models have used iterative refinement for non-autoregressive generation [7]. More recently, discrete diffusion models have formalized iterative text denoising as a probabilistic generative process. Particularly relevant to our question, DiffusionBERT initializes such a process from pretrained BERT, explicitly exploiting the shared denoising structure of masked-language-model pretraining and discrete diffusion [8]. This raises a more basic question: how much additional generative machinery is required once a pretrained masked language model already exists?

We investigate this question by deliberately removing the diffusion machinery. Starting from ordinary pretrained BERT-family MLMs, we introduce no forward diffusion process, reverse diffusion parameterization, timestep embedding, or learned noise schedule. Instead, generation consists of repeated MLM evaluation followed by a simple external commitment schedule. At each iteration, the model predicts all unresolved target positions, the highest-confidence predictions are committed, and the remaining positions stay masked for the next pass. Once committed, tokens are never remasked. The result is a monotonic iterative decoder built directly around the pretrained MLM.

This construction lets us separate three components that are often bundled together in generative masked models: the representation and denoising operator learned during MLM pretraining, the task adaptation that aligns them with the desired output, and the decoding procedure that progressively turns masked predictions into a completed sequence. We study these components through a sequence of experiments spanning frozen text reconstruction, multiple-choice

*SiftyML, LTD

London, United Kingdom

julio@siftyml.com generation, paraphrase generation, question generation, and different pretrained BERT-family representations.

We first ask whether useful iterative denoising is already present before any generative adaptation. On corrupted natural text, frozen bert-base-uncased reconstructs 61.0% of masked tokens at 15% masking, 37.5% at 45%, and 24.4% even when 60% of the evaluated sequence is masked. Distributional quality remains high at low corruption but deteriorates sharply as visible context disappears, with repetition emerging at very high masking ratios. These results establish both the capability and its boundary: pretrained BERT is already an effective conditional denoiser, but it does not become a useful unconditional generator simply by masking the entire sequence.

We then test whether this denoising capability directly yields task-conditioned generation. We find that it does not; when the question and answer choices are visible but the answer itself must be generated through a masked target region, frozen BERT reaches only 11.0% accuracy on ARC-Easy and 4.2% on MMLU with most outputs failing to resolve to any candidate answer. However, ordinary answer-only MLM adaptation changes this behavior rapidly. A parameter-efficient BitFit condition raises ARC-Easy accuracy to 25.2% while reducing unmatched generations from 71.4% to 12.8%; full fine-tuning reaches 28.2% on ARC-Easy and 24.6% on MMLU. In contrast, requiring the model to generate an intermediate rationale increases the generative burden without improving final-answer performance.

The same mechanism extends to open-ended conditional generation. On QQP, full MLM adaptation reaches BLEU = 0.163 and ROUGE-L = 0.583; on Quasar-T, it reaches BLEU = 0.107 and ROUGE-L = 0.327. These results place an ordinarily adapted MLM in the same broad performance range as a published explicitly trained masked-diffusion baseline on these tasks, despite requiring neither a diffusion objective nor diffusion-time conditioning [8]. The comparison is not a controlled head-to-head evaluation because the training and inference procedures differ. Rather, it provides evidence for the narrower claim tested here: explicit diffusion training is not required to obtain competitive iterative conditional generation from a pretrained MLM in these settings.

Finally, we ask what determines the competence of the resulting generator. Frozen pseudo-log-likelihood controls reveal no large hidden multiple-choice capability in BERT-base that is merely inaccessible to the iterative decoder. Instead, replacing the underlying masked representation changes generative performance substantially. BERT-large provides only a modest gain over BERT-base, whereas RoBERTa-large reaches 44.2% on ARC-Easy and 33.8% on MMLU under the same generative framework. Because BERT-large and RoBERTa-large are similar in parameter scale, this comparison indicates that generative competence depends strongly on the quality of the underlying masked representation rather than model size alone.

Taken together, the results support a simple account of how pretrained MLMs become generators. MLM pretraining supplies both the underlying representation and a conditional denoising operator. Task-specific MLM adaptation aligns these with the desired output, while an iterative commitment rule converts repeated applications of the denoising operator into a decoding process. The quality of the pretrained representation, in turn, constrains the competence that the resulting generator can express. Our contributions are therefore fourfold:

• We show that substantial iterative denoising is already present in frozen BERT and characterize how it degrades as visible context is progressively removed.

• We demonstrate that denoising capability and task-directed generation are empirically separable: frozen BERT is a useful denoiser but a poor task-conditioned generator, while ordinary MLM adaptation cheaply converts the same architecture into a usable generative interface.

• We show that standard MLM adaptation and simple iterative decoding can reach the performance range of an explicitly trained masked-diffusion model on conditional generation, without a diffusion objective, timestep conditioning, or diffusion sampling process.

• We show that the competence of the resulting generator tracks the underlying masked representation: stronger pretrained representations produce substantially stronger generators under essentially the same decoding procedure.

These findings narrow the role that must be assigned to explicit diffusion training in masked text generation. They do not imply that diffusion provides no additional benefits: probabilistic modelling, diversity, unconditional generation, and alternative sampling behaviour remain distinct questions. Rather, they show that the basic ingredients required for effective iterative conditional generation can already be latent in a pretrained masked language model. In this regime, generation can be obtained by exposing and adapting an existing denoising capability rather than by learning the denoising process anew.

References (18)