{
  "schema_version": "1.0.0",
  "record_id": "dn-next42-20261205-q16",
  "record_version": "1.0.0",
  "title": "When a draft model earns its place in the inference bill",
  "canonical_url": "https://decentralised.news/ai-speculative-decoding-accepted-token-cost-2027",
  "evidence_type": "documentary_analysis_with_synthetic_worked_example",
  "source_review_date": "2026-12-05",
  "last_verified_utc": null,
  "observation_window": null,
  "methodology_url": "https://decentralised.news/ai-speculative-decoding-accepted-token-cost-2027",
  "methodology_version": "1.0.0",
  "input_schema": {
    "columns": [
      "round",
      "draft_proposals",
      "retained_proposals",
      "additional_target_tokens",
      "emitted_tokens",
      "draft_cost_units",
      "verification_cost_units",
      "coordination_cost_units",
      "total_cost_units",
      "cost_per_emitted_token",
      "synthetic"
    ],
    "rows_file": "https://decentralised.news/data/dn-next42-20261205/v1/q16.csv"
  },
  "units": {
    "definition": "Units are named in the CSV columns, manuscript and calculation labels. Do not combine quantities without resolving their dimensions."
  },
  "sources": [
    {
      "id": 1,
      "title": "Leviathan et al.: Fast Inference from Transformers via Speculative Decoding",
      "url": "https://proceedings.mlr.press/v202/leviathan23a.html",
      "reviewDate": "2026-12-05",
      "supports": "A draft model proposes tokens that a target model verifies; the specified algorithm preserves the target distribution.",
      "evidenceType": "Research paper abstract"
    },
    {
      "id": 2,
      "title": "Chen et al.: Accelerating Large Language Model Decoding with Speculative Sampling",
      "url": "https://arxiv.org/abs/2302.01318",
      "reviewDate": "2026-12-05",
      "supports": "Speculative sampling combines draft generation, parallel target scoring and rejection correction under its algorithmic assumptions.",
      "evidenceType": "Research paper abstract"
    },
    {
      "id": 3,
      "title": "Hugging Face Transformers: Assisted decoding",
      "url": "https://huggingface.co/docs/transformers/en/assisted_decoding",
      "reviewDate": "2026-12-05",
      "supports": "The implementation distinguishes draft-token proposals and main-model verification; method choices affect compatibility and guarantees.",
      "evidenceType": "Official implementation documentation"
    }
  ],
  "calculations": [
    {
      "label": "Round cost units",
      "expression": "4*0.04+1.2+0.04",
      "expected": 1.4
    },
    {
      "label": "All-retained unit cost",
      "expression": "1.4/5",
      "expected": 0.28
    },
    {
      "label": "No-retained relative cost increase",
      "expression": "1.4/1-1",
      "expected": 0.4
    },
    {
      "label": "Pooled cost per emitted token",
      "expression": "(1.4*3)/(5+2+1)",
      "expected": 0.525
    },
    {
      "label": "Pooled saving fraction",
      "expression": "1-0.525/1",
      "expected": 0.475
    }
  ],
  "example": {
    "synthetic": true,
    "description": "Invented nonterminal speculative rounds with fixed draft, verification and coordination costs. One additional target token is an explicit toy-round assumption, not a universal implementation rule.",
    "rows": [
      [
        "all_retained",
        4,
        4,
        1,
        5,
        0.16,
        1.2,
        0.04,
        1.4,
        0.28,
        true
      ],
      [
        "one_retained",
        4,
        1,
        1,
        2,
        0.16,
        1.2,
        0.04,
        1.4,
        0.7,
        true
      ],
      [
        "none_retained",
        4,
        0,
        1,
        1,
        0.16,
        1.2,
        0.04,
        1.4,
        1.4,
        true
      ]
    ]
  },
  "limitations": [
    "Examples use declared invented inputs, not observed fills, customer outcomes, provider rankings or predictive backtests.",
    "Source-review date is not a measurement time, publication date of the source or assurance that terms will remain current.",
    "Documentation does not establish individual access, legal eligibility, service reliability or investment suitability."
  ],
  "falsification_or_recheck_triggers": [
    "Changed governing document or applicable software version.",
    "Evidence of different account, product, timing, unit or legal-entity scope.",
    "An arithmetic error or reproducible counterexample to the stated mechanism."
  ],
  "rights": {
    "original_DN_analysis": "Cite Decentralised News, the canonical URL and record version when reusing this worked example.",
    "third_party_sources": "Third-party material remains subject to its original terms. Linking does not grant redistribution rights."
  },
  "commercial_disclosure": "This article includes a link to DN’s own separately scoped research service. No provider purchase is required to use the example.",
  "corrections": []
}
