Detecting out-of-distribution (OOD) instances is crucial for NLP models in practical applications. Although numerous OOD detection methods exist, most of them are empirical. Backed by theoretical analysis, this paper advocates for the measurement of the "OOD-ness" of a test case $\boldsymbol{x}$ through the likelihood ratio between out-distribution $\mathcal P_{\textit{out}}$ and in-distribution $\mathcal P_{\textit{in}}$. We argue that the state-of-the-art (SOTA) feature-based OOD detection methods, such as Maha and KNN, are suboptimal since they only estimate in-distribution density $p_{\textit{in}}(\boldsymbol{x})$. To address this issue, we propose FLatS, a principled solution for OOD detection based on likelihood ratio. Moreover, we demonstrate that FLatS can serve as a general framework capable of enhancing other OOD detection methods by incorporating out-distribution density $p_{\textit{out}}(\boldsymbol{x})$ estimation. Experiments show that FLatS establishes a new SOTA on popular benchmarks. Our code is publicly available at https://github.com/linhaowei1/FLatS.
Principled Out-of-Distribution Generalization via Simplicity
Department of Operations Research and Financial Engineering, Princeton University(运筹学与金融工程系,普林斯顿大学);Department of Electrical and Computer Engineering, Princeton University(电气与计算机工程系,普林斯顿大学)
Class Incremental Learning via Likelihood Ratio Based Task Prediction
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Stanford University(斯坦福大学);Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Department of Computer Science, University of Illinois at Chicago(伊利诺伊大学芝加哥分校计算机系)
Generative Modeling under Non-Monotone MAR Missingness via Approximate Wasserstein Gradient Flows
Department of Mathematics(数学系);Research Institute for Statistics and Information Science(统计与信息科学研究所);University of Geneva(日内瓦大学);University of Hamburg(汉堡大学)
Disentangling Identifiable Features from Noisy Data with Structured Nonlinear ICA
University of Helsinki(赫尔辛基大学);Télécom SudParis(南巴黎电信学院);Institut Polytechnique de Paris(巴黎理工学院);Université Côte d’Azur(蔚蓝海岸大学);CNRS(法国国家科学研究中心);University of Cambridge(剑桥大学);Université Paris-Saclay(巴黎萨克雷大学)