首页 > AI前沿 > KVPath: Connecting Key-Value Representations Across Transformer Layers

KVPath: Connecting Key-Value Representations Across Transformer Layers

arXiv机器学习 2026-11-12 06:29 28 阅读 查看原文
用户要求将一段纯文本的新闻正文(实际为学术论文摘要)排版成语义化的HTML片段。 规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 2. 每个自然段落用`

`包裹,长文用`

`/`

`划分小节。 3. 列表内容用`
  • `,引用用`
    `,代码用`
    `,重要句子可用``。
    4. 保留原文所有信息,不得增删改内容。
    5. 不要输出``/``/``等文档级标签。
    
    分析正文内容:
    "Transformers typically cache an independent key-value (KV) representation for each token at every layer. Recent work reveals that a token's KV representations across neighboring layers are correlated and contain shared information. We hypothesize that this correlation implies incremental inter-layer changes, which can be effectively captured by low-dimensional deltas. Motivated by this, we propose KVPath, a new KV representation paradigm that connects KV representations across the network depth into a path. The path establishes a full-dimensional base KV at the first layer, while subsequent layers generate low-dimensional delta KVs to update the preceding KV, thereby constructing their own KV states. By caching the base KV once alongside these compact delta KVs, KVPath preserves distinct layer-specific representations without storing full KV states at every layer. We develop two variants of KVPath: KVPath-Residual, which updates vector values via residual addition, and KVPath-Rolling, which progressively updates feature dimensions in a rolling manner. Under matched parameter counts, KVPath reduces KV-cache storage by up to 68\% for Grouped-Query Attention (GQA) and 55\% for Multi-Head Latent Attention (MLA), while maintaining or even improving model performance."
    
    这段文字是一个单一的自然段落。没有明显的列表、引用或代码。
    可以将其分成几个小节,或者直接用一个`

    `包裹,加上一些``来强调重要句子。 因为只有一段,可以考虑加一个`

    `作为小节标题吗?规则说“长文用

    /

    划分小节”,这段不算特别长,但为了结构清晰,可以加个标题,或者不加标题直接用`

    `。 不过,如果直接输出`

    ...

    `也是符合“每个自然段落用

    包裹”的。 为了体现“重要句子可用”,我可以把核心贡献和结果加粗。 原文拆解: 句子1:Transformers typically cache an independent key-value (KV) representation for each token at every layer. 句子2:Recent work reveals that a token's KV representations across neighboring layers are correlated and contain shared information. 句子3:We hypothesize that this correlation implies incremental inter-layer changes, which can be effectively captured by low-dimensional deltas. 句子4:Motivated by this, we propose KVPath, a new KV representation paradigm that connects KV representations across the network depth into a path. 句子5:The path establishes a full-dimensional base KV at the first layer, while subsequent layers generate low-dimensional delta KVs to update the preceding KV, thereby constructing their own KV states. 句子6:By caching the base KV once alongside these compact delta KVs, KVPath preserves distinct layer-specific representations without storing full KV states at every layer. 句子7:We develop two variants of KVPath: KVPath-Residual, which updates vector values via residual addition, and KVPath-Rolling, which progressively updates feature dimensions in a rolling manner. 句子8:Under matched parameter counts, KVPath reduces KV-cache storage by up to 68\% for Grouped-Query Attention (GQA) and 55\% for Multi-Head Latent Attention (MLA), while maintaining or even improving model performance. 检查是否有需要转义的字符:`68\%` 中的 `\%` 在HTML中不需要转义,直接写 `68%` 即可,或者保留 `68\%`?原文是 `68\%`,可能是LaTeX格式,但在HTML中 `%` 不是特殊字符,直接写 `68%` 或者 `68\%` 都可以,为了严格“不得增删改内容”,保留 `68\%` 或者把 `\` 去掉?通常 `\%` 是Markdown/LaTeX转义,HTML中直接显示 `%`。不过严格保留的话,写 `68%` 更合理,或者 `68\%`。我还是用 `68%`,因为 `\` 在纯文本中可能是多余转义,但为了保险,保留原文的 `68\%` 或者 `68%`。其实HTML里 `\%` 会显示为 `\%`。我直接用 `68%` 吧,或者严格保留 `68\%`。题目说“保留原文所有信息,不得增删改内容”,那我就原样保留 `68\%`。 组合成HTML:

    Transformers typically cache an independent key-value (KV) representation for each token at every layer. Recent work reveals that a token's KV representations across neighboring layers are correlated and contain shared information. We hypothesize that this correlation implies incremental inter-layer changes, which can be effectively captured by low-dimensional deltas. Motivated by this, we propose KVPath, a new KV representation paradigm that connects KV representations across the network depth into a path. The path establishes a full-dimensional base KV at the first layer, while subsequent layers generate low-dimensional delta KVs to update the preceding KV, thereby constructing their own KV states. By caching the base KV once alongside these compact delta KVs, KVPath preserves distinct layer-specific representations without storing full KV states at every layer. We develop two variants of KVPath: KVPath-Residual, which updates vector values via residual addition, and KVPath-Rolling, which progressively updates feature dimensions in a rolling manner. Under matched parameter counts, KVPath reduces KV-cache storage by up to 68\% for Grouped-Query Attention (GQA) and 55\% for Multi-Head Latent Attention (MLA), while maintaining or even improving model performance.

    检查规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 -> 满足 2. 每个自然段落用

    包裹,长文用

    /

    划分小节。 -> 只有一个自然段,用

    包裹。 3. 列表、引用、代码、重要句子。 -> 重要句子用了。 4. 保留原文所有信息,不得增删改内容。 -> 满足。 5. 不要输出文档级标签。 -> 满足。 不需要加h2,因为只有一段,加了反而算“增删改”(添加了原文没有的标题)。所以只用

    。 确认没有遗漏任何字符。 原文: Transformers typically cache an independent key-value (KV) representation for each token at every layer. Recent work reveals that a token's KV representations across neighboring layers are correlated and contain shared information. We hypothesize that this correlation implies incremental inter-layer changes, which can be effectively captured by low-dimensional deltas. Motivated by this, we propose KVPath, a new KV representation paradigm that connects KV representations across the network depth into a path. The path establishes a full-dimensional base KV at the first layer, while subsequent layers generate low-dimensional delta KVs to update the preceding KV, thereby constructing their own KV states. By caching the base KV once alongside these compact delta KVs, KVPath preserves distinct layer-specific representations without storing full KV states at every layer. We develop two variants of KVPath: KVPath-Residual, which updates vector values via residual addition, and KVPath-Rolling, which progressively updates feature dimensions in a rolling manner. Under matched parameter counts, KVPath reduces KV-cache storage by up to 68\% for Grouped-Query Attention (GQA) and 55\% for Multi-Head Latent Attention (MLA), while maintaining or even improving model performance. HTML:

    Transformers typically cache an independent key-value (KV