Skip to content

Benchmark bounded instruction prefix retention for GPT-OSS KV - #1417

Draft
Gajesh2007 wants to merge 2 commits into
codex/selective-kv-retentionfrom
codex/kv-instruction-retention
Draft

Gajesh2007 wants to merge 2 commits into
codex/selective-kv-retentionfrom
codex/kv-instruction-retention

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

This adds one fixed, GPT-OSS-only instruction-half candidate to the existing selective KV benchmark. It protects the first 128 tokens, including the original four anchors, and retains the current recent512 / half-older-chunk policy. The original native and half controls remain unchanged. This is a stacked draft on #1412; it does not enable serving.

The production normalizer and native tokenizer now expose a verified boundary through the first user header. A CPU-only audit preserves the actual prompt IDs and refuses unverified or over-budget headers in the candidate generation harness. The twelve new cases have headers of 64 or 118–124 tokens; the original recovery request is exactly the same 4602 tokens. The immutable preregistration fixes 128, all inputs/oracles, six recovery observations per arm, twelve new arithmetic/code/tool cases and 256-token output caps before candidate model inference. The fixed campaign is complete; no policy or case was retuned.

Fixed experiment result

Native and candidate both pass 10/12 new cases, with the same two arithmetic cap failures. Only 4/12 full generated arrays match. The original regression is not fixed: native answers correctly in 6/6 recovery observations; the protected-prefix candidate reaches the 256-token cap in 6/6. The index-47 logit margin for seems minus likely changes from +0.06152 to -0.01633 with otherwise matched capture controls. Protecting the complete audited header is therefore insufficient for this case.

The candidate retains 56.45–59.28% of last-prune native KV backing. Output-8 active allocator samples are about 93 MiB lower at 4.6K and 189 MiB lower at 8.7K, while new-cohort whole-run peaks remain about 13.750 GiB. These observations are not admission credits or a speedup claim. All four cells complete strict cancellation/recovery and shutdown checks. Full raw reports, exact commands, source/binary/model hashes, preregistration and comparisons are committed in the dated report.

Before

flowchart LR
  A["Normalized request and native tokens"] --> B["Half-retention benchmark"]
  B --> C["Four anchors; rank older chunks"]
  C --> D["Instruction header may be pruned"]
  D --> E["Original frozen campaign"]
  classDef input fill:#dbeafe,stroke:#2563eb,color:#172554
  classDef policy fill:#fef3c7,stroke:#d97706,color:#451a03
  classDef evidence fill:#dcfce7,stroke:#16a34a,color:#14532d
  class A input
  class B,C,D policy
  class E evidence
Loading

After

flowchart LR
  A["Same normalizer and tokenizer"] --> B["Verify complete header within 128"]
  B --> C["Protect 128; same older-chunk scorer"]
  C --> D["Frozen native and candidate binary"]
  D --> E["Recovery pair plus 12 new cases"]
  B --> F["Refuse missing or oversized header"]
  classDef input fill:#dbeafe,stroke:#2563eb,color:#172554
  classDef policy fill:#fef3c7,stroke:#d97706,color:#451a03
  classDef evidence fill:#dcfce7,stroke:#16a34a,color:#14532d
  classDef refusal fill:#fee2e2,stroke:#dc2626,color:#450a0a
  class A input
  class B,C policy
  class D,E evidence
  class F refusal
Loading

Validation: rebuilt native provider 13 tests and nested SDK 2 tests pass; final CPU-only radix 33 tests pass. Rebuilt native audits preserve all 13 preregistered prompt arrays and boundaries. The mandatory dedicated refactor fixed use of the process environment during injected-session coverage validation and added fail-closed regression coverage. Strict SDK formatting, diff checks and canonical docs-impact checks pass. Both published Mermaid figures were visually verified on GitHub. Hosted provider unit, SDK and prompt-parity checks pass on both the frozen source and final evidence head. Standalone SDK checks are tracked separately. The quality oracles use native engine output; HTTP tool enforcement and response shaping are outside this cohort.

Known limitation: full docs lint has the existing frozen-report link failure in docs/reports/2026-10-03-all-model-prefix-qualification.md referencing absent coordinator/registry/cache_match_groups.go; the frozen record is unchanged. Full FP32 K-history casts and source/destination overlap remain unqualified for serving. Prefix protection also changes older chunk partitioning, so recovery would not isolate instruction loss as the unique cause. No generic quality, speedup, context-capacity or production-admission claim is made.

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 9, 2026 12:35pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 9, 2026 12:35pm UTC
d-inference-landing Ready Ready Preview Oct 9, 2026 12:35pm UTC
darkbloom-status Ready Ready Preview Oct 9, 2026 12:35pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 9, 2026 12:35pm UTC

Request Review

This branch was successfully deployed

5 active deployments
Preview – d-inference-console-ui-dev — fae766a8 Deployed Oct 9, 2026 by vercel[bot]
Preview – d-inference — fae766a8 Deployed Oct 9, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — fae766a8 Deployed Oct 9, 2026 by vercel[bot]
Preview – d-inference-landing — fae766a8 Deployed Oct 9, 2026 by vercel[bot]
benchmarks — fae766a8 Deployed Oct 9, 2026 by Gajesh2007 via E2E Benchmarks #2515
Preview – darkbloom-status — fae766a8 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant