Skip to main content
QUICK REVIEW

[論文レビュー] Unsupervised Out-of-Distribution Detection with Diffusion Inpainting

Zhenzhen Liu, Jin Zhou|arXiv (Cornell University)|Feb 20, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用数 3
ひとこと要約

本稿では、事前学習済みの拡散モデルを用いて分布内多様体へのマッピングを活用する、未学習の分布外(OOD)検出手法Lift, Map, Detect(LMD)を提案する。入力画像をマスクして元の多様体から「持ち上げ」、拡散補完を用いて再び分布内多様体へマッピングすることで、元の画像と再構築画像の再構築距離を測定し、OODサンプルを検出する。再訓練を必要とせず、多様なデータセットで最先端の性能を達成する。

ABSTRACT

Unsupervised out-of-distribution detection (OOD) seeks to identify out-of-domain data by learning only from unlabeled in-domain data. We present a novel approach for this task - Lift, Map, Detect (LMD) - that leverages recent advancement in diffusion models. Diffusion models are one type of generative models. At their core, they learn an iterative denoising process that gradually maps a noisy image closer to their training manifolds. LMD leverages this intuition for OOD detection. Specifically, LMD lifts an image off its original manifold by corrupting it, and maps it towards the in-domain manifold with a diffusion model. For an out-of-domain image, the mapped image would have a large distance away from its original manifold, and LMD would identify it as OOD accordingly. We show through extensive experiments that LMD achieves competitive performance across a broad variety of datasets. Code can be found at https://github.com/zhenzhel/lift_map_detect.

研究の動機と目的

  • ラベルなしの分布内データのみが利用可能な、非教師付きOOD検出の課題に対処すること。
  • 再訓練を伴わず、事前学習済みの拡散モデルの多様体学習能力を活用してOOD検出を行うこと。
  • 色、解像度、ドメインシフトの異なる多様なデータ分布に対しても頑健である方法を開発すること。
  • 効果的な画像の持ち上げとマッピング戦略の設計により、OOD検出性能を向上させること。

提案手法

  • Lift: 画像の領域をマスクすることで、元のデータ多様体から外れるように入力を破損させる。
  • Map: 事前学習済みの拡散モデルを用いて補完を行い、破損した画像を分布内多様体へマッピングする。
  • Detect: 元の画像と再構築画像の間の再構築距離(例:LPIPS)を計算し、OODスコアを割り当てる。
  • 1枚の画像に対して複数回の再構築を実行し、中央値を用いて集約することで、頑健性と性能を向上させる。
  • 一般化性と頑健性を評価するため、複数の距離指標(MSE、SSIM、LPIPS、SimCLRv2)を用いて評価する。
  • フレームワークの汎用性を検証するため、拡散ベースの持ち上げやノイズ除去ベースのマッピングといった代替インスタンスを検討する。
Figure 1 : The pictorial intuition behind LMD for OOD detection. A diffusion model learns a mapping to the in-domain manifold. LMD lifts an image off its manifold by masking, and uses the diffusion model to move it towards the in-domain manifold. An in-domain image would have a much smaller distance
Figure 1 : The pictorial intuition behind LMD for OOD detection. A diffusion model learns a mapping to the in-domain manifold. LMD lifts an image off its manifold by masking, and uses the diffusion model to move it towards the in-domain manifold. An in-domain image would have a much smaller distance

実験結果

リサーチクエスチョン

  • RQ1拡散モデルの多様体マッピング能力を活用することで、非教師付きOOD検出に再利用可能か?
  • RQ2マスクベースの画像持ち上げと拡散補完を組み合わせた手法が、他の持ち上げ手法に比べて優れたOOD検出性能を示すか?
  • RQ3異なる画像類似度指標(例:LPIPS、SSIM、MSE、SimCLRv2)が、多様なデータセットにおけるOOD検出性能に与える影響は?
  • RQ4複数回の再構築試行が、検出の頑健性とAUC性能に与える影響は?
  • RQ5LMDフレームワークは、ノイズベースの持ち上げとノイズ除去マッピングといった代替インスタンスにも一般化可能か?

主な発見

  • LMDは複数のOOD検出ベンチマークで最先端の性能を達成し、LPIPSを距離指標として用いたCIFAR10 vs. SVHNでは平均ROC-AUCが0.992を記録した。
  • LPIPSはすべてのデータセットペアで他の距離指標を上回り、再構築距離のデフォルト選択としての有効性を示した。
  • 再構築試行回数を1回から10回に増やすことでAUCが著しく向上し、約10回で性能が飽和する傾向を示し、アンサンブル的な再構築の利点を裏付けた。
  • 拡散ベースの持ち上げとノイズ除去マッピングを用いた代替インスタンスも強力な性能(CIFAR10 vs. CIFAR100でAUC 0.976)を示し、マスク/補完に限らないフレームワークの汎用性を確認した。
  • CIFAR10 vs. CIFAR100では、SimCLRv2ベースの距離指標が他の指標より0.09 AUC高い性能を示し、LPIPSが最も一貫性のあるデフォルトであるものの、ドメイン特有の指標感受性がある可能性を示唆した。
  • 色、解像度、ドメインシフトの異なるデータセットに対しても、ドメイン特化のチューニングなしに汎用的に適用可能であることを示し、広範な適用可能性を裏付けた。
Figure 2 : High-level workflow of LMD . LMD employs a diffusion model learned over the in-domain manifold. It first repeatedly lifts an image from its manifold by masking it, and maps it towards the diffusion model’s training manifold by inpainting. Then, it inspects the median distance between the
Figure 2 : High-level workflow of LMD . LMD employs a diffusion model learned over the in-domain manifold. It first repeatedly lifts an image from its manifold by masking it, and maps it towards the diffusion model’s training manifold by inpainting. Then, it inspects the median distance between the

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。