[論文レビュー] Adaptive Layer Selection for Layer-Wise Token Pruning in LLM Inference
ASLはプレフィリング中にトークン順位の分散を監視してトークン選択レイヤーを適応的に選択し、追加トレーニングなしでLLM推論のタスク適応型 KV キャッシュ削減を実現します。
Due to the prevalence of large language models (LLMs), key-value (KV) cache reduction for LLM inference has received remarkable attention. Among numerous works that have been proposed in recent years, layer-wise token pruning approaches, which select a subset of tokens at particular layers to retain in KV cache and prune others, are one of the most popular schemes. They primarily adopt a set of pre-defined layers, at which tokens are selected. Such design is inflexible in the sense that the accuracy significantly varies across tasks and deteriorates in harder tasks such as KV retrieval. In this paper, we propose ASL, a training-free method that adaptively chooses the selection layer for KV cache reduction, exploiting the variance of token ranks ordered by attention score. The proposed method balances the performance across different tasks while meeting the user-specified KV budget requirement. ASL operates during the prefilling stage and can be jointly used with existing KV cache reduction methods such as SnapKV to optimize the decoding stage. By evaluations on the InfiniteBench, RULER, and NIAH benchmarks, we show that equipped with one-shot token selection, where tokens are selected at a layer and propagated to deeper layers, ASL outperforms state-of-the-art layer-wise token selection methods in accuracy while maintaining decoding speed and KV cache reduction.
研究の動機と目的
- 既存のレイヤー毎のトークン剪定手法における固定選択レイヤーのタスク横断的な柔軟性の欠如を特定する。
- ASLを提案する。これはattention rank varianceに基づいて剪定レイヤーを選択するトレーニングフリーの適応的手法である。
- ASLを既存のKVキャッシュ削減技術と連携させ、指定されたKV予算を満たせるようにする。
- 複数の長文コンテキストベンチマークを横断してASLの精度と効率のトレードオフを実証する。
提案手法
- プレフィリング中に連続するレイヤーを横断してattentionスコアに基づくトークン順位の分散を監視する。
- 最近のレイヤーからプールされたattentionスコアを計算し、分散計算のトークンの共通集合を特定する。
- 相対分散がユーザー指定の閾値を下回ったときにトークン選択をトリガーし、現在のレイヤーを選択レイヤーとして指定する。
- ワンショットでトークンを選択し、KVキャッシュ削減のために深いレイヤーへ伝搬する。
- 必要に応じてASLを既存のKV削減手法(例:SnapKV、GemFilter)と統合してデコーディング時のKV予算制約を満たす。

実験結果
リサーチクエスチョン
- RQ1適応的でトレーニングフリーなレイヤー選択基準は、さまざまなタスクにおけるレイヤー単位のトークン剪定の堅牢性を向上させるか。
- RQ2attention駆動のトークン順位の分散を監視することは、トークンを剪定する最適な瞬間を効果的に示すか。
- RQ3ASLは固定レイヤー剪定手法と比較して、KV予算とタスク難易度の変動下でどのように性能が変わるか。
- RQ4追加のトレーニングなしでASLを既存のKVキャッシュ削減技術とシームレスに組み合わせられるか。
主な発見
- ASLは長文コンテキストのベンチマークで、最先端の固定レイヤー剪定手法を上回る精度を達成する。
- ASLはデコード速度とKVキャッシュ削減を維持しつつ、特にKV検索のような難しいタスクでタスク固有の性能を改善する。
- ASLはプレフィリング時のワンショット選択手法として展開でき、SnapKVやGemFilterと組み合わせて目標KV予算を満たすことができる。
- ASLの適応的選択レイヤーは、タスクごとのチューニングなしで easy と hard のタスク間の性能差を縮小する。
- ASLはInfiniteBench、RULER、Needle in a Haystack (NIAH) における精度と効率の好適なトレードオフを示す。

この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。