SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · openreview_QrC8OgQyOI

PRISM: Efficient Test-Time Scaling via Hierarchical Search and Self-Verification for Discrete Diffusion Language Models

Ming-Hsuan Yang, Molei Tao, Yixuan Li, Yuchen Zhu, Xiangtai Li, Xiaohong Liu, Jianru Xue, Qingyu Shi, Aosong Feng, Yi Xin, Jinbin Bai

OpenReview · Open in the Atlas

Code that ran

18 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 12 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/openreview_QrC8OgQyOI.json · badge: /api/ran/openreview_QrC8OgQyOI.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
viiika/Prism canonical (classifier label)
classifier basis: census
18 ran · 1 no recorded run
FunctionStatusWhere it lives
context_adaptive_reweight Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/src/trainer/fsdp_sft_trainer.py
code served (permissive licence) · get_code("cfb31bfadb1fff49")
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 Tensor, ndim 2, dtype family float, shape (8, 8) 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 math
import numpy as np
import torch
import torch.distributed

torch.manual_seed(0)

ARGS = {
    'seq_len': 8,
    'distribution': 'symmetric-geometric',
    'cart_p': 0.8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (8, 8) — shape (8, 8) 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
convert_to_regular_types Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/src/trainer/fsdp_sft_trainer.py
code served (permissive licence) · get_code("0aac3c307ba4a07b")
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 dict. 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 torch
from omegaconf import DictConfig, ListConfig

torch.manual_seed(0)

# Test with various special types that the function converts
test_dictconfig = DictConfig({
    "model": "bert",
    "learning_rate": 0.001,
    "nested": DictConfig({"depth": 2, "width": 4})
})

test_listconfig = ListConfig([1, 2, 3, DictConfig({"key": "value"})])

test_regular_dict = {
    "name": "test",
    "values": [1, 2, 3],
    "config": {"nested": True, "count": 42}
}

test_regular_list = [1, "string", {"dict": "value"}, [1, 2, 3]]

test_tuple = (1, 2, DictConfig({"x": 10}), [4, 5])

test_mixed = {
    "dictconfig_field": test_dictconfig,
    "listconfig_field": test_listconfig,
    "regular_field": "plain_value",
    "nested_list": [DictConfig({"a": 1}), {"b": 2}],
    "tuple_field": (1, 2, 3)
}

ARGS = {
    "obj": test_mixed
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
extract_answer Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/math500_eval.py
code served (permissive licence) · get_code("5e56a4223b47eebb")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 re

def extract_answer(text):
    if not text:
        return ('', False)
    text = text.replace('<|role_end|>', '').replace('<|endoftext|>', '').strip()
    boxed_pattern = '\\\\boxed\\{((?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})*)\\}'
    all_boxes = re.findall(boxed_pattern, text)
    if all_boxes:
        return (all_boxes[-1], True)
    tag_match = re.search('<answer>(.*?)</answer>', text, re.DOTALL)
    if tag_match:
        return (tag_match.group(1).strip(), True)
    marker = 'the answer is'
    if marker in text.lower():
        pos = text.lower().rfind(marker)
        after_text = text[pos + len(marker):].strip()
        after_text = re.sub('^[:\\s]+', '', after_text)
        return (after_text.split('\n')[0].split('$')[0].strip(), True)
    tail = text[-50:].strip()
    nums = re.findall('(-?\\d+[\\./\\d]*|\\\\sqrt\\{\\d+\\}|\\(-?\\d+.*?\\))', tail)
    if nums:
        return (nums[-1], False)
    return ('', False)

# Test case 1: text with boxed answer
test_text_boxed = "The solution is \\boxed{42}"

# Test case 2: text with answer tags
test_text_tags = "Some work here <answer>3.14</answer> more text"

# Test case 3: text with "the answer is" marker
test_text_marker = "After calculation, the answer is 99"

# Test case 4: text with number at end
test_text_number = "Let me compute: some work 123"

# Test case 5: empty text
test_text_empty = ""

# Test case 6: text with sqrt
test_text_sqrt = "The result is \\sqrt{16}"

ARGS = {
    'text': test_text_boxed
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
extract_python_code Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/humaneval_eval.py
code served (permissive licence) · get_code("a8c290638876d80f")
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 str. 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 re

# Analyze the function: extract_python_code takes a single parameter 'text' of type str
# The function processes text by:
# 1. Removing special tokens
# 2. Searching for <answer> tags
# 3. Extracting code blocks with ``` markers
# 4. Using strict_dedent to clean up indentation
# It returns a string

# Create test cases for the text parameter
test_text_1 = """
    Here is some code:
    ```python
    def hello():
        print("world")
    
    Explanation: This is a simple function
"""

test_text_2 = """<answer>
def foo(x):
    return x + 1
</answer>"""

test_text_3 = """
    Some indented code here
        def bar():
            pass
    More text
    Output: result
"""

# The simplest case - just plain text
test_text_4 = "simple text with no code blocks"

# Test with role_end and other special tokens
test_text_5 = "code: ```\nprint('hi')\n```<|role_end|>"

ARGS = {
    "text": test_text_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
extract_python_code Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/mbpp_eval.py
code served (permissive licence) · get_code("0277fc79c30ff9ce")
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 str. 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 re

# Construct valid arguments for extract_python_code
text_with_code_block = """
Here's the solution:


def hello_world():
    print("Hello, World!")


This function prints a greeting.
"""

text_with_answer_tags = """
<answer>
def foo(x):
    return x + 1
</answer>
"""

text_with_inline_code = """
def bar():
    return 42
"""

text_with_cleanup_tokens = """
def baz():
    pass
<|role_end|>
[DONE]
"""

text_empty = ""

# The function takes a single parameter: text (str)
ARGS = {
    "text": text_with_code_block
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
extract_step Ran
ran, honoured the contract we drafted
viiika/Prism/Dream/Dream_Prism/src/trainer/fsdp_sft_trainer.py
code served (permissive licence) · get_code("216e28c040173a61")
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 int, ndim 0, dtype family int, shape () 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 re

def extract_step(path):
    match = re.search('global_step_(\\d+)', path)
    if match:
        return int(match.group(1))
    return None

# Test case 1: path with global_step pattern
path_with_step = "/models/checkpoint_global_step_42/model.pt"

# Test case 2: path without global_step pattern
path_without_step = "/models/checkpoint_final/model.pt"

ARGS = {
    "path": path_with_step
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
hash_args Ran
ran; our contract draft was wrong, not the code
viiika/Prism/LLaDA/LLaDA_Prism/dllm_eval/api/model.py
code served (permissive licence) · get_code("20a7cc804eb22661")
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 str. 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 hashlib
import json

# Construct valid arguments for hash_args function
# The function takes attr (attribute name) and args (tuple/list of arguments)
# and creates a JSON string to hash

attr = "test_attribute"
args = ("value1", 42, [1, 2, 3], {"key": "value"})

ARGS = {
    "attr": attr,
    "args": args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
is_equiv Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/math500_eval.py
code served (permissive licence) · get_code("eaf84570592463bd")
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 bool, ndim 0, dtype family float, shape () 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 re
import math

# Test cases for is_equiv function
ARGS = {
    'pred': '42',
    'gold': '42'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
last_boxed_only_string Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/gsmk8_eval.py
code served (permissive licence) · get_code("a774929083345c9b")
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 str. 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 torch
import numpy as np

# Define ARGS for the last_boxed_only_string function
ARGS = {
    "string": r"This is a test \boxed{answer} and more text"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
normalize_code Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/humaneval_eval.py
code served (permissive licence) · get_code("4c0afcd4fada5415")
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 str. 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 ast
import re

# Test cases for normalize_code function
# The function takes a string of code, parses it, removes docstrings from function/class/module bodies, and returns unparsed code

# Case 1: Simple code with a function docstring
code_with_docstring = '''
def hello():
    """This is a docstring"""
    return 42
'''

# Case 2: Code without docstring
code_without_docstring = '''
def hello():
    return 42
'''

# Case 3: Class with docstring
code_class_with_docstring = '''
class MyClass:
    """Class docstring"""
    def method(self):
        pass
'''

# Case 4: Invalid code (will trigger except clause)
invalid_code = '''
def broken(
    return something
'''

# Case 5: Module-level docstring
code_module_docstring = '''
"""Module docstring"""
x = 1
'''

# Case 6: Code with extra whitespace (will be handled by regex in except)
code_with_whitespace = 'def   f( ):    pass'

# Using the simplest valid case for the main argument
ARGS = {
    'code': 'def example():\n    """This is a docstring"""\n    return 42'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
normalize_math Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/math500_eval.py
code served (permissive licence) · get_code("1490a1e21c7a5ec7")
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 str. 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 re

def normalize_math(string):
    if not string:
        return ''
    string = str(string).lower().strip()
    string = string.replace('</reasoning>', '').replace('</answer>', '').replace('<answer>', '')
    string = string.replace('...', '').replace('cannot be determined', '')
    string = re.sub('([a-z]+|\\\\theta|\\\\alpha|\\\\pi)\\s*=\\s*', '', string)
    string = re.sub('\\\\text\\{([^}]*)\\}', '\\1', string)
    string = re.sub('\\\\(mathbf|mathrm|bold|unit|mbox|operatorname|mathrm)\\{([^}]*)\\}', '\\2', string)
    string = re.sub('\\\\(d|t)?frac\\{([^{}]*)\\}\\{([^{}]*)\\}', '\\2/\\3', string)
    string = string.replace('\\!', '').replace('\\ ', '').replace('{', '').replace('}', '')
    string = string.replace('\\left', '').replace('\\right', '')
    string = string.replace('\\$', '').replace('$', '').replace('\\%', '').replace('%', '')
    units_pattern = '(units?|cm\\^2|cm|inches|inch|square|degrees?|radians?|miles?|per|hour|cents?)'
    string = re.sub(units_pattern, '', string)
    string = string.replace('^{\\circ}', '').replace('^\\circ', '').replace('°', '').replace('\\degree', '')
    string = string.replace('\\pi', 'pi')
    string = re.sub('(\\d),(\\d{3})', '\\1\\2', string)
    string = string.rstrip('.:,; ').replace(' ', '')
    if '=' in string:
        string = string.split('=')[-1]
    return string

ARGS = {
    'string': '\\text{The answer is } x = \\frac{42}{7} units'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
parse_eval_args Ran
ran; our contract draft was wrong, not the code
viiika/Prism/LLaDA/LLaDA_Prism/dllm_eval/__main__.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from BatsResearch/crosslingual-test-time-scaling, is pointer only (licence: NONE) · get_code("400ea4f64ccce5ef")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from BatsResearch/crosslingual-test-time-scaling, and GitHub detected no licence in that repository 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.

q_sample Ran
ran; our contract draft was wrong, not the code
viiika/Prism/Dream/Dream_Prism/src/diffllm/gen_utils.py
code served (permissive licence) · get_code("e46586141f8fe8f5")
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 tuple. 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 torch

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
seq_len = 4

# input_ids: token IDs, shape (batch_size, seq_len)
input_ids = torch.tensor([
    [10, 11, 12, 13],
    [20, 21, 22, 23]
], dtype=torch.long)

# maskable_mask: boolean mask indicating which positions can be masked, shape (batch_size, seq_len)
maskable_mask = torch.tensor([
    [True, True, True, False],
    [True, True, False, False]
], dtype=torch.bool)

# mask_token_id: the token ID to use for masking
mask_token_id = 0

# min and max: bounds for sampling t
min_val = 0.0
max_val = 1.0

# eos_token_id: end-of-sequence token ID
eos_token_id = 2

# t: optional pre-computed timesteps, shape (batch_size,)
t = torch.tensor([0.3, 0.7], dtype=torch.float)

# t_mask: optional pre-computed mask, shape (batch_size, seq_len)
t_mask = torch.tensor([
    [True, False, True, False],
    [False, True, False, False]
], dtype=torch.bool)

ARGS = {
    "input_ids": input_ids,
    "maskable_mask": maskable_mask,
    "mask_token_id": mask_token_id,
    "min": min_val,
    "max": max_val,
    "eos_token_id": eos_token_id,
    "t": t,
    "t_mask": t_mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
remove_boxed Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/gsmk8_eval.py
code served (permissive licence) · get_code("fa5d8fca12c5c0c8")
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 str. 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 torch

def remove_boxed(s):
    if not s:
        return None
    if '\\boxed ' in s:
        return s[len('\\boxed '):]
    if '\\boxed{' in s and s.endswith('}'):
        return s[len('\\boxed{'):-1]
    return s

ARGS = {
    's': '\\boxed{answer}'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
strict_dedent Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/humaneval_eval.py
code served (permissive licence) · get_code("952ec85877de0a4e")
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 str. 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.

# SETUP CODE

ARGS = {
    "text": "    hello\n    world\n    foo"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
strip_string Ran
ran on a synthesized input
viiika/Prism/Dream/Dream_Prism/metrics/gsmk8_eval.py
code served (permissive licence) · get_code("7ce155f35572f664")
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 str. 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 re

def strip_string(string):
    if string is None:
        return ''
    string = str(string).strip()
    while re.search('(\\d),(\\d{3})', string):
        string = re.sub('(\\d),(\\d{3})', '\\1\\2', string)
    string = string.replace('\n', '').replace('\\!', '')
    string = string.replace('tfrac', 'frac').replace('dfrac', 'frac')
    string = string.replace('\\left', '').replace('\\right', '')
    string = string.replace('^{\\circ}', '').replace('^\\circ', '')
    string = string.replace('\\$', '').replace('\\%', '').replace('\\%', '')
    if '=' in string and len(string.split('=')[0]) <= 3:
        string = string.split('=')[1].strip()
    string = string.replace(' ', '')
    return string


# Test with various inputs to ensure the function works properly
ARGS = {
    'string': '1,000 + 2,500 = \\frac{3,500}'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
top_k_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
viiika/Prism/Dream/Dream_Prism/src/diffllm/gen_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from xiaoshideta/Streaming-dLLM, is pointer only (licence: NONE) · get_code("d78ba22cffe4710b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from xiaoshideta/Streaming-dLLM, and GitHub detected no licence in that repository 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_p_logits Ran
ran; our contract draft was wrong, not the code
viiika/Prism/Dream/Dream_Prism/src/diffllm/gen_utils.py
code served (permissive licence) · get_code("5b9d49f026840bbb")
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 Tensor, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small logits tensor
# Shape: (batch_size=2, vocab_size=4)
logits = torch.randn(2, 4)

# Define top_p parameter
top_p = 0.9

# Construct the arguments dictionary
ARGS = {
    "logits": logits,
    "top_p": top_p,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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
try_parse_json Not yet run
unverified (harvested, no recorded run)
viiika/Prism/LLaDA/LLaDA_Prism/dllm_eval/__main__.py
code served (permissive licence) · get_code("06b670bf334b8d88")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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
hash_args 44 other papers
44 same year, order not determinable
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 41 more not named here
extract_step 19 other papers
19 same year, order not determinable
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
2502.14768 (2025-02)
Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning
and 16 more not named here
parse_eval_args 15 other papers
15 same year, order not determinable
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2024.findings-emnlp.86 (2024 (year only))
Tokenization Falling Short: On Subword Robustness in Large Language Models
2405.07938 (2024-05)
EconLogicQA: A Question-Answering Benchmark for Evaluating Large Language Models in Economic Sequential Reasoning
and 12 more not named here
top_k_logits 10 other papers
10 same year, order not determinable · 5 only as an assembly brick
2202.04200 (2022-02)
MaskGIT: Masked Generative Image Transformer
2509.26432 (2025-09)
AdaBlock-dLLM: SEMANTIC-AWARE DIFFUSION LLM INFERENCE VIA ADAPTIVE BLOCK SIZE
2601.17917 (2026-01)
Streaming-dLLM: Accelerating Diffusion LLMs via Suffix Pruning and Dynamic Decoding
and 7 more not named here
top_p_logits 10 other papers
10 same year, order not determinable · 5 only as an assembly brick
2202.04200 (2022-02)
MaskGIT: Masked Generative Image Transformer
2509.26432 (2025-09)
AdaBlock-dLLM: SEMANTIC-AWARE DIFFUSION LLM INFERENCE VIA ADAPTIVE BLOCK SIZE
2601.17917 (2026-01)
Streaming-dLLM: Accelerating Diffusion LLMs via Suffix Pruning and Dynamic Decoding
and 7 more not named here
try_parse_json 4 other papers
4 same year, order not determinable
2025.findings-acl.744 (2025 (year only))
Ranked Voting based Self-Consistency of Large Language Models
2502.05171 (2025-02)
Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
2601.02236 (2026-01)
CD 4 LM: Consistency Distillation and aDaptive Decoding for Diffusion Language Models
and 1 more not named here
q_sample 1 other paper
1 same year, order not determinable
2107.03006 (2021-07)
Structured Denoising Diffusion Models in Discrete State-Spaces

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-24.

Repositories linked to this paper

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

Abstract

Inference-time compute has re-emerged as a practical way to improve LLM reasoning. Most testtime scaling (TTS) algorithms rely on autoregressive decoding, which is ill-suited to discrete diffusion language models (dLLMs) due to their parallel decoding over the entire sequence. As a result, developing effective and efficient TTS methods to unlock dLLMs' full generative potential remains an underexplored challenge. To address this, we propose PRISM (Pruning, Remasking, and Integrated Self-verification Method), an efficient TTS framework for dLLMs that (i) performs Hierarchical Trajectory Search (HTS) which dynamically prunes and reallocates compute in an early-to-mid denoising window, (ii) introduces Local branching with partial remasking to explore diverse implementations while preserving highconfidence tokens, and (iii) replaces external verifiers with Self-Verified Feedback (SVF) obtained via self-evaluation prompts on intermediate completions. Across four math reasoning and code generation benchmarks on three dLLMs, including LLaDA 8B Instruct, Dream 7B Instruct, and LLaDA 2.0-mini, our PRISM achieves a favorable performance-efficiency trade-off, matching bestof-N performance with substantially fewer function evaluations (NFE). The code is released at https://github.com/viiika/Prism.

For agents

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

get_harvested_code_for_paper("openreview_QrC8OgQyOI")
get_code_for_paper("openreview_QrC8OgQyOI")
have("openreview_QrC8OgQyOI")

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

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

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

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

Connect an agent — have() is free.