SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2512.14681 · ICML · 2026

Fast and Accurate Causal Parallel Decoding using Jacobi Forcing FAST AND ACCURATE CAUSAL PARALLEL DECODING USING JACOBI FORCING

Zhijie Deng, Uc Diego, Hao Zhang, Samyam Rajbhandari, Siqi Kou, Lanxiang Hu, Yichao Fu, Yuxiong He, Tajana Rosing

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 6 failures of our instrument; 1 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/2512.14681.json · badge: /api/ran/2512.14681.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
hao-ai-lab/JacobiForcing canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
extract_python_code Ran
ran; our contract draft was wrong, not the code
hao-ai-lab/JacobiForcing/JacobiForcing/ar_inference_baseline.py
code served (permissive licence) · get_code("f650a566b3a44b39")
How it ran

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

import re

def extract_python_code(text: str) -> str:
    """Extract the first ```python ... ``` code block; fallback to raw text if none."""
    match = re.search('```python([\\s\\S]*?)```', text)
    if match:
        return match.group(1).strip()
    return text

# Test case 1: text with python code block
text_with_code = """
Here is some documentation:

def hello():
    print("world")

More text after.
"""

# Test case 2: text without code block (should fallback to raw text)
text_without_code = "Just plain text with no code block"

ARGS = {
    "text": text_with_code
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_python_code Ran
ran; our contract draft was wrong, not the code
hao-ai-lab/JacobiForcing/JacobiForcing/jacobi_forcing_inference_MR_humaneval.py
code served (permissive licence) · get_code("f30e3943ccb923f5")
How it ran

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

import re

def extract_python_code(text):
    match = re.search('```python([\\s\\S]*?)```', text)
    if match:
        return match.group(1).strip()
    else:
        return text

# Test case 1: text with python code block
text_with_code = """
Here is some documentation:

def hello():
    print("world")

End of documentation.
"""

# Test case 2: text without python code block
text_without_code = "This is just plain text with no code blocks."

ARGS = {
    "text": text_with_code
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_python_code Ran
ran; our contract draft was wrong, not the code
hao-ai-lab/JacobiForcing/JacobiForcing/jacobi_forcing_inference_MR_humaneval_config_grid_search.py
code served (permissive licence) · get_code("935fb30ac04be7c7")
How it ran

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

import re

def extract_python_code(text):
    match = re.search('```python([\\s\\S]*?)```', text)
    if match:
        return match.group(1).strip()
    return text

# Test case 1: text with python code block
test_text_with_code = """
Here is some explanation:

def hello():
    print("world")

More text after.
"""

# Test case 2: text without code block
test_text_without_code = "Just plain text with no code blocks"

ARGS = {
    "text": test_text_with_code
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_jsonl Ran
ran; our contract draft was wrong, not the code
hao-ai-lab/JacobiForcing/JacobiForcing/ar_inference_baseline.py
code served (permissive licence) · get_code("163eb1381b9a92fb")
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 tempfile
import json
import os

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

# Write some valid JSONL data
test_data = [
    {"id": 1, "text": "hello world"},
    {"id": 2, "text": "foo bar"},
    {"id": 3, "name": "test", "value": 42}
]

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

# Define ARGS mapping all parameters
ARGS = {
    "file_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 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
make_collate_fn Ran
ran; our contract draft was wrong, not the code
hao-ai-lab/JacobiForcing/JacobiForcing/train/baseline_sft_train.py
code served (permissive licence) · get_code("2083c5c3af717627")
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 function. 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 transformers
from transformers.trainer_pt_utils import LabelSmoother

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 2
        self.pad_token = '<|pad|>'

tokenizer = MockTokenizer()
max_len = 10

ARGS = {
    'tokenizer': tokenizer,
    'max_len': max_len,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
make_jacobian_data_module Ran
ran; our contract draft was wrong, not the code
hao-ai-lab/JacobiForcing/JacobiForcing/train/deprecated/train_soft_cllm_loss.py
code served (permissive licence) · get_code("bd5ce784b2f6ab8b")
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 transformers
from unittest.mock import Mock

torch.manual_seed(0)

# Create a minimal tokenizer mock
class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 2
        self.bos_token_id = 1

# Create minimal data_args mock
class MockDataArgs:
    def __init__(self):
        self.lazy_preprocess = True

# Create trajectory_data - list of dicts with required keys
trajectory_data = [
    {
        'prompt_ids': [1, 2],
        'answer_trajectory_ids': [[3, 4], [5, 6]],
        'teacher_output_ids': [7, 8],
    },
    {
        'prompt_ids': [1, 2],
        'answer_trajectory_ids': [[9, 10], [11, 12]],
        'teacher_output_ids': [13, 14],
        'labels_ids': [15, 16],
    },
]

ARGS = {
    'tokenizer': MockTokenizer(),
    'trajectory_data': trajectory_data,
    'data_args': MockDataArgs(),
    'model': 'test_model',
    'local_rank': 0,
}
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 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
preprocess_distill_data Not yet run
unverified (harvested, no recorded run)
hao-ai-lab/JacobiForcing/JacobiForcing/train/deprecated/train_soft_cllm_loss.py
code served (permissive licence) · get_code("3849703bd564244d")
How it ran

no invocation recorded.

Also present in other papers' code

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

Multi-token generation has emerged as a promising paradigm for accelerating transformer-based large model inference. Recent efforts primarily explore diffusion Large Language Models (dLLMs) for parallel decoding to reduce inference latency. To achieve AR-level generation quality, many techniques adapt AR models into dLLMs to enable parallel decoding. However, they suffer from limited speedup compared to AR models due to a pretrain-to-posttrain mismatch. Specifically, the masked data distribution in post-training deviates significantly from the real-world data distribution seen during pretraining, and dLLMs rely on bidirectional attention, which conflicts with the causal prior learned during pretraining and hinders the integration of exact KV cache reuse. To address this, we introduce Jacobi Forcing, a progressive distillation paradigm where models are trained on their own generated parallel decoding trajectories, smoothly shifting AR models into efficient parallel decoders while preserving their pretrained causal inference property. The models trained under this paradigm, Jacobi Forcing Model, achieves 3.8× wall-clock speedup on coding benchmarks with minimal loss in performance. Based on Jacobi Forcing Model's trajectory characteristics, we introduce multi-block decoding with rejection recycling, which enables up to 4.5× higher token acceptance count per iteration and nearly 4.0× wall-clock speedup, effectively trading additional compute for lower inference latency. Our code is available at https://github.com/hao-ai-lab/JacobiForcing. Modern large language models (LLMs), such as GPT-5 (OpenAI, 2025), Gemini-2.5 (DeepMind, 2025), and Kimi-K2 (Team et al., 2025), excel at complex and interactive agentic tasks. Yet, autoregressive (AR) decoding generates tokens sequentially, limiting parallelism and leading to high latency. To address this, recent work explores predicting multiple future tokens natively in transformer-based models without relying on auxiliary draft models. A popular approach is diffusion-based language models (dLLMs), which relax left-to-right generation by modeling the entire sequence jointly and decoding via full-sequence denoising (Nisonoff et al., 2024;Schiff et al., 2024; Inception Labs, 2025). This, in turn, enables highly parallelizable computation. However, open pretrained dLLMs (Ye et al., 2025;Zhu et al., 2025; Nie et al., 2025a) underperform AR models in generation quality, mainly due to their negative evidence lower bound (NELBO) training objective, a loose bound on AR's negative log-likelihood (NLL) that is proven less efficient (Cheng et al., 2025;Nie et al., 2024;Arriola et al., 2025). To preserve the generation quality of frontier AR models, the community has adapted high-quality AR models into dLLMs for parallel decoding (JetAstra, 2025; Wu et al., 2025b). Concretely, they perform block-wise perturbations of pretrained data by randomly masking tokens following the dLLMs recipe, and leverage these data to posttrain AR models by modifying the attention mask to enable block-wise bidirectional attention and replacing the training objective from NLL to NELBO. This adaptation delivers limited speedup under quality constraints, primarily due to a significant pretrain-to-posttrain mismatch. Specifically, enforcing block-wise bidirectional attention conflicts * Equal contributions. Part of work was done during Lanxiang's internship at Snowflake.

For agents

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

get_harvested_code_for_paper("2512.14681")
get_code_for_paper("2512.14681")
have("2512.14681")

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

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

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

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

Connect an agent — have() is free.