Pith. sign in

REVIEW 5 cited by

KV Prediction for Improved Time to First Token

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2410.08391 v1 pith:IQXLJKCK submitted 2024-10-10 cs.CL cs.AI

KV Prediction for Improved Time to First Token

classification cs.CL cs.AI
keywords modeldemonstratefirstpromptttftcacheflopsmethod
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
Share X Bluesky LinkedIn Reddit HN
read the original abstract

Inference with transformer-based language models begins with a prompt processing step. In this step, the model generates the first output token and stores the KV cache needed for future generation steps. This prompt processing step can be computationally expensive, taking 10s of seconds or more for billion-parameter models on edge devices when prompt lengths or batch sizes rise. This degrades user experience by introducing significant latency into the model's outputs. To reduce the time spent producing the first output (known as the ``time to first token'', or TTFT) of a pretrained model, we introduce a novel method called KV Prediction. In our method, a small auxiliary model is used to process the prompt and produce an approximation of the KV cache used by a base model. This approximated KV cache is then used with the base model for autoregressive generation without the need to query the auxiliary model again. We demonstrate that our method produces a pareto-optimal efficiency-accuracy trade-off when compared to baselines. On TriviaQA, we demonstrate relative accuracy improvements in the range of $15\%-50\%$ across a range of TTFT FLOPs budgets. We also demonstrate accuracy improvements of up to $30\%$ on HumanEval python code completion at fixed TTFT FLOPs budgets. Additionally, we benchmark models on an Apple M2 Pro CPU and demonstrate that our improvement in FLOPs translates to a TTFT speedup on hardware. We release our code at https://github.com/apple/corenet/tree/main/projects/kv-prediction .

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 5 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Non-Monotonic Latency in Apple MPS Decoding: KV Cache Interactions and Execution Regimes

    cs.LG 2026-05 accept novelty 7.0

    Apple MPS decoding exhibits non-monotonic latency with spikes up to 21x due to KV cache interactions and execution regimes, unlike monotonic behavior on CPU and CUDA.

  2. Non-Monotonic Latency in Apple MPS Decoding: KV Cache Interactions and Execution Regimes

    cs.LG 2026-05 unverdicted novelty 7.0

    Apple MPS transformer decoding shows abrupt latency spikes up to 21x in narrow decoding-budget intervals due to KV cache and execution regime shifts, absent on CPU and CUDA.

  3. When to Think, When to Speak: Learning Disclosure Policies for LLM Reasoning

    cs.CL 2026-05 unverdicted novelty 7.0

    SxS Interleaved Reasoning learns when to disclose partial reasoning during generation and improves accuracy versus content-latency trade-offs on math and science benchmarks.

  4. Make a Video Call with LLM: A Measurement Campaign over Six Mainstream Apps

    cs.NI 2025-10 conditional novelty 7.0

    Commercial AI video chat apps differ by 4× in video bitrate, 10× in framerate, and from zero to 10+ minutes of visual memory, with none replying in under 1.5 seconds.

  5. When to Think, When to Speak: Learning Disclosure Policies for LLM Reasoning

    cs.CL 2026-05 unverdicted novelty 6.0

    SxS Interleaved Reasoning learns disclosure timing via entailment-aligned trajectories and SFT+RL training, improving accuracy-content-latency trade-offs on math and science benchmarks.