Reproduce “Cassandra: Enabling Reasoning LLMs at Edge via Self-Speculative Decoding” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Soongyu Choi, Yuntae Kim, Muyoung Son, Joo-Young Kim

Cassandra introduces an algorithm-hardware co-designed self-speculative decoding framework, enabling 1.78x to 2.41x faster inference for reasoning Large Language Models on edge devices. This framework achieves lossless acceleration and reduced memory footprint by creating a training-free draft model through fine-grained data selection and specialized hardware, maintaining original LLM output quality.

Key insights

  • Fine-grained data selection (activation-aware weight pruning, magnitude-based KV cache pruning, mantissa truncation) effectively creates a high-quality, memory-efficient draft model without additional training or memory capacity overhead.
  • Exponent compression (especially lossless unary coding) significantly reduces floating-point representation size, leveraging observed low Shannon entropy of exponent values in both weights and KV cache for greater overall compression.
  • Algorithm-hardware co-design with dedicated encoder-decoder modules and superblock-based memory management is crucial for translating algorithmic compression benefits into tangible performance gains and mitigating overheads in real-world edge deployments.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.