Skip to content

score: knowledge-pack scores drift from plain scores (max |dp| 0.11 at 12K) on main #435

Backlog

Description

@AzeezIsh

On main (cb4dcf9a7), /v1/score with a knowledge pack is up to 0.11 away in probability from the same request scored with the same text in the prefix (no pack). Qwen3.8-27B QAD exact profile, --score-packs 4, sparky job 215:

score_probe (synthetic handbook, 6 single-token colour options) max|dp| pack vs plain
~1.25K-token pack 0.00591
~15K-token pack 0.110

On #332's pre-merge test merge (job 109, 11-10) these were 0.00026 / 0.0050. Per data-angel on #397, 4a40e3d3b ("score: split GQA tiles only for streams that read a knowledge pack") makes packed streams use _gqa_split2 while plain streams keep unsplit _gqa above 4,096 keys, so the two reduce in different orders. That explains part of the 12K gap. The 1K gap (below the split threshold) also grew 20×, so something else moved too.

held == pack and merged ×8 == held are still exact, so a pack is self-consistent. It just isn't equivalent to sending its text inline. Open questions:

  • Is a 0.11 shift acceptable for a scoring API, or should pack and plain share a reduction order (split both, or split neither)?
  • What moved the 1K number between 11-10 and 11-25?

Receipts: sparky ~/code/perf/nq-215-pr397/score-{SM,SP}-packs.json (main / #397, identical) and nq-109-* (11-10).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions