[論文レビュー] Filtering Beats Fine Tuning: A Bayesian Kalman View of In Context Learning in LLMs
要約: 本論文は、LLM におけるインコンテキスト学習をオンラインベイズ状態推定としてカルマンフィルタリングを用いてモデル化し、低次元の潜在適応状態とその不確実性ダイナミクスが、パラメータ更新なしに情報駆動の迅速な適応を駆動する。
We present a theory-first framework that interprets inference-time adaptation in large language models (LLMs) as online Bayesian state estimation. Rather than modeling rapid adaptation as implicit optimization or meta-learning, we formulate task- and context-specific learning as the sequential inference of a low-dimensional latent adaptation state governed by a linearized state-space model. Under Gaussian assumptions, adaptation follows a Kalman recursion with closed-form updates for both the posterior mean and covariance. This perspective elevates epistemic uncertainty to an explicit dynamical variable. We show that inference-time learning is driven by covariance collapse, i.e., rapid contraction of posterior uncertainty induced by informative tokens, which typically precedes convergence of the posterior mean. Using observability conditions on token-level Jacobians, we establish stability of the Bayesian filter, prove exponential covariance contraction rates, and derive mean-square error bounds. Gradient descent, natural-gradient methods, and meta-learning updates arise as singular, noise-free limits of the filtering dynamics, positioning optimization-based adaptation as a degenerate approximation of Bayesian inference. The resulting theory provides a unified probabilistic account of in-context learning, parameter-efficient adaptation, and test-time learning without parameter updates. It yields explicit guarantees on stability and sample efficiency, offers a principled interpretation of prompt informativeness via information accumulation, and clarifies the role of uncertainty dynamics absent from existing accounts. Minimal illustrative experiments corroborate the qualitative predictions of the theory.
研究の動機と目的
- 推論時適応を逐次ベイズ状態推定として扱う理論優先の説明を提示する。
- 事前学習モデルからのタスク・文脈特異的偏差をパラメータ化する低次元潜在適応状態を導入する。
- 可観測性条件下で共分散の縮約、安定性、およびサンプル効率性の形式解析を提供する。
提案手法
- 有効パラメータが θ_t = θ_0 + B x_t となる線形化された状態空間モデルを提案し、x_t を潜在状態とする。
- トークンごとの負の対数尤度を線形化された観測としてモデル化: ℓ_t ≈ ℓ_t^(0) + ∇_θ ℓ_t^T B x_t + v_t with v_t ∼ N(0, R_t)。
- カルマン(拡張カルマン)フィルタを適用して事後 p(x_t | D_t) の平均 μ_t と共分散 P_t を更新する。
- 情報形(精度)カルマン更新を用いて情報蓄積の単調性と共分散縮約を示す。
- 観測可能性仮定の下での安定性と収束性の結果を導出し、勾配ベースの手法をフィルタリングの特異でノイズフリーな極限として関連付ける。
実験結果
リサーチクエスチョン
- RQ1LLM における推論時適応を厳密に逐次ベイズ状態推定としてモデル化できるか。
- RQ2プロンプトトークンからの情報蓄積が事後不確実性と適応速度にどう影響するか。
- RQ3このフィルタリング枠組みにおける安定性、不確実性の縮約、二乗平均誤差に対する保証は何か。
- RQ4観測ノイズが極限に縮小する場合、勾配法はカルマンフィルタとどのように関係するか。
- RQ5プロンプトの情報性はパラメータ更新なしのテスト時適応を可能にする上でどのような役割を果たすか。
主な発見
- 推論時学習は、事後不確実性ダイナミクスを明示したベイズフィルタリングとして現れる。
- 共分散は、観測可能性とプロンプトからの情報蓄積により指数関数的に縮約する。
- 事後平均誤差は、不確実性が縮約する項で減衰する変化を伴い、状態の厳密な収束前に急速に改善することを示す。
- 勾配降下法および自然勾配法はカルマン更新の特異でノイズフリーな極限として現れ、主要な機構ではない。
- プロンプトは実験として機能し、その情報量は観測可能性グラム行列によって学習性を決定する。
- カルマンベースの学習は安定性保証と、few-shot 一般化のためのプロンプト情報性の principled な解釈を提供する。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。