SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.18967 · 2026

EfficientRollout: System-Aware Self-Speculative Decoding for RL Rollouts

Amir Gholami, Coleman Hooper, Minjae Lee, Seunghyuk Oh, Kevin Galim, Wonjun Kang, Donghoon Kim, Hyung Koo, Furiosaai, Harman Singh, Minseo Kim, Weight Quantization

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 6 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2606.18967.json · badge: /api/ran/2606.18967.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
furiosa-ai/EfficientRollout canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_constants Ran
ran; our contract draft was wrong, not the code
furiosa-ai/EfficientRollout/sd_toggle/constants.py
code served (permissive licence) · get_code("e47375bd057b17b0")
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 ModelConstants. 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 numpy as np
from dataclasses import dataclass

torch.manual_seed(0)

ARGS = {
    "model_name": "Qwen2.5-7B",
    "tp": 1,
    "quant_ratio": 0.25,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ModelConstants — a ModelConstants output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ModelConstants 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
generate_config_from_args Ran
ran; our contract draft was wrong, not the code
furiosa-ai/EfficientRollout/verl/model_merger/base_model_merger.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("8896f4e2bafe8abc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository 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_dynamic_pipeline_shards Ran
ran, honoured the contract we drafted
furiosa-ai/EfficientRollout/verl/model_merger/megatron_model_merger.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("94209884dcb2308e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository 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_F_eff_from_bench Ran
ran, honoured the contract we drafted
furiosa-ai/EfficientRollout/sd_toggle/fit.py
code served (permissive licence) · get_code("389526db654ebaa0")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 json
import tempfile
from pathlib import Path

# Create a temporary JSON file with the expected benchmark data
temp_dir = tempfile.TemporaryDirectory()
bench_file = Path(temp_dir.name) / "F_eff_bench.json"

# Write a valid benchmark JSON with the required field
bench_data = {
    "F_eff_hardware_tflops": 200.5,
    "other_metrics": {"batch_size": 256, "compute_bound": True}
}

with open(bench_file, 'w') as f:
    json.dump(bench_data, f)

ARGS = {
    "bench_path": bench_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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
load_c_comm_from_bench Ran
ran, honoured the contract we drafted
furiosa-ai/EfficientRollout/sd_toggle/fit.py
code served (permissive licence) · get_code("10cad4dbce6791e7")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 json
import tempfile
from pathlib import Path

# Create a temporary JSON file with benchmark data
temp_dir = tempfile.mkdtemp()
bench_file = Path(temp_dir) / "c_comm_bench.json"

bench_data = {
    "c_comm_per_model_tp2": {
        "Qwen2.5-14B_tp2": {
            "c_comm_B32_sec": 3.588e-3
        },
        "llama-7b_tp2": {
            "c_comm_B32_sec": 2.145e-3
        }
    },
    "c_comm_per_model_tp4": {
        "Qwen2.5-14B_tp4": {
            "c_comm_B32_sec": 5.234e-3
        }
    }
}

with open(bench_file, 'w') as f:
    json.dump(bench_data, f)

ARGS = {
    "bench_path": bench_file,
    "model_name": "Qwen2.5-14B",
    "tp": 2
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
load_config Ran
ran; our contract draft was wrong, not the code
furiosa-ai/EfficientRollout/sd_toggle/config.py
code served (permissive licence) · get_code("e16f5339014cfd08")
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 SDToggleConfig. 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 json
import tempfile
from pathlib import Path

# Create a minimal but valid config JSON
config_data = {
    "hardware": {
        "gpu": "H100",
        "tp": 8,
        "BW_eff": 1.5,
        "BW_peak": 2.0,
        "F_peak": 100.0,
        "c_comm": 0.1
    },
    "model": {
        "name": "llama-7b",
        "W_t": 0.5,
        "W_d": 0.3,
        "C_dense": 2048,
        "C_attn": 512,
        "kappa_theoretical": 1024,
        "rho": 0.2,
        "gqa": 1
    },
    "calibration": {
        "eta_d": 1.5,
        "kappa_eff": 900,
        "F_eff": 90.0,
        "c_T": 0.05,
        "c_D": 0.01,
        "c_V": 0.02,
        "beta": 0.0,
        "per_gamma": {
            "1": {"c_D": 0.01, "c_V": 0.02, "c_T": 0.05, "R2": 0.95},
            "2": {"c_D": 0.012, "c_V": 0.022, "c_T": 0.055, "R2": 0.94}
        },
        "per_gamma_full": {
            "1": {"c_D": 0.01, "c_V": 0.02},
            "2": {"c_D": 0.012, "c_V": 0.022}
        }
    },
    "metadata": {
        "version": "1.0",
        "created": "2024-01-01"
    }
}

# Write config to temporary file
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False)
json.dump(config_data, temp_file)
temp_file.close()
config_path = temp_file.name

ARGS = {
    "path": config_path
}
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 SDToggleConfig — a SDToggleConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SDToggleConfig 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_csv Ran
ran; our contract draft was wrong, not the code
furiosa-ai/EfficientRollout/sd_toggle/fit.py
code served (permissive licence) · get_code("5ed7d80f88d8f831")
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 csv
from pathlib import Path
import numpy as np
import tempfile
import os

# Create a temporary CSV file with the required columns and sample data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test_sweep.csv")

# Write a sample CSV with cycle-level T_V data that will trigger correction
csv_content = """model,batch,seq,gamma,mode,mean_ms,median_ms
llama-7b,2,128,0,drafter_decode,5.2,5.1
llama-7b,2,128,0,target_decode,10.0,9.9
llama-7b,2,128,4,drafter_decode,5.5,5.4
llama-7b,2,128,4,target_verify,32.0,31.8
llama-7b,4,256,0,drafter_decode,8.1,8.0
llama-7b,4,256,0,target_decode,15.5,15.3
llama-7b,4,256,4,drafter_decode,8.5,8.4
llama-7b,4,256,4,target_verify,48.0,47.5
llama-7b,2,128,2,drafter_decode,5.3,5.2
llama-7b,2,128,2,target_verify,21.0,20.8
llama-7b,4,256,2,drafter_decode,8.3,8.2
llama-7b,4,256,2,target_verify,32.0,31.6
"""

with open(csv_path, 'w') as f:
    f.write(csv_content)

ARGS = {
    'csv_path': csv_path,
    'engine_level_correction': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
predict_T_D Ran
ran, honoured the contract we drafted
furiosa-ai/EfficientRollout/sd_toggle/roofline.py
code served (permissive licence) · get_code("5908adbd4aab5444")
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 float64, ndim 0, 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 numpy as np

ARGS = {
    "B": 2,
    "S": 4,
    "W_d": 1024.0,
    "eta_d": 1.2,
    "kappa_eff": 0.5,
    "BW_eff": 1000.0,
    "C_dense": 2048.0,
    "C_attn": 512.0,
    "F_eff": 5000.0,
    "c_D": 10.0,
    "c_comm": 0.001,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
predict_T_T Ran
ran, honoured the contract we drafted
furiosa-ai/EfficientRollout/sd_toggle/roofline.py
code served (permissive licence) · get_code("f9e3508f6437c9f9")
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 float64, ndim 0, 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 numpy as np

# Define ARGS dictionary with valid arguments for predict_T_T
ARGS = {
    "B": 2,  # Batch size (small integer)
    "S": 128,  # Sequence length (small integer)
    "W_t": 1e9,  # Target model weight bytes per-GPU (float, ~1GB)
    "kappa_eff": 1024.0,  # Effective KV cache bytes per (B*S) per-GPU (float)
    "BW_eff": 1e12,  # Effective memory bandwidth bytes/s per-GPU (float, ~1TB/s)
    "C_dense": 1e12,  # Per-token dense compute FLOPS per-GPU (float)
    "C_attn": 1e11,  # Per-token-per-context attention compute FLOPS per-GPU (float)
    "F_eff": 1e14,  # Effective compute throughput FLOPS per-GPU (float, ~100TFLOPS)
    "c_T": 0.5,  # Target batch overhead in microseconds per batch element (float)
    "c_comm": 0.001,  # NCCL overhead per forward pass in seconds (float)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
predict_T_V Ran
ran, honoured the contract we drafted
furiosa-ai/EfficientRollout/sd_toggle/roofline.py
code served (permissive licence) · get_code("3ca42956bddbe642")
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 float64, ndim 0, 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 numpy as np

ARGS = {
    'B': 2,
    'S': 128,
    'gamma': 4,
    'W_t': 1e9,
    'kappa_eff': 1e6,
    'BW_eff': 1e12,
    'C_dense': 1e9,
    'C_attn': 1e8,
    'F_eff': 1e12,
    'c_V': 0.5,
    'c_comm': 0.001,
    'beta': 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
run_sweep Not yet run
unverified (harvested, no recorded run)
furiosa-ai/EfficientRollout/sd_toggle/sweep.py
code served (permissive licence) · get_code("a7e9ee3961426ca7")
How it ran

no invocation recorded.

run_sweep_multi_gpu Not yet run
unverified (harvested, no recorded run)
furiosa-ai/EfficientRollout/sd_toggle/sweep.py
code served (permissive licence) · get_code("67a2fbc5819c1281")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 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
generate_config_from_args 57 other papers
36 dated earlier, 7 the same month, 11 later, 3 undated
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking
2510.08630 (2025-10)
ExPO-HM: Learning to Explain-then-Detect for Hateful Meme Detection
and 54 more not named here
get_dynamic_pipeline_shards 52 other papers
33 dated earlier, 5 the same month, 12 later, 2 undated
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking
2510.08630 (2025-10)
ExPO-HM: Learning to Explain-then-Detect for Hateful Meme Detection
and 49 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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Reinforcement learning (RL) has become a representative post-training paradigm for large language models (LLMs), enabling strong reasoning and agentic capabilities. However, rollout generation remains a dominant latency bottleneck because autoregressive (AR) sampling decodes responses sequentially and a small number of long-tailed generations often determine completion time. Speculative decoding (SD) offers a natural way to address this bottleneck, as it is a well-established technique for serving fixed LLMs that reduces latency by rapidly drafting tokens and accepting them through parallel verification while preserving the target-model distribution. However, its practical speedups do not directly carry over to RL rollouts: (i) the evolving target policy makes any fixed drafter increasingly mismatched with the policy's output distribution; and (ii) active batch sizes shrink throughout rollout decoding, shifting decoding from compute-bound to memory-bound regimes where parallel verification can exploit underutilized compute. Therefore, accelerating RL rollouts requires both a drafter that remains effective under long, high-temperature generations from an evolving policy and system-aware use of SD that avoids compute-bound regimes. We present EfficientRollout, a system-aware self-SD framework designed to address this gap for RL rollouts. EfficientRollout induces a quantized drafter from the target model (i.e. self-speculative decoding), keeping it coupled to the evolving policy without separate drafter pretraining or online adaptation. It further coordinates a system-aware SD toggle policy with acceptanceaware draft-length adaptation, enabling speculation only in beneficial regimes while matching the drafting budget to evolving drafter quality. EfficientRollout reduces rollout and end-to-end latency by up to 19.6% and 12.7%, respectively, over an accelerated AR rollout baseline, while preserving final model quality. 1 * Equal contribution. 1 Code is available at https://github.com/furiosa-ai/EfficientRollout.

For agents

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

get_harvested_code_for_paper("2606.18967")
get_code_for_paper("2606.18967")
have("2606.18967")

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

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

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

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

Connect an agent — have() is free.