mlsanityData to 14 Oct 2026

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

arXiv 2405.14039 ↗First posted 22 May 2024cs.CL cs.AI cs.LGcited by 18

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

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.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 44 of its 62 references that are in the map. First posted on arXiv 22 May 2024.

Builds on

44 of 62 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024A Careful Examination of Large Language Model Performance on Grade School Arithmetic1 May

Other references · 43

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  8. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  9. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  10. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  11. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  12. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
31 more
  1. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  2. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  3. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  4. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  5. 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
  6. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
  7. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  8. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
  9. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  10. 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 401
  11. 2016Solving General Arithmetic Word Problemscited by 360
  12. 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
  13. 2024TrustLLM: Trustworthiness in Large Language Modelscited by 285
  14. 2020Pitfalls of In-Domain Uncertainty Estimation and Ensembling in Deep Learningcited by 210
  15. 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 207
  16. 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 197
  17. 2015Training Very Deep Networkscited by 173
  18. 2017Multiplicative Normalizing Flows for Variational Bayesian Neural Networkscited by 157
  19. 2018Flipout: Efficient Pseudo-Independent Weight Perturbations on Mini-Batchescited by 133
  20. 2024Benchmarking Benchmark Leakage in Large Language Modelscited by 106
  21. 2021Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Taskscited by 101
  22. 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
  23. 2023Element-aware Summarization with Large Language Models: Expert-aligned Evaluation and Chain-of-Thought Methodcited by 76
  24. 2018Improving Reconstruction Autoencoder Out-of-distribution Detection with Mahalanobis Distancecited by 74
  25. 2023Igniting Language Intelligence: The Hitchhiker's Guide From Chain-of-Thought Reasoning to Language Agentscited by 72
  26. 2020Wat zei je? Detecting Out-of-Distribution Translations with Variational Transformerscited by 31
  27. 2023A Survey on Out-of-Distribution Detection in NLPcited by 31
  28. 2024Case-Based or Rule-Based: How Do Transformers Do the Math?cited by 26
  29. 2019Detecting Out-of-Distribution Inputs in Deep Neural Networks Using an Early-Layer Outputcited by 20
  30. 2023Meta-Reasoning: Semantics-Symbol Deconstruction for Large Language Modelscited by 11
  31. 2024MIDGARD: Self-Consistency Using Minimum Description Length for Structured Commonsense Reasoningcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 9; 2026: 7.

18 papers.

Sort:

By area:

  1. 2025Sampling-Efficient Test-Time Scaling: Self-Estimating the Best-of-N Sampling in Early Decodingcited by 63
  2. 2024Latent Space Chain-of-Embedding Enables Output-free LLM Self-Evaluationcited by 57
  3. 2025PolyMath: Evaluating Mathematical Reasoning in Multilingual Contextscited by 56
  4. 2025Consistent Paths Lead to Truth: Self-Rewarding Reinforcement Learning for LLM Reasoningcited by 46
  5. 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 26
  6. 2025The Geometry of Reasoning: Flowing Logics in Representation Spacecited by 21
  7. 2025GEM: Gaussian Embedding Modeling for Out-of-Distribution Detection in GUI Agentscited by 8
  8. 2025Building Trustworthy AI for Materials Discovery: From Autonomous Laboratories to Z-scorescited by 2
  9. 2025Amplify Adjacent Token Differences: Enhancing Long Chain-of-Thought Reasoning with Shift-FFNcited by 1
  10. 2026On the Overscaling Curse of Parallel Thinking: System Efficacy Contradicts Sample Efficiencycited by 1
  11. 2026AP-OOD: Attention Pooling for Out-of-Distribution Detectioncited by 1
  12. 2025Translationese-index: Using Likelihood Ratios for Graded and Generalizable Measurement of Translationesecited by 0
6 more
  1. 2025CONFIDE: Hallucination Assessment for Reliable Biomolecular Structure Prediction and Designcited by 0
  2. 2026Useful Features, Backward Scores: OOD in Language-Model Trajectoriescited by 0
  3. 2026Autonomous Drift Learning in Data Streams: A Unified Perspectivecited by 0
  4. 2026Micro-Defects Expose Macro-Fakes: Detecting AI-Generated Images via Local Distributional Shiftscited by 0
  5. 2026QueST: Persistent Queries as Semantic Monitors for Drift Suppression in Long-Horizon Trackingcited by 0
  6. 2026Understanding LLM Behavior in Multi-Target Cross-Lingual Summarizationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2022Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Text
  2. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformers
  3. 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoning
  4. 2026LLM Reasoning as Trajectories: Step-Specific Representation Geometry and Correctness Signals
  5. 2022Achieving and Understanding Out-of-Distribution Generalization in Systematic Reasoning in Small-Scale Transformers
  6. 2026Beyond Rejection Sampling: Trajectory Fusion for Scaling Mathematical Reasoning
  7. 2026A Measure-Theoretic Analysis of Reasoning: Structural Generalization and Approximation Limits
  8. 2026MathNet: a Global Multimodal Benchmark for Mathematical Reasoning and Retrieval