atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

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

NeurIPS 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Spurious-aware OOD detection · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TV Score, a training-free OOD detector for mathematical reasoning in generative LMs that measures layer-wise trajectory volatility of Mahalanobis distances of sentence embeddings, and reports gains over embedding and uncertainty baselines on MultiArith-based ID vs. MATH/GSM8K-style OOD splits.

Problem

OOD detection for generative language models performing mathematical reasoning, where static embedding-based methods fail due to "pattern collapse" in the high-density output space of math answers.

Approach

Replace static embedding distance with the dynamic embedding trajectory across layers: map each layer's sentence embedding to a Mahalanobis distance w.r.t. ID Gaussian statistics per layer, and score OOD as the average absolute change of this distance across adjacent layers (optionally with higher-order differential smoothing).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use TV Score instead of the strongest baselineLlama2-7B · Far-shift OODAUROC: 85.64{ $\pm$1.46} -> 98.76{ $\pm$0.11}Helped
use TV Score instead of the strongest baselineLlama2-7B · Far-shift OODFPR95: 53.06{ $\pm$4.36} -> 5.21{ $\pm$0.98}Helped
use TV Score instead of the strongest baselineLlama2-7B · Near-shift OODAUROC: 60.33{ $\pm$1.37} -> 92.64{ $\pm$0.39}Helped
use TV Score instead of the strongest baselineLlama2-7B · Near-shift OODFPR95: 84.65{ $\pm$2.53} -> 28.39{ $\pm$1.38}Helped
use TV Score instead of the strongest baselineGPT2-XL · Far-shift OODAUROC: 86.26{ $\pm$0.84} -> 93.47{ $\pm$0.08}Helped
use TV Score instead of the strongest baselineGPT2-XL · Far-shift OODFPR95: 49.33{ $\pm$2.10} -> 24.10{ $\pm$0.95}Helped
use TV Score instead of the strongest baselineGPT2-XL · Near-shift OODAUROC: 83.22{ $\pm$0.88} -> 94.86{ $\pm$0.23}Helped
use TV Score instead of the strongest baselineGPT2-XL · Near-shift OODFPR95: 52.90{ $\pm$3.16} -> 13.82{ $\pm$0.36}Helped
add differential smoothing (ablation)TV Score on Llama2-7B · Far-shift OODAUROC: 98.76{ $\pm$0.11} -> 93.25{ $\pm$0.76}Hurt
add differential smoothing (ablation)TV Score on Llama2-7B · Near-shift OODAUROC: 92.64{ $\pm$0.39} -> 56.99{ $\pm$1.41}Hurt
add differential smoothing (ablation)TV Score on GPT2-XL · Far-shift OODAUROC: 93.47{ $\pm$0.08} -> 96.54{ $\pm$0.11}Helped
add differential smoothing (ablation)TV Score on GPT2-XL · Near-shift OODAUROC: 94.86{ $\pm$0.23} -> 94.19{ $\pm$0.25}No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MultiArith GSM8K SVAMP AddSub SingleEq SingleOp MATH MMLU OPUS

Benchmarks: MultiArith GSM8K SVAMP AddSub SingleEq SingleOp MATH MMLU

Metrics: AUROC FPR95 Accuracy Robustness (sampling variance) Kendall tau Spearman correlation

Baselines: Maximum Softmax Probability Monte-Carlo Dropout Sequence Perplexity Input Embedding Output Embedding

Builds on: Mahalanobis distance OOD detection (lee2018simple) embedding-based OOD detection for GLMs (ren2022out) SimCSE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy