Papers › Clover-2: Accurate Inference for Regressive Lightweight Speculative Decoding

Clover-2: Accurate Inference for Regressive Lightweight Speculative Decoding

1 Aug 2024arXiv:2408.00264archive 2025-07-28

Large Language Models (LLMs) frequently suffer from inefficiencies, largely attributable to the discord between the requirements of auto-regressive decoding and the architecture of contemporary GPUs. Recently, regressive lightweight speculative decoding has garnered attention for its notable efficiency improvements in text generation tasks. This approach utilizes a lightweight regressive draft model, like a Recurrent Neural Network (RNN) or a single transformer decoder layer, leveraging sequential information to iteratively predict potential tokens. Specifically, RNN draft models are computationally economical but tend to deliver lower accuracy, while attention decoder layer models exhibit the opposite traits. This paper presents Clover-2, an advanced iteration of Clover, an RNN-based draft model designed to achieve comparable accuracy to that of attention decoder layer models while maintaining minimal computational overhead. Clover-2 enhances the model architecture and incorporates knowledge distillation to increase Clover's accuracy and improve overall efficiency. We conducted experiments using the open-source Vicuna 7B and LLaMA3-Instruct 8B models. The results demonstrate that Clover-2 surpasses existing methods across various model architectures, showcasing its efficacy and robustness.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.00264")

Code

Syntology Ran 13 of 17 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 5 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: community (archive-listed): 17 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

XiaoBin1992/clover mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 13 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
5ran · fixture could not drive it
5ran
4unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from XiaoBin1992/clover. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

repeat_kv XiaoBin1992/clover/clover/modeling_eagle.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 30d7eec482ebf6b1 · report
repeat_kv XiaoBin1992/clover/clover/model/clover2.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 3c76e52815c5401d · report
apply_rotary_pos_emb XiaoBin1992/clover/clover/model/modeling_mixtral_kv.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · d61c483a3c2b3156 · report
apply_rotary_pos_emb XiaoBin1992/clover/clover/modeling_eagle.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · f725bc2d76076485 · report
apply_rotary_pos_emb XiaoBin1992/clover/clover/model/clover2.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 9a65a30d006fc96e · report
generate_tree_buffers XiaoBin1992/clover/clover/model/utils_alpha.py community (archive-listed) ran Apache-2.0 (permissive) · 8a738587f4d897b9 · report
initialize_past_key_values XiaoBin1992/clover/clover/model/kv_cache.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · aadc9c83d7ec2701 · report
pad_path XiaoBin1992/clover/clover/model/utils.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · a40c43d3dbc369d3 · report
prepare_logits_processor XiaoBin1992/clover/clover/model/utils_alpha.py community (archive-listed) ran Apache-2.0 (permissive) · f02fecb5f780c3f8 · report
repeat_kv XiaoBin1992/clover/clover/model/modeling_llama_kv.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · f6e0c0fc3868b787 · report
rotate_half XiaoBin1992/clover/clover/modeling_eagle.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · b99eea6376d1e212 · report
rotate_half XiaoBin1992/clover/clover/model/clover2.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e03d53ba9d4f9ae5 · report
rotate_half XiaoBin1992/clover/clover/model/modeling_llama_kv.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · b71b0ed70aa2939c · report
apply_rotary_pos_emb XiaoBin1992/clover/clover/model/modeling_llama_kv.py community (archive-listed) unverified Apache-2.0 (permissive) · bad260f6d71db00c · report
load_balancing_loss_func XiaoBin1992/clover/clover/model/modeling_mixtral_kv.py community (archive-listed) unverified Apache-2.0 (permissive) · d9308d9bf18cd072 · report
prepare_logits_processor XiaoBin1992/clover/clover/model/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · fdb811155913ebca · report
timer XiaoBin1992/clover/clover/model/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · b54951ffbd7a4fc0 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionKnowledge DistillationSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections