A Cosine Similarity-based Method for Out-of-Distribution Detection
Ngoc-Hieu, Nguyen, Hung-Quang, Nguyen, Ta, The-Anh, Nguyen-Tang, Thanh, Doan, Khoa D, Thanh-Tung, Hoang
–arXiv.org Artificial Intelligence
The ability to detect OOD data is a crucial aspect of practical machine learning applications. In this work, we show that cosine similarity between the test feature and the typical ID feature is a good indicator of OOD data. We propose Class Typical Matching (CTM), a post hoc OOD detection algorithm that uses a cosine similarity scoring function. Extensive experiments on multiple benchmarks show that CTM outperforms existing post hoc OOD detection methods.
arXiv.org Artificial Intelligence
Jun-23-2023
- Country:
- North America
- Mexico > Gulf of Mexico (0.04)
- United States > Maryland
- Baltimore (0.04)
- South America > Peru
- Loreto Department (0.04)
- North America
- Genre:
- Research Report (0.82)
- Technology: