SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.00351 · NeurIPS · 2025

Reject Only Critical Tokens: Pivot-Aware Speculative Decoding

Sai Karimireddy, Salman Avestimehr, Amir Ziashahabi, Yavuz Faruk Bakman, Duygu Nur Yaldiz, Mostafa El-Khamy

arXiv · PDF · Open in the Atlas

Code that ran

14 of 16 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 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/2511.00351.json · badge: /api/ran/2511.00351.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
amir-zsh/PAD canonical (classifier label)
classifier basis: census
14 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_rope_scaling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
amir-zsh/PAD/src/gpt_fast/model.py
pointer only (licence: NONE) · get_code("e32aa65ed977997d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

apply_top_k_only Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/src/gpt_fast/gpt_fast_utils.py
pointer only (licence: NONE) · get_code("ebe7962c6989540f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

apply_top_k_top_p Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/src/gpt_fast/gpt_fast_utils.py
pointer only (licence: NONE) · get_code("6d9be873169e847a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

convert_act_dict_to_tensors Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/train_classifier.py
pointer only (licence: NONE) · get_code("3ef18ccd1206347c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

dynamically_quantize_per_channel Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/src/gpt_fast/quantize.py
pointer only (licence: NONE); the stored copy get_code serves, from amarka8/SOCKET, is pointer only (licence: NONE) · get_code("55ec8fea60e1d7e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

eval Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/train_classifier.py
pointer only (licence: NONE) · get_code("ce2b1e2625c49910")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

find_multiple Ran
ran, honoured the contract we drafted
amir-zsh/PAD/src/gpt_fast/model.py
pointer only (licence: NONE) · get_code("aba86ffbed27ba65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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_group_qparams Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
amir-zsh/PAD/src/gpt_fast/quantize.py
pointer only (licence: NONE); the stored copy get_code serves, from amarka8/SOCKET, is pointer only (licence: NONE) · get_code("dbabfb89a4b530ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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_logits_and_embeddings Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/train_classifier.py
pointer only (licence: NONE) · get_code("f4da6be2e1f446cf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

load_mlp_model Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/decode.py
pointer only (licence: NONE) · get_code("914469751a0f1948")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

multinomial_sample_one_no_sync Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/src/gpt_fast/gpt_fast_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from Cornell-RelaxML/qtip, is pointer only (licence: GPL-3.0) · get_code("0b5f90e8856ad7af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

pack_scales_and_zeros Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/src/gpt_fast/quantize.py
pointer only (licence: NONE); the stored copy get_code serves, from amarka8/SOCKET, is pointer only (licence: NONE) · get_code("146cdcef0c195fd7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

str2bool Ran
ran, violated the contract we drafted
amir-zsh/PAD/decode.py
pointer only (licence: NONE) · get_code("b97cd418550d173e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

strike Ran
ran; our contract draft was wrong, not the code
amir-zsh/PAD/decode.py
pointer only (licence: NONE) · get_code("86c8ddad5eea6789")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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_tokenizer Not yet run
unverified (harvested, no recorded run)
amir-zsh/PAD/src/gpt_fast/tokenizer.py
pointer only (licence: NONE) · get_code("36cf05d05fbba908")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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.

select_kv_cache_portion Not yet run
unverified (harvested, no recorded run)
amir-zsh/PAD/dataset_generation.py
pointer only (licence: NONE) · get_code("c1e4d88b26b6d460")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amir-zsh/PAD 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 4 later) and 10 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
find_multiple 9 other papers
8 dated earlier, 1 later
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
2310.06434 (2023-10)
Whispering LLaMA: A Cross-Modal Generative Error Correction Framework for Speech Recognition
2310.08278 (2023-10)
Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecasting
and 6 more not named here
multinomial_sample_one_no_sync 8 other papers
8 dated earlier
2212.04356 (2022-12)
Robust Speech Recognition via Large-Scale Weak Supervision
2306.05284 (2023-06)
Simple and Controllable Music Generation
2308.02560 (2023-08)
From Discrete Tokens to High-Fidelity Audio Using Multi-Band Diffusion
and 5 more not named here
dynamically_quantize_per_channel 4 other papers
3 dated earlier, 1 later
2308.02560 (2023-08)
From Discrete Tokens to High-Fidelity Audio Using Multi-Band Diffusion
2408.07092 (2024-08)
Post-Training Sparse Attention with Double Sparsity
2408.11049 (2024-08)
MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decoding
and 1 more not named here
get_group_qparams 3 other papers
2 dated earlier, 1 later
2308.02560 (2023-08)
From Discrete Tokens to High-Fidelity Audio Using Multi-Band Diffusion
2408.07092 (2024-08)
Post-Training Sparse Attention with Double Sparsity
2602.06283 (2026-02)
SOCKET: SOft Collision Kernel EsTimator for Sparse Attention
pack_scales_and_zeros 3 other papers
2 dated earlier, 1 later
2308.02560 (2023-08)
From Discrete Tokens to High-Fidelity Audio Using Multi-Band Diffusion
2408.07092 (2024-08)
Post-Training Sparse Attention with Double Sparsity
2602.06283 (2026-02)
SOCKET: SOft Collision Kernel EsTimator for Sparse Attention
apply_rope_scaling 1 other paper
1 dated earlier
2501.06589 (2025-01)
Ladder-Residual: Parallelism-Aware Architecture for Accelerating Large Model Inference with Communication Overlapping

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 (SD) ensures that the output matches the target model's distribution exactly. However, we argue that this distribution matching requirement is too stringent and results in unnecessarily low acceptance rates, limiting potential speedups. Instead, we advocate a reformulation of the decoding objective: the proposed decoding strategy should match the expected utility, i.e., the task-specific performance, of the target model. This perspective also aligns better with realworld use cases of LLMs, where utility (e.g., code correctness, factual accuracy) is often more important than sampling distribution. Based on this reformulation, we propose a novel decoding strategy: Pivot-Aware Speculative Decoding, which rejects only those tokens that would lead to a utility drop in the final output. We refer to these critical tokens as pivot tokens. We propose a method for labeling tokens as pivotal or non-pivotal and train a lightweight classifier to detect them. This method can be viewed as a relaxed version of standard SD, which offers much higher acceptance while preserving utility. We evaluate our method across various datasets, demonstrating that we can achieve up to 2.5× speedup with comparable utility. Source code is available at https://github.com/amir-zsh/PAD.

For agents

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

get_harvested_code_for_paper("2511.00351")
get_code_for_paper("2511.00351")
have("2511.00351")

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

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

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

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

Connect an agent — have() is free.