SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.00355 · September 2026

Vision Is Not Overhead: One-Pass Block Drafting for Lossless Speculative Decoding in Vision-Language Models

Chanjun Park, Sugyeong Eo, Jaehyung Seo, Heuiseok Lim, Dongyub Lee, Jungseob Lee, Seongtae Hong, Dongyub Jude Lee

arXiv · PDF · Open in the Atlas

Code that ran

15 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, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2609.00355.json · badge: /api/ran/2609.00355.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
js-lee-AI/GLANCE canonical (classifier label)
classifier basis: census
15 ran · 4 no recorded run
FunctionStatusWhere it lives
acceptance_length Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/glance/metrics.py
code served (permissive licence) · get_code("f6fcf834eee1a3af")
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
import numpy as np

torch.manual_seed(0)

# The function takes 'rounds' which is an iterable of accepted lengths per round.
# Each round has an accepted length (counting the committed token).
# The function converts it to a list, checks if empty, and returns the mean.

# Create some sample rounds with different accepted lengths
rounds = [1, 2, 3, 2, 4, 1, 3]

ARGS = {
    'rounds': rounds
}
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 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
build_budget_tree Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
js-lee-AI/GLANCE/glance/tree.py
code served (permissive licence) · get_code("6ce4a273bd1dcfb5")
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 torch
import numpy as np

torch.manual_seed(0)

# Build small test data
# topk_ids: (B-1, K) - token ids for each depth
# topk_logp: (B-1, K) - log probabilities for each depth
# We'll create a small example with B-1=3 depths and K=4 top candidates

topk_ids = torch.tensor([
    [10, 11, 12, 13],
    [20, 21, 22, 23],
    [30, 31, 32, 33]
], dtype=torch.int64)

topk_logp = torch.tensor([
    [-0.5, -1.2, -2.1, -3.0],
    [-0.3, -1.0, -1.8, -2.5],
    [-0.4, -0.9, -1.7, -2.3]
], dtype=torch.float32)

budget = 8
branch_k = 2

ARGS = {
    "topk_ids": topk_ids,
    "topk_logp": topk_logp,
    "budget": budget,
    "branch_k": branch_k,
}
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 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
children_of Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/glance/tree.py
code served (permissive licence) · get_code("34e06badd80c2f1d")
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

class Node:
    def __init__(self, parent):
        self.parent = parent

nodes = [
    Node(parent=-1),
    Node(parent=0),
    Node(parent=0),
    Node(parent=1),
]

ARGS = {
    "nodes": nodes
}
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
context_feature Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
js-lee-AI/GLANCE/glance/head.py
code served (permissive licence) · get_code("a45078646fd110b6")
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, 3, 18) 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)

# hidden_states should be a list of tensors
# hidden_states[0] is embedding output (index 0)
# hidden_states[i+1] for i in layer_ids accesses subsequent indices
# The function concatenates along dim=-1, so tensors need matching batch and sequence dims
# but different feature dims to show the concatenation

batch_size = 2
seq_len = 3

# Create a list of hidden states
# Index 0: embedding output
# Indices 1+: layer outputs
hidden_states = [
    torch.randn(batch_size, seq_len, 4),   # embedding (index 0)
    torch.randn(batch_size, seq_len, 5),   # layer 0 output (index 1)
    torch.randn(batch_size, seq_len, 6),   # layer 1 output (index 2)
    torch.randn(batch_size, seq_len, 7),   # layer 2 output (index 3)
]

# layer_ids are indices into the layers (not hidden_states indices)
# layer 0 is at hidden_states[1], layer 1 at hidden_states[2], etc.
layer_ids = [0, 1, 2]

ARGS = {
    "hidden_states": hidden_states,
    "layer_ids": layer_ids,
}
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, 3, 18) — shape (2, 3, 18) 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
decile_curve Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/glance/law.py
code served (permissive licence) · get_code("f6630ae39f5a3489")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create synthetic data for entropy and accepted
entropy = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 
                    0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 1.05])
accepted = np.array([0.8, 0.75, 0.7, 0.65, 0.6, 0.55, 0.5, 0.45, 0.4, 0.35,
                     0.78, 0.72, 0.68, 0.62, 0.58, 0.52, 0.48, 0.42, 0.38, 0.33])

ARGS = {
    'entropy': entropy,
    'accepted': accepted,
    'bins': 10,
    'seed': 0,
    'min_per_bin': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
drop_warmup Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/glance/metrics.py
code served (permissive licence) · get_code("4bc1819404939a0e")
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

torch.manual_seed(0)

# The function drop_warmup takes 'samples' (an iterable) and 'n' (number of samples to drop)
# It converts samples to a list and returns all but the first n elements

# Create sample data - a simple iterable of values
samples = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Define n - number of samples to drop from the beginning
n = 1

ARGS = {
    "samples": samples,
    "n": n,
}
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 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
expected_acceptance Ran
ran, violated the contract we drafted
js-lee-AI/GLANCE/glance/law.py
code served (permissive licence) · get_code("27afe81c104d66f9")
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 ndarray, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

np.random.seed(0)

# The function takes:
# - entropy: array-like numeric data
# - b0: scalar numeric parameter
# - b1: scalar numeric parameter
# - cap: optional scalar numeric parameter (has default)

# Looking at the function body:
# - entropy is converted to float array via np.asarray and used in arithmetic
# - b0 and b1 are scalars used in arithmetic operations
# - cap is used as an upper bound in np.minimum

ARGS = {
    "entropy": np.array([0.5, 1.2, 2.1, 0.8]),
    "b0": 1.5,
    "b1": 0.3,
    "cap": 15.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
first_divergence Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/experiments/audit_lossless.py
code served (permissive licence) · get_code("1638650f6072b95f")
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 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 torch

torch.manual_seed(0)

# Create two token sequences as tensors
# The function accesses reference[0, :n] and candidate[0, :n]
# and compares them, so we need 2D tensors with batch dimension
reference = torch.tensor([[1, 2, 3, 4]])
candidate = torch.tensor([[1, 2, 5, 4]])

ARGS = {
    "reference": reference,
    "candidate": candidate,
}
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 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
geomean Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/glance/metrics.py
code served (permissive licence) · get_code("5b2ee5d633c65fd9")
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 math

def geomean(values):
    """Geometric mean, the right average for a set of ratios."""
    values = [float(v) for v in values]
    if not values or any((v <= 0 for v in values)):
        return float('nan')
    return float(math.exp(sum((math.log(v) for v in values)) / len(values)))


ARGS = {
    "values": [1.5, 2.0, 3.5, 4.2]
}
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 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
kept_layer_ids Ran
ran, honoured the contract we drafted
js-lee-AI/GLANCE/glance/head.py
code served (permissive licence) · get_code("ec9e937d8399f3dc")
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

# Call the function with various test cases to understand its behavior
def kept_layer_ids(n_target_layers, n_head_layers):
    """Which target layers a head of this depth reads, spread over the stack.

    A single-layer head reads the middle of the target. Deeper heads spread
    their taps evenly from layer 1 to three layers below the top, the same
    placement the reference block-diffusion head uses.
    """
    if n_head_layers == 1:
        return [n_target_layers // 2]
    start, end = (1, n_target_layers - 3)
    span = end - start
    return [int(round(start + i * span / (n_head_layers - 1))) for i in range(n_head_layers)]


# Test case 1: single layer head
ARGS = {
    "n_target_layers": 10,
    "n_head_layers": 1
}
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 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
load_block_head Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
js-lee-AI/GLANCE/glance/head.py
code served (permissive licence) · get_code("0263f41594e0286a")
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 MockDFlashDraftModel. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 tempfile
import os
from unittest.mock import Mock, patch, MagicMock

torch.manual_seed(0)

# Create a mock DFlashDraftModel class that behaves like the real one
class MockDFlashDraftModel:
    def __init__(self):
        self.device_val = 'cpu'
        self.is_eval = False
    
    @classmethod
    def from_pretrained(cls, path, torch_dtype=None):
        """Mock from_pretrained that returns an instance"""
        instance = cls()
        return instance
    
    def to(self, device):
        """Mock to method for device placement"""
        self.device_val = device
        return self
    
    def eval(self):
        """Mock eval method"""
        self.is_eval = True
        return self

# Create a temporary directory to act as the checkpoint path
temp_dir = tempfile.mkdtemp()

# Mock the dflash module before the function is called
mock_dflash = MagicMock()
mock_dflash.model.DFlashDraftModel = MockDFlashDraftModel

# Patch the import so it succeeds
import sys
sys.modules['dflash'] = mock_dflash
sys.modules['dflash.model'] = mock_dflash.model

ARGS = {
    'path': temp_dir,
    'dtype': torch.bfloat16,
    'device': 'cpu',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
dflash, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockDFlashDraftModel — a MockDFlashDraftModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDFlashDraftModel 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_task Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/experiments/main_table.py
code served (permissive licence) · get_code("32803586af419293")
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. 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 tempfile
import json
import os
from PIL import Image

# Create temporary directory with test data
temp_dir = tempfile.mkdtemp()

# Create a simple test image
test_image = Image.new('RGB', (100, 80), color='red')
image_path = os.path.join(temp_dir, 'test_image.png')
test_image.save(image_path)

# Create a JSONL file with task data
task_name = 'test_task'
jsonl_path = os.path.join(temp_dir, f'{task_name}.jsonl')
with open(jsonl_path, 'w') as f:
    f.write(json.dumps({'image': 'test_image.png', 'prompt': 'a red square'}) + '\n')
    f.write(json.dumps({'image': 'test_image.png', 'prompt': 'another prompt'}) + '\n')

ARGS = {
    'name': 'test_task',
    'data_dir': temp_dir,
    'n': 2,
    'max_pixels': 50
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
path_of Ran
ran, honoured the contract we drafted
js-lee-AI/GLANCE/glance/tree.py
code served (permissive licence) · get_code("56c8adc31f171fef")
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 Node:
    def __init__(self, parent=-1):
        self.parent = parent

# Create a simple tree structure
# Node 0: root (parent = -1)
# Node 1: child of 0
# Node 2: child of 1
# Node 3: child of 2
nodes = [
    Node(parent=-1),  # index 0, root
    Node(parent=0),   # index 1, parent is 0
    Node(parent=1),   # index 2, parent is 1
    Node(parent=2),   # index 3, parent is 2
]

ARGS = {
    "nodes": nodes,
    "index": 3
}
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
read_rounds Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/experiments/fit_law.py
code served (permissive licence) · get_code("2c3fdc1a568fc235")
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 defaultdict. 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 collections
import json
import tempfile
import os

# Create a temporary file with JSONL content
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_rounds.jsonl")

# Write test data to the temporary file
test_data = [
    {"task": "task_a", "value": 1},
    {"task": "task_a", "value": 2},
    {"task": "task_b", "value": 3},
    {"task": "all", "value": 4},
    {"value": 5}  # This will be grouped under 'all' since task is missing
]

with open(temp_file, 'w') as f:
    for row in test_data:
        f.write(json.dumps(row) + '\n')

ARGS = {
    'path': temp_file
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
target_class_for Ran
ran; our contract draft was wrong, not the code
js-lee-AI/GLANCE/glance/vl.py
code served (permissive licence) · get_code("acdf4b678500ed77")
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 type. 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
from unittest.mock import Mock, patch
from transformers import AutoConfig

torch.manual_seed(0)

# Create a mock config that will be returned by AutoConfig.from_pretrained
mock_config = Mock()
mock_config.model_type = 'qwen2_5_vl'

# Create mock transformer classes
class MockQwen3VLForConditionalGeneration(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)

class MockQwen2_5_VLForConditionalGeneration(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)

class MockQwen2VLForConditionalGeneration(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)

# Patch AutoConfig.from_pretrained to return our mock config
original_from_pretrained = AutoConfig.from_pretrained

def mock_from_pretrained(model_id):
    return mock_config

# Patch transformers module to include our mock classes
import transformers
transformers.Qwen3VLForConditionalGeneration = MockQwen3VLForConditionalGeneration
transformers.Qwen2_5_VLForConditionalGeneration = MockQwen2_5_VLForConditionalGeneration
transformers.Qwen2VLForConditionalGeneration = MockQwen2VLForConditionalGeneration

# Patch AutoConfig.from_pretrained
AutoConfig.from_pretrained = staticmethod(mock_from_pretrained)

ARGS = {
    'model_id': 'qwen/qwen2.5-vl-7b-instruct'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
chain_generate Not yet run
unverified (harvested, no recorded run)
js-lee-AI/GLANCE/glance/decode.py
code served (permissive licence) · get_code("0653a5681da67185")
How it ran

no invocation recorded.

gather_cache Not yet run
unverified (harvested, no recorded run)
js-lee-AI/GLANCE/glance/decode.py
code served (permissive licence) · get_code("6eeff33767cd17c9")
How it ran

no invocation recorded.

generate Not yet run
unverified (harvested, no recorded run)
js-lee-AI/GLANCE/glance/decode.py
code served (permissive licence) · get_code("dd66ebd76e41bb93")
How it ran

no invocation recorded.

load_target Not yet run
unverified (harvested, no recorded run)
js-lee-AI/GLANCE/glance/vl.py
code served (permissive licence) · get_code("f9dc185617560a6c")
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, 0 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 19 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.

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

Speculative decoding accelerates generation without changing its output, yet on vision-language models (VLMs) it has been caught in a self-defeating cycle. The drafter stays autoregressive, so it must stay small. A small drafter cannot afford the image at every step, so vision is compressed, pruned, or hidden. A drafter cut off from the image is then least reliable exactly where the image makes text predictable. We present GLANCE, the first one-pass block drafter that is lossless on an unmodified VLM target, and it breaks the cycle at both ends. A block-diffusion head reads the target's already-fused vision-language state, so vision costs the drafter nothing, and fills a whole block in one forward pass, so depth costs no sequential steps. A wide candidate tree is verified in one target pass, and every audited prompt reproduces greedy decoding exactly. Grounded workloads reward this most, entering a verbatim-copy regime whose long runs cost an autoregressive drafter a pass for every token and a block drafter one in total. Under one engine and one round budget, GLANCE decodes up to 2.93x faster than autoregression, from one draft pass a round where the production EAGLE3-VL head takes eight, and accepts 2.7x longer blocks than an EAGLE-3 head trained on the same corpus. One law organizes these results. Accepted length is set by the target's next-token entropy, with a fitted slope that steepens with grounding across all five tasks. The law transfers across targets and modalities and names its own boundary, since free-running text still favors a chain. Our code is available at https://github.com/js-lee-AI/GLANCE.

For agents

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

get_harvested_code_for_paper("2609.00355")
get_code_for_paper("2609.00355")
have("2609.00355")

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

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

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

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

Connect an agent — have() is free.