Reproduce “Embedding Trajectory for Out-of-Distribution Detection in Mathematical Reasoning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yiming Wang, Pei Zhang, Baosong Yang, Derek F. Wong, Zhuosheng Zhang, Rui Wang
Researchers developed the Trajectory Volatility (TV) Score, a method for out-of-distribution (OOD) detection in generative language models performing mathematical reasoning. The TV Score leverages the dynamic shifts of embedding representations across model layers to address limitations of static embedding methods and improves OOD detection AUROC by over 10 percentage points and reduces FPR95 by over 80% in far-shift scenarios compared to baselines.
Key insights
- Traditional static embedding-based OOD detection methods fail in mathematical reasoning due to "vague clustering" in input space and a pervasive "pattern collapse" in output space.
- Even when static output embeddings collapse, the trajectory of embeddings through the GLM's layers provides a discriminative signal for OOD detection.
- In-distribution samples exhibit "Early Stabilization," where embedding volatility decreases in later layers, indicating reasoning convergence, while OOD samples maintain high volatility as the model struggles.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.