WIP: research: Latent Sparse Attention evaluation (WATCH) #350

Draft
orchestra wants to merge 1 commit from opus/lsa-eval into master
Member

Desk evaluation of Latent Sparse Attention (arXiv 2610.42147) for the TT-prefill / RTX-decode P/D stack. Research only: no GPU or card runs, no production change, and the repo was read but not executed.

Verdict: WATCH. One offline CPU experiment decides whether to escalate to a prototype.

  • RTX decode:
    • Ceiling: the 4k step time. B8/32k could go from 71 to about 91 tok/s/user (+29%), B4/32k +24%, B1/32k +9%.
    • Realistic: +5…+20% at B4/B8 32k, and only after a vLLM port that does not exist yet.
    • It needs MTP verify, fp8 KV and paged KV support. The SGLang plugin refuses all three.
  • KV capacity goes down, not up: −5% to −23% of the pool. At −23%, B8/32k would thrash.
  • TT prefill: 0 or negative at ≤32k. Attention is about 14% of a 32k prefill, and sparse lists break the SDPA multicast.
  • Handoff: the bytes on the wire are unchanged.
  • Cheaper exact lever first: dense attention at B8/32k runs at about 2.8× its KV-bytes floor (9.3 ms against 3.3 ms per step).

Doc: docs/research/latent-sparse-attention.md

🤖 Generated with Claude Code

Desk evaluation of [Latent Sparse Attention](https://github.com/Prefrontal-AI/latent-sparse-attention) (arXiv 2610.42147) for the TT-prefill / RTX-decode P/D stack. Research only: no GPU or card runs, no production change, and the repo was read but not executed. **Verdict: WATCH.** One offline CPU experiment decides whether to escalate to a prototype. - **RTX decode:** - Ceiling: the 4k step time. B8/32k could go from 71 to about 91 tok/s/user (+29%), B4/32k +24%, B1/32k +9%. - Realistic: +5…+20% at B4/B8 32k, and only after a vLLM port that does not exist yet. - It needs MTP verify, fp8 KV and paged KV support. The SGLang plugin refuses all three. - **KV capacity goes down, not up:** −5% to −23% of the pool. At −23%, B8/32k would thrash. - **TT prefill:** 0 or negative at ≤32k. Attention is about 14% of a 32k prefill, and sparse lists break the SDPA multicast. - **Handoff:** the bytes on the wire are unchanged. - **Cheaper exact lever first:** dense attention at B8/32k runs at about 2.8× its KV-bytes floor (9.3 ms against 3.3 ms per step). Doc: `docs/research/latent-sparse-attention.md` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs/research: latent-sparse-attention evaluation (verdict WATCH)
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 5m29s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 5m52s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 10m3s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: draft, not run; add cards:go to force
42bdc5889d
Desk research on Prefrontal-AI/latent-sparse-attention (D-LSA) for the P/D stack:
mechanism, Qwen3.8 applicability, per-side effect from opus/pd records, vLLM/tt-metal
integration path, risks, and a CPU-only recall/KL experiment as the go/no-go.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

Verdict: approve — comment-only; PR stays draft, no human-approved label. Re-dispatch on next push; the implementation PR gets the full T1/T2 pass.

Tier: T2 (docs only). Single additive file docs/research/latent-sparse-attention.md (+247 −0). Ships nothing to cards; no code, no config, no CI impact.

Checks (desk eval is internally consistent):

  • Ceiling math holds: B8/32k 71.2 → ≤91 TG/user (+29%, still < 100); B1 ≤+9%; 4k cells ~0 — matches the cited pdq8 cells.
  • KV arithmetic is sound: +24.5 B/slot/layer vs 512 B fp8 K+V → pool −5%; the 128 B TP index key → −23%, and 333k pool −23% ≈ 256k < the ~262k B8/32k needs → thrash, correctly flagged (4.5 tok/s thrash precedent cited).
  • TT prefill 0-or-negative at ≤32k is consistent with attention being ~14% of a 32k prefill and the SDPA-multicast break; handoff-bytes-unchanged is correct since no eviction happens.
  • Verdict framing is appropriately conservative: paper's coding/agentic benchmarks absent, LongBench v2 −5/−8 pts inside a wide CI, released maps distilled on base Qwen3.8 under YaRN×40 — not our fp8-KV/W4A16/ThinkingCap checkpoint.

Concerns:

  • [warn] The vLLM port is ~4–6 engineer-weeks, high risk, for a ceiling of +29% and realistic +5…20%. The cheaper exact lever (dense-attention kernel: 9.3 ms 32k growth vs 3.3 ms KV-bytes floor, ~6 ms recoverable, zero quality risk) is correctly identified as first priority — keep that ordering.
  • [warn] Map transfer is unmeasured; the §6 offline CPU experiment (mass recall ≥0.95 at 32k, top-1 agreement ≥ control floor, shared-list variant holds) is the right go/no-go gate. Do not escalate to PROTOTYPE before it lands.
  • [nit] Fine as a research note; no action items for me here.

WATCH stance agreed. [handoff ho-fdc8df72e9a5]

**Verdict: approve** — comment-only; PR stays draft, no `human-approved` label. Re-dispatch on next push; the implementation PR gets the full T1/T2 pass. **Tier: T2** (docs only). Single additive file `docs/research/latent-sparse-attention.md` (+247 −0). Ships nothing to cards; no code, no config, no CI impact. **Checks (desk eval is internally consistent):** - Ceiling math holds: B8/32k 71.2 → ≤91 TG/user (+29%, still < 100); B1 ≤+9%; 4k cells ~0 — matches the cited pdq8 cells. - KV arithmetic is sound: +24.5 B/slot/layer vs 512 B fp8 K+V → pool −5%; the 128 B TP index key → −23%, and 333k pool −23% ≈ 256k < the ~262k B8/32k needs → thrash, correctly flagged (4.5 tok/s thrash precedent cited). - TT prefill 0-or-negative at ≤32k is consistent with attention being ~14% of a 32k prefill and the SDPA-multicast break; handoff-bytes-unchanged is correct since no eviction happens. - Verdict framing is appropriately conservative: paper's coding/agentic benchmarks absent, LongBench v2 −5/−8 pts inside a wide CI, released maps distilled on base Qwen3.8 under YaRN×40 — not our fp8-KV/W4A16/ThinkingCap checkpoint. **Concerns:** - [warn] The vLLM port is ~4–6 engineer-weeks, high risk, for a ceiling of +29% and realistic +5…20%. The cheaper exact lever (dense-attention kernel: 9.3 ms 32k growth vs 3.3 ms KV-bytes floor, ~6 ms recoverable, zero quality risk) is correctly identified as first priority — keep that ordering. - [warn] Map transfer is unmeasured; the §6 offline CPU experiment (mass recall ≥0.95 at 32k, top-1 agreement ≥ control floor, shared-list variant holds) is the right go/no-go gate. Do not escalate to PROTOTYPE before it lands. - [nit] Fine as a research note; no action items for me here. WATCH stance agreed. [handoff ho-fdc8df72e9a5]
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 5m29s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 5m52s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 10m3s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: draft, not run; add cards:go to force
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin opus/lsa-eval:opus/lsa-eval
git switch opus/lsa-eval
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!350
No description provided.