理解模型能够表示和无法表示哪些概念,是诸多任务的基础:从模型的有效且负责任使用,到分布外数据检测。我们提出高斯过程探针(Gaussian process probes, GPP),这是一个统一且简洁的框架,用于探测和度量与模型所表示概念相关的不确定性。作为线性探测方法的贝叶斯扩展,GPP探究模型会诱导出怎样的概念分类器分布。该分布既可用于度量模型表示的内容,也可用于度量探针对模型表示内容的置信程度。GPP可应用于任何具备输入向量表示(如激活值)的预训练模型,无需访问训练数据、梯度或模型架构。我们在包含合成图像与真实图像的数据集上验证了GPP的性能。实验表明,它能够:(1)仅用极少量样本即可探测模型的概念表示;(2)准确度量认知不确定性(即探针的置信程度)和偶然不确定性(即概念对模型的模糊程度);(3)利用这些不确定性度量检测分布外数据,效果与经典方法相当。通过使用高斯过程拓展探测方法的能力边界,GPP为理解和评估机器学习模型的能力提供了一种数据高效、通用且具备不确定性感知的工具。
英文摘要:
Understanding which concepts models can and cannot represent has been fundamental to many tasks: from effective and responsible use of models to detecting out of distribution data. We introduce Gaussian process probes (GPP), a unified and simple framework for probing and measuring uncertainty about concepts represented by models. As a Bayesian extension of linear probing methods, GPP asks what kind of distribution over classifiers (of concepts) is induced by the model. This distribution can be used to measure both what the model represents and how confident the probe is about what the model represents. GPP can be applied to any pre-trained model with vector representations of inputs (e.g., activations). It does not require access to training data, gradients, or the architecture. We validate GPP on datasets containing both synthetic and real images. Our experiments show it can (1) probe a model's representations of concepts even with a very small number of examples, (2) accurately measure both epistemic uncertainty (how confident the probe is) and aleatory uncertainty (how fuzzy the concepts are to the model), and (3) detect out of distribution data using those uncertainty measures as well as classic methods do. By using Gaussian processes to expand what probing can offer, GPP provides a data-efficient, versatile and uncertainty-aware tool for understanding and evaluating the capabilities of machine learning models.
Exploratory Data Analysis of a Network Telescope Traffic and Prediction of Port Probing Rates
International University of Rabat(拉巴特国际大学);Mohammed V University of Rabat(拉巴特穆罕默德五世大学);Université de Lorraine(洛林大学);CNRS(法国国家科学研究中心);Inria(法国国家信息与自动化研究所);LORIA(洛林信息学及其应用研究实验室)
Detection Without Correction: A Robust Asymmetry in Activation-Based Hallucination Probing
Department of Computer Science and Engineering, Indian Institute of Technology Patna, India(印度理工学院帕纳分校计算机科学与工程系);Department of Computer Science, Rajarshi School of Management and Technology, Varanasi, India(印度瓦拉纳西 Rajarshi 管理与技术学校计算机科学系);Department of Electronics and Communication Engineering, Jaypee Institute of Information Technology, Noida, India(印度诺伊达 Jaypee 信息科技学院电子与通信工程系)