論文解説
When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models
PFNの重みを固定してデコーダを微調整し、有害なずれを検出する
- 課題 表形式のPFNは、展開時に分布がずれると警告を出さずに性能が落ちます。既存の検出法は、性能を損なわない良性のずれにも反応して誤警報が多くなります。
- 手法 CALDは、PFNの重みを固定してデコーダだけを短く微調整します。アンカーは正しく予測させ、評価バッチからは予測を遠ざけ、残ったアンカー損失で劣化を判定します。
- 結果 14のデータセットで、有害なずれの多くでTPRが0.99以上となり、既存の手法と同等以上でした。良性のずれでは、既存の手法より誤警報が少なくなりました。

Figure 10 :Mechanism M1 on a benign dataset (diabetes_readmission/cald-tabpfn).Per-step trajectories of ∥ge∥2F (left), ⟨ga, ge⟩F (middle), and Lanc(Wt) (right), median across rounds and seeds with interquartile shading. The cross-term diverges between ID (more negative) and OOD (less negative), driving the integratedλ gap = +0.352even though∆ acc =−2.34pp.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。PFNが静かに劣化する場面
TabPFNやTabICLのような表形式のPFNは、サポートセットとクエリを文脈として与えるだけで予測を返せます。しかし、PFNの事前分布はサポートとクエリを同じ生成過程からの独立な抽出として作るため、展開データがサポートからずれると、モデルは警告を出さずに性能を落とします。そのため、医療のような高リスクな応用では、劣化を検出する仕組みが必要になります。
ラベルのない入力だけで劣化を見る既存手段として、共変量の分布差を検定する方法があります。ただし、この方式は入力の変化が性能を損なわない良性シフトにも反応するため、警報が多くなりがちです。別の流れとして、学習済みモデルの不一致を使う手法がありますが、これらは微調整したモデルの重みを外から摂動させます。重みが固定されたPFNでは再学習が難しく、性能を損なうこともあるため、この方法をそのまま使えません。
デコーダを揺らしてアンカー損失を読む
CALDの要点は、PFNの本体を凍結したまま、デコーダだけを短く微調整する点にあります。この微調整では、ラベル付きのアンカー集合を正しく予測し続ける項と、評価バッチでPFN自身の擬似ラベルから予測を遠ざける項を、同時に最小化します。そして、微調整の後にアンカー集合上の損失がどれだけ残るかを測ります。この値がCALDの検定統計量になり、既存の手法が分類器の重みを外から摂動させるのとは違い、予測の不一致ではなくアンカー損失を読みます。
キャリブレーションでは、ID上の検証バッチからアンカーを少数取り出し、残りを評価集合とします。この手順を多数回繰り返すと、ID上のアンカー損失の分布が得られます。展開時には、同じ手順を未ラベルの展開バッチに対して実行し、得られた損失がID分布の下側の裾に入るときに劣化と判定します。
この判定の背後にある直感は、評価サンプルがアンカーとは別の領域にあると、アンカーの損失が下がりやすいというものです。具体的には、微調整の各ステップでアンカー一致の勾配と評価不一致の勾配が働き、ID評価ではこの二つが打ち消し合うため、λが高いまま残ります。一方、OOD評価では二つの勾配がほぼ直交し、λが下がります。検定統計量はλ := L_anc(θ_T)で、Tステップ後のアンカー損失です。
勾配の交差項が損失の減り方を決める理由
理論側では、最初の1ステップを一次近似すると、アンカー損失の変化が式(9)の形で書けます。その式は、−η∥ga∥²の項と−η⟨ga, ge⟩の項からなり、後者が勾配の交差項です。この内積が負なら評価不一致の項がアンカーの減少を妨げ、0に近いなら妨げないことになります。
論文の定理4.1は、この交差項がステップごとのアンカー減少を支配すると主張しています。さらに、ID評価では交差項が強く負で、OOD評価では0付近になるという、二つの主張を立てています。この予測が成り立つなら、深刻なシフトの下では事後のアンカー損失の期待値がID評価より厳密に低くなり、片側の検定が得られます。
有害シフトと良性シフトでの検出結果
TabPFN v2.5とTabICL v2に対し、15の事後OOD検出ベースラインと比べ、主指標はTPR@5% FPRとしました。各設定は10シード、50回のキャリブレーション、T=50ステップの微調整、128点の評価バッチで実行しています。表1は、シフトを精度低下の大きさで並べ、有害側は検出の真陽性率、良性側は無警報率で評価しています。

Table 1 :Detection performance (TPR@5% FPR) across 14 shifts ordered by harm.Columns are sorted by ID→OOD accuracy drop ∆ (second header row, %). Harmful/benign split via Hoeffding bound at δ= 0.05 , N= min(rounds×eval,|D OOD|) = 1,280 from the deterioration survey of Appendix C.3: ∆∗ ≈4.8%. Forharmfulshifts ( ∆>∆ ∗), TPR = rate of correct alarms. Forbenign shifts (∆≤∆ ∗), TPR = rate of correct silence (1 − false-alarm rate). A good detector scores high in bothregions.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。有害側では、より良いCALDの変種がCivilComments、Camelyon、Waterbirds、CIFAR、PACS、Covertypeで0.99以上のTPRを示しました。
良性側では、Adult、Amazon、Folktables-TabPFN、CelebA-TabICLの4データセットで、無警報率が0.92以上でした。弱点はBank、Diabetes Readmission、TabICLによるFolktablesで、無警報率はそれぞれ0.02以下、0.08以下、0.42です。
TabICLは部分集団シフトとして定義された4データセットでTabPFNを上回り、Camelynは0.19から1.00、Waterbirdsは0.46から0.99に変わりました。一方、Folktablesではそれが逆になり、TabPFNの0.98に対しTabICLは0.42でした。著者らは、TabICLのデコーダ(512→1024→C)がTabPFN(192→384→C)より大きいことが要因の可能性があると述べています。
D-MMD、H-divergence、KNNは、有害側の多くで0.95以上を示す一方、良性側の多くでは0.10以下で、常に警報を出している状態に近いです。RMDは良性側の無警報率がCALDと同程度ですが、中程度のシフトでは有害側のTPRが0.40から0.67に落ち込みます。表の中で、有害側と良性側の両方で過半数のデータセットに高い値を示すのはCALDだけだと著者らは述べています。ただし、これは相対的な主張であり、Bank、Diabetesなどでは誤警報が残ります。
シフトの強さに応じてAUROCが上がるか
合成2Dガウスでは、クラス境界を回転させると有害、境界に沿って並進させると良性になり、両者は特徴空間での大きさをそろえてあります。実データのWaterbirdsでは、評価バッチ中の少数派サンプルの割合αを変えて、精度低下の大きさを調整しています。
シフトがないときのAUROCは偶然水準にあり、精度差が大きくなるにつれて単調に上がって、最も強い設定で飽和します。良性側の合成シフトでは、0.7σの小さな並進は偶然水準のままで、2.1σと7.1σの並進では警報が出ます。つまり、小さな並進には反応せず、大きな並進には反応するという傾向が見られます。
著者らは、この傾向を経験的な性質として扱うよう明記しており、理論で保証されたものとはしていません。実データでは、精度差が小さくてもアンカー損失が分かれるデータセットがあり、この点は特徴空間のモニタでは完全に解決できないと考えられています。
勾配交差項の予測が実モデルで成り立つか
実際のfinetuneの各ステップで、cos(ga, ge)と∆Lancを記録し、データセットごとにSpearman相関を計算しました。式(9)が正しければ、相関は負になるはずです。
OOD評価では、すべてのデータセットで相関が負になりました。ID評価では、CovertypeとDiabetes Readmissionの2つを除き、相関が負になりました。この2つは、コサインが戦う側の極値に固定されてばらつきがないため、例外として扱われています。
前提である∆traj>0は10データセットのうち9つで成り立ち、弱い2つ(CIFAR-10とUCI Heart)は、λのgapがほぼゼロのデータセットと一致します。この対応から、交差項の違いが検出信号の源になっているという解釈が支持されると考えられます。
限界
良性シフトの扱いが、理論上の最大の弱点です。補題A.12は、精度差が誤り領域上の質量にだけ依存することを示します。一方、λは入力領域全体の勾配交差項を積分するため、特徴空間のモニタは完全なキャリブレーションを達成できないと考えられています。
実験でも、Bank、Diabetes、Credit、Folktables、CelebAで、良性なのに誤警報が残ります。検定はIDのexchangeabilityに依存するため、純粋なラベルシフト、コンセプトシフト、オープンセット、敵対的入力は対象外です。有害性をより正確に分ける補助信号は、今後の課題として残されています。
今回の検証は、デコーダを通じて見る特徴空間の読み出しに限られ、PFNがサポートセットに対して与える勾配を使う方向は試していません。
論文情報
- 著者
- Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan
- 学会・ジャーナル
- arXiv · プレプリント
- 公開日
- 2026年11月25日
- 登録日
- 2026年11月27日
- 更新日
- 2026年11月25日
- バージョン
- v1
- arXiv
- 2611.34767
- カテゴリ
- cs.LG
- ライセンス
- CC BY 4.0
- 掲載内容
- 論文情報・解説・論文の図
この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。
アブストラクト
Tabular prior-fitted networks (PFNs) work well across tabular classification problems but can fail silently at deployment when distributions shift. We propose CALD (Calibrated Anchor-Loss Disagreement), a lightweight unsupervised monitor that triggers an alarm to warn when a PFN might fail. By finetuning the decoder to maximize disagreement with the test-set prediction while maintaining accuracy on an ID anchor set, CALD identifies harmful OOD batches through the resulting anchor loss, requiring no labels on test batches. We prove that the post-finetune anchor loss has a strictly lower expectation under sufficiently severe shift than under ID eval, yielding a one-sided test. Across 14 datasets covering tabular and structured distribution shift, on both TabPFN and TabICL, CALD matches or outperforms baselines on harmful shifts and is markedly more resilient to benign-shift false alarms.
論文の図

Table 2 : Summary of assumptions used in the theoretical argument.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの39ページ目から図の部分を抽出しています。
Table 3 :Scope of CALD.Failure modes a PFN may encounter at deployment, with whetherCALD is empirically evaluated against it and whether the theory of Appendix A covers it. ✓indicates full empirical coverage;partialindicates a heuristic check (e.g., a severity sweep without a formal guarantee);×indicates absence.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの41ページ目から図の部分を抽出しています。
Table 4 : CALD and standalone shift detectors on the four datasets where ∆ < ∆⋆ . AUROC computed on the same calibration protocol as Table 10 (10 seeds, 50 calibration rounds, support and anchor sets fixed within each seed). Every distribution-shift detector that does not condition on harm (KNN, MMD, Mahalanobis, Energy, MSP) also fires on these datasets at AUROC ≥ 0.9, indicating real distributional shift in feature space.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの42ページ目から図の部分を抽出しています。
Figure 11 :Mechanisms M1+M2 firing together on a harmful dataset (covertype/cald-tabpfn). The OOD eval-gradient magnitude is uniformly an order of magnitude smaller than ID throughout the trajectory (left), the cross-term sign on OOD is much closer to zero than on ID (middle), and the anchor loss on OOD descends to a clearly distinct level (right).
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Figure 12 :Same detector outcome ( λOOD < λID), two different mechanisms.Left column: diabetes_readmission(benign, ∆acc =−2.34 pp, AUROC 0.976) fires via cosine shift (M1). Right column:covertype(harmful, ∆acc = +83.5 pp, AUROC 1.000) fires via the combined M1+M2 mechanism, with a much cleaner log-scale separation in∥g e∥2F .
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Figure 13 : λgap versus ∆acc across the twelve probe cells.Marker size scales with |∆cos| . The dashed vertical line is the Hoeffding harm threshold ∆⋆ ≈4.84 pp. Points to the left of the threshold are benign; points to the right are harmful. Both regions contain cells with λgap ≥0.05 , confirming that the conformal test fires on both kinds of distributional shift.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Table 6 :TabPFN accuracy under distribution shift, ordered by severity. ∆ = accID −acc OOD (positive = harmful drop). ∆∗(N) = pln(1/δ)/N is the Hoeffding 95%-confidence noise floor (Eq. 52, δ= 0.05 , N= 1,280 ); shifts with |∆| ≤∆∗ are labeledbenign( †). Accuracy estimated over 10 rounds of 128 eval samples each.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの51ページ目から図の部分を抽出しています。
Table 7 :Full TPR@5% FPR results across 7 benign shifts ( ∆≤4.8% , Hoeffding bound at N= 1,280, Appendix C.3; TPR = correct silence rate).Each cell is mean std across 10 seeds (seeds 42–51); std is the spread of per-seed TPR (each seed’s threshold is its own 5th-percentile ID-score). Means match Table 1 exactly. Bold = best mean in column. Method Adult Diab. Amazon Credit Folktbl. Bank CelebA ∆(%)
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの51ページ目から図の部分を抽出しています。
Figure 14 :Ablation: number of gradient steps T .Detection AUROC vs. T on three representative datasets. Covertype and Credit Default saturate immediately; CIFAR-10 improves with more steps.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Figure 15 :Detection AUROC with model-pseudolabels vs. random pseudolabels.Harm-adjusted; dotted line marks chance ( 0.5). Random pseudolabels leave detection unchanged on strong-shift datasets but cost ∼10 points of AUROC on moderate-shift datasets (Waterbirds, Folktables) where the PFN is less confident on its own pseudolabels.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Figure 16 :Last-layer-only vs. full-decoder finetuning.Detection AUROC matches to within 0.01 on every dataset, confirming that Theorem 4.1’s last-layer assumption is benign in practice.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Figure 17 :Ablation of the disagreement weight β.Mean detection AUROC over 3 seeds (error bars: ±1 std; TabPFN, fixed η= 10 −3, 30 rounds; dotted line: chance). At β= 0 every dataset collapses exactly to chance; detection is flat across β∈[0.25,4] and the first-order picture degrades only at very largeηβ.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。
Table 12 :Detection AUROC as a function of the finetuning budget T .Mean over 10 seeds at the per-cell selected learning rate (same protocol as Table 10). T95 is the smallest T reaching 95% of the T=50 AUROC; s@T95 is the corresponding wall-clock per monitored batch (H100, batch 128). Aggregates: TabPFN reaches 0.845±0.159 at T=10 vs. 0.904±0.154 at T=50 with median T95 = 1; TabICL reaches0.851±0.161vs.0.930±0.124with medianT 95 = 2.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの59ページ目から図の部分を抽出しています。
Table 13 :Frozen configuration ( η= 10 −3, no selection) vs. the per-cell selected learning rate of
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの60ページ目から図の部分を抽出しています。
Table 10 .Detection AUROC; ∆ = frozen − selected. Mean ∆ over all 30 cells is −0.005 (AUROC) and +0.008 (TPR@5%, not shown). The frozen column is the configuration covered by the conformal guarantee.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの60ページ目から図の部分を抽出しています。
Table 14 :Empirical false-positive rate of the frozen configuration under the no-shift null.Six datasets × 240 null rounds per regime; conformal bound α+ 1/(K+1) = 0.070 . Regime means sit at or below the bound; four individual dataset–regime cells marginally exceed it (max 0.075), consistent with finite-sample fluctuation atn= 240.
出典 · CC BY 4.0 · Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan · When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models · 論文の図を引用 · 元のPDFの60ページ目から図の部分を抽出しています。この論文を引用
Viet Nguyen, Herman Bergström, Stephan Rabanser, Rahul G. Krishnan (2026). When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models. arXiv:2611.34767v1. https://arxiv.org/abs/2611.34767v1
BibTeX
@misc{nguyen2026when,
title = {{When to Trust a PFN: Detecting Harmful Shift in Tabular Foundation Models}},
author = {Viet Nguyen and Herman Bergström and Stephan Rabanser and Rahul G. Krishnan},
year = {2026},
eprint = {2611.34767},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.34767v1}
}