プロフィール

設定

読み込み中…

← ホーム

ヘルプ・お問い合わせ

よくある質問

ログインが必要な機能はどれですか?

公開されている論文の解説・論文情報・モデル構造・関連論文・用語は、ログインしなくても読めます。論文のアップロード、マイライブラリ、閲覧履歴、論文の評価、興味のある分野のおすすめ、メールと通知は、ログインすると使えます。

PDFファイルでもアップロードできますか?

論文はarXivまたはDOIのリンクでアップロードし、解説はすべての人に公開されます。出典と利用条件を確認できず解説を公開できない論文は、アップロードできません。PDFファイルのアップロードと非公開は購読会員だけが使え、ファイルでアップロードした論文は非公開でのみ保存します。タイトルで公式情報を探す検索は、ボタンを押したときにだけ行います。

図とAI解説は正確ですか?

図は論文に掲載されているものだけを使い、利用許諾を確認できたものだけを表示しています。解説はAIが書いた文章のため、誤りが含まれることがあります。重要な主張や数値、図の文脈は、元論文の根拠で確認してください。

著作権の問題を報告したい

ライセンスと元論文の出典は「論文情報」タブに記載しています。問題がある場合は、「お問い合わせ」で「論文の内容・図・著作権」を選び、論文のリンク、問題のある箇所、権利を確認できる根拠を送ってください。受け付けただけで権利が確定したり、すぐに削除されたりすることはありません。確認の結果は「お問い合わせ履歴」で見られます。

パスワードを忘れました

メールアドレスで登録した場合は、ログイン画面のパスワード再設定から、確認済みのメールアドレスで設定し直せます。Google・NAVER・カカオで登録した場合は、それぞれのサービスでパスワードを変更してください。

お問い合わせには何を書けばいいですか?

どの画面で何をしたときに起きた問題かを、論文のリンクと一緒に書いてください。パスワード・APIキー・認証コード・電話番号などの個人情報は書かないでください。お問い合わせと回答はRefivuに保存され、「お問い合わせ履歴」で見られます。

退会するにはどうすればいいですか?

設定の「アカウント」で「退会」を押してください。削除される内容を確認し、本人確認を済ませると退会できます。そのほかの依頼は、「お問い合わせ」で「アカウント」を選んで送ってください。

論文解説

Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study

モデル更新をまたいでKVキャッシュを再利用できるか:DeepSeek-V4-Flashの事例研究

  • 課題 モデル更新後も以前のバージョンのKVキャッシュを再利用すると、検索精度、回答品質、遅延、予測の振る舞いがどの程度保たれるかを確認します。
  • 手法 ソースモデルが作ったプレフィックスのKVキャッシュをターゲットモデルが引き継ぐKV再利用を、自前の推論と比べます。予測分布の差はFCDで測定します。
  • 結果 再利用の結果は、モデルの組み合わせとプレフィックスの長さによって大きく変わります。一部の検索の組み合わせではターゲットに近い精度を示しましたが、別の組み合わせでは長い文脈で大きな損失が出ました。自然言語QAでは最初のトークンまでの遅延は減りましたが、品質の変化はタスクによって異なりました。

キャッシュ再利用はモデル更新後も有効か

共有された長い文脈を毎回計算し直さないためには、KVキャッシュを再利用するのが効果的です。ただし、モデルの重みが更新されると、以前のバージョンが作ったキャッシュが新しいモデルに何を保持するのかは明らかではありません。この論文はDeepSeek-V4-FlashからDeepSeek-V4-Flash-0731への更新を中心に、旧バージョンのキャッシュを新バージョンがそのまま引き継いだとき、検索精度、回答品質、最初のトークンまでの遅延、生成の振る舞いがどう変わるかを確認します。

中心となる問いは2つに分かれます。1つ目は、再利用されたキャッシュがタスクに役立つ情報を含んでいるかどうかです。2つ目は、再利用の結果が自前のキャッシュで得た推論とどの程度忠実に一致するかどうかです。著者らはこの2つの基準を別のものとして扱い、精度が保たれていても次のトークンの分布は変わりうることを後半で分析しています。

3つの推論構成と予測分布の定義

論文はソースモデルSとターゲットモデルTを比較します。入力は共有プレフィックスPと質問の接尾辞Qに分かれ、各モデルは同じプレフィックスをprefillして\(C_S\)と\(C_T\)を作ります。ここでCは、連続生成に必要なアテンションの状態と、DeepSeek-V4の圧縮状態を含む、プレフィックスの完全な状態です。

3つの構成は、誰がprefillを行い、誰が続けて生成するかで区別されます。Targetは、Tが両方の段階を行います。Sourceは、Sが両方の段階を行います。KV Reuseは、Sが作った\(C_S\)をTに渡し、TがQを処理して応答を生成します。同じ位置jで3つの構成の予測分布は、\(p^{Target}_j=p_T(\cdot|C_T,Q,y_{<j})\)、\(p^{Source}_j=p_S(\cdot|C_S,Q,y_{<j})\)、\(p^{Reuse}_j=p_T(\cdot|C_S,Q,y_{<j})\)と定義されます。この定義では、KV ReuseとTargetの違いはキャッシュの出どころだけです。

Functional Cache Divergence(FCD)は、同じターゲットモデル、同じ後続入力、同じ予測位置で、自前のキャッシュによる分布とソースのキャッシュによる分布を比べます。定義は\[\mathrm{FCD}_j=\frac{100}{\ln 2}\,\mathrm{JS}(p_j,q_j)=\frac{50}{\ln 2}\left[\mathrm{KL}(p_j\|m_j)+\mathrm{KL}(q_j\|m_j)\right]\]で、\(m_j=(p_j+q_j)/2\)です。自然対数を使うため、値の範囲は0から100までです。この指標は、トークンの選択が同じでも候補トークンの確率の変化が見えるように設計されています。

NIAH検索で見えたモデルごとの違い

Needle-in-a-Haystack(NIAH)タスクは、長いプレフィックスの中からキーに対応する値を探させます。この実験では、応答から空白を除いたテキストが要求された値で始まるかどうかで正確さを計算します。DeepSeek-V4-FlashからFlash-0731へのKV再利用は、512トークンから32Kトークンまで、多くの場合、自前のターゲットの結果より低くはなりませんでした。ただし、Sourceは55.73%で、依然として高い数値です。

Figure 5: | FlashKVreuseinBaseandFlash-0731. (a)Modeldevelopmentandcache-transferdirections.
(b) NIAH accuracy across 512–32K prefixes. Solid and dashed curves…

Figure5 | FlashKVreuseinBaseandFlash-0731. (a)Modeldevelopmentandcache-transferdirections. (b) NIAH accuracy across 512–32K prefixes. Solid and dashed curves denote KV Reuse and Target. Shading marks their accuracy difference. The green curve shows Flash’s source accuracy.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

モデル更新の組み合わせごとに結果は大きく異なります。GLM-5.2からGLM-5.3への再利用は、16Kまではターゲットに近く、32Kでは86.46%から90.62%に上がります。DeepSeek-V4.1-FlashからFlash-1017への再利用は、32Kでターゲットと同じ97.92%でした。一方、Qwen3-30B-A3BからInstruct-2507への再利用は、すべての長さで精度を下げ、32Kでは55.21%から13.02%に落ちます。Qwenのソースのスコアが0なのは、8トークンの予算の中で思考型の出力が答えを埋めてしまうためだと報告されており、これはこの設定で測定した応答プロトコルの結果です。

Table 1: | NIAH answer-prefix accuracy (%; higher is better) across model updates. Each prefix length
contains 192 queries from eight histories. Sizes in paren…

Table 1 | NIAH answer-prefix accuracy (%; higher is better) across model updates. Each prefix length contains 192 queries from eight histories. Sizes in parentheses denote nominal backbone parameters. Target and Source use their own caches; KV Reuse uses the target model with the source cache; Ridge Mapper maps that cache before target-model continuation.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

有害反転率(harmful flip rate)は、ターゲットが正解したクエリのうち、再利用では誤答になる割合です。32Kでは、GLMが4.22%、V4.1-Flashが0.53%、V4-Flashが26.53%、Qwenが78.30%です。V4-Flashは、全体の精度が上がるとしても、ターゲットが正解した49件のうち13件を失い、24件の誤答を直すと報告されています。したがって、平均精度だけでは損失と改善を同時に把握しにくいです。

Figure 3: | NIAH retrieval under KV reuse. (a) Harmful flip rate in the original sweep across four
model updates over 512–32K prefixes, conditional on Target a…

Figure 3 | NIAH retrieval under KV reuse. (a) Harmful flip rate in the original sweep across four model updates over 512–32K prefixes, conditional on Target answering correctly. (b) Matched Target, Source, KV Reuse, and Ridge Mapper answer-prefix accuracy for V4.1-Flash→ Flash-1017 over 512–512K prefixes. Each length has 192 queries from eight histories; error bars in (b) show 95% history-cluster bootstrap intervals. Data construction and runtime details are given in Appendices A.1 and B.2.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

Ridge Mapperは、Heo et al.の閉形式写像をDeepSeekの複合キャッシュに合わせて調整した別の構成です。32Kでは、Ridge Mapperは40.10%で、KV再利用の31.25%より高いですが、2Kと16Kでは低くなります。したがって、この写像は一貫した優位性ではなく、長いプレフィックスでの比較基準として読むべきです。

自然言語QAの品質と最初のトークンまでの遅延

DeepSeek-V4-FlashからFlash-0731への再利用は、585件の例を使い、4つの長文QAデータセットで評価されました。データセットはBABILong、HotpotQA、2WikiMQA、MultiFieldQA-enです。ターゲットと再利用のスコアは、BABILongでは59.0と58.7、MultiFieldQA-enでは45.9と46.2と近い値でした。しかし、HotpotQAはF1が69.3から66.3に下がり、2WikiMQAは61.7から54.7に下がります。対応する差は、それぞれ−3.0ポイントと−7.0ポイントです。

Table 4: | Dataset provenance and main-study selection. “Eligible” counts rows surviving input and
tokenizer checks; “independent” counts distinct stories or s…

Table 4 | Dataset provenance and main-study selection. “Eligible” counts rows surviving input and tokenizer checks; “independent” counts distinct stories or source documents. BABILong contains 20 examples for every QA-type and length pair.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの22ページ目から図の部分を抽出しています。
Table 8: | Task quality on the 585-sample benchmark study. Scores are percentages.Δ is direct minus
target-native, in percentage points; intervals use 2,000 do…

Table 8 | Task quality on the 585-sample benchmark study. Scores are percentages.Δ is direct minus target-native, in percentage points; intervals use 2,000 document/story-cluster bootstrap resamples. Score↓/↑ counts paired score decreases and increases. Flips report native-success→direct-failure and native-failure→direct-success. Failures are native/direct and score zero.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの25ページ目から図の部分を抽出しています。

遅延は、ソースのキャッシュをあらかじめ用意した状態で測定したTTFTです。TTFTにはキャッシュの読み込みと復元が含まれ、ソースのprefillとモデル起動のコストは除外されます。対になったターゲットに対する再利用のTTFTの中央値の比は、HotpotQAで5.08倍、2WikiMQAで2.10倍、MultiFieldQA-enで2.51倍です。BABILongでは0.86倍で、キャッシュへのアクセス費用が節約される計算量を上回ります。中央値のプレフィックス長は、HotpotQAが14.3K、2WikiMQAが6.4K、MultiFieldQA-enが7.7Kトークン、BABILongは1.7Kトークンです。

したがって、この高速化は長い入力を前提にした結果です。

Figure 4: | Task quality (0–100) and prepared-cache TTFT for Flash→ Flash-0731. Failed requests
score zero. Speedups are median paired Target/Reuse TTFT ratios…

Figure 4 | Task quality (0–100) and prepared-cache TTFT for Flash→ Flash-0731. Failed requests score zero. Speedups are median paired Target/Reuse TTFT ratios. TTFT includes cache loading and restoration; source prefill and model startup are excluded.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。
Table 5: | Tokenized prefix lengths in the 585-sample main study. Q1 and Q3 are the first and third
quartiles. Question suffixes are excluded

Table 5 | Tokenized prefix lengths in the 585-sample main study. Q1 and Q3 are the first and third quartiles. Question suffixes are excluded.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの22ページ目から図の部分を抽出しています。
Table 9: | Prepared-cache TTFT. Only valid target/direct pairs enter the sample count and percentiles.
The speedup is computed per sample as target-native/dire…

Table 9 | Prepared-cache TTFT. Only valid target/direct pairs enter the sample count and percentiles. The speedup is computed per sample as target-native/direct TTFT and summarized by its median; it is not the ratio of the two marginal medians.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの25ページ目から図の部分を抽出しています。
Table 10: | Quality and prepared-cache TTFT by actual input-length group. Scores and confidence
intervals are percentages. BABILong groups are source-defined l…

Table 10 | Quality and prepared-cache TTFT by actual input-length group. Scores and confidence intervals are percentages. BABILong groups are source-defined lengths; other groups are quartiles of tokenized prefixes.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの26ページ目から図の部分を抽出しています。

検索と自然言語の続きでの予測分布の変化

FCDは、検索タスクと自然言語の続き生成タスクで予測分布がどの程度変わるかを測定します。平均FCDは、NIAHでは512トークンの2.87から32Kトークンの30.62へ大きくなります。同じ長さの範囲では、FineWeb-Eduは3.04から3.64の間にとどまり、32Kでは3.51です。

Figure 7: | Mean FCD for Flash→ Flash-0731 on NIAH
and FineWeb-Edu. Curves share a vertical scale, with a
FineWeb-Edu zoom inset. Bands show cluster-bootstrap…

Figure 7 | Mean FCD for Flash→ Flash-0731 on NIAH and FineWeb-Edu. Curves share a vertical scale, with a FineWeb-Edu zoom inset. Bands show cluster-bootstrap 95% intervals.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

著者らは、この差は検索が鍵と値の任意の結び付きを探すことと関係すると解釈しています。プレフィックスが長くなると、同じ密度でも競合する記録が増えるため、キャッシュ表現の変化が検索の鍵と値により敏感に働きうるとされています。一方、自然言語の続きは隣接する語と文法的な手がかりを一緒に使うため、分布は比較的安定しうると解釈されています。この説明は著者の解釈であり、主な測定は分布の変化を示すだけで、有益か有害かを直接判定するものではありません。

16Kで再利用により正解を得た36件のクエリの平均FCDは66.42で、正解を失った8件のクエリは44.34でした。したがって、大きな分布の変化は、誤答の修正と正解の損失の両方に同時に現れました。FCDは変化の大きさを示すだけで、それ自体が有害な再利用を予測する指標として検証されたわけではありません。

Table 15: | FCD by paired retrieval outcome at 16K and 32K. Categories use the frozen answer-prefix
evaluation; larger FCD denotes greater distributional chang…

Table 15 | FCD by paired retrieval outcome at 16K and 32K. Categories use the frozen answer-prefix evaluation; larger FCD denotes greater distributional change. Counts and conditional summaries describe the observed groups.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの28ページ目から図の部分を抽出しています。

適用範囲と残された問い

この結果は、DeepSeek-V4-FlashからFlash-0731への主要な組み合わせと、検索実験に含まれるいくつかのモデル更新の組み合わせに基づいています。予測分布の分析は、検索とFineWeb-Eduの文書の続き生成に対する測定であり、すべての自然言語タスクで安定していることを意味するものではありません。

また、FCDが有益な再利用と有害な再利用を区別する予測指標として検証されたという根拠はありません。回答品質、生成の忠実性、分布の変化は、一緒に読む必要があります。最初のトークンが一致していても、その後の内容や終了の振る舞いが異なることがあるため、最初のトークンの一致だけで再利用の忠実性を保証することはできません。

Table 2: | Generation agreement and answer scores for Flash→ Flash-0731. All agreement rates and
scores are percentages.Δscore is KV Reuse minus Target, in per…

Table 2 | Generation agreement and answer scores for Flash→ Flash-0731. All agreement rates and scores are percentages.Δscore is KV Reuse minus Target, in percentage points. Retrieval uses the separate diagnostic cohort, and QA uses the main study in Section 3.2. Agreement uses successful request pairs, and failed requests score zero. Acc. denotes accuracy.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。
Figure 6: | Two diagnostic QA cases illustrate (a) stopping changes and (b) answer-content changes
under KV Reuse. Scores are full-response F1

Figure 6 | Two diagnostic QA cases illustrate (a) stopping changes and (b) answer-content changes under KV Reuse. Scores are full-response F1.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

最後に、キャッシュ層の感度の再試験で一部の行のスコアが変わったことも記録されています。この結果は元の主要な表とは混ぜず、別に報告されています。そのため、実際のサービスの遅延や長期運用の条件にそのまま当てはめる前に、追加の検証が必要です。

Table 12: | Post hoc cache-tier sensitivity retest. Scores and score changes use each task’s primary
metric. The retest isolates seven rows with device/host ca…

Table 12 | Post hoc cache-tier sensitivity retest. Scores and score changes use each task’s primary metric. The retest isolates seven rows with device/host cache interference and is not pooled with the original main result.

出典 · CC BY 4.0 · Zhikun Tao, Fangyong Jin, Junping Zhao · Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study · 論文の図を引用 · 元のPDFの27ページ目から図の部分を抽出しています。

論文情報

著者
Zhikun Tao, Fangyong Jin, Junping Zhao
学会・ジャーナル
arXiv · プレプリント
公開日
2026年11月10日
登録日
2026年11月11日
更新日
2026年11月10日
バージョン
v1
arXiv
2611.14051
カテゴリ
cs.DC · cs.AI
ライセンス
CC BY 4.0
掲載内容
論文情報・解説・論文の図

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

アブストラクト

Reusing key--value (KV) caches across language model updates could avoid repeated computation of shared context, but changes in model weights raise a fundamental question about what these caches preserve. We investigate direct cache reuse across four model updates, with a detailed study of DeepSeek-V4-Flash to Flash-0731. Our central finding is that caches can retain useful task information without faithfully reproducing the updated model's behavior. Retrieval accuracy varies substantially across updates, ranging from near-native performance to large losses. With source caches already available, reuse achieves median time-to-first-token speedups of $2.10$--$5.08\times$ on three longer-prefix QA benchmarks. To characterize the behavioral differences behind these outcomes, we introduce Functional Cache Divergence, which compares next-token distributions under reused and native caches. Direct KV cache reuse better preserves native model behavior in natural-text continuation, whereas compatibility degrades with increasing prefix length in single-token retrieval tasks. Answer-margin analyses help explain how correct retrieval decisions survive substantial internal state changes. Yet even agreement on the first generated token does not ensure agreement in answer content or stopping behavior. These findings establish task utility and fidelity to native inference as distinct criteria for evaluating cross-version KV cache reuse.

この論文を引用

Zhikun Tao, Fangyong Jin, Junping Zhao (2026). Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study. arXiv:2611.14051v1. https://arxiv.org/abs/2611.14051v1

BibTeX
@misc{tao2026cache,
  title = {{Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study}},
  author = {Zhikun Tao and Fangyong Jin and Junping Zhao},
  year = {2026},
  eprint = {2611.14051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14051v1}
}

関連論文を見る他の論文を見る

論文プレビュー
アカウントのセキュリティ

Googleアカウントを連携

Googleアカウントを連携すると、そのアカウントでもログインできます。

Refivu

退会

Refivu
Refivu

新規登録