ANI: Adaptive Numerical Injection for Unifying Semantic and Arithmetic Representations in Numerical Reasoning
Abstract
Precise numerical reasoning with Large Language Models (LLMs) is essential for expanding their applicability to complex real-world tasks. However, text-based tokenization often fragments numbers, significantly hindering precise arithmetic reasoning. Meanwhile, numerical embeddings, despite arithmetic precision, rely on context-agnostic substitution that disregards the semantic role of numbers as identifiers. To combine the complementary strengths, we propose ANI (Adaptive Numerical Injection), a hybrid framework that governs the selective injection of numerical features based on the semantic context. By employing a context-aware gating mechanism, we selectively inject numerical embeddings (specifically FoNE) into the latent space, explicitly preserving nominal identifiers while enhancing quantitative operands. Through extensive evaluations across various LLMs, we demonstrate that ANI enhances MATH performance by 9.5 points over the official reference model, while maintaining robust performance on general linguistic benchmarks.
Create a lesson
Metadata
- Comments
- Accepted to EMNLP 2026. 16 pages, 7 figures. Code available at https://github.com/Jinsung-Jeon/ANI_EMNLP
Related papers
OverForge: Reasoning Through Strategies and Tactics Helps Cooperative Lifelong Adaptation
Shared title terminologycs.AIOana Madalina Fron, Ojas Shirekar, Chirag Raman
Targeted Retrieval, Compact Representations: How CoT Reasoning Improves Long-Context Counting
Shared title terminologycs.AILiang Twist Shan, Tianyu Hu, Hao Yan et al.
GaokaoMathGen: Chinese Gaokao Mathematics Finale Problem Generation Controlled by Latent Reasoning Structures
Shared title terminologycs.AIQian Chen, Kun Zhu, Zhongyi Wang et al.
Compressible Representations: Functional Spines in Deep Neural Networks
Shared title terminologycs.AINiranjan Rajesh, Meenakshi Khosla
TACT-Bench: Testing Adaptive Conversational Threats against Tool-Use Agents
Shared title terminologycs.AIIlia Hashemi Rad, Feijie Wu, Haoyu Wang et al.
Self-Improving Long-Horizon Reasoning by Learning Summaries from Local Continuations
Shared title terminologycs.AIHaoqun Cao, Tengyang Xie