<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prefix Caching on Nalar</title>
    <link>https://nalar.dev/tags/prefix-caching/</link>
    <description>Recent content in Prefix Caching on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 24 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/prefix-caching/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Prefix Caching Reuses KV State for Identical Token Prefixes</title>
      <link>https://nalar.dev/prefix-caching-reuses-kv-state-for-identical-token-prefixes/</link>
      <pubDate>Thu, 24 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/prefix-caching-reuses-kv-state-for-identical-token-prefixes/</guid>
      <description>&lt;p&gt;Autoregressive serving often receives requests that start with the same long token sequence. A system prompt, tool schema, fixed document header, or other repeated context can cause the model to compute the same prefix attention state again for each request. Prefix caching targets that repeated prefill work by retaining compatible key-value state and attaching later requests to it.&lt;/p&gt;&#xA;&lt;p&gt;The reuse boundary is exact tokenized state, not semantic similarity. Two prompts that express the same idea but tokenize differently do not produce an interchangeable prefix cache entry.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Prefix KV Caching Reuses Only the Shared Token Prefix</title>
      <link>https://nalar.dev/prefix-kv-caching-reuses-only-the-shared-token-prefix/</link>
      <pubDate>Thu, 24 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/prefix-kv-caching-reuses-only-the-shared-token-prefix/</guid>
      <description>&lt;p&gt;A prefix cache hit ends at the first point where a new request can no longer reuse previously computed state. The reusable object is not a piece of source text in isolation. It is model state produced for an ordered token prefix under execution conditions that make that state compatible with the new request.&lt;/p&gt;&#xA;&lt;p&gt;For transformer inference, that state is commonly the key-value cache created during prefill. Reusing it can remove repeated computation for the shared prefix while leaving the divergent suffix to be processed normally.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
