DotCache-Arena / README.md
Deano Calver
Rewire Space to benchmark-backed Qwen bundle
f640ab5
|
Raw
History Blame Contribute Delete
4.21 kB

A newer version of the Gradio SDK is available: 6.20.0

Upgrade
metadata
title: DotCache Paper Demo
sdk: gradio
python_version: 3.10.13
sdk_version: 6.11.0
app_file: space_app.py
colorFrom: blue
colorTo: green
thumbnail: >-
  https://huggingface.co/spaces/DeanoCalver/DotCache-Arena/resolve/main/banner.png
models:
  - Qwen/Qwen3.5-4B
  - Qwen/Qwen3.5-9B
  - Qwen/Qwen3.5-27B
startup_duration_timeout: 1h
preload_from_hub:
  - Qwen/Qwen3.5-4B

๐Ÿง  DotCache Paper Demo

Paper-backed Qwen 4B / 9B / 27B results from the current DotCache draft


๐Ÿš€ Try it

๐Ÿ‘‡ Launch the demo and inspect the paper-backed rows or try the live lane on supported Qwen models
๐Ÿ‘‰ Run the Playground


โšก TL;DR

  • The paper's headline result is a completed Qwen3.5 4B / 9B / 27B matrix
  • The promoted systems profile delivers roughly 2x to 4x decode speedups
  • Compact-task correctness stays unchanged across the reported Qwen rows
  • The learned execution path remains strongly M3-heavy
  • LongBench is presented as a sanity check, not a full quality frontier

๐Ÿงช What you can do here

This Space now centers the paper's main sections:

  • Compact-task matrix
  • Backend-truth decode rows
  • LongBench QA mini-pack sanity check

The preset mode uses benchmark-backed fixtures extracted from the bundled matrix. The live lane now replays the bundled Qwen benchmark rows directly where the required selector artifact is available.


๐Ÿง  What is DotCache?

DotCache explores a simple shift in how KV compression is used:

Instead of treating compressed KV as storage, treat it as an execution format

In most pipelines:

KV (compressed) โ†’ decompress โ†’ attention

In DotCache:

KV (compressed) โ†’ attention directly

This removes widening overhead and changes the runtime behavior of attention itself.


โš™๏ธ Key ideas

๐Ÿ“„ Page-based KV

  • KV is stored in small pages:
    • (layer, head, token range, K/V)
  • Enables selective access and execution

๐Ÿงฎ Compressed-domain attention

  • Decode is fused into:
    • score (QยทK)
    • mix (attention-weighted V)
  • Avoids reconstructing full tensors

๐ŸŽฏ Adaptive page selection

  • Not all pages are equal
  • A policy (or learned selector) decides:
    • which pages stay low-bit
    • which escape to high precision (M3)

๐Ÿ”€ Asymmetric K/V handling

  • Keys and values are treated differently
  • Because:
    • keys affect scoring
    • values affect mixing

๐Ÿ“Š What weโ€™re seeing so far

โœ… Qwen scaling is the headline

  • The draft reports consistent multi-x decode wins on Qwen 4B, 9B, and 27B
  • The systems profile preserves task success on the reported compact-task rows

โœ… The learned path is still mostly M3

  • The current result is about execution structure, not aggressive compression ratio
  • Selector overhead stays small while backend score and mix dominate the remaining cost

โœ… LongBench is intentionally framed narrowly

  • The mini-pack is a sanity check showing no regression on the reported rows
  • It is not yet presented as a full long-context reasoning frontier

โš ๏ธ Whatโ€™s still open

This is still active research:

  • โŒ LongBench coverage is still a mini-pack
  • โŒ The promoted Qwen lanes are strongly M3-heavy, so the draft is not yet a strong compression-ratio result
  • โŒ External matched-budget baselines remain future work

The paper's current claim is that execution structure already buys meaningful serving wins.


๐Ÿงญ Why this matters

If low-bit KV is already viable, the next question is:

What is the cheapest way to run attention on it?

DotCache suggests:

  • compression is not just about memory
  • itโ€™s about execution paths and decisions

๐Ÿงฉ Example insight

The paper's current learned Qwen lanes are not sparse low-bit winners. They are mostly high-fidelity M3 pages, yet they still run much faster. That points to the runtime execution path itself as the main optimization.


๐Ÿ”— Links

  • ๐Ÿ’ป Repo: (link)
  • ๐Ÿ“„ Technical write-up: (link)
  • ๐Ÿง  Paper draft (WIP): DotCacheArXiv.tex

๐Ÿง  One-line takeaway

DotCache turns page format into a serving-time execution policy.