[论文解读] Dataset Interfaces: Diagnosing Model Failures Using Controllable Counterfactual Generation
该论文定义数据集接口以从给定分布生成可控的反事实样本,展示简单实现会引入混淆性漂移,并提出使用 Textual Inversion 与 Stable Diffusion 的数据集接口以将反事实样本定制到输入分布,在 ImageNet 上演示,使用 ImageNet * 来研究分布漂移。
Distribution shift is a major source of failure for machine learning models. However, evaluating model reliability under distribution shift can be challenging, especially since it may be difficult to acquire counterfactual examples that exhibit a specified shift. In this work, we introduce the notion of a dataset interface: a framework that, given an input dataset and a user-specified shift, returns instances from that input distribution that exhibit the desired shift. We study a number of natural implementations for such an interface, and find that they often introduce confounding shifts that complicate model evaluation. Motivated by this, we propose a dataset interface implementation that leverages Textual Inversion to tailor generation to the input distribution. We then demonstrate how applying this dataset interface to the ImageNet dataset enables studying model behavior across a diverse array of distribution shifts, including variations in background, lighting, and attributes of the objects. Code available at https://github.com/MadryLab/dataset-interfaces.
研究动机与目标
- 在分布漂移下推动鲁棒评估,以及对反事实样本的需求
- 将数据集接口引入为反事实生成的统一框架
- 识别由于分布不匹配而导致的现有反事实生成方法的局限性
- 提出使用 Textual Inversion 的数据集接口,使生成结果更好地匹配输入分布
- 展示 ImageNet * 作为一个鲁棒分布漂移基准,并实现对模型的细粒度调试
提出的方法
- 将数据集接口定义为一个原语,它从输入数据集中返回分布漂移的实例
- 回顾现有的实现:手动收集、文本到图像检索,以及合成生成
- 引入基于 Textual Inversion 的编码,将每个类别编码到扩散模型的文本空间,以匹配输入分布
- 用通过 Textual Inversion 从类别图像学习得到的令牌 S_c 对每个类别 c 进行编码,并生成包含 S_c 的提示来产生反事实样本
- 使用基于 CLIP 的过滤,确保生成的图像包含目标对象并呈现所需的漂移
- 通过将上述方法应用于 ImageNet * 来创建,并发布令牌和一个漂移基准
实验结果
研究问题
- RQ1数据集接口是否能够生成忠实匹配输入分布且呈现指定漂移的反事实样本?
- RQ2不同实现的数据集接口在混淆性漂移和评估可靠性方面有何差异?
- RQ3基于 Textual Inversion 的数据集接口是否比文本到图像检索或手动方法产生更高质量的特定漂移的反事实样本?
- RQ4ImageNet * 能否在模型家族和训练制度之间支持一个全面、以漂移为中心的鲁棒性基准?
- RQ5数据集接口如何在分布漂移下帮助对模型失败进行细粒度调试?
主要发现
- 简单的接口实现常常引入混淆性漂移,模糊真实的漂移效应
- 基于 Textual Inversion 的接口可以将生成的反事实样本定制为输入分布和所需的漂移
- ImageNet * 在工人研究中产生的反事实样本比 Bing 或基于 LAION 的检索更贴合输入分布
- 用 CLIP 对生成的反事实样本进行过滤,在人工评估中同时提升对象存在性和漂移准确性
- ImageNet * 使在23个分布漂移下评估模型性能成为可能,并分析不同架构和预训练下的漂移鲁棒性
- 该接口通过单独隔离特定混淆因素(如盘中的空无)来支持细粒度调试,揭示真实的失效模式
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。