SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.06295 · ICML · 2025

dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching

Zhiyuan Liu, Linfeng Zhang, Junjie Chen, Chang Zou, Shaobo Wang, Yichen Zhu, Yicun Yang, Yaojie Zhang, Qingyan Wei

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2506.06295.json · badge: /api/ran/2506.06295.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
maomaocun/dLLM-cache canonical (classifier label)
classifier basis not recorded on the link
10 ran · 3 no recorded run
FunctionStatusWhere it lives
add_gumbel_noise Ran
ran on a synthesized input
maomaocun/dLLM-cache/demo_MMada_cache.py
code served (permissive licence) · get_code("008ab2cfccca5ac2")
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)

# Construct arguments for add_gumbel_noise
logits = torch.randn(2, 4)  # Small batch of logits
temperature = 0.5  # Non-zero temperature value to trigger noise addition

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
add_gumbel_noise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
maomaocun/dLLM-cache/demo_MMada_mmu_cache.py
code served (permissive licence) · get_code("22cb8c51f0a9038f")
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, num_classes=4)
logits = torch.randn(2, 4, dtype=torch.float32)

# Create a temperature value (non-zero to trigger 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
convert_to_float Ran
ran on a synthesized input
maomaocun/dLLM-cache/Dream_test_flops_script.py
code served (permissive licence) · get_code("3822a0903091ccc2")
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 float, 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 torch

# Test cases for convert_to_float function
ARGS = {
    "value": "500 GFLOPS"
}

# Additional test cases to verify the function works with various inputs
test_cases = [
    "500 GFLOPS",
    "7.68 TMACs",
    "1.5 MFLOPS",
    "1000 FLOPS",
    "2.5 GMACs",
    "3.2 TMACs",
    "100 MMACs",
    "5000 MACs",
    "42.5",
    42.5
]

ARGS = {
    "value": "500 GFLOPS"
}
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 float, 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
create_prompt Ran
ran on a synthesized input
maomaocun/dLLM-cache/LLama_test_flops_script.py
code served (permissive licence) · get_code("0976b0b29f8d1d22")
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

class DummyTokenizer:
    def __init__(self):
        self.vocab = list(range(1000))
    
    def encode(self, text):
        """Simulate tokenization by returning tokens based on text length."""
        # Return a list of token ids proportional to text length
        num_tokens = max(1, len(text) // 5)
        return list(range(num_tokens))
    
    def decode(self, tokens):
        """Simulate decoding by returning a string representation."""
        return f"decoded_tokens_{len(tokens)}"

tokenizer = DummyTokenizer()
length = 50

ARGS = {
    "tokenizer": tokenizer,
    "length": length,
}
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
generate_with_cache Ran
ran on a synthesized input
maomaocun/dLLM-cache/demo_MMada_cache.py
code served (permissive licence) · get_code("89ffc142130a4ab0")
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 int, shape (1, 11) 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 as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self, vocab_size=126337, hidden_dim=8):
        super().__init__()
        self.vocab_size = vocab_size
        self.hidden_dim = hidden_dim
        # Simple linear layer to produce logits
        self.linear = nn.Linear(hidden_dim, vocab_size)
        self.device_attr = 'cpu'
    
    @property
    def device(self):
        return self.device_attr
    
    def forward(self, x, attention_bias=None):
        # x shape: (batch_size, seq_len)
        # Create dummy output with logits
        batch_size, seq_len = x.shape
        logits = torch.randn(batch_size, seq_len, self.vocab_size)
        
        # Return object with logits attribute
        class Output:
            pass
        output = Output()
        output.logits = logits
        return output

# Build the model
model = MinimalModel(vocab_size=126337, hidden_dim=8)

# Create prompt tensor (batch_size=1, seq_len=3)
prompt = torch.randint(0, 126336, (1, 3), dtype=torch.long)

# Create attention mask (optional, batch_size=1, seq_len=9)
attention_mask = torch.ones(1, 9, 9, dtype=torch.bool)

# Build ARGS dictionary with all parameters
ARGS = {
    'model': model,
    'prompt': prompt,
    'steps': 16,
    'gen_length': 8,
    'block_length': 8,
    'temperature': 0.5,
    'cfg_scale': 1.0,
    'remasking': 'low_confidence',
    'mask_id': 126336,
    'attention_mask': attention_mask,
}
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 int, shape (1, 11) — shape (1, 11) 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_num_transfer_tokens Ran
ran; our contract draft was wrong, not the code
maomaocun/dLLM-cache/demo_MMada_cache.py
code served (permissive licence) · get_code("ab0375db4fa54d7c")
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 int, shape (2, 3) 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 binary mask tensor
# Shape: (batch_size=2, sequence_length=4)
# mask_index contains 1s for masked tokens and 0s for unmasked tokens
mask_index = torch.tensor([
    [1, 1, 0, 1],
    [1, 0, 1, 1]
], dtype=torch.int64)

# Number of steps for discretization
steps = 3

ARGS = {
    "mask_index": mask_index,
    "steps": steps
}
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 int, shape (2, 3) — shape (2, 3) 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
llada_attention_hook_for_cache Ran
ran on a synthesized input
maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA_V.py
code served (permissive licence) · get_code("c35f5a7a8c404548")
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 torch.nn as nn
import math

torch.manual_seed(0)

# Build a minimal self object that satisfies the function's usage
class MinimalAttentionModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.num_heads = 4
        self.num_key_value_heads = 2
        self.head_dim = 3
        self.num_key_value_groups = self.num_heads // self.num_key_value_heads
        self.attention_dropout = 0.1
        self.training = False
        
        # o_proj is called on att_output_heads with shape (B, q_len, num_heads * head_dim)
        # num_heads * head_dim = 4 * 3 = 12
        self.o_proj = nn.Linear(self.num_heads * self.head_dim, 16)
    
    def forward(self, x):
        return x

# Minimal rotary embedding that satisfies the function's usage
class MinimalRotaryEmb(nn.Module):
    def __init__(self):
        super().__init__()
    
    def forward(self, q, k, q_index=None):
        return q, k

self_obj = MinimalAttentionModule()
self_obj.rotary_emb = MinimalRotaryEmb()

# Build tensors with distinct dimensions
batch_size = 2
q_len_current_q = 5
k_seq_len_current_k = 7
v_seq_len_current_v = 7
num_heads = 4
num_key_value_heads = 2
head_dim = 3

# q_in_proj: (batch, q_len, num_heads * head_dim)
q_in_proj = torch.randn(batch_size, q_len_current_q, num_heads * head_dim)

# k_in_proj: (batch, k_seq_len, num_key_value_heads * head_dim)
k_in_proj = torch.randn(batch_size, k_seq_len_current_k, num_key_value_heads * head_dim)

# v_in_proj: (batch, v_seq_len, num_key_value_heads * head_dim)
v_in_proj = torch.randn(batch_size, v_seq_len_current_v, num_key_value_heads * head_dim)

# attention_bias: optional, shape (1, num_heads, q_len, k_seq_len)
attention_bias = torch.randn(1, num_heads, q_len_current_q, k_seq_len_current_k)

# layer_past: optional tuple of (k_cache, v_cache) tensors
layer_past = None

# use_cache: boolean
use_cache = False

# q_index: optional tensor for rotary embedding indexing
q_index = None

ARGS = {
    'self': self_obj,
    'q_in_proj': q_in_proj,
    'k_in_proj': k_in_proj,
    'v_in_proj': v_in_proj,
    'attention_bias': attention_bias,
    'layer_past': layer_past,
    'use_cache': use_cache,
    'q_index': q_index
}
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 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
mmu_generate_with_cache Ran
ran on a synthesized input
maomaocun/dLLM-cache/demo_MMada_mmu_cache.py
code served (permissive licence) · get_code("5e2dc62c98e4c717")
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 int, shape (2, 133) 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 as nn
import numpy as np

torch.manual_seed(0)

class MockMMaDAModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 50257)  # vocab size roughly 50k
    
    def forward(self, x, attention_bias=None):
        # x shape: (batch_size, seq_len)
        # We need to return logits of shape (batch_size, seq_len, vocab_size)
        batch_size, seq_len = x.shape
        # Create a simple output
        logits = self.linear(torch.randn(batch_size, seq_len, 4))
        
        class Output:
            def __init__(self, logits_val):
                self.logits = logits_val
        
        return Output(logits)

# Create model
model = MockMMaDAModel()

# Create input_ids: batch_size=2, prompt_length=5
batch_size = 2
prompt_length = 5
input_ids = torch.randint(0, 50257, (batch_size, prompt_length), dtype=torch.long)

# Create attention_mask: (batch_size, seq_len, seq_len) - all ones means no masking
max_new_tokens = 128
total_seq_len = prompt_length + max_new_tokens
attention_mask = torch.ones(batch_size, total_seq_len, total_seq_len, dtype=torch.bool)

ARGS = {
    "model": model,
    "input_ids": input_ids,
    "input_embeddings": None,
    "max_new_tokens": 128,
    "steps": 128,
    "block_length": 128,
    "temperature": 0.0,
    "top_k": None,
    "eot_token": None,
    "cfg_scale": 0.0,
    "remasking": "low_confidence",
    "mask_id": 126336,
    "attention_mask": attention_mask,
}
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 int, shape (2, 133) — shape (2, 133) 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
refresh_index Ran
ran on a synthesized input
maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_Dream.py
code served (permissive licence) · get_code("17ea12936141556f")
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 int, shape (2, 1) 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)

# Construct tensors with distinct dimensions for clarity
# batch_size=2, gen_len=3, d_model=4
new_features = torch.randn(2, 3, 4)
cached_features = torch.randn(2, 3, 4)

# transfer_ratio controls what fraction of gen_len positions to replace
transfer_ratio = 0.5

# layer_id is used as a parameter but not actually used in the function body
layer_id = 0

ARGS = {
    "new_features": new_features,
    "cached_features": cached_features,
    "transfer_ratio": transfer_ratio,
    "layer_id": layer_id,
}
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 int, shape (2, 1) — shape (2, 1) 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
rotate_half Ran
ran; our contract draft was wrong, not the code
maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA_V.py
code served (permissive licence) · get_code("e03d53ba9d4f9ae5")
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 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)

# The function takes a single parameter 'x' which is a tensor
# It accesses x[..., :x.shape[-1] // 2] and x[..., x.shape[-1] // 2:]
# So x needs to be a tensor with a last dimension that can be split in half
# Let's create a small tensor with batch size 2 and feature dimension 4

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
RoPe_forward Not yet run
unverified (harvested, no recorded run)
maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA.py
code served (permissive licence) · get_code("2af6f8d97abc409f")
How it ran

no invocation recorded.

apply_rotary_pos_emb Not yet run
unverified (harvested, no recorded run)
maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA_V.py
code served (permissive licence) · get_code("ebbbedae1f60f76d")
How it ran

no invocation recorded.

attention Not yet run
unverified (harvested, no recorded run)
maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_Dream.py
code served (permissive licence) · get_code("e23dc4567306b759")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 4 the same month, 4 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
rotate_half 360 other papers
282 dated earlier, 10 the same month, 60 later, 5 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
apply_rotary_pos_emb 94 other papers
64 dated earlier, 4 the same month, 21 later, 2 same year, order not determinable, 3 undated · 6 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
2309.11674 (2023-09)
A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models
and 91 more not named here
add_gumbel_noise 18 other papers
2 dated earlier, 2 the same month, 14 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.15735 (2025-06)
ContextBench: Modifying Contexts for Targeted Latent Activation
and 15 more not named here
get_num_transfer_tokens 15 other papers
2 dated earlier, 2 the same month, 11 later · 1 only as an assembly brick
2502.09992 (2025-02)
Large Language Diffusion Models
2505.15809 (2025-05)
MMaDA: Multimodal Large Diffusion Language Models
2506.15735 (2025-06)
ContextBench: Modifying Contexts for Targeted Latent Activation
and 12 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-23.

Repositories linked to this paper

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

Abstract

Autoregressive Models (ARMs) have long dominated the landscape of Large Language Models. Recently, a new paradigm has emerged in the form of diffusion-based Large Language Models (dLLMs), which generate text by iteratively denoising masked segments. This approach has shown significant advantages and potential. However, dLLMs suffer from high inference latency. Traditional ARM acceleration techniques, such as Key-Value caching, are incompatible with dLLMs due to their bidirectional attention mechanism. To address this specific challenge, our work begins with a key observation that dLLM inference involves a static prompt and a partially dynamic response, where most tokens remain stable across adjacent denoising steps. Based on this, we propose dLLM-Cache, a training-free adaptive caching framework that combines longinterval prompt caching with partial response updates guided by feature similarity. This design enables efficient reuse of intermediate computations without compromising model performance. Extensive experiments on representative dLLMs, including LLaDA 8B and Dream 7B, show that dLLM-Cache achieves up to 9.1× FLOPs reduction on LongBench-HotpotQA while maintaining competitive output quality. Notably, our method brings dLLM inference latency close to that of ARMs under many settings. The code for this work is publicly available at: https:// github.com/maomaocun/dLLM-cache.

For agents

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

get_harvested_code_for_paper("2506.06295")
get_code_for_paper("2506.06295")
have("2506.06295")

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

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

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

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

Connect an agent — have() is free.