Skip to content

feat(patterns) author the Speculative Sampling entry in family 17-ai-agentic - #441

Merged
mjmirza merged 2 commits into
mainfrom
feat/speculative-decoding-rebase
Aug 24, 2026
Merged

feat(patterns) author the Speculative Sampling entry in family 17-ai-agentic#441
mjmirza merged 2 commits into
mainfrom
feat/speculative-decoding-rebase

Conversation

@mjmirza

@mjmirza mjmirza commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

Rebases #403's entry onto current main. That branch predated a large
share of the family 17 work that has since landed, so its own copies
of the generated dashboards, indexes, and family README conflicted
against everything except the entry itself. Pulled the content file
forward unchanged and regenerated every dependent file fresh against
the current repository state.

Adds Speculative Sampling (also known as Assisted Generation or
Draft-Target sequential-token sampling) to family 17-ai-agentic.
Leviathan, Kalman, and Matias 2023 (Google Research) and Chen and
colleagues 2023 (DeepMind) introduced the pattern independently, both
around exploiting spare GPU compute during the memory-bandwidth-bound
autoregressive generation phase. a small draft model proposes a run
of tokens, the target model verifies the whole run in a single
forward pass, and a modified rejection sampling scheme guarantees the
accepted output distribution is mathematically identical to sampling
from the target model alone.

Verification

  • check-structure.py. 890/890 entries pass
  • check-prose.py. 931/931 files pass
  • markdownlint-cli2. 0 issues
  • check-code.py --strict. 2846 compiled, 0 failed (Python,
    TypeScript, Go code samples)
  • check-duplicates.py --check. no new collision, including against
    the historical-proposal pass that landed in feat(tools) activate Pass 5 historical proposal collision detection #440
  • validate-refs.py --strict. all 4995 citations resolve, including
    the entry's own new arXiv (2211.17192, 2302.01318), vLLM, and
    TensorRT-LLM sources

Test plan

  • All 6 mandatory gates pass on the full repository
  • Code samples compile in all 3 languages the entry ships
  • Family 17 index and README regenerated and confirmed to include
    the new entry
  • Reviewed the full 18-dimension entry against its cited primary
    sources before rebasing it forward

…agentic

Rebases PR #403's entry onto current main. the branch predated a large
share of the family 17 work that has since landed, so its own copies
of the generated dashboards, indexes, and family README conflicted on
every file except the entry itself. Pulled the content file forward
unchanged and regenerated every dependent file fresh.

Speculative Sampling, also known as Assisted Generation. Leviathan,
Kalman, and Matias 2023 (Google Research) and Chen and colleagues 2023
(DeepMind) introduced the pattern independently. a small draft model
proposes a run of tokens, the target model verifies the whole run in
one forward pass, and a modified rejection sampling scheme guarantees
the accepted output distribution is mathematically identical to
sampling from the target model alone.

Regenerates the family 17 index, BY-PROBLEM and BY-LANGUAGE, the root
README and catalogue-status dashboards.

Verified. check-structure.py 890/890, check-prose.py 931/931,
markdownlint-cli2 0 issues, check-code.py --strict 2846 compiled with
0 failed, check-duplicates.py finds no new collision, validate-refs.py
--strict resolves all 4995 citations including the entry's own arXiv,
vLLM, and TensorRT-LLM sources.
The prior commit ran gen-catalogue-status.py before validate-refs.py
--strict had finished its probe pass, so references_checked locked in
5063 instead of the 5067 the cache actually held once probing
completed. CI's own fresh run of the generator caught the mismatch.
Re-running validate-refs.py first, then the generator last, brings
README, dist/catalogue-status.json, and docs/PROGRESS.md back in sync
with the real cache state.
@mjmirza

mjmirza commented Aug 24, 2026

Copy link
Copy Markdown
Owner Author

REVIEWED. Reviewed the Speculative Sampling entry against its cited primary sources (Leviathan/Kalman/Matias 2023, Chen et al. 2023) before rebasing it forward from #403. All 6 gates plus check-duplicates pass on the full repository; the catalogue-status staleness from the first push (references_checked 5063 vs 5067, caused by running the generator before validate-refs.py --strict finished settling .ref-cache.json) was root-caused and fixed in a follow-up commit, now matching CI's independently computed value exactly. Squash-merging.

@mjmirza
mjmirza merged commit 46f9350 into main Aug 24, 2026
12 checks passed
@mjmirza
mjmirza deleted the feat/speculative-decoding-rebase branch August 24, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant