Embedding Trajectory for Out-of-Distribution Detection in Mathematical Reasoning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Yiming, Zhang, Pei, Yang, Baosong, Wong, Derek F., Zhang, Zhuosheng, Wang, Rui
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910678043852800
author Wang, Yiming
Zhang, Pei
Yang, Baosong
Wong, Derek F.
Zhang, Zhuosheng
Wang, Rui
author_facet Wang, Yiming
Zhang, Pei
Yang, Baosong
Wong, Derek F.
Zhang, Zhuosheng
Wang, Rui
contents Real-world data deviating from the independent and identically distributed (i.i.d.) assumption of in-distribution training data poses security threats to deep networks, thus advancing out-of-distribution (OOD) detection algorithms. Detection methods in generative language models (GLMs) mainly focus on uncertainty estimation and embedding distance measurement, with the latter proven to be most effective in traditional linguistic tasks like summarization and translation. However, another complex generative scenario mathematical reasoning poses significant challenges to embedding-based methods due to its high-density feature of output spaces, but this feature causes larger discrepancies in the embedding shift trajectory between different samples in latent spaces. Hence, we propose a trajectory-based method TV score, which uses trajectory volatility for OOD detection in mathematical reasoning. Experiments show that our method outperforms all traditional algorithms on GLMs under mathematical reasoning scenarios and can be extended to more applications with high-density features in output spaces, such as multiple-choice questions.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14039
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Embedding Trajectory for Out-of-Distribution Detection in Mathematical Reasoning
Wang, Yiming
Zhang, Pei
Yang, Baosong
Wong, Derek F.
Zhang, Zhuosheng
Wang, Rui
Computation and Language
Artificial Intelligence
Machine Learning
Real-world data deviating from the independent and identically distributed (i.i.d.) assumption of in-distribution training data poses security threats to deep networks, thus advancing out-of-distribution (OOD) detection algorithms. Detection methods in generative language models (GLMs) mainly focus on uncertainty estimation and embedding distance measurement, with the latter proven to be most effective in traditional linguistic tasks like summarization and translation. However, another complex generative scenario mathematical reasoning poses significant challenges to embedding-based methods due to its high-density feature of output spaces, but this feature causes larger discrepancies in the embedding shift trajectory between different samples in latent spaces. Hence, we propose a trajectory-based method TV score, which uses trajectory volatility for OOD detection in mathematical reasoning. Experiments show that our method outperforms all traditional algorithms on GLMs under mathematical reasoning scenarios and can be extended to more applications with high-density features in output spaces, such as multiple-choice questions.
title Embedding Trajectory for Out-of-Distribution Detection in Mathematical Reasoning
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2405.14039