SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.07177 · 2023

Online Speculative Decoding

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 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/2310.07177.json · badge: /api/ran/2310.07177.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
liuxiaoxuanpku/osd canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
acc_rate_to_acc_count Ran
ran, honoured the contract we drafted
liuxiaoxuanpku/osd/distill/cost_model.py
pointer only (licence: NONE) · get_code("e98f1e98fbfaaf55")
How it ran

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

estimate_speedup_from_acc_count Ran
ran, honoured the contract we drafted
liuxiaoxuanpku/osd/distill/cost_model.py
pointer only (licence: NONE) · get_code("34835c30e916c84e")
How it ran

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

extract_answer Ran
ran; our contract draft was wrong, not the code
liuxiaoxuanpku/osd/distill/data.py
pointer only (licence: NONE) · get_code("d95f990735eba145")
How it ran

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

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

preprocess_function_generic Ran
ran; our contract draft was wrong, not the code
liuxiaoxuanpku/osd/distill/experiment/compare_model_t5.py
pointer only (licence: NONE) · get_code("9835f44aa570459e")
How it ran

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

preprocess_function_spider Ran
ran; our contract draft was wrong, not the code
liuxiaoxuanpku/osd/distill/experiment/compare_model_t5.py
pointer only (licence: NONE) · get_code("7176f7d7a27e3c0d")
How it ran

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

read_jsonl Ran
ran; our contract draft was wrong, not the code
liuxiaoxuanpku/osd/distill/data.py
pointer only (licence: NONE) · get_code("951d55a786237f31")
How it ran

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

search_best_spec_count Ran
ran, honoured the contract we drafted
liuxiaoxuanpku/osd/distill/cost_model.py
pointer only (licence: NONE) · get_code("17363e810e97d511")
How it ran

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

slice_past_key_values Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liuxiaoxuanpku/osd/distill/specInfer/common.py
pointer only (licence: NONE) · get_code("287256fce57ec17e")
How it ran

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

slice_past_key_values_seq2seq Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liuxiaoxuanpku/osd/distill/specInfer/common.py
pointer only (licence: NONE) · get_code("49ea3af49091879c")
How it ran

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

target_sample_from_distribution Ran
ran; our contract draft was wrong, not the code
liuxiaoxuanpku/osd/distill/specInfer/common.py
pointer only (licence: NONE) · get_code("23212f8f0cb67fc0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liuxiaoxuanpku/osd 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_model Not yet run
unverified (harvested, no recorded run)
liuxiaoxuanpku/osd/distill/experiment/compare_model.py
pointer only (licence: NONE) · get_code("44894fa300cbe47f")
How it ran

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

load_model Not yet run
unverified (harvested, no recorded run)
liuxiaoxuanpku/osd/distill/experiment/compare_model_t5.py
pointer only (licence: NONE) · get_code("9e8be6f2c54dac94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liuxiaoxuanpku/osd 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 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 2 later) and 11 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
extract_answer 5 other papers
1 dated earlier, 1 the same month, 3 later
2309.06553 (2023-09)
Query-Dependent Prompt Evaluation and Optimization with Offline Inverse RL
2310.06147 (2023-10)
Reinforcement Learning in the Era of LLMs: What is Essential? What is needed? An RL Perspective on RLHF, Prompting, and Beyond
2401.10480 (2024-01)
Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoning
and 2 more not named here
read_jsonl 5 other papers
1 dated earlier, 1 the same month, 3 later
2309.06553 (2023-09)
Query-Dependent Prompt Evaluation and Optimization with Offline Inverse RL
2310.06147 (2023-10)
Reinforcement Learning in the Era of LLMs: What is Essential? What is needed? An RL Perspective on RLHF, Prompting, and Beyond
2312.12832 (2023-12)
Turning Dust into Gold: Distilling Complex Reasoning Capabilities from LLMs by Leveraging Negative Data
and 2 more not named here

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 is a pivotal technique to accelerate the inference of large language models (LLMs) by employing a smaller draft model to predict the target model's outputs. However, its efficacy can be limited due to the low predictive accuracy of the draft model, particularly when faced with diverse text inputs and a significant capability gap between the draft and target models. We introduce online speculative decoding to address this challenge. The main idea is to continuously update the (multiple) draft model(s) on observed user query data. Adapting to query distribution mitigates the shifts between the training distribution of the draft model and the query distribution, enabling the draft model to more accurately predict the target model's outputs. We develop a prototype of online speculative decoding based on knowledge distillation and evaluate it using both synthetic and real query data. The results show a substantial increase in the token acceptance rate by 0.1 to 0.65, bringing 1.42x to 2.17x latency reduction. Our code is available at https://github.com/LiuXiaoxuanPKU/OSD.

For agents

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

get_harvested_code_for_paper("2310.07177")
get_code_for_paper("2310.07177")
have("2310.07177")

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

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

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

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

Connect an agent — have() is free.