SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2004.11579 · ACL · 2020

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

Xin Jiang, Qun Liu, Yi Liao

arXiv · PDF · Open in the Atlas

Code that ran

21 of 35 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 3 violated it and 3 have no contract verdict; 11 failures of our instrument; 14 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2004.11579.json · badge: /api/ran/2004.11579.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
huawei-noah/Pretrained-Language-Model marked official in Papers with Code
Papers with Code archive
15 ran · 13 no recorded run
m-hahn/PMLM community (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
whitespace_tokenize Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from clovaai/minimal-rnr-qa
pointer only · get_code("cf9ffa02a42184af")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BasicTokenizer Ran
ran on a synthesized input
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("177395ce85e9e46c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

WordpieceTokenizer Ran
ran on a synthesized input · constructed an object; no result was computed
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("153daed490586fac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_generate_relative_positions_embeddings Ran
ran, honoured the contract we drafted
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("4043c0de4f5b299e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_generate_relative_positions_matrix Ran
ran, honoured the contract we drafted
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("d849cf96b7e5e9ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_is_control Ran
ran, violated the contract we drafted
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("9631b2c9fcf97ecf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_is_punctuation Ran
ran, violated the contract we drafted
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("4707df29d0d89e16")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_is_whitespace Ran
ran, violated the contract we drafted
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("80a675f52dc9953c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_by_vocab Ran
ran; our contract draft was wrong, not the code
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("bf6088a6a68ef09c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_to_unicode Ran
ran; our contract draft was wrong, not the code
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("1923fc05163d207d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_float_feature Ran
ran; our contract draft was wrong, not the code
m-hahn/PMLM/create_pretraining_data.py
code served (permissive licence) · get_code("b24b3b9c700da839")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Feature. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

def create_float_feature(values):
    feature = tf.train.Feature(float_list=tf.train.FloatList(value=list(values)))
    return feature

# The function takes 'values' parameter and converts it to a list, then creates a FloatList
# We need to provide an iterable of numeric values

values = [1.0, 2.5, 3.7, 4.2]

ARGS = {
    "values": values
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Feature — a Feature output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Feature output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_int_feature Ran
ran; our contract draft was wrong, not the code
m-hahn/PMLM/create_pretraining_data.py
code served (permissive licence) · get_code("dd3ef48a15aec0cd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Feature. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf

# The function create_int_feature takes 'values' as a parameter
# It converts values to a list and passes it to tf.train.Int64List
# So values should be an iterable of integers

ARGS = {
    "values": [1, 2, 3, 4, 5]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Feature — a Feature output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Feature output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dropout Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("873e08c3f15eb1e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gelu Ran
ran, honoured the contract we drafted
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("44fc0426bec46486")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gelu Ran
ran, honoured the contract we drafted
m-hahn/PMLM/modeling.py
code served (permissive licence) · get_code("d08f324f950148de")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned EagerTensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tensorflow as tf

# Create a small TensorFlow tensor for testing
x = tf.constant([[-0.5, 0.0, 0.5, 1.0], [0.2, -0.3, 0.8, -0.1]], dtype=tf.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_activation Ran
ran; our contract draft was wrong, not the code
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("8eddd1789d66ce8d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_activation Ran
ran; our contract draft was wrong, not the code
m-hahn/PMLM/modeling.py
code served (permissive licence) · get_code("5842ee67106321d6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import six
import tensorflow as tf

def gelu(x):
    """Gaussian Error Linear Unit.

  This is a smoother version of the RELU.
  Original paper: https://arxiv.org/abs/1606.08415
  Args:
    x: float Tensor to perform activation.

  Returns:
    `x` with the GELU activation applied.
  """
    cdf = 0.5 * (1.0 + tf.tanh(np.sqrt(2 / np.pi) * (x + 0.044715 * tf.pow(x, 3))))
    return x * cdf

def get_activation(activation_string):
    """Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`.

  Args:
    activation_string: String name of the activation function.

  Returns:
    A Python function corresponding to the activation function. If
    `activation_string` is None, empty, or "linear", this will return None.
    If `activation_string` is not a string, it will return `activation_string`.

  Raises:
    ValueError: The `activation_string` does not correspond to a known
      activation.
  """
    if not isinstance(activation_string, six.string_types):
        return activation_string
    if not activation_string:
        return None
    act = activation_string.lower()
    if act == 'linear':
        return None
    elif act == 'relu':
        return tf.nn.relu
    elif act == 'gelu':
        return gelu
    elif act == 'tanh':
        return tf.tanh
    else:
        raise ValueError('Unsupported activation: %s' % act)


ARGS = {
    'activation_string': 'relu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, six, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_shape_list Ran
ran; our contract draft was wrong, not the code
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("5a657fd9d0832b35")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

input_fn_builder Ran
ran on a synthesized input
m-hahn/PMLM/extract_features.py
code served (permissive licence) · get_code("47a3c792cebb6603")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf

class Feature:
    def __init__(self, unique_id, input_ids, input_mask, input_type_ids):
        self.unique_id = unique_id
        self.input_ids = input_ids
        self.input_mask = input_mask
        self.input_type_ids = input_type_ids

seq_length = 4
num_examples = 2

features = [
    Feature(
        unique_id=0,
        input_ids=[101, 2054, 2003, 102],
        input_mask=[1, 1, 1, 1],
        input_type_ids=[0, 0, 0, 0]
    ),
    Feature(
        unique_id=1,
        input_ids=[101, 1045, 2572, 102],
        input_mask=[1, 1, 1, 1],
        input_type_ids=[0, 0, 0, 0]
    )
]

ARGS = {
    'features': features,
    'seq_length': seq_length
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reshape_to_matrix Ran
ran; our contract draft was wrong, not the code
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("7b84f3e6a96584b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

top_k_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("eaa09f3e52dcedfd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BertModel Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("3c86b7d1ed73e184")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

FullTokenizer Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("e546de3e85798f55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

assert_rank Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("3626c55dff7dd429")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

attention_layer Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("3e9d8117d432e11f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_attention_mask_from_input_mask Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("81415c63dd9b8e77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_initializer Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("e3981aa2fadfb2eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

embedding_lookup Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("fd655b6f6e2908d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

embedding_postprocessor Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("3e2e6083468647f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_assignment_map_from_checkpoint Not yet run
unverified (harvested, no recorded run)
m-hahn/PMLM/interactive_conditional_samples_sincos_acrostic_SST2_Finetune_OLD.py
code served (permissive licence) · get_code("0fc04590521d0f1c")
How it ran

no invocation recorded.

layer_norm Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("fedeb6766bad1fad")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

layer_norm_and_dropout Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("15f847b95346c6d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_vocab Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("a87406334d83c277")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

reshape_from_matrix Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("b1f366f8472004a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

transformer_model Not yet run
unverified (harvested, no recorded run)
huawei-noah/Pretrained-Language-Model/PMLM/interactive_conditional_samples_sincos_acrostic.py
pointer only (licence: NONE) · get_code("bc3e0393640c7f77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huawei-noah/Pretrained-Language-Model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 35 samples lifted from this paper's linked repositories, 35 carry a function identity and 0 do not. Of the 34 distinct functions with an identity, 25 are also present in other papers whose code we hold (25 with at least one paper dated earlier, 11 the same month, 18 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
whitespace_tokenize
brick of this paper's assembly: helper
43 other papers
4 dated earlier, 2 the same month, 37 later
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 40 more not named here
convert_to_unicode
brick of this paper's assembly: helper
36 other papers
14 dated earlier, 22 later
1609.08144 (2016-09)
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
and 33 more not named here
get_activation
brick of this paper's assembly: helper
32 other papers
17 dated earlier, 1 the same month, 14 later · 1 only as an assembly brick
1804.05392 (2018-04)
Higher-order Coreference Resolution with Coarse-to-fine Inference
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
and 29 more not named here
gelu 26 other papers
14 dated earlier, 1 the same month, 11 later · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
and 23 more not named here
load_vocab
brick of this paper's assembly: helper
16 other papers
8 dated earlier, 8 later
1609.08144 (2016-09)
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.08746 (2019-01)
BioBERT: a pre-trained biomedical language representation model for biomedical text mining
and 13 more not named here
create_int_feature 13 other papers
7 dated earlier, 1 the same month, 5 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1906.05474 (2019-06)
Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets
1908.08962 (2019-08)
Well-Read Students Learn Better: On the Importance of Pre-training Compact Models
and 10 more not named here
get_shape_list
brick of this paper's assembly: helper
10 other papers
5 dated earlier, 1 the same month, 4 later · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1905.12616 (2019-05)
Defending Against Neural Fake News
and 7 more not named here
create_float_feature 9 other papers
5 dated earlier, 4 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.08962 (2019-08)
Well-Read Students Learn Better: On the Importance of Pre-training Compact Models
1909.06356 (2019-09)
Addressing Semantic Drift in Question Generation for Semi-Supervised Question Answering
and 6 more not named here
create_initializer
brick of this paper's assembly: helper
9 other papers
4 dated earlier, 1 the same month, 4 later · 6 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1905.12616 (2019-05)
Defending Against Neural Fake News
and 6 more not named here
dropout
brick of this paper's assembly: helper
9 other papers
4 dated earlier, 1 the same month, 4 later · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 6 more not named here
assert_rank
brick of this paper's assembly: helper
8 other papers
3 dated earlier, 1 the same month, 4 later · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
and 5 more not named here
reshape_from_matrix
brick of this paper's assembly: helper
8 other papers
4 dated earlier, 1 the same month, 3 later · 2 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 5 more not named here
reshape_to_matrix
brick of this paper's assembly: helper
7 other papers
4 dated earlier, 1 the same month, 2 later · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 4 more not named here
input_fn_builder 6 other papers
4 dated earlier, 2 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.08962 (2019-08)
Well-Read Students Learn Better: On the Importance of Pre-training Compact Models
1909.06356 (2019-09)
Addressing Semantic Drift in Question Generation for Semi-Supervised Question Answering
and 3 more not named here
layer_norm
brick of this paper's assembly: model
6 other papers
3 dated earlier, 1 the same month, 2 later · 5 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
and 3 more not named here
layer_norm_and_dropout
brick of this paper's assembly: helper
6 other papers
2 dated earlier, 4 later · 2 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2009.07258 (2020-09)
BERT-QE: Contextualized Query Expansion for Document Re-ranking
and 3 more not named here
convert_by_vocab
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later · 1 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1904.06690 (2019-04)
BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer
2003.11235 (2020-03)
AutoFIS: Automatic Feature Interaction Selection in Factorization Models for Click-Through Rate Prediction
and 1 more not named here
embedding_lookup
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2009.07258 (2020-09)
BERT-QE: Contextualized Query Expansion for Document Re-ranking
BasicTokenizer
brick of this paper's assembly: helper
1 other paper
1 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
FullTokenizer
brick of this paper's assembly: helper
1 other paper
1 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

Shown: the 20 functions present in the most other papers. 5 more shared functions are not listed here.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Masked language model and autoregressive language model are two types of language models. While pretrained masked language models such as BERT (Devlin et al., 2019) overwhelm the line of natural language understanding (NLU) tasks, autoregressive language models such as GPT (Radford et al., 2018) 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2004.11579")
get_code_for_paper("2004.11579")
have("2004.11579")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2004.11579.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2004.11579.svg)](https://syntology.ai/paper/2004.11579)

Connect an agent — have() is free.