Papers › Probabilistically Masked Language Model Capable of Autoregressive Generation in...

Probabilistically Masked Language Model Capable of Autoregressive Generation in Arbitrary Word Order

24 Apr 2020ACL 2020 6arXiv:2004.11579archive 2025-07-28

Yi Liao, Xin Jiang, Qun Liu

Masked language model and autoregressive language model are two types of language models. While pretrained masked language models such as BERT overwhelm the line of natural language understanding (NLU) tasks, autoregressive language models such as GPT are especially capable in natural language generation (NLG). In this paper, we propose a probabilistic masking scheme for the masked language model, which we call probabilistically masked language model (PMLM). We implement a specific PMLM with a uniform prior distribution on the masking ratio named u-PMLM. We prove that u-PMLM is equivalent to an autoregressive permutated language model. One main advantage of the model is that it supports text generation in arbitrary order with surprisingly good quality, which could potentially enable new applications over traditional unidirectional generation. Besides, the pretrained u-PMLM also outperforms BERT on a set of downstream NLU tasks.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2004.11579")

Code

Syntology Ran 18 of 35 code samples harvested from 2 repositories linked to this paper; 17 have no recorded run. Of those that ran: 4 ran · honoured contract; 3 ran · violated contract; 7 ran · our draft was wrong; 2 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 28 samples from 1 repository, 15 ran; community (archive-listed): 6 samples from 1 repository, 2 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

m-hahn/PMLM mentioned on GitHubtfApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

35 samples harvested; 18 ran; 4 honoured the contract we drafted; 17 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · honoured contract
3ran · violated contract
7ran · our draft was wrong
2ran · fixture could not drive it
2ran
17unverified

Licence: 29 of the 35 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BasicTokenizer huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran fingerprinted no licence file found · pointer only · 177395ce85e9e46c · report
WordpieceTokenizer huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran no licence file found · pointer only · 153daed490586fac · report
_generate_relative_positions_embeddings huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 4043c0de4f5b299e · report
_generate_relative_positions_matrix huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · d849cf96b7e5e9ee · report
_is_control huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · violated contract no licence file found · pointer only · 9631b2c9fcf97ecf · report
_is_punctuation huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · violated contract no licence file found · pointer only · 4707df29d0d89e16 · report
_is_whitespace huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · violated contract no licence file found · pointer only · 80a675f52dc9953c · report
convert_by_vocab huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · our draft was wrong no licence file found · pointer only · bf6088a6a68ef09c · report
convert_to_unicode huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 1923fc05163d207d · report
dropout huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 873e08c3f15eb1e4 · report
gelu huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 44fc0426bec46486 · report
get_activation huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · our draft was wrong no licence file found · pointer only · 8eddd1789d66ce8d · report
get_shape_list huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 5a657fd9d0832b35 · report
reshape_to_matrix huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 7b84f3e6a96584b4 · report
top_k_logits huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · eaa09f3e52dcedfd · report
BertModel huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · 3c86b7d1ed73e184 · report
FullTokenizer huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · e546de3e85798f55 · report
assert_rank huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · 3626c55dff7dd429 · report
attention_layer huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · 3e9d8117d432e11f · report
create_attention_mask_from_input_mask huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · 81415c63dd9b8e77 · report
create_initializer huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · e3981aa2fadfb2eb · report
embedding_lookup huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · fd655b6f6e2908d6 · report
embedding_postprocessor huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · 3e2e6083468647f2 · report
layer_norm huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · fedeb6766bad1fad · report
layer_norm_and_dropout huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · 15f847b95346c6d2 · report
load_vocab huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · a87406334d83c277 · report
reshape_from_matrix huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · b1f366f8472004a2 · report
transformer_model huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py official repository unverified no licence file found · pointer only · bc3e0393640c7f77 · report
gelu m-hahn/PMLM/modeling.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · d08f324f950148de · report
get_activation m-hahn/PMLM/modeling.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 5842ee67106321d6 · report
create_float_feature m-hahn/PMLM/create_pretraining_data.py community (archive-listed) unverified Apache-2.0 (permissive) · b24b3b9c700da839 · report
create_int_feature m-hahn/PMLM/create_pretraining_data.py community (archive-listed) unverified Apache-2.0 (permissive) · dd3ef48a15aec0cd · report
get_assignment_map_from_checkpoint m-hahn/PMLM/interactive_conditional_samples_sincos_acrostic_SST2_Finetune_OLD.py community (archive-listed) unverified Apache-2.0 (permissive) · 0fc04590521d0f1c · report
input_fn_builder m-hahn/PMLM/extract_features.py community (archive-listed) unverified Apache-2.0 (permissive) · 47a3c792cebb6603 · report
whitespace_tokenize identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · cf9ffa02a42184af · report

Tasks

Language ModelingLanguage ModellingNatural Language UnderstandingText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: PMLM

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionPMLMResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections