質問に合わせて長い文脈を圧縮するLLM用メモリ
Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
この論文をやさしく読む
ひとことで言うと
長い入力を質問と回答に合わせた小さな埋め込みへ圧縮し、LLMの推論負担を減らす方法。
何に役立つ?
長文を使う質問応答で、応答性能を保ちながら時間・電力・GPUメモリを減らす用途が考えられる。
この研究の面白いところ
固定したデコーダーの埋め込み空間に合わせ、質問別のメモリ選択と局所文脈窓を組み合わせる。
どこまで分かった?
9組のモデル構成と4種の質問応答ベンチマークで評価した。最大改善値と削減率は記載された実験条件での値である。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
大規模言語モデルの推論では、自己注意の計算量が文脈長の二乗で増え、KVキャッシュは文脈長に比例して増えるため、長い文脈で遅延、消費エネルギー、GPUメモリ需要が増す。既存のソフト圧縮法には、推論時に質問に合わせてメモリを選べない、回答を目標とした教師信号なしで学習する、特定のデコーダー構造に圧縮方法を強く結び付ける、といった課題がある。そこで、長い入力文脈を、重みを固定した任意のデコーダーの埋め込み空間に合わせた小さなContext Memory Embeddings(CME)へ圧縮するContext-to-Answer-Aligned Memory Compression(CMC)を提案する。デコーダーの重みを変えずに推論コストを下げる。CMCは、質問に応じたCMEの選択と局所的な文脈窓を組み合わせる二層のKVキャッシュを導入し、重みを固定したLLMの回答を目標とする蒸留で圧縮器を学習する。9種類のエンコーダーとデコーダーの組み合わせ、4種類の質問応答ベンチマークでの実験では、CMCは比較基準を一貫して上回った。SQuADでは最大で完全一致率7.3ポイント、F1スコア4.0ポイントの向上を得た。生成トークン数3,000の条件では、推論時間と消費エネルギーを最大20%、GPUの予約済みメモリのピークを最大50%削減した。要素除去実験では、各構成要素と学習目標が性能に寄与することを確認した。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-22(UTC)
- 最新改訂
- 2026-09-22 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-22 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
Large language model (LLM) inference is constrained by the quadratic scaling of self-attention and the linear scaling of the KV cache, increasing latency, energy consumption, and GPU memory demand as context length scales. Existing soft-compression methods either lack query-guided memory selection at inference time, train without answer-targeted supervision, or couple compression tightly to a specific decoder architecture. We propose a Context-to-Answer-Aligned Memory Compression (CMC) framework, which compresses long input contexts into compact Context Memory Embeddings (CMEs) aligned to any frozen decoder's embedding space, reducing inference costs without modifying decoder weights. CMC introduces a two-tier KV cache that combines question-guided CME selection with a local context window, and trains the compressor with answer-targeted distillation from a frozen LLM. Experiments across nine encoder-decoder combinations and four QA benchmarks show that CMC consistently outperforms the baseline, achieving up to 7.3 EM and 4.0 F1 point gains on SQuAD, while reducing inference time and energy consumption by up to 20% and peak reserved GPU memory by up to 50% at 3,000 generation tokens. Ablation studies confirm that each architectural component and training objective contributes to the performance.
arXiv ID: 2609.25537 / 要約の誤りについて