[论文解读] AdaFlow: Domain-Adaptive Density Estimator with Application to Anomaly Detection and Unpaired Cross-Domain Translation
AdaFlow 是一种领域自适应的密度估计器,通过将归一化流(Normalizing Flows)与自适应批量归一化(AdaBN)相结合,实现了无需微调的快速单前向传播领域自适应。其在异常检测任务中达到最先进性能,适应速度比微调快36倍,且在极少适应数据下仍保持高精度。
We tackle unsupervised anomaly detection (UAD), a problem of detecting data that significantly differ from normal data. UAD is typically solved by using density estimation. Recently, deep neural network (DNN)-based density estimators, such as Normalizing Flows, have been attracting attention. However, one of their drawbacks is the difficulty in adapting them to the change in the normal data's distribution. To address this difficulty, we propose AdaFlow, a new DNN-based density estimator that can be easily adapted to the change of the distribution. AdaFlow is a unified model of a Normalizing Flow and Adaptive Batch-Normalizations, a module that enables DNNs to adapt to new distributions. AdaFlow can be adapted to a new distribution by just conducting forward propagation once per sample; hence, it can be used on devices that have limited computational resources. We have confirmed the effectiveness of the proposed model through an anomaly detection in a sound task. We also propose a method of applying AdaFlow to the unpaired cross-domain translation problem, in which one has to train a cross-domain translation model with only unpaired samples. We have confirmed that our model can be used for the cross-domain translation problem through experiments on image datasets.
研究动机与目标
- 解决无监督异常检测中的领域偏移问题,即测试数据分布与训练数据分布不同。
- 克服在资源受限环境中微调深度密度估计器所带来的高计算成本和内存需求。
- 仅通过前向传播实现对新数据分布的高效模型自适应,无需迭代参数更新。
- 通过仅使用无配对训练数据,将所提模型的适用性扩展至无配对跨域迁移任务。
提出的方法
- 将归一化流(NFs)与自适应批量归一化(AdaBN)集成,构建统一的密度估计器 AdaFlow,支持领域自适应。
- 利用 AdaBN 在推理过程中通过更新批量统计量来适应新领域,而非通过反向传播或微调。
- 通过每样本仅一次前向传播实现领域自适应,显著降低相比微调的计算成本。
- 通过将源域数据投影到潜在空间(使用源域 AdaBN),再利用目标域 AdaBN 重新投影至目标域,将 AdaFlow 应用于无配对跨域迁移。
- 使用一种变体 Glow 训练 AdaFlow,其中用 AdaBN 替代激活归一化层,以支持特定领域的统计特性。
- 利用归一化流的可逆性,实现对异常检测和迁移任务中潜在空间的密度估计与操作。
实验结果
研究问题
- RQ1能否以极低计算成本且无需微调的方式,将深度密度估计器适应到新数据分布?
- RQ2在异常检测任务中,AdaFlow 的自适应机制与微调相比,在速度、准确率和资源效率方面表现如何?
- RQ3AdaFlow 能否在无配对训练数据的情况下有效应用于无配对跨域迁移任务?
- RQ4当仅使用少量新领域样本进行自适应时,AdaFlow 是否仍能保持高性能?
主要发现
- AdaFlow 在异常检测中优于标准自编码器和归一化流,使用 1,000 个自适应样本时达到 0.882 的 AUROC。
- 即使仅使用 10 个自适应样本,AdaFlow 仍取得 0.816 的 AUROC,优于在九个数据集上预训练但未微调的归一化流(AUROC 0.835)。
- AdaFlow 的自适应速度比基于微调的自适应快 36 倍,1,000 个样本仅需 0.09 秒,而微调需 3.23 秒。
- AdaFlow 的性能随自适应数据量增加而提升,表明更大的自适应数据集可带来更优的异常检测指标。
- AdaFlow 在无配对数据下成功实现了照片与梵高风格画作之间的跨域迁移,证明其在异常检测之外的实用价值。
- 模型在两个方向(照片 → 画作 和 画作 → 照片)均实现了视觉上合理的翻译,表明通过潜在空间操作实现了有效的领域迁移。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。