SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.10537 · 2026

Prefilling-dLLM: Predictive Prefilling for Long-Context Inference in Diffusion Language Models

Qi Han, Shansan Gong, Chaofan Tao, Chengyue Wu, Jing Xiong, Ngai Wong, Chenyang Zhao, Yunta Hsieh

arXiv · PDF · Open in the Atlas

Code that ran

14 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 12 failures of our instrument; 5 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/2606.10537.json · badge: /api/ran/2606.10537.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
menik1126/Prefilling-dLLM canonical (classifier label)
classifier basis: census
14 ran · 5 no recorded run
FunctionStatusWhere it lives
add_gumbel_noise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/llada_native_model.py
code served (permissive licence) · get_code("027b7c000eacca21")
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

torch.manual_seed(0)

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

# Temperature parameter - use a non-zero value to test the Gumbel noise addition
temperature = 0.5

ARGS = {
    "logits": logits,
    "temperature": temperature,
}
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
apply_chat_template_to_parts Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_longbench.py
code served (permissive licence) · get_code("df6947ac73e3692c")
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 unittest.mock import Mock

class MockTokenizer:
    def apply_chat_template(self, messages, tokenize=False, add_generation_prompt=False):
        # Simulate a simple chat template that wraps user content
        content = messages[0]['content']
        # Return templated text with sentinel preserved
        return f"<user>{content}</user>"

tokenizer = MockTokenizer()

parts = {
    'prefix': 'This is a prefix ',
    'query': 'What is the answer?',
    'context': 'Some context here'
}

ARGS = {
    'tokenizer': tokenizer,
    'parts': parts
}
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 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
bos_ids Ran
ran, honoured the contract we drafted
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_v1_longbench.py
code served (permissive licence) · get_code("ad0f3f194749a10e")
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 list, ndim 1, dtype family int; 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 torch
import numpy as np

class MockTokenizer:
    def __init__(self, bos_token_id=None, bos_token=None):
        self.bos_token_id = bos_token_id
        self.bos_token = bos_token
    
    def encode(self, token, add_special_tokens=False):
        if token == "<bos>":
            return [50256, 50257]
        return []

# Test case 1: tokenizer with bos_token_id
tokenizer_with_id = MockTokenizer(bos_token_id=50256)

# Test case 2: tokenizer with bos_token but no bos_token_id
tokenizer_with_token = MockTokenizer(bos_token="<bos>")

# Test case 3: tokenizer with neither
tokenizer_empty = MockTokenizer()

ARGS = {
    "tokenizer": tokenizer_with_id,
    "add_bos_token": True,
}
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 list, ndim 1, dtype family int — a list 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
create_full_block_attention_mask Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_dream.py
code served (permissive licence) · get_code("4b44e8248e661c74")
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. 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)

ARGS = {
    "prompt_length": 8,
    "max_length": 24,
    "block_size": 4,
    "device": None,
    "dtype": torch.bfloat16,
}
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, shape (1, 1, 24, 24) — shape (1, 1, 24, 24) as a later run recorded it
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
encode_fragment Ran
ran, honoured the contract we drafted
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_infinitebench.py
code served (permissive licence) · get_code("c9a3e6bcfe3ebfda")
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 list, ndim 1, dtype family int; 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 torch
import numpy as np

class MockTokenizer:
    def encode(self, text, add_special_tokens=False):
        # Simple mock: split text into tokens and return token ids
        tokens = text.split()
        return [hash(token) % 1000 for token in tokens]

torch.manual_seed(0)

tokenizer = MockTokenizer()
text = "hello world test"

ARGS = {
    "tokenizer": tokenizer,
    "text": 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 list, ndim 1, dtype family int — a list 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_attention_mask Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_dream.py
code served (permissive licence) · get_code("b8075e259d0c8573")
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 4, dtype family float, shape (1, 1, 3, 7) 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

torch.manual_seed(0)

# The function extracts a portion of an attention mask for a transformer forward pass
# full_mask: shape [1, 1, max_length, max_length] - complete attention mask
# start_pos: int - starting position in the sequence
# input_length: int - length of current input
# cache_length: int - length of cached sequence

# Create a small full attention mask
# Using max_length=10 to have room for start_pos and slicing operations
max_length = 10
full_mask = torch.full((1, 1, max_length, max_length), -torch.inf, dtype=torch.float32)
# Fill with valid mask values (0.0 for allowed attention, -inf for masked)
full_mask[:, :, :, :] = 0.0

start_pos = 2
input_length = 3
cache_length = 4

ARGS = {
    "full_mask": full_mask,
    "start_pos": start_pos,
    "input_length": input_length,
    "cache_length": cache_length,
}
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 4, dtype family float, shape (1, 1, 3, 7) — shape (1, 1, 3, 7) 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_model_input_device Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/llada_native_model.py
code served (permissive licence) · get_code("966cd412ebd76fc1")
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 device. 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 torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

ARGS = {
    "model": model
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
load_examples Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_scbench.py
code served (permissive licence) · get_code("2423c7f82a371875")
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 list, 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 json
import tempfile
import os

# Create a temporary JSONL file with sample data
temp_dir = tempfile.mkdtemp()
jsonl_path = os.path.join(temp_dir, 'test_data.jsonl')

# Write sample JSONL data
with open(jsonl_path, 'w', encoding='utf-8') as f:
    f.write(json.dumps({'text': 'example 1', 'label': 0}) + '\n')
    f.write(json.dumps({'text': 'example 2', 'label': 1}) + '\n')
    f.write(json.dumps({'text': 'example 3', 'label': 0}) + '\n')
    f.write(json.dumps({'text': 'example 4', 'label': 1}) + '\n')
    f.write(json.dumps({'text': 'example 5', 'label': 0}) + '\n')

ARGS = {
    'path': jsonl_path,
    'max_examples': None,
    'start_index': 0,
    'limit': None
}
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 list, ndim 1, dtype family float — a list 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
resolve_dtype Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/llada_native_model.py
code served (permissive licence) · get_code("47cde2115689abad")
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

torch.manual_seed(0)

# Test case 1: None input
ARGS = {
    'name': None
}
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
shift_logits Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_dream.py
code served (permissive licence) · get_code("9921de6260c6e4fd")
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 3, dtype family float, shape (2, 5, 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

torch.manual_seed(0)

# The function expects logits with shape (batch_size, sequence_length, vocab_size)
# It shifts the logits along the sequence dimension and sets the first position to 1.0
# We'll create a small tensor with distinct dimensions for clarity

batch_size = 2
sequence_length = 5
vocab_size = 4

logits = torch.randn(batch_size, sequence_length, vocab_size)

ARGS = {
    "logits": logits
}
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 3, dtype family float, shape (2, 5, 4) — shape (2, 5, 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
split_context_ids Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_v1_longbench.py
code served (permissive licence) · get_code("66ae672948162ecb")
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. 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

torch.manual_seed(0)

# Analyzing the function:
# - context_ids: used with len(), indexing with [-budget:], [:budget], [:head_keep], [-tail_keep:]
#   Should be a list or sequence
# - budget: compared with len(context_ids), compared with 0, used in arithmetic
#   Should be an integer
# - strategy: compared with strings 'left', 'head', 'head_tail'
#   Should be a string

# Create test data
context_ids = [10, 20, 30, 40, 50, 60, 70, 80]  # List of 8 elements
budget = 3  # Budget less than context_ids length
strategy = 'head_tail'  # One of the valid strategies

ARGS = {
    'context_ids': context_ids,
    'budget': budget,
    'strategy': strategy
}
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 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
summarize_metrics Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_infinitebench.py
code served (permissive licence) · get_code("cc6bdeba2e78f2ab")
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
import numpy as np

torch.manual_seed(0)

# Build records list with dictionaries containing 'correct' keys
records = [
    {'correct': 1},
    {'correct': 1},
    {'correct': 0},
    {'correct': 1},
]

ARGS = {
    'records': records,
}
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 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
summarize_metrics Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_scbench.py
code served (permissive licence) · get_code("95dcc9c1d339c468")
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

torch.manual_seed(0)

# The function summarizes metrics from a list of records.
# Each record must be a dict with keys: 'correct', 'set_f1', 'recall', 'precision'
# The function computes averages of these metrics across all records.

records = [
    {
        'correct': 1,
        'set_f1': 0.85,
        'recall': 0.90,
        'precision': 0.88
    },
    {
        'correct': 1,
        'set_f1': 0.92,
        'recall': 0.87,
        'precision': 0.95
    },
    {
        'correct': 0,
        'set_f1': 0.75,
        'recall': 0.80,
        'precision': 0.70
    }
]

ARGS = {
    'records': records
}
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 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
trim_stop_tokens Ran
ran; our contract draft was wrong, not the code
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_longbench.py
code served (permissive licence) · get_code("158e547a7b62f457")
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

torch.manual_seed(0)

# Analyzing the function: trim_stop_tokens(text, stop_tokens)
# - text: a string that has .find() method called on it
# - stop_tokens: an iterable that can be empty, contains tokens (strings)
#   each token is checked with 'if not token' and has .find() called on text

ARGS = {
    "text": "hello world this is a test",
    "stop_tokens": ["world", "test", ""]
}
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
estimate_prompt_chars Not yet run
unverified (harvested, no recorded run)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_infinitebench.py
code served (permissive licence) · get_code("7d8e12b6a1a2b5ba")
How it ran

no invocation recorded.

generate Not yet run
unverified (harvested, no recorded run)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/prefilling_model.py
code served (permissive licence) · get_code("f9f95fe726f98f2e")
How it ran

no invocation recorded.

load_existing_predictions Not yet run
unverified (harvested, no recorded run)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/eval_fastdllm_parallelcomp_infinitebench.py
code served (permissive licence) · get_code("03b1360475b50ba3")
How it ran

no invocation recorded.

load_fastdllm_v1_dream Not yet run
unverified (harvested, no recorded run)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/fastdllm_v1_model.py
code served (permissive licence) · get_code("3d6889c709e5412d")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
menik1126/Prefilling-dLLM/prefilling_dllm_eval/prefilling_model.py
code served (permissive licence) · get_code("7f95d887a0d400a5")
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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 18 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
add_gumbel_noise 18 other papers
16 dated earlier, 1 the same month, 1 later · 3 only as an assembly brick
2502.09992 (2025-02)
Large Language Diffusion Models
2505.15809 (2025-05)
MMaDA: Multimodal Large Diffusion Language Models
2506.06295 (2025-06)
dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching
and 15 more not named 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-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

Diffusion large language models (dLLMs) reencode the entire prefix at every denoising step, causing recomputation that scales quadratically with context length and becomes prohibitive for long-context scenarios. We propose PREFILLING-DLLM, a training-free prefilldecode disaggregation framework for dLLMs that partitions the prefix into N chunks, caches their KV representations once, and selects the top-K most relevant chunks with intrachunk token sparsity for decoding, showing that sparse prefilling can outperform dense attention while reducing per-step complexity from quadratic in the full sequence length to quadratic only in the decode length. On Long-Bench and InfiniteBench, PREFILLING-DLLM achieves state-of-the-art quality among dLLM acceleration methods, and an attention kernel that parallelizes decoding over the noncontiguously cached chunk KV yields 9.1-28.0× speedup at 8K-32K contexts. We further show that beginning-of-sequence tokens prepended to each chunk act as periodic attention anchors that eliminate the lost-in-themiddle phenomenon. 1

For agents

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

get_harvested_code_for_paper("2606.10537")
get_code_for_paper("2606.10537")
have("2606.10537")

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

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

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

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

Connect an agent — have() is free.