SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.03236 · 2026

TACG: Trajectory-Aware Commit Gating for Diffusion Language Model Decoding

Chang Xu, Wenhao Li, Jianyuan Guo, Chengcheng Wang, Tingzhang Luo

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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 0 have no contract verdict; 3 failures of our instrument; 2 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/2607.03236.json · badge: /api/ran/2607.03236.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
Clarence-CV/TACG-DLLM community
Papers with Code archive
3 ran · 2 no recorded run
FunctionStatusWhere it lives
_safe_top2_token_id Ran
ran; our contract draft was wrong, not the code
Clarence-CV/TACG-DLLM/src/model/llada_ours_hard_gate.py
code served (permissive licence) · get_code("3c7f81f4eeb70a05")
How it ran

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

import torch

torch.manual_seed(0)

# Create a probability row tensor with shape [vocab_size]
# The function calls torch.topk on prob_row and accesses .indices
# It also checks prob_row.shape[-1]
prob_row = torch.tensor([0.1, 0.5, 0.3, 0.05], dtype=torch.float32)

# Create a top1_token_id - this should be an integer or tensor
# The function converts it to int for comparison
top1_token_id = 1

ARGS = {
    "prob_row": prob_row,
    "top1_token_id": top1_token_id,
}
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 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
_select_before_high_quality_helpers Ran
ran; our contract draft was wrong, not the code
Clarence-CV/TACG-DLLM/src/model/llada_ours_hard_gate.py
code served (permissive licence) · get_code("8f1a658fd2c44817")
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 torch.nn.functional as F

torch.manual_seed(0)

# Create a minimal model that has a logits attribute via forward pass
class MinimalModel(nn.Module):
    def __init__(self, vocab_size=4, hidden_size=3):
        super().__init__()
        self.linear = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, x):
        # x shape: (batch, seq_len, hidden_size)
        logits = self.linear(x)
        # Return an object with a logits attribute
        class Output:
            pass
        output = Output()
        output.logits = logits
        return output

# Set up dimensions
batch_idx = 0
candidate_idx = 5
helper_k = 2

# Create tensors with distinct sizes for different dimensions
# masked_indices: indices of masked positions in sequence (size 8)
masked_indices = torch.tensor([0, 1, 2, 3, 4, 5, 6, 7], dtype=torch.long)

# confidence and margin: per-position scores (size 8)
confidence = torch.tensor([0.9, 0.8, 0.7, 0.85, 0.75, 0.95, 0.6, 0.65], dtype=torch.float32)
margin = torch.tensor([0.1, 0.15, 0.2, 0.12, 0.18, 0.11, 0.22, 0.19], dtype=torch.float32)

# target_conditioned_x: (batch=2, seq_len=8, hidden_size=3)
target_conditioned_x = torch.randn(2, 8, 3, dtype=torch.float32)

# x0: (batch=2, seq_len=8) - contains target token indices
x0 = torch.randint(0, 4, (2, 8), dtype=torch.long)

# Create model
model = MinimalModel(vocab_size=4, hidden_size=3)

ARGS = {
    'batch_idx': batch_idx,
    'candidate_idx': candidate_idx,
    'masked_indices': masked_indices,
    'confidence': confidence,
    'margin': margin,
    'helper_k': helper_k,
    'target_conditioned_x': target_conditioned_x,
    'x0': x0,
    '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 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
_to_int_list Ran
ran; our contract draft was wrong, not the code
Clarence-CV/TACG-DLLM/src/model/llada_ours_hard_gate.py
code served (permissive licence) · get_code("e26fccf971b07373")
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 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

torch.manual_seed(0)

# The function _to_int_list takes indices and converts each element to int
# It iterates over indices and calls int(x) on each element
# So indices should be an iterable of numeric values

ARGS = {
    "indices": [1.5, 2.7, 3.2, 4.9]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
_run_helper_top2_perturbation_probes Not yet run
unverified (harvested, no recorded run)
Clarence-CV/TACG-DLLM/src/model/llada_ours_hard_gate.py
code served (permissive licence) · get_code("dcedab0a8c6d572c")
How it ran

no invocation recorded.

_target_conditioned_local_commit_risk_hard_gate Not yet run
unverified (harvested, no recorded run)
Clarence-CV/TACG-DLLM/src/model/llada_ours_hard_gate.py
code served (permissive licence) · get_code("3795b391364eb93f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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

Diffusion language models (DLLMs) generate text by iteratively denoising masked positions, exposing a trajectory of predictive distributions rather than a single instantaneous belief. Most existing decoders ignore this trajectory and commit tokens from the current snapshot alone, conflating confidence with commitment readiness: a transient top-1 peak under incomplete context can be locked in, while candidates with consistent cross-step support are delayed. We propose Trajectory-Aware Commit Gating (TACG), a training-free gate-level decoder that anchors token identities to the base posterior and uses trajectory-aware signals only to decide whether the current proposal is ready to commit. TACG combines Temporal Implicit Logits Guidance (TILG), which keeps an exponential moving average of past logits as a self-reference and contrasts the current logits against this reference in natural-parameter space, with a History Gate (HG) that enforces short-term proposal persistence before commitment. Together with a capped extra-promotion budget, these components yield a stability-constrained commit rule without auxiliary networks or extra forward passes. We evaluate TACG on LLaDA, Dream, and LLaDA2-Mini across code (HumanEval, MBPP) and math (GSM8K, MATH500) benchmarks; it typically improves or preserves accuracy while reducing denoising steps and increasing tokens per forward (TPF). The code is publicly available at https://github.com/Clarence-CV/TACG-DLLM.

For agents

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

get_harvested_code_for_paper("2607.03236")
get_code_for_paper("2607.03236")
have("2607.03236")

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

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

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

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

Connect an agent — have() is free.