Manuscript Offprint

arXiv:2611.24846

Atomic MathReasoner: Instance-Level Composition of Atomic Reasoning Skills for Mathematical LLMs

Jiashu Li, Tianyu Gao, Qinglong Liu, Jinping Wang, Ye Wei, Zhiqiang Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Most existing approaches enhance mathematical reasoning in large language models (LLMs) as a monolithic capability, despite the fact that different mathematical problems require different reasoning skills. Recent work has explored a more fine-grained perspective by decomposing mathematical reasoning into atomic skills and developing specialized modules for individual capabilities. However, how to effectively utilize these atomic abilities remains underexplored. To address this challenge, we propose Atomic MathReasoner (AMR), an instance-level framework for composing atomic reasoning skills. AMR first trains a library of capability-specific LoRA experts and performs gradient-free optimization over held-out validation subsets to discover a diverse set of low-loss composition prototypes. It evaluates the preference of each prototype using the token-level negative log-likelihood of reference solutions, filters ambiguous assignments through a confidence margin, and distills the resulting pseudo-labels into a lightweight router. During inference, the router selects an appropriate composition prototype for each problem, enabling problem-specific utilization of atomic skills without costly online optimization. Experiments on the AtomicMath benchmark across general and mathematics-specialized LLMs demonstrate consistent improvements. On Qwen2.5-Math-Instruct-7B, AMR increases average field accuracy from 64.4% to 68.1% at Level 1 and from 59.3% to 63.7% at Level 2, while improving average logical reasoning performance from 39.4% to 46.8%. These results demonstrate that effectively composing specialized atomic skills provides a promising approach to strengthening mathematical reasoning in LLMs.

Keywords: Mathematical reasoning; Large Language Model (LLM)

1 Introduction

Mathematical reasoning is a fundamental capability of artificial intelligence (Azerbayev et al., 2024). Large language models (LLMs) have achieved substantial progress in mathematical problem solving. Recent advances have been driven by several paradigms, including instruction tuning (Lewkowycz et al., 2022; Luo et al., 2023; Yu et al., 2024; Yue et al., 2024), tool-integrated reasoning (Chen et al., 2022; Gao et al., 2023; Gou et al., 2024; Chen et al., 2026), and reinforcement learning over long chains of thought (Lai et al., 2024; Wang et al., 2024a; Liao et al., 2025; Guo et al., 2025; Yan et al., 2026). Despite their effectiveness, most of these paradigms treat mathematical reasoning as a monolithic capability, optimizing either the entire model or the complete solution trajectory.

This limitation motivates a more fine-grained view of mathematical reasoning. Human problem solving often decomposes complex tasks into simpler sub-skills and coordinates them according to problem-specific demands (Anderson et al., 1995; Zhang et al., 1999). Inspired by this perspective, Kuang et al. (2026) decomposed mathematical reasoning in LLMs into fine-grained atomic skills, including domain-specific and logical reasoning capabilities.

However, decomposing mathematical reasoning into atomic skills does not by itself determine how these skills should be combined for a specific problem. A central challenge therefore remains at inference time: how can a model select and compose the appropriate atomic skills for an unseen input? Although Kuang et al. (2026) showed that activating relevant atomic skills can improve performance, their work primarily focused on capability decomposition and did not provide an efficient mechanism for skill composition.

To bridge this gap, we introduce Atomic MathReasoner (AMR), a two-stage framework for instance-adaptive composition of atomic mathematical skills. In the first stage, following the atomic-skill taxonomy of Kuang et al. (2026), we train a dedicated LoRA expert for each skill. We then conduct multiple gradient-free searches on a held-out validation set to optimize the linear composition coefficients under the causal language modeling loss, yielding a diverse set of compositional prototypes. In the second stage, we formulate problem-specific prototype selection as a classification task, avoiding costly per-instance search during inference. For each routing example, we assign the prototype with the lowest token-level negative log-likelihood on the reference solution as a pseudo-label and apply margin-based filtering to retain high-confidence examples. We subsequently train a lightweight router based on TF-IDF features and multinomial logistic regression. At inference time, the router maps each unseen problem to a compositional prototype, whose coefficients are used to combine the atomic LoRA experts for answer generation.

Our extensive experiments on the AtomicMath benchmark (Kuang et al., 2026) demonstrate the robust effectiveness of AMR across various base models. Specifically, AMR improves the average Level 1 and Level 2 field accuracies of InternLM2-Math-Plus-7B to 42.1% (+4.3 percentage points) and 38.7% (+2.2 percentage points), respectively, while increasing the average logic score of Qwen2.5-Math-Instruct-7B by 7.4 percentage points to 46.8%. Notably, our framework enables smaller models to outperform larger math-specialized counterparts in specific categories. For instance, InternLM2-Math-Plus-7B with AMR achieves 48.4% in Analysis (Level 1) and 38.8% in Topology (Level 2), surpassing Abel-13B (40.4%) and Xwin-Math-13B (38.3%), respectively. AMR also remains competitive with commercial models on several challenging tasks. In particular, Qwen2.5-Math-Instruct-7B with AMR achieves 73.5% in Analysis (Level 2) and 53.8% in Geometry (Level 2), outperforming GPT-4o (53.2% and 36.3%) and Claude 3.7 Sonnet (68.1% and 39.0%) on these two tasks, respectively. Additionally, a comprehensive ablation study further validates the effectiveness of the proposed framework.

  • We propose AMR, a two-stage framework that composes independently trained atomic skill experts at the instance level. By constructing problem-conditioned skill compositions, AMR enables different mathematical problems to leverage complementary reasoning capabilities.
  • We propose a gradient-free composition search method and lightweight offline router. By distilling prototype labels into the routing classifier, AMR enables efficient instance-level capability matching during inference and reduces latency.
  • Our framework, when integrated into diverse baseline models, demonstrates performance gains across both low and high difficulty levels on the AtomicMath benchmark. It enables 7B models to exhibit strong competitiveness against 13B specialized counterparts and even GPT-4o in specific domains.

Figure

Figure 1: Conventional LLMs treat mathematical reasoning as a monolithic capability, often failing across diverse mathematical problems. In contrast, AMR dynamically composes atomic reasoning experts for each input through instance-level routing, enabling problem-adaptive capability synergy and more accurate mathematical reasoning.

References (35)