SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.05289 · EMNLP · 2024

SpecHub: Provable Acceleration to Multi-Draft Speculative Decoding

Tianyi Zhou, Lichao Sun, Xun Chen, R. Sun

arXiv · PDF · Open in the Atlas

Code that ran

9 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 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; 2 failures of our instrument; 12 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/2411.05289.json · badge: /api/ran/2411.05289.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
mastergodzilla/speculative_decoding_ot marked official in Papers with Code
Papers with Code archive
9 ran · 12 no recorded run
FunctionStatusWhere it lives
KV_Cache Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("1080bbf045764637")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LlamaAttention_FI Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("0f36d7967c772ba7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LlamaAttention_TG Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("a7975bacb53acbd6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LlamaMLP_FI Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("4d241e71f8a7a763")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LlamaRMSNorm_FI Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("6240a83f9a6521cf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LlamaRotaryEmbedding_FI Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("39802465997cc25d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Tree Ran
ran on a synthesized input · constructed an object; no result was computed
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("6c730d4a44e0ced5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_make_causal_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("3d5d12b34c6bc8f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_sampling_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("1823e59e5f171174")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GraphInferenceEngine Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("b706495d45bf74dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

GraphInferenceEngineTG Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("b251248cec118216")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

InferenceEngine Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("85a9b61d47defe2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

InferenceEngineTG Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("c652c9e8d68d727a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LlamaDecoderLayer_FI Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("774786e151f678c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LlamaDecoderLayer_TG Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("dc6a8ea4f5fcee7a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LlamaForCausalLM_FI Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("8653a0e682ed6728")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LlamaForCausalLM_TG Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("e6b7a28738c8bd31")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LlamaModel_FI Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("4580bc94dbaf3361")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LlamaModel_TG Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("68e76f48680e026b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SpecTree Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("718aa0b1a1a6203e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

capture_graph Not yet run
unverified (harvested, no recorded run)
mastergodzilla/speculative_decoding_ot/Sequoia/Tree/SpecTree.py
pointer only (licence: NONE) · get_code("c07e4861bb7ab066")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mastergodzilla/speculative_decoding_ot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 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.

FunctionAlso present inEarliest-datedOthers named
capture_graph
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.12374 (2024-02)
Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding
get_sampling_logits
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2404.11912 (2024-04)
TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decoding

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

Large Language Models (LLMs) have become essential in advancing natural language processing (NLP) tasks, but their sequential token generation limits inference speed. Multi-Draft Speculative Decoding (MDSD) offers a promising solution by using a smaller draft model to generate multiple token sequences, which the target LLM verifies in parallel. However, current heuristic approaches, such as Recursive Rejection Sampling (RRS), suffer from low acceptance rates in subsequent drafts, limiting the advantages of using multiple drafts. Meanwhile, Optimal Transport with Membership Cost (OTM) can theoretically improve acceptance rates, but its computational cost is too high for real-time use. We present SpecHub, a novel, efficient samplingverification method for MDSD that improves acceptance rates with only linear computational overhead. By simplifying the OTM problem into a compact Linear Programming model, SpecHub significantly reduces computational complexity. It further accelerates sampling by leveraging a sparse joint distribution, focusing computation on high-probability token sequences. In extensive experiments, Spechub consistently generates 0.05-0.27 and 0.02-0.16 more tokens per step than RRS and RRS without replacement. We attach our code at https://github.com/MasterGodzilla/ Speculative_decoding_OT.

For agents

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

get_harvested_code_for_paper("2411.05289")
get_code_for_paper("2411.05289")
have("2411.05289")

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

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

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

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

Connect an agent — have() is free.